1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 19:44:16 +02:00
Commit Graph

214 Commits

Author SHA1 Message Date
Andy Green
08362c95c7 qi-gta02-compute-nand-kernel-partition-offset.patch
There's one more thing that wants dynpart computed block offset -
the kernel offset used for NAND boot.

This patch moves the business end of the dynparts computation into
the port_init_gta02() so it's done earlier, and writes the block
index into the board_api struct NAND option's partition block start
field.

It also adds a field to the nand_dynparts struct so we can hold both
the true length and true block offset for each partition for later
use by the original code in append_device_specific_cmdline_gta02.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:40 +00:00
Andy Green
dd0c85f427 qi-add-gta02-indentity-part-parsing.patch
Now everything else is in place, we are able to mount
the GTA02 "identity" partition and extract the USB Ethernet
MAC Address from it, and add it to the kernel commandline.

This causes the Ethernet gadget to use the same MAC address
each boot, simplifying DHCP server situation.  The MAC
address in the identity partition is globally unique from
the factory.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:39 +00:00
Andy Green
bb67ea1a84 qi-improve-nand-read-512-granularity.patch
Previously we insisted on NAND block granularity read addressing
and buffer length, even though we normalized the block indexing to
512 bytes to be compatible with ext2 and SD.

This patch improves the read functions so they are completely 512-
block friendly, any number of 512 byte blocks can be fetched from
any 512 byte boundary now.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:39 +00:00
Andy Green
25b5a9ba62 qi-gta02-compute-and-append-dynparts.patch
This adds dynamic partition computation support for Qi on GTA02.
It's for compatability with existing GTA02 using U-Boot partition
scheme where a bad block in the previous partition moves on the
start of the next partition by one block.

It's important that Qi has no private state, so we need to compute
the NAND arrangement each boot.  It turns out this is extremely fast
using Qi's bad block code originally from Xinagfu.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:38 +00:00
Andy Green
a5f8c6f2f8 qi-add-append_device_specific_cmdline-API.patch
Add a board API callback that allows a device-specific
commandline area to be created at the time the kernel
commandline is being composed.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:38 +00:00
Andy Green
72ecb60392 qi-add-hex-sprintf-type-functions.patch
We need to print hex into string buffers now, only in
phase 2

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:37 +00:00
Andy Green
dd2344a9c7 qi-add-post-serial-init-api.patch
It can be useful to have a device API that can print device-specific things
after serial is initialized.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:36 +00:00
Andy Green
53279b5983 qi-export-s3c2442-nand-bad-block-check.patch
At least GTA02 specific code is now interested in bad blocks.
Rename the function and export it.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-03 18:06:36 +00:00
Andy Green
a1af68434b qi-fix-block-init-cache-logic.patch
Changes in the last couple of weeks aimed at cleaning this
code broke the block device init cache logic.  This patch
restores the logic and reduces the card init failures when
there is no SD Card present to 1 regardless of the number
of partitions probed on the card.

Together with the reduction in Glamo card wait on init this
reduces the delay before trying NAND to 1/9th of before the
patches.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-01 19:28:18 +00:00
Andy Green
f3c740f11c qi-reduce-glamo-mmc-wait-delay.patch
3000 retries is a very long time for an SD card to wake up,
far longer than should be necessary.  This patch reduces it
to 1000.

Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-01 19:28:18 +00:00
Paul Fertser
7132195b32 Fix handling of 60 bytes long symlinks
On ext2 the symlink can be stored in inode itself if it's not larger than
60 bytes. If the symlink path is exactly 60 bytes, then one more byte is
needed to store terminating NULL, therefore the path is placed in a
separate block.
2009-01-31 17:23:30 +00:00
Werner Almesberger
4a8cabd5a9 None
The PMU initializes all GPIOs to inputs in NoPower, including GPIO2,
which drives GSM_ON and has an external pull-up. Furthermore, we may
have entered PMU.Standby with the modem up.

Unlike u-boot, qi didn't initialize the GPIOs. With this patch is
does.

Reported-by: Paul Ferster <fercerpav@gmail.com>
Signed-off-by: Werner Almesberger <werner@openmoko.org>
2009-01-31 17:23:30 +00:00
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
5ffd09774d Describe interactive UI in README 2009-01-23 11:26:44 +00:00
Paul Fertser
bdaef4fd50 GTA01: use POWER button to append debug parameters to the kernel command line
This patch is based on the one tested on GTA02, it compiles but i could not
verify if it works.
2009-01-19 01:37:09 +00:00
Paul Fertser
7c8892dfa1 GTA02: use POWER button to append debug parameters to the kernel command line 2009-01-19 01:37:09 +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
Andy Green
f055e1e9a1 qi-change-partitioning.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2009-01-19 01:37:08 +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
Christopher Hall
b98b8f5ea1 Fix dmesg line filtering if uptime is too low
On Ubuntu 8.04.1 there can be spaces inside the initial bracketed
uptime number after a reboot.  These spaces disappear once the uptime
is large enough.  Therefore, use sed to filter out these spaces so
that the cut command that extracts SD card size will always work.

