Skip to contentSkip to conversation

Problem to write core-image-minimal of AM437x-evm on SD card

DISCUSSION [email protected] 4 participants 6 messages Feb 1, 2016 – Feb 2, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 16 lines · On Sun, Jan 31, 2016 at 8:19 PM, <[email protected]> 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

Quoted 5 lines

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

Quoted 17 lines

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
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#2 lore raw

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: [email protected]
Cc: yocto texas
Subject: Re: [meta-ti] Problem to write core-image-minimal of AM437x-evm on SD card

Quoted 16 lines · On Sun, Jan 31, 2016 at 8:19 PM, <[email protected]> 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

Quoted 5 lines

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

Quoted 17 lines

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
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw
Quoted 6 lines · On Mon, Feb 1, 2016 at 4:06 AM, <[email protected]> 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

Quoted 74 lines

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: [email protected]
Cc: yocto texas
Subject: Re: [meta-ti] Problem to write core-image-minimal of AM437x-evm on SD card

Quoted 17 lines · On Sun, Jan 31, 2016 at 8:19 PM, <[email protected]> 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

Quoted 7 lines

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

Quoted 17 lines

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
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#5 lore raw
In reply to [email protected]

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

Signature · 1 line
Denys
Quoted 29 lines · On Mon, Feb 01, 2016 at 09:49:48AM +0530, [email protected] 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

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#4 lore raw
In reply to [email protected]
Quoted 4 lines · On pon, 2016-02-01 at 17:36 +0530, [email protected] 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?

Quoted 8 lines

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.

Signature · 19 lines
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.