OpenWrt Forum Archive

Topic: Kamikaze 8.09 OSBRiDGE 5GXi/5GLi (ADM5120)

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

I'm trying to install OpenWRT on this hardware using "Edimax BR-6104K" target profile, since "openwrt-adm5120-br-6104k-squashfs-xmodem.bin" is the only image i can get to boot.

I've got some problem with the flash partitions, and with the IRQ assignment to the atheros miniPCI.
This is the console output:

root@OpenWrt:/# reboot
root@OpenWrt:/# adm5120_wdt: disabling watchdog timer
Restarting system.

ADM5120 Boot:
jump to linux code!!



LZMA loader for BR-6104K, Copyright (C) 2007-2008 OpenWrt.org


Looking for TRX header... found at 00012000, kernel:0000001C len:000B93E4

decompressing kernel... done!

launching kernel...


Linux version 2.6.26.5 (mattia@mattia-laptop) (gcc version 4.1.2) #5 Sun Apr 5 17:35:11 CEST 2009
console [early0] enabled
CPU revision is: 0001800b (MIPS 4Kc)
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NOR flash
Prom     : Generic
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     4096
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     4096
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,115200 rootfstype=squashfs,yaffs2,jffs2 init=/etc/preinit
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13856k/16384k available (1818k kernel code, 2528k reserved, 316k data, 132k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
ADM5120: board is 'Edimax BR-6104K'
registering PCI controller with io_map_base unset
PCI: pci_irq_map is not initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Apr  4 2009 15:41:40 Installing. 
msgmni has been set to 27
io scheduler noop registered
io scheduler deadline registered (default)
Serial: AMBA driver $Revision: 1.41 $
APB:UART0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
console handover: boot [early0] -> real [ttyS0]
APB:UART1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
ADM5120 built-in ethernet switch driver version 0.1.1
adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
adm5120-flash.0: CFI does not contain boot bank location. Assuming top.
adm5120-flash.0: Macronix chip detected, id:0x2249, boot location forced to bottom
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: adding static partitions
Creating 3 MTD partitions on "adm5120-flash.0":
0x00000000-0x00008000 : "admboot"
0x00008000-0x00010000 : "config"
0x00010000-0x00200000 : "firmware"
adm5120_wdt: Watchdog Timer version 0.1
TCP vegas registered
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>
trxsplit: searching TRX header in 'admboot'
trxsplit: searching TRX header in 'config'
trxsplit: searching TRX header in 'firmware'
trxsplit: TRX header found at 0x2000
trxsplit: creating TRX partitions in 'firmware' (31,2)
Creating 2 MTD partitions on "firmware":
0x0000201c-0x000bb400 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000bb400-0x001f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=1E0000, len=10000 
0x001e0000-0x001f0000 : "rootfs_data"
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
gpio-buttons driver version 0.1.1
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -

Please press Enter to activate this console.
br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
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
br-lan: port 1(eth0) entering disabled state
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
ip_tables: (C) 2000-2006 Netfilter Core Team
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
wlan: trunk
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 2008-10-02 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, DFS, XR)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
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: trunk
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
wifi%d: request_irq failed
jffs2: Too few erase blocks (1)
adm5120_wdt: enabling watchdog timer


BusyBox v1.11.2 (2009-04-05 16:36:28 CEST) 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 (8.09, r15100) ----------------------------
  * 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:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00008000 00004000 "admboot"
mtd1: 00008000 00008000 "config"
mtd2: 001f0000 00010000 "firmware"
mtd3: 000b93e4 00010000 "kernel"
mtd4: 00134c00 00010000 "rootfs"
mtd5: 00030000 00010000 "rootfs_data"
root@OpenWrt:/#

This is the first time i try to install OpenWrt on unsupported hardware, but i have hundreads of these units and the original firmware sucks, so i have to make it work.
Honestly, i don't know where to begin... but i think i can do it with a little help... hint and references are welcome! big_smile

If this thing will work, i promise to write a detailed wiki page!!!

Mattia

I succesfully built a firmware image that runs and is small enough to leave space for a jffs2 partition.
I used the easy5120RT profile, and flashed openwrt-adm5120-easy-5120-rt-squashfs.img via xmodem.

