Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2010 18:16:14 +0200
From:      Alexandr Rybalko <ray@dlink.ua>
To:        freebsd-mips@freebsd.org
Subject:   BCM5354 status
Message-ID:  <20100211181614.ad826569.ray@dlink.ua>

next in thread | raw e-mail | index | archive | help

Done:
CFI write support
GEOM_MTD 
GEOM_ULZMA (done, but very dirty yet)
BFE on SIBA bus
ROBOSwitch VLAN configuration via NVRAM values (support max 16 vlans)
LZMA compressed kernel installed into flash (flash 4MB)
GEOM_ULZMA compressed file system installed into flash

Problems:
Can`t get to load KLD modules. 
Modules can`t compile because /usr/share/mk/bsd.cpu.mk set "LDFLAGS += -Wl,-EL",
so ld exit with unknown flag -Wl,-EL.
After fix it, I have compiled module, but they won`t to load. kernel say "kldload: unexpected R_MIPS_REL32 relocation"
At this point, we have the same problem as with the large size of executable files, problem in ldscript, ld, BFD.


Not started:
GPIO
Wi-Fi 




--------------------------------

Decompressing...........done


CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Thu Jul 19 10:53:24 CST 2007 (root@redhat9)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing Devices.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.3.0
CPU type 0x29029: 240MHz
Total memory: 32768 KBytes

Total memory used by CFE:  0x80300000 - 0x803C0720 (788256)
Initialized Data:          0x80337730 - 0x8033AE50 (14112)
BSS Area:                  0x8033AE50 - 0x8033C720 (6352)
Local Heap:                0x8033C720 - 0x803A0720 (409600)
Stack Area:                0x803A0720 - 0x803C0720 (131072)
Text (code) segment:       0x80300000 - 0x80337730 (227120)
Boot area (physical):      0x003C1000 - 0x00401000
Relocation Factor:         I:00000000 - D:00000000

alpha bootcode ver 0.1.2
cmd = ifconfig eth0 -addr=192.168.0.1 -mask=255.255.255.0
We disable the arp for self.
We disable the arp for self.
Device eth0:  hwaddr 00-90-4C-C0-00-00, ipaddr 192.168.0.1, mask 255.255.255.0
        gateway not set, nameserver not set
cmd = go;
cmd = load -raw -addr=0x803c0720 -max=0x3a0000 :
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Dest=80001000, source =803c0720, filename=flash1.trx
image_head_Check OK
magic = 20040220
image size = 3379744
devname = /dev/mtdblock/2
digest check OK!!
insize = 1048576, out size =8388608
uncompressed size = 2996075
lzma decompress success !
Closing network.
Starting program at 0x80001000
entry: mips_init()
phys_avail[0] = 0x002efba0, len = 0x02000000
Cache info:
  picache_stride    = 4096
  picache_loopcount = 4
  pdcache_stride    = 4096
  pdcache_loopcount = 4
cpu0: Broadcom processor v41.144
  MMU: Standard TLB, 32 entries
  L1 i-cache: 4 ways of 256 sets, 16 bytes per line
  L1 d-cache: 2 ways of 512 sets, 16 bytes per line
  Config1=0x3e9b6c86<MIPS16,EJTAG>
hz=100 cyl_per_hz:120000 cyl_per_usec:120 freq:120000000 cyl_per_hz:1200000 cyl_per_sec:120000000
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 #434 r203660M: Wed Feb 10 15:46:47 EET 2010
    ray@terran.dlink.ua:/usr/1/MIPS_FreeBSD/HEAD/obj/mips/usr/1/MIPS_FreeBSD/HEAD/head/sys/BCM5354 mips
real memory  = 33554432 (32768K bytes)
Physical memory chunk(s):
0x0037d000 - 0x01f40fff, 29114368 bytes (7108 pages)
avail memory = 28794880 (27MB)
nfslock: pseudo-device
null: <null device, zero device>
random: <entropy source, Software, Yarrow>
mem: <memory>
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
clock0: [FILTER]
siba0: start 18000000 len 00010000
siba0: idlo = 600422dd
siba0: idhi = 42439004
siba0:  chipcore id = 00000800
siba0: ccid = 07035354, cc_id = 5354, cc_rev = 0003
siba0: 7 cores detected.
siba0: after remapping: start 18000000 len 00007000
siba0: <Sonics SiliconBackplane rev 0x0> at mem 0x18000000-0x18006fff on nexus0
siba_attach: entry
siba_setup_devinfo: core=0 Vendor=4243 Dev=800 Rev=014
siba0: <ChipCommon> corid=0800 regions count 4 0=18000000x1000 1=1fc00000x400000 2=1c000000x2000000 3=1a000000x2000000
siba_setup_devinfo: core=1 Vendor=4243 Dev=806 Rev=009
siba0: <Ethernet core> corid=0806 regions count 1 0=18001000x1000
siba_setup_devinfo: core=2 Vendor=4243 Dev=816 Rev=008
siba0: <MIPS 3302 core> corid=0816 regions count 1 0=18002000x1000
siba_setup_devinfo: core=3 Vendor=4243 Dev=819 Rev=002
USB20H fcr: 0x64
USB20H shim: 0x8f7
Host mode: enabled
siba0: <USB 2.0 Host> corid=0819 regions count=2 func=1 base 18003000x0200 func=2 base 18003800x0100
siba_setup_devinfo: core=4 Vendor=4243 Dev=80f Rev=004
siba0: <SDRAM/DDR controller> corid=080f regions count 4 0=18004000x1000 1=00000000x8000000 2=10000000x8000000 3=80000000x20000000
siba_setup_devinfo: core=5 Vendor=4243 Dev=812 Rev=00d
siba0: <IEEE 802.11> corid=0812 regions count 1 0=18005000x1000
siba_setup_devinfo: core=6 Vendor=4243 Dev=81c Rev=002
siba0: <Roboswitch> corid=081c regions count 1 0=18006000x1000
siba_cc0: <ChipCommon core> at mem 0x18000000-0x18000fff irq 0 on siba0
siba_cc0: [FILTER]
siba_cc0: Core Revision 20
siba_cc0: Number of UARTs 2
siba_cc0: UARTs clock select 0x08
siba_cc0: UART use internal divided clock
siba_cc0: UART clock divider 66
siba_cc0: UART use GPIO pins 15:12
siba_cc0: Unknown ExtBus type
siba_cc0: Parallel flash
siba_cc0: Type of PLL 0x00
siba_cc0: JTAG Master Present
siba_cc0: PMU Present
siba_nvram2env0: <NVRAM to ENV pseudo-device> at mem 0x1 on siba_cc0
siba_nvram2env0: sig = 0x48534c46
siba_nvram2env0: size = 0x207c
uart0: <16750 or compatible> at mem 0x18000300-0x18000307 flags 0x30 on siba_cc0
uart0: [FILTER]
uart0: console (115200,n,8,1)
cfi0: <AMD/Fujitsu - 4MB> at mem 0x1c000000-0x1dffffff on siba_cc0
cfid0 on cfi0
bfe0: <Broadcom 44xx Ethernet Chip> at mem 0x18001000-0x18001fff irq 1 on siba0
bfeswitch: VLAN0 ports="1 2 3 4 5*"
bfe_robo_config_vlan: Add port 1 untagged  to VLAN=0
bfe_robo_config_vlan: Add port 2 untagged  to VLAN=0
bfe_robo_config_vlan: Add port 3 untagged  to VLAN=0
bfe_robo_config_vlan: Add port 4 untagged  to VLAN=0
bfe_robo_config_vlan: Add port 5 untagged CPU MII to VLAN=0
bfeswitch: VLAN1 ports="0 5"
bfe_robo_config_vlan: Add port 0 untagged  to VLAN=1
bfe_robo_config_vlan: Add port 5 tagged CPU MII to VLAN=1
bfeswitch: VLAN3 ports=""
bfeswitch: VLAN4 ports=""
bfeswitch: VLAN5 ports=""
bfeswitch: VLAN6 ports=""
bfeswitch: VLAN7 ports="
bfeswitch: VLAN8 ports=""
bfeswitch: VLAN9 ports=""
bfeswitch: VLAN10 ports=""
bfeswitch: VLAN11 ports=""
bfeswitch: VLAN12 ports=""
bfeswitch: VLAN14 ports=""
bfeswitch: VLAN15 ports=""
miibus0: <MII bus> on bfe0
bfeswitch0: <BCM5325 10/100baseTX Switch PHY> PHY 0 on miibus0
bfeswitch0:  100baseTX-FDX
bfe0: Ethernet address: 00:1b:11:31:df:0a
bfe0: [ITHREAD]
siba_mips0: <MIPS 3302 processor> at mem 0x18002000-0x18002fff on siba0
siba_mips0: SBIPSFlag=03020100
                              siba_mips0: SBIPSFlagHigh=00000000
siba_mips0: SBIntVec=000000f0
ohci0: <SiBa integrated USB controller> at mem 0x18003000-0x18003fff irq 4 on siba0
ohci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: set host controller mode
usbus1 on ohci0
usbus0 on ohci0
siba_sdram0: <SDRAM/DDR core> at mem 0x18004000-0x18004fff on siba0
siba_sdram0: Rev = 0, Total Memsize = 32 MB
siba0: <IEEE 802.11> at device 5 (no driver attached)
siba0: <Roboswitch> at device 6 (no driver attached)
Timecounter "MIPS32" frequency 120000000 Hz quality 800
Timecounters tick every 10.000 msec
bootpc_init: wired to interface 'bfe0'
Sending DHCP Discover packet from interface bfe0 (00:1b:11:31:df:0a)
usbus1: 480Mbps High Speed USB v2.0
usbus0: 12Mbps Full Speed USB v1.0
ugen1.1: <Broadcom> at usbus1
uhub0: <Broadcom EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <Broadcom> at usbus0
uhub1: <Broadcom OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
Received DHCP Offer packet on bfe0 from 0.0.0.0 (accepted) (no root path)
uhub1: 2 ports with 2 removable, self powered
mtd/rootfs.ulzma: 163 x 65536 blocks
uhub0: 2 ports with 2 removable, self powered
ugen1.2: <Kingston> at usbus1
Sending DHCP Request packet from interface bfe0 (00:1b:11:31:df:0a)
Received DHCP k packet on bfe0 from 0.0.0.0 (accepted) (got root path)
bfe0 at 192.168.0.97 server 0.0.0.0
subnet mask 255.255.255.0 router 192.168.0.90 rootfs 192.168.0.90:/usr/1/MIPS_FreeBSD/HEAD/mount 
Adjusted interface bfe0
Trying to mount root from nfs:
NFS ROOT: 192.168.0.90:/usr/1/MIPS_FreeBSD/HEAD/mount
warning: no time-of-day clock registered, system time will not be set accurately
warning: no time-of-day clock registered, system time will not be set accurately
Interface bfe0 IP-Address 192.168.0.97 Broadcast 192.168.0.255 
Setting hostuuid: 1990832a-1dd2-11b2-a126-001b1131df0a.
Setting hostid: 0x5f48dd46.
Entropy harvesting: interrupts ethernet point_to_point kickstart.
Starting file system checks:
mount_nfs: can't update /var/db/mounttab for 192.168.0.90:/usr/1/MIPS_FreeBSD/HEAD/mount
Mounting local file systems:.
Setting hostname: freebsd-dir-320.dlink.ua.
Starting Network: lo0 bfe0 vlan0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet 127.0.0.1 netmask 0xff000000 
bfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 00:1b:11:31:df:0a
	inet 192.168.0.97 netmask 0xffffff00 broadcast 192.168.0.255
	media: Ethernet none (100baseTX <full-duplex>)
	status: active
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 00:1b:11:31:df:0a
	inet 192.168.10.92 netmask 0xffffff00 broadcast 192.168.10.255
	media: Ethernet none (100baseTX <full-duplex>)
	status: active
	vlan: 1 parent interface: bfe0
Starting devd.
add net default: gateway 192.168.10.10
Additional routing options: IPv4 gateway=YES.
Creating and/or trimming log files.
Starting syslogd.ELF ldconfig path: /lib /usr/lib /usr/lib/compat
Setting date via ntp.
11 Feb 16:02:18 ntpdate[580]: step time server 213.130.12.2 offset 1265904097.185680 sec
Clearing /tmp (X related).
Updating motd:.
Starting cron.
Starting inetd.
Starting background file system checks in 60 seconds.

Thu Feb 11 16:02:39 UTC 2010

FreeBSD/mips (freebsd-dir-320.dlink.ua) (ttyu0)

login: root
Feb 11 16:02:42 freebsd-dir-320 login: ROOT LOGIN (root) ON ttyu0
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 9.0-CURRENT (BCM5354) #434 r203660M: Wed Feb 10 15:46:47 EET 2010

Welcome to FreeBSD!

Before seeking technical support, please use the following resources:

o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
   for your release first as it's updated frequently.

o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
   along with the mailing lists, can be searched by going to
   http://www.FreeBSD.org/search/.  If the doc distribution has
   been installed, they're also available formatted in /usr/share/doc.

If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list.  If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page.  If you are not familiar with manual pages, type `man man'.

