Changing Options in U-boot

If you use the environment provided by the initenv.txt script you have several choices for boot options. Most of the boilerplate has been provided; you just need to set your choices.

Note: Refer Section Running the Re-flash Procedure for modifications in the initenv.txt script files required to be able to run the dvsdk demos that comes OMAP3530 DVSDK. Also Refer Alternate Boot Methods

Kernel choices:

OMAP3EVM # setenv get_kernel run nand_kernel	(get kernel from flash)
OMAP3EVM # setenv get_kernel run tftp_kernel	(get custom kernel from TFTP)

Initrd choices:

OMAP3EVM # setenv get_initrd run nand_initrd	(get kernel from flash)
OMAP3EVM # setenv get_initrd run tftp_initrd	(get custom image from TFTP)

File-system choices:

OMAP3EVM # setenv bootcmd    run bootargs_rd      	(use an initrd ramdisk)
OMAP3EVM # setenv bootcmd    run bootargs_fs		(use a JFFS file-system in flash)
OMAP3EVM # setenv bootcmd    run bootargs_nfs		(use an NFS root directory)

Save your choices:

OMAP3EVM # nand unlock					(only MICRON!)
OMAP3EVM # saveenv					(save to flash)

To run a JFFS file-system or a ramdisk image from flash you need to make sure the appropriate image is in flash. You can use the reflash.txt script to load the appropriate image.

Re-flash choices:

OMAP3EVM # run rf_all_rd				(update all using full ramdisk)
OMAP3EVM # run rf_all_min_rd				(update all using minimal ramdisk)
OMAP3EVM # run rf_all_fs				(update all using JFFS image)
OMAP3EVM # run rf_rd					(update just the full ramdisk)
OMAP3EVM # run rf_min_rd				(update just the full ramdisk)
OMAP3EVM # run rf_fs					(update just the JFFS image)

Note 1: The two ramdisk images and JFFS are all mutually exclusive in Flash as they occupy the same partition. (Running ramdisk from tftp does not require flash space).

Note 2: The current U-boot only allows 40 environment variables. Do not saveenv after the reflash script has been submitted. Instead complete the reflash and reboot before making env changes.

Note 3: For reflashing choices for Micron nand please select the commands which are marked by _new.(For example 'rf_all_fs_new' for using JFFS filesystem and 'rf_all_rd_new' for using full ramdisk).

你可能感兴趣的:(Changing Options in U-boot)