I had to upload the bootloader provided here:
http://forum.funkfeuer.at/viewtopic.php?pid=1006#p1006
And then i used it to boot unsigned firmwares, in my case i uploaded this image to ram:
http://midge.vlad.org.ua/wiki/bootloader-with-tftp
And I used it to flash the bootloader with tftp support provided in that midge image.

This solved the problem with flash partitions and PCI IRQ assignment.


Now, the only problem left is that when the system boots up and initialize the miniPCI wifi (Atheros 5414) those 3 processes make the system unresponsive:

root@OpenWrt:/# ps aux
PID USER       VSZ STAT COMMAND
    1 root      1968 S    init
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
   32 root         0 SW<  [kblockd/0]
   35 root         0 SW<  [kseriod]
   55 root         0 SW   [pdflush]
   56 root         0 SW   [pdflush]
   57 root         0 SW<  [kswapd0]
   58 root         0 SW<  [aio/0]
  585 root         0 SW<  [mtdblockd]
1811 root         0 SWN  [jffs2_gcd_mtd5]
1821 root      1968 S    /bin/sh /etc/init.d/rcS S boot
1823 root      1968 S    logger -s -p 6 -t
1824 root      1972 S    /bin/ash --login
1832 root      1980 S    syslogd -C16
1834 root      1960 S    klogd
1846 root      1136 S    /sbin/hotplug2 --override --persistent --max-children
2011 root      2028 S    /bin/sh /etc/rc.common /etc/rc.d/S40network boot
2014 root      2024 S    /bin/sh /sbin/wifi up
2018 root      2024 S    /bin/sh /sbin/wifi up
2019 root      2048 R    /bin/sh /sbin/wifi up

2027 root         0   []
2028 root      1968 R    ps aux


I have to kill them to free the cpu.
While the console hangs, the ethernet port keep replying to ping requests.

This is the bootup log:

ADM5120 Boot:


Evolution version.Only for testing
CPU: ADM5120-175MHz
SDRAM: 2x16MB
Flash: NOR-2MB
Boot System: ADM5120-Linux
Loader Version: 1.00.05
Creation Date: 2004.12.20

Press <space> key tree times to enter boot menu..
0
Booting Linux...
Kernel decompress ... PASS

LZMA loader for EASY 5120-RT, Copyright (C) 2007-2008 OpenWrt.org

Looking for TRX header... found at 00020000, kernel:0000001C len:000B93E4
decompressing kernel... done!
launching kernel...

Linux version 2.6.26.5 (mattia@mattia-laptop) (gcc version 4.1.2) #20 Sat Apr 18
 19:02:06 CEST 2009
console [early0] enabled
CPU revision is: 0001800b (MIPS 4Kc)
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NOR flash
Prom     : Generic
Determined physical RAM map:
 memory: 00800000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     2048
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     2048
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 2032
Kernel command line: console=ttyS0,115200 rootfstype=squashfs,yaffs2,jffs2 init=
/etc/preinit
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 32 (order: 5, 128 bytes)
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 5732k/8192k available (1816k kernel code, 2460k reserved, 317k data, 132
k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
ADM5120: board is 'Infineon EASY 5120-RT Reference Board'
registering PCI controller with io_map_base unset
PCI: mapping irq for 0000:00:02.0 pin:1, irq:14
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Apr  4 2009 15:41:40 Installing.
msgmni has been set to 16
io scheduler noop registered
io scheduler deadline registered (default)
Serial: AMBA driver $Revision: 1.41 $
APB:UART0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
console handover: boot [early0] -> real [ttyS0]
APB:UART1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
ADM5120 built-in ethernet switch driver version 0.1.1
adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
adm5120-flash.0: CFI does not contain boot bank location. Assuming top.
adm5120-flash.0: Macronix chip detected, id:0x2249, boot location forced to bott
om
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: adding static partitions
Creating 3 MTD partitions on "adm5120-flash.0":
0x00000000-0x00010000 : "admboot"
0x00010000-0x00020000 : "boardcfg"
0x00020000-0x00200000 : "firmware"
adm5120_wdt: Watchdog Timer version 0.1
TCP vegas registered
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>
trxsplit: searching TRX header in 'admboot'
trxsplit: searching TRX header in 'boardcfg'
trxsplit: searching TRX header in 'firmware'
trxsplit: TRX header found at 0x0
trxsplit: creating TRX partitions in 'firmware' (31,2)
Creating 2 MTD partitions on "firmware":
0x0000001c-0x000b9400 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-o
nly
0x000b9400-0x001e0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=160000, len=80000
0x00160000-0x001e0000 : "rootfs_data"
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
gpio-buttons driver version 0.1.1
Button Hotplug driver version 0.3.1
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
- init -

Please press Enter to activate this console.


BusyBox v1.11.2 (2009-04-18 15:04:59 CEST) 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 (8.09, r15100) ----------------------------
  * 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:/# br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
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
br-lan: port 1(eth0) entering disabled state
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
ath5k_pci 0000:00:02.0: registered as 'phy0'
ath5k phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)

