RaspberryPi with U-Boot and FDT

Christian Mauderer oss at c-mauderer.de
Tue Jun 9 16:55:19 UTC 2020



On 09/06/2020 15:52, Jan.Sommer at dlr.de wrote:
> 
> 
>> -----Original Message-----
>> From: users [mailto:users-bounces at rtems.org] On Behalf Of
>> Jan.Sommer at dlr.de
>> Sent: Tuesday, June 9, 2020 3:01 PM
>> To: users at rtems.org
>> Subject: RaspberryPi with U-Boot and FDT
>>
>> Hello,
>>
>> I recently updated my RaspberryPi2-Setup to a more recent version.
>> So far we used u-boot and ran the ELF-binary directly using the "bootelf"
>> command.
>> Now with the commit "362cf319d4 - bsp/raspberrypi: Updated the console
>> API" it seems the console driver has been changed to require a FDT to be
>> available.
>> I assume, I now need to build an u-boot image with mkimg and then pass the
>> FDT address to it.
>> So far, I had no success. I created the image file with:
>>
>> arm-rtems5-objcopy -R -S --strip-debug -O binary ticker.exe ticker-fdt.bin
>> cat ticker-fdt.bin | gzip -9
>> mkimage -A arm -O rtems -T kernel -a 0x00200000 -e 0x00200000 -n RTEMS -d
>> ticker-fdt.gz ticker-fdt.img
>>
> 
> I compared my mkimage call with the one from altera-cyclone BSP (https://docs.rtems.org/branches/master/user/bsps/bsps-arm.html#altera-cyclone-v-intel-cyclone-v)
> I changed mine to use "-O linux" too and now it works.

Yes, that should be the relevant change. All systems with FDT should use
Linux for the format of the image. All that don't use a FDT can still
use Linux. So rtems is more or less legacy for older releases.

> 
>> And tried to run it with
>>
>> bootm ${loadaddr} - ${fdt_addr}
>>
>> Has someone experience how to get it working with u-boot?
>> Do I need to configure something additionally in the rtems configuration?
>>
>> Best regards,
>>
>>    Jan
>>
>>
>> Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)
>> German Aerospace Center
>> Simulation and Software Technology | Software for Space Systems and
>> Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany
>>
>> Jan Sommer
>> Telephone +49 531 295-2494 | Telefax 0531 295-2767 | jan.sommer at dlr.de
>> DLR.de/SC
>>
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
> 


More information about the users mailing list