Changeset 68a5f751 in rtems
- Timestamp:
- 02/25/19 22:30:11 (5 years ago)
- Branches:
- 5, master
- Children:
- e99847bf
- Parents:
- ecf62845
- git-author:
- Pierre-Louis Garnier <garnie_a@…> (02/25/19 22:30:11)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (02/27/19 06:45:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bsps/arm/beagle/simscripts/sdcard.sh
recf62845 r68a5f751 10 10 rm -rf $TMPDIR 11 11 mkdir -p $TMPDIR 12 trap 'rm -rf $TMPDIR' EXIT 12 13 13 if [ $# -ne 2]14 then echo "Usage: $0 <RTEMS prefix> <RTEMS executable> "14 if [ $# -ne 3 ] 15 then echo "Usage: $0 <RTEMS prefix> <RTEMS executable> <Device Tree Blob>" 15 16 exit 1 16 17 fi … … 40 41 esac 41 42 43 dtb="$3" 44 42 45 app=rtems-app.img 43 46 … … 60 63 # Prepare the executable. 61 64 base=`basename $executable` 62 $PREFIX/bin/arm-rtems 4.12-objcopy $executable -O binary $TMPDIR/$base.bin65 $PREFIX/bin/arm-rtems5-objcopy $executable -O binary $TMPDIR/$base.bin 63 66 gzip -9 $TMPDIR/$base.bin 64 67 $PREFIX/bin/mkimage -A arm -O rtems -T kernel -a 0x80000000 -e 0x80000000 -n RTEMS -d $TMPDIR/$base.bin.gz $TMPDIR/$app 65 68 echo "setenv bootdelay 5 66 69 uenvcmd=run boot 67 boot=fatload mmc 0 0x80800000 $app ; bootm 0x80800000" >$TMPDIR/$UENV70 boot=fatload mmc 0 0x80800000 $app ; fatload mmc 0 0x88000000 $(basename "$dtb") ; bootm 0x80800000 - 0x88000000" >$TMPDIR/$UENV 68 71 69 72 # Copy the uboot and app image onto the FAT image … … 72 75 $PREFIX/bin/mcopy -bsp -i $FATIMG $TMPDIR/$app ::$app 73 76 $PREFIX/bin/mcopy -bsp -i $FATIMG $TMPDIR/$UENV ::$UENV 77 # Copy DTB 78 $PREFIX/bin/mcopy -bsp -i $FATIMG "$dtb" ::"$(basename "$dtb")" 74 79 75 80 # Just a single FAT partition (type C) that uses all of the image … … 79 84 dd if=$FATIMG of=$IMG seek=$OFFSET 80 85 81 # cleanup82 rm -rf $TMPDIR83 84 86 echo "Result is in $IMG."
Note: See TracChangeset
for help on using the changeset viewer.