Here the system get SLOW until "/sbin/wifi up" ends or get killed...


Network interfaces and configuration:

root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 22:DA:E2:A8:86:2A
          inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:333 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:52866 (51.6 KiB)  TX bytes:24386 (23.8 KiB)

eth0      Link encap:Ethernet  HWaddr 22:DA:E2:A8:86:2A
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:899 errors:0 dropped:0 overruns:0 frame:0
          TX packets:334 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:94038 (91.8 KiB)  TX bytes:25429 (24.8 KiB)
          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.

eth3      no wireless extensions.

eth4      no wireless extensions.

eth5      no wireless extensions.

br-lan    no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11abg  ESSID:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Tx-Power=0 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:/#

Uci configuration:

root@OpenWrt:/# uci show
fstab.@mount[0]=mount
fstab.@mount[0].target=/home
fstab.@mount[0].device=/dev/sda1
fstab.@mount[0].fstype=ext3
fstab.@mount[0].options=rw,sync
fstab.@mount[0].enabled=0
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].enabled=0
httpd.@httpd[0]=httpd
httpd.@httpd[0].port=80
httpd.@httpd[0].home=/www
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.ifname=eth0
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.dns=
network.lan.gateway=
network.lan.ipaddr=192.168.1.200
system.@system[0]=system
system.@system[0].hostname=OpenWrt
system.@system[0].timezone=UTC
wireless.wlan0=wifi-device
wireless.wlan0.type=mac80211
wireless.wlan0.channel=5
wireless.wlan0.disabled=1
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=wlan0
wireless.@wifi-iface[0].network=lan
wireless.@wifi-iface[0].mode=ap
wireless.@wifi-iface[0].ssid=OpenWrt
wireless.@wifi-iface[0].encryption=none
root@OpenWrt:/#

Also tried with:
root@OpenWrt:/# uci set wireless.wlan0.disabled=0
root@OpenWrt:/# uci commit
root@OpenWrt:/# reboot

Result: 100% hang, have to kill "/sbin/wifi up" manually...


Any idea? I keep trying...
Mattia

GPL Code can be found here:
http://www.osbridge.com/?q=en/node/91

It is based on linux-2.6.22.4 kernel... diff shows some changes in arch/mips/
There's someone else interested in a port on this hardware?

I made a custom profile based on edimax BR6104K, adding the adm5120 PCI init code and modified vlans for the only ethernet port of this router/CPE.

Atheros AR5414 get initialized and works great, ethernet works, jffs2 partition works.

Now i've got some problem with brctl command. At startup br-lan isn't created, however bridge package is installed.
This is the error:

root@OpenWrt:/# brctl show
brctl: SIOCGIFBR: Package not installed

What i'm missing???
Thanks for any help! big_smile

Problem solved, compiling Kamikaze 8.09 rev15555 fixed the bridge problem.
Using trunk rev15554 breaks brctl. A regression, maybe???

The profile is based on BR6104K with a couple of rows added.
The resulting image is 1600KB, and can grow up to 1780KB if extra packages are needed.

boot log:

root@OpenWrt:/# reboot
root@OpenWrt:/# adm5120_wdt: disabling watchdog timer

ADM5120 Boot:
jump to linux code!!


LZMA loader for BR-6104K, Copyright (C) 2007-2008 OpenWrt.org

