All of lore.kernel.org
 help / color / mirror / Atom feed
* Freescale imx beta/release sd burning questions
@ 2014-05-22 15:33 tom campbell
  2014-05-22 15:45 ` Gary Thomas
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: tom campbell @ 2014-05-22 15:33 UTC (permalink / raw)
  To: meta-freescale

List:

I've built the Freescale imx6 beta successfully from:
      fsl-yocto-3.10.17-1.0.0-beta.tar.gz
      L3.10.17_1.0.0_beta_131223_images_MX6.tar.gz
cd fsl-community-bsp-platform &&\
     MACHINE=imx6slevk source setup-environment build-evk &&\
     bitbake core-image-minimal


I have a question about sd card partitioning.  The instructions in 
Freescale Yocto user guide 4.1 say:
     sudo dd if=<image name>.sdcard of=/dev/sd<partition>
     sudo dd if=<image name>.sdcard of=/dev/sd<partition bs=1M && sync

No where can I find the partitioning requirements for the sd card.
How is the SD card to be partitioned?
Don't really understand the two commands above.  Unless <partition> is 
different, only difference is block size of writes
Can someone point me to the partitioning requirements?

thx
tom campbell



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

* Re: Freescale imx beta/release sd burning questions
  2014-05-22 15:33 Freescale imx beta/release sd burning questions tom campbell
@ 2014-05-22 15:45 ` Gary Thomas
  2014-05-22 15:51 ` David Sowa
  2014-05-24  0:00 ` Matthew Reynolds
  2 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2014-05-22 15:45 UTC (permalink / raw)
  To: meta-freescale

On 2014-05-22 09:33, tom campbell wrote:
> List:
>
> I've built the Freescale imx6 beta successfully from:
>       fsl-yocto-3.10.17-1.0.0-beta.tar.gz
>       L3.10.17_1.0.0_beta_131223_images_MX6.tar.gz
> cd fsl-community-bsp-platform &&\
>      MACHINE=imx6slevk source setup-environment build-evk &&\
>      bitbake core-image-minimal
>
>
> I have a question about sd card partitioning.  The instructions in Freescale Yocto user guide 4.1 say:
>      sudo dd if=<image name>.sdcard of=/dev/sd<partition>
>      sudo dd if=<image name>.sdcard of=/dev/sd<partition bs=1M && sync
>
> No where can I find the partitioning requirements for the sd card.
> How is the SD card to be partitioned?
> Don't really understand the two commands above.  Unless <partition> is different, only difference is block size of writes
> Can someone point me to the partitioning requirements?

You don't need to partition the SD card - the image is complete,
with it's own partitioning built in.  Those directions are a bit
misleading as it should read of=/dev/sdX, where sdX is the name
of your SD device; you should never use a partition device here,
rather the entire device.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: Freescale imx beta/release sd burning questions
  2014-05-22 15:33 Freescale imx beta/release sd burning questions tom campbell
  2014-05-22 15:45 ` Gary Thomas
@ 2014-05-22 15:51 ` David Sowa
  2014-05-22 16:31   ` tom campbell
  2014-05-24  0:00 ` Matthew Reynolds
  2 siblings, 1 reply; 5+ messages in thread
From: David Sowa @ 2014-05-22 15:51 UTC (permalink / raw)
  To: tom campbell; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1844 bytes --]

Tom,

The .sdcard file produced by the bitbake process has the partition
information baked in already so you want to write it to the raw sd card
device.

On my particular system I write the files to /dev/sdX not to /dev/sdX1.
 The exact letter your sd card shows up as will depend on what other
devices are present in your system.

On my Ubuntu dev system when I insert the sd card the system automounts the
existing partitions so I always need to umount the partitions before I can
write to the raw device.  So the whole process looks like

insert sd card
sudo umount /dev/sdX1
sudo umount /dev/sdX2
sudo dd if=core-image-minimal-boardname.sdcard of=/dev/sdX bs=4M






On Thu, May 22, 2014 at 11:33 AM, tom campbell
<content@dinkumsoftware.com>wrote:

> List:
>
> I've built the Freescale imx6 beta successfully from:
>      fsl-yocto-3.10.17-1.0.0-beta.tar.gz
>      L3.10.17_1.0.0_beta_131223_images_MX6.tar.gz
> cd fsl-community-bsp-platform &&\
>     MACHINE=imx6slevk source setup-environment build-evk &&\
>     bitbake core-image-minimal
>
>
> I have a question about sd card partitioning.  The instructions in
> Freescale Yocto user guide 4.1 say:
>     sudo dd if=<image name>.sdcard of=/dev/sd<partition>
>     sudo dd if=<image name>.sdcard of=/dev/sd<partition bs=1M && sync
>
> No where can I find the partitioning requirements for the sd card.
> How is the SD card to be partitioned?
> Don't really understand the two commands above.  Unless <partition> is
> different, only difference is block size of writes
> Can someone point me to the partitioning requirements?
>
> thx
> tom campbell
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

