RouterBOARD RB450G

Alexander Mogilny sg at sg.org.ua
Tue Jun 15 11:22:38 UTC 2010


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
    root at tbilisi.intra:/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 :).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpio.diff
Type: application/octet-stream
Size: 54596 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20100615/879f4575/gpio.obj
-------------- next part --------------
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpioctl.c
Type: application/octet-stream
Size: 6477 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20100615/879f4575/gpioctl.obj
-------------- next part --------------
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RB4XX
Type: application/octet-stream
Size: 1962 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20100615/879f4575/RB4XX.obj
-------------- next part --------------
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RB450.hints
Type: application/octet-stream
Size: 1459 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20100615/879f4575/RB450.obj


More information about the freebsd-mips mailing list