[Buildroot] Building bootable usb drive for target board with ext2

Patricia Holden patholdn at gmail.com
Fri Jun 12 20:04:05 UTC 2015


Thanks, I totally forgot I had the BR2_TARGET_ROOTFS_INITRAMFS option in
use.  Guess I'm chasing my tail here.  I just need a very minimal system
that I made a couple linux changes for custom development board, nothing
fancy.  I have no CD to boot from but I do have a 16GB usb drive so I
thought it would be easier for debugging the prototype if the USB is used
to run OS.

On Fri, Jun 12, 2015 at 3:10 PM, Thomas Petazzoni <
thomas.petazzoni at free-electrons.com> wrote:

> Dear Patricia Holden,
>
> On Fri, 12 Jun 2015 14:20:59 -0400, Patricia Holden wrote:
>
> > I'm following examples of how to create a bootable usb for a target board
> > i'm doing some work for.  I am stuck at setting up grub for booting.  I
> > can't seem to get buildroot to put the bzImage into /boot directory for
> > grub to load.  My target ends up hanging.
>
> If all you need is to have bzImage installed in /boot, then make sure
> to enable BR2_LINUX_KERNEL_INSTALL_TARGET.
>
> However, you have BR2_TARGET_ROOTFS_INITRAMFS=y, which means your
> rootfs is inside your kernel image. So it is not possible for your
> kernel image to be inside your rootfs!
>
> So if you want to use a rootfs inside the kernel image (using
> initramfs), then all you have to do it to build yourself a small
> filesystem with just the necessary Grub bits in /boot and the
> bzImage.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150612/4fd9421f/attachment-0002.html>


More information about the buildroot mailing list