diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2013-03-07 13:24:12 +0100 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2013-07-22 18:39:55 +0200 |
commit | f7c6161f830e1f0ead928de31689174cdaa9177a (patch) | |
tree | 6f8875da17988b08b5ce2c043e0142a8d706ae5f /GTA04 | |
parent | 3aab45c40c324c3651484045de1f2573a6bf238c (diff) | |
download | kernel_goldelico_gta04-f7c6161f830e1f0ead928de31689174cdaa9177a.zip kernel_goldelico_gta04-f7c6161f830e1f0ead928de31689174cdaa9177a.tar.gz kernel_goldelico_gta04-f7c6161f830e1f0ead928de31689174cdaa9177a.tar.bz2 |
moved bootargs to GTA04 subdirectory
Diffstat (limited to 'GTA04')
-rw-r--r-- | GTA04/bootargs.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/GTA04/bootargs.txt b/GTA04/bootargs.txt new file mode 100644 index 0000000..dca06f3 --- /dev/null +++ b/GTA04/bootargs.txt @@ -0,0 +1,54 @@ +# +# bootargs.scr +# +# Kernel parameter script for Beagle Hybrid / Panda Hybrid / GTA04 +# +# Author: H. Nikolaus Schaller +# Copyright Golden Delicious Computers 2010-2012 +# licensed under GPL 2.0 +# +# This script will be run by boot.scr if the kernel is detected +# on SD card. It will be searched in a FAT partition and /boot +# in an ext partition +# +# Please take this as a template and add to your distro as +# /boot/bootargs.scr together with a kernel (/boot/uImage) +# +# The partition number where the kernel was found is stored +# in the variable ${PARTITON}. +# +# Add/modify bootargs as needed, but please resist to do other +# fancy stuff here. And, you should not run a saveenv here as +# this may disturb booting from NAND! +# + +echo running bootargs.scr + +# echo before: $bootargs +# echo root: $mmcroot +# echo type: $mmcrootfstype + +if test "${PARTITIONTYPE}" = "FAT" +then +# kernel comes from fat partition; choose next in sequence as ext rootfs +if itest ${PARTITION} == 1; then setenv mmcroot "/dev/mmcblk0p2 rw"; setenv mmcrootfstype "ext4,ext3 rootwait"; +elif itest ${PARTITION} == 2; then setenv mmcroot "/dev/mmcblk0p3 rw"; setenv mmcrootfstype "ext4,ext3 rootwait"; +elif itest ${PARTITION} == 3; then setenv mmcroot "/dev/mmcblk0p4 rw"; setenv mmcrootfstype "ext4,ext3 rootwait"; +elif itest ${PARTITION} == 4; then setenv mmcroot "/dev/mmcblk0p1 rw"; setenv mmcrootfstype "ext4,ext3 rootwait"; +fi +else +# kernel found on ext partition: choose same for rootfs +setenv mmcroot "/dev/mmcblk0p${PARTITION} rw" +setenv mmcrootfstype "ext4,ext3 rootwait"; +fi + +# 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}; echo using mmc rootfs' + +# please pass along some variables from the environment +setenv bootargs "console=ttyO2,115200n8 mpurate=${mpurate} vram=12M omapfb.vram=0:8M,1:4M omapfb.mode=dvi:${dvimode} omapfb.debug=y omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype}" + +# echo after: $bootargs +# echo root: $mmcroot +# echo type: $mmcrootfstype + +echo bootargs.scr done... |