diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-18 21:36:27 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-09-18 21:36:27 -0400 |
commit | 827b332f68267c6616a51e126601df84aed0b17c (patch) | |
tree | bba09f95f979ad8a6066d907217d8e342d5c93fa | |
parent | 6e3159375067bda18368f3948a4df36659bc1a43 (diff) |
Add netconsole and auto-version to PandaBoard install script.
-rw-r--r-- | panda-boot-sample.script | 2 | ||||
-rwxr-xr-x | panda-install-kernel.sh | 16 |
2 files changed, 12 insertions, 6 deletions
diff --git a/panda-boot-sample.script b/panda-boot-sample.script index 4f822ab..d017085 100644 --- a/panda-boot-sample.script +++ b/panda-boot-sample.script | |||
@@ -1,4 +1,4 @@ | |||
1 | fatload mmc 0:1 0x80000000 uImage-litmus | 1 | fatload mmc 0:1 0x80000000 uImage-litmus |
2 | fatload mmc 0:1 0x81600000 uInitrd-litmus | 2 | fatload mmc 0:1 0x81600000 uInitrd-litmus |
3 | setenv bootargs ro elevator=noop vram=40M mem=456M@0x80000000 mem=512M@0xA0000000 root=UUID=1c7e7b13-56b8-430a-aed1-50ee431e84c2 fixrtc console=ttyO2,115200n8 | 3 | setenv bootargs ro elevator=noop vram=40M mem=456M@0x80000000 mem=512M@0xA0000000 root=UUID=1c7e7b13-56b8-430a-aed1-50ee431e84c2 fixrtc console=ttyO2,115200n8 netconsole=4444@152.2.130.212/eth0,2345@152.2.142.84/00:21:9b:1b:85:7e |
4 | bootm 0x80000000 0x81600000 | 4 | bootm 0x80000000 0x81600000 |
diff --git a/panda-install-kernel.sh b/panda-install-kernel.sh index 2f20990..2ed5aab 100755 --- a/panda-install-kernel.sh +++ b/panda-install-kernel.sh | |||
@@ -13,13 +13,19 @@ UBOOT_PART=/dev/mmcblk0p1 | |||
13 | # Build host for ARM. | 13 | # Build host for ARM. |
14 | HOST="pound.cs.unc.edu" | 14 | HOST="pound.cs.unc.edu" |
15 | 15 | ||
16 | if [ $# -ne 3 ] ; then | 16 | if [ $# -ne 2 ] ; then |
17 | error "Usage: `basename $0` <VERSION> <REMOTE KDIR> <BOOT-SCRIPT>" | 17 | error "Usage: `basename $0` <REMOTE KDIR> <BOOT-SCRIPT>" |
18 | fi | 18 | fi |
19 | 19 | ||
20 | VERSION=$1 | 20 | SRC_ROOT=$1 |
21 | SRC_ROOT=$2 | 21 | SCRIPT_NAME=$2 |
22 | SCRIPT_NAME=$3 | 22 | |
23 | set +e | ||
24 | VERSION=$(ssh $HOST cat $SRC_ROOT/include/config/kernel.release) | ||
25 | set -e | ||
26 | if [ "x" = "x$VERSION" ] ; then | ||
27 | error "Could not determine version" | ||
28 | fi | ||
23 | 29 | ||
24 | if [ ! -f "$SCRIPT_NAME" ] ; then | 30 | if [ ! -f "$SCRIPT_NAME" ] ; then |
25 | error "Boot script not a file: $SCRIPT_NAME" | 31 | error "Boot script not a file: $SCRIPT_NAME" |