<div dir="ltr">Hello everyone, it's Spencer again. I have successfully compiled and built RTEMS for my desired board (Xilinx Zedboard), but I've run into an issue with trying to convert the ticker.exe program to an image that U-Boot can load it. I am using the following script:<div><br></div><div><div>#! /bin/sh</div><div><br></div><div>OBJCOPY_FOR_TARGET=~/development/rtems/compiler/4.12/bin/arm-rtems4.12-objcopy</div><div>OBJCOPY="$OBJCOPY_FOR_TARGET"</div><div><br></div><div>EXE_NAME=$1</div><div><br></div><div>START_ADDR=0x00104000</div><div>ENTRY_ADDR=0x00104000</div><div><br></div><div>${OBJCOPY} -R -S --strip-debug -O binary "$EXE_NAME" "$EXE_NAME.bin" || exit 1</div><div>cat "$EXE_NAME.bin" | gzip -9 >"$EXE_NAME.gz"</div><div>mkimage \</div><div>  -A arm -O rtems -T kernel -a $START_ADDR -e $ENTRY_ADDR -n "RTEMS" \</div><div>  -d "$EXE_NAME.gz" "$EXE_NAME.img"</div></div><div><br></div><div>OBJCOPY_FOR_TARGET is the path for the objcopy program used to create the flat binary</div><div>EXE_NAME is where I pass in the path for the ticker.exe program to be converted</div><div><br></div><div>I've tested it a few times and this is what I've determined thus far:</div><div><br></div><div>- The program fails when it tries to make the flat binary</div><div>- The error I'm getting is 'bus error (core dumped)'</div><div><br></div><div>I've checked that the paths are all correct, and I don't think it's a permission issue.</div><div>From googling around a bit it looks like it's an issue with trying to access memory that is unavailable...</div><div><br></div><div>If anyone has any insight into this, I would greatly appreciate the help.</div></div>