From: Whitney, Scott <scwhitn@amazon.com>
To: buildroot@busybox.net
Subject: [Buildroot] How to create/install U-Boot and Linux to boot from eMMC
Date: Tue, 19 Nov 2019 21:25:09 +0000 [thread overview]
Message-ID: <1574198708225.73934@amazon.com> (raw)
In-Reply-To: <55cec8fc-e640-3ac8-3a8b-d01dcd155b26@mind.be>
Thanks for the reply, Arnout,
Still have not had success with booting from eMMC, but even the TI FAE has had difficulty, so it may be that the early silicon we are using still has problems.
I will keep your suggestions and Baruch's - but my supervisor indicates that booting from eMMC is not a big priority at the moment, and we'll likely be booting from SD card for the next year or so! I have already proven that I can format/write to/read from eMMC partitions, so it's there for additional storage if the need arises.
Best regards!
Scott Whitney
________________________________________
From: Arnout Vandecappelle <arnout@mind.be>
Sent: Sunday, November 17, 2019 11:14 AM
To: Whitney, Scott; buildroot at busybox.net
Subject: Re: [Buildroot] How to create/install U-Boot and Linux to boot from eMMC
On 11/11/2019 21:14, Whitney, Scott wrote:
> 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:
[snip]
> 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.
Baruch gave you a complex answer. In general, though, you can flash the same
image to eMMC that you used for the SD card, and it will just work.
Basically, you have to make sure that each step in the boot process finds the
next one:
ROM -> SPL -> U-Boot -> kernel -> rootfs
ROM should normally try the different boot devices and find the boot.vfat
partition on eMMC.
SPL will generally use the information on where it booted from to decide where
to load the next step, so it will load U-Boot from eMMC as well. Sometimes,
however, the next step is hardcoded in SPL, so you should check that.
U-Boot will generally try different devices to find the kernel. What it does
exactly depends on its environment, so you can just look into the environment
and chane that as needed.
The rootfs is given on the kernel command line. This can be set either by
U-Boot (usually) but sometimes is hardcoded in the device tree. In the latter
case, you need to update the device tree. If the U-Boot boot script does it, it
will generally set the rootfs based on where the kernel was found.
Hope this helps.
Regards,
Arnout
>
> 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
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
prev parent reply other threads:[~2019-11-19 21:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1574198708225.73934@amazon.com \
--to=scwhitn@amazon.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox