[PATCH] Zaurus: Fix PROM partition table for spitz
Stanislav Brabec
utx at penguin.cz
Thu Oct 22 16:58:23 EDT 2009
Attached patch fixes partition table of the Zaurus PROM. It works on
terrier, but I guess it is common for all Zaurus models.
The partition marked "Boot PROM Filesystem" is a fact a database file
for EN-JP dictionary. Designers decided to put the English-Japanese
translation dictionary to the remaining part of the PROM.
Changes:
Newly mapped the bootloader system as "Boot PROM System".
Already mapped EN-JP dictionary changes its name from "Boot PROM
Filesystem" to "EN-JP Data File".
How to verify the layout on other models:
root at zaurus:~# modprobe physmap
root at zaurus:~# file -s /dev/mtd4
/dev/mtd4: DBase 3 data file (1031668283 records)
Signed-off-by: Stanislav Brabec <utx at penguin.cz>
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
index ee8d603..c382d14 100644
--- a/arch/arm/mach-pxa/spitz.c
+++ b/arch/arm/mach-pxa/spitz.c
@@ -658,7 +696,11 @@ static struct platform_device sharpsl_nand_device = {
static struct mtd_partition sharpsl_rom_parts[] = {
{
- .name ="Boot PROM Filesystem",
+ .name ="Boot PROM System",
+ .offset = 0x00100000,
+ },
+ {
+ .name ="EN-JP Data File",
.offset = 0x00140000,
.size = MTDPART_SIZ_FULL,
},
________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
More information about the linux-arm-kernel
mailing list