All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Problem to write core-image-minimal of AM437x-evm on SD card
@ 2016-02-01  4:19 winiston
  2016-02-01  5:22 ` Khem Raj
  2016-02-01 21:19 ` Denys Dmytriyenko
  0 siblings, 2 replies; 6+ messages in thread
From: winiston @ 2016-02-01  4:19 UTC (permalink / raw
  To: yocto texas

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

Dear,

I have successfully built core-minimal image of AM437x-evm using poky. The following files have been created under /tmp/deploy/images/am437x-evm directory.
  a.. core-image-minimal-am437x-evm.tar.bz2 
  b.. core-image-minimal-am437x-evm.tar.gz 
  c.. core-image-minimal-am437x-evm-20160127052452.rootfs.tar.gz 
  d.. MLO 
  e.. MLO-am437x-evm 
  f.. u-boot.img 
  g.. u-boot-am437x-evm.img 
  h.. zImage 
  i.. zImage--4.1.15+git0+b7b07f10f6-r3f-am43x-epos-evm-20160127052452.dtb
and many more files have been created. I wanted to write it on the sd card. How do I copy the images to sd card? I did not find any command to write the image. Kindly help me out to write the image on sd card. I could not go further to develop my project. I would be very thankful if you give me detail procedure to solve this issue.

Awaiting your valuable reply. Thanking you.


Regards,
Winiston.P
Futura Automation Pvt Ltd.

Ph :91-80-28375290 / 28375295
Fax :91-80-28375291

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

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

* Re: Problem to write core-image-minimal of AM437x-evm on SD card
  2016-02-01  4:19 Problem to write core-image-minimal of AM437x-evm on SD card winiston
@ 2016-02-01  5:22 ` Khem Raj
  2016-02-01 12:06   ` winiston
  2016-02-01 21:19 ` Denys Dmytriyenko
  1 sibling, 1 reply; 6+ messages in thread
From: Khem Raj @ 2016-02-01  5:22 UTC (permalink / raw
  To: winiston; +Cc: yocto texas

On Sun, Jan 31, 2016 at 8:19 PM,  <winiston@futuraautomation.com> wrote:
> Dear,
>
> I have successfully built core-minimal image of AM437x-evm using poky. The
> following files have been created under /tmp/deploy/images/am437x-evm
> directory.
>
> core-image-minimal-am437x-evm.tar.bz2
> core-image-minimal-am437x-evm.tar.gz
> core-image-minimal-am437x-evm-20160127052452.rootfs.tar.gz
> MLO
> MLO-am437x-evm
> u-boot.img
> u-boot-am437x-evm.img
> zImage
> zImage--4.1.15+git0+b7b07f10f6-r3f-am43x-epos-evm-20160127052452.dtb
>
> and many more files have been created. I wanted to write it on the sd card.
> How do I copy the images to sd card? I did not find any command to write the
> image. Kindly help me out to write the image on sd card. I could not go
> further to develop my project. I would be very thankful if you give me
> detail procedure to solve this issue.

you can use wic to generate sdcard image and then dd it into SD card
secondly you can use angstrom sdcard scripts to create your SD card partitions
and then copy MLO, uboot to boot partition and untar rootfs into
second partion manually

>
> Awaiting your valuable reply. Thanking you.
>
>
> Regards,
> Winiston.P
> Futura Automation Pvt Ltd.
>
> Ph :91-80-28375290 / 28375295
> Fax :91-80-28375291
>
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
>


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

* Re: Problem to write core-image-minimal of AM437x-evm on SD card
  2016-02-01  5:22 ` Khem Raj
@ 2016-02-01 12:06   ` winiston
  2016-02-01 17:06     ` Khem Raj
  2016-02-02  8:41     ` Maciek Borzecki
  0 siblings, 2 replies; 6+ messages in thread
From: winiston @ 2016-02-01 12:06 UTC (permalink / raw
  To: Khem Raj; +Cc: yocto texas

Dear,

Sorry...I am new to yocto project.I could not get "wic". How do I setup wic 
and "dd" it into sd card. I did not get angstrom script also. where can I 
get angstrom script ?  can you give the detailed procedure? Is there any 
related documentation available in yocto website?
Now I used "fdisk" command to format sdcard. I am able to copy MLO & 
u-image.img to BOOT partition. I extracted rootfs to secondary partition 
using"Ark" software.  But in the secondary partition, the files are not 
visible. In properties window, it shows the number of files and size of the 
files. I used that sd card to boot my am437x evm kit. It is not booting. 
What could be the error? Kindly give me the detailed procedure to copy the 
image. What are the files I need to copy for core-image-minimal kernel?
Note: I am using core-image-minimal

Regards,
Winiston.P
Futura Automation Pvt Ltd.

Ph :91-80-28375290 / 28375295
Fax :91-80-28375291
-----Original Message----- 
From: Khem Raj
Sent: Monday, February 01, 2016 10:52 AM
To: winiston@futuraautomation.com
Cc: yocto texas
Subject: Re: [meta-ti] Problem to write core-image-minimal of AM437x-evm on 
SD card

On Sun, Jan 31, 2016 at 8:19 PM,  <winiston@futuraautomation.com> wrote:
> Dear,
>
> I have successfully built core-minimal image of AM437x-evm using poky. The
> following files have been created under /tmp/deploy/images/am437x-evm
> directory.
>
> core-image-minimal-am437x-evm.tar.bz2
> core-image-minimal-am437x-evm.tar.gz
> core-image-minimal-am437x-evm-20160127052452.rootfs.tar.gz
> MLO
> MLO-am437x-evm
> u-boot.img
> u-boot-am437x-evm.img
> zImage
> zImage--4.1.15+git0+b7b07f10f6-r3f-am43x-epos-evm-20160127052452.dtb
>
> and many more files have been created. I wanted to write it on the sd 
> card.
> How do I copy the images to sd card? I did not find any command to write 
> the
> image. Kindly help me out to write the image on sd card. I could not go
> further to develop my project. I would be very thankful if you give me
> detail procedure to solve this issue.

you can use wic to generate sdcard image and then dd it into SD card
secondly you can use angstrom sdcard scripts to create your SD card 
partitions
and then copy MLO, uboot to boot partition and untar rootfs into
second partion manually

>
> Awaiting your valuable reply. Thanking you.
>
>
> Regards,
> Winiston.P
> Futura Automation Pvt Ltd.
>
> Ph :91-80-28375290 / 28375295
> Fax :91-80-28375291
>
> --
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti
> 



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

* Re: Problem to write core-image-minimal of AM437x-evm on SD card
  2016-02-01 12:06   ` winiston
@ 2016-02-01 17:06     ` Khem Raj
  2016-02-02  8:41     ` Maciek Borzecki
  1 sibling, 0 replies; 6+ messages in thread
From: Khem Raj @ 2016-02-01 17:06 UTC (permalink / raw
  To: winiston; +Cc: yocto texas

On Mon, Feb 1, 2016 at 4:06 AM,  <winiston@futuraautomation.com> wrote:
> Dear,
>
> Sorry...I am new to yocto project.I could not get "wic". How do I setup wic
> and "dd" it into sd card. I did not get angstrom script also. where can I
> get angstrom script ?  can you give the detailed procedure? Is there any
> related documentation available in yocto website?

see http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html
section 5.6

ideally take sdcard image from beagleboard.org and dd if=sdcard.image
of=/dev/sdX
which sdX is where sdcard is on your machine. this will prepare the card
along with image. Now you can mount the partitions individually and
replace the files
as you wish

> Now I used "fdisk" command to format sdcard. I am able to copy MLO &
> u-image.img to BOOT partition. I extracted rootfs to secondary partition
> using"Ark" software.  But in the secondary partition, the files are not
> visible. In properties window, it shows the number of files and size of the
> files. I used that sd card to boot my am437x evm kit. It is not booting.
> What could be the error? Kindly give me the detailed procedure to copy the
> image. What are the files I need to copy for core-image-minimal kernel?
> Note: I am using core-image-minimal
>
> Regards,
> Winiston.P
> Futura Automation Pvt Ltd.
>
> Ph :91-80-28375290 / 28375295
> Fax :91-80-28375291
> -----Original Message----- From: Khem Raj
> Sent: Monday, February 01, 2016 10:52 AM
> To: winiston@futuraautomation.com
> Cc: yocto texas
> Subject: Re: [meta-ti] Problem to write core-image-minimal of AM437x-evm on
> SD card
>
>
> On Sun, Jan 31, 2016 at 8:19 PM,  <winiston@futuraautomation.com> wrote:
>>
>> Dear,
>>
>> I have successfully built core-minimal image of AM437x-evm using poky. The
>> following files have been created under /tmp/deploy/images/am437x-evm
>> directory.
>>
>> core-image-minimal-am437x-evm.tar.bz2
>> core-image-minimal-am437x-evm.tar.gz
>> core-image-minimal-am437x-evm-20160127052452.rootfs.tar.gz
>> MLO
>> MLO-am437x-evm
>> u-boot.img
>> u-boot-am437x-evm.img
>> zImage
>> zImage--4.1.15+git0+b7b07f10f6-r3f-am43x-epos-evm-20160127052452.dtb
>>
>> and many more files have been created. I wanted to write it on the sd
>> card.
>> How do I copy the images to sd card? I did not find any command to write
>> the
>> image. Kindly help me out to write the image on sd card. I could not go
>> further to develop my project. I would be very thankful if you give me
>> detail procedure to solve this issue.
>
>
> you can use wic to generate sdcard image and then dd it into SD card
> secondly you can use angstrom sdcard scripts to create your SD card
> partitions
> and then copy MLO, uboot to boot partition and untar rootfs into
> second partion manually
>
>>
>> Awaiting your valuable reply. Thanking you.
>>
>>
>> Regards,
>> Winiston.P
>> Futura Automation Pvt Ltd.
>>
>> Ph :91-80-28375290 / 28375295
>> Fax :91-80-28375291
>>
>> --
>> _______________________________________________
>> meta-ti mailing list
>> meta-ti@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/meta-ti
>>
>


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

* Re: Problem to write core-image-minimal of AM437x-evm on SD card
  2016-02-01  4:19 Problem to write core-image-minimal of AM437x-evm on SD card winiston
  2016-02-01  5:22 ` Khem Raj
@ 2016-02-01 21:19 ` Denys Dmytriyenko
  1 sibling, 0 replies; 6+ messages in thread
From: Denys Dmytriyenko @ 2016-02-01 21:19 UTC (permalink / raw
  To: winiston; +Cc: yocto texas

How about reading some documentation? Since you use Poky, here's a relevant 
part for you to do it manually, just replace am335x and beaglebone with am437x 
and use the respective files you've built:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/README.hardware#n188

-- 
Denys


On Mon, Feb 01, 2016 at 09:49:48AM +0530, winiston@futuraautomation.com wrote:
> Dear,
> 
> I have successfully built core-minimal image of AM437x-evm using poky. The following files have been created under /tmp/deploy/images/am437x-evm directory.
>   a.. core-image-minimal-am437x-evm.tar.bz2 
>   b.. core-image-minimal-am437x-evm.tar.gz 
>   c.. core-image-minimal-am437x-evm-20160127052452.rootfs.tar.gz 
>   d.. MLO 
>   e.. MLO-am437x-evm 
>   f.. u-boot.img 
>   g.. u-boot-am437x-evm.img 
>   h.. zImage 
>   i.. zImage--4.1.15+git0+b7b07f10f6-r3f-am43x-epos-evm-20160127052452.dtb
> and many more files have been created. I wanted to write it on the sd card. How do I copy the images to sd card? I did not find any command to write the image. Kindly help me out to write the image on sd card. I could not go further to develop my project. I would be very thankful if you give me detail procedure to solve this issue.
> 
> Awaiting your valuable reply. Thanking you.
> 
> 
> Regards,
> Winiston.P
> Futura Automation Pvt Ltd.
> 
> Ph :91-80-28375290 / 28375295
> Fax :91-80-28375291

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



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

* Re: Problem to write core-image-minimal of AM437x-evm on SD card
  2016-02-01 12:06   ` winiston
  2016-02-01 17:06     ` Khem Raj
@ 2016-02-02  8:41     ` Maciek Borzecki
  1 sibling, 0 replies; 6+ messages in thread
From: Maciek Borzecki @ 2016-02-02  8:41 UTC (permalink / raw
  To: winiston, Khem Raj; +Cc: yocto texas

On pon, 2016-02-01 at 17:36 +0530, winiston@futuraautomation.com wrote:
> Sorry...I am new to yocto project.I could not get "wic". How do I setup wic
> and "dd" it into sd card. I did not get angstrom script also. where can I
> get angstrom script ?  can you give the detailed procedure? Is there any
> related documentation available in yocto website?
> Now I used "fdisk" command to format sdcard. I am able to copy MLO &
> u-image.img to BOOT partition. I extracted rootfs to secondary partition
> using"Ark" software.  But in the secondary partition, the files are not
> visible. In properties window, it shows the number of files and size of the
> files. I used that sd card to boot my am437x evm kit. It is not booting.
> What could be the error? Kindly give me the detailed procedure to copy the
> image. What are the files I need to copy for core-image-minimal kernel?
> Note: I am using core-image-minimal

An example kickstart is provided by Poky
(scripts/lib/wic/canned-wks/sdimage-bootpart.wks):

part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active
--align 4 --size 16
part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4

This sets up an image with 2 partitions, first one is FAT, aligned to
4kB, 16MB in size. The second one is ext4 and this is where your rootfs
will go.

To build an image run:
wic create sdimage-bootpart -e core-image-minimal

The boot partition is built by bootimg-partition wic source plugin and
it uses IMAGE_BOOT_FILES variable to figure out which files need to be
placed in the partition.  I've added a patch to meta-yocto-bsp to set
IMAGE_BOOT_FILES so that it was possible to build usable images for
BeagleBone Black. The change was not added to meta-ti, so you might want
to set it like this somewhere in your local.conf:

IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} MLO"

IIRC there's a number of options for building a bootable image am335x,
having MLO and uboot in a FAT partition is just one of them. If you
check the CPU manual there should be some indication on how the build
process pokes at different locations to find a first stage
bootloader.

-- 
Maciej Borzęcki
Senior Software Developer at Open-RnD Sp. z o.o., Poland
www.open-rnd.pl
mobile: +48 889 117 365, fax: +48 42 657 9079

Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem
lub poufne informacje i została wysłana wyłącznie do wiadomości i
użytku osób, do których została zaadresowana. Jeśli wiadomość została
otrzymana przypadkowo zabrania się jej kopiowania lub rozsyłania do
osób trzecich. W takim przypadku uprasza się o natychmiastowe
zniszczenie wiadomości oraz poinformowanie nadawcy o zaistniałej
sytuacji za pomocą wiadomości zwrotnej. Dziękujemy.

This message, including any attachments hereto, may contain privileged
or confidential information and is sent solely for the attention and
use of the intended addressee(s). If you are not an intended addressee,
you may neither use this message nor copy or deliver it to anyone. In
such case, you should immediately destroy this message and kindly notify
the sender by reply email. Thank you.




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

end of thread, other threads:[~2016-02-02  8:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01  4:19 Problem to write core-image-minimal of AM437x-evm on SD card winiston
2016-02-01  5:22 ` Khem Raj
2016-02-01 12:06   ` winiston
2016-02-01 17:06     ` Khem Raj
2016-02-02  8:41     ` Maciek Borzecki
2016-02-01 21:19 ` Denys Dmytriyenko

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.