1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

qi-add-noboot-and-append-check.patch

This adds two features that can be set in the rootfs that Qi is checking.

 - if it finds /boot/noboot-<device>, eg /boot/noboot-GTA02 then it will
   skip the rootfs for booting and try the next one if any

 - if it finds /boot/append-<device>, eg, /boot/append-GTA02 then it will
   append the contents of this file to the kernel commandline.

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green
2008-11-28 10:16:45 +00:00
committed by Andy Green
parent 3565397f1c
commit 1b06d98bc7
6 changed files with 46 additions and 17 deletions

View File

@@ -235,6 +235,8 @@ const struct board_api board_api_gta01 = {
"init=/sbin/init "\
"ro",
.commandline_board_debug = " loglevel=8 console=tty0",
.noboot = "boot/noboot-GTA01",
.append = "boot/append-GTA01",
/* these are the ways we could boot GTA01 in order to try */
.kernel_source = {
[0] = {
@@ -244,7 +246,7 @@ const struct board_api board_api_gta01 = {
.partition_index = 1,
.filesystem = FS_EXT2,
.filepath = "boot/uImage-GTA01.bin",
.commandline_append = " root=/dev/mmcblk0p1",
.commandline_append = " root=/dev/mmcblk0p1 ",
},
[1] = {
.name = "SD Card EXT2 Kernel p2",
@@ -253,7 +255,7 @@ const struct board_api board_api_gta01 = {
.partition_index = 2,
.filesystem = FS_EXT2,
.filepath = "boot/uImage-GTA01.bin",
.commandline_append = " root=/dev/mmcblk0p2",
.commandline_append = " root=/dev/mmcblk0p2 ",
},
[2] = {
.name = "SD Card EXT2 Kernel p3",
@@ -262,7 +264,7 @@ const struct board_api board_api_gta01 = {
.partition_index = 3,
.filesystem = FS_EXT2,
.filepath = "boot/uImage-GTA01.bin",
.commandline_append = " root=/dev/mmcblk0p3",
.commandline_append = " root=/dev/mmcblk0p3 ",
},
[3] = {
.name = "NAND Kernel",