Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2011 14:19:31 +0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Erik Moe <ehmoeok@gmail.com>
Cc:        freebsd-mips@freebsd.org
Subject:   Re: FreeBSD MIPS and RB133c
Message-ID:  <BANLkTi=dfoubEHxBvzVx4bE0wNgW1P1p1Q@mail.gmail.com>
In-Reply-To: <AEDDDA7C-BCCF-49F7-82AD-B479230EA6F4@gmail.com>
References:  <AEDDDA7C-BCCF-49F7-82AD-B479230EA6F4@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
If it has one physical ethernet port, I wonder why the switch engine
thinks there's 6..


Adrian

On 8 May 2011 23:28, Erik Moe <ehmoeok@gmail.com> wrote:
> Hello,
>
> I'd like to get FreeBSD running on my Router Board 133c. =A0I'm new to MI=
PS and I'm running into a little problem and I was hoping that somebody cou=
ld point me in the right direction. =A0I pulled the latest sources from hea=
d and I can get the kernel to boot, but after it boots FreeBSD is unable to=
 acquire an IP address.
>
> RouterBOOT booter 2.18
>
> RouterBoard 133C3
>
> CPU frequency: 175 MHz
> =A0Memory size: =A016 MB
>
> Press any key within 6 seconds to enter setup......
> trying dhcp protocol... OK
> resolved mac address 00:0C:29:29:27:66
> Gateway: 192.168.11.1
> transfer started ........................ transfer ok, time=3D4.94s
> setting up elf image... OK
> jumping to kernel code
> entry: mips_init()
> Cache info:
> =A0picache_stride =A0 =A0=3D 4096
> =A0picache_loopcount =3D 2
> =A0pdcache_stride =A0 =A0=3D 4096
> =A0pdcache_loopcount =3D 2
> cpu0: MIPS Technologies processor v11.128
> =A0MMU: Standard TLB, 16 entries
> =A0L1 i-cache: 2 ways of 256 sets, 16 bytes per line
> =A0L1 d-cache: 2 ways of 256 sets, 16 bytes per line
> =A0Config1=3D0x1e994c8a<WatchRegs,EJTAG>
> Physical memory chunk(s):
> 0x29a000 - 0xffffff, 14049280 bytes (3430 pages)
> Maxmem is 0x1000000
> KDB: debugger backends: ddb
> KDB: current backend: ddb
> Copyright (c) 1992-2011 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> =A0 =A0 =A0 =A0The Regents of the University of California. All rights re=
served.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 9.0-CURRENT #7 r221418M: Sat May =A07 15:16:10 CDT 2011
> =A0 =A0root@freebsd.localdomain:/usr/home/emoe/obj/mips/mips.mipsel/usr/h=
ome/emoe/svn/mips/sys/ADM5120 mips
> real memory =A0=3D 16777216 (16384K bytes)
> Physical memory chunk(s):
> 0x00326000 - 0x00f8dfff, 13008896 bytes (3176 pages)
> avail memory =3D 12754944 (12MB)
> null: <null device, zero device>
> nfslock: pseudo-device
> mem: <memory>
> nexus0: <MIPS32 root nexus>
> clock0: <Generic MIPS32 ticker> on nexus0
> Timecounter "MIPS32" frequency 175000000 Hz quality 800
> Event timer "MIPS32" frequency 175000000 Hz quality 800
> obio0 at mem 0-0x1ffffffe on nexus0
> admsw0: <ADM5120 Switch Engine> on obio0
> admsw0: ADM5120 Switch Engine, 6 ports
> admsw0: base Ethernet address 00:0c:42:07:b2:4e
> admsw0: Ethernet address: 00:0c:42:07:b2:4e
> admsw1: Ethernet address: 00:0c:42:07:b2:4f
> admsw2: Ethernet address: 00:0c:42:07:b2:50
> admsw3: Ethernet address: 00:0c:42:07:b2:51
> admsw4: Ethernet address: 00:0c:42:07:b2:52
> admsw5: Ethernet address: 00:0c:42:07:b2:53
> uart0: <adm5120_uart, channel A> on obio0
> uart0: fast interrupt
> uart0: console (115200,n,8,1)
> Device configuration finished.
> Timecounters tick every 10.000 msec
> bootpc_init: wired to interface 'admsw0'
> Sending DHCP Discover packet from interface admsw0 (00:0c:42:07:b2:4e)
> DHCP/BOOTP timeout for server 255.255.255.255
> DHCP/BOOTP timeout for server 255.255.255.255
> DHCP/BOOTP timeout for server 255.255.255.255
> DHCP/BOOTP timeout for server 255.255.255.255
> DHCP/BOOTP timeout for server 255.255.255.255
> DHCP/BOOTP timeout for server 255.255.255.255
> DHCP/BOOTP timeout for server 255.255.255.255
> DHCP/BOOTP timeout for server 255.255.255.255
>
> The RB133c has only one ethernet port, which I assume is admsw0, though t=
he mac address that is specified (00:0c:42:07:b2:4e) doesn't match the mac =
address that shows up in RouterBoot (which is the same one that I used to l=
oad the kernel).
>
> your choice: i - board info
>
> Board Info:
>
> =A0 =A0 =A0 =A0Board type: 133C3
> =A0 =A0 Serial number: 16EC01C3C23F
> =A0Firmware version: 2.18
> =A0 =A0 CPU frequency: 175 MHz
> =A0 =A0 =A0 Memory size: 16 MB
> =A0eth1 MAC address: 00:0C:42:1E:9A:88
>
> Using tcpdump, after RouterBoot finishes loading the kernel, I see one DH=
CP request coming from the RouterBoard using mac 00:0c:42:1e:9a:88 and then=
 there is nothing after that. =A0I don't see any packets at all.
