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 >>>