From owner-freebsd-embedded@FreeBSD.ORG Tue Oct 7 04:15:09 2008 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33A9C1065689 for ; Tue, 7 Oct 2008 04:15:09 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id EA9828FC1A for ; Tue, 7 Oct 2008 04:15:08 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 1E4DE178173 for ; Tue, 7 Oct 2008 00:15:08 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 07 Oct 2008 00:15:08 -0400 X-Sasl-enc: pDv7zH4FIgZ+NR2LWzdlaPW9b0xX6uRqKXhPfBqcXXqG 1223352907 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 842E4270D5 for ; Tue, 7 Oct 2008 00:15:07 -0400 (EDT) Message-ID: <48EAE24A.2070205@incunabulum.net> Date: Tue, 07 Oct 2008 05:15:06 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: freebsd-embedded@freebsd.org X-Enigmail-Version: 0.95.6 Content-Type: multipart/mixed; boundary="------------010405070808070703080904" Subject: Freecom FSG3 pc X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 04:15:09 -0000 This is a multi-part message in MIME format. --------------010405070808070703080904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I tried booting a kernel on the FSG3 once again. The board will power from both 5V and 12V supply voltages, this is mostly to deal with driving a PATA drive. The default Redboot config can be rewritten with fconfig -l, which is useful -- it expects to load a Linux zImage style kernel from the first partition, see here: http://www.nslu2-linux.org/wiki/FSG3/FisCmds It is necessary to hold down the config reset button at the back to get Redboot to init the network ports. You need to CTRL-C it to stop it loading a recovery Linux kernel image. Kernel config is mostly as per NSLU2, but with some twists. There is an onboard Via VT6421A SATA/PATA controller, and an NEC EHCI controller, however neither of them appear to probe on the PCI bus. it looks like neither of them are activated by the firmware so they most likely need to have base addresses set up from scratch by the PCI code, something I believe we don't yet support? It appears the PHY on board should be supported by the "rlswitch" driver. I keep getting this even with full miibus compiled in: %%% npe0: on ixp0 npe0: [MPSAFE] npe0: [ITHREAD] npe0: using npe.0.mac=A override npe0: using npe.0.mii=A override npe0: remember to fix rx q setup npe0: using npe.0.phy=5 override npe0: Cannot find my PHY. device_attach: npe0 attach returned 6 npe1: on ixp0 npe1: [MPSAFE] npe1: [ITHREAD] npe1: using npe.1.mac=B override npe1: using npe.1.mii=A override npe1: remember to fix rx q setup npe1: using npe.1.phy=4 override npe1: Cannot find my PHY. device_attach: npe1 attach returned 6 %%% I've tried forcing the PHY numbers to what's in a Linux dmesg (5 and 4 respectively), hints look like this: %%% hint.npe.0.at="ixp0" hint.npe.0.mac="A" hint.npe.0.mii="A" hint.npe.0.phy=5 hint.npe.1.at="ixp0" hint.npe.1.mac="B" hint.npe.1.mii="A" hint.npe.1.phy=4 %%% No joy, even if I switch the PHY numbers around. Which datasheets am I going to have to look at? ... I've attached a boot.log for the curious. cheers BMS --------------010405070808070703080904 Content-Type: text/plain; name="boot.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="boot.log" +Ethernet eth0: MAC address 00:01:db:00:54:d0 IP: 192.168.123.150/255.255.255.0, Gateway: 192.168.123.1 Default server: 0.0.0.0, DNS server IP: 192.168.123.1 RedBoot(tm) bootstrap and debug environment [ROM] Red Hat certified release, version 1.94 - built 11:47:48, Jun 10 2005 Platform: Freecom Storage Gateway (FSG) (XScale) BE Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. RAM: 0x00000000-0x04000000, 0x0001db58-0x03fd0000 available FLASH: 0x50000000 - 0x50400000, 32 blocks of 0x00020000 bytes each. FREECOM ermergency button pressed! == Executing boot script in 5.000 seconds - enter ^C to abort ^C RedBoot> help load Load a file load [-r] [-v] [-d] [-h ] [-m ] [-c ] [-b ] RedBoot> load -h 192.168.123.17 -v -b 0x200000 kernel Using default protocol (TFTP) Address offset = 0x40000000 Entry point: 0x00200100, address range: 0x00200000-0x00423518 RedBoot> go GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2008 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 8.0-CURRENT #9: Tue Oct 7 05:08:49 BST 2008 root@anglepoise.lon.incunabulum.net:/home/obj/nanobsd.testusb/arm/home/bms/svn/head/sys/FSG3 Preloaded elf kernel "elf kernel" at 0xc043a2bc. CPU: IXP425 266MHz rev 1 (ARMv5TE) (XScale core) DC enabled IC enabled WB enabled LABT branch prediction enabled 32KB/32B 32-way Instruction cache 32KB/32B 32-way write-back-locking Data cache real memory = 67108864 (64 MB) Physical memory chunk(s): 0x10544000 - 0x13ec5fff, 60301312 bytes (14722 pages) avail memory = 59650048 (56 MB) ULE: setup cpu 0 firmware: 'npe_fw' version 0: 35900 bytes loaded at 0xc0419b04 random: mem: null: ixp0: on motherboard pcib0: on ixp0 pci0: on pcib0 pci0: domain=0, physical bus=0 ixpclk0: on ixp0 ixpiic0: on ixp0 iicbb0: on ixpiic0 iicbus0: on iicbb0 master-only iic0: on iicbus0 x1226rtc0: at addr 0x6f on iicbus0 x1226rtc0: registered as a time-of-day clock (resolution 1000us) ixpwdog0: on ixp0 uart0: on ixp0 uart0: [FILTER] uart0: fast interrupt uart0: console (115200,n,8,1) uart1: on ixp0 uart1: [FILTER] uart1: fast interrupt ixpqmgr0: on ixp0 ixpqmgr0: [MPSAFE] ixpqmgr0: [ITHREAD] ixpqmgr0: [MPSAFE] ixpqmgr0: [ITHREAD] npe0: on ixp0 npe0: [MPSAFE] npe0: [ITHREAD] npe0: using npe.0.mac=A override npe0: using npe.0.mii=A override npe0: remember to fix rx q setup npe0: using npe.0.phy=4 override npe0: Cannot find my PHY. device_attach: npe0 attach returned 6 npe1: on ixp0 npe1: [MPSAFE] npe1: [ITHREAD] npe1: using npe.1.mac=B override npe1: using npe.1.mii=A override npe1: remember to fix rx q setup npe1: using npe.1.phy=5 override npe1: Cannot find my PHY. device_attach: npe1 attach returned 6 ixpclk0: [FILTER] Timecounter "IXP425 Timer" frequency 66666600 Hz quality 1000 Timecounters tick every 10.000 msec lo0: bpf attached Trying to mount root from ufs:/dev/da0s1a Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0a ? List valid disk boot devices Abort manual input mountroot> --------------010405070808070703080904--