On writing .ext4 image to MMC

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

On writing .ext4 image to MMC

Adam YH Lee
Hello everyone,

I am able to download a .ext4 image over tftp and write it to my SD card.
The system boots fine.
One last thing I have to figure out is to expand this .ext4 file system
that I just populated.
If the image is 600MB, the partition size itself is 600MB, leaving no room.

Is there anything I can do to remedy this in U-Boot?

Adam
_______________________________________________
U-Boot mailing list
[hidden email]
https://lists.denx.de/listinfo/u-boot
Reply | Threaded
Open this post in threaded view
|

Re: On writing .ext4 image to MMC

Michael Nazzareno Trimarchi
Hi


resize2fs from linux?

Michael

On Fri, Jan 12, 2018 at 4:15 PM, Adam Lee <[hidden email]> wrote:

> Hello everyone,
>
> I am able to download a .ext4 image over tftp and write it to my SD card.
> The system boots fine.
> One last thing I have to figure out is to expand this .ext4 file system
> that I just populated.
> If the image is 600MB, the partition size itself is 600MB, leaving no room.
>
> Is there anything I can do to remedy this in U-Boot?
>
> Adam
> _______________________________________________
> U-Boot mailing list
> [hidden email]
> https://lists.denx.de/listinfo/u-boot



--
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |
_______________________________________________
U-Boot mailing list
[hidden email]
https://lists.denx.de/listinfo/u-boot
Reply | Threaded
Open this post in threaded view
|

Re: On writing .ext4 image to MMC

Adam YH Lee
Hi Michael, I used gparted to fix the issue. I am just wondering if I can
do all this in U-Boot.
If there is no good solution, I will put one-time script in my rootfs to do
this task.

Adam

On Fri, Jan 12, 2018 at 10:18 AM Michael Nazzareno Trimarchi <
[hidden email]> wrote:

> Hi
>
>
> resize2fs from linux?
>
> Michael
>
> On Fri, Jan 12, 2018 at 4:15 PM, Adam Lee <[hidden email]> wrote:
> > Hello everyone,
> >
> > I am able to download a .ext4 image over tftp and write it to my SD card.
> > The system boots fine.
> > One last thing I have to figure out is to expand this .ext4 file system
> > that I just populated.
> > If the image is 600MB, the partition size itself is 600MB, leaving no
> room.
> >
> > Is there anything I can do to remedy this in U-Boot?
> >
> > Adam
> > _______________________________________________
> > U-Boot mailing list
> > [hidden email]
> > https://lists.denx.de/listinfo/u-boot
>
>
>
> --
> | Michael Nazzareno Trimarchi                     Amarula Solutions BV |
> | COO  -  Founder                                      Cruquiuskade 47 |
> | +31(0)851119172 <+31%2085%20111%209172>
>  Amsterdam 1018 AM NL |
> |                  [`as] http://www.amarulasolutions.com               |
>
_______________________________________________
U-Boot mailing list
[hidden email]
https://lists.denx.de/listinfo/u-boot
Reply | Threaded
Open this post in threaded view
|

Re: On writing .ext4 image to MMC

Michael Nazzareno Trimarchi
Hi

On 12 Jan. 2018 7:15 pm, "Adam Lee" <[hidden email]> wrote:

Hi Michael, I used gparted to fix the issue. I am just wondering if I can
do all this in U-Boot.
If there is no good solution, I will put one-time script in my rootfs to do
this task.


Sorry most of the system on first boot create a first instance of something
like ssd for keys. I think that just use resize FS should do the trick. Why
is should be done in bootloader?

Michael


Adam

On Fri, Jan 12, 2018 at 10:18 AM Michael Nazzareno Trimarchi <
[hidden email]> wrote:

> Hi
>
>
> resize2fs from linux?
>
> Michael
>
> On Fri, Jan 12, 2018 at 4:15 PM, Adam Lee <[hidden email]> wrote:
> > Hello everyone,
> >
> > I am able to download a .ext4 image over tftp and write it to my SD card.
> > The system boots fine.
> > One last thing I have to figure out is to expand this .ext4 file system
> > that I just populated.
> > If the image is 600MB, the partition size itself is 600MB, leaving no
> room.
> >
> > Is there anything I can do to remedy this in U-Boot?
> >
> > Adam
> > _______________________________________________
> > U-Boot mailing list
> > [hidden email]
> > https://lists.denx.de/listinfo/u-boot
>
>
>
> --
> | Michael Nazzareno Trimarchi                     Amarula Solutions BV |
> | COO  -  Founder                                      Cruquiuskade 47
> <https://maps.google.com/?q=Cruquiuskade+47&entry=gmail&source=g> |
> | +31(0)851119172 <+31%2085%20111%209172>
>  Amsterdam 1018 AM NL |
> |                  [`as] http://www.amarulasolutions.com               |
>
_______________________________________________
U-Boot mailing list
[hidden email]
https://lists.denx.de/listinfo/u-boot
Reply | Threaded
Open this post in threaded view
|

Re: On writing .ext4 image to MMC