Looking for TRX header... found at 00012000, kernel:0000001C len:000B93E4
decompressing kernel... done!
launching kernel...

Linux version 2.6.26.5 (mattia@jiraiya) (gcc version 4.1.2) #1 Sat May 2 14:11:1
9 CEST 2009
console [early0] enabled
CPU revision is: 0001800b (MIPS 4Kc)
SoC      : ADM5120 revision 8, running at 175MHz
Bootdev  : NOR flash
Prom     : Generic
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     4096
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     4096
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0,115200 rootfstype=squashfs,yaffs2,jffs2 init=
/etc/preinit
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 13856k/16384k available (1817k kernel code, 2528k reserved, 317k data, 1
32k init, 0k highmem)
SLUB: Genslabs=6, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 484 bytes
NET: Registered protocol family 16
ADM5120: board is 'OSBRiDGE 5GXi/5GLi'
registering PCI controller with io_map_base unset
PCI: mapping irq for 0000:00:02.0 pin:1, irq:14
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs May  2 2009 14:08:03 Installing.
msgmni has been set to 27
io scheduler noop registered
io scheduler deadline registered (default)
Serial: AMBA driver $Revision: 1.41 $
APB:UART0: ttyS0 at MMIO 0x12600000 (irq = 9) is a AMBA
console handover: boot [early0] -> real [ttyS0]
APB:UART1: ttyS1 at MMIO 0x12800000 (irq = 10) is a AMBA
ADM5120 built-in ethernet switch driver version 0.1.1
adm5120-flash.0: probing at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
adm5120-flash.0: CFI does not contain boot bank location. Assuming top.
adm5120-flash.0: Macronix chip detected, id:0x2249, boot location forced to bott
om
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
adm5120-flash.0: found at 0x1FC00000, size:2048KiB, width:16 bits
adm5120-flash.0: adding static partitions
Creating 3 MTD partitions on "adm5120-flash.0":
0x00000000-0x00008000 : "admboot"
0x00008000-0x00010000 : "config"
0x00010000-0x00200000 : "firmware"
adm5120_wdt: Watchdog Timer version 0.1
TCP vegas registered
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>
trxsplit: searching TRX header in 'admboot'
trxsplit: searching TRX header in 'config'
trxsplit: searching TRX header in 'firmware'
trxsplit: TRX header found at 0x2000
trxsplit: creating TRX partitions in 'firmware' (31,2)
Creating 2 MTD partitions on "firmware":
0x0000201c-0x000bb400 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-o
nly
0x000bb400-0x001f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=180000, len=70000
0x00180000-0x001f0000 : "rootfs_data"
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 132k freed
Please be patient, while OpenWrt loads ...
Algorithmics/MIPS FPU Emulator v1.5
- preinit -
Press CTRL-C for failsafe
gpio-buttons driver version 0.1.1
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
- init -

Please press Enter to activate this console. 
br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
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
br-lan: port 1(eth0) entering disabled state
br-lan: port 1(eth0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 1(eth0) entering forwarding state
PCI: Enabling device 0000:00:02.0 (0000 -> 0002)
ath5k_pci 0000:00:02.0: registered as 'phy0'
ath5k phy0: Atheros AR5414 chip found (MAC: 0xa5, PHY: 0x61)
device wlan0 entered promiscuous mode
adm5120_wdt: enabling watchdog timer



BusyBox v1.11.2 (2009-05-02 13:59:19 CEST) 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 (8.09, r15555) ----------------------------
  * 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:/#

ifconfig output:

root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:80:48:4A:DB:0D
          inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:69 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8920 (8.7 KiB)  TX bytes:3562 (3.4 KiB)

eth0      Link encap:Ethernet  HWaddr 22:DA:E2:A8:86:2A
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:69 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9886 (9.6 KiB)  TX bytes:4605 (4.4 KiB)
          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)

wlan0     Link encap:Ethernet  HWaddr 00:80:48:4A:DB:0D
          UP BROADCAST MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wmaster0  Link encap:UNSPEC  HWaddr 00-80-48-4A-DB-0D-01-00-00-00-00-00-00-00-00
-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@OpenWrt:/#

cat /proc/cpuinfo output:

