aboutsummaryrefslogtreecommitdiffstats
path: root/GTA04/bootargs.txt
blob: dca06f3e750e7d8172a49d375a67e1aea08b6aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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...