Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How to flash eMMC
@ 2016-08-31 23:43 yoda zhong
  2016-09-01  6:08 ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: yoda zhong @ 2016-08-31 23:43 UTC (permalink / raw)
  To: buildroot

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>

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

* [Buildroot] How to flash eMMC
  2016-08-31 23:43 [Buildroot] How to flash eMMC yoda zhong
@ 2016-09-01  6:08 ` Arnout Vandecappelle
  2016-09-01 17:14   ` yoda zhong
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-09-01  6:08 UTC (permalink / raw)
  To: buildroot



On 01-09-16 01:43, yoda zhong wrote:
> 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

> 
>  
> 
> Thanks in advance,
> 
> Jehun
> 
>  
> 
> 
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
> 

-- 
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

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

* [Buildroot] How to flash eMMC
  2016-09-01  6:08 ` Arnout Vandecappelle
@ 2016-09-01 17:14   ` yoda zhong
  2016-09-01 21:11     ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: yoda zhong @ 2016-09-01 17:14 UTC (permalink / raw)
  To: buildroot

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>

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

* [Buildroot] How to flash eMMC
  2016-09-01 17:14   ` yoda zhong
@ 2016-09-01 21:11     ` Arnout Vandecappelle
  2016-09-01 23:24       ` yoda zhong
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2016-09-01 21:11 UTC (permalink / raw)
  To: buildroot

 [Please avoid top-posting and writing HTML mails.]

On 01-09-16 19:14, yoda zhong wrote:
> 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

> 
>  
> 
> [    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

 This is the SD card (see how it says 'SDHC card' ?)

> 
> [    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

> 
> [    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

[snip]

-- 
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

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

* [Buildroot] How to flash eMMC
  2016-09-01 21:11     ` Arnout Vandecappelle
@ 2016-09-01 23:24       ` yoda zhong
  0 siblings, 0 replies; 5+ messages in thread
From: yoda zhong @ 2016-09-01 23:24 UTC (permalink / raw)
  To: buildroot

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>

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

end of thread, other threads:[~2016-09-01 23:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-31 23:43 [Buildroot] How to flash eMMC yoda zhong
2016-09-01  6:08 ` Arnout Vandecappelle
2016-09-01 17:14   ` yoda zhong
2016-09-01 21:11     ` Arnout Vandecappelle
2016-09-01 23:24       ` yoda zhong

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