1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-23 18:58:05 +02:00
Commit Graph

38 Commits

Author SHA1 Message Date
Andy Green
fbc7e8b244 qi-strip-trailing-newlines-in-append-file.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-01-31 17:23:29 +00:00
Paul Fertser
6940235ae6 Add a dedicated function to query debug action to board_api
On the devices where we have only 2 physical buttons, one of those buttons
(i.e. POWER) is connected directly to PMU. The other button (AUX) is
connected directly to S3C pin and we can get its state immediately, it is
currently used to skip a boot possibility. To allow user to debug boot
problems we can use the POWER button, but we cannot poll for it too many
times as it slows down the boot considerably, therefore a dedicated
function is needed.
2009-01-19 01:37:09 +00:00
Werner Almesberger
9ec680a757 zimage: add support for the zImage format
If the kernel we found isn't an uImage, try to use it as a zImage.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:53 +00:00
Werner Almesberger
188fff8fc3 zimage: separate uImage loader from try_this_kernel
Finally all the restructuring pays off: we can cleanly separate the
uImage loader from all the rest, which will make it easy to add
loaders for other kernel image formats.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:52 +00:00
Werner Almesberger
31448578d1 phase2: use a typedefed type for the kernel function
This makes things a little easier to read, particularly when we return
this pointer from a function, which we'll do in the next patch.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:51 +00:00
Werner Almesberger
73b8441e3b phase2: use "static" wherever possible
Makes it easier to determine what can be safely changed.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:51 +00:00
Werner Almesberger
9411e40603 phase2: block init buggy x
Is it really correct to set last_block_init to the next entry ?
It would seem that the current (i.e., bogus) values are then just
used without further ado. Untested.

Not-Yet-Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:50 +00:00
Werner Almesberger
f5798e6359 phase2: separate block init from try_this_kernel
As an added benefit, we can drop one level of indentation.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:49 +00:00
Werner Almesberger
d3ee803b58 phase2: separate CRC from try_this_kernel
As an added benefit, we can drop one level of indentation.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:49 +00:00
Werner Almesberger
668e3f5ed9 phase2: separate partition scan from try_this_kernel
As an added benefit, we can drop one level of indentation.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:48 +00:00
Werner Almesberger
545f0662ef phase2: separate parameter setup from try_this_kernel
It's still huge, but less painful to read.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:47 +00:00
Werner Almesberger
5c75acae12 phase2: no space after function
Putting a space between a function name and the parenthesis following
it ain't the One True K&R Way.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:46 +00:00
Werner Almesberger
32f76a7afe phase2: simplify the bootloader_second_phase mega-loop
This puts the loop body in a new function called try_this_kernel.
As an added benefit, we can drop one level of indentation.

This change is hard to read as a patch. It gets better if one just
applies it and then looks at it with "git diff -w" or similar.

Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-09 04:32:46 +00:00
Andy Green
b4d381380c qi-fix-only-init-same-block-device-once.patch
If we're accessing the same device, we don't need to keep init-ing it

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:07 +00:00
Andy Green
513fb7d0fc qi-clean-fail-partition-on-mount-fail.patch
Failure to mount the filesystem makes us give up on the whole partition
the moment it happens

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:06 +00:00
Andy Green
710f2dbb6e qi-introduce-ui-indicators.patch
Allow a board to "indicate" events if it likes on whatever it has

On GTA02 we light AUX during boot and run the vibrator briefly when we
skip a partition or device.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:06 +00:00
Andy Green
5c9a2104f9 qi-commandline-debug-added-if-ui-key-down.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:05 +00:00
Andy Green
842a4ad19b qi-kernel-source-skip-if-ui-key-down.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:05 +00:00
Andy Green
d0c9237ee1 qi-fix-nand-noboot-append-disable.patch
Recent addition of append and noboot file checks broke NAND

