Difference between revisions of "U-Boot scripts"
From Gumstix User Wiki
(fix category) |
Searchworks (Talk | contribs) (remove spam) |
||
| (6 intermediate revisions by 4 users not shown) | |||
| Line 5: | Line 5: | ||
To generate a u-boot script that's executable, it has to be packed into an u-boot image using mkimage. | To generate a u-boot script that's executable, it has to be packed into an u-boot image using mkimage. | ||
| − | Use your favorite text editor to create gumstix-factory.script.source, and then run the following command to generate the image: | + | Use your favorite text editor (such as vi, nano, or pico) to create gumstix-factory.script.source, and then run the following command to generate the image: |
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n gumstix-factory.script -d gumstix-factory.script.source gumstix-factory.script | mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n gumstix-factory.script -d gumstix-factory.script.source gumstix-factory.script | ||
| − | [[Category:How_to_- | + | ==External Links== |
| + | *[http://www.denx.de/wiki/U-Boot/WebHome Das U-Boot -- the Universal Boot Loader ] | ||
| + | |||
| + | [[Category:How_to_-_linux]] | ||
| + | [[Category:How_to_-_general]] | ||
Latest revision as of 22:20, 10 November 2010
Modifying U-Boot scripts
The main useful script is gumstix-factory.script which, if found on the MMC or CF card will be executed during boot.
To generate a u-boot script that's executable, it has to be packed into an u-boot image using mkimage.
Use your favorite text editor (such as vi, nano, or pico) to create gumstix-factory.script.source, and then run the following command to generate the image:
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n gumstix-factory.script -d gumstix-factory.script.source gumstix-factory.script