cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Scholar
Scholar
1,607 Views
Registered: ‎05-14-2017

Writing petalinux linux image to eMMC

Jump to solution

Hello,

I am using an UltraZed-EG and I am able to build Linux images using petalinux.

This boards comes with an eMMC and I would like to boot Linux from non volatile memory.

UG1144 doesn't explain how to configure this kind of install. Could you please provide a guide to flash the eMMC with Linux ?

Thanks.

s.

0 Kudos
Reply
1 Solution

Accepted Solutions
Scholar
Scholar
1,364 Views
Registered: ‎05-14-2017

SOLVED: the process is clearly stated into UG1137 section eMMC18 Boot Mode.

So boot an SD card image, make MMC partitions FAT32 (I set 200 MB) and ext4 type and mount them in some dir (e.g. /tmp/mmc1 for FAT32 and /tmp/mmc2 for ext4).

Copy BOOT.bin and image.ub to /tmp/mmc1 and extract rootfs file to /tmp/mmc2.

I also used an uEnv.txt file to set root=/dev/mmcblk0p2 into the u-boot's bootargs variable.

Hope it helps other users.

Regards.

s

View solution in original post

7 Replies
Scholar
Scholar
1,564 Views
Registered: ‎05-14-2017

@simozz wrote:

UG1144 doesn't explain how to configure this kind of install.


It seems I hit the wrong UG1144. The correct one (version 2018.3 according to toolset version) explains this steps into Configuring JFFS2 Boot section.

Regards,

s.

0 Kudos
Reply
Scholar
Scholar
1,504 Views
Registered: ‎05-14-2017

Hello,

I am stuck with this task, writing the petalinux distro into the MMC.

Would someone from Xilinx's staff suggest the correct petalinux configuration flow (mainly u-boot) to install the rootfs into the MMC ?

Thanks.

s.

0 Kudos
Reply
Moderator
Moderator
1,472 Views
Registered: ‎12-04-2016

Hi @simozz 

Could you please go through the below answer records on eMMC programming & booting and see if that helps you:

https://www.xilinx.com/support/answers/71019.html

https://www.xilinx.com/support/answers/67157.html

 

Best Regards

Shabbir

0 Kudos
Reply
Scholar
Scholar
1,409 Views
Registered: ‎05-14-2017

Hello @shabbirk ,

Regarding AR# 67157 (2nd link from your last message) and step 3b (XSDB session), could you please clarify how did the memory addresses and value in the mwr (bold) commands are being determined ?

connect
exec sleep 4
targets -set -filter {name =~ "PSU"}
# write bootloop and release A53-0 reset
mwr 0xffff0000 0x14000000
mwr 0xFD1A0104 0x380E
exec sleep 1
# download and run FSBL
targets -set -filter {name =~ "Cortex-A53 #0"}
# downloading FSBL
dow zynqmp_fsbl.elf
con
exec sleep 4
stop
exec sleep 1
mwr 0xFF18031C 0x64406440  
mwr 0xFF180314 0x01150000
mwr 0xFF180318 0x00450043
exec sleep 1
dow u-boot.elf
dow bl31.elf
dow -data emmc.img 0x8000                 
(NOTE: This step can be replaced by "tftpb 8000 emm.img" from u-boot prompt to improve transfer speed)
con

Thanks.

Regards,

s.

 

0 Kudos
Reply
Scholar
Scholar
1,365 Views
Registered: ‎05-14-2017

SOLVED: the process is clearly stated into UG1137 section eMMC18 Boot Mode.

So boot an SD card image, make MMC partitions FAT32 (I set 200 MB) and ext4 type and mount them in some dir (e.g. /tmp/mmc1 for FAT32 and /tmp/mmc2 for ext4).

Copy BOOT.bin and image.ub to /tmp/mmc1 and extract rootfs file to /tmp/mmc2.

I also used an uEnv.txt file to set root=/dev/mmcblk0p2 into the u-boot's bootargs variable.

Hope it helps other users.

Regards.

s

View solution in original post

Observer
Observer
441 Views
Registered: ‎06-25-2019

I am working on a similar requirement. 

I have a custom board based on the ultrazedEV SOM, the custom board doesn't have an SD card. I need to write my Petalinux images to the eMMC flash.

So what can be the procedure for booting from eMMC flash?

0 Kudos
Reply
Observer
Observer
390 Views
Registered: ‎08-08-2018

@shahan.aHave you managed to find a solution? I have same probleme here: I would like to boot from eMMC without having a SD-card slot present for preparation.

Would you share your solution and experiences? Thanks in advance. Bye, Marc.

P.S.: perhaps just use a ramdisk in order to receive files via network (e.g. scp) and copy from there...

Tags (3)
0 Kudos
Reply