This article illustrates how to generate the foxg20-script.bin binary file used by uboot during the boot sequence.
foxg20-script.bin is a binary file generated saved on the first FAT16 partition of a bootable microSD for the FOX Board G20.
This files contains the environments variables used by u-Boot during the boot sequence and it's generated using the mkimage utility from a readable text file.
To install mkimage on your Ubuntu Linux PC type:
$ sudo apt-get install uboot-mkimage
Then create a text file called foxg20-script.txt and save on it the right u-Boot variable setting for the Linux distribution you are installing:
set bootargs 'bootargs=mem=64M console=ttyS0,115200 noinitrd root=/dev/mmcblk0p2 rw rootwait init=/sbin/init' fatload mmc 0 0x20400000 uimage bootm 0x20400000
set bootargs 'mem=64M console=ttyS0,115200 rootdelay=5 root=/dev/mmcblk0p2 rw rootfstype=reiserfs rootflags=data=writeback init=/sbin/init nodevfs' fatload mmc 0 0x20000000 gentoo_uimage bootm 0x20000000
set bootargs 'mem=64M console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait' fatload mmc 0 0x20000000 openwrt-at91-uImage bootm 0x20000000
generate the foxg20-script.bin binary file typing:
$ mkimage -C none -T script -n 'FOXG20 boot script' -d foxg20-script.txt foxg20-script.bin
Then copy it in the FAT16 partition of your microSD.