From owner-freebsd-arm@FreeBSD.ORG Mon Nov 3 15:59:41 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E014BDE8 for ; Mon, 3 Nov 2014 15:59:41 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (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 A29951E5 for ; Mon, 3 Nov 2014 15:59:41 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XlK2d-0008UY-FM; Mon, 03 Nov 2014 15:59:39 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sA3FxcxN092136; Mon, 3 Nov 2014 08:59:38 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/1hc2CM4lJVFJXu46XoeR5 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Wandboard Dual and Crochet-FreeBSD From: Ian Lepore To: Scott Ellis In-Reply-To: <1415023949.765217459@apps.rackspace.com> References: <1415023949.765217459@apps.rackspace.com> Content-Type: text/plain; charset="us-ascii" Date: Mon, 03 Nov 2014 08:59:37 -0700 Message-ID: <1415030377.1200.56.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org 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 15:59:42 -0000 On Mon, 2014-11-03 at 09:12 -0500, Scott Ellis wrote: > Wandboard-Quad crochet builds are working fine using the default > config in freebsd-crochet/board/Wandboard using CURRENT r273961 > for the source. > > I tried creating a new freebsd-crochet/board/Wandboard-Dual config > directory with the following changes > > scott@fbsd:~/crochet-freebsd/board % diff -r Wandboard Wandboard-Dual > > diff -r Wandboard/files/boot.txt Wandboard-Dual/files/boot.txt > 1c1 > < setenv fdt_file wandboard-quad.dtb;fatload mmc 0:1 88000000 ubldr;bootelf 88000000; > --- > > setenv fdt_file wandboard-dual.dtb;fatload mmc 0:1 88000000 ubldr;bootelf 88000000; > > diff -r Wandboard/setup.sh Wandboard-Dual/setup.sh > 33c33 > < strategy_add $PHASE_BUILD_OTHER uboot_configure $WANDBOARD_UBOOT_SRC wandboard_quad_config > --- > > strategy_add $PHASE_BUILD_OTHER uboot_configure $WANDBOARD_UBOOT_SRC wandboard_dl_config > 66,67c66,67 > < freebsd_install_fdt wandboard-quad.dts wandboard-quad.dts > < freebsd_install_fdt wandboard-quad.dts wandboard-quad.dtb > --- > > freebsd_install_fdt wandboard-dual.dts wandboard-dual.dts > > freebsd_install_fdt wandboard-dual.dts wandboard-dual.dtb > 76,77c76,77 > < freebsd_install_fdt wandboard-quad.dts boot/kernel/wandboard-quad.dts > < freebsd_install_fdt wandboard-quad.dts boot/kernel/wandboard-quad.dtb > --- > > freebsd_install_fdt wandboard-dual.dts boot/kernel/wandboard-dual.dts > > freebsd_install_fdt wandboard-dual.dts boot/kernel/wandboard-dual.dtb > > > When I try to boot the resulting image on a Wandboard-Dual it hangs here > > > U-Boot 2014.07 (Nov 02 2014 - 13:03:34) > > CPU: Freescale i.MX6DL rev1.1 at 792 MHz > Reset cause: POR > Board: Wandboard > I2C: ready > DRAM: 1 GiB > WARNING: Caches not enabled > MMC: FSL_SDHC: 0, FSL_SDHC: 1 > *** Warning - bad CRC, using default environment > > No panel detected: default to HDMI > Display: HDMI (1024x768) > In: serial > Out: serial > Err: serial > Net: FEC [PRIME] > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0 is current device > reading boot.scr > 157 bytes read in 10 ms (14.6 KiB/s) > Running bootscript from mmc ... > ## Executing script at 12000000 > reading ubldr > 251107 bytes read in 27 ms (8.9 MiB/s) > (hang) > > > A Wandboard-Quad boot looks like this > > > U-Boot 2014.07 (Nov 01 2014 - 16:31:42) > > CPU: Freescale i.MX6Q rev1.2 at 792 MHz > Reset cause: WDOG > Board: Wandboard > I2C: ready > DRAM: 2 GiB > WARNING: Caches not enabled > MMC: FSL_SDHC: 0, FSL_SDHC: 1 > *** Warning - bad CRC, using default environment > > No panel detected: default to HDMI > Display: HDMI (1024x768) > In: serial > Out: serial > Err: serial > Net: FEC [PRIME] > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0 is current device > reading boot.scr > 157 bytes read in 10 ms (14.6 KiB/s) > Running bootscript from mmc ... > ## Executing script at 12000000 > reading ubldr > 251107 bytes read in 27 ms (8.9 MiB/s) > ## Starting application at 0x88000054 ... > Consoles: U-Boot console > Compatible U-Boot API signature found @8f5854a8 > > FreeBSD/armv6 U-Boot loader, Revision 1.2 > (root@fbsd, Sun Nov 2 06:29:08 EST 2014) > > ... kernel boots > > > So it looks to me like u-boot built okay, but maybe ubldr did not. > > What is the correct way to setup crochet-freebsd to build for a > Wandboard-Dual or Solo? I think the problem is the 88000000 address. A dual board doesn't have that much ram. I load ubldr at 11000000 on all my wandboards (but I don't use crochet). I do know that it's important that ubldr be linked at the same address it's configured to load at, so you may have several places in crochet to adjust that 88000000 number. I just now booted a dual board (it's been a while) and it's working fine. Something I have not done for many months is boot a solo board, I guess I should check it sometime soon. -- Ian