From owner-freebsd-arm@FreeBSD.ORG Mon Nov 3 16:37:07 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75BDA8D0 for ; Mon, 3 Nov 2014 16:37:07 +0000 (UTC) Received: from smtp77.iad3a.emailsrvr.com (smtp77.iad3a.emailsrvr.com [173.203.187.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 38702907 for ; Mon, 3 Nov 2014 16:37:06 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp18.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 793B92802B2; Mon, 3 Nov 2014 11:27:53 -0500 (EST) X-Virus-Scanned: OK Received: from app52.wa-webapps.iad3a (relay-webapps.rsapps.net [172.27.255.140]) by smtp18.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 570512800EC; Mon, 3 Nov 2014 11:27:53 -0500 (EST) X-Sender-Id: scott@jumpnowtek.com Received: from app52.wa-webapps.iad3a (relay-webapps.rsapps.net [172.27.255.140]) by 0.0.0.0:25 (trex/5.3.2); Mon, 03 Nov 2014 16:27:53 GMT Received: from jumpnowtek.com (localhost.localdomain [127.0.0.1]) by app52.wa-webapps.iad3a (Postfix) with ESMTP id 432D8380043; Mon, 3 Nov 2014 11:27:53 -0500 (EST) Received: by apps.rackspace.com (Authenticated sender: scott@jumpnowtek.com, from: scott@jumpnowtek.com) with HTTP; Mon, 3 Nov 2014 11:27:53 -0500 (EST) Date: Mon, 3 Nov 2014 11:27:53 -0500 (EST) Subject: Re: Wandboard Dual and Crochet-FreeBSD From: "Scott Ellis" To: "Tom Everett" MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: quoted-printable Importance: Normal X-Priority: 3 (Normal) X-Type: plain In-Reply-To: References: <1415023949.765217459@apps.rackspace.com> <1415030377.1200.56.camel@revolution.hippie.lan> X-Auth-ID: scott@jumpnowtek.com Message-ID: <1415032073.272927972@apps.rackspace.com> X-Mailer: webmail7.0 Cc: "freebsd-arm@freebsd.org" , Ian Lepore X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2014 16:37:07 -0000 I submitted a bug and I am volunteering to test. =0A=0AI only have Quads an= d Duals.=0A=0A-----Original Message-----=0AFrom: "Tom Everett" =0ASent: Monday, November 3, 2014 11:13am=0ATo: "Ian Lepore" =0ACc: "Scott Ellis" , "freebsd-arm@freebsd.or= g" =0ASubject: Re: Wandboard Dual and Crochet-Free= BSD=0A=0ACould I ask that you submit a bug here?=0A=0Ahttps://github.com/ki= entzle/crochet-freebsd=0A=0AI only have a Quad, so that is what I built for= . I am willing to make some=0Afixes, if a tester will volunteer to verify = them on the dual.=0A=0A=0AOn Mon, Nov 3, 2014 at 8:59 AM, Ian Lepore wrote:=0A=0A> On Mon, 2014-11-03 at 09:12 -0500, Scott Ellis wr= ote:=0A> > Wandboard-Quad crochet builds are working fine using the default= =0A> > config in freebsd-crochet/board/Wandboard using CURRENT r273961=0A> = > for the source.=0A> >=0A> > I tried creating a new freebsd-crochet/board/= Wandboard-Dual config=0A> > directory with the following changes=0A> >=0A> = > scott@fbsd:~/crochet-freebsd/board % diff -r Wandboard Wandboard-Dual=0A>= >=0A> > diff -r Wandboard/files/boot.txt Wandboard-Dual/files/boot.txt=0A>= > 1c1=0A> > < setenv fdt_file wandboard-quad.dtb;fatload mmc 0:1 88000000= =0A> ubldr;bootelf 88000000;=0A> > ---=0A> > > setenv fdt_file wandboard-du= al.dtb;fatload mmc 0:1 88000000=0A> ubldr;bootelf 88000000;=0A> >=0A> > dif= f -r Wandboard/setup.sh Wandboard-Dual/setup.sh=0A> > 33c33=0A> > < str= ategy_add $PHASE_BUILD_OTHER uboot_configure=0A> $WANDBOARD_UBOOT_SRC wandb= oard_quad_config=0A> > ---=0A> > > strategy_add $PHASE_BUILD_OTHER uboo= t_configure=0A> $WANDBOARD_UBOOT_SRC wandboard_dl_config=0A> > 66,67c66,67= =0A> > < freebsd_install_fdt wandboard-quad.dts wandboard-quad.dts=0A> = > < freebsd_install_fdt wandboard-quad.dts wandboard-quad.dtb=0A> > ---= =0A> > > freebsd_install_fdt wandboard-dual.dts wandboard-dual.dts=0A> = > > freebsd_install_fdt wandboard-dual.dts wandboard-dual.dtb=0A> > 76,= 77c76,77=0A> > < freebsd_install_fdt wandboard-quad.dts=0A> boot/kernel= /wandboard-quad.dts=0A> > < freebsd_install_fdt wandboard-quad.dts=0A> = boot/kernel/wandboard-quad.dtb=0A> > ---=0A> > > freebsd_install_fdt wa= ndboard-dual.dts=0A> boot/kernel/wandboard-dual.dts=0A> > > freebsd_ins= tall_fdt wandboard-dual.dts=0A> boot/kernel/wandboard-dual.dtb=0A> >=0A> >= =0A> > When I try to boot the resulting image on a Wandboard-Dual it hangs = here=0A> >=0A> >=0A> > U-Boot 2014.07 (Nov 02 2014 - 13:03:34)=0A> >=0A> > = CPU: Freescale i.MX6DL rev1.1 at 792 MHz=0A> > Reset cause: POR=0A> > Boa= rd: Wandboard=0A> > I2C: ready=0A> > DRAM: 1 GiB=0A> > WARNING: Caches n= ot enabled=0A> > MMC: FSL_SDHC: 0, FSL_SDHC: 1=0A> > *** Warning - bad CR= C, using default environment=0A> >=0A> > No panel detected: default to HDMI= =0A> > Display: HDMI (1024x768)=0A> > In: serial=0A> > Out: serial=0A>= > Err: serial=0A> > Net: FEC [PRIME]=0A> > Hit any key to stop autoboo= t: 0=0A> > switch to partitions #0, OK=0A> > mmc0 is current device=0A> > = reading boot.scr=0A> > 157 bytes read in 10 ms (14.6 KiB/s)=0A> > Running b= ootscript from mmc ...=0A> > ## Executing script at 12000000=0A> > reading = ubldr=0A> > 251107 bytes read in 27 ms (8.9 MiB/s)=0A> > (hang)=0A> >=0A> >= =0A> > A Wandboard-Quad boot looks like this=0A> >=0A> >=0A> > U-Boot 2014.= 07 (Nov 01 2014 - 16:31:42)=0A> >=0A> > CPU: Freescale i.MX6Q rev1.2 at 7= 92 MHz=0A> > Reset cause: WDOG=0A> > Board: Wandboard=0A> > I2C: ready=0A= > > DRAM: 2 GiB=0A> > WARNING: Caches not enabled=0A> > MMC: FSL_SDHC: 0= , FSL_SDHC: 1=0A> > *** Warning - bad CRC, using default environment=0A> >= =0A> > No panel detected: default to HDMI=0A> > Display: HDMI (1024x768)=0A= > > In: serial=0A> > Out: serial=0A> > Err: serial=0A> > Net: FEC = [PRIME]=0A> > Hit any key to stop autoboot: 0=0A> > switch to partitions #= 0, OK=0A> > mmc0 is current device=0A> > reading boot.scr=0A> > 157 bytes r= ead in 10 ms (14.6 KiB/s)=0A> > Running bootscript from mmc ...=0A> > ## Ex= ecuting script at 12000000=0A> > reading ubldr=0A> > 251107 bytes read in 2= 7 ms (8.9 MiB/s)=0A> > ## Starting application at 0x88000054 ...=0A> > Cons= oles: U-Boot console=0A> > Compatible U-Boot API signature found @8f5854a8= =0A> >=0A> > FreeBSD/armv6 U-Boot loader, Revision 1.2=0A> > (root@fbsd, Su= n Nov 2 06:29:08 EST 2014)=0A> >=0A> > ... kernel boots=0A> >=0A> >=0A> > = So it looks to me like u-boot built okay, but maybe ubldr did not.=0A> >=0A= > > What is the correct way to setup crochet-freebsd to build for a=0A> > W= andboard-Dual or Solo?=0A>=0A> I think the problem is the 88000000 address.= A dual board doesn't have=0A> that much ram. I load ubldr at 11000000 on= all my wandboards (but I=0A> don't use crochet). I do know that it's impo= rtant that ubldr be linked=0A> at the same address it's configured to load = at, so you may have several=0A> places in crochet to adjust that 88000000 n= umber.=0A>=0A> I just now booted a dual board (it's been a while) and it's = working=0A> fine. Something I have not done for many months is boot a solo= board, I=0A> guess I should check it sometime soon.=0A>=0A> -- Ian=0A>=0A>= =0A> _______________________________________________=0A> freebsd-arm@freebs= d.org mailing list=0A> http://lists.freebsd.org/mailman/listinfo/freebsd-ar= m=0A> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org= "=0A>=0A=0A=0A=0A-- =0AA better world shall emerge based on faith and under= standing - Douglas=0AMacArthur=0A