From owner-freebsd-arm@freebsd.org Mon Apr 18 18:40:42 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 2B202B129AB for ; Mon, 18 Apr 2016 18:40:42 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E5F9F1113 for ; Mon, 18 Apr 2016 18:40:41 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x235.google.com with SMTP id e185so230972838vkb.1 for ; Mon, 18 Apr 2016 11:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=D14r9rVVfBu1IMfRmraOcWVkuCxw1T3wVtdMLy0gII4=; b=evlusT3NcW8wTm9KSis/6qDLjHRPtJ2SxhQnr2XRgdnrsB50QF2zdlDbF/zmzH4QMT Uh4CNG49DdZet4fRiLXt+Ye9d/6XYJ3BWs8MOrRXXgJovYSdNfM57qvTEPxHcXyTeYXw qnaRjXUnpTAjM+4atj4cR9ggpV2G5j/Ygn1nqch/08KAB53jNxFRFWgTtMV/ZaWj0VwM S1sf29Nn78n7fBSVek9Vrr5SC99TN8aN3j0VlMJQSxRYJVvYfbbg2xIGpcA2zjdYAoPz xT1VIgUgiJrLdjAveZUNGaCjuw8xc1b95Owq9Gv7omQ01zaQXAEk0/C+vIM0TwtERv2e mpQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=D14r9rVVfBu1IMfRmraOcWVkuCxw1T3wVtdMLy0gII4=; b=VwHZyY68hcEateh0qOkMhQdO2377B2PMjdMn8jVBbdhGX/fYVD0YPjSwCf45bJD+XA t3cqFviLyr7rRXHJ8CZVavtidlpYIGffc21RV4x0ka0CkzsZIyiksAJIpUFGP11N72Xo 3QEYhXNC1IAP07weAhOhn6OpkZxl3NfGNiGiA3P0uB4dD1O9PLI+UCeco0AdZfJyqLbc LFDVR2hkeEOPplgGv3P9WauzkDOGXq2N9dqcyydp9ysUvbGpHjePQwCW5AxH456KVgKR UvHSuXryG/eaTNJu297Bgk8Fh1VmWrRPZYtCDz3fmvYVl+zmMkWhz52lqHynQMq+1I+6 9F4A== X-Gm-Message-State: AOPr4FXplnDBI0kYDsr9C6FXA8ESbwszB97hQ6krKQxQkk/aLCRtSHsEzBRYX5QlKEPT4J/2KRBfP1bTz/BPbA== MIME-Version: 1.0 X-Received: by 10.31.45.143 with SMTP id t137mr18762289vkt.143.1461004840978; Mon, 18 Apr 2016 11:40:40 -0700 (PDT) Received: by 10.31.94.66 with HTTP; Mon, 18 Apr 2016 11:40:40 -0700 (PDT) In-Reply-To: <20160418174918.33d3d19e4105eb737d17b122@bidouilliste.com> References: <20160413232414.3a37907e@zeta.dino.sk> <20160414062820.7b907ba9@X220.alogt.com> <20160414064405.202e4eef@zeta.dino.sk> <20160418094916.10dc9ae8@zeta.dino.sk> <20160418174918.33d3d19e4105eb737d17b122@bidouilliste.com> Date: Mon, 18 Apr 2016 11:40:40 -0700 Message-ID: Subject: Re: Orange Pi One From: Russell Haley To: Emmanuel Vadot Cc: Milan Obuch , freebsd-arm , Erich Dollansky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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 18:40:42 -0000 On Mon, Apr 18, 2016 at 8:49 AM, Emmanuel Vadot wrote: > 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 :) > Congrats and great work! I am also very curious on how you got u-boot up so fast. There are specific build options that are required for u-boot to load ubldr (or so I've been told), but you may know this already. If you haven't said anything I will look for the info in my email tonight. Russ