How to flash eMMC
Hi,
I want to know how to flash microSD images to eMMC of Beaglebone black. Could you guide me?
Thanks in advance,
Jehun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160831/d4f7942f/attachment.html>
Quoted 7 lines · yoda zhong
Hi,
I want to know how to flash microSD images to eMMC of Beaglebone black.
Could you guide me?
Not specific to BeagleBoneBlack, but:
When you have both an SD card inserted and an eMMC, you should have two block
devices /dev/mmcblk0 and /dev/mmcblk1. Find out which one is the eMMC e.g. by observing the kernel log. Then write the image to the eMMC with
cat image > /dev/mmcblk0
(assuming mmcblk0 is your eMMC of course).
Regards,
Arnout
Quoted 16 lines
Thanks in advance,
Jehun
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Thank you for your opinion.
Following is the related kernel log. But I?m not sure where I should copy boot/* and rootfs/* of microSD to.
[ 1.735984] mmc0: host does not support reading read-only switch, assuming write-enable [ 1.751294] mmc0: new high speed SDHC card at address aaaa [ 1.762798] mmcblk0: mmc0:aaaa SS08G 7.40 GiB [ 1.774493] mmc1: new high speed MMC card at address 0001 [ 1.783724] mmcblk0: p1 p2 [ 1.806009] mmcblk1: mmc1:0001 MMC04G 3.60 GiB [ 1.812103] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB [ 1.828636] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB [ 1.876569] mmcblk1: p1 [ 1.921456] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.930280] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 1.950790] devtmpfs: mounted [ 1.956266] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000) [ 2.113623] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Following is the related dev list.
mmcblk0
mmcblk0p1
mmcblk0p2
mmcblk1
mmcblk1boot0
mmcblk1boot1
mmcblk1p1
Best,
Jehun
?? ??: Arnout Vandecappelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160901/20914805/attachment.html>
[Please avoid top-posting and writing HTML mails.]
Quoted 7 lines · yoda zhong
Thank you for your opinion.
Following is the related kernel log. But I?m not sure where I should copy
boot/* and rootfs/* of microSD to.
Well, you said you wanted to flash an SD image, so I assumed you were talking
about the sdcard.img generated by board/beaglebone/post-image.sh. As explained in board/beaglebone/readme.txt, you just write that to the SD or MMC card with dd. Based on the kernel log below, in your case it would be:
dd if=sdcard.img of=/dev/mmcblk1
Quoted 7 lines
[ 1.735984] mmc0: host does not support reading read-only switch, assumingwrite-enable
[ 1.751294] mmc0: new high speed SDHC card at address aaaa
This is the SD card (see how it says 'SDHC card' ?)
Quoted 4 lines
[ 1.762798] mmcblk0: mmc0:aaaa SS08G 7.40 GiB[ 1.774493] mmc1: new high speed MMC card at address 0001
And this is the eMMC (maybe 'MMC card' is a hint?)
Regards,
Arnout
Quoted 41 lines
[ 1.783724] mmcblk0: p1 p2[ 1.806009] mmcblk1: mmc1:0001 MMC04G 3.60 GiB[ 1.812103] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB[ 1.828636] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB[ 1.876569] mmcblk1: p1[ 1.921456] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode.Opts: (null)
[ 1.930280] VFS: Mounted root (ext4 filesystem) on device 179:2.[ 1.950790] devtmpfs: mounted[ 1.956266] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)[ 2.113623] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=orderedFollowing is the related dev list.
mmcblk0
mmcblk0p1
mmcblk0p2
mmcblk1
mmcblk1boot0
mmcblk1boot1
mmcblk1p1
[snip]
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Sorry for confusing you.
I meant followings.
When I used other OS for beaglebone, I flashed eMMC with the way mentioned in
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Flashing_eMMC
But I failed to do this on Buildroot.
I use microSD which has two partitions, rootfs and boot and boot from microSD. This works fine. So I want to flash the contents of microSD into embedded eMMC of Beaglebone black. So I asked this to get some advice.
It looks like that I need to copy boot and rootfs partitions into eMMC, but I don?t know which dev I use for this.
I wish I?m clear at this time.
Regards,
Jehun
?? ??: Arnout Vandecappelle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160901/2d4ae1f4/attachment.html>