cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
551 Views
Registered: ‎12-04-2019

u-boot 2020 tftpboot and emmc failing

Jump to solution

I am pretty new to u-boot configuration. I followed the procedure for my custom board

https://forums.xilinx.com/t5/Embedded-Linux/PETALINUX-2020-1-build-fails-for-u-boot-xlnx-for-ultra96v2-board/m-p/1149442/highlight/true#M45137

except that i configured zynqmp-generic in the yocto settings

u-boot is booting neither in tftpboot nor in emmc

 

U-Boot 2020.01 (Sep 21 2020 - 14:23:42 +0000)

Model: ZynqMP HTIC Rev1.0
Board: Xilinx ZynqMP
DRAM:  4 GiB
PMUFW:	v1.1
EL Level:	EL2
Chip ID:	zu7ev
NAND:  0 MiB
MMC:   mmc@ff160000: 0, mmc@ff170000: 1
In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Bootmode: EMMC_MODE
Reset reason:	EXTERNAL 
Net:   
ZYNQ GEM: ff0b0000, mdio bus ff0b0000, phyaddr -1, interface rgmii-id

Warning: ethernet@ff0b0000 using MAC address from DT
eth0: ethernet@ff0b0000
Hit any key to stop autoboot:  0 
ZynqMP> setenv ipaddr 10.42.0.143
ZynqMP> setenv serverip 10.42.0.1
ZynqMP> tftpboot image.ub
Using ethernet@ff0b0000 device
TFTP from server 10.42.0.1; our IP address is 10.42.0.143
Filename 'image.ub'.
Load address: 0x8000000
Loading: *
ARP Retry count exceeded; starting again

 

 

also it is not booting from emmc

 

 

U-Boot 2020.01 (Sep 21 2020 - 14:23:42 +0000)

Model: ZynqMP HTIC Rev1.0
Board: Xilinx ZynqMP
DRAM:  4 GiB
PMUFW:	v1.1
EL Level:	EL2
Chip ID:	zu7ev
NAND:  0 MiB
MMC:   mmc@ff160000: 0, mmc@ff170000: 1
In:    serial@ff000000
Out:   serial@ff000000
Err:   serial@ff000000
Bootmode: EMMC_MODE
Reset reason:	EXTERNAL 
Net:   
ZYNQ GEM: ff0b0000, mdio bus ff0b0000, phyaddr -1, interface rgmii-id

Warning: ethernet@ff0b0000 using MAC address from DT
eth0: ethernet@ff0b0000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
## Executing script at 20000000
Wrong image format for "source" command
SCRIPT FAILED: continuing...
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Card did not respond to voltage select!
Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)
SCRIPT FAILED: continuing...


no devices available
SCRIPT FAILED: continuing...
starting USB...
Bus dwc3@fe200000: Register 2000440 NbrPorts 2
Starting the controller
USB XHCI 1.00
Bus dwc3@fe300000: Register 2000440 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus dwc3@fe200000 for devices... cannot reset port 1!?
1 USB Device(s) found
scanning bus dwc3@fe300000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device

Device 1: unknown device
scanning bus for devices...
SATA link 0 timeout.
SATA link 1 timeout.
AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst 

Device 0: unknown device
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
BOOTP broadcast 4
BOOTP broadcast 5
BOOTP broadcast 6
BOOTP broadcast 7
BOOTP broadcast 8
BOOTP broadcast 9
BOOTP broadcast 10
BOOTP broadcast 11
BOOTP broadcast 12
BOOTP broadcast 13
BOOTP broadcast 14
BOOTP broadcast 15
BOOTP broadcast 16
BOOTP broadcast 17

Retry time exceeded; starting again
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/01-00-0a-35-00-22-01
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-zynqmp-zynqmp
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-zynqmp
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
*** ERROR: `serverip' not set
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
*** ERROR: `serverip' not set

 

 

What is the problem? How can I resolve the issue?

0 Kudos
Reply
1 Solution

Accepted Solutions
447 Views
Registered: ‎12-04-2019

adding boot.scr in the emmc and changing petalinuxbsp.conf file solved the problem

#User Configuration

#OE_TERMINAL = "tmux"
OE_TERMINAL = "screen"

# Add EXTRA_IMAGEDEPENDS default components
EXTRA_IMAGEDEPENDS_append_zynqmp = " virtual/fsbl virtual/pmu-firmware arm-trusted-firmware"
EXTRA_IMAGEDEPENDS_append_zynq = " virtual/fsbl"
EXTRA_IMAGEDEPENDS_append_microblaze = " virtual/fsboot virtual/elfrealloc"


