[PATCH 0/7] Qi rename, board-centric architecture, fix >4KByte linker script

Andy Green andy at openmoko.com
Mon Aug 18 00:23:58 CEST 2008


These patches add a bunch of improvements mainly getting qi ready to handle
gta02 and 03 in the same tree and binary.  It also finally gets the linker
script right so stuff is built for either steppingstone context or copied
SDRAM address context according to what file it was compiled from, it means
we are properly immune to 4KByte steppingstone limit.

Everything is changed to use the qi name including the source files themselves.

Preparing for mmc support it now allows the board definition to propose
multiple sources of the kernel binary and it will try them in turn.  The
NAND one implemented for GTA02 will now boot jffs2 filesystem normally after
taking normal GTA02 kernel from NAND.  Each kernel source definition specifies
its own kernel commandline to match where it boots from.  The idea is that it
will eventually try SD Card FAT, then SD Card ext2, then NAND kernel in that
order automatically by default.

It also adds CRC checking and uses it at the moment to check against kernel
udfu header CRC32 so we get alerted if there is any shakiness before we crash
in kernel decompress.

MMC stuff from U-Boot is placed in ./src/drivers but not enabled yet.

---

Andy Green (7):
      add-glamo-mmc-files.patch
      change-drivers-dir.patch
      add-nand-read-prototype.patch
      add-per-board-init-change-qi.patch
      move-kboot.h-to-include.patch
      change-name.patch
      add-nand-fixed-partition-layout.patch


 Makefile                       |   22 +
 dfu-kboot                      |    7 
 dfu-qi                         |    7 
 include/device_configuration.h |   15 -
 include/fat.h                  |  220 +++++++++++
 include/neo_gta02.h            |    4 
 include/qi-ctype.h             |   45 ++
 include/qi-serial.h            |  111 +++++
 include/qi.h                   |   90 ++++
 src/ctype.c                    |    2 
 src/ctype.h                    |   45 --
 src/drivers/glamo-mmc.c        |  828 ++++++++++++++++++++++++++++++++++++++++
 src/drivers/glamo-mmc.h        |  149 +++++++
 src/drivers/glamo-regs.h       |  628 ++++++++++++++++++++++++++++++
 src/drivers/s3c24xx-mci.c      |  540 ++++++++++++++++++++++++++
 src/drivers/s3c24xx-mci.h      |   33 ++
 src/fat.h                      |  220 -----------
 src/gta02/gta02.c              |  235 +++++++++++
 src/kboot-stage1.lds           |   64 ---
 src/kboot.h                    |   37 --
 src/lowlevel_init.S            |   17 -
 src/mmc.c                      |  538 --------------------------
 src/mmc.h                      |   33 --
 src/nand_read.c                |    8 
 src/phase2.c                   |  245 +++++++-----
 src/qi.lds                     |   59 +++
 src/serial.c                   |   91 ++--
 src/start.S                    |   43 ++
 src/start_kboot.c              |  181 ---------
 src/start_qi.c                 |  108 +++++
 src/utils.c                    |  109 +++++
 31 files changed, 3402 insertions(+), 1332 deletions(-)
 delete mode 100755 dfu-kboot
 create mode 100755 dfu-qi
 delete mode 100644 include/device_configuration.h
 create mode 100644 include/fat.h
 create mode 100644 include/qi-ctype.h
 create mode 100644 include/qi-serial.h
 create mode 100644 include/qi.h
 delete mode 100644 src/ctype.h
 create mode 100644 src/drivers/glamo-mmc.c
 create mode 100644 src/drivers/glamo-mmc.h
 create mode 100644 src/drivers/glamo-regs.h
 create mode 100644 src/drivers/s3c24xx-mci.c
 create mode 100644 src/drivers/s3c24xx-mci.h
 delete mode 100644 src/fat.h
 create mode 100644 src/gta02/gta02.c
 delete mode 100644 src/kboot-stage1.lds
 delete mode 100644 src/kboot.h
 delete mode 100644 src/mmc.c
 delete mode 100644 src/mmc.h
 create mode 100644 src/qi.lds
 delete mode 100644 src/start_kboot.c
 create mode 100644 src/start_qi.c

-- 
Signature



More information about the openmoko-kernel mailing list