root@OpenWrt:/# cat proc/cpuinfo
system type             : OSBRiDGE 5GXi/5XLi
processor               : 0
cpu model               : MIPS 4Kc V0.11
BogoMIPS                : 173.56
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        :
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@OpenWrt:/#

If anyone is interested, contact me!

(Last edited by AraKs on 9 May 2009, 11:04)

hey AraKs
your work is Great im very impressed.. I just need some advise about how to enable the wireless .. can u tell me a little step by step on how to Modify the Scripts or wat commands will enable the wifi again

thanks in advance

Lanmasterd

You need to patch the Edimax BR-6104K profile, I'll prepare the file tomorrow because I've been very busy lately (university exams session...).
In the meantime you could try one of the pre-built images I posted on the blog linked above.

Bye!

cool nice one on the quick reply.  yeah i have been the same lately in regards exams .. ill try patch the edimax profile and mess about with it.  at the moment i have your  Image #3 KAMIKAZE (8.09.1, r16385)  loaded..  .. as u can tell im very new to modding openwrt stuff. so im learning as i go.  but i deffinatly wanna help you with this project as i can see a real use for these 5xli dishes.  ill post up some details of how im doing trough the day ..
looking forward to working with ya to work on this.

(Last edited by LanMasterD on 13 Jun 2009, 14:31)

Tomorrow I'll post the patch I made for the BR-6104K profile, so you'll be able to build your own openwrt images.

The only problem now, is that ath5k is not very stable yet: rate selection algorithm is not working well and AP mode doesn't work. The old madwifi driver is too big and the resulting image doesn't fit in the flash.
We have to wait madwifi developers for a newer and more functional release of ath5k. smile

(Last edited by AraKs on 13 Jun 2009, 14:44)

just one quick question befor i go out shopping.. the images you have on the how to page. as they are at the moment can the device act as a Accesspoint Client. like if i wanna use the dish to connect to an access point a few hundred meters away.. 

also in the future do u think we can squeese in a www web interface to do all the device configs??

so we only have the 2 mb to work with yeah..  wat about the 16mb sdram is that not usable??

ill be back later ill check up on any replies

catch ya soon

Yes, it can work only as client, but if you get low data rates on the wireless link try to manually set 11Mbps: this is the workaround suggested by ath5k developers.

For the web interface, i've already tried, i've already removed all the unnecessary packages... but i couldn't add a webif, neither the smallest and simplest one!

We could make a script that on every boot loads the web interface in the RAM... but when you reboot, you loose the web interface, so the next boot you need to reload the webif. The problem is that you need to have some kind of network storage or fileserver were the osbridge can download the webif packages on boot. That's not very convenient!

C ya!

ah i see..  hummm guess that does pose a problem.. i did read on the boards chips home page that the main chip can support usb.. maybe i might look into that too.. but for the moment learning how to hook it up as a client will do me great.. looking forward to learning a bit from ya

SoC ADM5120 support 2 USB 1.1 ports. I gave a quick look once but i didn't notice the circuits and components needed by USB on OSBRiDGE antennas!
In some boards you just have to solder some components (quartz oscillator, usb connector, 5v converter etc...) because the circuit and pinholes are already present. But in our case there's no hope!!!

yeah thought as much. its a pitty companys dont build there boards to the full potential of the chips they use.. or at least leave pins for them .lol.. considering this one is supported as Openwrt as well as there propper firmware..   ok so i tried using the commands uci show and uci set to change some settings in the wireless config and in the wifi-iface[0] to try connect to my test router using wpa.. but its not connecting.. again im using the 3rd image u have.. but still i dont know how to config the way u do using VI editor..  i have the image but i dont know how to decompile it to change the settings and then recompile again..

talk soon..

hey i just did a quick UCI Show for ya ..
and i changed the ssid and key to stars just cos im posting.. 

tell me wat u think .. i figured out the internal VI editor .. finally lol..