Adam YH Lee
I was hoping to get this done in the bootloader otherwise I have to change
the rootfs ;)

On Fri, Jan 12, 2018 at 1:18 PM Michael Nazzareno Trimarchi <
[hidden email]> wrote:

> Hi
>
> On 12 Jan. 2018 7:15 pm, "Adam Lee" <[hidden email]> wrote:
>
> Hi Michael, I used gparted to fix the issue. I am just wondering if I can
> do all this in U-Boot.
> If there is no good solution, I will put one-time script in my rootfs to
> do this task.
>
>
> Sorry most of the system on first boot create a first instance of
> something like ssd for keys. I think that just use resize FS should do the
> trick. Why is should be done in bootloader?
>
> Michael
>
>
> Adam
>
> On Fri, Jan 12, 2018 at 10:18 AM Michael Nazzareno Trimarchi <
> [hidden email]> wrote:
>
>> Hi
>>
>>
>> resize2fs from linux?
>>
>> Michael
>>
>> On Fri, Jan 12, 2018 at 4:15 PM, Adam Lee <[hidden email]> wrote:
>> > Hello everyone,
>> >
>> > I am able to download a .ext4 image over tftp and write it to my SD
>> card.
>> > The system boots fine.
>> > One last thing I have to figure out is to expand this .ext4 file system
>> > that I just populated.
>> > If the image is 600MB, the partition size itself is 600MB, leaving no
>> room.
>> >
>> > Is there anything I can do to remedy this in U-Boot?
>> >
>> > Adam
>> > _______________________________________________
>> > U-Boot mailing list
>> > [hidden email]
>> > https://lists.denx.de/listinfo/u-boot
>>
>>
>>
>> --
>> | Michael Nazzareno Trimarchi                     Amarula Solutions BV |
>> | COO  -  Founder                                      Cruquiuskade 47
>> <https://maps.google.com/?q=Cruquiuskade+47&entry=gmail&source=g> |
>> | +31(0)851119172 <+31%2085%20111%209172>
>>  Amsterdam 1018 AM NL |
>> |                  [`as] http://www.amarulasolutions.com               |
>>
>
>
_______________________________________________
U-Boot mailing list
[hidden email]
https://lists.denx.de/listinfo/u-boot
Reply | Threaded
Open this post in threaded view
|

Re: On writing .ext4 image to MMC

Vincent Prince
Hi,

I think you can also create an ext4 image with extra space in it. You can
use bmap tool if size is a concern.

Regards,
Vincent

2018-01-12 19:22 GMT+01:00 Adam Lee <[hidden email]>:

> I was hoping to get this done in the bootloader otherwise I have to change
> the rootfs ;)
>
> On Fri, Jan 12, 2018 at 1:18 PM Michael Nazzareno Trimarchi <
> [hidden email]> wrote:
>
> > Hi
> >
> > On 12 Jan. 2018 7:15 pm, "Adam Lee" <[hidden email]> wrote:
> >
> > Hi Michael, I used gparted to fix the issue. I am just wondering if I can
> > do all this in U-Boot.
> > If there is no good solution, I will put one-time script in my rootfs to
> > do this task.
> >
> >
> > Sorry most of the system on first boot create a first instance of
> > something like ssd for keys. I think that just use resize FS should do
> the
> > trick. Why is should be done in bootloader?
> >
> > Michael
> >
> >
> > Adam
> >
> > On Fri, Jan 12, 2018 at 10:18 AM Michael Nazzareno Trimarchi <
> > [hidden email]> wrote:
> >
> >> Hi
> >>
> >>
> >> resize2fs from linux?
> >>
> >> Michael
> >>
> >> On Fri, Jan 12, 2018 at 4:15 PM, Adam Lee <[hidden email]>
> wrote:
> >> > Hello everyone,
> >> >
> >> > I am able to download a .ext4 image over tftp and write it to my SD
> >> card.
> >> > The system boots fine.
> >> > One last thing I have to figure out is to expand this .ext4 file
> system
> >> > that I just populated.
> >> > If the image is 600MB, the partition size itself is 600MB, leaving no
> >> room.
> >> >
> >> > Is there anything I can do to remedy this in U-Boot?
> >> >
> >> > Adam
> >> > _______________________________________________
> >> > U-Boot mailing list
> >> > [hidden email]
> >> > https://lists.denx.de/listinfo/u-boot
> >>
> >>
> >>
> >> --
> >> | Michael Nazzareno Trimarchi                     Amarula Solutions BV |
> >> | COO  -  Founder                                      Cruquiuskade 47
> >> <https://maps.google.com/?q=Cruquiuskade+47&entry=gmail&source=g> |
> >> | +31(0)851119172 <+31%2085%20111%209172>
> >>  Amsterdam 1018 AM NL |
> >> |                  [`as] http://www.amarulasolutions.com
>  |
> >>
> >
> >
> _______________________________________________
> U-Boot mailing list
> [hidden email]
> https://lists.denx.de/listinfo/u-boot
>
_______________________________________________
U-Boot mailing list
[hidden email]
https://lists.denx.de/listinfo/u-boot