From owner-freebsd-arm@freebsd.org Sun Aug 2 23:13:48 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBC739B1DE7 for ; Sun, 2 Aug 2015 23:13:47 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id D017DA3D for ; Sun, 2 Aug 2015 23:13:47 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sun, 2 Aug 2015 23:12:47 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t72NCdvV014415; Sun, 2 Aug 2015 17:12:39 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1438557159.50703.7.camel@freebsd.org> Subject: Re: Hummingboard u-boot not loading? From: Ian Lepore To: Russell Haley Cc: freebsd-arm Date: Sun, 02 Aug 2015 17:12:39 -0600 In-Reply-To: References: <20150728173831.229400355e485fa511ca388b@ulrich-grey.de> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Aug 2015 23:13:48 -0000 The compiler used by the u-boot ports got upgraded to gcc 5, and the old u-boot source can't be compiled with that. We need a new cross-compiler port that brings back gcc 4.9.whatever it was using, and the u-boot ports need to be updated to reference that. I've been way too busy with $work stuff to look into it in detail. As to the existing package not working, I think I glitched the board-detection code, which causes it to not come up with the right fdt file for the board. It should be possible to workaround by either doing setenv fdt_file imx6dl-hummingboard.dtb saveenv Or you could create a uEnv.txt file in the FAT filesystem on the sd with fdt_file=imx6dl-hummingboard.dtb (of course use the right imx6q or 6dl and hummingboard vs cubox for your system). -- Ian On Fri, 2015-07-31 at 23:03 -0700, Russell Haley wrote: > Hi Guys, > > I'm still really stalled out on u-boot-cubox-hummingboard right now. > I'm trying to get a new hummingboard i2eX board running (dual core > IMX6). The only thing I can think of is the pkg binary was built with > a quad-core configuration in the SPL portion of the code but I can't > confirm that cause I STILL don't know what I am doing with u-boot > cross compilation. > > I am running the hummingboard pro with a dual core i2eX SOM. I also > can't get the code from the ports tree to build and get the error from > the email below. I think the last time Ian worked through this with me > is because I was trying to build u-boot with cross tools from 11 but > my kernel and installed verison is 10 (I'm in a jail). Unfortuantely, > I am just "throwing mud at a wall" at this point to see if something > sticks. > > Any suggestions or help would be great. > > Thanks, > > Russ > > On Tue, Jul 28, 2015 at 11:05 AM, Russell Haley wrote: > > ---------- Forwarded message ---------- > > From: Russell Haley > > Date: Tue, Jul 28, 2015 at 11:05 AM > > Subject: Re: Hummingboard u-boot not loading? > > To: Ulrich Grey > > > > > > boo hooo hooo... I just want to boot my new toy! lolz :D > > > > Okay, I guess I will delete my ports tree and try and get a previous > > version from svn? Glad I'm doing this in a jail... > > > > On Tue, Jul 28, 2015 at 10:38 AM, Ulrich Grey wrote: > >> > >>> In file included from > >>> /usr/ports/sysutils/u-boot-cubox-hummingboard/work/u-boot-imx6-e4bc4c3/include/linux/compiler.h:40:0, > >>> from > >>> /usr/ports/sysutils/u-boot-cubox-hummingboard/work/u-boot-imx6-e4bc4c3/include/linux/byteorder/little_endian.h:12, > >>> from > >>> /usr/ports/sysutils/u-boot-cubox-hummingboard/work/u-boot-imx6-e4bc4c3/include/asm/byteorder.h:29, > >>> from > >>> /usr/ports/sysutils/u-boot-cubox-hummingboard/work/u-boot-imx6-e4bc4c3/include/compiler.h:112, > >>> from > >>> /usr/ports/sysutils/u-boot-cubox-hummingboard/work/u-boot-imx6-e4bc4c3/include/image.h:19, > >>> from > >>> /usr/ports/sysutils/u-boot-cubox-hummingboard/work/u-boot-imx6-e4bc4c3/include/common.h:100, > >>> from lib/asm-offsets.c:15: > >>> /usr/ports/sysutils/u-boot-cubox-hummingboard/work/u-boot-imx6-e4bc4c3/include/linux/compiler-gcc.h:93:30: > >>> fatal error: linux/compiler-gcc5.h: No such file or directory > >>> compilation terminated. > >>> Makefile:746: recipe for target 'lib/asm-offsets.s' failed > >>> gmake[1]: *** [lib/asm-offsets.s] Error 1 > >> > >> After I have updated the portstree I get the same errors. > >> I guess this is related to devel/arm-none-eabi-gcc. It's now version 5.2.0. > >> Version 4.9.2_4 works for me.