From e450333e3f391609bf94da52be2df69f39f3a759 Mon Sep 17 00:00:00 2001 From: robotboy Date: Mon, 5 Apr 2010 17:26:46 -0700 Subject: [PATCH] Set the bootargs in the MBR script. This is one less thing to change when setting up a Voguev210 and if we need to change anything later we won't have to reconnect all of them to debug boards. BUG=None TEST=Build and boot a Voguev210 image. Review URL: http://codereview.chromium.org/1596010 --- build_gpt.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build_gpt.sh b/build_gpt.sh index 02be98c2ba..8b43cca430 100755 --- a/build_gpt.sh +++ b/build_gpt.sh @@ -112,8 +112,16 @@ if [[ "$ARCH" = "arm" ]]; then # Create the U-Boot script to copy the kernel into memory and boot it. KERNEL_OFFSET=$(printf "0x%08x" ${START_KERN_A}) KERNEL_SECS_HEX=$(printf "0x%08x" ${NUM_KERN_SECTORS}) + + BOOTARGS="root=/dev/mmcblk1p3" + BOOTARGS="${BOOTARGS} init=/sbin/init" + BOOTARGS="${BOOTARGS} console=ttySAC2,115200" + BOOTARGS="${BOOTARGS} mem=1024M" + BOOTARGS="${BOOTARGS} rootwait" + MBR_SCRIPT="${IMAGEDIR}/mbr_script" echo -e "echo\necho ---- ChromeOS Boot ----\necho\n" \ + "setenv bootargs ${BOOTARGS}\n" \ "mmc read 1 C0008000 $KERNEL_OFFSET $KERNEL_SECS_HEX\n" \ "bootm C0008000" > ${MBR_SCRIPT} MKIMAGE="${FLAGS_board_root}/u-boot/mkimage"