Create foxg20-script.bin u-Boot environment file

Starting from September 2010 this method is not used anymore for the factory default products because the boot loader is changed.
If you want to update your FOX Board G20 please read this article.

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:

Debian

set bootargs 'bootargs=mem=64M console=ttyS0,115200 noinitrd root=/dev/mmcblk0p2 rw rootwait init=/sbin/init'
fatload mmc 0 0x20400000 uimage
bootm 0x20400000

Gentoo

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

OpenWrt

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.

 
dev/create_uboot_env.txt · Last modified: 2010/08/26 12:15 by tanzox
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki