OpenWrt Forum Archive

Topic: Openwrt on compex Wp188 instead of Wp18

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a board Compex Wp188, and i'm trying to run on this openwrt.

The kernel for compex WP18 boot, but there is a difference between this and the previous model: tha size of the flash is 16mb instead of 8mb. I think is for this, the MTD driver seek the redboot partition at the address 0x007E0000, while this is at the address 0x00FE0000.  On the pronghorn board, for example, that is supported with 16mb, the address is correct.

I would like to know where to change the openwrt configuration to support 16mb of flash instead of 8mb.

This seem to be the only real difference between wp18 and wp188: the rest of the kernel boot well, but i can't find the filesystem because the partition table is not found.

I don't like the idea to "fix" this value in the file redboot.c, because i have to support asto pronghorn and other boards, and  because may be i will do an update of the kernel, so i would like to change the "profile" for compex board.

Thanks smile

CI SONO RIUSCITO!!!! IS WORKING!!!  smile tongue smile tongue

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.

Did you originally have Redboot on WP188?

no. Obvyously. But the compex wp188 mylo loader force you to load kernel and filesystem to a fixed address, so my kernel, that was bigger, can't fit.

I simply used the compex update utility with their redboot copy.

Before is important to update the milo bootloader, and after loading redboot to do "fis init".

I f you are interested on wp188 see my posts:  Openwrt on compex Wp188 instead of Wp18

I Have problems with minipci wireless boards on wp188:

/lib/modules/2.6.21.5 # lsmod                                                   
Module                  Size  Used by                                           
ath_rate_minstrel 6848 0 - Live 0xbf06d000                                     
ath_pci 65956 0 - Live 0xbf05b000                                               
ath_hal 241240 2 ath_rate_minstrel,ath_pci, Live 0xbf01f000 (P)                 
wlan 121132 2 ath_rate_minstrel,ath_pci, Live 0xbf000000                       
/lib/modules/2.6.21.5 # iwconfig wlan0                                         
wlan0     No such device                                                       
                                                                               
/lib/modules/2.6.21.5 # iwconfig                                               
lo        no wireless extensions.                                               
                                                                               
imq0      no wireless extensions.                                               
                                                                               
imq1      no wireless extensions.                                               
                                                                               
eth0      no wireless extensions.                                               
                                                                               
eth1      no wireless extensions.                                               
                                                                               
/lib/modules/2.6.21.5 #

Someone can say me why the board don't find the wireless card Atheros WLM54AG connected on the mini.pci slot?
May be a problem on the addressing? strange because the minipci support is embedded in the ixP425, i think.. a bios problem? do i need to load a bios for ath card like i'm loading it for  ethernet boards?
Thanks
Enrico Betti.

ok.. it's a stupid thing.. simply the solts have to be filled exactly in order: if you have only one cart this has to be in slot 1, two cards in slot 1,2 etc..

studioideasw@gmail.com wrote:

ok.. it's a stupid thing.. simply the solts have to be filled exactly in order: if you have only one cart this has to be in slot 1, two cards in slot 1,2 etc..

Very usefull information:)

thank you very much

Anyway now Compex provides its forked OpenWrt for WP188 too smile

(Last edited by ggp81 on 29 Feb 2008, 09:21)

ggp81 wrote:

Anyway now Compex provides its forked OpenWrt for WP188 too smile

But in the hardware table written = Kamikaze for WP188 and WP18 not fork one. Fork one only apply to WP54.

I think WP188 and WP54 are still both forked

The discussion might have continued from here.