From owner-freebsd-arm@FreeBSD.ORG Mon Feb 3 02:37:54 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 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B8391540 for ; Mon, 3 Feb 2014 02:37:54 +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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 729F81FCE for ; Mon, 3 Feb 2014 02:37:53 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WA9Pu-000CKb-35; Mon, 03 Feb 2014 02:37:46 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s132bgqR062512; Sun, 2 Feb 2014 19:37:42 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 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/rZd+ZpmhHM19JAiS/6T0g Subject: Re: wandboard / imx6 / exynos4 / cortex-a9 "wrong-endian bug" fixed From: Ian Lepore To: Tom Everett In-Reply-To: References: <1391371204.13026.43.camel@revolution.hippie.lan> <20140202230450.GA42331@cicely7.cicely.de> Content-Type: multipart/mixed; boundary="=-N6KpUAYlO/lXDkjp/owK" Date: Sun, 02 Feb 2014 19:37:42 -0700 Message-ID: <1391395062.13026.69.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: freebsd-arm , Bernd Walter , ticso@cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 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 Feb 2014 02:37:54 -0000 --=-N6KpUAYlO/lXDkjp/owK Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sun, 2014-02-02 at 18:25 -0700, Tom Everett wrote: > I can confirm that a crochet image for Wandboard no longer crashes after > this fix. It doesn't mount the FS yet, but that's a known issue, noted > here: > > https://github.com/kientzle/crochet-freebsd/issues/29 That thread mentions needing to build a u-boot for wandboard. Here's a patchset for doing that. Apply this in your ports/sysutils dir, using: patch -p0 diff --recursive -Nu u-boot-wandboard.orig/distinfo u-boot-wandboard/distinfo --- u-boot-wandboard.orig/distinfo 1969-12-31 17:00:00.000000000 -0700 +++ u-boot-wandboard/distinfo 2013-08-01 11:06:33.000000000 -0600 @@ -0,0 +1,2 @@ +SHA256 (u-boot-2013.04.tar.bz2) = 4150e5a4480707c55a8d5b4570262e43af68d8ed3bdc0a433d8e7df47989a69e +SIZE (u-boot-2013.04.tar.bz2) = 9837387 diff --recursive -Nu u-boot-wandboard.orig/files/patch-api_Makefile u-boot-wandboard/files/patch-api_Makefile --- u-boot-wandboard.orig/files/patch-api_Makefile 1969-12-31 17:00:00.000000000 -0700 +++ u-boot-wandboard/files/patch-api_Makefile 2013-08-01 11:06:49.000000000 -0600 @@ -0,0 +1,11 @@ +--- api/Makefile.orig 2013-04-19 09:25:43.000000000 -0500 ++++ api/Makefile 2013-05-16 17:14:54.000000000 -0500 +@@ -24,7 +24,7 @@ + + LIB = $(obj)libapi.o + +-COBJS-$(CONFIG_API) += api.o api_display.o api_net.o api_storage.o \ ++COBJS-$(CONFIG_API) += api.o api_display.o api_storage.o \ + api_platform-$(ARCH).o + + COBJS := $(COBJS-y) diff --recursive -Nu u-boot-wandboard.orig/files/patch-examples_api_Makefile u-boot-wandboard/files/patch-examples_api_Makefile --- u-boot-wandboard.orig/files/patch-examples_api_Makefile 1969-12-31 17:00:00.000000000 -0700 +++ u-boot-wandboard/files/patch-examples_api_Makefile 2013-08-01 11:06:49.000000000 -0600 @@ -0,0 +1,11 @@ +--- examples/api/Makefile.orig 2013-04-19 09:25:43.000000000 -0500 ++++ examples/api/Makefile 2013-05-16 17:05:38.000000000 -0500 +@@ -69,7 +69,7 @@ + ######################################################################### + + $(OUTPUT): $(OBJS) +- $(LD) -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS) ++ $(LD) -static -Ttext $(LOAD_ADDR) -o $@ $^ $(PLATFORM_LIBS) + $(OBJCOPY) -O binary $@ $(OUTPUT).bin 2>/dev/null + + # Rule to build generic library C files diff --recursive -Nu u-boot-wandboard.orig/files/patch-include_configs_wandboard.h u-boot-wandboard/files/patch-include_configs_wandboard.h --- u-boot-wandboard.orig/files/patch-include_configs_wandboard.h 1969-12-31 17:00:00.000000000 -0700 +++ u-boot-wandboard/files/patch-include_configs_wandboard.h 2013-09-19 11:20:36.000000000 -0600 @@ -0,0 +1,30 @@ +--- include/configs/wandboard.h.orig 2013-08-01 12:41:56.000000000 -0600 ++++ include/configs/wandboard.h 2013-08-01 12:56:25.000000000 -0600 +@@ -47,6 +47,9 @@ + + #undef CONFIG_CMD_IMLS + ++#define CONFIG_CMD_ELF ++#define CONFIG_SYS_MMC_MAX_DEVICE 2 ++ + #define CONFIG_BOOTDELAY 5 + + #define CONFIG_SYS_MEMTEST_START 0x10000000 +@@ -54,6 +56,16 @@ + #define CONFIG_LOADADDR 0x12000000 + #define CONFIG_SYS_TEXT_BASE 0x17800000 + ++/* USB Configs */ ++#define CONFIG_CMD_USB ++#define CONFIG_CMD_FAT ++#define CONFIG_USB_EHCI ++#define CONFIG_USB_EHCI_MX6 ++#define CONFIG_USB_STORAGE ++#define CONFIG_MXC_USB_PORT 1 ++#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) ++#define CONFIG_MXC_USB_FLAGS 0 ++ + /* MMC Configuration */ + #define CONFIG_FSL_ESDHC + #define CONFIG_FSL_USDHC + diff --recursive -Nu u-boot-wandboard.orig/pkg-descr u-boot-wandboard/pkg-descr --- u-boot-wandboard.orig/pkg-descr 1969-12-31 17:00:00.000000000 -0700 +++ u-boot-wandboard/pkg-descr 2013-08-01 11:06:33.000000000 -0600 @@ -0,0 +1,18 @@ +U-Boot loader for BeagleBone and BeagleBone Black. + +This version is patched so that: + * ELF and API features are enabled + * U-Boot binary is called BB-UBOOT.IMG + * It loads env from BB-UENV.TXT (an empty file suffices) + * It loads BBONE.DTB if running on an older (white) BeagleBone, + or BBONEBLK.DTB if running on a BeagleBone Black + * By default, it loads ELF ubldr from file BBUBLDR to address 0x88000000 + +Note: prefixing the boot files with 'BB' allows building +images with boot bits for more than one board. + +For information about running FreeBSD on BeagleBone or BeagleBone Black, see + https://wiki.freebsd.org/FreeBSD/arm/BeagleBone + +For general information about U-Boot, see +WWW: http://www.denx.de/wiki/U-Boot --=-N6KpUAYlO/lXDkjp/owK--