urrrgh/////////
resume
kernel from Wive-NG project was compile and boot dir320
in config - change cpu to 5350
RAM-32M
Disable autodetect RAM size
Device drive - MTD - RAlink - (0xE0000) MTD Kernel Partition Size
FS - JFFS2 support
etc on you need(usb,ipv6)
in openwrt add
console::askfirst:/bin/ash --login
to /etc/inittab to give console on UART interface
boot
Starting kernel ...
Linux version 2.6.21.8 (sfstudio_at_mail.ru@wive-ng.sf.net) (gcc version 4.5.3 (GCC) ) #0 Thu Feb 9 00:55:59 YEKT 2012
ASIC mode LINUX started...
The CPU frequency set to 360 MHz
CPU revision is: 0001964c (MIPS 24K)
Fixed Ramsize = 32 MBytes
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Built 1 zonelists. Total pages: 8128
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock4 ro init=/sbin/init
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
Synthesized clear page handler (25 instructions).
Synthesized copy page handler (44 instructions).
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).
Cache parity protection disabled
cause = f080806c, status = 11000000
PID hash table entries: 128 (order: 7, 512 bytes)
calculating r4koff... 00057e40(360000)
CPU frequency 360.00 MHz
Using 180.000 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: 29996k/32768k available (63k kernel code, 2772k reserved, 2241k data, 104k init, 0k highmem)
Mount-cache hash table entries: 512
softirq RT prio: 24.
NET: Registered protocol family 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
deice id : ef 40 17 0 0 (40170000)
W25Q64BV(ef 40170000) (8192 Kbytes)
mtd .name = raspi, .size = 0x00800000 (8M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
Creating 6 MTD partitions on "raspi":
0x00000000-0x00030000 : "Bootloader"
0x00030000-0x00040000 : "Config"
0x00040000-0x00050000 : "Factory"
0x00050000-0x00130000 : "Kernel"
0x00130000-0x007e0000 : "RootFS"
0x007e0000-0x00800000 : "RW-FS"
Load Timer Module(Wdg/Soft)
Load Ralink DFS Timer Module
NVRAM: Kernel NVRAM start init.
NVRAM: Particion 0 CRC a05a35aa OK.
NVRAM: initialized
squashfs: version 3.4 (2008/08/26) Phillip Lougher
squashfs: LZMA suppport for slax.org by jro
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Ralink gpio driver initialized
Number of GPIO=52
Generic RTC Driver v1.07
Ralink APSoC Hardware Watchdog Timer
Serial: 8250/16550 driver $Revision: 1.6 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A
serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A
block2mtd: version $Revision: 1.1.1.1 $
i8042.c: i8042 controller self test timeout.
nf_conntrack version 0.5.0 (16384 buckets, 4096 max)
TCP cubic registered
ip_tables: (C) 2000-2006 Netfilter Core Team, NAT Fastpath init.
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
Ralink HW NAT Module Load
VFS: Mounted root (squashfs filesystem) readonly.
mount /proc file system ok!
mount /sys file system ok!
mount /dev file system ok!
mount /var file system ok!
Freeing unused kernel memory: 104k freed
Build the /dev/console node.
init started: BusyBox v1.19.3 (2011-12-26 12:05:03 YEKT)
Please press Enter to activate this console. PPP generic driver version 2.4.2
PPP vpn led has gpio 14
NET: Registered protocol family 24
sysinit: ls: /sys/class/ieee80211: No such file or directory
sysinit: rm: can't remove 'leds': Read-only file system
sysinit: uci: I/O error
sysinit: rm: can't remove 'luci-i18n-english': Read-only file system
sysinit: uci: I/O error
sysinit: rm: can't remove 'luci-theme-openwrt': Read-only file system
sysinit: touch: /etc/config/network: Read-only file system
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: uci: Entry not found
sysinit: rm: can't remove 'network': Read-only file system
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: uci: I/O error
sysinit: portmap: fork: No such deviceiptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: iptables: No chain/target/match by that name.
sysinit: rootfs on / type rootfs (rw)
sysinit: /dev/root on / type squashfs (ro,noatime)
sysinit: proc on /proc type proc (rw,noatime)
sysinit: sysfs on /sys type sysfs (rw,noatime)
sysinit: tmpfs on /dev type tmpfs (rw,noatime)
sysinit: tmpfs on /tmp type tmpfs (rw,noatime)
sysinit: qwewrty
safdsf console
BusyBox v1.19.3 (2011-12-26 12:05:03 YEKT) 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
ATTITUDE ADJUSTMENT (bleeding edge, r29756) ----------
* 1/4 oz Vodka Pour all ingredients into mixing
* 1/4 oz Gin tin with ice, strain into glass.
* 1/4 oz Amaretto
* 1/4 oz Triple sec
* 1/4 oz Peach schnapps
* 1/4 oz Sour mix
* 1 splash Cranberry juice
-----------------------------------------------------
root@OpenWrt:/#
insmod raeth
[17179601.496000] MAC_ADRH -- : 0x00000000
[17179601.500000] MAC_ADRL -- : 0x00000000
[17179601.504000] Ralink APSoC Ethernet Driver Initilization. v2.0 256 rx/tx descriptors allocated, mtu = 1500!
[17179601.508000] MAC_ADRH -- : 0x0000000c
[17179601.512000] MAC_ADRL -- : 0x43305077
[17179601.516000] PROC INIT OK!
ifconfig eth2 up
[17179651.548000]
[17179651.548000] phy_tx_ring = 0x01f98000, tx_ring = 0xa1f98000
[17179651.548000]
[17179651.548000] phy_rx_ring0 = 0x01f99000, rx_ring0 = 0xa1f99000
[17179651.552000] RT305x_ESW: Link Status Changed
root@(none):/# vconfig add eth2 1
root@(none):/# vconfig add eth2 2
root@(none):/# vconfig add eth2 3
root@(none):/# vconfig add eth2 4
root@(none):/# vconfig add eth2 5
root@(none):/# ifconfig eth2.1
eth2.1 Link encap:Ethernet HWaddr 00:0C:43:30:50:77
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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ifconfig eth2.5 hw ether 1C:7E:E5:D3:01:D1
[17179680.212000] eth2.5: Setting MAC address to 1c 7e e5 d3 01 d1.
[17179680.216000] device eth2 entered promiscuous mode
[17179680.220000] VLAN (eth2.5): Setting underlying device (eth2) to promiscious mode.
root@(none):/# brctl addbr br0
br0 eth2.1
brctl addif br0 eth2.2
brctl addif br0 eth2.3
brctl addif br0 eth2.4
root@(none):/# brctl addif br0 eth2.1
[17179689.616000] device eth2.1 entered promiscuous mode
root@(none):/# brctl addif br0 eth2.2
[17179689.628000] device eth2.2 entered promiscuous mode
root@(none):/# brctl addif br0 eth2.3
[17179689.640000] device eth2.3 entered promiscuous mode
root@(none):/# brctl addif br0 eth2.4
[17179689.652000] device eth2.4 entered promiscuous mode
root@(none):/# ifconfig eth2.5 up
ifconfig eth2.4 up
ifconfig eth2.3 up
ifconfig eth2.2 up
ifconfig eth2.1 up
ifconfig br0 up
root@(none):/# ifconfig br0 192.168.0.1 netmask 255.255.255.0 up
root@(none):/# ping 192.168.0.100
PING 192.168.0.100 (192.168.0.100): 56 data bytes
64 bytes from 192.168.0.100: seq=0 ttl=128 time=2.046 ms
64 bytes from 192.168.0.100: seq=1 ttl=128 time=1.056 ms
64 bytes from 192.168.0.100: seq=2 ttl=128 time=0.983 ms
ifconfig eth2.5 10.9.27.99 netmask 255.255.255.0 up
root@(none):/# ping 10.9.27.1
PING 10.9.27.1 (10.9.27.1): 56 data bytes
--- 10.9.27.1 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
any body know how openwrt work with vlan?
in original firmware
# ifconfig br0 down
[17179735.576000] br0: port 5(ra0) entering disabled state
[17179735.580000] br0: port 4(eth2.1) entering disabled state
[17179735.584000] br0: port 3(eth2.2) entering disabled state
[17179735.588000] br0: port 2(eth2.3) entering disabled state
[17179735.592000] br0: port 1(eth2.4) entering disabled state
# brctl delbr br0
[17179737.224000] device ra0 left promiscuous mode
[17179737.228000] br0: port 5(ra0) entering disabled state
[17179737.232000] eth2.1: dev_set_promiscuity(master, -1)
[17179737.236000] device eth2.1 left promiscuous mode
[17179737.240000] br0: port 4(eth2.1) entering disabled state
[17179737.244000] eth2.2: dev_set_promiscuity(master, -1)
[17179737.248000] device eth2.2 left promiscuous mode
[17179737.252000] br0: port 3(eth2.2) entering disabled state
[17179737.256000] eth2.3: dev_set_promiscuity(master, -1)
[17179737.260000] device eth2.3 left promiscuous mode
[17179737.264000] br0: port 2(eth2.3) entering disabled state
[17179737.268000] eth2.4: dev_set_promiscuity(master, -1)
[17179737.272000] device eth2 left promiscuous mode
[17179737.276000] device eth2.4 left promiscuous mode
[17179737.280000] br0: port 1(eth2.4) entering disabled state
#
# vconfig rem eth2.5
Removed VLAN -:eth2.5:-
# vconfig rem eth2.4
Removed VLAN -:eth2.4:-
# vconfig rem eth2.3
Removed VLAN -:eth2.3:-
# vconfig rem eth2.2
Removed VLAN -:eth2.2:-
# vconfig rem eth2.1
Removed VLAN -:eth2.1:-
# ifconfig
eth2 Link encap:Ethernet HWaddr 1C:7E:E5:D3:01:D0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2823 (2.7 KiB) TX bytes:10571 (10.3 KiB)
Interrupt:3
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3009 (2.9 KiB) TX bytes:3009 (2.9 KiB)
ra0 Link encap:Ethernet HWaddr 1C:7E:E5:D3:01:D0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:252 (252.0 B) TX bytes:0 (0.0 B)
Interrupt:4
# vconfig add eth2 1
Added VLAN with VID == 1 to IF -:eth2:-
# vconfig add eth2 2
Added VLAN with VID == 2 to IF -:eth2:-
# vconfig add eth2 3
Added VLAN with VID == 3 to IF -:eth2:-
# vconfig add eth2 4
Added VLAN with VID == 4 to IF -:eth2:-
# vconfig add eth2 5
Added VLAN with VID == 5 to IF -:eth2:-
# brctl addbr br0
# brctl addif br0 eth2.1
[17179841.532000] device eth2.1 entered promiscuous mode
# brctl addif br0 eth2.2
[17179843.336000] device eth2.2 entered promiscuous mode
# brctl addif br0 eth2.3
[17179844.460000] device eth2.3 entered promiscuous mode
# brctl addif br0 eth2.4
[17179845.724000] device eth2.4 entered promiscuous mode
# ifconfig br0 192.168.0.1 netmask 255.255.255.0 up
#
# ifconfig eth2.5 hw ether 1C:7E:E5:D3:01:D1
[ 132.628000] eth2.5: Setting MAC address to 1c 7e e5 d3 01 d1.
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.1c7ee5d301d0 no eth2.1
eth2.2
eth2.3
eth2.4
#
# ifconfig br0
br0 Link encap:Ethernet HWaddr 1C:7E:E5:D3:01:D0
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 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:458 (458.0 B) TX bytes:0 (0.0 B)
# ping 192.168.0.100
PING 192.168.0.100 (192.168.0.100): 56 data bytes
64 bytes from 192.168.0.100: seq=0 ttl=128 time=3.532 ms
64 bytes from 192.168.0.100: seq=1 ttl=128 time=0.986 ms
# ifconfig eth2.5 10.9.27.99 netmask 255.255.255.0 up
# ping 10.9.27.1
PING 10.9.27.1 (10.9.27.1): 56 data bytes
[ 214.512000] RT305x_ESW: Link Status Changed
[ 216.868000] RT305x_ESW: Link Status Changed
[ 218.664000] RT305x_ESW: Link Status Changed
64 bytes from 10.9.27.1: seq=12 ttl=64 time=1011.370 ms
64 bytes from 10.9.27.1: seq=13 ttl=64 time=5.980 ms
64 bytes from 10.9.27.1: seq=14 ttl=64 time=0.954 ms
64 bytes from 10.9.27.1: seq=15 ttl=64 time=1.011 ms
what ??? where error??? vconfig wrong version?? driver ?? or ??
this bridge not working and when i give kernel & modules from original firmware and boot it with FS from openwrt
if this problem was confirmed that only statupt scripts need edit to normal work
(Last edited by EugeneSCH on 13 Feb 2012, 12:33)