OpenWrt Forum Archive

Topic: Installation of adm5120 on mg-11g(np28g)

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

Hi.

First of all, thank florian and Gabor Juhos for their great hacks.

I have a mg-11g,
http://www.tcbtech.co.jp/diho/Diho_050406_dl.html
(firmware)
http://www.tcbtech.co.jp/diho/fw/DIHO_M … _B0627.IMG
this device has "11f6-044d" as device id. Np28g has "11f6-040c" and np28ghs has "11f6-040e". So this device is same as np28g, I believe....

Anyway, I installed.
[Output from serial console]

Main Menu

1 - Load Firmware
2 - Load Program
3 - BIOS Setup
4 - Fdisk Utility
5 - Update Flash (Binary Mode)
6 - Update Firmware (Image Mode)
7 - Reboot System

Please select : 6

Update Firmware (Image Mode)

Mini TFTP Server 1.0 (IP : 192.168.168.1)
Usage (Windows 2000/XP) :
  tftp -i 192.168.168.1 put <filename>


Starting the TFTP download from IP (192.168.168.10)...
.......................................................
TFTP download completed...

Updating firmware, please wait ......
Update firmware successfully! Please reboot.

Update Firmware (Image Mode)

Mini TFTP Server 1.0 (IP : 192.168.168.1)
Usage (Windows 2000/XP) :
  tftp -i 192.168.168.1 put <filename>


Main Menu

1 - Load Firmware
2 - Load Program
3 - BIOS Setup
4 - Fdisk Utility
5 - Update Flash (Binary Mode)
6 - Update Firmware (Image Mode)
7 - Reboot System

Please select : 7

Reboot System



MyLoader version 2.31.0310

Probe Flash Device: 00400000 at bfc00000
Flash Device: Found 1 x16 devices at 0x0 in 16-bit mode
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1


Load Firmware

Loading Firmware . Done.

decompress kernel ... ok
Linux version 2.6.19.2 (owrt@localhost) (gcc version 4.1.2) #1 Wed May 23 04:42:59 JST 2007
ADM5120 revision 8, running at 175MHz
Boot loader is: MyLoader
Booted from   : NOR flash
Board is      : Compex NetPassage 28G
GETENV: envname is memsize
GETENV: returning 0x001000000
CPU revision is: 0001800b
ADM5120 board setup
Determined physical RAM map:
 memory: 00d47000 @ 002b9000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 4064