Signed-off-by: Christopher Hall <hsw@openmoko.com>
2009-01-07 10:07:46 +00:00
Andy Green
e08b518990 qi-gta02-correct-filter-polarity.patch
Filter is enabled by b4 being 0 in each case, not 1

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-18 13:49:44 +00:00
Andy Green
6e190bc68c qi-gta02-rootdelay.patch
There's not enough time between Glamo init (now after pcf50633 init)
and the completion of machine init before we try to use the boot device
in the case of GTA02 and SD boot.  So we add rootdelay=1 to the SD
card boot cases

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-18 13:49:33 +00:00
Paul Fertser
177921a4e6 [PATCH] Some SD cards require more retries in mmc_init
This patch effectively doubles maximum time allowed for retries performed by
mmc_init. Also, the delay was shortened to lower the average time needed to
init a card. Without it, i was unable to boot from Transcend TS8GUSDHC4
(appending rootdelay=1 was necessary as well).
2008-12-13 20:34:46 +00:00
Andy Green
51ce8bac68 qi-gta03-suspend-gpio.patch
Change to input / pulldown on most GPIO.  With no battery and just
USB power, this gets us into suspend with 9.5mA at 5V consumption... but
Ben Dooks told that we don't put the mDDR into deep sleep yet in the
platform pm code, so this should come right down when we have that.

The suspend is otherwise real though, PWREN to the PMU goes down, and
when we wake the device Qi is able to see it is a resume wake and jumps
back into Linux, where we currently die due to issues on s3c6410 platform
code getting worked on.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-09 11:04:57 +00:00
Andy Green
b5c87ae317 qi-gta03-revert-to-bin-sh.patch
Rootfs is not quite ready for /sbin/init

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:48 +00:00
Andy Green
74dc2cc01a qi-fix-gta03-default-wlan-power.patch
Make sure WLAN module power is off by default - this controls
a P-Channel MOSFET that gates all the power there

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:48 +00:00
Andy Green
f9b0afbdb6 qi-gta03-fix-charging.patch
These two changes get charging working on GTA03 with new battery.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:47 +00:00
Andy Green
6dae9d7009 qi-gta02-improve-default-reg-states.patch
Need to let PWREN take care of more regulators really

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:47 +00:00
Andy Green
1f150a592e qi-s3c6410-add-resume-path-processing.patch
First go at resume processing for 6410, can't test it until Ben Dooks
confirms operation of Linux side on SMDK

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-05 23:15:47 +00:00
Andy Green
af49f931b6 qi-gta03-rootdelay.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 11:16:17 +00:00
Andy Green
14acfb40af qi-gta02-no-inidcators-if-battery-low.patch
This patch turns on the SYS and BAT monitoring filters, and checks if the battery
meets the BAT OK threshold.  If it doesn't, which is the case if the battery is
not present, it disables the "indicator" (eg, LED, vibrator) stuff and holds the
CPU at 200MHz during the boot into Linux.

This allows the GTA02 A6 here to boot with no battery up to the point it is
going to bring up backlight, and this with 100mA limit on USB at PMU.  Enabling
the threshold filters for battery and SYS seems to have been critical in
getting any stability with this.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:07 +00:00
Andy Green
3867e3d4ce qi-gta01-02-03-always-tty0-console.patch
tty0 is the LCM... this patch changes the defaults so that the kernel
always treats tty0 as a console, but it also sets the loglevel so that
only KERN_ERR or worse will be printed there.  With matching changes
to the kernel, most of the noise at KERN_ERR is reduced to KERN_INFO,
so it gets the behviour the LCM by default is not cluttered with
messages unless they are important during boot.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:07 +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
40edd785a7 qi-gta02-remap-steppingstone.patch
Despite what the docs say, steppingstone is always resident at
0x40000000 on s3c2442, this patch changes our linker script to
stick all steppingstone code there.  The mapping of steppingstone
at 0x0 is broken by OM[] bus change dynamically caused for example
by GTA02 AUX button actuation.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:06 +00:00
Andy Green
9a6d9de901 qi-s3c2442-enable-d-cache.patch
Seems we have no D-Cache enabled before?  Also defeat AUX as EINT

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
f23a39d80d qi-gta01-add-ui-debounce.patch
Signed-off-by: Andy Green <andy@openmoko.com>
2008-12-01 01:26:04 +00:00