> -----Original Message----- > From: users [mailto:users-boun...@rtems.org] On Behalf Of Heinz Junkes > Sent: Thursday, June 25, 2020 5:26 PM > To: rtems-us...@rtems.org > Subject: xilinx_zync_zedboard u-boot tftp load and run issue > > 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@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” >
Maybe you have a similar problem like I had with the RaspberryPi recently?: https://lists.rtems.org/pipermail/users/2020-June/067673.html Changing the option to "-O linux" fixed it for me, but I am not sure if the Zedboard also uses device trees already. Best regards, Jan > 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@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 > > _______________________________________________ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users