>
> =A0 =A0192.168.11.2.23224 > 192.168.11.15.61904: [udp sum ok] UDP, length=
 21
> 09:24:05.839921 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UD=
P (17), length 32)
> =A0 =A0192.168.11.15.61904 > 192.168.11.2.23224: [udp sum ok] UDP, length=
 4
> 09:24:05.840980 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto UD=
P (17), length 328)
> =A0 =A00.0.0.0.bootpc > broadcasthost.bootps: [udp sum ok] BOOTP/DHCP, Re=
quest from 00:0c:42:1e:9a:88 (oui Unknown), length 300, xid 0xd8aaeeff, Fla=
gs [none] (0x0000)
> =A0 =A0 =A0 =A0 =A0Client-Ethernet-Address 00:0c:42:1e:9a:88 (oui Unknown=
)
> =A0 =A0 =A0 =A0 =A0Vendor-rfc1048 Extensions
> =A0 =A0 =A0 =A0 =A0 =A0Magic Cookie 0x63825363
> =A0 =A0 =A0 =A0 =A0 =A0DHCP-Message Option 53, length 1: Release
> =A0 =A0 =A0 =A0 =A0 =A0Client-ID Option 61, length 7: ether 00:0c:42:1e:9=
a:88
> =A0 =A0 =A0 =A0 =A0 =A0Vendor-Class Option 60, length 9: "Mikroboot"
> =A0 =A0 =A0 =A0 =A0 =A0Parameter-Request Option 55, length 2:
> =A0 =A0 =A0 =A0 =A0 =A0 =A0Subnet-Mask, Default-Gateway
> =A0 =A0 =A0 =A0 =A0 =A0END Option 255, length 0
> =A0 =A0 =A0 =A0 =A0 =A0PAD Option 0, length 0, occurs 32
>
> Thanks,
> Erik
>
>
>
>
> _______________________________________________
> freebsd-mips@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mips
> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=dfoubEHxBvzVx4bE0wNgW1P1p1Q>