i want to tell anyone who has the same failure to compile the via-rhine driver as module and load it after the korina. this works for me now with 2.6.30.6 2.6.30.5 and 2.6.30.1 also with rc6.
if sb needs an outout:
CONFIG_VIA_RHINE=y
CONFIG_VIA_RHINE_MMIO=n
RouterBOOT booter 2.12
RouterBoard 532A
CPU frequency: 399 MHz
Memory size: 64 MB
Press any key within 2 seconds to enter setup..
Booting CF
Loading kernel... done
setting up elf image... OK
jumping to kernel code
Linux version 2.6.30.6 (root@gentoo) (gcc version 4.3.1 (Gentoo 4.3.1 p1.0) ) #2 Thu Sep 17 22:50:12 CEST 2009
CPU revision is: 0001800a (MIPS 4Kc)
Determined physical RAM map:
memory: 47fe79fc @ b8018400 (usable)
PCI: Unknown option `biosirq'
User-defined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
Normal 0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/sda2 pci=biosirq board=500r5 boot=1 irqpoll kmac=00:0C:42:1A:AF:46 gpio=16375 console=ttyS0,
Misrouted IRQ fixup and polling support enabled
This may significantly impact system performance
korina mac = 00:0C:42:1A:AF:46
korina mac = 00:0C:42:1A:AF:46
Primary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 8kB, 4-way, VIPT, no aliases, linesize 16 bytes
NR_IRQS:256
Initializing IRQ's: 168 out of 256
PID hash table entries: 256 (order: 8, 1024 bytes)
calculating r4koff... 000c34f8(799992)
CPU frequency 400.00 MHz
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61004k/65536k available (2153k kernel code, 4456k reserved, 468k data, 136k init, 0k highmem)
Calibrating delay loop... 398.33 BogoMIPS (lpj=796672)
Mount-cache hash table entries: 512
net_namespace: 528 bytes
NET: Registered protocol family 16
PCI: Initializing PCI
bio: create slab <bio-0> at 0
SCSI subsystem initialized
pci 0000:00:02.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:02.0: PME# disabled
pci 0000:00:03.0: PME# supported from D1 D2 D3hot D3cold
pci 0000:00:03.0: PME# disabled
pci 0000:00:05.0: PME# supported from D0 D3hot
pci 0000:00:05.0: PME# disabled
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
yaffs Sep 17 2009 22:45:32 Installing.
msgmni has been set to 119
alg: No test for lzma (lzma-generic)
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 104) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS0 at MMIO 0x0 (irq = 104) is a 16550A
Driver 'sd' needs updating - please use bus_type methods
PATA driver for RouterBOARD 532 Compact Flash version 0.1.0
scsi0 : pata-rb532-cf
ata1: PATA max PIO4 irq 149
eth0 (korina): not using net_device_ops yet
NAND device: Manufacturer ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 1475 at 0x00000170c000
Creating 2 MTD partitions on "gen_nand":
0x000000000000-0x000000400000 : "Routerboard NAND boot"
ata1.00: CFA: SanDisk SDCFH2-004G, HDX 4.32, max PIO4
ata1.00: 8027712 sectors, multi 0: LBA
ata1.00: configured for PIO4
ata1.00: configured for PIO4
ata1: EH complete
scsi 0:0:0:0: Direct-Access ATA SanDisk SDCFH2-0 HDX PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 8027712 512-byte hardware sectors: (4.11 GB/3.82 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI removable disk
0x000000400000-0x000004000000 : "rootfs"
rc32434_wdt: Stopped watchdog timer.
rc32434_wdt: Watchdog Timer version 1.0, timer margin: 20 sec
Registered led device: uled
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
TCP westwood 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>
VFS: Mounted root (ext2 filesystem) readonly on device 8:2.
Freeing unused kernel memory: 136k freed
Algorithmics/MIPS FPU Emulator v1.5
INIT: version 2.86 booting
devfsd: No devfs on /dev, not starting.
Setting parameters of disc: (none).
Setting the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Unable to set System Clock to: Thu Jan 1 00:00:06 UTC 1970 (warning).
Not activating swap on swapfile. (warning).
Will now check root file system:fsck 1.41.3 (12-Oct-2008)
[/sbin/fsck.ext2 (1) -- /] fsck.ext2 -a -C0 /dev/sda2
/dev/sda2: Superblock last mount time is in the future. FIXED.
/dev/sda2: Superblock last write time is in the future. FIXED.
/dev/sda2: clean, 4059/31872 files, 62763/127104 blocks
.
Setting the system clock.
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
Unable to set System Clock to: Thu Jan 1 00:00:07 UTC 1970 (warning).
Cleaning up ifupdown...rm: cannot remove `/etc/network/run/ifstate': Read-only file system
Loading device-mapper support.
Will now check all file systems.
fsck 1.41.3 (12-Oct-2008)
Checking all file systems.
Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
Setting kernel variables (/etc/sysctl.conf)...done.
Will now mount local filesystems:.
Will now activate swapfile swap:swapon on /mnt/cfa4/swapfile
swapon: warning: /mnt/cfa4/swapfile has insecure permissions 0644, 0600 suggested
swapon: /mnt/cfa4/swapfile: Read-only file system
failed.
Cleaning /tmp...done.
Cleaning /var/run...done.
Cleaning /var/lock...done.
Checking minimum space in /tmp...done.
Setting up networking....
/etc/network/options still exists and it will be IGNORED! Read README.Debian of netbase. (warning).
Configuring network interfaces...ifup: failed to open statefile /etc/network/run/ifstate: Read-only file system
failed.
#### WARNING ####
The firewall won't be started/stopped unless it is configured
Please read about Debian specific customization in
/usr/share/doc/shorewall-common/README.Debian.gz.
#################
/etc/rcS.d/S55bootmisc.sh: line 24: /var/lib/initscripts/nologin: Read-only file system
Initializing random number generator...rm: cannot remove `/var/lib/urandom/random-seed': Read-only file system
done.
Setting up X server socket directory /tmp/.X11-unix....
Setting up ICE socket directory /tmp/.ICE-unix....
INIT: Entering runlevel: 2
devfsd: No devfs on /dev, not starting.
Starting system log daemon...chmod: changing permissions of `/dev/xconsole': Read-only file system
chown: changing ownership of `/dev/xconsole': Read-only file system
syslogd: /var/log/news/news.crit: No such file or directory
syslogd: /var/log/news/news.err: No such file or directory
syslogd: /var/log/news/news.notice: No such file or directory
syslogd: cannot create /dev/log: Address already in use
.
Starting kernel log daemon....
Starting system message bus: dbus.
Starting DNS forwarder and DHCP server: dnsmasq.
Starting virtual private network daemon: server failed!
Starting OpenBSD Secure Shell server: sshd.
Starting advanced IEEE 802.11 management: hostapd.
Starting web server: lighttpd1970-01-01 03:00:21: (log.c.75) server started
.
Starting the Network Audio System
Network Audio System Release 1.9.1
Starting internet superserver: inetd.
Starting network management services: snmpd.
Starting FreeRADIUS daemon: freeradiussnmpd[557]: could not open /proc/net/if_inet6
radiusd: Error: No log destination specified.
.
IPv6 support must be enabled in the kernel for radvd to work.
Starting authentication failure monitor: fail2ban.
ip_tables: (C) 2000-2006 Netfilter Core Team
Running local boot scripts (/etc/rc.local).
rm: cannot remove `/var/lib/initscripts/nologin': Read-only file system
Debian GNU/Linux 5.0 edge ttyS0
edge login: root
Password:
Linux edge 2.6.30.6 #2 Thu Sep 17 22:50:12 CEST 2009 mips
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Unable to change tty /dev/ttyS0: Read-only file system
edge:~# lsmod
Module Size Used by
xt_multiport 1840 1
iptable_filter 768 1
ip_tables 8144 1 iptable_filter
x_tables 8736 2 xt_multiport,ip_tables
edge:~# ifconfig eth1
eth1: error fetching interface information: Device not found
edge:~# modinfo via-rhine
filename: /lib/modules/2.6.30.6/kernel/drivers/net/via-rhine.ko
license: GPL
description: VIA Rhine PCI Fast Ethernet driver
author: Donald Becker <becker@scyld.com>
alias: pci:v00001106d00003053sv*sd*bc*sc*i*
alias: pci:v00001106d00003106sv*sd*bc*sc*i*
alias: pci:v00001106d00003065sv*sd*bc*sc*i*
alias: pci:v00001106d00003043sv*sd*bc*sc*i*
depends:
vermagic: 2.6.30.6 mod_unload MIPS32_R1 32BIT
parm: max_interrupt_work:VIA Rhine maximum events handled per interrupt (int)
parm: debug:VIA Rhine debug level (0-7) (int)
parm: rx_copybreak:VIA Rhine copy breakpoint for copy-only-tiny-frames (int)
parm: avoid_D3:Avoid power state D3 (work-around for broken BIOSes) (bool)
edge:~# modprobe via-rhine
via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
PCI: Enabling device 0000:00:02.0 (0080 -> 0083)
eth1: VIA Rhine III at 0xb8800000, 00:0c:42:1a:af:47, IRQ 142.
eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
PCI: Enabling device 0000:00:03.0 (0080 -> 0083)
eth2: VIA Rhine III at 0xb8800400, 00:0c:42:1a:af:48, IRQ 143.
eth2: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
edge:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0c:42:1a:af:47
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)
Interrupt:142
edge:~# ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:0c:42:1a:af:48
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)
Interrupt:143 Base address:0x400
edge:~# ifconfig eth1 192.168.178.41 netmask 255.255.255.0
eth1: link down
edge:~# eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
edge:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0c:42:1a:af:47
inet addr:192.168.178.41 Bcast:192.168.178.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 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:60 (60.0 B) TX bytes:0 (0.0 B)
Interrupt:142
edge:~# ping 192.168.178.80
PING 192.168.178.80 (192.168.178.80) 56(84) bytes of data.
64 bytes from 192.168.178.80: icmp_seq=1 ttl=64 time=4.96 ms
64 bytes from 192.168.178.80: icmp_seq=2 ttl=64 time=0.688 ms
64 bytes from 192.168.178.80: icmp_seq=3 ttl=64 time=0.691 ms
^C
--- 192.168.178.80 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2007ms
rtt min/avg/max/mdev = 0.688/2.116/4.969/2.017 ms
edge:~# modinfo ath9k
filename: /lib/modules/2.6.30.6/kernel/drivers/net/wireless/ath9k/ath9k.ko
license: Dual BSD/GPL
description: Support for Atheros 802.11n wireless LAN cards.
author: Atheros Communications
alias: pci:v0000168Cd0000002Bsv*sd*bc*sc*i*
alias: pci:v0000168Cd0000002Asv*sd*bc*sc*i*
alias: pci:v0000168Cd00000029sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000027sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000024sv*sd*bc*sc*i*
alias: pci:v0000168Cd00000023sv*sd*bc*sc*i*
depends: mac80211,cfg80211
vermagic: 2.6.30.6 mod_unload MIPS32_R1 32BIT
parm: nohwcrypt:Disable hardware encryption (int)
parm: btcoex_enable:Enable Bluetooth coexistence support (bool)
edge:~# modprobe ath9k
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
PCI: Enabling device 0000:00:05.0 (0000 -> 0002)
cfg80211: Calling CRDA for country: US
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR9280 MAC/BB Rev:2 AR5133 RF Rev:d0: mem=0xc01e0000, irq=143
edge:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
eth2 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11abgn ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr:off
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
edge:~# cat /proc/version
Linux version 2.6.30.6 (root@gentoo) (gcc version 4.3.1 (Gentoo 4.3.1 p1.0) ) #2 Thu Sep 17 22:50:12 CEST 2009
edge:~# cat /proc/iomem
00000000-03ffffff : System RAM
00101000-0031b43f : Kernel code
0031b440-003905ff : Kernel data
18030030-18030040 : rb532_wdt_res
18040000-18040013 : korina_dma_rx
18040014-18040027 : korina_dma_tx
18060000-1806024c : korina_regs
18a10000-18a11000 : cf_membase
18a20000-18a21000 : nand_membase
50000000-5fffffff : PCI MEM1
50000000-5000ffff : 0000:00:05.0
50000000-5000ffff : ath9k
50010000-500100ff : 0000:00:02.0
50010000-500100ff : via-rhine
50010100-500101ff : 0000:00:03.0
50010100-500101ff : via-rhine
60000000-6fffffff : PCI Mem2
edge:~# cat /proc/interrupts
CPU0
7: 185725 RB532 timer
104: 1547 RB532 serial
142: 286 RB532 eth1
143: 0 RB532 ath
149: 53450 RB532 pata-rb532-cf
thanks
ps: iam always working as root.
and i have no idea how to do a code-box.
cu
(Last edited by chipman on 17 Sep 2009, 22:32)