Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: src/scripts/build_gpt.sh

Issue 1596010: Set the bootargs in the MBR script. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/build_gpt.sh
diff --git a/src/scripts/build_gpt.sh b/src/scripts/build_gpt.sh
index 02be98c2ba2ff052281ba948ac2d6f3a0efa8e20..8b43cca43005f1668421b1243552789ebcf4bff1 100755
--- a/src/scripts/build_gpt.sh
+++ b/src/scripts/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"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698