]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:build also generate cmdline.txt 90/590/2
authorKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 08:23:44 +0000 (10:23 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Fri, 24 May 2013 12:03:14 +0000 (14:03 +0200)
Also generate cmdline.txt as we need to use a different serial
for the AM335X boards.

Change-Id: I18c1b5911b5d7238d4a765e0aa01613908d9f2e6

releasetools/arm_sdimage.sh
releasetools/cmdline.txt [deleted file]
releasetools/gen_cmdline.txt.sh [new file with mode: 0755]

index cee9cf5cf1d3de1b07ce7232f2a06f5b606130c4..c17d4d6dd8535c37e1a179ce4b205e1e7aec1b2a 100755 (executable)
@@ -145,18 +145,30 @@ END_SFDISK
 #
 mkfs.vfat ${IMG_DIR}/fat.img
 
+#
+# Create a uEnv.txt file
+# -n default to network boot
+# -p add a prefix to the network booted files (e.g. xm/"
 ./releasetools/gen_uEnv.txt.sh > ${IMG_DIR}/uEnv.txt
+
+#
+#
+# options:
+# -c set console e.g. tty02 or tty00
+# -v set verbosidy e.g. 0 to 3
+./releasetools/gen_cmdline.txt.sh > ${IMG_DIR}/cmdline.txt
+
 echo "Copying configuration kernel and boot modules"
 mcopy -bsp -i ${IMG_DIR}/fat.img  ${IMG_DIR}/$MLO ::MLO
 mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/$UBOOT ::u-boot.img
 mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/uEnv.txt ::uEnv.txt
-mcopy -bsp -i ${IMG_DIR}/fat.img releasetools/cmdline.txt ::cmdline.txt
+mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/cmdline.txt ::cmdline.txt
 
 #
 # For tftp booting
 #
 cp ${IMG_DIR}/uEnv.txt ${OBJ}/
-cp releasetools/cmdline.txt ${OBJ}/
+cp ${IMG_DIR}/cmdline.txt ${OBJ}/
 
 #
 # Do some last processing of the kernel and servers before also putting
diff --git a/releasetools/cmdline.txt b/releasetools/cmdline.txt
deleted file mode 100644 (file)
index eb6b0a1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-console=tty02 rootdevname=c0d0p1s0 verbose=3
diff --git a/releasetools/gen_cmdline.txt.sh b/releasetools/gen_cmdline.txt.sh
new file mode 100755 (executable)
index 0000000..f258c24
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+#default for the beagleboard-xM
+CONSOLE=tty02 
+#verbosity
+VERBOSE=3 
+while getopts "c:v:?" c
+do
+        case "$c" in
+        \?)
+                echo "Usage: $0 [-c consoletty] [-v level]" >&2
+                exit 1
+                ;;
+        c)
+                # genrate netbooting uEnv.txt
+                CONSOLE=$OPTARG
+               ;;
+        v)
+                # genrate netbooting uEnv.txt
+                VERBOSE=$OPTARG
+               ;;
+        esac
+done
+
+
+echo console=$CONSOLE rootdevname=c0d0p1s0 verbose=$VERBOSE