From owner-freebsd-arm@FreeBSD.ORG Sat May 17 09:18:29 2008 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39222106564A for ; Sat, 17 May 2008 09:18:29 +0000 (UTC) (envelope-from michael@fuckner.net) Received: from dedihh.fuckner.net (dedihh.fuckner.net [81.209.183.161]) by mx1.freebsd.org (Postfix) with ESMTP id CBB928FC16 for ; Sat, 17 May 2008 09:18:28 +0000 (UTC) (envelope-from michael@fuckner.net) Received: from localhost (localhost [127.0.0.1]) by dedihh.fuckner.net (Postfix) with ESMTP id 7FBA461D47; Sat, 17 May 2008 11:18:26 +0200 (CEST) X-Virus-Scanned: amavisd-new at fuckner.net Received: from dedihh.fuckner.net ([127.0.0.1]) by localhost (dedihh.fuckner.net [127.0.0.1]) (amavisd-new, port 10024) with SMTP id rXx-YrFZiTnQ; Sat, 17 May 2008 11:18:20 +0200 (CEST) Received: from x22.rebootking.de (e176167216.adsl.alicedsl.de [85.176.167.216]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by dedihh.fuckner.net (Postfix) with ESMTPSA id 2588B61CE2; Sat, 17 May 2008 11:18:20 +0200 (CEST) Message-ID: <482EA2D2.3020205@fuckner.net> Date: Sat, 17 May 2008 11:18:10 +0200 From: Michael Fuckner User-Agent: Thunderbird 2.0.0.14 (X11/20080503) MIME-Version: 1.0 To: Sam Leffler References: <482A9E8E.5050407@fuckner.net> <482C6504.1010209@freebsd.org> In-Reply-To: <482C6504.1010209@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: Horstbox DVA-G3342SB with FreeBSD X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2008 09:18:29 -0000 Sam Leffler wrote: Hi! >> - where do I get information about the memory regions used in kernel >> configuration >> >> options PHYSADDR=0x10000000 >> options KERNPHYSADDR=0x10200000 >> options KERNVIRTADDR=0xc0200000 # Used in ldscript.arm >> options FLASHADDR=0x50000000 >> options LOADERRAMADDR=0x00000000 > > Not sure what you asking. The memory layout for the board should be > documented by the vendor. Much is standardized by the IXP42xx but > others are board-specific. Many memory locations are defined relative > to the base address of IXP memory boundaries in arm/xscale/ixp*/*.h. > Some bits that have been found to vary between boards are already > settable as hints (e.g. look in AVILA.hints). They sell it as a VoIP-Appliance, designed by Maxina, sold by D-link, so I'm not sure if they are willing to help me. The maxina.de-website seems to be dead. No reply until now. >> pcib0: on ixp0 >> pci0: on pcib0 >> ixppcib: no mapping for 0/12/0 >> ixppcib: no mapping for 0/13/0 >> ixppcib: no mapping for 0/14/0 >> ixppcib: no mapping for 0/14/1 >> ixppcib: no mapping for 0/14/2 > > This indicates the mapping isn't recognized/handled. Not sure if this > is because your hardware is different or the system is reading > information from the wrong memory locations. RedBoot> lspci 0:0:0 Vendor[8086] Device[8500] Type[00] Class[0b4000] BAR0: 00000008 BAR1: 01000008 BAR2: 02000008 BAR3: 03000008 BAR4: 80000008 BAR5: 90000001 0:8:0 Vendor[1033] Device[0035] Type[80] Class[0c0310] 0:8:1 Vendor[1033] Device[0035] Type[00] Class[0c0310] 0:8:2 Vendor[1033] Device[00e0] Type[00] Class[0c0320] 0:9:0 Vendor[1397] Device[2bd0] Type[00] Class[028000] 0:10:0 Vendor[1397] Device[2bd0] Type[00] Class[028000] Does this help? Do I have to put these settings into the hints-file? Right now, booting looks like this: RedBoot> load -b 0x200000 kernel-horst.nfs Using default protocol (TFTP) Address offset = 0x40000000 Entry point: 0x00200100, address range: 0x00200000-0x0054fb28 RedBoot> go 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-STABLE #8: Thu May 15 18:52:49 CEST 2008 root@g33.rebootking.de:/usr/obj/arm/samba/freebsd7-arm/src/sys/HORST CPU: IXP425 533MHz 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) avail memory = 58355712 (55 MB) ixp0: on motherboard pcib0: on ixp0 pci0: on pcib0 ixpclk0: on ixp0 ixpiic0: on ixp0 iicbb0: on ixpiic0 iicbus0: on iicbb0 master-only iicbus0: at addr 0 iic0: on iicbus0 ad74180: at addr 0x50 on iicbus0 ds16720: at addr 0xd0 on iicbus0 ixpwdog0: on ixp0 uart0: on ixp0 uart0: [FILTER] uart0: console (115200,n,8,1) 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 npe1: Ethernet address: 00:03:47:df:32:aa led_avila0: on ixp0 ixpclk0: [FILTER] Timecounter "IXP425 Timer" frequency 66666600 Hz quality 1000 Timecounters tick every 10.000 msec bootpc_init: wired to interface 'npe1' Sending DHCP Discover packet from interface npe1 (00:03:47:df:32:aa) npe1: link state changed to UP 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 Now it looks better, it recognizes the NPE-C-network-card, but it doesn't seem to be usable. And I lost my USB-Chip on the way. SO no ethernet via npe nor my axe-based USB-Stick :( In RedBoot it shows something different: + Trying NPE-B...success. Using NPE-B with PHY 1. Ethernet eth0: MAC address 00:03:47:df:32:a8 IP: 192.168.2.45/255.255.255.0, Gateway: 0.0.0.0 Default server: 192.168.2.64 I think the hints should look like this: hint.npe.0.at="ixp0" hint.npe.0.mac="A" hint.npe.0.mii="A" hint.npe.0.phy=1 I only have a single Ethernet-Interface NPE-B, connected to PHY1, MAC should be ...32:a8 and not ...32:aa. Do I have to generate my own IxNpeMicrocode.dat? Regards, Michael!