From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 15 22:14:37 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C154A32D; Mon, 15 Jul 2013 22:14:37 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x22b.google.com (mail-ee0-x22b.google.com [IPv6:2a00:1450:4013:c00::22b]) by mx1.freebsd.org (Postfix) with ESMTP id 30B8CDE6; Mon, 15 Jul 2013 22:14:37 +0000 (UTC) Received: by mail-ee0-f43.google.com with SMTP id l10so7794985eei.16 for ; Mon, 15 Jul 2013 15:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=U7Kwr0dwmeqz7qwZZGqtb4eFbnF/ykuArLjf7bC3K7A=; b=re6BFvi554PKZrkeG27PlpfO5Jl0eVuEUeid5+U0kM2kCgW2fqaJqbHezjvEXktQQj VRzWlVeEvST/b2A9FeplYOD3uGbeg7hYWnoPi25fR+9L2bpKB19vkLXikvUKcc7C9HtZ lKZvcmsAT5Ui0RXAGHXXOR8UoSIrwRVrG9kQy0f6facTb1DRxDWt9uIE61jQ9BQbrUCM JQUTtl7Xlh6hMtPHwJahAsc0CkdAHDO66OZuOB5hrHWOHA/0p2Z5eFhuPv1JWg4SvICr eeLt07+s8W0Ch13/yP1W95zZusEt4gbmvL9laaAGWlA7XeKkK0QFoNV78TjVeMnCpmuH 6J/A== MIME-Version: 1.0 X-Received: by 10.15.42.72 with SMTP id t48mr60810085eev.105.1373926476384; Mon, 15 Jul 2013 15:14:36 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Mon, 15 Jul 2013 15:14:36 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 15:14:36 -0700 Message-ID: Subject: Re: Making Picostation m2HP work From: hiren panchasara To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: freebsd-embedded X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 22:14:37 -0000 On Mon, Jul 15, 2013 at 1:49 PM, Adrian Chadd wrote: > Right, this is a good start. > > Now: > > * the arswitch didn't attach PHYs, for some reason I think loos@ wanted to look at that. > * arge0/arge1 complained, again for some reason Let's start with this. > * and there's no wifi yet, which we can easily fix. And then this. > > So, which would you like to tackle first? Thanks :-) Hiren > > > > -adrian > > > On 15 July 2013 13:03, hiren panchasara wrote: >> On Mon, Jul 15, 2013 at 12:54 PM, hiren panchasara >> wrote: >>> On Mon, Jul 15, 2013 at 12:19 PM, Adrian Chadd wrote: >>>> ... only one # ? There should be pages of it. >>>> >>>> Once you do a tftpboot, do a printenv . Let's look at what uboot has >>>> set "filesize" to. >>> >>> Agrrh...I am so dumb. kernel.AP91 is empty. Somehow I nuked it. >>> Rebuilding it and retrying. >> >> Alright, it seems to be doing things. This is what I did with Adrian's scripts: >> >> # cd work/freebsd/head/src/ >> # ../build/build/bin/build ap91 buildkernel >> # ../build/build/bin/build ap91 installkernel >> >> And then: >> >> ar7240> tftpboot 0x80050000 kernel.AP91 >> Using eth0 device >> TFTP from server 192.168.1.254; our IP address is 192.168.1.20 >> Filename 'kernel.AP91'. >> Load address: 0x80050000 >> Loading: ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ################################################################# >> ############################################################### >> done >> Bytes transferred = 3647659 (37a8ab hex) >> ar7240> go 80050100 >> ## Starting application at 0x80050100 ... >> CPU platform: Atheros AR7241 rev 1 >> CPU Frequency=390 MHz >> CPU DDR Frequency=390 MHz >> CPU AHB Frequency=195 MHz >> platform frequency: 390000000 >> CPU reference clock: 5 MHz >> arguments: >> a0 = 00000001 >> a1 = 81f4fcbc >> a2 = 00000010 >> a3 = fffffffe >> Cmd line:argv is invalid >> Environment: >> envp is invalid >> Cache info: >> picache_stride = 4096 >> picache_loopcount = 16 >> pdcache_stride = 4096 >> pdcache_loopcount = 8 >> cpu0: MIPS Technologies processor v116.147 >> MMU: Standard TLB, 16 entries >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line >> Config1=0x9ee3519e >> Config3=0x20 >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2013 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 10.0-CURRENT #0 r252757M: Wed Dec 31 16:00:00 PST 1969 >> hirenp@dummy:/usr/home/hirenp/work/freebsd/head/obj/mipseb/mips.mips/usr/home/hirenp/work/freebsd/head/src/sys/AP91 >> mips >> gcc version 4.2.1 20070831 patched [FreeBSD] >> real memory = 16777216 (16384K bytes) >> avail memory = 11968512 (11MB) >> random device not loaded; using insecure entropy >> nexus0: >> nexus0: failed to add child: arge0 >> clock0: on nexus0 >> Timecounter "MIPS32" frequency 195000000 Hz quality 800 >> Event timer "MIPS32" frequency 195000000 Hz quality 800 >> argemdio0: > controller> at mem 0x19000000-0x19000fff on nexus0 >> mdio0: on argemdio0 >> mdioproxy0: on mdio0 >> arswitch0: on mdio0 >> arswitch0: attaching PHY 0 failed >> arswitch0: attaching PHY 1 failed >> arswitch0: attaching PHY 2 failed >> arswitch0: attaching PHY 3 failed >> device_attach: arswitch0 attach returned 6 >> apb0 at irq 4 on nexus0 >> uart0: <16550 or compatible> on apb0 >> uart0: console (115200,n,8,1) >> pcib0 at irq 0 on nexus0 >> pcib0: found EEPROM at 0x1fff1000 on 0.0.0 >> pcib0: EEPROM firmware: 0x1fff1000 @ 4096 bytes >> pcib0: device EEPROM 'pcib.0.bus.0.0.0.eeprom_firmware' registered >> pci0: on pcib0 >> pci0: at device 0.0 (no driver attached) >> arge0: at mem >> 0x19000000-0x19000fff irq 2 on nexus0 >> miiproxy0: on arge0 >> arge0: can't attach proxy >> arge0: finishing attachment, phymask 0010, proxy null >> arge0: unable to attach PHY 4: 6 >> device_attach: arge0 attach returned 6 >> arge1: at mem >> 0x1a000000-0x1a000fff irq 3 on nexus0 >> arge1: finishing attachment, phymask 0000, proxy null >> arge1: Ethernet address: 62:73:64:4e:10:78 >> spi0: at mem 0x1f000000-0x1f00000f on nexus0 >> spibus0: on spi0 >> mx25l0: at cs 0 on spibus0 >> mx25l0: w25q64, sector 65536 bytes, 128 sectors >> ar71xx_wdog0: on nexus0 >> ar71xx_wdog0: Previous reset was due to watchdog timeout >> Timecounters tick every 1.000 msec >> Trying to mount root from ufs:/dev/map/rootfs.uncompress []... >> mountroot: waiting for device /dev/map/rootfs.uncompress ... >> Mounting from ufs:/dev/map/rootfs.uncompress failed with error 19. >> >> Loader variables: >> >> Manual root filesystem specification: >> : [options] >> Mount using filesystem >> and with the specified (optional) option list. >> >> eg. ufs:/dev/da0s1a >> zfs:tank >> cd9660:/dev/acd0 ro >> (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /) >> >> ? List valid disk boot devices >> . Yield 1 second (for background tasks) >> Abort manual input >> >> mountroot> >>> >>> Hiren. >>>> >>>> >>>> >>>> -adrian >>>> >>>