Hello to all of the members of openWrt forum.
I am new to OpenWrt and have some troubles with it on the Mikrotik RouterBoard 435G. I successfully built my kernel image and boot into it from the network (dhcpd, tftp onm slackware).
Now I wish to install it permanently into the nand with root partition on the USB flsah memory. The problem is that I cannot see none of my ethernet interfaces.
root@OpenWrt:/etc/init.d# ifconfig -a
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:42864 errors:0 dropped:0 overruns:0 frame:0
TX packets:42864 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2914752 (2.7 MiB) TX bytes:2914752 (2.7 MiB)
And the next problem is that I cannot see the USB connected to the routerboard either.
[ 0.000000] Linux version 2.6.39.4 (zoltan@mail) (gcc version 4.5.4 20110808 (prerelease) (Linaro GCC 4.5-2011.08) ) #8 Sat Dec 31 21:29:47 CET 2011
[ 0.000000] prom: fw_arg0=00000008, fw_arg1=a0871c00, fw_arg2=00000000, fw_arg3=00000000
[ 0.000000] MyLoader: sysp=6b3eff77, boardp=7ee7ff8f, parts=b7f6ffff
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR7161 rev 2
[ 0.000000] Clocks: CPU:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 10000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 10000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00010000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00010000
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat 802dd270, node_mem_map 81000000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65024 pages, LIFO batch:15
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 gpio=4031 HZ=340000000 mem=256M kmac=00:0C:42:EC:3F:99 board=435G boot=1 mlc=2 rootfstype=squashfs,yaffs,jffs2 noinitrd
[ 0.000000] MIPS: no machine found for id '435G', supported machines:
[ 0.000000] id name
[ 0.000000] Generic Generic AR71xx board
[ 0.000000] ALL0258N Allnet ALL0258N
[ 0.000000] AP121-MINI Atheros AP121-MINI
[ 0.000000] AP121 Atheros AP121
[ 0.000000] AP81 Atheros AP81
[ 0.000000] AP83 Atheros AP83
[ 0.000000] AP96 Atheros AP96
[ 0.000000] AW-NR580 AzureWave AW-NR580
[ 0.000000] DB120 Atheros DB120
[ 0.000000] DIR-600-A1 D-Link DIR-600 rev. A1
[ 0.000000] DIR-615-C1 D-Link DIR-615 rev. C1
[ 0.000000] DIR-825-B1 D-Link DIR-825 rev. B1
[ 0.000000] EAP7660D Senao EAP7660D
[ 0.000000] JA76PF jjPlus JA76PF
[ 0.000000] JWAP003 jjPlus JWAP003
[ 0.000000] HORNET-UB ALFA NETWORKS Hornet-UB
[ 0.000000] MZK-W04NU Planex MZK-W04NU
[ 0.000000] MZK-W300NH Planex MZK-W300NH
[ 0.000000] NBG460N Zyxel NBG460N/550N/550NH
[ 0.000000] OM2P OpenMesh OM2P
[ 0.000000] PB42 Atheros PB42
[ 0.000000] PB44 Atheros PB44
[ 0.000000] PB92 Atheros PB92
[ 0.000000] 493G MikroTik RouterBOARD 493G
[ 0.000000] 493 MikroTik RouterBOARD 493/AH
[ 0.000000] 450G MikroTik RouterBOARD 450G
[ 0.000000] 450 MikroTik RouterBOARD 450
[ 0.000000] 433U MikroTik RouterBOARD 433UAH
[ 0.000000] 433 MikroTik RouterBOARD 433/AH
[ 0.000000] 411U MikroTik RouterBOARD 411U
[ 0.000000] 411 MikroTik RouterBOARD 411/A/AH
[ 0.000000] 750i MikroTik RouterBOARD 750
[ 0.000000] TEW-632BRP TRENDnet TEW-632BRP
[ 0.000000] TL-MR3420 TP-LINK TL-MR3420
[ 0.000000] TL-MR3220 TP-LINK TL-MR3220
[ 0.000000] TL-WA901ND TP-LINK TL-WA901ND
[ 0.000000] TL-WA901ND-v2 TP-LINK TL-WA901ND v2
[ 0.000000] TL-WR741ND TP-LINK TL-WR741ND
[ 0.000000] TL-WR741ND-v4 TP-LINK TL-WR741ND v4
[ 0.000000] TL-WR841N-v1.5 TP-LINK TL-WR841N v1
[ 0.000000] TL-WR941ND TP-LINK TL-WR941ND
[ 0.000000] TL-WR1043ND TP-LINK TL-WR1043ND
[ 0.000000] TL-WR703N TP-LINK TL-WR703N v1
[ 0.000000] UBNT-XM Ubiquiti UniFi
[ 0.000000] UBNT-AR Ubiquiti AirRouter
[ 0.000000] UBNT-NM Ubiquiti Nanostation M
[ 0.000000] UBNT-RM Ubiquiti Rocket M
[ 0.000000] UBNT-BM Ubiquiti Bullet M
[ 0.000000] UBNT-LS-SR71 Ubiquiti LS-SR71
[ 0.000000] UBNT-LSX Ubiquiti LSX
[ 0.000000] UBNT-RSPRO Ubiquiti RouterStation Pro
[ 0.000000] UBNT-RS Ubiquiti RouterStation
[ 0.000000] WHR-HP-GN Buffalo WHR-HP-GN
[ 0.000000] WHR-G301N Buffalo WHR-G301N
[ 0.000000] WHR-HP-G300N Buffalo WHR-HP-G300N
[ 0.000000] WNDR3700 NETGEAR WNDR3700/WNDR3800/WNDRMAC
[ 0.000000] WNR2000 NETGEAR WNR2000
[ 0.000000] WP543 Compex WP543
[ 0.000000] WRT160NL Linksys WRT160NL
[ 0.000000] WRT400N Linksys WRT400N
[ 0.000000] WZR-HP-G300NH Buffalo WZR-HP-G300NH
[ 0.000000] WZR-HP-G300NH2 Buffalo WZR-HP-G300NH2
[ 0.000000] WZR-HP-AG300H Buffalo WZR-HP-AG300H
[ 0.000000] WZR-HP-G450H Buffalo WZR-HP-G450H
[ 0.000000] ZCN-1523H-5 Zcomax ZCN-1523H-5
[ 0.000000] ZCN-1523H-2 Zcomax ZCN-1523H-2
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 254244k/262144k available (2122k kernel code, 7900k reserved, 428k data, 2568k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:80
[ 0.000000] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 512
[ 0.070000] NET: Registered protocol family 16
[ 0.070000] MIPS: machine is Generic AR71xx board
[ 0.080000] bio: create slab <bio-0> at 0
[ 0.090000] Switching to clocksource MIPS
[ 0.090000] NET: Registered protocol family 2
[ 0.100000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.100000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.110000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.110000] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.120000] TCP reno registered
[ 0.120000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.130000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.130000] NET: Registered protocol family 1
[ 0.140000] PCI: CLS 0 bytes, default 32
[ 2.940000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.950000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.960000] yaffs built Dec 30 2011 15:20:47 Installing.
[ 2.960000]
[ 2.960000]
[ 2.960000]
[ 2.960000]
[ 2.960000] YAFFS-WARNING CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED selected.
[ 2.960000]
[ 2.960000]
[ 2.960000]
[ 2.960000] msgmni has been set to 496
[ 2.960000] io scheduler noop registered
[ 2.960000] io scheduler deadline registered (default)
[ 2.970000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 3.000000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 3.000000] console [ttyS0] enabled, bootconsole disabled
[ 3.010000] Atheros AR71xx SPI Controller driver version 0.2.4
[ 3.030000] Atheros AR71xx hardware watchdog driver version 0.1.0
[ 3.030000] ar71xx-wdt: timeout=15 secs (max=25)
[ 3.030000] TCP westwood registered
[ 3.040000] NET: Registered protocol family 17
[ 3.040000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[ 3.050000] All bugs added by David S. Miller <davem@redhat.com>
[ 3.070000] Freeing unused kernel memory: 2568k freed
[ 3.410000] Button Hotplug driver version 0.4.1
[ 6.830000] SCSI subsystem initialized
[ 6.930000] usbcore: registered new interface driver usbfs
[ 6.930000] usbcore: registered new interface driver hub
[ 6.940000] usbcore: registered new device driver usb
[ 7.000000] PPP generic driver version 2.4.2
[ 7.080000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 7.170000] NET: Registered protocol family 24
[ 7.260000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 7.330000] nf_conntrack version 0.5.0 (4012 buckets, 16048 max)
[ 7.520000] ath_hal: module license 'Proprietary' taints kernel.
[ 7.520000] Disabling lock debugging due to kernel taint
[ 7.550000] ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
[ 7.600000] ath_pci: trunk
[ 7.600000] wlan: trunk
[ 7.610000] wlan: mac acl policy registered
[ 7.610000] ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
[ 7.620000] ath_rate_minstrel: look around rate set to 10%
[ 7.620000] ath_rate_minstrel: EWMA rolloff level set to 75%
[ 7.630000] ath_rate_minstrel: max segment size in the mrr set to 6000 us
[ 7.660000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 7.680000] uhci_hcd: USB Universal Host Controller Interface driver
[ 7.750000] Initializing USB Mass Storage driver...
[ 7.750000] usbcore: registered new interface driver usb-storage
[ 7.760000] USB Mass Storage support registered.
[ 10.580000] ar71xx-wdt: enabling watchdog timer
Usually when I connect an usb flash memory (to my linux desktop) dmesg will show an event about it - that new usb device was connected. Here nothing happens - after the last line there should be something (I connected an USB device). I posted the complete dmesg, maybe there is something wrong with the basic kernel (openwrt) configuration.
Here are the loaded modules:
root@OpenWrt:/dev# lsmod
Module Size Used by Tainted: P
usb_storage 32864 0
uhci_hcd 17296 0
ohci_hcd 15984 0
ath_pci 271248 0
ath_hal 293744 1 ath_pci
nf_nat_irc 784 0
nf_conntrack_irc 2496 1 nf_nat_irc
nf_nat_ftp 976 0
nf_conntrack_ftp 4416 1 nf_nat_ftp
ipt_MASQUERADE 944 1
iptable_nat 2128 1
nf_nat 9984 4 nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_CT 1072 0
xt_conntrack 2080 3
xt_NOTRACK 464 0
iptable_raw 560 1
xt_state 624 0
nf_conntrack_ipv4 3824 6 iptable_nat,nf_nat
nf_defrag_ipv4 624 1 nf_conntrack_ipv4
nf_conntrack 36656 12 nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_CT,xt_conntrack,xt_NOTRACK,xt_state,nf_conntrack_ipv4
ehci_hcd 31616 0
sd_mod 21952 0
pppoe 7184 0
pppox 1152 1 pppoe
ipt_REJECT 1840 2
xt_TCPMSS 1968 0
ipt_LOG 6064 0
xt_comment 416 0
xt_multiport 1104 0
xt_mac 544 0
xt_limit 960 1
iptable_mangle 832 1
iptable_filter 624 1
ip_tables 8976 4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp 1616 3
x_tables 10080 18 ipt_MASQUERADE,iptable_nat,xt_CT,xt_conntrack,xt_NOTRACK,iptable_raw,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,p
ppp_async 5968 0
ppp_generic 18544 3 pppoe,pppox,ppp_async
slhc 4192 1 ppp_generic
usbcore 96464 5 usb_storage,uhci_hcd,ohci_hcd,ehci_hcd
scsi_mod 68384 2 usb_storage,sd_mod
nls_base 4544 1 usbcore
crc_ccitt 944 1 ppp_async
leds_gpio 1632 0
button_hotplug 2672 0
gpio_keys_polled 2080 0
input_polldev 2064 1 gpio_keys_polled
input_core 19824 3 button_hotplug,gpio_keys_polled,input_polldev
I will keep trying to identify the problem but if anybody has some idea please post it.
Thanks
---------------------------------------------------------------------------------------------------
UPDATE 2012 5 jan.
It looks like there are lots of kernel patches which has to be applied to the OpenWrt kernel itself. Here is the link which belongs to a similar discussion with the Mikrotik routerBoard 450g:
http://www.nexlab.it/index.php/2009/04/ … ux-part-2/
I compared several patches included in this package. The result is that lot of non existent code should be added to the kernel source. The problem is that the patch (released by the Mikrotik developers) is designed to a different kernel version. So it cannot be applied as it is.
If somebody has progress with this routerboard please post it here.
(Last edited by zoltan on 5 Jan 2012, 18:54)