Try to boot RTEMS6 on Zynq
Karel Gardas
karel.gardas at centrum.cz
Sat Mar 26 13:07:48 UTC 2022
You seems to use git version of RSB and your error below is python
related. IIRC RSB has recently transitioned from python2 to 3. By any
chance is your python on path python2?
On 3/26/22 12:48, Sarmad Ahmad wrote:
> Hello I am trying to boot RTEMS 6 on a cora-z7-10 board I built RTEMS as follows
>
> i used the current version of the master
>
>
> git clone https://github.com/RTEMS/rtems-source-builder.git rsb
>
> cd rsb
> cd rtems
> ../source-builder/sb-set-builder --jobs=4 --prefix=$HOME/development/rtems/6 6/rtems-arm
>
> export PATH=$HOME/development/rtems/6/bin:${PATH}
>
> cd ../..
>
> git clone git://git.rtems.org/rtems.git kernel
> cd kernel
> ./waf bsp_defaults --rtems-bsps=arm/xilinx_zynq_a9_qemu > config.ini
> sed -i \
> -e "s|RTEMS_POSIX_API = False|RTEMS_POSIX_API = True|" \
> -e "s|BUILD_TESTS = False|BUILD_TESTS = True|" \
> -e "s|CLOCK_DRIVER_USE_FAST_IDLE = True|CLOCK_DRIVER_USE_FAST_IDLE = False|"\
> config.ini
>
> ./waf configure --prefix=$HOME/development/rtems/6
> ./waf
> ./waf install
>
> did some tests with qemu successfully
>
> qemu-system-arm -no-reboot -nographic -serial null -serial mon:stdio -net none -M xilinx-zynq-a9 -m 256M -kernel ticker.exe
>
>
>
>
> now when i try to run rtems-boot-image like this
> rtems-boot-image -o sd-card.img -b u-boot-zedboard /home/uni/scratch/u-boot
> I always get this error
> RTEMS Tools - Boot Image, 6.0.not_released
> Traceback (last call):
> File "rtems-boot-image", line 42, in <module>.
> misc.tools.boot.run()
> file "/home/uni/development/rtems/6/share/rtems/misc/tools/boot.py", line 1088, in run
> loader = uboot_bootloader(command_path,
> file "/home/uni/development/rtems/6/share/rtems/misc/tools/boot.py", line 310, in __init__
> super(uboot_bootloader, self).__init__(command_path, build, 'u-boot')
> file "/home/uni/development/rtems/6/share/rtems/misc/tools/boot.py", line 138, in __init__
> if path.exists(path.join(command_path, boot_ini)):
> File "/home/uni/development/rtems/6/share/rtems/rtemstoolkit/path.py", line 100, in join
> if len(path):
> TypeError: Object of type 'NoneType' has no len()
>
>
> built u-boot as follows
> export ARCH=arm
> export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
> make mrproper
> make xilinx_zynq_virt_defconfig
> make
>
> Thanks for your help
>
> Sarmad
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
More information about the users
mailing list