summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2013-03-27 18:57:49 +0100
committerH. Nikolaus Schaller <hns@goldelico.com>2013-03-27 18:57:49 +0100
commite60c833431143963e3742d24d846b9698ef7efa2 (patch)
treea1d022e07521e23a852a5c81791d8f878ec2ac91
parent37dd22ff1e9e6ad63af920abcece9b84a20e61c1 (diff)
downloadbootable_bootloader_goldelico_gta04-e60c833431143963e3742d24d846b9698ef7efa2.zip
bootable_bootloader_goldelico_gta04-e60c833431143963e3742d24d846b9698ef7efa2.tar.gz
bootable_bootloader_goldelico_gta04-e60c833431143963e3742d24d846b9698ef7efa2.tar.bz2
made ubi.mtd=4 a general argument so that we can automount the NAND partition
-rw-r--r--boot-scr/boot.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/boot-scr/boot.txt b/boot-scr/boot.txt
index 6b469dc..4e46b19 100644
--- a/boot-scr/boot.txt
+++ b/boot-scr/boot.txt
@@ -60,6 +60,9 @@ if test "x${scriptversion}" != "x${VERSION}"
setenv console ttyO2,115200n8
setenv defaultdisplay lcd
setenv bootorder "1 2 3 4"
+ setenv nand 4 # mtd4 is nand
+ setenv vram 12M
+ setenv omapfbvram 0:8M,1:4M
# load boot script from mmc (first FAT partition only) or nand wherever we find it
# i2c dev 0
@@ -90,17 +93,13 @@ if test "x${scriptversion}" != "x${VERSION}"
setenv showimg 'run loadimg; lcm fb ${imgaddr};'
# predefine default boot arguments (unless overwritten by bootargs.scr)
- setenv mmcargs 'setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.vram=0:8M,1:4M omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype}'
+ setenv mmcargs 'setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.vram=${omapfbvram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} ubi.mtd=${nand} root=${mmcroot} rootfstype=${mmcrootfstype}'
setenv mmcroot '/dev/mmcblk0p2 rw'
setenv mmcrootfstype 'ext4,ext3,btrfs rootwait'
- setenv nandargs 'setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.vram=0:8M,1:4M omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandrootfstype}'
-# setenv nandroot '/dev/mtdblock4 rw'
-# setenv nandrootfstype 'jffs2'
-
-# as soon as we can use UBIFS, change this to
+ setenv nandargs 'setenv bootargs console=${console} mpurate=${mpurate} vram=${vram} omapfb.vram=${omapfbvram} omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} ubi.mtd=${nand} root=${nandroot} rootfstype=${nandrootfstype}'
setenv nandroot 'ubi0:gta04-rootfs'
- setenv nandrootfstype 'ubifs ubi.mtd=4'
+ setenv nandrootfstype 'ubifs'
# load kernel and boot script from mmc (any of 4 partitions FAT or ext) or nand wherever we find it