1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-29 08:54:05 +02:00

qi-gta02-also-try-boot-sdcard-partition-2.patch

This gives compatability with SD Cards using the old U-Boot scheme of an initial
VFAT part for kernel and then ext2.  If you put the kernel you actually want to
use in /boot/uImage.bin in the ext2 partition, it can boot these cards then.

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-11-28 10:16:42 +00:00 committed by Andy Green
parent 69de926cf4
commit 736355ab4f

View File

@ -405,6 +405,28 @@ const struct board_api board_api_gta02 = {
"ro" "ro"
}, },
[1] = { [1] = {
.name = "SD Card EXT2 Kernel",
.block_init = sd_card_init_gta02,
.block_read = sd_card_block_read_gta02,
.partition_index = 2,
.filesystem = FS_EXT2,
.filepath = "boot/uImage.bin",
.commandline = "mtdparts=physmap-flash:-(nor);" \
"neo1973-nand:" \
"0x00040000(qi)," \
"0x00040000(cmdline)," \
"0x00800000(backupkernel)," \
"0x000a0000(extra)," \
"0x00040000(identity)," \
"0x0f6a0000(backuprootfs) " \
"rootfstype=ext3 " \
"root=/dev/mmcblk0p2 " \
"console=ttySAC2,115200 " \
"loglevel=4 " \
"init=/sbin/init "\
"ro"
},
[2] = {
.name = "NAND Kernel", .name = "NAND Kernel",
.block_read = nand_read_ll, .block_read = nand_read_ll,
.offset_blocks512_if_no_partition = 0x80000 / 512, .offset_blocks512_if_no_partition = 0x80000 / 512,