|
Hi all!
I have recently purchased RB450G router and was not satisfied with RouterOS so I decided to install FreeBSD on this device. There are some issues with starting FreeBSD on this device so I would like to help community to fix some code and get this device working. Default AR71XX kernel failed to boot. Boot process stopped at ohci device detection (it just hanged). When I commented it out in hints file I got following: ======== RouterBOOT booter 2.23 RouterBoard 450G CPU frequency: 680 MHz Memory size: 256 MB Press any key within 2 seconds to enter setup.. Please, check ethernet cable... trying bootp protocol... OK Got IP address: 172.16.0.40 resolved mac address 00:E0:81:49:87:F7 Gateway: 172.16.0.1 transfer started ...................................... transfer ok, time=3.02s setting up elf image... OK jumping to kernel code platform frequency: 680000000 arguments: a0 = 00000008 a1 = a0861c00 a2 = 00000000 a3 = 00000000 Cmd line: console=ttyS0,115200 gpio=1983 HZ=340000000 mem=256M kmac=00:0C:42:59:30:FF board=450G boot=1 mlc=2 Environment: envp is invalid Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG> Config3=0x20 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #17: Thu Jun 10 14:40:34 EEST 2010 [hidden email]:/usr/obj/mips/mips/usr/src.mips/sys/MIKROTIK mips WARNING: WITNESS option enabled, expect reduced performance. real memory = 33554432 (32768K bytes) avail memory = 25894912 (24MB) nexus0: <MIPS32 root nexus> clock0: <Generic MIPS32 ticker> on nexus0 clock0: [FILTER] apb0 at irq 4 on nexus0 apb0: [FILTER] uart0: <16550 or compatible> on apb0 uart0: [FILTER] uart0: console (115200,n,8,1) ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff irq 1 on nexus0 ehci0: [ITHREAD] usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: <AR71XX Integrated USB 2.0 controller> on ehci0 pcib0 at irq 0 on nexus0 pcib0: [FILTER] pci0: <PCI bus> on pcib0 pci0: <old, non-VGA display device> at device 0.0 (no driver attached) ... [ skipped ] ... pci0: <old, non-VGA display device> at device 31.0 (no driver attached) arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0 miibus0: <MII bus> on arge0 ukphy0: <Generic IEEE 802.3u media interface> PHY 4 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto arge0: Ethernet address: 62:73:64:40:64:4b arge0: [FILTER+ITHREAD] arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: Ethernet address: 62:73:64:ca:db:ce arge1: [FILTER+ITHREAD] spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0 spibus0: <spibus bus> on spi0 spibus0: <unknown card> at cs 1 mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0 Unknown SPI flash device. Vendor: ff, device id: ffff device_attach: mx25l0 attach returned 6 ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0 Timecounter "MIPS32" frequency 340000000 Hz quality 800 Timecounters tick every 1.000 msec bootpc_init: wired to interface 'arge0' Sending DHCP Discover packet from interface arge0 (62:73:64:40:64:4b) arge0: link state changed to DOWN usbus0: 480Mbps High Speed USB v2.0 ugen0.1: <Atheros> at usbus0 uhub0: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 uhub0: 2 ports with 2 removable, self powered DHCP/BOOTP timeout for server 255.255.255.255 arge0: link state changed to UP ======= As you can see ethernet card got incorrect ethernet address. What could cause this? Perhaps I can somehow give you some more debug information? Kern conf and hints file are in attachment. -- AIM-UANIC | AIM-RIPE +-----[ FreeBSD ]-----+ Alexander Mogilny | The Power to Serve! | <> [hidden email] +---------------------+ _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "[hidden email]" |
|
On 11 Jun 2010, at 13:05, Alexander Mogilny wrote:
> Hi all! > I have recently purchased RB450G router and was not > satisfied with RouterOS so I decided to install FreeBSD > on this device. > There are some issues with starting FreeBSD on this device > so I would like to help community to fix some code and get > this device working. > > Default AR71XX kernel failed to boot. Boot process stopped > at ohci device detection (it just hanged). When I commented > it out in hints file I got following: > > ======== > RouterBOOT booter 2.23 > RouterBoard 450G > CPU frequency: 680 MHz > Memory size: 256 MB > > Press any key within 2 seconds to enter setup.. > Please, check ethernet cable... > trying bootp protocol... OK > Got IP address: 172.16.0.40 > resolved mac address 00:E0:81:49:87:F7 > Gateway: 172.16.0.1 > transfer started ...................................... transfer ok, time=3.02s > setting up elf image... OK > jumping to kernel code > platform frequency: 680000000 > arguments: > a0 = 00000008 > a1 = a0861c00 > a2 = 00000000 > a3 = 00000000 > Cmd line: console=ttyS0,115200 gpio=1983 HZ=340000000 mem=256M kmac=00:0C:42:59:30:FF board=450G boot=1 mlc=2 > Environment: > envp is invalid > Cache info: > picache_stride = 4096 > picache_loopcount = 16 > pdcache_stride = 4096 > pdcache_loopcount = 8 > cpu0: MIPS Technologies processor v116.147 > MMU: Standard TLB, 16 entries > L1 i-cache: 4 ways of 512 sets, 32 bytes per line > L1 d-cache: 4 ways of 256 sets, 32 bytes per line > Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG> > Config3=0x20 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2010 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 9.0-CURRENT #17: Thu Jun 10 14:40:34 EEST 2010 > [hidden email]:/usr/obj/mips/mips/usr/src.mips/sys/MIKROTIK mips > WARNING: WITNESS option enabled, expect reduced performance. > real memory = 33554432 (32768K bytes) > avail memory = 25894912 (24MB) > nexus0: <MIPS32 root nexus> > clock0: <Generic MIPS32 ticker> on nexus0 > clock0: [FILTER] > apb0 at irq 4 on nexus0 > apb0: [FILTER] > uart0: <16550 or compatible> on apb0 > uart0: [FILTER] > uart0: console (115200,n,8,1) > ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff irq 1 on nexus0 > ehci0: [ITHREAD] > usbus0: set host controller mode > usbus0: EHCI version 1.0 > usbus0: set host controller mode > usbus0: <AR71XX Integrated USB 2.0 controller> on ehci0 > pcib0 at irq 0 on nexus0 > pcib0: [FILTER] > pci0: <PCI bus> on pcib0 > pci0: <old, non-VGA display device> at device 0.0 (no driver attached) > > ... > [ skipped ] > ... > > pci0: <old, non-VGA display device> at device 31.0 (no driver attached) > arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0 > miibus0: <MII bus> on arge0 > ukphy0: <Generic IEEE 802.3u media interface> PHY 4 on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto > arge0: Ethernet address: 62:73:64:40:64:4b > arge0: [FILTER+ITHREAD] > arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0 > arge1: Ethernet address: 62:73:64:ca:db:ce > arge1: [FILTER+ITHREAD] > spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0 > spibus0: <spibus bus> on spi0 > spibus0: <unknown card> at cs 1 > mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0 > Unknown SPI flash device. Vendor: ff, device id: ffff > device_attach: mx25l0 attach returned 6 > ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0 > Timecounter "MIPS32" frequency 340000000 Hz quality 800 > Timecounters tick every 1.000 msec > bootpc_init: wired to interface 'arge0' > Sending DHCP Discover packet from interface arge0 (62:73:64:40:64:4b) > arge0: link state changed to DOWN > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: <Atheros> at usbus0 > uhub0: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 > uhub0: 2 ports with 2 removable, self powered > DHCP/BOOTP timeout for server 255.255.255.255 > arge0: link state changed to UP > ======= > > As you can see ethernet card got incorrect ethernet address. > What could cause this? Perhaps I can somehow give you some more > debug information? > > Kern conf and hints file are in attachment. How are you booting your kernel? If you typed 'go' instead of 'exec', bad things like these can happen. Regards, -- Rui Paulo _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "[hidden email]" |
|
In reply to this post by Alexander Mogilny
On 2010-06-11, at 5:05 AM, Alexander Mogilny wrote: > Hi all! > I have recently purchased RB450G router and was not > satisfied with RouterOS so I decided to install FreeBSD > on this device. > There are some issues with starting FreeBSD on this device > so I would like to help community to fix some code and get > this device working. > > Default AR71XX kernel failed to boot. Boot process stopped > at ohci device detection (it just hanged). When I commented > it out in hints file I got following: > > > As you can see ethernet card got incorrect ethernet address. > What could cause this? Perhaps I can somehow give you some more > debug information? RouterBoard and Routerstation use different approaches for passing device-dependent data (MAC address, memsize) to kernel. Routerstation uses redboot that passes key-value pairs in environment memory area while RouterBoard's own boot loader passes them as key-value pairs in argv. Some minor hackery required to get it working. It's not done yet because I didn't have a chance to get my hands on AR71XX-based routerboard :) -- gonzo _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "[hidden email]" |
|
On Jun 11, 2010, at 6:20 PM, Oleksandr Tymoshenko wrote:
> > On 2010-06-11, at 5:05 AM, Alexander Mogilny wrote: > >> Hi all! >> I have recently purchased RB450G router and was not >> satisfied with RouterOS so I decided to install FreeBSD >> on this device. >> There are some issues with starting FreeBSD on this device >> so I would like to help community to fix some code and get >> this device working. >> >> Default AR71XX kernel failed to boot. Boot process stopped >> at ohci device detection (it just hanged). When I commented >> it out in hints file I got following: >> > .. skipped .. >> >> As you can see ethernet card got incorrect ethernet address. >> What could cause this? Perhaps I can somehow give you some more >> debug information? > RouterBoard and Routerstation use different approaches for passing > device-dependent data (MAC address, memsize) to kernel. Routerstation > uses redboot that passes key-value pairs in environment memory area > while RouterBoard's own boot loader passes them as key-value pairs in argv. > > Some minor hackery required to get it working. It's not done yet because I > didn't have a chance to get my hands on AR71XX-based routerboard :) Gonzo, I 've most of the trivial fixes for routerboards, just give me a few days to extract the current patches. My old stuff can be found on: http://loos.no-ip.org:280/routerboard/ The missing bits are: nand (the driver is ported, but i need more -free- time to sort out the FS layer), sd/mmc card slot (connected to spi bus) and the ethernet switch (useful on RG450(g) which have 4 ports connected to switch). Luiz_______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "[hidden email]" |
|
On Jun 12, 2010, at 2:36 PM, Luiz Otavio O Souza wrote: > Gonzo, > > I 've most of the trivial fixes for routerboards, just give me a few days to extract the current patches. > > My old stuff can be found on: http://loos.no-ip.org:280/routerboard/ > > The missing bits are: nand (the driver is ported, but i need more -free- time to sort out the FS layer), sd/mmc card slot (connected to spi bus) and the ethernet switch (useful on RG450(g) which have 4 ports connected to switch). > Great! I will try this on Monday as soon as I get to device and let you know if it worked for me. _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "[hidden email]" |
|
In reply to this post by Luiz Otavio O Souza-4
On Jun 12, 2010, at 2:36 PM, Luiz Otavio O Souza wrote: > Gonzo, > > I 've most of the trivial fixes for routerboards, just give me a few days to extract the current patches. > > My old stuff can be found on: http://loos.no-ip.org:280/routerboard/ > > The missing bits are: nand (the driver is ported, but i need more -free- time to sort out the FS layer), sd/mmc card slot (connected to spi bus) and the ethernet switch (useful on RG450(g) which have 4 ports connected to switch). > Hi again! I confirm that this "old stuff" :) works on RB450G. Web document should be corrected to use port 280 for downloading patches from http://loos.no-ip.org. I also made some corrections to gpio.diff as world failed to build because of warnings in gpioctl.c . You may see corrected diff attached. I will now make some tests on the board and give you feedback if everything is fine. Here is my dmesg.boot: RouterBOOT booter 2.23 RouterBoard 450G CPU frequency: 680 MHz Memory size: 256 MB Press any key within 2 seconds to enter setup.. Please, check ethernet cable... trying bootp protocol... OK Got IP address: 172.16.0.40 resolved mac address 00:E0:81:49:87:F7 Gateway: 172.16.0.1 transfer started .................................. transfer ok, time=2.75s setting up elf image... OK jumping to kernel code platform frequency: 680000000 arguments: a0 = 00000008 a1 = a0861c00 a2 = 00000000 a3 = 00000000 Cmd line: console=ttyS0,115200 gpio=1983 HZ=340000000 mem=256M kmac=00:0C:42:59:30:FF board=450G boot=1 mlc=2 Environment: envp is invalid Cache info: picache_stride = 4096 picache_loopcount = 16 pdcache_stride = 4096 pdcache_loopcount = 8 cpu0: MIPS Technologies processor v116.147 MMU: Standard TLB, 16 entries L1 i-cache: 4 ways of 512 sets, 32 bytes per line L1 d-cache: 4 ways of 256 sets, 32 bytes per line Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG> Config3=0x20 Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #3: Tue Jun 15 14:00:59 EEST 2010 [hidden email]:/usr/obj/mips/mips/usr/src.mips/sys/RB4XX mips real memory = 268435456 (262144K bytes) avail memory = 257089536 (245MB) nexus0: <MIPS32 root nexus> clock0: <Generic MIPS32 ticker> on nexus0 clock0: [FILTER] apb0 at irq 4 on nexus0 apb0: [FILTER] uart0: <16550 or compatible> on apb0 uart0: [FILTER] uart0: console (115200,n,8,1) gpio0: <Atheros AR71XX GPIO driver> on apb0 gpio0: [GIANT-LOCKED] gpio0: [FILTER+ITHREAD] gpioc0: <GPIO controller> on gpio0 gpiobus0: <GPIO bus> on gpio0 gpioled0: <GPIO led> at pin(s) 4 on gpiobus0 ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff irq 1 on nexus0 ehci0: [ITHREAD] usbus0: set host controller mode usbus0: EHCI version 1.0 usbus0: set host controller mode usbus0: <AR71XX Integrated USB 2.0 controller> on ehci0 arge0: <Atheros AR71xx built-in ethernet interface> at mem 0x19000000-0x19000fff irq 2 on nexus0 arge0: Ethernet address: 00:0c:42:59:30:00 arge0: [FILTER+ITHREAD] arge1: <Atheros AR71xx built-in ethernet interface> at mem 0x1a000000-0x1a000fff irq 3 on nexus0 miibus0: <MII bus> on arge1 ukphy0: <Generic IEEE 802.3u media interface> PHY 4 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto arge1: Ethernet address: 00:0c:42:59:30:ff arge1: [FILTER+ITHREAD] ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0 spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0 spibus0: <spibus bus> on spi0 Timecounter "MIPS32" frequency 340000000 Hz quality 800 Timecounters tick every 1.000 msec bootpc_init: wired to interface 'arge1' Sending DHCP Discover packet from interface arge1 (00:0c:42:59:30:ff) arge1: link state changed to DOWN usbus0: 480Mbps High Speed USB v2.0 ugen0.1: <Atheros> at usbus0 uhub0: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 uhub0: 2 ports with 2 removable, self powered DHCP/BOOTP timeout for server 255.255.255.255 arge1: link state changed to UP DHCP/BOOTP timeout for server 255.255.255.255 Received DHCP Offer packet on arge1 from 172.16.0.100 (accepted) (no root path) Received DHCP Offer packet on arge1 from 172.16.0.100 (ignored) (no root path) Received DHCP Offer packet on arge1 from 172.16.0.100 (ignored) (no root path) Sending DHCP Request packet from interface arge1 (00:0c:42:59:30:ff) DHCP/BOOTP timeout for server 255.255.255.255 Received DHCP Ack packet on arge1 from 172.16.0.100 (accepted) (got root path) Received DHCP Ack packet on arge1 from 172.16.0.100 via 172.16.0.1 (accepted) (got root path) arge1 at 172.16.0.40 server 172.16.0.100 via gateway 172.16.0.1 boot file boot/kernel/kernel subnet mask 255.255.255.0 router 172.16.0.1 rootfs 172.16.0.100:/home/nfs hostname mk-40 Adjusted interface arge1 Trying to mount root from nfs: NFS ROOT: 172.16.0.100:/home/nfs <...> Now, tell me how can I help you with writing some code for ethernet switch etc? As I need to get it working :). _______________________________________________ [hidden email] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-mips To unsubscribe, send any mail to "[hidden email]" |
| Powered by Nabble | Edit this page |
