From owner-freebsd-embedded@FreeBSD.ORG Sun Jul 14 19:13:09 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 8F5624D0; Sun, 14 Jul 2013 19:13:09 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x236.google.com (mail-ea0-x236.google.com [IPv6:2a00:1450:4013:c01::236]) by mx1.freebsd.org (Postfix) with ESMTP id 00BF3E66; Sun, 14 Jul 2013 19:13:08 +0000 (UTC) Received: by mail-ea0-f182.google.com with SMTP id d10so7391750eaj.13 for ; Sun, 14 Jul 2013 12:13:08 -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=FwDmnJwsELoXS0+Z3hVUQY6AsM13qvKphBGAIvwY4S4=; b=JXEhTKByH4ODrJykw4e42xEYBoDqYPKEk/medUAp8QxcFwBpnPiKFNPQEaRfnwqn82 9aI32vh56n6NWX/cUouxcZS+YuvSEbv5HBfymx/8hY+lP8Pbeext9y9EbT69dKfcN3SY VG29O/EULc6ryXxqj1CtrV3MA1vjfrj0dh3qcEiRJn5fl5eXAMrbGIua0/IfLqCLneWY dA+E6a4RNG++Lh3pNxiihWfPadjeNDDmUz0/lhLxMvUWQG8oBUndmv3UG4ZoRxuv/8hs p0JQEqxVDqX/XKLUxYZ3loI59ba5x5AU+S2X0z9SLmAftiLYp4Sxtwu0ILIdVIVEHel4 34gA== MIME-Version: 1.0 X-Received: by 10.15.42.129 with SMTP id u1mr55755916eev.116.1373829187998; Sun, 14 Jul 2013 12:13:07 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Sun, 14 Jul 2013 12:13:07 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Jul 2013 12:13:07 -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@freebsd.org 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: Sun, 14 Jul 2013 19:13:09 -0000 On Fri, Jul 12, 2013 at 1:58 PM, Adrian Chadd wrote: > cool. > > So step #1 - what kind of SoC is it (7241) and wifi (ar9280) ? > > The SoC dictates which base config we "copy" when we build the kernel. > > The important bits for these SoCs are: > > * which SoC > * for AR91xx/AR71xx - which ethernet switch and how it's wired up; the > AR933x and AR724x have an internet switch so there's only one config > * how much RAM > * what's the flash layout - important for generating the image and > populating the hints table with the flash layout > > But let's focus on getting a kernel netbooting first.. Build kernel.AP91 with your buildscripts and trying to tftpboot the board with that but getting following errors in /var/log/messages on my tftpserver (my laptop) flymockour-l7 in.tftpd[11247]: tftpd: oack: Host is down - when I do "tftpboot 0x80050000 kernel.AP91" and tftp transfer never gets done (keeps timing out) I am not sure what this means but I will try putting switch in-between my laptop and the board and see if I can make this thing to work. Anybody with some clue what this means? Thanks, Hiren > > > > -adrian > From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 15 11:06:41 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 AA985F3D for ; Mon, 15 Jul 2013 11:06:41 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9A927FB7 for ; Mon, 15 Jul 2013 11:06:41 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6FB6fCL084381 for ; Mon, 15 Jul 2013 11:06:41 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6FB6fGB084379 for freebsd-embedded@FreeBSD.org; Mon, 15 Jul 2013 11:06:41 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Jul 2013 11:06:41 GMT Message-Id: <201307151106.r6FB6fGB084379@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 Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org 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 11:06:41 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/177878 embedded [rtl8366rb] [patch] Update rtl8366rb switch driver to o bin/177873 embedded [patch] etherswitchcfg(): Change the per port vlangrou o bin/177872 embedded [patch] etherswitchcfg(8) crashes if called with no ar o bin/177871 embedded [patch] etherswitchcfg(8): uninitialized variable whil o kern/172968 embedded [arge] probe/attach occasionally fails to find a PHY o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 7 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 15 18:11:00 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DAE003F1; Mon, 15 Jul 2013 18:10:59 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x231.google.com (mail-ee0-x231.google.com [IPv6:2a00:1450:4013:c00::231]) by mx1.freebsd.org (Postfix) with ESMTP id 4E0DCE5A; Mon, 15 Jul 2013 18:10:59 +0000 (UTC) Received: by mail-ee0-f49.google.com with SMTP id b57so7743353eek.22 for ; Mon, 15 Jul 2013 11:10:58 -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=PvuFm+HK1ndICU/wxNVvmS9AH8uJX88T8ai3gk8nhzY=; b=uJl+kJT43dbpmQcDbwhlXu6nU2FIML5HpNIHL9eMX/N+pPgjtVGP1oqC74uEybzT3T njp6qQ2Ed4U1AfV9lGw7BgNN2Gn2nCUpx5ylgG3CYTznGNgQtGjCYe5Qn1h4hZRbNito O5Ilb14ldCHFcKHSr2733ZlVPgCu1SZjj3rvsiDr/iwRQuYJMUCUnVAkhZFc92fwUKrq KY+N/FhB5VSy3xgA0sfe1CsR6Gp/hB8s6N71pB4txLULAicEJNQa1SnZMZaxY/baMkaq A83HShyroZZkFKLj3TZoM2C4rlmDf+urVaxJPq68QRJWIvX3KFLdKHhmYrZhdMndV3DV vZOA== MIME-Version: 1.0 X-Received: by 10.14.69.206 with SMTP id n54mr26111632eed.154.1373911858303; Mon, 15 Jul 2013 11:10:58 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Mon, 15 Jul 2013 11:10:58 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 11:10:58 -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@freebsd.org 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 18:11:00 -0000 On Sun, Jul 14, 2013 at 12:13 PM, hiren panchasara wrote: > On Fri, Jul 12, 2013 at 1:58 PM, Adrian Chadd wrote: >> cool. >> >> So step #1 - what kind of SoC is it (7241) and wifi (ar9280) ? >> >> The SoC dictates which base config we "copy" when we build the kernel. >> >> The important bits for these SoCs are: >> >> * which SoC >> * for AR91xx/AR71xx - which ethernet switch and how it's wired up; the >> AR933x and AR724x have an internet switch so there's only one config >> * how much RAM >> * what's the flash layout - important for generating the image and >> populating the hints table with the flash layout >> >> But let's focus on getting a kernel netbooting first.. > > Build kernel.AP91 with your buildscripts and trying to tftpboot the > board with that but getting following errors in /var/log/messages on > my tftpserver (my laptop) > > flymockour-l7 in.tftpd[11247]: tftpd: oack: Host is down - when I do > "tftpboot 0x80050000 kernel.AP91" and tftp transfer never gets done > (keeps timing out) > > I am not sure what this means but I will try putting switch in-between > my laptop and the board and see if I can make this thing to work. Adrian, Putting a switch between tftpserver and the board worked. (Thanks Rui). ar7240> printenv bootdelay=1 baudrate=115200 ethaddr=00:15:6d:0d:00:00 mtdids=nor0=ar7240-nor0 partition=nor0,0 mtddevnum=0 mtddevname=u-boot filesize=10000 fileaddr=81000000 serverip=192.168.1.254 ethact=eth0 mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),5760k(rootfs),256k(cfg),64k(EEPROM) bootcmd=bootm 0x9f050000 bootargs=console=tty0 root=31:03 rootfstype=squashfs init=/init ipaddr=192.168.1.20 stdin=serial stdout=serial stderr=serial Environment size: 452/65532 bytes 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 ar7240> go 0x80050100 ## Starting application at 0x80050100 ... Its stuck here and not doing anything. What should I look into next? Thanks, Hiren > > Anybody with some clue what this means? > > Thanks, > Hiren >> >> >> >> -adrian >> From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 15 19:19:51 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 F1F5CB81 for ; Mon, 15 Jul 2013 19:19:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x232.google.com (mail-we0-x232.google.com [IPv6:2a00:1450:400c:c03::232]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC81270 for ; Mon, 15 Jul 2013 19:19:50 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id u53so10606876wes.9 for ; Mon, 15 Jul 2013 12:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=eyMaPUHICiw6Wx2TBcOv2ZUf1+FgbmKJQDhPszXHnks=; b=ZDCPocIsk6s4bzQlcMB8c5p89Xn24CnFUA0WKF2hGqoJDvTsbYrdwkn05rPO6XK2LJ NbXOKEGmKatpsHdIVG6xQF+aBOv9FRxtCuLUVa8kog6R/pKuyi1WBMmt2cJL4TCwvU3h xyoANLJt3eZZpB3KsVucPlL4syYzVrelUBRCUcNhijs0dtHcfmWPNyALBFNifoteZyaV rY0hYJRVbTIcF9iFGutZ/C9prF7zTRBx5EHIgb69WHpHflPM8t60WZP7CMf1GLWT2AFS wZj7vVOPobFyRBQNFMpvrSxUig5neos3HEoKZwUMZW+q1sNwDGp8cWC+rn0BlXOoi6Se abCA== MIME-Version: 1.0 X-Received: by 10.194.240.201 with SMTP id wc9mr32906932wjc.1.1373915989568; Mon, 15 Jul 2013 12:19:49 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Mon, 15 Jul 2013 12:19:49 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 12:19:49 -0700 X-Google-Sender-Auth: SL92SGMoB9suX3YbTtl0eNI0GPA Message-ID: Subject: Re: Making Picostation m2HP work From: Adrian Chadd To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org 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 19:19:51 -0000 ... 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. -adrian On 15 July 2013 11:10, hiren panchasara wrote: > On Sun, Jul 14, 2013 at 12:13 PM, hiren panchasara > wrote: >> On Fri, Jul 12, 2013 at 1:58 PM, Adrian Chadd wrote: >>> cool. >>> >>> So step #1 - what kind of SoC is it (7241) and wifi (ar9280) ? >>> >>> The SoC dictates which base config we "copy" when we build the kernel. >>> >>> The important bits for these SoCs are: >>> >>> * which SoC >>> * for AR91xx/AR71xx - which ethernet switch and how it's wired up; the >>> AR933x and AR724x have an internet switch so there's only one config >>> * how much RAM >>> * what's the flash layout - important for generating the image and >>> populating the hints table with the flash layout >>> >>> But let's focus on getting a kernel netbooting first.. >> >> Build kernel.AP91 with your buildscripts and trying to tftpboot the >> board with that but getting following errors in /var/log/messages on >> my tftpserver (my laptop) >> >> flymockour-l7 in.tftpd[11247]: tftpd: oack: Host is down - when I do >> "tftpboot 0x80050000 kernel.AP91" and tftp transfer never gets done >> (keeps timing out) >> >> I am not sure what this means but I will try putting switch in-between >> my laptop and the board and see if I can make this thing to work. > > Adrian, > > Putting a switch between tftpserver and the board worked. (Thanks Rui). > > ar7240> printenv > bootdelay=1 > baudrate=115200 > ethaddr=00:15:6d:0d:00:00 > mtdids=nor0=ar7240-nor0 > partition=nor0,0 > mtddevnum=0 > mtddevname=u-boot > filesize=10000 > fileaddr=81000000 > serverip=192.168.1.254 > ethact=eth0 > mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),5760k(rootfs),256k(cfg),64k(EEPROM) > bootcmd=bootm 0x9f050000 > bootargs=console=tty0 root=31:03 rootfstype=squashfs init=/init > ipaddr=192.168.1.20 > stdin=serial > stdout=serial > stderr=serial > > Environment size: 452/65532 bytes > 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 > ar7240> go 0x80050100 > ## Starting application at 0x80050100 ... > > Its stuck here and not doing anything. What should I look into next? > > Thanks, > Hiren > >> >> Anybody with some clue what this means? >> >> Thanks, >> Hiren >>> >>> >>> >>> -adrian >>> From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 15 19:54:50 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 17160E8A; Mon, 15 Jul 2013 19:54:50 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x229.google.com (mail-ee0-x229.google.com [IPv6:2a00:1450:4013:c00::229]) by mx1.freebsd.org (Postfix) with ESMTP id 7E7387A4; Mon, 15 Jul 2013 19:54:49 +0000 (UTC) Received: by mail-ee0-f41.google.com with SMTP id d17so7858652eek.0 for ; Mon, 15 Jul 2013 12:54:48 -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=FWYP36G55PVdP2lSNbbjXNJzRJ8ONvTxvwDTht2ZkEY=; b=swxzCnH2bIkyisZoY1ABJgJkMioD0tVyFGUB20X5xIyS2xwJkk0M4Fb1FsfTZPmaJm URe74r5n/kgUKBoLAI78uS/9WuqsVeDWadCRHxm5x8OKiw6O91RizRw2BFEHRWVRNCAg l+zSw5gGWodK3EjKU9/llgVrNYhATWatxQPHSVZ8W8xF42TrYxGERtpRsx0FynrwI6FP K6Vsh79HTN3HrQmSBPrmUvv/OPv+xFt14QjOzh2tuKh95u/L9CabfyhMzgzixEcecMD+ d1Q7Ug/DaRvjsduxz0NvEDDXgivSnskn7n8iLsdLGuSOaMM1WIw4qxrw057Oq9uQGJxx 4cYg== MIME-Version: 1.0 X-Received: by 10.14.149.141 with SMTP id x13mr60605046eej.77.1373918088660; Mon, 15 Jul 2013 12:54:48 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Mon, 15 Jul 2013 12:54:48 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 12:54:48 -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 19:54:50 -0000 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. Hiren. > > > > -adrian > From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 15 20:03:25 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 99EB1247; Mon, 15 Jul 2013 20:03:25 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x233.google.com (mail-ee0-x233.google.com [IPv6:2a00:1450:4013:c00::233]) by mx1.freebsd.org (Postfix) with ESMTP id 0B364831; Mon, 15 Jul 2013 20:03:24 +0000 (UTC) Received: by mail-ee0-f51.google.com with SMTP id e52so7802735eek.24 for ; Mon, 15 Jul 2013 13:03:24 -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=mQxZ9uLNyczdm6ZwT2nBFrgL1SyHx95KlAlzFTpPGCo=; b=YjdVZWasEkWRmcM0c8LCONdHUhHhqAUu0oR90xkojibPekVFpExiw8HyLg2hkWKu+B l9ihWDWWlFQTamzsRdrImJeCXQpfKwBWzqe5R30TBjYZ0vo/DrHIL9EFCYLmaGJneXez ItiYvrVVjCCi+DblvTn2wuVjK4zAy4G/RNoqqjRRz5Sb0amRVBfW7JTXOD8iN7j7STbt fj8opWw43akI/kyovVOe0ebxUtA2lz2ozBWw/0SPL7j1jksCDRrfcw3IW/QNP3WfPohO tUsIdKAD6BYIb9SWJAZqlPlKuHXC/1VyMCYZMkpQkrgt+Dghyb74BxjpBcBGDsxazFKY wQvw== MIME-Version: 1.0 X-Received: by 10.14.69.206 with SMTP id n54mr26514980eed.154.1373918604165; Mon, 15 Jul 2013 13:03:24 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Mon, 15 Jul 2013 13:03:24 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 13:03:24 -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 20:03:25 -0000 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: 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 >> > From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 15 20:49:32 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 35468BF5 for ; Mon, 15 Jul 2013 20:49:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) by mx1.freebsd.org (Postfix) with ESMTP id C221E9EC for ; Mon, 15 Jul 2013 20:49:31 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id j13so10571638wgh.0 for ; Mon, 15 Jul 2013 13:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=oF1VRoY+Pq/FAJBn3iAeN1po55xqQZ5rExxA5MbOVX4=; b=pO2aDPNKCEh7jCklWh2JBJflr/a0ZjTbjR1cUKxNsAaNe/hjb57CNl/9CjHcoEbhyO 4SR1aqfeIyRdHjhdir8tTyqcAHHqhmLrIT21qvUOD0tFVE47x70TCkMO4UEQjM3k0XBP JRrgSvJAFJvkTmLVw/e86HOPTrx03gX039LSApF9rXb3eVrW1WHhp23nLjkOvG/JTGoK bwaMnuCH13d+BhpbAR0edyZks7be7IcTD+hjhDF+dMjJ6J32v5fsI5yqNV/K5X75Ph2A Jb1d4t764XcB67UXixU6n6kjDsjxpb4suOx5tOSPLjnYFM8gsdPvpRgZv02MFdt3CTKA k7Qw== MIME-Version: 1.0 X-Received: by 10.194.11.72 with SMTP id o8mr33714370wjb.0.1373921370769; Mon, 15 Jul 2013 13:49:30 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Mon, 15 Jul 2013 13:49:30 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 13:49:30 -0700 X-Google-Sender-Auth: Z3ccqUgfqQC87Bk1KVi6Wn-6P00 Message-ID: Subject: Re: Making Picostation m2HP work From: Adrian Chadd To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 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 20:49:32 -0000 Right, this is a good start. Now: * the arswitch didn't attach PHYs, for some reason * arge0/arge1 complained, again for some reason * and there's no wifi yet, which we can easily fix. So, which would you like to tackle first? -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 >>> >> 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 >>>> >>> From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 16 03:52:56 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 35E3B80C for ; Tue, 16 Jul 2013 03:52:56 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) by mx1.freebsd.org (Postfix) with ESMTP id C685DC5D for ; Tue, 16 Jul 2013 03:52:55 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id y10so151953wgg.32 for ; Mon, 15 Jul 2013 20:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=dIKZkO3PeM7MLfN89r7rp62H0yEMOxRRWcXbjVpOsAM=; b=e9UbanPwkBhFYo4063mQDgUI1f8XWJCzV90/o3ttcKf02Zd/xTFeBBiFkjwqThvpUj IGOVo5wS73Qi8q3JQAIuN2cw+GNUx9Jpi0XAEp+fC8ony5GxI6fe8/vmmzelSMkUaKjv ji55cb7VwXCSP62qOPH4bjMHYtVRsOumdXgm5999oiD2EJ0GYaXK1ryt9dq48dRDRFFA J1WmrMZxjQKu0XBnNEf7HWv0KTGnNnIXrY4QJcXoAT6aSaOZlOpbx7ybzTlCR6azCx5p 2g5cwsy3k7u5Xr7roWosKgWt2WfWi5gTnSN0CXi+aIVdfczGJyoI07hjdO7cl+ez4UFY ArKQ== MIME-Version: 1.0 X-Received: by 10.180.185.148 with SMTP id fc20mr11081494wic.0.1373946774862; Mon, 15 Jul 2013 20:52:54 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Mon, 15 Jul 2013 20:52:54 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 Jul 2013 20:52:54 -0700 X-Google-Sender-Auth: X8U_Ew6dD6KtrYPtyz_RQ4zxtvc Message-ID: Subject: Re: Making Picostation m2HP work From: Adrian Chadd To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 16 Jul 2013 03:52:56 -0000 Right, you have to get the mdio bus configured up right, then attach arswitch to it. Then you tell arge0/arge1 what PHY it speaks to, via Stefan's mdioproxy stuff. _then_ arge0/arge1 will come up. Now, as for how you do that - i'd have to re-read the datasheet and write some documentation: * one of them (I think arge0) is directly glued to arswitch with no PHY per se - it's hard-programmed with a MIIbus mode (RMGII I think?) and 100/full or 1000/full * the other (i think arge1) connects to a PHY inside the switch, and so you use mdioproxy to connect it to that PHY arge1 doesn't _have_ to be connected to a dedicated PHY (ie, the "WAN" port), it can be put into monitor mode and all the external ports can just map to arge0 as switch ports. But that's not what arswitch supports just yet, so I'm ignoring it. Now, the tricky crap: * there's an mdio bus (arge0 for 7240, arge1 for 7241.. or is the other way around) that the internal switch sits on * the switch has _its own_ internal MII bus for all the PHYs that it has - ie, what faces external * when arswitch probe/attaches, it'll export _another_ MII bus that represents this internal bus.. * .. and then that bus is enumerated to find individual ukphy (generic PHYs) for each of the physical ports * This is limited to the first 4 ports I think; as the fifth port is the WAN phy. Then arge1 is glued to this "WAN" PHY. It's not owned by arswitch (but it could be!) as then arge1 couldn't link to it to get notifications about link, speed/duplex changes. I'll follow this up with a post explaining how the miibus, mdiobus, mdioproxy stuff and how arswitch is configured. Then I'll braindump that into the wiki. adrian On 15 July 2013 15:14, hiren panchasara wrote: > 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 >>>>> >>>> From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 16 13:48:57 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 D6C8810D; Tue, 16 Jul 2013 13:48:57 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) by mx1.freebsd.org (Postfix) with ESMTP id 44C9A818; Tue, 16 Jul 2013 13:48:57 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id l18so623287wgh.26 for ; Tue, 16 Jul 2013 06:48:56 -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=bqtITaCXXQevhl2C9lCdb3yAMUuA/Ms4gurF6KCAV4U=; b=LwW22VATRoYzRgOh7jElblmymqoiCrF2KLoMPE+uE7pYNBrjz5m8XvW47RwJC1nwZD KePEHtm3kwTvNQnq5oTZAycNjW45+48/4BytG2JG7UuO4en17Zx5X8pEifvCmSYiTHAm vVpj6w/Lv39s0Hb+EP7D/1A+GnPHvi8PTr8eIF3GG/D+gNFA7Jn02OJGEYgKBwwwuGsG 8e4sP5yPU2D2QmI/iDXxV7+WR4sE0UCmoxOxqnJCwmsf5O5MPGFaBaexrHPlkTy3Iy1A evI9McOlgQDc3RyI6ziBVlJI//OXSZrqu72YYJIXn0M80ZKrhQHoJVgHxj3yTqloHLx4 SYLw== MIME-Version: 1.0 X-Received: by 10.194.216.99 with SMTP id op3mr1332227wjc.52.1373982536119; Tue, 16 Jul 2013 06:48:56 -0700 (PDT) Received: by 10.216.75.144 with HTTP; Tue, 16 Jul 2013 06:48:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 16 Jul 2013 10:48:56 -0300 Message-ID: Subject: Re: Making Picostation m2HP work From: Luiz Otavio O Souza To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 16 Jul 2013 13:48:57 -0000 On 16 July 2013 00:52, Adrian Chadd wrote: > Right, > > you have to get the mdio bus configured up right, then attach arswitch to > it. > > Then you tell arge0/arge1 what PHY it speaks to, via Stefan's mdioproxy > stuff. > > _then_ arge0/arge1 will come up. > > Now, as for how you do that - i'd have to re-read the datasheet and > write some documentation: > > * one of them (I think arge0) is directly glued to arswitch with no > PHY per se - it's hard-programmed with a MIIbus mode (RMGII I think?) > and 100/full or 1000/full > It's usually the arge1 which is dedicated to switch and it's hard-programmed as 1000/full (even when the switch ports are just 10/100). arge0 is the 'WAN' port (using the dedicated PHY 4). The MDIO is at arge0 on ar7240 and at arge1 on ar7241. [...] > > I'll follow this up with a post explaining how the miibus, mdiobus, > mdioproxy stuff and how arswitch is configured. Then I'll braindump > that into the wiki. Thanks Adrian! Stefan also has a nice documentation about how this stuff fits together: https://wiki.freebsd.org/StefanBethke/EtherSwitch http://www.bsdcan.org/2012/schedule/attachments/201_BSDCan-2012-Bethke-Ethernet-Switch-Framework.pdf Luiz From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 16 14:37:06 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 0C67FD8F for ; Tue, 16 Jul 2013 14:37:06 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 985E9A5C for ; Tue, 16 Jul 2013 14:37:05 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id w59so681649wes.24 for ; Tue, 16 Jul 2013 07:37:04 -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=SCQFojaNwEntNrtB1Qbf7vF3rqWMDY/29D+OME3W6mQ=; b=w6oiY941HrUPh+cFlK7Z3Ewgd/pnQkPlzvm9hm4E/rQrfc0g7fBj2jD1MKSFCmzKqF HkNG9znwz/fut/HKFTvlhy+KFThykJ9J0NgilTY6JHPNqqYdpOx0hoiMls4rrkR7qrjC bMotTqj1CWP4BfefMhCA5vxQNS5WHDTfxRRwOIPme0c8jtysewr3TAMeH6NKUQOmm1ar 3QrwlH23YKylW9zcLfEneLA4oPAopMAfWfTv/fORQF9fa3fRtoRr0JFZs8dtZYnD44VI HaunVtAE/C4NIQz1cQZT+LtUdyL1/CiKGLVC8IyWo2d4MA7TpSJPFjb6own/5ocFOnvE H3IA== MIME-Version: 1.0 X-Received: by 10.194.216.99 with SMTP id op3mr1494877wjc.52.1373985424691; Tue, 16 Jul 2013 07:37:04 -0700 (PDT) Received: by 10.216.75.144 with HTTP; Tue, 16 Jul 2013 07:37:04 -0700 (PDT) In-Reply-To: <7d75020201891ae6047eea627aadef62.squirrel@arroway.org> References: <20130701152313.60982@relay.ibs.dn.ua> <20130701220301.1636@relay.ibs.dn.ua> <20130702085213.52064@relay.ibs.dn.ua> <18a9b686d7f49d3773ad63eb853b1c88.squirrel@arroway.org> <177ad5f8896d866e3b46b73e0226af06.squirrel@arroway.org> <7d75020201891ae6047eea627aadef62.squirrel@arroway.org> Date: Tue, 16 Jul 2013 11:37:04 -0300 Message-ID: Subject: Re: FreeBSD on ASUS, TP-Link and D-Link routers? From: Luiz Otavio O Souza To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Tue, 16 Jul 2013 14:37:06 -0000 On 6 July 2013 17:25, Nenhum_de_Nos wrote: > how can I configure it to use the usb port as storage ? > > is there a limit to the size of the usb stick ? > > thanks, > > matheus > > Hi Matheus, Any kind of storage (supported by umass) should just work, here are two examples. A 160GB hard drive connected thru a USB->[S]ATA adaptor: ugen0.3: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C) da0: quirks=0x2 # geom disk list da0 Geom name: da0 Providers: 1. Name: da0 Mediasize: 160041885696 (149G) Sectorsize: 512 Mode: r8w8e23 descr: ST316021 2A ident: (null) fwsectors: 63 fwheads: 255 # gpart show da0 => 34 312581741 da0 GPT (149G) 34 478 - free - (239k) 512 524288 1 freebsd-swap (256M) 524800 20971520 2 freebsd-ufs (10G) 21496320 20971520 3 freebsd-ufs (10G) 42467840 41943040 4 freebsd-ufs (20G) 84410880 41943040 5 freebsd-ufs (20G) 126353920 41943040 6 freebsd-ufs (20G) 168296960 20971520 7 freebsd-ufs (10G) 189268480 10485760 8 freebsd-ufs (5.0G) 199754240 112827535 - free - (53G) And a memory stick: ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x4100 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Removable Direct Access SCSI-5 device da0: 40.000MB/s transfers da0: 7633MB (15633408 512 byte sectors: 255H 63S/T 973C) # geom disk list da0 Geom name: da0 Providers: 1. Name: da0 Mediasize: 8004304896 (7.5G) Sectorsize: 512 Mode: r6w4e13 descr: SanDisk Cruzer Blade ident: (null) fwsectors: 63 fwheads: 255 # gpart show da0 => 34 15633341 da0 GPT (7.5G) 34 94 - free - (47k) 128 262144 1 freebsd-swap (128M) 262272 786432 2 freebsd-ufs (384M) 1048704 1048576 3 freebsd-ufs (512M) 2097280 2097152 4 freebsd-ufs (1.0G) 4194432 2097152 5 freebsd-ufs (1.0G) 6291584 20480 6 freebsd-ufs (10M) 6312064 9321311 - free - (4.5G) The only difference is that you can't read the big endian UFS on your (x86) PC. Luiz From owner-freebsd-embedded@FreeBSD.ORG Wed Jul 17 23:54:17 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C19CB51F; Wed, 17 Jul 2013 23:54:17 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x234.google.com (mail-ea0-x234.google.com [IPv6:2a00:1450:4013:c01::234]) by mx1.freebsd.org (Postfix) with ESMTP id 2E31F5EA; Wed, 17 Jul 2013 23:54:17 +0000 (UTC) Received: by mail-ea0-f180.google.com with SMTP id k10so1372171eaj.39 for ; Wed, 17 Jul 2013 16:54:15 -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=lPTN4zxr9qOhMOTsJWIAyqTRsMqMLi+QlnQseMUAGHE=; b=nvvy81h+YBI+kZTIIvMFsj+3cmlOC4dmpQu9Tab+Q0sMUZe51vLDzdYiPTow1GIrjG L8Qndj7J59YPMuYdBdaB+HAzadLBYx1tljaJLuPmBj/SwkZA6uYQ26ivIvnstkbOls/k N4yWOPyILvb2wqoL3BADBIKXk8J6R14f2IiEQGfCxgWIr9BVMnNuVXAaHL7UeIF9A/FS 8YCL5O2W3umdZjiI86pYf+31YGskx3F99wjK2RUNJP7rlKV38EcaeEDk9SNUdgBvahj9 SjlYw0ervVXxAmEcebJy9SUgF/b7ZYWrL6GVx6T3JkAcdqDrntA+nQC0Cym6E8SCY0RS EngQ== MIME-Version: 1.0 X-Received: by 10.15.55.199 with SMTP id v47mr8437011eew.41.1374105255621; Wed, 17 Jul 2013 16:54:15 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Wed, 17 Jul 2013 16:54:15 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Jul 2013 16:54:15 -0700 Message-ID: Subject: Re: Making Picostation m2HP work From: hiren panchasara To: Luiz Otavio O Souza 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: Wed, 17 Jul 2013 23:54:17 -0000 On Tue, Jul 16, 2013 at 6:48 AM, Luiz Otavio O Souza wrote: > On 16 July 2013 00:52, Adrian Chadd wrote: >> >> Right, >> >> you have to get the mdio bus configured up right, then attach arswitch to >> it. >> >> Then you tell arge0/arge1 what PHY it speaks to, via Stefan's mdioproxy >> stuff. >> >> _then_ arge0/arge1 will come up. >> >> Now, as for how you do that - i'd have to re-read the datasheet and >> write some documentation: >> >> * one of them (I think arge0) is directly glued to arswitch with no >> PHY per se - it's hard-programmed with a MIIbus mode (RMGII I think?) >> and 100/full or 1000/full > > > It's usually the arge1 which is dedicated to switch and it's hard-programmed > as 1000/full (even when the switch ports are just 10/100). > > arge0 is the 'WAN' port (using the dedicated PHY 4). > > The MDIO is at arge0 on ar7240 and at arge1 on ar7241. > > [...] >> >> >> I'll follow this up with a post explaining how the miibus, mdiobus, >> mdioproxy stuff and how arswitch is configured. Then I'll braindump >> that into the wiki. > > > Thanks Adrian! > > Stefan also has a nice documentation about how this stuff fits together: > > https://wiki.freebsd.org/StefanBethke/EtherSwitch > http://www.bsdcan.org/2012/schedule/attachments/201_BSDCan-2012-Bethke-Ethernet-Switch-Framework.pdf > Thanks a lot Adrian and Luiz for the explanation. I've built just the kernel with in-tree (-head) kernconf AP91 and hints file from Luiz: http://pastebin.com/Z647yiZh And I am seeing arge0/1 attaching: 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 #1 r252757M: Wed Jul 17 16:45:15 PDT 2013 root@flymockour-l7.corp.yahoo.com:/usr/home/hirenp/head/obj/mips.mips/usr/home/hirenp/head/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: clock0: on nexus0 Timecounter "MIPS32" frequency 195000000 Hz quality 800 Event timer "MIPS32" frequency 195000000 Hz quality 800 argemdio0: at mem 0x1a000000-0x1a000fff on nexus0 mdio0: on argemdio0 mdioproxy0: on mdio0 arswitch0: on mdio0 miibus0: on arswitch0 ukphy0: PHY 0 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus1: on arswitch0 ukphy1: PHY 1 on miibus1 ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus2: on arswitch0 ukphy2: PHY 2 on miibus2 ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto miibus3: on arswitch0 ukphy3: PHY 3 on miibus3 ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto mdio1: on arswitch0 mdioproxy1: on mdio1 etherswitch0: on arswitch0 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 arge0: Overriding MAC from EEPROM miiproxy0: on arge0 miiproxy0: attached to target mdio1 arge0: finishing attachment, phymask 0010, proxy set miibus4: on miiproxy0 ukphy4: PHY 4 on miibus4 ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto arge0: Ethernet address: 8e:42:00:5c:3c:04 arge1: at mem 0x1a000000-0x1a000fff irq 3 on nexus0 arge1: finishing attachment, phymask 0000, proxy null arge1: Ethernet address: 8e:42:00:5c:3c:05 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 arswitch0port1: link state changed to DOWN arswitch0port2: link state changed to DOWN arswitch0port3: link state changed to DOWN arswitch0port4: link state changed to DOWN 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 From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 19 07:02:29 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D76FFC34 for ; Fri, 19 Jul 2013 07:02:29 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 6CBB73D3 for ; Fri, 19 Jul 2013 07:02:29 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id q56so3666029wes.17 for ; Fri, 19 Jul 2013 00:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=kZZNYiJ084TKyBINTq7l1zKuBTGWePrAlOeXZbkGtl4=; b=QZrZSZ1fsuVJlHQHjwBkK1rE9LiT67oxE38SFL42N2e4sUa9xdxV1EjebcdRzB1FRs BCPp6rM9GhEhP4D9VM0H+o10fU0iTIgpCDcq9Ks3pBJOz9VGr/TVGHRYYhNml3sXsh4N l8Aurr8EXMamxjcWnK9mu23e7FD7lP6Ue6suF989FRCsRchHDtHoysQAcL1s4P0JRemQ sxYdnjUETn1PQEg6tVtX2p/APnrKvj0/xFYKtuazspjdU51zD0KRC9j3hJbH2tod00b8 mVraJBt6r5QPMkQlofCBjxI4t6BSoqlCKpTpONgs3+PCa32z8JXkDRb/KKISV4R8PFin lgnw== MIME-Version: 1.0 X-Received: by 10.180.185.148 with SMTP id fc20mr10638113wic.0.1374217348417; Fri, 19 Jul 2013 00:02:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Fri, 19 Jul 2013 00:02:28 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Jul 2013 00:02:28 -0700 X-Google-Sender-Auth: 44iufcpNiJgM9BKaMstf8eyB4Zc Message-ID: Subject: Re: Making Picostation m2HP work From: Adrian Chadd To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 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: Fri, 19 Jul 2013 07:02:29 -0000 Cool, so next is populating the MAP device fields in a kernel config hints file with the relevant flash offsets. That way you can setup the rootfs right. What's 'printenv' from uboot show? -adrian On 17 July 2013 16:54, hiren panchasara wrote: > On Tue, Jul 16, 2013 at 6:48 AM, Luiz Otavio O Souza wrote: >> On 16 July 2013 00:52, Adrian Chadd wrote: >>> >>> Right, >>> >>> you have to get the mdio bus configured up right, then attach arswitch to >>> it. >>> >>> Then you tell arge0/arge1 what PHY it speaks to, via Stefan's mdioproxy >>> stuff. >>> >>> _then_ arge0/arge1 will come up. >>> >>> Now, as for how you do that - i'd have to re-read the datasheet and >>> write some documentation: >>> >>> * one of them (I think arge0) is directly glued to arswitch with no >>> PHY per se - it's hard-programmed with a MIIbus mode (RMGII I think?) >>> and 100/full or 1000/full >> >> >> It's usually the arge1 which is dedicated to switch and it's hard-programmed >> as 1000/full (even when the switch ports are just 10/100). >> >> arge0 is the 'WAN' port (using the dedicated PHY 4). >> >> The MDIO is at arge0 on ar7240 and at arge1 on ar7241. >> >> [...] >>> >>> >>> I'll follow this up with a post explaining how the miibus, mdiobus, >>> mdioproxy stuff and how arswitch is configured. Then I'll braindump >>> that into the wiki. >> >> >> Thanks Adrian! >> >> Stefan also has a nice documentation about how this stuff fits together: >> >> https://wiki.freebsd.org/StefanBethke/EtherSwitch >> http://www.bsdcan.org/2012/schedule/attachments/201_BSDCan-2012-Bethke-Ethernet-Switch-Framework.pdf >> > > Thanks a lot Adrian and Luiz for the explanation. > > I've built just the kernel with in-tree (-head) kernconf AP91 and > hints file from Luiz: http://pastebin.com/Z647yiZh > > And I am seeing arge0/1 attaching: > > 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 #1 r252757M: Wed Jul 17 16:45:15 PDT 2013 > root@flymockour-l7.corp.yahoo.com:/usr/home/hirenp/head/obj/mips.mips/usr/home/hirenp/head/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: > clock0: on nexus0 > Timecounter "MIPS32" frequency 195000000 Hz quality 800 > Event timer "MIPS32" frequency 195000000 Hz quality 800 > argemdio0: controller> at mem 0x1a000000-0x1a000fff on nexus0 > mdio0: on argemdio0 > mdioproxy0: on mdio0 > arswitch0: on mdio0 > miibus0: on arswitch0 > ukphy0: PHY 0 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT-FDX, 1000baseT-FDX-master, auto > miibus1: on arswitch0 > ukphy1: PHY 1 on miibus1 > ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT-FDX, 1000baseT-FDX-master, auto > miibus2: on arswitch0 > ukphy2: PHY 2 on miibus2 > ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT-FDX, 1000baseT-FDX-master, auto > miibus3: on arswitch0 > ukphy3: PHY 3 on miibus3 > ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT-FDX, 1000baseT-FDX-master, auto > mdio1: on arswitch0 > mdioproxy1: on mdio1 > etherswitch0: on arswitch0 > 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 > arge0: Overriding MAC from EEPROM > miiproxy0: on arge0 > miiproxy0: attached to target mdio1 > arge0: finishing attachment, phymask 0010, proxy set > miibus4: on miiproxy0 > ukphy4: PHY 4 on miibus4 > ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, > 1000baseT-FDX, 1000baseT-FDX-master, auto > arge0: Ethernet address: 8e:42:00:5c:3c:04 > arge1: at mem > 0x1a000000-0x1a000fff irq 3 on nexus0 > arge1: finishing attachment, phymask 0000, proxy null > arge1: Ethernet address: 8e:42:00:5c:3c:05 > 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 > arswitch0port1: link state changed to DOWN > arswitch0port2: link state changed to DOWN > arswitch0port3: link state changed to DOWN > arswitch0port4: link state changed to DOWN > 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 From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 19 18:13:13 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 65C2B279; Fri, 19 Jul 2013 18:13:13 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ee0-x235.google.com (mail-ee0-x235.google.com [IPv6:2a00:1450:4013:c00::235]) by mx1.freebsd.org (Postfix) with ESMTP id C5684A10; Fri, 19 Jul 2013 18:13:12 +0000 (UTC) Received: by mail-ee0-f53.google.com with SMTP id c41so2572520eek.12 for ; Fri, 19 Jul 2013 11:13:11 -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=/FX7ggqQMTiGtbrs13f/mD2DU4LwP4mmPCEqoMLbtlY=; b=B4iFattKRGE3ust1LYHa6/GCmam3AofEDqo/0UOa8XtxrDCIEu+9asN62G0WenF8ID D3KGLLUjL13Qri4XrA3ts4ZladirXMigG1bppLddWaOtkNVLL0B7TxL0Y3Wxre9qnWsA fV2oeeucZNb7TD6eXKsJoTE/D2P0qpUs6IHpeop650c+ZJIuTfA/FmPc5YZ4g7c//EfK 2aFENE8p9V7K1PBQxCdvs8ktso8nLZDaiTEnvKDGCrMZqiAoOZvh/xE6GRZ0yJeM5uGC eQOJ7oa/m69l/EopYVk0VSyCbfCE9q9TYFm131NfAJAcMfyQ7kpr9aW41njjrUtno6WG gniA== MIME-Version: 1.0 X-Received: by 10.14.69.206 with SMTP id n54mr16736117eed.154.1374257591788; Fri, 19 Jul 2013 11:13:11 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Fri, 19 Jul 2013 11:13:11 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Jul 2013 11:13:11 -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: Fri, 19 Jul 2013 18:13:13 -0000 On Fri, Jul 19, 2013 at 12:02 AM, Adrian Chadd wrote: > Cool, so next is populating the MAP device fields in a kernel config > hints file with the relevant flash offsets. > > That way you can setup the rootfs right. alright!! > > What's 'printenv' from uboot show? ar7240> printenv bootdelay=1 baudrate=115200 ethaddr=00:15:6d:0d:00:00 mtdids=nor0=ar7240-nor0 partition=nor0,0 mtddevnum=0 mtddevname=u-boot filesize=10000 fileaddr=81000000 serverip=192.168.1.254 ethact=eth0 mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),5760k(rootfs),256k(cfg),64k(EEPROM) bootcmd=bootm 0x9f050000 bootargs=console=tty0 root=31:03 rootfstype=squashfs init=/init ipaddr=192.168.1.20 stdin=serial stdout=serial stderr=serial Environment size: 452/65532 bytes ar7240> Thanks for your help :-) cheers, Hiren > > > -adrian > > On 17 July 2013 16:54, hiren panchasara wrote: >> On Tue, Jul 16, 2013 at 6:48 AM, Luiz Otavio O Souza wrote: >>> On 16 July 2013 00:52, Adrian Chadd wrote: >>>> >>>> Right, >>>> >>>> you have to get the mdio bus configured up right, then attach arswitch to >>>> it. >>>> >>>> Then you tell arge0/arge1 what PHY it speaks to, via Stefan's mdioproxy >>>> stuff. >>>> >>>> _then_ arge0/arge1 will come up. >>>> >>>> Now, as for how you do that - i'd have to re-read the datasheet and >>>> write some documentation: >>>> >>>> * one of them (I think arge0) is directly glued to arswitch with no >>>> PHY per se - it's hard-programmed with a MIIbus mode (RMGII I think?) >>>> and 100/full or 1000/full >>> >>> >>> It's usually the arge1 which is dedicated to switch and it's hard-programmed >>> as 1000/full (even when the switch ports are just 10/100). >>> >>> arge0 is the 'WAN' port (using the dedicated PHY 4). >>> >>> The MDIO is at arge0 on ar7240 and at arge1 on ar7241. >>> >>> [...] >>>> >>>> >>>> I'll follow this up with a post explaining how the miibus, mdiobus, >>>> mdioproxy stuff and how arswitch is configured. Then I'll braindump >>>> that into the wiki. >>> >>> >>> Thanks Adrian! >>> >>> Stefan also has a nice documentation about how this stuff fits together: >>> >>> https://wiki.freebsd.org/StefanBethke/EtherSwitch >>> http://www.bsdcan.org/2012/schedule/attachments/201_BSDCan-2012-Bethke-Ethernet-Switch-Framework.pdf >>> >> >> Thanks a lot Adrian and Luiz for the explanation. >> >> I've built just the kernel with in-tree (-head) kernconf AP91 and >> hints file from Luiz: http://pastebin.com/Z647yiZh >> >> And I am seeing arge0/1 attaching: >> >> 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 #1 r252757M: Wed Jul 17 16:45:15 PDT 2013 >> root@flymockour-l7.corp.yahoo.com:/usr/home/hirenp/head/obj/mips.mips/usr/home/hirenp/head/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: >> clock0: on nexus0 >> Timecounter "MIPS32" frequency 195000000 Hz quality 800 >> Event timer "MIPS32" frequency 195000000 Hz quality 800 >> argemdio0: > controller> at mem 0x1a000000-0x1a000fff on nexus0 >> mdio0: on argemdio0 >> mdioproxy0: on mdio0 >> arswitch0: on mdio0 >> miibus0: on arswitch0 >> ukphy0: PHY 0 on miibus0 >> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseT-FDX, 1000baseT-FDX-master, auto >> miibus1: on arswitch0 >> ukphy1: PHY 1 on miibus1 >> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseT-FDX, 1000baseT-FDX-master, auto >> miibus2: on arswitch0 >> ukphy2: PHY 2 on miibus2 >> ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseT-FDX, 1000baseT-FDX-master, auto >> miibus3: on arswitch0 >> ukphy3: PHY 3 on miibus3 >> ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseT-FDX, 1000baseT-FDX-master, auto >> mdio1: on arswitch0 >> mdioproxy1: on mdio1 >> etherswitch0: on arswitch0 >> 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 >> arge0: Overriding MAC from EEPROM >> miiproxy0: on arge0 >> miiproxy0: attached to target mdio1 >> arge0: finishing attachment, phymask 0010, proxy set >> miibus4: on miiproxy0 >> ukphy4: PHY 4 on miibus4 >> ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, >> 1000baseT-FDX, 1000baseT-FDX-master, auto >> arge0: Ethernet address: 8e:42:00:5c:3c:04 >> arge1: at mem >> 0x1a000000-0x1a000fff irq 3 on nexus0 >> arge1: finishing attachment, phymask 0000, proxy null >> arge1: Ethernet address: 8e:42:00:5c:3c:05 >> 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 >> arswitch0port1: link state changed to DOWN >> arswitch0port2: link state changed to DOWN >> arswitch0port3: link state changed to DOWN >> arswitch0port4: link state changed to DOWN >> 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 From owner-freebsd-embedded@FreeBSD.ORG Sat Jul 20 17:17:31 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 84E0B4FA for ; Sat, 20 Jul 2013 17:17:31 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm7-vm5.bullet.mail.gq1.yahoo.com (nm7-vm5.bullet.mail.gq1.yahoo.com [98.136.218.212]) by mx1.freebsd.org (Postfix) with ESMTP id 4B11CC2F for ; Sat, 20 Jul 2013 17:17:30 +0000 (UTC) Received: from [98.137.12.57] by nm7.bullet.mail.gq1.yahoo.com with NNFMP; 20 Jul 2013 17:17:24 -0000 Received: from [98.136.164.67] by tm2.bullet.mail.gq1.yahoo.com with NNFMP; 20 Jul 2013 17:17:24 -0000 Received: from [127.0.0.1] by smtp229.mail.gq1.yahoo.com with NNFMP; 20 Jul 2013 17:17:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1374340644; bh=fKGBm5t7NfUqwr+AsEtOvOZCHwYR8T3SK+92dkS6tOY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=d9C9WF8HjZ94ujoMB6TXEVoMrnxzmjElID+EFnrAeKrPa+tRtNWRF3RH+Je4ilKv1wgYCulbgi/mcxhxj6kPZhP3nY+6bXs+krzGfFSaYk2M3ednn1WuCSUhuGtXWHvdCJnwXimjpmsqei0O3ndwsbX+5qsEx5lpdme7SxTfJ4o= X-Yahoo-Newman-Id: 827502.92579.bm@smtp229.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 7HZNEc8VM1kIRRuTvEWI9WkrYLxzSdpAIvScm8D1Too.id9 3.G9U4QgZ6L5zVD87Cpz7PLUCAFB.hFI3yCN9mc6W_S5akvKxsWg3ERo7sWo dsXiytJb31GhugHH4HfFlGQWBlbSBXR.q6QVmhH.CjV4a_ar1Jb8uCosJEge 8NJGgdl_f2ILFQenuQ9fG1bKEqAdPyD9HpE1_iuZz5tB6.k7Pt8tipnyLjLB Qa.gZizFxnhnJ5E9SgR_PHr8aBuaIMYoTGTxHaTbJywrJYGX3C1Kkn5h1X1t H29ak.Y4MMs.nmt2K9K3BZ9vF3aFYE3o9ZIMl09wsPrBHXu6UVaadsYj57Rs pmDvkEcVjGqt4xTuwDJBJ.vXhivqe897PGbb_XJhdgTJAM7pIeR_gftsvL19 lgtpjli03h8O3R_tw6QaOT5nGQuVXPOduLbTD2OiOT4M.Awh2DWuTICSxE5a mPCv57FzxftR7GJgDShvS.WmW5Y1ur9ZpphRdz.sVEF579e4uUV94YsLpbOF uZA5evPDZGBW2dJrBr.CjejaimdmdhUtZeXeeY3BPtmAB057_LYfG2io0c1P _Rwvlczz90DxmuFPq24WENW3rc6HbmuPqeqTVJpKWoadOOjc_v1XTIfOcaT9 Yt8nT4sM- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [192.168.1.210] (sean_bruno@71.202.40.63 with ) by smtp229.mail.gq1.yahoo.com with SMTP; 20 Jul 2013 17:17:24 +0000 UTC Subject: Dlink DIR-825 B1 status From: Sean Bruno To: freebsd-embedded@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-JG+wUJhF3D7QtsovwaWO" Date: Sat, 20 Jul 2013 10:12:39 -0700 Message-ID: <1374340359.1421.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 17:17:31 -0000 --=-JG+wUJhF3D7QtsovwaWO Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Using adrian's build sys, I've been able to get this router up with FreeBSD. There's no indication that it has wireless interfaces on it, which is odd. dmesg --> http://people.freebsd.org/~sbruno/dir_825_dmesg.txt There appears to be unattached devices, I suspect maybe I should just add them to the appropriate driver and recompile? # pciconf -lvb none0@pci0:0:17:0: class=3D0x020000 card=3D0xee1c168c chip=3D0xff1d168= c rev=3D0x01 hdr=3D0x00 vendor =3D 'Atheros Communications Inc.' device =3D 'AR5008 Wireless Network Adapter' class =3D network subclass =3D ethernet bar [10] =3D type Memory, range 32, base 0, size 65536, disabled none1@pci0:0:18:0: class=3D0x020000 card=3D0xee1c168c chip=3D0xff1d168= c rev=3D0x01 hdr=3D0x00 vendor =3D 'Atheros Communications Inc.' device =3D 'AR5008 Wireless Network Adapter' class =3D network subclass =3D ethernet bar [10] =3D type Memory, range 32, base 0, size 65536, disabled Sean p.s. I was totally shocked that there's a pci bus on this thing. That blew my mind. --=-JG+wUJhF3D7QtsovwaWO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAABAgAGBQJR6sUAAAoJEBkJRdwI6BaHSD8H/jPxBNnLa4xfNQtKDDgpAEVh HcfV0HH0kLBzXLNveOJKElGpyILk5e3W9ZFWOHvx7YLgI+EMRFmmsScQ8S4Hbv2x J6vHpve6wor5Z5apbvq0rxOuUTXSZN05zzGy+gb3sB8ND6st1PjO4ilhwU0RbhJ8 huJ8OnwCfU063tVKMpArC5XBj56bmex4lF2hp6B8yeUImO/uq8bRbPJNOg2Xvjpu YQk4tBrR3KUGNeQs51/VKBEdcxeLvJtf2wm8blQIle6QZ0HnRusB6V9hU++oseFH N9gJKC1bY/BMBLKVge9lec8dnTXSLiFKUG0c4LbFjn7utj6wdwvPrvcXz3k3Inc= =BkeD -----END PGP SIGNATURE----- --=-JG+wUJhF3D7QtsovwaWO--