RTEMS on Zynq Microzed

Davide Viti zinosat at tiscali.it
Thu Oct 1 08:21:55 UTC 2015


Hi Jeff,
I've tried the following steps:

 - cloned https://github.com/antmicro/zynq-mkbootimage.git
 - create a bif file with fsbl.elf, fpga.bit, u-boot.elf (tried both the
unstripped and stripped version of hello.exe)
 - I renamed hello.elf into u-boot.elf and created BOOT.BIN
 - copied BOOT.BIN to the fat partition of the microSD

Nothing comes out of the terminal window:I repeadetly see the blue led for
a short period (I think is indicating the bitstream being loaded), followed
by a shot blink of a red led.
Am I doing anything wrong?

thank you for your help,
Davide


2015-09-30 19:49 GMT+02:00 Jeff Webb <jeff.webb at nta-inc.net>:

> On 09/30/2015 10:34 AM, Davide Viti wrote:
>
>> Hi,
>> I own a Microzed board and recently managed to boot it using buildroot
>> using a recent (2015.07) uboot and the Zedboard DTS shipped in the Xilinx
>> repository of the linux kernel.
>> Given the above, I assumed I cuold try RTEMS on the Microzed, using the
>> Zedboard BSP.
>>
>> I successfully built the toolchain and the BSP (xilinx_zynq_zedboard) out
>> of the latest version of the git repositories and I'm trying to boot the
>> hello.exe sample following these steps:
>>
>> arm-rtems4.11-objcopy -R -S -O binary hello.exe hello.bin
>> mkimage -A arm -O rtems -T kernel -C none -n "RTEMS Application" -d
>> hello.bin hello.img
>>
>> I write the hello.img file on the microSD along with:
>>
>>   - BOOT.BIN
>>   - system.bit
>>   - u-boot-dtb.img
>>
>> and u-boot starts fine:
>>
>> ---------------------------
>> U-Boot SPL 2015.07 (Sep 25 2015 - 09:24:38)
>> mmc boot
>> reading system.dtb
>> spl_load_image_fat_os: error reading image system.dtb, err - -1
>> reading u-boot-dtb.img
>> reading u-boot-dtb.img
>>
>>
>> U-Boot 2015.07 (Sep 25 2015 - 09:24:38 +0200)
>>
>> Model: Zynq MicroZED Board
>> I2C:   ready
>> DRAM:  ECC disabled 1 GiB
>> MMC:   zynq_sdhci: 0
>> Using default environment
>>
>> In:    serial
>> Out:   serial
>> Err:   serial
>> Model: Zynq MicroZED Board
>> Net:   Gem.e000b000
>> Error: Gem.e000b000 address not set.
>>
>> zynq-uboot> fatload mmc 0 0x1000000 hello.img
>> reading hello.img
>> 1039120 bytes read in 107 ms (9.3 MiB/s)
>> zynq-uboot> bootm 0x1000000
>> ## Booting kernel from Legacy Image at 01000000 ...
>>     Image Name:   RTEMS Application
>>     Image Type:   ARM RTEMS Kernel Image (uncompressed)
>>     Data Size:    1039056 Bytes = 1014.7 KiB
>>     Load Address: 00000000
>>     Entry Point:  00000000
>>     Verifying Checksum ... OK
>>     Loading Kernel Image ... OK
>> ## Transferring control to RTEMS (at address 00000000) ...
>>
>> Could you please give me some advices?
>> Are there any known success stories with this board
>>
>
> I have RTEMS running on a ZedBoard, but I have not tried the microzed
> yet.  I did not use u-boot, however.  I built a new BOOT.BIN file using the
> SDK that consisted of the fsbl, fpga bitstream, and my RTEMS elf
> application.  (Basically, I just replaced u-boot with my RTEMS application).
>
> -Jeff
>
>
>
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20151001/fb1acc90/attachment-0001.html>


More information about the users mailing list