[-- Attachment #2: Type: text/html, Size: 2687 bytes --]

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

* Re: Freescale imx beta/release sd burning questions
  2014-05-22 15:51 ` David Sowa
@ 2014-05-22 16:31   ` tom campbell
  0 siblings, 0 replies; 5+ messages in thread
From: tom campbell @ 2014-05-22 16:31 UTC (permalink / raw)
  To: David Sowa; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]

Thanks all.
That cleared up my confusion and works.
tom campbell

On 05/22/2014 11:51 AM, David Sowa wrote:
> Tom,
>
> The .sdcard file produced by the bitbake process has the partition 
> information baked in already so you want to write it to the raw sd 
> card device.
>
> On my particular system I write the files to /dev/sdX not to 
> /dev/sdX1.  The exact letter your sd card shows up as will depend on 
> what other devices are present in your system.
>
> On my Ubuntu dev system when I insert the sd card the system 
> automounts the existing partitions so I always need to umount the 
> partitions before I can write to the raw device.  So the whole process 
> looks like
>
> insert sd card
> sudo umount /dev/sdX1
> sudo umount /dev/sdX2
> sudo dd if=core-image-minimal-boardname.sdcard of=/dev/sdX bs=4M
>
>
>
>
>
>
> On Thu, May 22, 2014 at 11:33 AM, tom campbell 
> <content@dinkumsoftware.com <mailto:content@dinkumsoftware.com>> wrote:
>
>     List:
>
>     I've built the Freescale imx6 beta successfully from:
>          fsl-yocto-3.10.17-1.0.0-beta.tar.gz
>          L3.10.17_1.0.0_beta_131223_images_MX6.tar.gz
>     cd fsl-community-bsp-platform &&\
>         MACHINE=imx6slevk source setup-environment build-evk &&\
>         bitbake core-image-minimal
>
>
>     I have a question about sd card partitioning.  The instructions in
>     Freescale Yocto user guide 4.1 say:
>         sudo dd if=<image name>.sdcard of=/dev/sd<partition>
>         sudo dd if=<image name>.sdcard of=/dev/sd<partition bs=1M && sync
>
>     No where can I find the partitioning requirements for the sd card.
>     How is the SD card to be partitioned?
>     Don't really understand the two commands above.  Unless
>     <partition> is different, only difference is block size of writes
>     Can someone point me to the partitioning requirements?
>
>     thx
>     tom campbell
>
>     -- 
>     _______________________________________________
>     meta-freescale mailing list
>     meta-freescale@yoctoproject.org
>     <mailto:meta-freescale@yoctoproject.org>
>     https://lists.yoctoproject.org/listinfo/meta-freescale
>
>


[-- Attachment #2: Type: text/html, Size: 4187 bytes --]

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

* Re: Freescale imx beta/release sd burning questions
  2014-05-22 15:33 Freescale imx beta/release sd burning questions tom campbell
  2014-05-22 15:45 ` Gary Thomas
  2014-05-22 15:51 ` David Sowa
@ 2014-05-24  0:00 ` Matthew Reynolds
  2 siblings, 0 replies; 5+ messages in thread
From: Matthew Reynolds @ 2014-05-24  0:00 UTC (permalink / raw)
  To: tom campbell; +Cc: meta-freescale


[-- Attachment #1.1: Type: text/plain, Size: 410 bytes --]

Tom,

I have  been using the yocto 3.10.17 dora release.  When I write the
image I don't do it to a partition, but to the device.

For example,
sudo dd dse-image-x11-imx6qdsedvr.sdcard of=/dev/sdd bs=1M

The image is going to contain the u-boot, a partition for the kernel and
a partition for the file system. They will be created on the device by
writing the image this way.

Regards,
Matthew


[-- Attachment #1.2: Type: text/html, Size: 885 bytes --]

[-- Attachment #2: Type: message/rfc822, Size: 4213 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 1017 bytes --]

List:

I've built the Freescale imx6 beta successfully from:
      fsl-yocto-3.10.17-1.0.0-beta.tar.gz
      L3.10.17_1.0.0_beta_131223_images_MX6.tar.gz
cd fsl-community-bsp-platform &&\
     MACHINE=imx6slevk source setup-environment build-evk &&\
     bitbake core-image-minimal


I have a question about sd card partitioning.  The instructions in
Freescale Yocto user guide 4.1 say:
     sudo dd if=<image name>.sdcard of=/dev/sd<partition>
     sudo dd if=<image name>.sdcard of=/dev/sd<partition bs=1M && sync

No where can I find the partitioning requirements for the sd card.
How is the SD card to be partitioned?
Don't really understand the two commands above.  Unless <partition> is
different, only difference is block size of writes
Can someone point me to the partitioning requirements?

thx
tom campbell

--
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale



[-- Attachment #2.1.2: Type: text/html, Size: 1723 bytes --]

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

end of thread, other threads:[~2014-05-24  0:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-22 15:33 Freescale imx beta/release sd burning questions tom campbell
2014-05-22 15:45 ` Gary Thomas
2014-05-22 15:51 ` David Sowa
2014-05-22 16:31   ` tom campbell
2014-05-24  0:00 ` Matthew Reynolds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.