Reported-by: Micael Henriksson <micael.h@gmail.com>
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:45 +00:00
Andy Green
02fb616721 qi-fixes-append.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:45 +00:00
Andy Green
1b06d98bc7 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>
2008-11-28 10:16:45 +00:00
Andy Green
46fd1c005b qi-commandline-split.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:45 +00:00
Andy Green
69de926cf4 qi-memory-test-when-no-kernels.patch
This makes a new behaviour for Qi, when there are no valid kernels then it
performs the memory test.  It means you can either move kernels out of the way
to get the memory test, or make an SD Card just with normal Qi on it and no
kernels to get a memory test.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:42 +00:00
Andy Green
fe884c6d10 qi-add-initrd-support.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:41 +00:00
Andy Green
38ccc50783 qi-clean-s3c6410-hs_mmc.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:41 +00:00
Andy Green
82d2e255c3 qi-add-sc36410-mci.patch
This heavily adapts the Samsung U-Boot hs_mmc code and combines it with the
SD / SDHC startup code written for glamo-mci stuff that is known to work OK
with common SD and SDHC.

tla01 is changed to use the implementation.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:40 +00:00
Andy Green
24a263998c qi-move-cpu-specific-drivers-into-cpu-dir.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:40 +00:00
Andy Green
064a13861c qi-refactor-for-multi-cpu-add-s3c6410-base.patch
This patch makes qi source structure cpu-centric, and allows multiple CPUs
to be handled with the board definitions inside the CPU dirs.

You have to make a particular CPU version of Qi now, which you can do by
a shell command like this:

make clean ; make CPU=s3c2442 && make CPU=s3c6410

which gets you

$ ls -l image/
total 744
-rwxrwxr-x 1 agreen agreen  25372 2008-10-17 18:25 qi-s3c2442-andy_77c1fcdddc3e2cbf
-rw-rw-r-- 1 agreen agreen 237100 2008-10-17 18:25 qi-s3c2442-andy_77c1fcdddc3e2cbf.dis
-rw-rw-r-- 1 agreen agreen  25388 2008-10-17 18:25 qi-s3c2442-andy_77c1fcdddc3e2cbf.udfu
-rwxrwxr-x 1 agreen agreen  22736 2008-10-17 18:25 qi-s3c6410-andy_77c1fcdddc3e2cbf
-rw-rw-r-- 1 agreen agreen 216294 2008-10-17 18:25 qi-s3c6410-andy_77c1fcdddc3e2cbf.dis
-rw-rw-r-- 1 agreen agreen  22752 2008-10-17 18:25 qi-s3c6410-andy_77c1fcdddc3e2cbf.udfu

The 6410 support in there is enough to send a character "U" on the 6410 SMDK

Because the product naming is not defined, currently the device targeted for 6410
is called "TLA01"

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:40 +00:00
Andy Green
0a72b19c3f qi-return-i2c-to-peripheral.patch
Return IO to peripheral mode for i2c at end of init

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:39 +00:00
Andy Green
2e2480ff21 qi-fix-slow-first-bulk.patch
This patch performs the equivalent init actions to the SDHC slow
unitl first bulk patch in kernel, it allows us to work with large
SDHC cards which exceed Glamo timeout capability at 16MHz for first
access.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:38 +00:00
Andy Green
ec8ea0c281 add-ext2-fs.patch
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>
2008-11-28 10:16:37 +00:00
Andy Green
935ef0e12d add-partition-support.patch
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>
2008-11-28 10:16:37 +00:00
Andy Green
1b043e0fe5 add-print-decimal.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:37 +00:00
Andy Green
4a8bada671 add-per-board-init-change-qi.patch
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>
2008-11-28 10:16:36 +00:00
Andy Green
8cff2ca836 move-kboot.h-to-include.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:35 +00:00
Andy Green
b8407950d8 add-comments-and-tidy.patch
Push the config options into a config .h, tidy things, add attribution

Signed-off-by: Andy Green <andy@openmoko.com>
2008-08-13 00:45:55 +01:00
Andy Green
a9c7c47189 tidy-strings.patch
Move things around to tidy them up

Signed-off-by: Andy Green <andy@openmoko.com>
2008-08-13 00:44:56 +01:00
Andy Green
f26f60b0ac fix-nand.patch
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>
2008-08-13 00:42:35 +01:00