UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor tavish_n
Visitor
145 Views
Registered: ‎06-06-2019

u-boot from petalinux is missing most commands

Jump to solution

Here is the boot log and printenv contents:

U-Boot 2018.01 (Sep 09 2019 - 07:01:56 +0000) Xilinx Zynq ZC702

Board: Xilinx Zynq
Silicon: v3.1
DRAM:  ECC disabled 512 MiB
MMC:   mmc@e0100000: 0 (SD)
** No device specified **
Using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Board: Xilinx Zynq
Silicon: v3.1
U-BOOT for test_boot

Hit any key to stop autoboot:  0
## Error: "uenvboot" not defined
## Error: "cp_kernel2ram" not defined
Zynq> printenv
arch=arm
autoload=no
baudrate=115200
board=zynq
board_name=zynq
bootcmd=run default_bootcmd
bootdelay=4
clobstart=0x10000000
console=console=ttyPS0,115200
cpu=armv7
default_bootcmd=run uenvboot; run cp_kernel2ram && bootm ${netstart}
dtbnetstart=@dtbnstart@
fdtcontroladdr=1ffabb10
loadaddr=0x10000000
modeboot=sdboot
netstart=0x10000000
psserial0=setenv stdout ttyPS0;setenv stdin ttyPS0
sdbootdev=0
serial=setenv stdout serial;setenv stdin serial
soc=zynq
stderr=serial@e0001000
stdin=serial@e0001000
stdout=serial@e0001000
vendor=xilinx

Environment size: 589/524284 bytes

I'm using petalinux 2018.3, not doing anything compilcated, just building u-boot with the default settings. I looked at the forums, but couldn't find anybody else facing similar issues. Any ideas what might be wrong?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Visitor tavish_n
Visitor
100 Views
Registered: ‎06-06-2019

Re: u-boot from petalinux is missing most commands

Jump to solution

Hi @shabbirk,

I could not resolve my issue if I'm using the petalinux flow, but I've for the moment switched to building u-boot separately and building BOOT.BIN separately also.

Thanks,

Tavish

0 Kudos
2 Replies
Moderator
Moderator
125 Views
Registered: ‎12-04-2016

Re: u-boot from petalinux is missing most commands

Jump to solution

Hi @tavish_n 

I am not sure exactly how you are building petalinux. I mean whether with BSP or your custom HDF. However, I tried booting uboot on zc702 and here is the printenv log

Zynq> pri

arch=arm
autoload=no
baudrate=115200
board=zynq
board_name=zynq
boot_img=BOOT.BIN
bootcmd=run default_bootcmd
bootdelay=4
bootenv=uEnv.txt
bootenvsize=0x20000
bootenvstart=0x500000
clobstart=0x10000000
console=console=ttyPS0,115200
cp_kernel2ram=mmcinfo && fatload mmc ${sdbootdev} ${netstart} ${kernel_img}
cpu=armv7
default_bootcmd=run uenvboot; run cp_kernel2ram && bootm ${netstart}
dfu_mmc_info=set dfu_alt_info ${kernel_image} fat 0 1\\;dfu_mmc=run dfu_mmc_info && dfu 0 mmc 0
dfu_ram=run dfu_ram_info && dfu 0 ram 0
dfu_ram_info=setenv dfu_alt_info image.ub ram $netstart 0x1e00000
dnsip=10.0.2.3
dtb_img=system.dtb
dtbnetstart=0x23fff000
eraseenv=sf probe 0 && sf erase ${bootenvstart} ${bootenvsize}
ethact=ethernet@e000b000
ethaddr=00:0a:35:00:1e:53
fault=echo ${img} image size is greater than allocated place - partition ${img} is NOT UPDATED
fdtcontroladdr=3ffa5360
gatewayip=10.0.2.2
importbootenv=echo "Importing environment from SD ..."; env import -t ${loadbootenv_addr} $filesize
install_boot=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${boot_img} ${filesize}
install_jffs2=sf probe 0 && sf erase ${jffs2start} ${jffs2size} && sf write ${clobstart} ${jffs2start} ${filesize}
install_kernel=mmcinfo && fatwrite mmc ${sdbootdev} ${clobstart} ${kernel_img} ${filesize}
ipaddr=10.0.2.15
jffs2_img=rootfs.jffs2
kernel_img=image.ub
load_boot=tftpboot ${clobstart} ${boot_img}
load_dtb=tftpboot ${clobstart} ${dtb_img}
load_jffs2=tftpboot ${clobstart} ${jffs2_img}
load_kernel=tftpboot ${clobstart} ${kernel_img}
loadaddr=0x10000000
loadbootenv=load mmc $sdbootdev:$partid ${loadbootenv_addr} ${bootenv}
loadbootenv_addr=0x00100000
modeboot=jtagboot
nc=setenv stdout nc;setenv stdin nc;
netboot=tftpboot ${netstart} ${kernel_img} && bootm
netmask=255.255.255.0
netstart=0x10000000
psserial0=setenv stdout ttyPS0;setenv stdin ttyPS0
sd_uEnvtxt_existence_test=test -e mmc $sdbootdev:$partid /uEnv.txt
sd_update_dtb=echo Updating dtb from SD; mmcinfo && fatload mmc ${sdbootdev}:1 ${clobstart} ${dtb_img} && run install_dtb
sd_update_jffs2=echo Updating jffs2 from SD; mmcinfo && fatload mmc ${sdbootdev}:1 ${clobstart} ${jffs2_img} && run install_jffs2
sdbootdev=0
serial=setenv stdout serial;setenv stdin serial
serverip=172.25.120.174
soc=zynq
stderr=serial@e0001000
stdin=serial@e0001000
stdout=serial@e0001000
test_crc=if imi ${clobstart}; then run test_img; else echo ${img} Bad CRC - ${img} is NOT UPDATED; fi
test_img=setenv var "if test ${filesize} -gt ${psize}; then run fault; else run ${installcmd}; fi"; run var; setenv var
thor_mmc=run dfu_mmc_info && thordown 0 mmc 0
thor_ram=run dfu_ram_info && thordown 0 ram 0
uenvboot=if run sd_uEnvtxt_existence_test; then run loadbootenv; echo Loaded environment from ${bootenv}; run importbootenv; fi; if test -n $uenvcmd; then echo Running uenvcmd ...; run uenvcmd; fi
update_boot=setenv img boot; setenv psize ${bootsize}; setenv installcmd "install_boot"; run load_boot ${installcmd}; setenv img; setenv psize; setenv installcmd
update_dtb=setenv img dtb; setenv psize ${dtbsize}; setenv installcmd "install_dtb"; run load_dtb test_img; setenv img; setenv psize; setenv installcmd
update_jffs2=setenv img jffs2; setenv psize ${jffs2size}; setenv installcmd "install_jffs2"; run load_jffs2 test_img; setenv img; setenv psize; setenv installcmd
update_kernel=setenv img kernel; setenv psize ${kernelsize}; setenv installcmd "install_kernel"; run load_kernel ${installcmd}; setenv img; setenv psize; setenv installcmd
vendor=xilinx

Environment size: 3640/131068 bytes

 

 

0 Kudos
Highlighted
Visitor tavish_n
Visitor
101 Views
Registered: ‎06-06-2019

Re: u-boot from petalinux is missing most commands

Jump to solution

Hi @shabbirk,

I could not resolve my issue if I'm using the petalinux flow, but I've for the moment switched to building u-boot separately and building BOOT.BIN separately also.

Thanks,

Tavish

0 Kudos