BSP Builder Results :(
Joel Sherrill
joel at rtems.org
Thu Feb 25 17:23:03 UTC 2021
On Thu, Feb 25, 2021 at 11:15 AM junkes <junkes at fhi-berlin.mpg.de> wrote:
> Hallo Joel,
> unfortunately, even with waf, it still does not work as it should.
>
Building and not working is slightly better but still bad. :(
The bsp-builder doesn't run any tests. I do run automated test runs on a
number of BSPs and have had to login to the server and kill qemu's that
get stuck and run forever. I haven't tracked down which BSP is hanging
yet though.
> Example MVME2500 (qoriq_e500)
>
> #install rsb and rtems powerpc tools
> git clone https://github.com/RTEMS/rtems-source-builder.git rsb
> cd rsb/rtems
> ../source-builder/sb-set-builder
> --prefix=/home/junkes/MVME2500_testing/rtems/6 6/rtems-powerpc
> cd ../..
>
> #RTEMS development
> export RTEMS_VERSION=6
> export RTEMS_ARCH=powerpc-rtems${RTEMS_VERSION}
> export RTEMS_ROOT=/home/junkes/MVME2500_testing/rtems/${RTEMS_VERSION}
> export PATH=${RTEMS_ROOT}/bin:${PATH}
>
> # building kernel
> git clone git://git.rtems.org/rtems.git kernel
> cd kernel
> # build and install bsp
> ./waf bsp_defaults --rtems-bsps=powerpc/qoriq_e500 > config.ini
> sed -i \
> -e "s|RTEMS_POSIX_API = False|RTEMS_POSIX_API = True|" \
> -e "s|CLOCK_DRIVER_USE_FAST_IDLE = True|CLOCK_DRIVER_USE_FAST_IDLE =
> False|" \
> -e "s|BUILD_TESTS = False|BUILD_TESTS = True|" \
> config.ini
> ./waf configure --prefix=/home/junkes/MVME2500_testing/rtems/6
> ./waf
> ./waf install
>
> #create bootable image file
> cd ..
> mkimage.py -A ppc -O linux -T kernel -a 0x4000 -e 0x4000 -n RTEMS -d
> kernel/build/powerpc/qoriq_e500/testsuites/samples/hello.exe hello.img
>
> junkes at Krikkit:~/MVME2500_testing$ ls -l hello.img
> -rw-rw-r-- 1 junkes junkes 2990848 Feb 25 17:50 hello.img
>
> #boot file on HW (MVME2500)
>
> MVME2500=> run rtems_myTests
> reading mvme2500.dtb
> 12363 bytes read in 12 ms (1005.9 KiB/s)
> Speed: 1000, full duplex
> Using eTSEC1 device
> TFTP from server 141.14.128.9; our IP address is 141.14.128.89
> Filename 'hello.img'.
> Load address: 0x10000000
> Loading: #################################################################
> #################################################################
> #################################################################
> #########
> 10.6 MiB/s
> done
> Bytes transferred = 2990848 (2da300 hex)
> WARNING: adjusting available memory to 30000000
> ## Booting kernel from Legacy Image at 10000000 ...
> Image Name: RTEMS
> Created: 2021-02-25 16:50:29 UTC
> Image Type: PowerPC Linux Kernel Image (gzip compressed)
> Data Size: 2990784 Bytes = 2.9 MiB
> Load Address: 00004000
> Entry Point: 00004000
> Verifying Checksum ... OK
> ## Flattened Device Tree blob at 20000000
> Booting using the fdt blob at 0x20000000
> Uncompressing Kernel Image ... Error: Bad gzipped data
> GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to
> recover
>
>
> U-Boot 2013.01 (Aug 23 2016 - 12:17:55)
>
> CPU0: P2020E, Version: 2.1, (0x80ea0021)
> Core: E500, Version: 5.1, (0x80211051)
> Clock Configuration:
> CPU0:1200 MHz, CPU1:1200 MHz,
> CCB:400 MHz,
> DDR:400 MHz (800 MT/s data rate) (Asynchronous), LBC:25 MHz
> L1: D-cache 32 kB enabled
> ...
>
> With mkimage no compression:
>
> mkimage.py -A ppc -O linux -T kernel -C none -a 0x4000 -e 0x4000 -n RTEMS
> -d kernel/build/powerpc/qoriq_e500/testsuites/samples/hello.exe hello.img
> Image Name: RTEMS
> Created: Thu Feb 25 18:10:00 2021
> Image Type: none
> Data Size: 2990784
> Load Address: 0x4000
> Entry Point: 0x4000
>
> Now the well known behavior -> hangs, must be HW-reset
>
> MVME2500=> setenv tfile hello
> MVME2500=> run rtems_myTests
> reading mvme2500.dtb
> 12363 bytes read in 13 ms (928.7 KiB/s)
> Speed: 1000, full duplex
> Using eTSEC1 device
> TFTP from server 141.14.128.9; our IP address is 141.14.128.89
> Filename 'hello.img'.
> Load address: 0x10000000
> Loading: #################################################################
> #################################################################
> #################################################################
> #########
> 10.3 MiB/s
> done
> Bytes transferred = 2990848 (2da300 hex)
> WARNING: adjusting available memory to 30000000
> ## Booting kernel from Legacy Image at 10000000 ...
> Image Name: RTEMS
> Created: 2021-02-25 17:10:00 UTC
> Image Type: PowerPC Linux Kernel Image (uncompressed)
> Data Size: 2990784 Bytes = 2.9 MiB
> Load Address: 00004000
> Entry Point: 00004000
> Verifying Checksum ... OK
> ## Flattened Device Tree blob at 20000000
> Booting using the fdt blob at 0x20000000
> Loading Kernel Image ... OK
> OK
> Loading Device Tree to 03ff9000, end 03fff04a ... OK
>
> ---------> no more output ... frozen target ....
>
> On 2021-02-25 14:45, Joel Sherrill wrote:
>
> Hi
>
> Just passing along that the need to switch the BSP builder to waf is
> becoming more obvious in the BSP Builder results
>
> https://lists.rtems.org/pipermail/build/2021-February/026054.html
>
> 467 of 1615 configurations now fail to build.
>
> -joel
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210225/f7154761/attachment-0001.html>
More information about the devel
mailing list