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

Heinz Junkes junkes at fhi-berlin.mpg.de
Tue May 31 10:54:00 UTC 2022


runs with RTEMS 5.1 Release on beaglebone black
( wget https://ftp.rtems.org/pub/rtems/releases/5/5.1/sources/rtems-source-builder-5.1.tar.xz )


Load address: 0x80800000
Loading: ####
         4.1 MiB/s
done
Bytes transferred = 47240 (b888 hex)
33325 bytes read in 4 ms (7.9 MiB/s)
## Booting kernel from Legacy Image at 80800000 ...
   Image Name:   Hello Posix
   Created:      2022-05-31  10:51:49 UTC
   Image Type:   ARM RTEMS Kernel Image (gzip compressed)
   Data Size:    47176 Bytes = 46.1 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

*** HELLO WORLD TEST ***
Hello World
*** END OF HELLO WORLD TEST ***

*** FATAL ***
fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)
fatal code: 0 (0x00000000)
RTEMS version: 5.1.0
RTEMS tools: 7.5.0 20191114 (RTEMS 5, RSB 5.1, Newlib 7947581)
executing thread ID: 0x08b010001
executing thread name:
U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500)
Trying to boot from MMC2



Viele Grüße
Heinz Junkes
--
Experience directly varies with equipment ruined.



> On 29. May 2022, at 04:03, Chris Johns <chrisj at rtems.org> wrote:
> 
> 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