From owner-freebsd-arm@freebsd.org Mon Apr 18 15:56:03 2016 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 90766B12D43 for ; Mon, 18 Apr 2016 15:56:03 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 010701B32 for ; Mon, 18 Apr 2016 15:56:02 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 0efba132; Mon, 18 Apr 2016 17:49:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=KS7dFi/imZ1qbvsyg1kqYeNRPxU=; b=Tfyq0SrqG6n9h3PES5n2zXStJ0fC S+5z+EQK1r5EZdIEvTZMIN6Zt/pcRCTT6pd7p6XrlCzqHnLJGmKtBX83gn++U4IO N7SQX/Ye4KDMEwo9vLdEfsMuqjERPjYf+atTtDpaj60KYewzw/QyOvm2Xve2fk7a 5RI3JYe+3Ow+7C4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=NEeqZp+SFjOlROqcaRnasqNPN7nafjn+2s1PIqmQ33SPybxJgg80eN76 4qnrcWwbdVcp/Usp/am8a6ZEdL+etqRKbQMvSB1zn6ix+fodOfT4hmxdPA0MYa0p jqbUrpce1Dxa+546r8g4mFuTIWX6PSaHa7hLbe5HLxN5t/UsklE= Received: from knuckles.blih.net (ip-54.net-82-216-203.roubaix.rev.numericable.fr [82.216.203.54]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 353a23d6 TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 18 Apr 2016 17:49:19 +0200 (CEST) Date: Mon, 18 Apr 2016 17:49:18 +0200 From: Emmanuel Vadot To: Milan Obuch Cc: Russell Haley , freebsd-arm@freebsd.org, Erich Dollansky Subject: Re: Orange Pi One Message-Id: <20160418174918.33d3d19e4105eb737d17b122@bidouilliste.com> In-Reply-To: <20160418094916.10dc9ae8@zeta.dino.sk> References: <20160413232414.3a37907e@zeta.dino.sk> <20160414062820.7b907ba9@X220.alogt.com> <20160414064405.202e4eef@zeta.dino.sk> <20160418094916.10dc9ae8@zeta.dino.sk> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 15:56:03 -0000 On Mon, 18 Apr 2016 09:49:16 +0200 Milan Obuch wrote: > On Wed, 13 Apr 2016 22:51:09 -0700 > Russell Haley wrote: > > > On Wed, Apr 13, 2016 at 9:44 PM, Milan Obuch > > wrote: > > > On Thu, 14 Apr 2016 06:28:20 +0800 > > > Erich Dollansky wrote: > > > > > >> Hi, > > >> > > >> On Wed, 13 Apr 2016 23:24:14 +0200 > > >> Milan Obuch wrote: > > >> > > >> > today I got this cheap board. After verifying it works with > > >> > provided linux based image I am trying to put FreeBSD on it. I > > >> > would like to understand boot process, but I did not find much > > >> > info yet. > > [ snip ] > > > >> I think, all you want to know is u-boot. Sources for it are > > >> available. Just ask your search engine where to find it. > > >> > > >> Erich > > > > > > Well, I am going to investigate /sysutils/u-boot-* ports for some > > > guidance - I think this should be a bit easier for me and, probably, > > > helpfull a bit for others if I succeed. Basically you are right - > > > this board uses u-boot, so I need to learn a bit more about it. > > > > The cubieboard (Allwinner) u-boot seems to use the mainline denx code > > with some significant patches. The cubieboard2 just references the > > original cubieboard. > > > > Russ > > Hi, > > after some struggling I am able to produce working u-boot. With working > serial console, I see following when powering up the Orange Pi: > > U-Boot SPL 2016.01 (Apr 17 2016 - 10:18:49) > DRAM: 512 MiB > Trying to boot from MMC > > > U-Boot 2016.01 (Apr 17 2016 - 10:18:49 +0200) Allwinner Technology > > CPU: Allwinner H3 (SUN8I) > DRAM: 512 MiB > WARNING: Caches not enabled > MMC: SUNXI SD/MMC: 0 > reading u-boot.env > > ** Unable to read "u-boot.env" from mmc0:1 ** > Using default environment > > In: serial > Out: serial > Err: serial > Net: No ethernet found. > starting USB... > No controllers found > Hit any key to stop autoboot: 0 > Booting from: mmc 0 ubldr > reading ubldr > ** Unable to read file ubldr ** > => > > So now it looks like I casn use neither ethernet nor USB boot, but as > long as SD is readable, which looks like it is, and after 'saveenv' on > u-boot prompt, it reduces a bit to > > U-Boot SPL 2016.01 (Apr 17 2016 - 10:18:49) > DRAM: 512 MiB > Trying to boot from MMC > > > U-Boot 2016.01 (Apr 17 2016 - 10:18:49 +0200) Allwinner Technology > > CPU: Allwinner H3 (SUN8I) > DRAM: 512 MiB > WARNING: Caches not enabled > MMC: SUNXI SD/MMC: 0 > reading u-boot.env > In: serial > Out: serial > Err: serial > Net: No ethernet found. > starting USB... > No controllers found > Hit any key to stop autoboot: 0 > Booting from: mmc 0 ubldr > reading ubldr > ** Unable to read file ubldr ** > => > > I think now it's time to build ubldr, kernel and world for this board. > > This is just to let interested parties on partial success, if somebody > would like get some more details, just let me know. Just be prepared > for some dirty tricks used to overcome some issues :) > > Regards, > Milan > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" You should have a working kernel with this: https://github.com/evadot/freebsd/tree/h3 The code used to work before the clk bit were commited, I haven't tested since. This doesn't support SMP as I haven't looked at the cpu power clamp yet. And detailed on how you had uboot compiled could always be intersting :) -- Emmanuel Vadot