xilinx_zync_zedboard u-boot tftp load and run issue
Heinz Junkes
junkes at fhi-berlin.mpg.de
Thu Jun 25 15:25:37 UTC 2020
Hallo,
i just can't get it to load and start a rtems-exe via tftp in u-boot.
I have tried many variations now. Without success. This one should work, right?
pwd: build/b-xilinx_zynq_zedboard/arm-rtems5/c/xilinx_zynq_zedboard/testsuites/samples
ls -l ticker*
-rwxr-xr-x 1 junkes staff 2822792 Jun 23 09:24 ticker.exe
ticker:
total 264
-rw-r--r-- 1 junkes staff 82416 Jun 23 09:24 ticker-init.o
-rw-r--r-- 1 junkes staff 48744 Jun 23 09:24 ticker-tasks.o
To create an image file for u-boot I make :
[junkes at h epics]$ more rtems-zynq-image
#!/bin/sh
OBJCOPY_FOR_TARGET=arm-rtems5-objcopy
OBJCOPY="$OBJCOPY_FOR_TARGET"
EXE_NAME=$1
START_ADDR=0x00104000
ENTRY_ADDR=0x00104000
${OBJCOPY} -R -S --strip-debug -O binary "$EXE_NAME" "$EXE_NAME.bin" || exit 1
cat "$EXE_NAME.bin" | gzip -9 >"$EXE_NAME.gz"
mkimage \
-A arm -O rtems -T kernel -a $START_ADDR -e $ENTRY_ADDR -n "EPICS" \
-C gzip -d "$EXE_NAME.gz" "$EXE_NAME.img”
Now when I want to start the ticker.img file on the Zync u-boot:
Zynq> set serverip 141.14.128.9
Zynq> tftpboot ticker.img
Using ethernet at e000b000 device
TFTP from server 141.14.128.9; our IP address is 141.14.128.46
Filename 'ticker.img'.
Load address: 0x10000000
Loading: ###
523.4 KiB/s
done
Bytes transferred = 34847 (881f hex)
Zynq> bootm
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Zynq> go 0x10000000
## Starting application at 0x10000000 ...
...nothing happens…
Danke, Heinz
More information about the users
mailing list