CI SONO RIUSCITO!!!! IS WORKING!!!
Ok. The fact is this.
Openwrt with WP188 see only one flash, but openwrt is little than 8mb, so this is not a problem.
I loaded on redboot my kernel and my filesystem like this:
load -r -v -b 0x00080000 /tftpboot/compex-kernel
fis create -b 0x00080000 -l 0x00140000 kernel
load -r -v -b 0x00200000 /tftpboot/squashfs
fis create -b 0x00200000 -l 0x00200000 squash
Then the problem is that the FIS partition table is at position 0x00FE0000, while openwrt seek it at the address 0x007E0000. This because openwrt detect only one flash, and not the second, while redboot uses bot the modules.
I think there is something to change on the file arch/arm/mach-ixp4xx/compex-setup.c, or to create a new config file.
Ok.. but i Hate working.. so i tried like this:
mcopy -s 0x50fe0000 -d 0x00100000 -l 0x01f000
fis create -b 0x00100000 -l 0x001f000 -f 0x507e0000 FISdirb
This is to copy the fis partition table to the address 0x007E0000, and has to be repeated if the size of kernel of filesystem change.. but after this the kernel boot:
Uncompressing Linux...
Output start: 0X0017A7FC
Freemem: 0X0016A7FC
Freememend: 0X0017A7FC
arch_id: 0X000004F9............................................................
done, booting the kernel.
Output ptr: 0X001D9BF4Linux version 2.6.21.5 (root@enrico-desktop) (gcc version 4.1.2) #42 Thu Sep 6 16:30:04 CEST 2007
CPU: XScale-IXP42x Family [690541c2] revision 2 (ARMv5TE), cr=000039ff
Machine: Compex WP18 / NP18A
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists. Total pages: 32512
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 init=/etc/preinit
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 127872KB available (1736K code, 162K data, 72K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers enabled
NET: Registered protocol family 2
Time: OSTS clocksource has been installed.
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
IXP4xx Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
IMQ starting with 2 devices...
IMQ driver loaded successfully.
Hooking IMQ before NAT on PREROUTING.
Hooking IMQ after NAT on POSTROUTING.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
IXP4XX Q Manager 0.2.1 initialized.
IXP4XX NPE driver Version 0.3.0 initialized
ixp4xx_crypto 0.0.1 registered successfully
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
6 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 6 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00080000 : "RedBoot"
npe: searching for firmware...
npe: found at 0x17a8c, IXP425/NPE-A func: 05, rev: a.8, size: 1073516, id: 0005dae8
npe: found at 0x45008, IXP425/NPE-B func: 00, rev: 2.1, size: 11964, id: 01000201
Image loaded to NPE-B Func:0, Rel: 2:1, Status: 80800000
npe: found at 0x47ec4, IXP425/NPE-C func: 00, rev: 2.1, size: 11964, id: 02000201
Image loaded to NPE-C Func:0, Rel: 2:1, Status: 80800000
0x00080000-0x001c0000 : "kernel"
0x001c0000-0x003c0000 : "squash"
0x003c0000-0x00fe0000 : "unallocated"
mtd: partition "unallocated" extends beyond the end of device "IXP4XX-Flash.0" -- size truncated to 0x440000
0x00fe0000-0x00fff000 : "FIS directory"
mtd: partition "FIS directory" is out of reach -- disabled
0x00fff000-0x01000000 : "RedBoot config"
mtd: partition "RedBoot config" is out of reach -- disabled
nf_conntrack version 0.5.0 (1024 buckets, 8192 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP westwood registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
XScale DSP coprocessor detected.
ixp4xx_mac driver 0.3.1: eth0 on NPE-B with PHY[-1] initialized
ixp4xx_mac driver 0.3.1: eth1 on NPE-C with PHY[3] initialized
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 72K
Warning: unable to open an initial console.
init started: BusyBox v1.4.2 (2007-08-08 18:01:20 CEST) multi-call binary
rm: cannot remove '/etc/rc.d/S50telnet': Operation not permitted
rm: cannot remove '/etc/rc.d/S50httpd': Operation not permitted
ip_queue: failed to register queue handler
wlan: 0.8.4.2 (svn r2568)
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, REGOPS_FUNC)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (svn r2568)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: 0.9.4.5 (svn r2568)
Jan 1 00:00:10 crond[3161]: crond 2.3.2 dillon, started, log level 8
...
I received an error because the flash is beyond the end of device, but my modified copy of openwrt boot...
Problem solved. This was the last board i had to port my OS, and it's running.
If i can see, looking to the compex-openwrt code (that works on WP188) a better solution i will post the modified files on this forum.