This adds ext2 support from U-Boot and stitches it into the
partition stuff. It also upgrades the board definitions so they
can define the path to look for in the ext2 filesystem being
mounted. I used /boot/uImage.bin because this is already in use
by the packaged kernel.
We now mount, open and pull the kernel from ext2 in phase2.c if
the kernel source defines it.
Signed-off-by: Andy Green <andy@openmoko.com>
We have to minimally support DOS partition scheme.
Partitions are counted from 1+ now, and 0 means no
partition table instead of -1.
Signed-off-by: Andy Green <andy@openmoko.com>
Giant patch:
- renames everything from kboot to qi
- changes filenames accordingly in several places
- fixes the linker script so stuff that does not execute
from steppingstone context has real linked addresses
in the relocated region, it means all code and pointers
work now outside first 4KBytes
- adds src/gta02/gta02.c to contain board-specific init and
other functions
- adds sophisticated structs to define most features in the
board-specific files, including board type detection,
board revision detection, and multiple kernel source
definition (NAND, SD FAT, SD ext2, etc), including auto
sequencing of trying the kernel sources in order (filesystems
and partition support not done yet)
- GTA02 detects itself by NOR presence and reports A5 / A6
- commandlines for kernel also come from board-specific
kernel source definitions so correct kernel commandlines
are provided depending on boot device -- on GTA02 now
boots NAND kernel into NAND jffs2 filesystem
- CRC32 is checked on loaded kernel image to make sure we
know about corruption in bootloader
Signed-off-by: Andy Green <andy@openmoko.com>
NAND stuff wasn't going to do anything until the controller in
the CPU was reset. NAND code was cleaned and other minor meddlings
Signed-off-by: Andy Green <andy@openmoko.com>