From owner-freebsd-arm@freebsd.org Tue Oct 13 10:30:11 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 103ADA12E9B for ; Tue, 13 Oct 2015 10:30:11 +0000 (UTC) (envelope-from che@bein.link) Received: from mail.bein.link (bein.link [37.252.124.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CDF582F8 for ; Tue, 13 Oct 2015 10:30:10 +0000 (UTC) (envelope-from che@bein.link) Received: by mail.bein.link (Postfix, from userid 1001) id 43B871AF1A2; Tue, 13 Oct 2015 10:30:00 +0000 (UTC) Date: Tue, 13 Oct 2015 10:30:00 +0000 From: Maxim V Filimonov To: "freebsd-arm@freebsd.org" Subject: Re: Cubieboard2 (AllWinner A20) hangs on boot Message-ID: <20151013103000.GB30944@bein.link> Mail-Followup-To: Maxim V Filimonov , "freebsd-arm@freebsd.org" References: <1624600.Emhi2YBmRE@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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: Tue, 13 Oct 2015 10:30:11 -0000 On Tue, Oct 13, 2015 at 01:11:12AM -0300, Luiz Otavio O Souza wrote: > On 8 October 2015 at 19:49, Maxim V Filimonov wrote: > > Dear Everyone, > > > > I compiled the brand-new FreeBSD-CURRENT for my Cubieboard (following the > > instructions there: https://wiki.freebsd.org/FreeBSD/arm/Cubieboard) and tried > > to boot this, and that's what I'm stuck at: > > > > U-Boot 2013.07-07794-gc0f3b94 (Aug 15 2013 - 18:01:45) Allwinner Technology > > > > CPU: Allwinner A20 (SUN7I) > > Board: Cubieboard2 > > I2C: ready > > DRAM: 1 GiB > > MMC: SUNXI SD/MMC: 0 > > *** Warning - bad CRC, using default environment > > > > In: serial > > Out: serial > > Err: serial > > Net: emac > > Hit any key to stop autoboot: 0 > > sun7i#fatload mmc 0 0x40200000 kernel; go 0x40200100 > > reading kernel > > 8080052 bytes read in 890 ms (8.7 MiB/s) > > ## Starting application at 0x40200100 ... > > > > Can I do anything about this? > > > > Maxim, > > You should use the instructions at > https://wiki.freebsd.org/FreeBSD/arm/Allwinner > > The old wiki page is deprecated. > > The old instructions uses an u-boot that do not pass the DTB to > kernel, so you have to define 'options FDT_DTB_STATIC' in kernel > config file. > > Sorry for the misleading information in wiki, I've added a note there > WRT the new instructions. > Dear Luiz, Thank you for your kind reply. I have already managed to start FreeBSD on my board (and it runs much much better now; I suppose you're one of the people I want to thank for that). I used the "old" method defining "options FDT_DTB_STATIC". The only thing I'd like to add is that I also added "makeoptions FDT_DTS_FILE=cubieboard2.dts" to the kernel config in order to have it build. -- wbr, Maxim Filimonov