11-21-2019 04:06 PM - edited 11-21-2019 04:08 PM
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.
12-03-2019 01:20 PM - edited 12-03-2019 01:24 PM
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
11-22-2019 02:05 AM - edited 11-22-2019 01:10 PM
@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.
11-25-2019 02:21 PM
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.
11-26-2019 05:11 AM
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
11-28-2019 03:08 PM
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.
12-03-2019 01:20 PM - edited 12-03-2019 01:24 PM
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
11-18-2020 12:17 AM
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?
11-25-2020 01:45 AM - edited 11-25-2020 01:48 AM
@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...