[Buildroot] Create a bootable SD Card

Mikael Åsberg mikael.asberg at mdh.se
Sun Mar 18 10:52:51 UTC 2012


Hello,

I have two issues:

1.

>In this partition header, you may define a partition starting *after*
>the end of the bootloader, up to the end of the card, to put the
>rootfs

How do I know where the bootloader part ends?

2.

Where do I put my "uImage"? From my experience it should be in /boot but my rootfs does not have /boot?

Regards

--------------------------------------------------------------
Mikael Åsberg
PhD student (Doktorand), Computer Engineering
School of Innovation, Design and Engineering
Mälardalen University, Västerås Sweden
Phone: +46(0)21 101502
Room nr: U1-145
Mail: mikael.asberg at mdh.se
--------------------------------------------------------------
________________________________________
Från: Mickael Chazaux [mickael.chazaux at gmail.com]
Skickat: den 16 mars 2012 17:57
Till: Mikael Åsberg
Kopia: buildroot at busybox.net
Ämne: Re: [Buildroot] Create a bootable SD Card

Hi,

>
> I have generated a file-system, bootloader and image for the platform i.MX28 EVK (using Buildroot).
>
> How do I create a bootable SD memory card (using these files)?
>

__IIRC__

The bootloader has to be written at address 0x800 on the SD card (dd
if=myfile of=/dev/mmcbkl0 bs=512 skip=4)
This leaves room for a standard PC BIOS partition header (Write it with fdisk)
In this partition header, you may define a partition starting *after*
the end of the bootloader, up to the end of the card, to put the
rootfs
If so, put on it whatever filesystem you like (squashfs, extX, ...)
with the method you prefer
    - squashfs example : dd if=mycompressedrootfs.squashfs of=/dev/mmcblk0p1
    - ext4 example : mkfs.ext4 /dev/mmcblk0p1 && mount /dev/mmcblk0p1
/mnt && cd  /mnt && tar -zxvpf mycoolrootfs.tar.gz

The bootloader has to be "signed" by a signing tool that can be found
in LTIB, or written according to the datasheet.

Regards,

Mickael


More information about the buildroot mailing list