<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>With RTEMS6, frozen CPU even with the ubuntu mkimage:</p>
<p><br /></p>
<p>MVME2500=> setenv tfile hello<br />MVME2500=> run rtems_myTests<br />reading mvme2500.dtb<br />12363 bytes read in 13 ms (928.7 KiB/s)<br />Speed: 1000, full duplex<br />Using eTSEC1 device<br />TFTP from server 141.14.128.9; our IP address is 141.14.128.89<br />Filename 'hello.img'.<br />Load address: 0x10000000<br />Loading: ######<br />6.2 MiB/s<br />done<br />Bytes transferred = 77800 (12fe8 hex)<br />WARNING: adjusting available memory to 30000000<br />## Booting kernel from Legacy Image at 10000000 ...<br />Image Name: RTEMS<br />Created: 2021-02-25 20:30:19 UTC<br />Image Type: PowerPC Linux Kernel Image (gzip compressed)<br />Data Size: 77736 Bytes = 75.9 KiB<br />Load Address: 00004000<br />Entry Point: 00004000<br />Verifying Checksum ... OK<br />## Flattened Device Tree blob at 20000000<br />Booting using the fdt blob at 0x20000000<br />Uncompressing Kernel Image ... OK<br />Loading Device Tree to 03ff9000, end 03fff04a ... OK</p>
<p>------------> no more output ...</p>
<p><br /></p>
<p id="reply-intro">On 2021-02-25 20:52, junkes wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>I have now done the whole thing again the "old way"<br /><br />(master, checkout 5<br />./bootstrap -c && ./rtems-bootstrap<br />cd ..<br />mkdir -p build/b-qoriq_e500<br />cd build/b-qoriq_e500<br />../../kernel/configure --prefix=/home/junkes/MVME2500_testing/rtems/5 --target=powerpc-rtems5 --enable-rtemsbsp=qoriq_e500 --enable-posix --enable-c++ --disable-networking --enable-tests<br />make -j17 all<br />make install<br />)</p>
<p>with RTEMS 5 and have come to the same result (frozen CPU).</p>
<p>Then instead of using mkimage.pl I used my standard way:</p>
<p>powerpc-rtems5-objcopy -O binary b-qoriq_e500/powerpc-rtems5/c/qoriq_e500/testsuites/samples/hello.exe hello.bin<br />mv hello.img hello_mkimage.img<br />gzip -9 -f -c hello.bin > hello.bin.gz<br />mkimage -A ppc -O linux -T kernel -a 0x4000 -e 0x4000 -n RTEMS -d hello.bin.tgz hello.img</p>
<p>(mkimage from the ubuntu distro:<br />junkes@Krikkit:~/MVME2500_testing$ mkimage -V<br />mkimage version 2020.10+dfsg-1ubuntu0~20.04.2<br />)<br />Et voila:</p>
<p>MVME2500=> setenv tfile hello<br />MVME2500=> run rtems_myTests<br />reading mvme2500.dtb<br />12363 bytes read in 13 ms (928.7 KiB/s)<br />Speed: 1000, full duplex<br />Using eTSEC1 device<br />TFTP from server 141.14.128.9; our IP address is 141.14.128.89<br />Filename 'hello.img'.<br />Load address: 0x10000000<br />Loading: #####<br />5.7 MiB/s<br />done<br />Bytes transferred = 59818 (e9aa hex)<br />WARNING: adjusting available memory to 30000000<br />## Booting kernel from Legacy Image at 10000000 ...<br />Image Name: RTEMS<br />Created: 2021-02-25 19:38:30 UTC<br />Image Type: PowerPC Linux Kernel Image (gzip compressed)<br />Data Size: 59754 Bytes = 58.4 KiB<br />Load Address: 00004000<br />Entry Point: 00004000<br />Verifying Checksum ... OK<br />## Flattened Device Tree blob at 20000000<br />Booting using the fdt blob at 0x20000000<br />Uncompressing Kernel Image ... OK<br />Loading Device Tree to 03ff9000, end 03fff04a ... OK</p>
<p><br />*** BEGIN OF TEST HELLO WORLD ***<br />*** TEST VERSION: 5.0.0.3824960f24304eec051fdc59121ba9ba8a8346da<br />*** TEST STATE: EXPECTED_PASS<br />*** TEST BUILD: RTEMS_POSIX_API<br />*** TEST TOOLS: 7.5.0 20191114 (RTEMS 5, RSB 5 (803d42cda7b3), Newlib 7947581)<br />Hello World</p>
<p>*** END OF TEST HELLO WORLD ***</p>
<p><br />*** FATAL ***<br />fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)<br />fatal code: 0 (0x00000000)<br />RTEMS version: 5.0.0.3824960f24304eec051fdc59121ba9ba8a8346da<br />RTEMS tools: 7.5.0 20191114 (RTEMS 5, RSB 5 (803d42cda7b3), Newlib 7947581)<br />executing thread ID: 0x08a010001<br />executing thread name: UI1</p>
<p><br />U-Boot 2013.01 (Aug 23 2016 - 12:17:55)</p>
<p>CPU0: P2020E, Version: 2.1, (0x80ea0021)<br />Core: E500, Version: 5.1, (0x80211051)<br />Clock Configuration:<br />CPU0:1200 MHz, CPU1:1200 MHz, <br />CCB:400 MHz,<br />DDR:400 MHz (800 MT/s data rate) (Asynchronous), LBC:25 MHz<br />L1: D-cache 32 kB enabled</p>
<p>Now, I will repeat the Installation of RTEMS6 again and try the ubuntu mkimage</p>
<p>Heinz</p>
<p id="v1reply-intro">On 2021-02-25 18:23, Joel Sherrill wrote:</p>
<blockquote style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;">
<div id="v1replybody1">
<div dir="ltr">
<div dir="ltr"> </div>
<br />
<div class="v1v1gmail_quote">
<div class="v1v1gmail_attr" dir="ltr">On Thu, Feb 25, 2021 at 11:15 AM junkes <<a href="mailto:junkes@fhi-berlin.mpg.de" rel="noreferrer">junkes@fhi-berlin.mpg.de</a>> wrote:</div>
<blockquote class="v1v1gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>Hallo Joel,<br />unfortunately, even with waf, it still does not work as it should.</p>
</div>
</blockquote>
<div> </div>
<div>Building and not working is slightly better but still bad. :(</div>
<div> </div>
<div>The bsp-builder doesn't run any tests. I do run automated test runs on a </div>
<div>number of BSPs and have had to login to the server and kill qemu's that </div>
<div>get stuck and run forever. I haven't tracked down which BSP is hanging </div>
<div>yet though. </div>
<blockquote class="v1v1gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;">
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p>Example MVME2500 (qoriq_e500)</p>
<p>#install rsb and rtems powerpc tools<br />git clone <a href="https://github.com/RTEMS/rtems-source-builder.git" target="_blank" rel="noopener noreferrer">https://github.com/RTEMS/rtems-source-builder.git</a> rsb<br />cd rsb/rtems<br />../source-builder/sb-set-builder --prefix=/home/junkes/MVME2500_testing/rtems/6 6/rtems-powerpc<br />cd ../..</p>
<p>#RTEMS development<br />export RTEMS_VERSION=6<br />export RTEMS_ARCH=powerpc-rtems${RTEMS_VERSION}<br />export RTEMS_ROOT=/home/junkes/MVME2500_testing/rtems/${RTEMS_VERSION}<br />export PATH=${RTEMS_ROOT}/bin:${PATH}</p>
<p># building kernel<br />git clone git://<a href="http://git.rtems.org/rtems.git" target="_blank" rel="noopener noreferrer">git.rtems.org/rtems.git</a> kernel<br />cd kernel<br /># build and install bsp<br />./waf bsp_defaults --rtems-bsps=powerpc/qoriq_e500 > config.ini<br />sed -i \<br />-e "s|RTEMS_POSIX_API = False|RTEMS_POSIX_API = True|" \<br />-e "s|CLOCK_DRIVER_USE_FAST_IDLE = True|CLOCK_DRIVER_USE_FAST_IDLE = False|" \<br />-e "s|BUILD_TESTS = False|BUILD_TESTS = True|" \<br />config.ini<br />./waf configure --prefix=/home/junkes/MVME2500_testing/rtems/6<br />./waf<br />./waf install</p>
<p>#create bootable image file<br />cd ..<br />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</p>
<p>junkes@Krikkit:~/MVME2500_testing$ ls -l hello.img <br />-rw-rw-r-- 1 junkes junkes 2990848 Feb 25 17:50 hello.img<br /><br />#boot file on HW (MVME2500)</p>
<p>MVME2500=> run rtems_myTests<br />reading mvme2500.dtb<br />12363 bytes read in 12 ms (1005.9 KiB/s)<br />Speed: 1000, full duplex<br />Using eTSEC1 device<br />TFTP from server 141.14.128.9; our IP address is 141.14.128.89<br />Filename 'hello.img'.<br />Load address: 0x10000000<br />Loading: #################################################################<br />#################################################################<br />#################################################################<br />#########<br />10.6 MiB/s<br />done<br />Bytes transferred = 2990848 (2da300 hex)<br />WARNING: adjusting available memory to 30000000<br />## Booting kernel from Legacy Image at 10000000 ...<br />Image Name: RTEMS<br />Created: 2021-02-25 16:50:29 UTC<br />Image Type: PowerPC Linux Kernel Image (gzip compressed)<br />Data Size: 2990784 Bytes = 2.9 MiB<br />Load Address: 00004000<br />Entry Point: 00004000<br />Verifying Checksum ... OK<br />## Flattened Device Tree blob at 20000000<br />Booting using the fdt blob at 0x20000000<br />Uncompressing Kernel Image ... Error: Bad gzipped data<br />GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover</p>
<p><br />U-Boot 2013.01 (Aug 23 2016 - 12:17:55)</p>
<p>CPU0: P2020E, Version: 2.1, (0x80ea0021)<br />Core: E500, Version: 5.1, (0x80211051)<br />Clock Configuration:<br />CPU0:1200 MHz, CPU1:1200 MHz,<br />CCB:400 MHz,<br />DDR:400 MHz (800 MT/s data rate) (Asynchronous), LBC:25 MHz<br />L1: D-cache 32 kB enabled<br />...</p>
<p>With mkimage no compression:</p>
<p>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<br />Image Name: RTEMS<br />Created: Thu Feb 25 18:10:00 2021<br />Image Type: none<br />Data Size: 2990784<br />Load Address: 0x4000<br />Entry Point: 0x4000</p>
<p>Now the well known behavior -> hangs, must be HW-reset</p>
<p><span style="font-size: 10pt;">MVME2500=> setenv tfile hello<br /></span><span style="font-size: 10pt;">MVME2500=> run rtems_myTests<br /></span>reading mvme2500.dtb<br />12363 bytes read in 13 ms (928.7 KiB/s)<br />Speed: 1000, full duplex<br />Using eTSEC1 device<br />TFTP from server 141.14.128.9; our IP address is 141.14.128.89<br />Filename 'hello.img'.<br />Load address: 0x10000000<br />Loading: #################################################################<br />#################################################################<br />#################################################################<br />#########<br />10.3 MiB/s<br />done<br />Bytes transferred = 2990848 (2da300 hex)<br />WARNING: adjusting available memory to 30000000<br />## Booting kernel from Legacy Image at 10000000 ...<br />Image Name: RTEMS<br />Created: 2021-02-25 17:10:00 UTC<br />Image Type: PowerPC Linux Kernel Image (uncompressed)<br />Data Size: 2990784 Bytes = 2.9 MiB<br />Load Address: 00004000<br />Entry Point: 00004000<br />Verifying Checksum ... OK<br />## Flattened Device Tree blob at 20000000<br />Booting using the fdt blob at 0x20000000<br />Loading Kernel Image ... OK<br />OK<br />Loading Device Tree to 03ff9000, end 03fff04a ... OK</p>
<p>---------> no more output ... frozen target ....</p>
<p id="v1v1gmail-m_-8982302721974762159reply-intro">On 2021-02-25 14:45, Joel Sherrill wrote:</p>
<blockquote style="padding: 0px 0.4em; border-left: 2px solid #1010ff; margin: 0px;">
<div id="v1v1gmail-m_-8982302721974762159replybody1">
<div dir="ltr">Hi
<div> </div>
<div>Just passing along that the need to switch the BSP builder to waf is becoming more obvious in the BSP Builder results</div>
<div> </div>
<div><a href="https://lists.rtems.org/pipermail/build/2021-February/026054.html" target="_blank" rel="noopener noreferrer">https://lists.rtems.org/pipermail/build/2021-February/026054.html</a></div>
<div> </div>
<div>467 of 1615 configurations now fail to build.</div>
<div> </div>
<div>-joel</div>
</div>
</div>
<br />
<div style="margin: 0px; padding: 0px; font-family: monospace;">_______________________________________________<br />devel mailing list<br /><a href="mailto:devel@rtems.org" rel="noreferrer">devel@rtems.org</a><br /><a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank" rel="noopener noreferrer">http://lists.rtems.org/mailman/listinfo/devel</a></div>
</blockquote>
<p><br /></p>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<p><br /></p>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />devel mailing list<br /><a href="mailto:devel@rtems.org">devel@rtems.org</a><br /><a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank" rel="noopener noreferrer">http://lists.rtems.org/mailman/listinfo/devel</a></div>
</blockquote>
<p><br /></p>
</body></html>