Try to load and run RTEMS Image on Cora-z7-10

Chris Johns chrisj at rtems.org
Sun May 29 02:03:56 UTC 2022


On 29/5/2022 6:57 am, Heinz Junkes wrote:
> Hi Chris,
> 
> I am trying to understand the problems my student is having with the Cora-z7-10.
> 
> I am trying my hand at a beaglebone black and RTEMS6 (master).
> Unfortunately I have similar problems.
> 
> I built the rtems-examples.
> 
> rtems/6/bin/arm-rtems6-objcopy -R -S --strip-debug -O binary posix_hello.exe posix_hello.bin
> cat posix_hello.bin | gzip -9 >posix_hello.gz
> rtems/6/bin/mkimage.py -A arm -O rtems -T kernel -a 0x80000000 -e 0x80000000 -n "PosixHello" -d posix_hello.gz posix_hello.img
> I then copied this image file to the SD card of the beaglebone black.
> 
> and boot it :
>> BeagleBone Black:
> BeagleBone: cape eeprom: i2c_probe: 0x54:
> BeagleBone: cape eeprom: i2c_probe: 0x55:
> BeagleBone: cape eeprom: i2c_probe: 0x56:
> BeagleBone: cape eeprom: i2c_probe: 0x57:
> Net: eth0: MII MODE
> cpsw, usb_ether
> Press SPACE to abort autoboot in 2 seconds
> =>
> => fatload mmc 0 0x80800000 posix_hello.img
> 71208 bytes read in 7 ms (9.7 MiB/s)
> => fatload mmc 0 0x88000000 am335x-boneblack.dtb
> 33325 bytes read in 3 ms (10.6 MiB/s)
> => bootm 0x80800000 - 0x88000000
> ## Booting kernel from Legacy Image at 80800000 ...
> Image Name: PosixHello
> Created: 2022-05-28 20:26:28 UTC
> Image Type: ARM RTEMS Kernel Image (gzip compressed)
> Data Size: 71144 Bytes = 69.5 KiB
> Load Address: 80000000
> Entry Point: 80000000
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
> ## Transferring control to RTEMS (at address 80000000) ...
> 
> RTEMS Beagleboard: am335x-based
> ARM Debug: 0x4b141000
> *** FATAL ***
> fatal source: 1 (INTERNAL_ERROR_RTEMS_API)

The `rtems_fatal_error_occurred()` call is happening.

> fatal code: 22 (0x00000016)

This code is the `rtems_status_code` which is `RTEMS_NOT_CONFIGURED`:

https://git.rtems.org/rtems/tree/cpukit/include/rtems/rtems/status.h#n204

I am not sure where this is called from. A grep shows only a few spots.

Chris


More information about the users mailing list