linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Zaurus: Fix PROM partition table for spitz
@ 2009-10-22 20:58 Stanislav Brabec
  2009-10-22 21:05 ` Eric Miao
  0 siblings, 1 reply; 6+ messages in thread
From: Stanislav Brabec @ 2009-10-22 20:58 UTC (permalink / raw)
  To: linux-arm-kernel

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@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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-22 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-22 20:58 [PATCH] Zaurus: Fix PROM partition table for spitz Stanislav Brabec
2009-10-22 21:05 ` Eric Miao
2009-10-22 21:13   ` Stanislav Brabec
2009-10-22 21:33     ` Eric Miao
2009-10-22 21:45       ` Pavel Machek
2009-10-22 22:09         ` Stanislav Brabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).