code below -----------------------------------------------------------------
BusyBox v1.11.2 (2009-06-05 12:56:36 CEST) 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 (8.09.1, r16385) ----------------------------
  * 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:/# uci show
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood=1
firewall.@defaults[0].input=ACCEPT
firewall.@defaults[0].output=ACCEPT
firewall.@defaults[0].forward=REJECT
firewall.@zone[0]=zone
firewall.@zone[0].name=lan
firewall.@zone[0].input=ACCEPT
firewall.@zone[0].output=ACCEPT
firewall.@zone[0].forward=REJECT
firewall.@zone[1]=zone
firewall.@zone[1].name=wan
firewall.@zone[1].input=REJECT
firewall.@zone[1].output=ACCEPT
firewall.@zone[1].forward=REJECT
firewall.@zone[1].masq=1
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src=lan
firewall.@forwarding[0].dest=wan
firewall.@forwarding[0].mtu_fix=1
firewall.@include[0]=include
firewall.@include[0].path=/etc/firewall.user
fstab.@mount[0]=mount
fstab.@mount[0].target=/home
fstab.@mount[0].device=/dev/sda1
fstab.@mount[0].fstype=ext3
fstab.@mount[0].options=rw,sync
fstab.@mount[0].enabled=0
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/sda2
fstab.@swap[0].enabled=0
httpd.@httpd[0]=httpd
httpd.@httpd[0].port=80
httpd.@httpd[0].home=/www
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.ifname=eth0
network.lan.ipaddr=192.168.2.200
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.dns=
network.lan.gateway=
network.wan=interface
network.wan.ifname=wlan0
network.wan.proto=static
network.wan.netmask=255.255.255.0
network.wan.dns=192.168.1.254
network.wan.gateway=192.168.1.254
network.wan.ipaddr=192.168.1.200
system.@system[0]=system
system.@system[0].hostname=OpenWrt
system.@system[0].timezone=UTC
wireless.wlan0=wifi-device
wireless.wlan0.type=mac80211
wireless.wlan0.channel=11
wireless.wlan0.disabled=0
wireless.wlan0.txpower=23dBm
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=wlan0
wireless.@wifi-iface[0].ssid=*********************
wireless.@wifi-iface[0].encryption=psk(WPA-PSK)
wireless.@wifi-iface[0].key=*********************
wireless.@wifi-iface[0].network=wan
root@OpenWrt:/#

code end----------------------------------------------------------

lanmasterd

Your configuration looks good, you should be able to access internet from eth0, behind the natted wlan0. Remeber: there's no dhcp, you'll need to manually set the ips of the devices connected to the eth0!

Let me know if you are able to connect the wlan0 to the ap, and if the traffic is routed trought the nat!

Mattia

hey bud . Nah no joy on the connection.. i even tried a setup with only wep.. no joy there either.  if i type iwconfig wlan0 it says not associated.

was thinking why bother using a fire wall in the osbridge  if its a client to a access point router  which has a firewall anyway.. maybe we can save space and get other things installed and working.. wat u  think..

how do i decompile the image you made so we can try strip more off it..?

also is there any way we can use a compression that would unpack the firmware to expand into the sdram maybe??

let me know wat u think

LanMasterD wrote:

hey bud . Nah no joy on the connection.. i even tried a setup with only wep.. no joy there either.  if i type iwconfig wlan0 it says not associated.

I reviewed your configuration, and there's an error. You have to set your wlan0 in station mode, to work as a client.
Type in console:
uci set wireless.wlan0.mode=sta
uci commit wireless
/etc/init.d/network restart

Now you should be able to connect to the AP.

was thinking why bother using a fire wall in the osbridge  if its a client to a access point router  which has a firewall anyway.. maybe we can save space and get other things installed and working.. wat u  think..

Since kamikaze doesn't support ethernet-wifi bridging, the only way to let packets flow trough the device is natting the two interfaces, that's why we need iptables and firewall packages.

how do i decompile the image you made so we can try strip more off it..?

You can't decompile the image, you need to set up a build root on your linux pc and use subversion to get the source of openwrt, than patch with my files (that i haven't released yet), configure the build environment and make the firmware image.
See https://dev.openwrt.org/wiki/GetSource
Here you have a list of packages you need to install on Ubuntu to compile:
http://people.csail.mit.edu/nikolaus/dr … -on-ubuntu

also is there any way we can use a compression that would unpack the firmware to expand into the sdram maybe??

