From f7c6161f830e1f0ead928de31689174cdaa9177a Mon Sep 17 00:00:00 2001 From: "H. Nikolaus Schaller" Date: Thu, 7 Mar 2013 13:24:12 +0100 Subject: moved bootargs to GTA04 subdirectory --- GTA04/bootargs.txt | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 GTA04/bootargs.txt (limited to 'GTA04') 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... -- cgit v1.1