OAR is standing up hardware testing capabilities / EVB5200 issue

Lou Woods Lou.Woods at OARcorp.com
Wed Feb 6 23:49:28 UTC 2019


Hi,

With the help of Chris Johns and Joel Sherrill, I've set up a means to download and test the RTEMS test suite on the BeagleBone Black and Freescale EVB5200B (Icecube).  The BBB passed 569 of the 590 tests. There were 12 failures, but these could be test framework related.  I haven't investigated them yet.  I appreciate your help guys.

I'm having issues with the EVB5200 though.  Of the 591 tests only 1 passed.  Each test I investigated simply reset the board as soon as U-Boot transferred control.  I'm using the latest icecube BSP build fresh from the git master.  The log snippet at the bottom is from RTEMS tester and demonstrates a typical failure.  As seen below I'm using the load address 0x1000000 and the entry point 0x40000 per the wiki page: https://devel.rtems.org/wiki/TBR/BSP/Gen5200

The only test that passes is the minimum test.  I've also manually built hello and tested it outside of the test framework with the same result.  Any ideas?

Here is the mkimg script:
$ cat bin/rtems-icecube-mkimg
#! /bin/sh

OBJCOPY_FOR_TARGET=powerpc-rtems5-objcopy
OBJCOPY="$OBJCOPY_FOR_TARGET"

START_ADDR=0x40000
ENTRY_ADDR=0x40000

for EXE_NAME in $*
do
  if [ ! -f $EXE_NAME ]; then
   echo "error: not found: $EXE_NAME"
   exit 1
  fi
  echo "Image: $EXE_NAME"
  ${OBJCOPY} -R -S -O binary "$EXE_NAME" "$EXE_NAME.bin" || exit 1
  cat "$EXE_NAME.bin" | gzip -9 >"$EXE_NAME.gz"
  mkimage \
   -A ppc -O rtems -T kernel -a $START_ADDR -e $ENTRY_ADDR -n "RTEMS" \
   -d "$EXE_NAME.gz" "$EXE_NAME.img"
done

exit 0

The EVB5200 U-Boot boot command is:
bootcmd=dhcp; setenv serverip 192.168.1.94; tftp 1000000 icecube.img; bootm; reset


Tester run log snippet:
=>  tftp: ./powerpc-rtems5/c/icecube/testsuites/benchmarks/linpack.exe.img
] BOOTP broadcast 1
] DHCP client bound to address 192.168.1.82
] Using FEC ETHERNET device
] TFTP from server 192.168.1.94; our IP address is 192.168.1.82
] Filename 'icecube.img'.
] Load address: 0x1000000
] Loading: #############
] done
] Bytes transferred = 66040 (101f8 hex)
] ## Booting image at 01000000 ...
]    Image Name:   RTEMS
]    Image Type:   PowerPC RTEMS Kernel Image (gzip compressed)
]    Data Size:    65976 Bytes = 64.4 kB
]    Load Address: 00040000
]    Entry Point:  00040000
]    Uncompressing Kernel Image ... OK
] ## Transferring control to RTEMS (at address 00040000) ...
]
]
] U-Boot 1.1.3 (Apr  5 2006 - 21:06:06)
]
] CPU:   MPC5200 v2.2 at 462 MHz
]        Bus 132 MHz, IPB 132 MHz, PCI 33 MHz
] Board: Freescale MPC5200 (Lite5200B)

Thanks for any help you can provide,
Lou
OARCorp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190206/8548797d/attachment.html>


More information about the devel mailing list