Matthieu Crapet wrote:
6 RedBoot partitions found on MTD device
phys_mapped_flash
Creating 6 MTD partitions on
"phys_mapped_flash":
0x00000000-0x00e20000 :
"(reserved)"
mtd: Giving out device 0 to
(reserved)
0x00e20000-0x00e60000 :
"RedBoot"
mtd: Giving out device 1 to
RedBoot
0x00e60000-0x00fa0000 :
"zImage"
mtd: Giving out device 2 to
zImage
0x00fa0000-0x00fc0000 :
"unallocated"
mtd: Giving out device 3 to
unallocated
0x00fc0000-0x00fc1000 : "RedBoot
config"
mtd: Giving out device 4 to RedBoot
config
0x00fe0000-0x01000000 : "FIS
directory"
mtd: Giving out device 5 to FIS
directory
-bash-3.1# mount -t jffs2 -o ro /dev/mtdblock/0
/mnt
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at
0x00000000: 0x5243 in
stead
No ! You are trying to mount the "(reserved)" partition, which is in
fact TS-BOOTROM + the jffs2 image.
You can give a try to the command line partition table parsing
(CONFIG_MTD_CMDLINE_PATRS).
For exemple: mtdparts=phys_mapped_flash:@0x00020000(FS)
You can also make your own map driver and don't use anymore the physmap
driver.
You'll have to comment the physmap_configure line in
arch/arm/mach-ep93xx/ts72xx.c.
I can send it to you if you are interested.
# cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00020000 "Full TS-7200 NOR flash"
mtd1: 00020000 00020000 "TS-BOOTROM"
mtd2: 00600000 00020000 "RootFS"
mtd3: 001e0000 00020000 "Redboot"
Thanks Matthieu!
Actually, an hour after I sent my previous mail, I came to the same
conclusion. The other problem was convincing the kernel to mount
root as JFFS2, which I also managed.
My kernel command line now looks like this (sorry if the mailers wrap):
exec -c "console=ttyAM0,115200 root=/dev/mtdblock1 \
mtdparts=phys_mapped_flash:128k(TS-BOOTROM)ro,14336k(Linux),-(RedBoot)
\ rootfstype=jffs2"
This is for a TS7200 with 16MB flash; I got the numbers from
booting with a 2.4.26-ts9 kernel, as follows:
Creating 3 MTD partitions on "TS-7200 flash":
0x00000000-0x00020000 : "TS-BOOTROM"
0x00020000-0x00e20000 : "Linux"
0x00e20000-0x01000000 : "RedBoot"
Now the only problem I have is a minor one: mounting root takes
about 10 seconds, and produces these warnings:
ep93xx-rtc ep93xx-rtc: rtc intf:
sysfs
ep93xx-rtc ep93xx-rtc: rtc intf: dev
(254:1)
ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx as
rtc1
i2c /dev entries
driver
TCP bic
registered
NET: Registered protocol family
1
NET: Registered protocol family
17
NET: Registered protocol family
15
rtc-m48t86 rtc-m48t86: hctosys: invalid
date/time
Unknown but compatible feature node (0x2005) found at offset
0x00000000
Unknown but compatible feature node (0x2005) found at offset
0x00020000
Unknown but compatible feature node (0x2005) found at offset
0x00040000
...[long list snipped]...
Unknown but compatible feature node (0x2005) found at offset
0x006a0000
Unknown but compatible feature node (0x2005) found at offset
0x006c0000
VFS: Mounted root (jffs2
filesystem).
I make my filesystem from an untarred TS filesystem like this:
cd flash-fs-root
mkfs.jffs2 -p6291456 -e131072 -o ../flash-fs-image
Anyone have any ideas?
Andrew
__._,_.___
SPONSORED LINKS
YAHOO! GROUPS LINKS
- Visit your group "ts-7000" on the web.
- To unsubscribe from this group, send an email to:
=Unsubscribe
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
|
|