You may also use sysinstall(8) to re-enter the installation and
configuration utility.  Edit /etc/motd to change this login announcement.

# top
last pid:   910;  load averages:  1.08,  0.40,  0.15  up 0+00:01:37    16:02:44
10 processes:  1 running, 9 sleeping

Mem: 4448K Active, 1928K Inact, 6552K Wired, 188K Cache, 4640K Buf, 15M Free
Swap: 


  PID USERNAME  THR PRI N SIZE    RES STATE    TIME   WCPU COMMAND
  909 root        1   8    0  5096K  1196K wait     0:00 13.00% sh
  908 root        1   8    0  7808K  1656K wait     0:00  7.26% login
  905 root        1  -8    0  4172K   820K piperd   0:00  0.54% logger
  843 root        1   8    0  4780K  1276K nanslp   0:00  0.44% cron
  561 root        1   1    0  4492K  1200K select   0:00  0.26% syslogd
  910 root        1  97    0  5552K  1624K RUN      0:00  0.00% top
  904 root        1   8    0  2384K   536K nanslp   0:00  0.00% sleep
  874 root        1  96    0  5064K   940K select   0:00  0.00% inetd
  903 root        1   8    0  5096K   912K wait     0:00  0.00% sh
  392 root        1  96    0  2708K   332K select   0:00  0.00% devd

# 


-- 
Alexandr Rybalko <ray@dlink.ua>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100211181614.ad826569.ray>