From owner-freebsd-embedded@FreeBSD.ORG Mon May 26 11:06:46 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 2A1501065686 for ; Mon, 26 May 2008 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1599D8FC23 for ; Mon, 26 May 2008 11:06:46 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m4QB6jLn064847 for ; Mon, 26 May 2008 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m4QB6jLV064843 for freebsd-embedded@FreeBSD.org; Mon, 26 May 2008 11:06:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 26 May 2008 11:06:45 GMT Message-Id: <200805261106.m4QB6jLV064843@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org 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: Mon, 26 May 2008 11:06:46 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/15876 embedded [picobsd] PicoBSD message of the day problems o misc/28255 embedded [picobsd] picobsd documentation still references old . o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/101228 embedded [nanobsd] [patch] Two more entries for FlashDevice.sub 5 problems total. From owner-freebsd-embedded@FreeBSD.ORG Tue May 27 00:15:52 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 0C991106566B for ; Tue, 27 May 2008 00:15:52 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id B7AE28FC0C for ; Tue, 27 May 2008 00:15:51 +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 715F810F805 for ; Mon, 26 May 2008 19:57:42 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 26 May 2008 19:57:42 -0400 X-Sasl-enc: obgUCNbBgD8yARWjcmBR1N7/CqlB/CbP55cGSL6m7xPx 1211846261 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 C384DA82A for ; Mon, 26 May 2008 19:57:41 -0400 (EDT) Message-ID: <483B4E74.1090902@incunabulum.net> Date: Tue, 27 May 2008 00:57:40 +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="------------070001020009020107060601" Subject: Cross-compiling for embedded FreeBSD using NetBSD pkgsrc 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, 27 May 2008 00:15:52 -0000 This is a multi-part message in MIME format. --------------070001020009020107060601 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Just for a laugh, I decided to try cross-compiling some binaries using NetBSD pkgsrc, for a FreeBSD target. I found I needed to do the following: 1. Build a FreeBSD cross-compiler for the target (in this example, arm): cd /usr/src && make TARGET_ARCH=arm toolchain 2. Grab a pkgsrc-current.tar.gz tarball from a NetBSD FTP mirror [1] 3. Untar it, cd into bootstrap, and as per instructions [2] mkdir -p /var/db/pkgsrc && run ./bootstrap --pkgdb=/var/db/pkgsrc 4. Replace pkgsrc/mk/tools/tools.FreeBSD.mk with the attached file. 4. Add the following to /usr/pkg/etc/mk.conf: %%% USE_CROSS_COMPILE= yes .if defined(USE_CROSS_COMPILE) && !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) USE_DESTDIR= full DEPENDS_TARGET= package-install TOOLDIR= /usr/obj/arm/usr/src/tmp CROSS_DESTDIR= ${TOOLDIR} TARGET_ARCH= arm MACHINE_PLATFORM= FreeBSD-7.0-arm MACHINE_GNU_PLATFORM= arm-unknown-freebsd PKGSRC_COMPILER= gcc USE_PKGSRC_GCC= no USE_NATIVE_GCC= yes .endif # end cross-compilation settings %%% I don't have an arm box to test with at the moment. I found I had to force pkgsrc not to try building its own cross-compiler. This seemed to work for me for a few simple targets - vis, osh -- although stuff with several dependencies didn't build, and not all targets install under the CROSS_DESTDIR correctly. libtool in particular! CROSS_DESTDIR *has* to point to the staging area containing the base system headers/libraries. I didn't do a full world build, so I pointed at the intermediate stage built by "make toolchain" in src. I guess this could be further refined to be attempted on a system image during a NanoBSD session. So it's not completely foolproof, but it's a start. cheers BMS --------------070001020009020107060601 Content-Type: text/plain; name="tools.FreeBSD.mk" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tools.FreeBSD.mk" # $NetBSD: tools.FreeBSD.mk,v 1.31 2007/08/20 11:00:33 joerg Exp $ # # System-supplied tools for the FreeBSD operating system. TOOLS_PLATFORM.[?= [ # shell builtin TOOLS_PLATFORM.awk?= /usr/bin/awk TOOLS_PLATFORM.basename?= /usr/bin/basename TOOLS_PLATFORM.byacc?= /usr/bin/yacc TOOLS_PLATFORM.bzcat?= /usr/bin/bzcat TOOLS_PLATFORM.bzip2?= /usr/bin/bzip2 TOOLS_PLATFORM.cat?= /bin/cat TOOLS_PLATFORM.chgrp?= /usr/bin/chgrp TOOLS_PLATFORM.chmod?= /bin/chmod TOOLS_PLATFORM.chown?= /usr/sbin/chown TOOLS_PLATFORM.cmp?= /usr/bin/cmp TOOLS_PLATFORM.cp?= /bin/cp TOOLS_PLATFORM.csh?= /bin/csh TOOLS_PLATFORM.cut?= /usr/bin/cut TOOLS_PLATFORM.date?= /bin/date TOOLS_PLATFORM.diff?= /usr/bin/diff TOOLS_PLATFORM.diff3?= /usr/bin/diff3 TOOLS_PLATFORM.dirname?= /usr/bin/dirname TOOLS_PLATFORM.echo?= echo # shell builtin TOOLS_PLATFORM.egrep?= /usr/bin/egrep TOOLS_PLATFORM.env?= /usr/bin/env TOOLS_PLATFORM.expr?= /bin/expr TOOLS_PLATFORM.false?= false # shell builtin TOOLS_PLATFORM.fgrep?= /usr/bin/fgrep TOOLS_PLATFORM.file?= /usr/bin/file TOOLS_PLATFORM.find?= /usr/bin/find TOOLS_PLATFORM.flex?= /usr/bin/lex TOOLS_PLATFORM.grep?= /usr/bin/grep TOOLS_PLATFORM.groff?= /usr/bin/groff TOOLS_PLATFORM.gunzip?= /usr/bin/gunzip -f TOOLS_PLATFORM.gzcat?= /usr/bin/gzcat TOOLS_PLATFORM.gzip?= /usr/bin/gzip -nf ${GZIP} TOOLS_PLATFORM.head?= /usr/bin/head TOOLS_PLATFORM.hostname?= /bin/hostname TOOLS_PLATFORM.id?= /usr/bin/id TOOLS_PLATFORM.ident?= /usr/bin/ident .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) TOOLS_PLATFORM.install?= /usr/bin/install .else TOOLS_PLATFORM.install?= ${TOOLDIR}/legacy/usr/bin/install .endif .if exists(/usr/bin/install-info) TOOLS_PLATFORM.install-info?= /usr/bin/install-info .endif TOOLS_PLATFORM.ldconfig?= /sbin/ldconfig TOOLS_PLATFORM.lex?= /usr/bin/lex TOOLS_PLATFORM.ln?= /bin/ln TOOLS_PLATFORM.ls?= /bin/ls TOOLS_PLATFORM.m4?= /usr/bin/m4 TOOLS_PLATFORM.mail?= /usr/bin/mail .if exists(/usr/bin/makeinfo) TOOLS_PLATFORM.makeinfo?= /usr/bin/makeinfo .endif TOOLS_PLATFORM.mkdir?= /bin/mkdir -p TOOLS_PLATFORM.mktemp?= /usr/bin/mktemp TOOLS_PLATFORM.mtree?= /usr/sbin/mtree TOOLS_PLATFORM.mv?= /bin/mv TOOLS_PLATFORM.nice?= /usr/bin/nice TOOLS_PLATFORM.nroff?= /usr/bin/nroff TOOLS_PLATFORM.openssl?= /usr/bin/openssl TOOLS_PLATFORM.patch?= /usr/bin/patch TOOLS_PLATFORM.pax?= /bin/pax TOOLS_PLATFORM.printf?= /usr/bin/printf TOOLS_PLATFORM.pwd?= /bin/pwd .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) TOOLS_PLATFORM.readelf?= /usr/bin/readelf .else TOOLS_PLATFORM.readelf?= ${TOOLDIR}/usr/bin/readelf .endif TOOLS_PLATFORM.rm?= /bin/rm TOOLS_PLATFORM.rmdir?= /bin/rmdir TOOLS_PLATFORM.sdiff?= /usr/bin/sdiff TOOLS_PLATFORM.sed?= /usr/bin/sed TOOLS_PLATFORM.sh?= /bin/sh TOOLS_PLATFORM.sleep?= /bin/sleep TOOLS_PLATFORM.soelim?= /usr/bin/soelim TOOLS_PLATFORM.sort?= /usr/bin/sort .if empty(USE_CROSS_COMPILE:M[yY][eE][sS]) TOOLS_PLATFORM.strip?= /usr/bin/strip .else TOOLS_PLATFORM.strip?= ${TOOLDIR}/usr/bin/strip .endif TOOLS_PLATFORM.tail?= /usr/bin/tail TOOLS_PLATFORM.tar?= /usr/bin/tar TOOLS_PLATFORM.tbl?= /usr/bin/tbl TOOLS_PLATFORM.tee?= /usr/bin/tee TOOLS_PLATFORM.test?= test # shell builtin TOOLS_PLATFORM.touch?= /usr/bin/touch TOOLS_PLATFORM.tr?= /usr/bin/tr TOOLS_PLATFORM.true?= true # shell builtin TOOLS_PLATFORM.tsort?= /usr/bin/tsort TOOLS_PLATFORM.wc?= /usr/bin/wc TOOLS_PLATFORM.xargs?= /usr/bin/xargs TOOLS_PLATFORM.yacc?= /usr/bin/yacc .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) . for _t_ in ar as ld nm objdump ranlib readelf strip TOOLS_PATH.${MACHINE_GNU_PLATFORM}-${_t_}?= ${TOOLDIR}/usr/bin/${_t_} TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-${_t_} . endfor TOOLS_PATH.ar?= ${TOOLDIR}/usr/bin/ar TOOLS_CREATE+= ar TOOLS_PATH.ranlib?= ${TOOLDIR}/usr/bin/ranlib TOOLS_CREATE+= ranlib TOOLS_PATH.${MACHINE_GNU_PLATFORM}-gcc?= ${TOOLDIR}/usr/bin/gcc TOOLS_CREATE+= ${MACHINE_GNU_PLATFORM}-gcc NATIVE_CC:= /usr/bin/cc #CC= ${TOOLDIR}/usr/bin/gcc CC= ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-gcc # XXX .endif --------------070001020009020107060601-- From owner-freebsd-embedded@FreeBSD.ORG Tue May 27 01:46:35 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 105B51065686 for ; Tue, 27 May 2008 01:46:35 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id BE9028FC1F for ; Tue, 27 May 2008 01:46:34 +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 2C2B7110AD3 for ; Mon, 26 May 2008 21:46:34 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 26 May 2008 21:46:34 -0400 X-Sasl-enc: 8/qdHBB3boIR2JX2wAhJorTklm74bTjk7DIRFce2Az5o 1211852793 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 650B2E086 for ; Mon, 26 May 2008 21:46:33 -0400 (EDT) Message-ID: <483B67F8.2040802@incunabulum.net> Date: Tue, 27 May 2008 02:46:32 +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="------------040209090909040205000200" Subject: Freecom FSG-3 Storage Gateway 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, 27 May 2008 01:46:35 -0000 This is a multi-part message in MIME format. --------------040209090909040205000200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, It looks as though most, but not all, of the low level board support needed for this device was done for AVILA (thanks guys!). Here I attach configs for those who wish to try. I haven't tried booting this yet, a kernel builds OK using KERNCONF=FSG3 and 7.0-RELEASE sources. The main issue is going to be the IXP's NPE queues. The PHY indexes used are different on the FSG3 and it's not immediately obvious to me how to reprogram those PHY indexes in the IXP. There are a couple of devices such as the real-time clock which live on the I2C bus which would need small drivers written. There is an Ethernet switch ASIC which probably hangs off the GPIO pins. A pending Linux git import with the FSG stuff is here: http://www.linux.org.uk/pub/armlinux/source/kernel-patches/git-cur/arm:devel.diff cheers BMS --------------040209090909040205000200 Content-Type: text/plain; name="FSG3" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="FSG3" # FSG3 -- Freecom FSG-3 Storage Gateway # kernel configuration file for FreeBSD/arm # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD$ # TODO: NPE PHY remapping. # TODO: RedBoot support. # TODO: Gettign the ethernet addresses out of the RedBoot config area. # TODO: Missing a driver for the RTL8305SB switch ASIC onboard. # TODO: Intel NOR flash (probably already hadnled by IXP BSP) # TODO: GPIO LEDs (could be same as AVILA; check Linux BSP.) # TODO: Winbond W83782G hardware monitoring chip at iic0. # TODO: Intersil ISL1208 RTC+SRAM chip at iic0. Not a drop-in for ds1672. machine arm ident FSG3 options PHYSADDR=0x10000000 options KERNPHYSADDR=0x10200000 options KERNVIRTADDR=0xc0200000 # Used in ldscript.arm options FLASHADDR=0x50000000 options LOADERRAMADDR=0x00000000 options STARTUP_PAGETABLE_ADDR=0x10000000 # XXX Currently this file depends on the IXP425 specific # BSP stuff in the avila_machdep.c file. # That will have to change however... include "../xscale/ixp425/std.avila" #To statically compile in device wiring instead of /boot/device.hints hints "FSG3.hints" makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions CONF_CFLAGS=-mcpu=xscale options HZ=100 options DEVICE_POLLING options KDB options DDB #Enable the kernel debugger #options GDB #options INVARIANTS #Enable calls of extra sanity checking #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed #options DIAGNOSTIC options SCHED_4BSD #4BSD scheduler options KSE options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options NFSCLIENT #Network Filesystem Client options NFSSERVER #Network Filesystem Server options NFS_ROOT #NFS usable as /, requires NFSCLIENT options CD9660 #ISO 9660 Filesystem options PSEUDOFS #Pseudo-filesystem framework options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev # XXX notyet, we need a working NPE mapping first. #options BOOTP #options BOOTP_NFSROOT #options BOOTP_NFSV3 #options BOOTP_WIRED_TO=npe0 #options BOOTP_COMPAT options VERBOSE_SYSINIT device genclock device nexus device mem # Memory and kernel memory devices device md device random device pci device uart # I2C Bus device iicbus device iicbb device iic device ixpiic device ixpwdog # watchdog timer device ata device atadisk # ATA disk drives device npe # Network Processing Engine device npe_fw device firmware device qmgr # Q Manager (required by npe) device miibus # NB: required by npe device ether device bpf device pty device loop options XSCALE_CACHE_READ_WRITE_ALLOCATE #options ARM_USE_SMALL_ALLOC device usb options USB_DEBUG device uhci device ohci device ehci --------------040209090909040205000200 Content-Type: text/plain; name="FSG3.hints" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="FSG3.hints" # $FreeBSD$ # # Device wiring for the Freecom FSG-3 Storage Gateway. # # 64MB SDRAM onboard. # # DBGU is unit 0 # XXX This looks correct (against uncommitted Linux changes). hint.uart.0.at="ixp0" hint.uart.0.addr=0xc8000000 hint.uart.0.irq=15 hint.uart.0.flags=0x10 # USART0 is unit 1 hint.uart.1.at="ixp0" hint.uart.1.addr=0xc8001000 hint.uart.1.irq=13 # NPE Hardware Queue Manager hint.ixpqmgr.0.at="ixp0" # XXX Do NOT attach these yet. The FSG3 has a totally # different NPE port mapping from the IXDP425 or Coyote. # See Linux 2.6 fsg-setup.c for more info (still pending in git). # ... on further reading, we just need to be able to tie # down the PHY numbers for each port. # Port 0 is PHY 5; Port 1 is on PHY 4. # Also, we need to dike out the Ethernet addresses from # the Redboot config area in flash. # #hint.npe.0.at="ixp0" #hint.npe.1.at="ixp0" --------------040209090909040205000200-- From owner-freebsd-embedded@FreeBSD.ORG Tue May 27 02:25:38 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 C25A6106566B for ; Tue, 27 May 2008 02:25:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 58D4C8FC1E for ; Tue, 27 May 2008 02:25:38 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m4R2MRsX083825; Mon, 26 May 2008 20:22:27 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 26 May 2008 20:23:54 -0600 (MDT) Message-Id: <20080526.202354.-432807500.imp@bsdimp.com> To: bms@incunabulum.net From: "M. Warner Losh" In-Reply-To: <483B4E74.1090902@incunabulum.net> References: <483B4E74.1090902@incunabulum.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: Cross-compiling for embedded FreeBSD using NetBSD pkgsrc 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, 27 May 2008 02:25:38 -0000 In message: <483B4E74.1090902@incunabulum.net> Bruce M Simpson writes: : CROSS_DESTDIR *has* to point to the staging area containing the base : system headers/libraries. I didn't do a full world build, so I pointed : at the intermediate stage built by "make toolchain" in src. I don't suppose you tried to install the 'real' cross building binaries and symlinks? It is called 'xdev'. However, looking more closely, it appears that I never committed it to head. I'll do that now. It is only in the perforce branch for arm development.... Warner From owner-freebsd-embedded@FreeBSD.ORG Tue May 27 20:19:20 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 7FF7B106566B for ; Tue, 27 May 2008 20:19:20 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3E93C8FC15 for ; Tue, 27 May 2008 20:19:20 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 6275311014A for ; Tue, 27 May 2008 16:19:19 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 27 May 2008 16:19:19 -0400 X-Sasl-enc: oVa44ddoVOUrqa/Q1TuPjPZLd6uUjEMaJu8OnfwVakdI 1211919558 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 B1AEF33379 for ; Tue, 27 May 2008 16:19:18 -0400 (EDT) Message-ID: <483C6CC5.9010005@incunabulum.net> Date: Tue, 27 May 2008 21:19:17 +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="------------090704040108040306090501" Subject: Linksys NSLU2 attempt 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, 27 May 2008 20:19:20 -0000 This is a multi-part message in MIME format. --------------090704040108040306090501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I tried booting a FreeBSD/arm kernel (from 7.0-RELEASE sources) on a friend's NSLU2. We appear to have drivers for everything except the Intersil X1205 real-time clock on iic0. No dice yet. Configs attached. The RedBoot implementation on this board is somewhat cut down. "ip_address -b" and "fconfig" commands are not supported, so assigning an IP has to be done manually. IP addresses therefore need manual config, I suggest putting an alias of 192.168.0.2/24 on your development machine. Also, the ROM+RAM build is in use, so RedBoot will relocate itself into low memory on boot. RedBoot wants ELF kernels, it doesn't need the kernel.bin magic from the ldscript: RedBoot> load -h 192.168.0.2 /kernel.bin Using default protocol (TFTP) Unrecognized image type: 0xe28f7028 It also needs to be told that the ELF kernel it is loading needs to be loaded at a physical address: RedBoot> load -h 192.168.0.2 /kernel Using default protocol (TFTP) *** Abort! Attempt to load ELF data to address: 0xc02000b4 which is not in RAM RedBoot> load -h 192.168.0.2 -b 0x00200000 /kernel Using default protocol (TFTP) Address offset = 0x40000000 Entry point: 0x00200100, address range: 0x00200000-0x004e7c98 Try running: RedBoot> exec Using base address 0x00200000 and length 0x002e7c98 ..And off into space it goes. Nothing further. I have no ARM experience so I have no idea where to begin. "exec" turns off the MMU before entry. --------------090704040108040306090501 Content-Type: text/plain; name="NSLU2" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="NSLU2" # NSLU2 -- Linksys NSLU-2 Network Storage Link for USB 2.0 Disk Drives # kernel configuration file for FreeBSD/arm # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD$ # TODO: RedBoot support. # TODO: Getting the ethernet addresses out of the RedBoot config area. # TODO: RTL8201CP PHY driver. # TODO: Intel NOR flash (probably already handled by IXP BSP) # TODO: GPIO LEDs (4 of them; plus power LED, power switch, reset switch, # and buzzer) see include/asm-arm/arch-ixp4xx/nslu2.h in Linux 2.6 # for GPIO pin assignments. # XXX The PCI controller's IRQ lines most likely need remapping # on this platform. # TODO: Intersil X1205 RTC+SRAM chip at iic0. # Linux patch at: http://lwn.net/Articles/189262/ machine arm ident NSLU2 options PHYSADDR=0x00000000 # RedBoot @ 0x01ff3000? options KERNPHYSADDR=0x00200000 # 2MB in options KERNVIRTADDR=0xc0200000 # Used in ldscript.arm # XXX We won't run off flash just yet, and we need to do whatever # is needed for RedBoot. #options FLASHADDR=0x50000000 # 64 blocks 0x20000 each #options LOADERRAMADDR=0x00000000 options STARTUP_PAGETABLE_ADDR=0x00000000 # XXX Currently this file depends on the IXP425 specific # BSP stuff in the avila_machdep.c file. # That will have to change however... include "../xscale/ixp425/std.avila" #To statically compile in device wiring instead of /boot/device.hints hints "NSLU2.hints" makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions CONF_CFLAGS=-mcpu=xscale options HZ=100 options DEVICE_POLLING options KDB options DDB #Enable the kernel debugger #options GDB #options INVARIANTS #Enable calls of extra sanity checking #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed #options DIAGNOSTIC options SCHED_4BSD #4BSD scheduler options KSE options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options NFSCLIENT #Network Filesystem Client options NFSSERVER #Network Filesystem Server options NFS_ROOT #NFS usable as /, requires NFSCLIENT options CD9660 #ISO 9660 Filesystem options PSEUDOFS #Pseudo-filesystem framework options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options BOOTP options BOOTP_NFSROOT options BOOTP_NFSV3 options BOOTP_WIRED_TO=npe0 options BOOTP_COMPAT options VERBOSE_SYSINIT device genclock device nexus device mem # Memory and kernel memory devices device md device random device pci device uart # I2C Bus device iicbus device iicbb device iic device ixpiic device ixpwdog # watchdog timer device npe # Network Processing Engine device npe_fw device firmware device qmgr # Q Manager (required by npe) device miibus # NB: required by npe device ether device bpf device pty device loop options XSCALE_CACHE_READ_WRITE_ALLOCATE #options ARM_USE_SMALL_ALLOC # Onboard USB provided by 1x NEC uPD720101 in FBGA form factor on pci0. device usb options USB_DEBUG device ohci device ehci --------------090704040108040306090501 Content-Type: text/plain; name="NSLU2.hints" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="NSLU2.hints" # $FreeBSD$ # # Device wiring for the Linksys NSLU2. # # 32MB SDRAM onboard. # # DBGU is unit 0 hint.uart.0.at="ixp0" hint.uart.0.addr=0xc8000000 hint.uart.0.irq=15 hint.uart.0.flags=0x10 # USART0 is unit 1 hint.uart.1.at="ixp0" hint.uart.1.addr=0xc8001000 hint.uart.1.irq=13 # NPE Hardware Queue Manager hint.ixpqmgr.0.at="ixp0" # Only NPE-B at PHY 0 is attached on the NSLU2. hint.npe.0.at="ixp0" --------------090704040108040306090501-- From owner-freebsd-embedded@FreeBSD.ORG Tue May 27 20:43:10 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 4E778106564A for ; Tue, 27 May 2008 20:43:10 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id D2CF58FC0A for ; Tue, 27 May 2008 20:43:09 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m4RKe0bp009532; Tue, 27 May 2008 14:40:00 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 27 May 2008 14:41:29 -0600 (MDT) Message-Id: <20080527.144129.-1962638113.imp@bsdimp.com> To: bms@incunabulum.net From: "M. Warner Losh" In-Reply-To: <483C6CC5.9010005@incunabulum.net> References: <483C6CC5.9010005@incunabulum.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: Linksys NSLU2 attempt 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, 27 May 2008 20:43:10 -0000 The configs that I have in my p4 tree work on NSLU2. However, I've not committed them because they are also taking a stab at cleaning up the std.* and files.* stuff. It boots and works well enough to build world over NFS... Warner From owner-freebsd-embedded@FreeBSD.ORG Wed May 28 04:40:37 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 3EA5E106564A for ; Wed, 28 May 2008 04:40:37 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF8F8FC0A for ; Wed, 28 May 2008 04:40:36 +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 537C8E4C01; Wed, 28 May 2008 00:40:36 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 28 May 2008 00:40:36 -0400 X-Sasl-enc: pdnPd+NUatAQwAe6dbOgtt1n8WD5QwdlAhjbDPNL1oWX 1211949636 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 C9E4A12ACA; Wed, 28 May 2008 00:40:35 -0400 (EDT) Message-ID: <483CE242.3080500@incunabulum.net> Date: Wed, 28 May 2008 05:40:34 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: "M. Warner Losh" References: <483C6CC5.9010005@incunabulum.net> <20080527.144129.-1962638113.imp@bsdimp.com> In-Reply-To: <20080527.144129.-1962638113.imp@bsdimp.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@freebsd.org Subject: Re: Linksys NSLU2 attempt 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: Wed, 28 May 2008 04:40:37 -0000 M. Warner Losh wrote: > The configs that I have in my p4 tree work on NSLU2. However, I've > not committed them because they are also taking a stab at cleaning up > the std.* and files.* stuff. It boots and works well enough to build > world over NFS... > Can you point at this stuff? I had a look in freebsd-imp and arm but didn't see anything that jumped out at me. It would be very cool to get stuff up on this NSLU2 because then I can start to think about things like MTD, flash, etc. From owner-freebsd-embedded@FreeBSD.ORG Wed May 28 14:08:27 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 4E6E3106568F for ; Wed, 28 May 2008 14:08:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id EFCFC8FC0A for ; Wed, 28 May 2008 14:08:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m4SE4CEN027457; Wed, 28 May 2008 08:04:12 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 28 May 2008 08:05:42 -0600 (MDT) Message-Id: <20080528.080542.-1749738850.imp@bsdimp.com> To: bms@incunabulum.net From: "M. Warner Losh" In-Reply-To: <483CE242.3080500@incunabulum.net> References: <483C6CC5.9010005@incunabulum.net> <20080527.144129.-1962638113.imp@bsdimp.com> <483CE242.3080500@incunabulum.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: Linksys NSLU2 attempt 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: Wed, 28 May 2008 14:08:27 -0000 In message: <483CE242.3080500@incunabulum.net> Bruce M Simpson writes: : M. Warner Losh wrote: : > The configs that I have in my p4 tree work on NSLU2. However, I've : > not committed them because they are also taking a stab at cleaning up : > the std.* and files.* stuff. It boots and works well enough to build : > world over NFS... : > : : Can you point at this stuff? I had a look in freebsd-imp and arm but : didn't see anything that jumped out at me. Right, they are in the p4 tree on my laptop right now... : It would be very cool to get stuff up on this NSLU2 because then I can : start to think about things like MTD, flash, etc. MTD and flash are the same thing. And we have a driver for them in the tree now, but I've not tried to write a bridge drive for the xscale. Warner From owner-freebsd-embedded@FreeBSD.ORG Wed May 28 15:08:29 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 EF99A1065678 for ; Wed, 28 May 2008 15:08:29 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id C1BBC8FC22 for ; Wed, 28 May 2008 15:08:29 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 0389610F6AD; Wed, 28 May 2008 11:08:29 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 28 May 2008 11:08:29 -0400 X-Sasl-enc: SzGlTDCulusTvMUdbdweRHGqF2m65zVHkwDZXCfvaqOE 1211987308 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 37A9B2A0D; Wed, 28 May 2008 11:08:28 -0400 (EDT) Message-ID: <483D756B.50403@incunabulum.net> Date: Wed, 28 May 2008 16:08:27 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: "M. Warner Losh" References: <483C6CC5.9010005@incunabulum.net> <20080527.144129.-1962638113.imp@bsdimp.com> <483CE242.3080500@incunabulum.net> <20080528.080542.-1749738850.imp@bsdimp.com> In-Reply-To: <20080528.080542.-1749738850.imp@bsdimp.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: Linksys NSLU2 attempt 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: Wed, 28 May 2008 15:08:30 -0000 M. Warner Losh wrote: > : Can you point at this stuff? I had a look in freebsd-imp and arm but > : didn't see anything that jumped out at me. > > Right, they are in the p4 tree on my laptop right now... > Care to share? :-) > : It would be very cool to get stuff up on this NSLU2 because then I can > : start to think about things like MTD, flash, etc. > > MTD and flash are the same thing. And we have a driver for them in > the tree now, but I've not tried to write a bridge drive for the > xscale. > I see there are already some drivers for low level access to the whole flash device. The distinction: I was referring to the Linux model for flash partitioning; I'm thinking GEOM is the way to go here. It would be good to have MTD support so FreeBSD can be dropped on top of existing devices which have supported Linux. From owner-freebsd-embedded@FreeBSD.ORG Wed May 28 15:16:32 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 5A5481065681 for ; Wed, 28 May 2008 15:16:32 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1BD9E8FC12 for ; Wed, 28 May 2008 15:16:32 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m4SFFWgw028524; Wed, 28 May 2008 09:15:32 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 28 May 2008 09:17:03 -0600 (MDT) Message-Id: <20080528.091703.514334694.imp@bsdimp.com> To: bms@incunabulum.net From: "M. Warner Losh" In-Reply-To: <483D756B.50403@incunabulum.net> References: <483CE242.3080500@incunabulum.net> <20080528.080542.-1749738850.imp@bsdimp.com> <483D756B.50403@incunabulum.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: Linksys NSLU2 attempt 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: Wed, 28 May 2008 15:16:32 -0000 In message: <483D756B.50403@incunabulum.net> Bruce M Simpson writes: : M. Warner Losh wrote: : > : Can you point at this stuff? I had a look in freebsd-imp and arm but : > : didn't see anything that jumped out at me. : > : > Right, they are in the p4 tree on my laptop right now... : > : : Care to share? :-) Sure... lemme generate some diffs... : > : It would be very cool to get stuff up on this NSLU2 because then I can : > : start to think about things like MTD, flash, etc. : > : > MTD and flash are the same thing. And we have a driver for them in : > the tree now, but I've not tried to write a bridge drive for the : > xscale. : > : : I see there are already some drivers for low level access to the whole : flash device. : : The distinction: I was referring to the Linux model for flash : partitioning; I'm thinking GEOM is the way to go here. It would be good : to have MTD support so FreeBSD can be dropped on top of existing devices : which have supported Linux. Definitely... Warner From owner-freebsd-embedded@FreeBSD.ORG Sat May 31 09:44:23 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 1C3CB1065673 for ; Sat, 31 May 2008 09:44:23 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id D3F978FC15 for ; Sat, 31 May 2008 09:44:22 +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 33CAD1119D5; Sat, 31 May 2008 05:44:22 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Sat, 31 May 2008 05:44:22 -0400 X-Sasl-enc: 9HxLwaf3mrvBRxkQlr1EFKZwfoPmQotlbe08WTnx2XFd 1212227061 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 7939A33730; Sat, 31 May 2008 05:44:21 -0400 (EDT) Message-ID: <48411DF4.8050803@incunabulum.net> Date: Sat, 31 May 2008 10:44:20 +0100 From: Bruce M Simpson User-Agent: Thunderbird 2.0.0.14 (X11/20080514) MIME-Version: 1.0 To: "M. Warner Losh" References: <483CE242.3080500@incunabulum.net> <20080528.080542.-1749738850.imp@bsdimp.com> <483D756B.50403@incunabulum.net> <20080528.091703.514334694.imp@bsdimp.com> In-Reply-To: <20080528.091703.514334694.imp@bsdimp.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: Linksys NSLU2 attempt 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: Sat, 31 May 2008 09:44:23 -0000 M. Warner Losh wrote: > Sure... lemme generate some diffs... > Thanks!! I guess the next challenge is to get the USB controller working. I found that npe1 is connected to the Realtek PHY. However it doesn't appear to learn its MAC address; and I don't see any BOOTP from it (perhaps the zeroes confuse the microcode). %%% db> show msgbuf msgbufp = 0xc00f8fe4 magic = 63062, size = 65508, r= 0, w = 4927, ptr = 0xc00e9000, cksum= 407657 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 7.0-RELEASE-p1 #9: Sat May 31 10:28:21 BST 2008 bms@anglepoise.lon.incunabulum.net:/home/obj/arm/usr/src/sys/NSLU2 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 = 33554432 (32 MB) avail memory = 26800128 (25 MB) ixp0: on motherboard pcib0: on ixp0 pci0: on pcib0 ohci0: irq 28 at device 1.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0 usb_allocmem: large alloc 256 usb_allocmem: large alloc 4096 usbd_match usbd_match usb0: on ohci0 usbd_attach usb0: USB revision 1.0 usbd_new_device bus=0xc09fe000 port=0 depth=0 speed=2 usbd_setup_pipe: dev=0xc0a03580 iface=0 ep=0xc0a035a4 pipe=0xc0a03584 usbd_get_desc: type=1, index=0, len=8 usbd_new_device: adding unit addr=1, rev=00, class=0, subclass=0, protocol=0, maxpacket=0, len=0, speed=2 usbd_new_device: illegal descriptor 0 usbd_remove_device: 0xc0a03580 usbd_ar_pipe: pipe=0xc0a03500 usb0: root hub problem, error=4 ohci1: irq 27 at device 1.1 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0 usb_allocmem: large alloc 256 usb_allocmem: large alloc 4096 usbd_match usbd_match usb1: on ohci1 usbd_attach usb1: USB revision 1.0 usbd_new_device bus=0xc0a0b000 port=0 depth=0 speed=2 usbd_setup_pipe: dev=0xc0a03080 iface=0 ep=0xc0a030a4 pipe=0xc0a03084 usbd_get_desc: type=1, index=0, len=8 usbd_new_device: adding unit addr=1, rev=00, class=0, subclass=0, protocol=0, maxpacket=0, len=0, speed=2 usbd_new_device: illegal descriptor 0 usbd_remove_device: 0xc0a03080 usbd_ar_pipe: pipe=0xc0a03000 usb1: root hub problem, error=4 ehci0: irq 26 at device 1.2 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb2: EHCI version 1.0 usb2: companion controllers, 3 ports each: usb0 usb1 usb_allocmem: large alloc 4096 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usb_allocmem: large alloc 4032 usbd_match usbd_match usb2: on ehci0 usbd_attach usb2: USB revision 2.0 usbd_new_device bus=0xc09ea800 port=0 depth=0 speed=3 usbd_setup_pipe: dev=0xc09ee480 iface=0 ep=0xc09ee4a4 pipe=0xc09ee484 usbd_get_desc: type=1, index=0, len=8 usbd_new_device: adding unit addr=1, rev=00, class=0, subclass=0, protocol=0, maxpacket=64, len=0, speed=3 usbd_new_device: illegal descriptor 0 usbd_remove_device: 0xc09ee480 usbd_ar_pipe: pipe=0xc09eee80 usb2: root hub problem, error=4 ixpclk0: on ixp0 ixpiic0: on ixp0 iicbb0: on ixpiic0 iicbus0: on iicbb0 master-only iicbus0: at addr 0 iic0: on iicbus0 uart0: on ixp0 uart0: [FILTER] uart0: console (115200,n,8,1) uart1: on ixp0 uart1: [FILTER] ixpqmgr0: on ixp0 ixpqmgr0: [ITHREAD] npe0: on ixp0 npe0: [ITHREAD] npe0: remember to fix rx q setup npe0: Cannot find my PHY. device_attach: npe0 attach returned 6 npe1: on ixp0 npe1: [ITHREAD] npe1: remember to fix rx q setup miibus0: on npe1 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ixpclk0: [FILTER] Timecounter "IXP425 Timer" frequency 66666600 Hz quality 1000 Timecounters tick every 10.000 msec usb_event_thread: start usb_task_thread: start taskq usbtask-hc usb_task_thread: start taskq usbtask-dr usb_event_thread: start usb_event_thread: start Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0a ? List valid disk boot devices Abort manual input mountroot> %%% From owner-freebsd-embedded@FreeBSD.ORG Sat May 31 14:16:07 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 142DB1065685 for ; Sat, 31 May 2008 14:16:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id AA49D8FC18 for ; Sat, 31 May 2008 14:16:06 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m4VEEcqM002240; Sat, 31 May 2008 08:14:38 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 31 May 2008 08:16:13 -0600 (MDT) Message-Id: <20080531.081613.744564906.imp@bsdimp.com> To: bms@incunabulum.net From: "M. Warner Losh" In-Reply-To: <48411DF4.8050803@incunabulum.net> References: <483D756B.50403@incunabulum.net> <20080528.091703.514334694.imp@bsdimp.com> <48411DF4.8050803@incunabulum.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-embedded@FreeBSD.org Subject: Re: Linksys NSLU2 attempt 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: Sat, 31 May 2008 14:16:07 -0000 In message: <48411DF4.8050803@incunabulum.net> Bruce M Simpson writes: : M. Warner Losh wrote: : > Sure... lemme generate some diffs... : > : : Thanks!! : : I guess the next challenge is to get the USB controller working. usb was working for me when i tried it... : I found that npe1 is connected to the Realtek PHY. However it doesn't : appear to learn its MAC address; and I don't see any BOOTP from it : (perhaps the zeroes confuse the microcode). I thought that this was working too... Sam put some generic support in that I don't recall if I ever tested out for 'wiring up' the different npe interfaces to the PHYs... Warner : %%% : db> show msgbuf : msgbufp = 0xc00f8fe4 : magic = 63062, size = 65508, r= 0, w = 4927, ptr = 0xc00e9000, cksum= 407657 : 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 7.0-RELEASE-p1 #9: Sat May 31 10:28:21 BST 2008 : bms@anglepoise.lon.incunabulum.net:/home/obj/arm/usr/src/sys/NSLU2 : 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 = 33554432 (32 MB) : avail memory = 26800128 (25 MB) : ixp0: on motherboard : pcib0: on ixp0 : pci0: on pcib0 : ohci0: irq 28 at device 1.0 on pci0 : ohci0: [GIANT-LOCKED] : ohci0: [ITHREAD] : usb0: OHCI version 1.0 : usb_allocmem: large alloc 256 : usb_allocmem: large alloc 4096 : usbd_match : usbd_match : usb0: on ohci0 : usbd_attach : usb0: USB revision 1.0 : usbd_new_device bus=0xc09fe000 port=0 depth=0 speed=2 : usbd_setup_pipe: dev=0xc0a03580 iface=0 ep=0xc0a035a4 pipe=0xc0a03584 : usbd_get_desc: type=1, index=0, len=8 : usbd_new_device: adding unit addr=1, rev=00, class=0, subclass=0, : protocol=0, maxpacket=0, len=0, speed=2 : usbd_new_device: illegal descriptor 0 : usbd_remove_device: 0xc0a03580 : usbd_ar_pipe: pipe=0xc0a03500 : usb0: root hub problem, error=4 : ohci1: irq 27 at device 1.1 on pci0 : ohci1: [GIANT-LOCKED] : ohci1: [ITHREAD] : usb1: OHCI version 1.0 : usb_allocmem: large alloc 256 : usb_allocmem: large alloc 4096 : usbd_match : usbd_match : usb1: on ohci1 : usbd_attach : usb1: USB revision 1.0 : usbd_new_device bus=0xc0a0b000 port=0 depth=0 speed=2 : usbd_setup_pipe: dev=0xc0a03080 iface=0 ep=0xc0a030a4 pipe=0xc0a03084 : usbd_get_desc: type=1, index=0, len=8 : usbd_new_device: adding unit addr=1, rev=00, class=0, subclass=0, : protocol=0, maxpacket=0, len=0, speed=2 : usbd_new_device: illegal descriptor 0 : usbd_remove_device: 0xc0a03080 : usbd_ar_pipe: pipe=0xc0a03000 : usb1: root hub problem, error=4 : ehci0: irq 26 at device 1.2 on pci0 : ehci0: [GIANT-LOCKED] : ehci0: [ITHREAD] : usb2: EHCI version 1.0 : usb2: companion controllers, 3 ports each: usb0 usb1 : usb_allocmem: large alloc 4096 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usb_allocmem: large alloc 4032 : usbd_match : usbd_match : usb2: on ehci0 : usbd_attach : usb2: USB revision 2.0 : usbd_new_device bus=0xc09ea800 port=0 depth=0 speed=3 : usbd_setup_pipe: dev=0xc09ee480 iface=0 ep=0xc09ee4a4 pipe=0xc09ee484 : usbd_get_desc: type=1, index=0, len=8 : usbd_new_device: adding unit addr=1, rev=00, class=0, subclass=0, : protocol=0, maxpacket=64, len=0, speed=3 : usbd_new_device: illegal descriptor 0 : usbd_remove_device: 0xc09ee480 : usbd_ar_pipe: pipe=0xc09eee80 : usb2: root hub problem, error=4 : ixpclk0: on ixp0 : ixpiic0: on ixp0 : iicbb0: on ixpiic0 : iicbus0: on iicbb0 master-only : iicbus0: at addr 0 : iic0: on iicbus0 : uart0: on ixp0 : uart0: [FILTER] : uart0: console (115200,n,8,1) : uart1: on ixp0 : uart1: [FILTER] : ixpqmgr0: on ixp0 : ixpqmgr0: [ITHREAD] : npe0: on ixp0 : npe0: [ITHREAD] : npe0: remember to fix rx q setup : npe0: Cannot find my PHY. : device_attach: npe0 attach returned 6 : npe1: on ixp0 : npe1: [ITHREAD] : npe1: remember to fix rx q setup : miibus0: on npe1 : rlphy0: PHY 1 on miibus0 : rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto : ixpclk0: [FILTER] : Timecounter "IXP425 Timer" frequency 66666600 Hz quality 1000 : Timecounters tick every 10.000 msec : usb_event_thread: start : usb_task_thread: start taskq usbtask-hc : usb_task_thread: start taskq usbtask-dr : usb_event_thread: start : usb_event_thread: start : : Manual root filesystem specification: : : Mount using filesystem : eg. ufs:/dev/da0a : ? List valid disk boot devices : Abort manual input : : mountroot> : %%% : :