#Remove all qemu contents
IMAGE_CLASSES_remove = "image-types-xilinx-qemu qemuboot-xilinx"
IMAGE_FSTYPES_remove = "wic.qemu-sd"

EXTRA_IMAGEDEPENDS_remove = "qemu-helper-native virtual/boot-bin"

 

View solution in original post

0 Kudos
Reply
3 Replies
Teacher
Teacher
538 Views
Registered: ‎01-28-2008

Hi gokulakrishnan.ra@htic.iitm.ac.in 

  By changing the Yocto machine setting, the build is not defining important hardware settings like the Ethernet PHY interface. So it boots, but has no information to find the network device in the case of TFTP boot.

  I'd suggest either using the original machine setting for the target hardware (i.e. Ultra96v2), or at least take whichever settings are defined in the original device tree and import them into your design.

 

Thanks,

-Pat

 

Give kudos if helpful. Accept as solution if it solves your problem.
https://tuxengineering.com/blog

0 Kudos
Reply
501 Views
Registered: ‎12-04-2019

I used the device tree given for the board, where in the gem0 node is specified for ethernet.

But when I build the petalinux,
I get the following warnings. Are those a concern?

INFO: sourcing build tools
[INFO] building project
[INFO] generating Kconfig for project
[INFO] silentconfig project
[INFO] sourcing build environment
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating plnxtool conf
[INFO] generating u-boot configuration files, This will be deprecated in upcoming releases
[INFO] generating kernel configuration files, This will be deprecated in upcoming releases
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-image-minimal
Parsing recipes: 100% |#################################################################| Time: 0:02:04
Parsing of 2961 .bb files complete (0 cached, 2961 parsed). 4230 targets, 168 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim from file:///home/htic-broncho/iw20/HTIC_ZYNQMP/components/yocto/downloads/uninative/9498d8bba047499999a7310ac2576d0796461184965351a56f6d32c888a1f216/x86_64-nativesdk-libc.tar.xz;sha256sum=9498d8bba047499999a7310ac2576d0796461184965351a56f6d32c888a1f216
Initialising tasks: 100% |##############################################################| Time: 0:00:05
Checking sstate mirror object availability: 100% |######################################| Time: 0:01:27
Sstate summary: Wanted 1442 Found 986 Missed 456 Current 0 (68% match, 0% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: linux-xlnx: compiling from external source tree /home/htic-broncho/iw20/linux-xlnx
WARNING: arm-trusted-firmware-2.0-xilinx-v2020.1+gitAUTOINC+5918e656ef-r0 do_package: arm-trusted-firmware: NOT adding alternative provide /boot/arm-trusted-firmware.elf: /boot/arm-trusted-firmware-999.elf does not exist
WARNING: device-tree-xilinx-v2020.1+gitAUTOINC+bc84458333-r0 do_package: device-tree: NOT adding alternative provide /boot/device-tree.dtb: /boot/device-tree-999.dtb does not exist
NOTE: u-boot-xlnx: compiling from external source tree /home/htic-broncho/iw20/u-boot-xlnx/
WARNING: pmu-firmware-2020.1+gitAUTOINC+6cbb920f4d-r0 do_package: pmu-firmware: NOT adding alternative provide /boot/pmu-firmware.elf: /boot/pmu-firmware-999.elf does not exist
WARNING: fsbl-2020.1+gitAUTOINC+6cbb920f4d-r0 do_package: fsbl: NOT adding alternative provide /boot/fsbl.elf: /boot/fsbl-999.elf does not exist
NOTE: Tasks Summary: Attempted 4876 tasks of which 1749 didn't need to be rerun and all succeeded.

Summary: There were 4 WARNING messages shown.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] successfully built project

0 Kudos
Reply
448 Views
Registered: ‎12-04-2019

adding boot.scr in the emmc and changing petalinuxbsp.conf file solved the problem

#User Configuration

#OE_TERMINAL = "tmux"
OE_TERMINAL = "screen"

# Add EXTRA_IMAGEDEPENDS default components
EXTRA_IMAGEDEPENDS_append_zynqmp = " virtual/fsbl virtual/pmu-firmware arm-trusted-firmware"
EXTRA_IMAGEDEPENDS_append_zynq = " virtual/fsbl"
EXTRA_IMAGEDEPENDS_append_microblaze = " virtual/fsboot virtual/elfrealloc"


#Remove all qemu contents
IMAGE_CLASSES_remove = "image-types-xilinx-qemu qemuboot-xilinx"
IMAGE_FSTYPES_remove = "wic.qemu-sd"

EXTRA_IMAGEDEPENDS_remove = "qemu-helper-native virtual/boot-bin"

 

View solution in original post

0 Kudos
Reply