The file system is already compressed (squashfs): it let us save around 30% on the original firmware size and it's read only. That's why we need to save other 250Kb~ (5 write blocks) to build a writeable partition (using jffs2) to store the edited files.

let me know wat u think

Today I received an email from Gabor, the mantainer of ADM5120 target. He's interested in supporting this device officially, so our next goal will be dumping the original bootloader. He will try to find a way to make images that can boot from the original bootloader.
I'll post here any update.

C ya
smile

(Last edited by AraKs on 14 Jun 2009, 19:11)

hey Araks

I took your advise and set wireless to STA mode..  silly me i had put it in then didnt save the file the first time .. now its corrected its seems to be working..  nice spot on my config .. nice one..

ah so kamikaze does support bridging ah i see.. well that puts a downer on  it.. but ill strugle through.. 

the tips on decompiling are very helpful.. ill be setting up a ubuntu drive there in a virtual machine tonight and im gonna start working on the  firmware the way your doing it.. i was working in windows.. lol lame i know.. i used to use only ubuntu but went back to windows in college..

ah so the system is already compressed.. ok..  hummm im trying to think of ways we can  get more space .. 
I was also looking at DD-wrt i use it on my Netgear wg602.. it has a package that 2 mb that works on my device.. and it has a web interface and client bridge support.. maybe we can find a way to port it over..

thats great news about the device support from garbor so if were on the origional boot loader wat will that mean for us exactly?

dave

Hi LM

LanMasterD wrote:

the tips on decompiling are very helpful.. ill be setting up a ubuntu drive there in a virtual machine tonight and im gonna start working on the  firmware the way your doing it.. i was working in windows.. lol lame i know.. i used to use only ubuntu but went back to windows in college..

If you can, i suggest you to repartition your drive and make a 10GB partition to install Ubuntu directly on real hardware. OpenWrt compilation is a very CPU-intensive task. Running it over a virtual machine may slow down the process too much. (it takes almost an hour on real hardware)

LanMasterD wrote:

ah so the system is already compressed.. ok..  hummm im trying to think of ways we can  get more space .. 
I was also looking at DD-wrt i use it on my Netgear wg602.. it has a package that 2 mb that works on my device.. and it has a web interface and client bridge support.. maybe we can find a way to port it over..

I've seen it too, but it need a license.

www.dd-wrt.com wrote:

This router requires a Professional Activation. You can purchase activations and superchannel licenses in the DD-WRT Shop.

LanMasterD wrote:

thats great news about the device support from garbor so if were on the origional boot loader wat will that mean for us exactly?

Having a firmware image compatible with the original bootloader, allow us to load OpenWrt directly from original web interface or via original bootloader xmodem transfer.

C ya!

hi again Araks

im in work today so replying quick is a little easyer..
yeah i have a spare drive ill use for ubuntu.. forgot how cpu intencive the compiling can get.. cool..

ok now as for the DD-wrt.. yeah it does require a license. but the activation and multi channel is only 25 euro.. that wouldnt bother me to much .. i have a second bridge device which i might try it on.. im guessing i still need the boot loder that we used on your one..

i think by comparing the 2 setups we can make the open wrt work a little better maybe .. it would be a good working platform to work off..

ill try it and let ya know

LanMasterD wrote:

ok now as for the DD-wrt.. yeah it does require a license. but the activation and multi channel is only 25 euro.. that wouldnt bother me to much .. i have a second bridge device which i might try it on.. im guessing i still need the boot loder that we used on your one..

It isn't much money, but I have hundreds of OSBRiDGE antennas, that would need too much money...! And anyway, I'd like to improve OperWrt, since I prefer its philosophy instead DD-WRT's.
For the bootloader, I don't know wich one they use. Maybe they use the original one. You should ask them...

Bye!

Today I sent a 5GXi board to Gabor, as soon he receives it, he'll start looking for a way to dump the original bootloader.
Once he did that, the next step will be understanding the way the bootloader (de)crypts the original firmwares.
Then we'll be able to make crypted images that will boot with the original bootloader, and write them trough the original web interface upgrade tool.

Now we've only to wait for Poste Italiane to deliver the package to Gabor... roll

cool sounds great .. ive fallen ill last few days so havent had any time to look into things.. can bearly move.. ill be in touch soon