Kernel command line: console=ttyS0,115200 rootfs=jffs2,squashfs init=/etc/preinit
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 64 (order: 6, 256 bytes)
start_kernel(): bug: interrupts were enabled early
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13448k/13596k available (2219k kernel code, 148k reserved, 333k data, 124k init, 0k highmem)
Mount-cache hash table entries: 512
Checking for 'wait' instruction...  available.
NET: Registered protocol family 16
adm5120: system has PCI BIOS
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 128 (order: -3, 512 bytes)
TCP established hash table entries: 512 (order: -1, 2048 bytes)
TCP bind hash table entries: 256 (order: -2, 1024 bytes)
TCP: Hash tables configured (established 512 bind 256)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2006 Red Hat, Inc.
yaffs May 23 2007 04:40:30 Installing.
io scheduler noop registered
io scheduler deadline registered (default)
Registered led device: adm5120:led
ttyS0 at I/O 0x12600000 (irq = 1) is a ADM5120
ttyS1 at I/O 0x12800000 (irq = 2) is a ADM5120
eth0: ADM5120 switch port0
eth1: ADM5120 switch port1
eth2: ADM5120 switch port2
eth3: ADM5120 switch port3
adm5120 : flash init : 0x1fc00000 0x00400000
adm5120 physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x400000 at 0x1fc00000
adm5120 : using MyLoader flash mapping
Searching for MyLoader partition table in adm5120 physically mapped flash at offset 0x10000
Creating 4 MTD partitions on "adm5120 physically mapped flash":
0x00000000-0x00010000 : "MyLoader"
0x00010000-0x00020000 : "Partition Table"
0x00020000-0x00030000 : "partition0"
0x00030000-0x00400000 : "partition1"
block2mtd: version $Revision: 1.30 $
RB1xx nand
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
RB1xxx nand device not found
ip_conntrack version 2.4 (106 buckets, 848 max) - 240 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Cannot open root device "<NULL>" or unknown-block(1,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

It seems an installation went well.

I have two question.
1. The message "RB1xxx nand device not found" is put out from target/linux/adm5120-2.6/patches/500-Nand.patch
? I think this module is dependent on "make menuconifg -> Target Profile -> RouterBoard RB1xx" in a normal situation.
Is't it harmful to disable this module by "make kernel_menuconfig"?

2. I want to know whether the message "Please append a correct "root=" boot option" is specific to mg-11g or not.
Has anybody installed on np28g yet? Can you show me your boot log?

regards,

zukky

I have the same problem on a wp54g: linux kernel boot but filesystem is not found. You find something? You now where to change the boot-options of the kernel?

My board has mylo bootloader, and i can only upload a new firmware. boh..

thanks
ilBets

We could modify linux/init/main.c to force a kernel option to find the filesystem:  but witch kernel option we have to put?

Seeking around, seem that the correct option is :  rootfstype=squashfs root=/dev/mtdblock1  (0?) or similar, to tell to the kernel to explicit mount partition 0 or 1.

The problem is that using mylo we can't give a kernel command line. There is a makefile where there are command line parameters.. you think that changing this we obtain something?

./target/linux/adm5120-2.6/config/default: CONFIG_CMDLINE="console=ttyS0,115200 rootfs=jffs2,squashfs init=/etc/preinit"

I will try.. tell me if you find something working.

Hi, ilBets.

I'm happy for your response.

How about this?
"make kernel_menuconfig" -> select "Kernel hacking" -> select "Default kernel command string" -> add "root=/dev/mtdblock1 (0?)" -> "OK" -> "Exit" -> "Exit" -> "Yes" -> "make target/linux-clean V=99"

I'm sorry that I'm not skilled developer, so this may not be the right way. I wish sombody show us how.

regards,

zukky

P.S.
A while ago, enormous changes were added for adm5120. So I'll try it as it is first.

Hi All,
Changing the mtdblock device for the root won't help. Partition0 is the lzma-loader which looks for a trx presently.
This trx file is kept in Partition1, but is currently not parsed. Work is being done on a better way to handle this on Compex platforms.

Please be patient, or hack $KERNEL_SOURCE/drivers/mtd/maps/adm5120_mtd.c

TTFN

Mike

Hi, Mike.
I'm glad from your reply.

Oh, I see.
Maybe I can't understand at all, but I'll see the file for my learning.

I'll wait for the time. I am always ready to test.

Thanks,

zukky

I tried to modify the file
$KERNEL_SOURCE/drivers/mtd/maps/adm5120_mtd.c
but without result
On each function in the file i tried to put a printk at the beginning and at the end of the code, i deleted all the .o files and i build a new kernel:
The kernel hangs in the same way, but none of the messages that i add are shown. Sure that the kernel is using this code to find data in the mtd partition?

(Last edited by ilBets on 7 Jun 2007, 17:43)

I'm trying to do it with a ramdisk, in this way:

First, selected the ramdisk option o target images. The result is that vmlinux.lzma contain also the filesystem, all in the same partiction.
Second, i used the following commands to pack the kernel, and to send it to the board:

#TRX: pacchetto compresso con loader, kernel, filesystem

/home/enrico/kamikaze/trunk/staging_dir_mipsel/bin/trx -o /home/enrico/kamikaze/trunk/bin/openwrt-adm5120-RAMDISK.trx -f /home/enrico/kamikaze/trunk/build_mipsel/linux-2.6-adm5120/loader.gz -f /home/enrico/kamikaze/trunk/build_mipsel/linux-2.6-adm5120/vmlinux.lzma -a 1024

#MKMYLOFW: pachetto bin per compex board

/home/enrico/kamikaze/trunk/staging_dir_mipsel/bin/mkmylofw -B WP54G -p0x20000:0x10000:ahp:0x80001000 -p0x30000:0 -b0x20000:0x10000:h:/home/enrico/kamikaze/trunk/build_mipsel/linux-2.6-adm5120/loader.gz -b0x30000:0::/home/enrico/kamikaze/trunk/bin/openwrt-adm5120-RAMDISK.trx /home/enrico/kamikaze/trunk/bin/openwrt-ramdisk-wp54g.bin

The loader start, but the kernel don't uncompress.

Some idea?

Roaming in the code of the loader and adding a lot of tracing comments i understood that the problem is this:

(from anoter message...)
I know a problem: the size of the flash/gzipped image must be less than 0x1E6666, because the bootloader write/decompress exactly this quantity of bytes to the flash/sdram. If the size of the generated image greater than this value, you need to disable some features. Additionally, the mtd driver is don't work on Edimax boards, yet.

Also for me, the loader stop when the size of the kernel is over this, and uncompress only a part of it.

Someone has a patch? or simply i have to make a kernel+ramfs VERY LITTLE?

Reduced the size of the kernel.. it works, but now i'm having problems on seeing the ramdisk.
i'mworking on it.

Hi,

I installed after a interval.
(openwrt-adm5120-2.6-jffs2-np28g.bin, the check of mtd about nand is disabled by 'make kernel_menuconfig')

MyLoader version 2.31.0310

Probe Flash Device: 00400000 at bfc00000
Flash Device: Found 1 x16 devices at 0x0 in 16-bit mode
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1


Load Firmware

Loading Firmware . ?

LZMA loader for ADM5120, Copyright (C) 2007 OpenWrt.org

Looking for TRX header... found at 0xBFC30000, kernel in partition 0
decompressing kernel... done!
launching kernel...

mem_detect: checking for 16MB chip
mem_detect: 1st pattern at 0x200000 is 0x06
mem_detect: 1st pattern at 0x400000 is 0x54
mem_detect: 1st pattern at 0x800000 is 0xec
mem_detect: 16MB chip found
mem_detect: checking second bank
mem_detect: 32MB memory found
Linux version 2.6.21.5 (owrt@localhost) (gcc version 3.4.6 (OpenWrt-2.0)) #1 Sat Jun 16 06:46:14 JST 2007
ADM5120 revision 8, running at 175MHz
Boot loader is: MyLoader
Booted from   : NOR flash
Board is      : Compex NetPassage 28G
Memory size   : 32MB
CPU revision is: 0001800b
ADM5120 board setup
Determined physical RAM map:
 memory: 01d27000 @ 002d9000 (usable)
Wasting 23328 bytes for tracking 729 unused pages
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 8128
Kernel command line: console=ttyS0,115200 rootfs=jffs2,squashfs,yaffs2 init=/etc/preinit
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 87.500 MHz high precision timer.
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29564k/29852k available (2321k kernel code, 288k reserved, 351k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
adm5120: system has PCI BIOS
registering PCI controller with io_map_base unset
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: mapping irq for device 0000:00:02.0, slot:2, pin:1, irq:15
PCI: mapping irq for device 0000:00:03.0, slot:3, pin:1, irq:16
PCI: mapping irq for device 0000:00:03.1, slot:3, pin:2, irq:16
PCI: mapping irq for device 0000:00:03.2, slot:3, pin:3, irq:16
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2006 Red Hat, Inc.
yaffs Jun 16 2007 06:44:02 Installing.
io scheduler noop registered
io scheduler deadline registered (default)
Registered led device: adm5120:led
ttyS0 at I/O 0x12600000 (irq = 9) is a ADM5120
ttyS1 at I/O 0x12800000 (irq = 10) is a ADM5120
eth0: ADM5120 switch port0
eth1: ADM5120 switch port1
eth2: ADM5120 switch port2
eth3: ADM5120 switch port3
adm5120 : flash init : 0x1fc00000 0x00400000
adm5120 physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Flash device: 0x400000 at 0x1fc00000
adm5120 : using MyLoader flash mapping
Searching for MyLoader partition table in adm5120 physically mapped flash at offset 0x10000
Creating 4 MTD partitions on "adm5120 physically mapped flash":
0x00000000-0x00010000 : "MyLoader"
0x00010000-0x00020000 : "Partition Table"
0x00020000-0x00030000 : "partition0"
0x00030000-0x00400000 : "partition1"
block2mtd: version $Revision: 1.30 $
nf_conntrack version 0.5.0 (233 buckets, 1864 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Same end. But loading message shows
'Looking for TRX header... found at 0xBFC30000, kernel in partition 0'
, this means "rootfs in partition 1", doesn't it?
Now is the time to add cmdline "root=/dev/xxxxxx" ?
What is the right value of "xxxxxx" ?

zukky

Hi, everyone.

I'm glad to tell you that Kamikaze(r7929) eventually runs on my mg-11g(np28g)!

I installed openwrt-adm5120-2.6-squashfs-np28g.bin

MyLoader version 2.31.0310

Probe Flash Device: 00400000 at bfc00000
Flash Device: Found 1 x16 devices at 0x0 in 16-bit mode
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1


Update Firmware (Image Mode)

Mini TFTP Server 1.0 (IP : 192.168.168.1)
Usage (Windows 2000/XP) :
  tftp -i 192.168.168.1 put <filename>


Starting the TFTP download from IP (192.168.168.10)...
..................................................
TFTP download completed...

Updating firmware, please wait ......
Update firmware successfully! Please reboot.

Update Firmware (Image Mode)

Mini TFTP Server 1.0 (IP : 192.168.168.1)
Usage (Windows 2000/XP) :
  tftp -i 192.168.168.1 put <filename>


Main Menu

1 - Load Firmware
2 - Load Program
3 - BIOS Setup
4 - Fdisk Utility
5 - Update Flash (Binary Mode)
6 - Update Firmware (Image Mode)
7 - Reboot System

Please select : 7

Reboot System



MyLoader version 2.31.0310

Probe Flash Device: 00400000 at bfc00000
Flash Device: Found 1 x16 devices at 0x0 in 16-bit mode
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1


Load Firmware

Loading Firmware . Done.



LZMA loader for ADM5120, Copyright (C) 2007 OpenWrt.org

Looking for TRX header... found at 0xBFC30000, kernel in partition 0
decompressing kernel... done!
launching kernel...

Linux version 2.6.22.1 (owrt@localhost) (gcc version 4.1.2) #1 Thu Jul 12 21:59:13 JST 2007
CPU revision is: 0001800b
mem_detect: disable buffers for both banks
mem_detect: checking for 16MB chip in 1st bank
mem_detect: chip size in 1st bank is 16MB
mem_detect: check presence of 2nd bank
mem_detect: write 0x55555555 to 0xA1FFFFFC
mem_detect: delay 10000 ns
mem_detect: pattern at 0xA1FFFFFC is 0x55555555
mem_detect: enable buffers for both banks
mem_detect: 2x16MB memory found
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NOR flash
Prom     : MyLoader
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 8128
Kernel command line: console=ttyS0,115200 rootfs=jffs2,squashfs,yaffs2 init=/etc/preinit
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 87.500 MHz high precision timer.
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29604k/32768k available (2267k kernel code, 3164k reserved, 360k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
adm5120: registered board 'Generic ADM5120 board'
adm5120: registered board 'Cellvision CAS-630/630W'
adm5120: registered board 'Cellvision CAS-670/670W'
adm5120: registered board 'Cellvision CAS-700/700W'
adm5120: registered board 'Cellvision CAS-771/771W'
adm5120: registered board 'Cellvision CAS-790'
adm5120: registered board 'Cellvision CAS-861/861W'
adm5120: registered board 'Compex NetPassage 27G'
adm5120: registered board 'Compex NetPassage 28G'
adm5120: registered board 'Compex WP54AG'
adm5120: registered board 'Compex WP54G'
adm5120: registered board 'Compex WP54G-WRT'
adm5120: registered board 'Compex WPP54AG'
adm5120: registered board 'Compex WPP54G'
adm5120: registered board 'Edimax BR-6104K'
adm5120: registered board 'Infineon EASY-83000'
adm5120: registered board 'Mikrotik RouterBOARD 111'
adm5120: registered board 'Mikrotik RouterBOARD 112'
adm5120: registered board 'Mikrotik RouterBOARD 133'
adm5120: registered board 'Mikrotik RouterBOARD 133C'
adm5120: registered board 'Mikrotik RouterBOARD 153'
adm5120: registered board 'ZyXEL Prestige 334WT'
adm5120: registered board 'ZyXEL Prestige 335/335WT'
NET: Registered protocol family 16
adm5120: setting up board 'Compex NetPassage 28G'
adm5120: system has PCI BIOS
registering PCI controller with io_map_base unset
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: mapping irq for 0000:00:02.0 pin:1, irq:14
PCI: mapping irq for 0000:00:03.0 pin:1, irq:14
PCI: mapping irq for 0000:00:03.1 pin:2, irq:15
PCI: mapping irq for 0000:00:03.2 pin:3, irq:16
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  c 2001-2006 Red Hat, Inc.
yaffs Jul 12 2007 21:56:41 Installing.
io scheduler noop registered
io scheduler deadline registered (default)
ttyS0 at I/O 0x12600000 (irq = 9) is a ADM5120
ttyS1 at I/O 0x12800000 (irq = 10) is a ADM5120
eth0: ADM5120 switch port0
eth1: ADM5120 switch port1
eth2: ADM5120 switch port2
adm5120-flash.0: probing at 0x1FC00000, size:4096KiB, width:16 bits
adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: found at 0x1FC00000, size:4096KiB, width:16 bits
adm5120-flash.0: parsing "cmdlinepart" partitions
adm5120-flash.0: parsing "MyLoader" partitions
adm5120-flash.0: searching for MyLoader partition table at offset 0x10000
4 MyLoader partitions found on MTD device adm5120-flash.0
adm5120-flash.0: adding "MyLoader" partitions
Creating 4 MTD partitions on "adm5120-flash.0":
0x00000000-0x00010000 : "MyLoader"
0x00010000-0x00020000 : "Partition Table"
0x00020000-0x00030000 : "partition0"
0x00030000-0x00400000 : "partition1"
block2mtd: version $Revision: 1.30 $
RB1xx nand
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
RB1xxx nand device not found
GPIO LEDs driver registered
Registered led device: gpio0
Registered led device: gpio1
Registered led device: gpio2
Registered led device: gpio3
Registered led device: gpio4
gpio-led gpio-led.5: gpio_request failed
gpio-led: probe of gpio-led.5 failed with error -16
Registered led device: gpio6
Registered led device: gpio7
Registered led device: port0led0
Registered led device: port0led1
Registered led device: port0led2
Registered led device: port1led0
Registered led device: port1led1
Registered led device: port1led2
Registered led device: port2led0
Registered led device: port2led1
Registered led device: port2led2
Registered led device: port3led0
Registered led device: port3led1
Registered led device: port3led2
Registered led device: port4led0
Registered led device: port4led1
Registered led device: port4led2
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
trxsplit: searching TRX header in 'MyLoader'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'Partition Table'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'partition0'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'partition1'
trxsplit: TRX header found at 0x0
trxsplit: creating TRX partitions in 'partition1'
Creating 2 MTD partitions on "partition1":
0x0000001c-0x000d0800 : "trx_kernel"
mtd: partition "trx_kernel" doesn't start on an erase block boundary -- force read-only
0x000d0800-0x003d0000 : "trx_rootfs"
mtd: partition "trx_rootfs" doesn't start on an erase block boundary -- force read-only
trxsplit: set 'trx_rootfs' to be root filesystem
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
- init -
init started:  BusyBox v1.4.2 (2007-07-09 22:22:46 JST) multi-call binary

Please press Enter to activate this console. device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
PPP generic driver version 2.4.2



BusyBox v1.4.2 (2007-07-09 22:22:46 JST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r7929) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:41:44:4D:51:20
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:319 (319.0 B)

eth0      Link encap:Ethernet  HWaddr 00:41:44:4D:51:20
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:319 (319.0 B)
          Interrupt:17

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

eth2      no wireless extensions.

br-lan    no wireless extensions.

root@OpenWrt:/# lsmod
Module                  Size  Used by    Not tainted
ppp_async               9664  0
ppp_generic            23456  1 ppp_async
slhc                    5408  1 ppp_generic
crc_ccitt               1024  1 ppp_async
root@OpenWrt:/#

G, Great.....

Now is the time to get Compex NP28G.
This device is very useful potentially. This has 4 ethernet port which is configured by vlan, 4 usb port (!) and Of cource, wireless (Atheros b/g).

Thank you Developers, especially juhosg and florian for your great works. It must make the World a better place to live....

BTW, Do you have anything to make me test?

Best regards,

zukky

A little more information.

Added madwifi and usb modules.

.....
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
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)
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
ath_pci: switching rfkill capability off
ath_pci: switching per-packet transmit power control off
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 7.9 phy 4.5 radio 5.6
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5212: mem=0x11400000, irq=14
PCI: Enabling device 0000:00:03.2 (0000 -> 0002)
ehci_hcd 0000:00:03.2: EHCI Host Controller
ehci_hcd 0000:00:03.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:03.2: irq 16, io mem 0x11410000
ehci_hcd 0000:00:03.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected



BusyBox v1.4.2 (2007-07-09 22:22:46 JST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r7935) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:/# lsmod
Module                  Size  Used by    Tainted: P
ehci_hcd               26096  0
ohci_hcd               14032  0
ath_pci                94256  0
wlan_xauth               480  0
wlan_wep                4000  0
wlan_tkip               9664  0
wlan_ccmp               5408  0
wlan_acl                1888  0
ath_rate_minstrel       7808  1
ath_hal               271168  3 ath_pci,ath_rate_minstrel
wlan_scan_sta           8736  0
wlan_scan_ap            2624  0
wlan                  146400  10 ath_pci,wlan_xauth,wlan_wep,wlan_tkip,wlan_ccmp,wlan_acl,ath_rate_minstrel,wlan_scan_sta,wlan_scan_ap

Wireless setting

root@OpenWrt:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

eth2      no wireless extensions.

br-lan    no wireless extensions.

wifi0     no wireless extensions.

root@OpenWrt:/# wlanconfig ath0 create wlandev wifi0 wlanmode ap
ath0
root@OpenWrt:/# iwconfig ath0 essid Openwrt-Np28g
root@OpenWrt:/# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

eth2      no wireless extensions.

br-lan    no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11b  ESSID:"Openwrt-Np28g"  Nickname:""
          Mode:Master  Channel:0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:0 dBm   Sensitivity=1/1
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-256 dBm  Noise level=-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:/#

It looks like ath0 works as AP. But It can't find from wireless client (PC/atheros chip). It have not worked yet.

And file system is readonly at present.

regards,

I tried to install jffs2 firmware.

MyLoader version 2.31.0310

Probe Flash Device: 00400000 at bfc00000
Flash Device: Found 1 x16 devices at 0x0 in 16-bit mode
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1


Update Firmware (Image Mode)

Mini TFTP Server 1.0 (IP : 192.168.168.1)
Usage (Windows 2000/XP) :
  tftp -i 192.168.168.1 put <filename>


Starting the TFTP download from IP (192.168.168.10)...
.........................................................................
TFTP download completed...

Updating firmware, please wait ......
Update firmware successfully! Please reboot.

Update Firmware (Image Mode)

Mini TFTP Server 1.0 (IP : 192.168.168.1)
Usage (Windows 2000/XP) :
  tftp -i 192.168.168.1 put <filename>


Main Menu

1 - Load Firmware
2 - Load Program
3 - BIOS Setup
4 - Fdisk Utility
5 - Update Flash (Binary Mode)
6 - Update Firmware (Image Mode)
7 - Reboot System

Please select : 7

Reboot System



MyLoader version 2.31.0310

Probe Flash Device: 00400000 at bfc00000
Flash Device: Found 1 x16 devices at 0x0 in 16-bit mode
 Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1


Load Firmware

Loading Firmware . Done.



LZMA loader for ADM5120, Copyright (C) 2007 OpenWrt.org

Looking for TRX header... found at 0xBFC30000, kernel in partition 0
decompressing kernel... done!
launching kernel...

Linux version 2.6.22.1 (owrt@localhost) (gcc version 4.1.2) #2 Fri Jul 13 04:14:35 JST 2007
CPU revision is: 0001800b
mem_detect: disable buffers for both banks
mem_detect: checking for 16MB chip in 1st bank
mem_detect: chip size in 1st bank is 16MB
mem_detect: check presence of 2nd bank
mem_detect: write 0x55555555 to 0xA1FFFFFC
mem_detect: delay 10000 ns
mem_detect: pattern at 0xA1FFFFFC is 0x55555555
mem_detect: enable buffers for both banks
mem_detect: 2x16MB memory found
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NOR flash
Prom     : MyLoader
Determined physical RAM map:
 memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Built 1 zonelists.  Total pages: 8128
Kernel command line: console=ttyS0,115200 rootfs=jffs2,squashfs,yaffs2 init=/etc/preinit
Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, linesize 16 bytes.
Synthesized TLB refill handler (20 instructions).
Synthesized TLB load handler fastpath (32 instructions).
Synthesized TLB store handler fastpath (32 instructions).
Synthesized TLB modify handler fastpath (31 instructions).
PID hash table entries: 128 (order: 7, 512 bytes)
Using 87.500 MHz high precision timer.
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 29604k/32768k available (2267k kernel code, 3164k reserved, 360k data, 128k init, 0k highmem)
Mount-cache hash table entries: 512
adm5120: registered board 'Generic ADM5120 board'
adm5120: registered board 'Cellvision CAS-630/630W'
adm5120: registered board 'Cellvision CAS-670/670W'
adm5120: registered board 'Cellvision CAS-700/700W'
adm5120: registered board 'Cellvision CAS-771/771W'
adm5120: registered board 'Cellvision CAS-790'
adm5120: registered board 'Cellvision CAS-861/861W'
adm5120: registered board 'Compex NetPassage 27G'
adm5120: registered board 'Compex NetPassage 28G'
adm5120: registered board 'Compex WP54AG'
adm5120: registered board 'Compex WP54G'
adm5120: registered board 'Compex WP54G-WRT'
adm5120: registered board 'Compex WPP54AG'
adm5120: registered board 'Compex WPP54G'
adm5120: registered board 'Edimax BR-6104K'
adm5120: registered board 'Infineon EASY-83000'
adm5120: registered board 'Mikrotik RouterBOARD 111'
adm5120: registered board 'Mikrotik RouterBOARD 112'
adm5120: registered board 'Mikrotik RouterBOARD 133'
adm5120: registered board 'Mikrotik RouterBOARD 133C'
adm5120: registered board 'Mikrotik RouterBOARD 153'
adm5120: registered board 'ZyXEL Prestige 334WT'
adm5120: registered board 'ZyXEL Prestige 335/335WT'
NET: Registered protocol family 16
adm5120: setting up board 'Compex NetPassage 28G'
adm5120: system has PCI BIOS
registering PCI controller with io_map_base unset
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: mapping irq for 0000:00:02.0 pin:1, irq:14
PCI: mapping irq for 0000:00:03.0 pin:1, irq:14
PCI: mapping irq for 0000:00:03.1 pin:2, irq:15
PCI: mapping irq for 0000:00:03.2 pin:3, irq:16
Time: MIPS clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  c 2001-2006 Red Hat, Inc.
yaffs Jul 12 2007 21:56:41 Installing.
io scheduler noop registered
io scheduler deadline registered (default)
ttyS0 at I/O 0x12600000 (irq = 9) is a ADM5120
ttyS1 at I/O 0x12800000 (irq = 10) is a ADM5120
eth0: ADM5120 switch port0
eth1: ADM5120 switch port1
eth2: ADM5120 switch port2
adm5120-flash.0: probing at 0x1FC00000, size:4096KiB, width:16 bits
adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: found at 0x1FC00000, size:4096KiB, width:16 bits
adm5120-flash.0: parsing "cmdlinepart" partitions
adm5120-flash.0: parsing "MyLoader" partitions
adm5120-flash.0: searching for MyLoader partition table at offset 0x10000
4 MyLoader partitions found on MTD device adm5120-flash.0
adm5120-flash.0: adding "MyLoader" partitions
Creating 4 MTD partitions on "adm5120-flash.0":
0x00000000-0x00010000 : "MyLoader"
0x00010000-0x00020000 : "Partition Table"
0x00020000-0x00030000 : "partition0"
0x00030000-0x00400000 : "partition1"
block2mtd: version $Revision: 1.30 $
RB1xx nand
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
No NAND device found!!!
RB1xxx nand device not found
GPIO LEDs driver registered
Registered led device: gpio0
Registered led device: gpio1
Registered led device: gpio2
Registered led device: gpio3
Registered led device: gpio4
gpio-led gpio-led.5: gpio_request failed
gpio-led: probe of gpio-led.5 failed with error -16
Registered led device: gpio6
Registered led device: gpio7
Registered led device: port0led0
Registered led device: port0led1
Registered led device: port0led2
Registered led device: port1led0
Registered led device: port1led1
Registered led device: port1led2
Registered led device: port2led0
Registered led device: port2led1
Registered led device: port2led2
Registered led device: port3led0
Registered led device: port3led1
Registered led device: port3led2
Registered led device: port4led0
Registered led device: port4led1
Registered led device: port4led2
nf_conntrack version 0.5.0 (256 buckets, 2048 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP vegas registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
trxsplit: searching TRX header in 'MyLoader'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'Partition Table'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'partition0'
trxsplit: no TRX header found
trxsplit: searching TRX header in 'partition1'
trxsplit: TRX header found at 0x0
trxsplit: creating TRX partitions in 'partition1'
Creating 2 MTD partitions on "partition1":
0x0000001c-0x000e0000 : "trx_kernel"
mtd: partition "trx_kernel" doesn't start on an erase block boundary -- force read-only
0x000e0000-0x003d0000 : "trx_rootfs"
trxsplit: set 'trx_rootfs' to be root filesystem
yaffs: dev is 32505861 name is "mtdblock5"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.5, "mtdblock5"
yaffs: MTD device is not NAND it's type 3
yaffs: dev is 32505861 name is "mtdblock5"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.5, "mtdblock5"
yaffs: MTD device is not NAND it's type 3
List of all partitions:
1f00         64 mtdblock0 (driver?)
1f01         64 mtdblock1 (driver?)
1f02         64 mtdblock2 (driver?)
1f03       3904 mtdblock3 (driver?)
1f04        895 mtdblock4 (driver?)
1f05       3008 mtdblock5 (driver?)
No filesystem could mount root, tried:  squashfs yaffs yaffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,5)

It has not booted yet.
But let's take it easy! ;-)

regards,

zukky

From the msg i get from the Tech support. Only Myloder V2.4 above is supporting OpenWRT. Some Version of board might encounter the Kernel panic after you using the latest my loader all the problem seems disappear.

I try with 2 board (WP54 and Wp18). 1 with loader v2.3 and another one with 2.4

2.4 loader seem work find for me.

Just a simple information to share with u all.

hope will help

(Last edited by DD7 on 20 Aug 2007, 02:53)

Hi, DD7.

Thank you for your valuable information.
I asked compex tech support of myloader 2.4 above for np28g. Unfortunately, they don't provide it.
They support wp54, wp18 and wp188 only.

I'd better install cfe.bin?
http://wiki.openwrt.org/MyLoader?highli … yloader%29

regards,

zukky

Now wp18 not provided,

The discussion might have continued from here.