VAR-SOM-OM37 Linux Uboot Environment Settings

From Variscite Wiki

VAR-SOM-OM35/7 /AM35 Uboot Environment Settings


Below you may find examples of uboot environment settings for VAR-SOM-OM37 / VAR-SOM-OM35 / VAR-SOM-AM35

**** VAR-SOM-OM35 uboot scripts ****
setenv get_kernel      run nand_kernel
setenv nand_kernel     nand read.i 0x80000000 280000 300000
setenv mmc_kernel      'mmc init; fatload mmc 1 0x80000000 uImage'
setenv tftp_kernel     tftpboot 0x80000000 uImage
setenv bootargs_fs     mem=80M@0x80000000 mem=128M@0x88000000 console=ttyO2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 ethaddr=$ethaddr ip=no consoleblank=0
setenv bootargs_nfs    mem=80M@0x80000000 mem=128M@0x88000000 console=ttyO2,115200n8 noinitrd rw root=/dev/nfs nfsroot=/mnt/nfs,nolock ethaddr=$ethaddr ip=dhcp consoleblank=0
setenv boot_fs         run get_kernel\; setenv bootargs \$bootargs_fs\; bootm 0x80000000
setenv boot_nfs	       run get_kernel\; setenv bootargs \$bootargs_nfs\;  bootm 0x80000000
setenv bootcmd         run boot_fs
setenv bootdelay       1
saveenv


**** VAR-SOM-OM37 uboot scripts ****

setenv get_kernel      run nand_kernel
setenv nand_kernel     nand read.i 0x80000000 280000 300000
setenv mmc_kernel      'mmc init; fatload mmc 1 0x80000000 uImage'
setenv tftp_kernel     tftpboot 0x80000000 uImage
setenv bootargs_fs     mem=80M@0x80000000 mem=128M@0x88000000 console=ttyO2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 ethaddr=$ethaddr ip=::::::off consoleblank=0 mpurate=1000
setenv bootargs_nfs    mem=80M@0x80000000 mem=128M@0x88000000 console=ttyO2,115200n8 noinitrd rw root=/dev/nfs nfsroot=/mnt/nfs,nolock ethaddr=$ethaddr ip=dhcp consoleblank=0 mpurate=1000
setenv boot_fs         run get_kernel\; setenv bootargs \$bootargs_fs\; bootm 0x80000000
setenv boot_nfs	       run get_kernel\; setenv bootargs \$bootargs_nfs\;  bootm 0x80000000
setenv bootcmd         run boot_fs
setenv bootdelay       1
saveenv

**** VAR-SOM-AM35 uboot scripts ****

setenv get_kernel       run nand_kernel
setenv mmc_kernel       'mmc init; fatload mmc 1 0x80000000 uImage'
setenv nand_kernel      nand read.i 0x80000000 280000 300000
setenv tftp_kernel      tftpboot 0x80000000 uImage
setenv bootargs_fs    	mem=256M console=ttyO2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 eth=$ethaddr
setenv bootargs_fs_dvi  mem=256M console=ttyO2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 omapfb.mode=dvi:1280x720-24@60 omapdss.def_disp="dvi" eth=$ethaddr
setenv bootargs_nfs     mem=256M console=ttyO2,115200n8 noinitrd rw root=/dev/nfs nfsroot=/mnt/nfs,nolock ip=dhcp
setenv boot_fs          run get_kernel\; setenv bootargs \$bootargs_fs\; run addip\; bootm 0x80000000
setenv boot_fs_dvi	    run get_kernel\; setenv bootargs \$bootargs_fs_dvi\; run addip\; bootm 0x80000000
setenv boot_nfs	        run get_kernel\; setenv bootargs \$bootargs_nfs\; run addip\; bootm 0x80000000
setenv bootcmd          run boot_fs
setenv bootdelay        2
save


**** notes *****




Kernel boot options:
--------------------



 1. nand_kernel - load kernel from nand flash address 0x280000
 2. mmc_kernel - load kernel uImage from SD Card
 3. tftp_kernel - load kernel via Ethernet and TFTP (please refer to set_eth.txt to set the appropriate ethernet / server environment settings)
 


modify 'get_kernel' env parameter to set a new default
examples:
setenv get_kernel run mmc_kernel
setenv get_kernel run tftp_kernel



 
File system options:
--------------------



 1. bootargs_fs - use jffs2 file system on nand flash.
 2. bootargs_nfs - use NFS file system mounted on /mnt/nfs
 


modify 'bootcmd' env parameter to set a new default