Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to create/install U-Boot and Linux to boot from eMMC
@ 2019-11-11 20:14 Whitney, Scott
  2019-11-12  5:45 ` Baruch Siach
  2019-11-17 16:14 ` Arnout Vandecappelle
  0 siblings, 2 replies; 4+ messages in thread
From: Whitney, Scott @ 2019-11-11 20:14 UTC (permalink / raw)
  To: buildroot

Hi Buildroot community,

I'm using Buildroot to successfully build U-Boot and a Linux image for an AM6548 Sitara processor.  I created sdcard.img in output/images using genimage, with the following configuration file:

image boot.vfat {
    vfat {
        files = {
            "sysfw.itb",
            "tiboot3.bin",
            "tispl.bin",
            "u-boot.img",
            "uEnv.txt",
            "Image",
            "k3-am654-reflex3-board.dtb"
        }
    }
    size = 70M
}

image sdcard.img {
    hdimage {
    }

    partition u-boot {
        partition-type = 0xC
        bootable = "true"
        image = "boot.vfat"
    }

    partition rootfs {
        partition-type = 0x83
        image = "rootfs.ext4"
        size = 1G
    }
}

I program this directly onto the SD card with:

    sudo dd if=./sdcard.img of=/dev/mmcblk0 bs=1M

where /dev/mmcblk0 is how my SD card shows up in Ubuntu, as can be seen using lsblk.  This combination of boot and rootfs partitions goes through U-Boot successfully and gets me to a Linux login prompt.  So far, so good.

Our board also has 8GB of eMMC memory.  I'd like to know how to use Buildroot to program boot/U-Boot and rootfs/Linux onto the eMMC so that we can boot directly from that without having to have an SD card installed.

Can anyone provide instructions for partitioning, formatting, and installing an image suitable for booting from eMMC card?  I can have genimage create an eMMC.img file if the format needs to be different, but I'm just not sure what needs to be on the eMMC for this to work successfully.

Many thanks for your help, and best regards!
Scott Whitney | Contractor - Software Engineering
scwhitn at amazon.com| o: xxx.xxx.xxx| m: 603.321.6662
a: 300 Riverpark Drive, North Reading, MA 01864
www.amazonrobotics.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-19 21:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-11 20:14 [Buildroot] How to create/install U-Boot and Linux to boot from eMMC Whitney, Scott
2019-11-12  5:45 ` Baruch Siach
2019-11-17 16:14 ` Arnout Vandecappelle
2019-11-19 21:25   ` Whitney, Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox