From owner-freebsd-arm@freebsd.org Wed Apr 13 22:13:49 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 75881B0F873 for ; Wed, 13 Apr 2016 22:13:49 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0:400c:c05::236]) (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 22263144A for ; Wed, 13 Apr 2016 22:13:49 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x236.google.com with SMTP id e185so88448834vkb.1 for ; Wed, 13 Apr 2016 15:13:49 -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=q3N0HFegq7AWNSCy1oeMZKwQyjwsxhui0qUKuycc7Lk=; b=uYnJZ5JwSCRO6w43FxyONBAZKBlUmrPUejpi1zIPei+qgymEfllffU6ZU/Vc6ulTXN WSHQ1xU1eVDc0nbrNkbuLfSWyyFGcC34/RgQdfmDCRz78KMPU6+nR8TBp2F07yFDAsag TwRCa9Gwskf/D4dP3yUz/sCSS7mvdIdBOUU2xYT+NtNHmyEGKL7cnWWcBOUr0ouRcMGt slEFm+u562F3kBOvtmIKiI5NpRXMQfEmkQPxUKGQguXAQZkoINMMIZh+w2ZqTpukOMuE Fh4XQ8eWKHkTYtsGM2YVcPaVuOSRzIoa3iE2PN3r1oLAnNEQX28+hN3dUssv6+glJmNX b4fg== 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=q3N0HFegq7AWNSCy1oeMZKwQyjwsxhui0qUKuycc7Lk=; b=kqbhygt3lyhC18AgW+OIjlOLrJF6j09Gmm3CO2iHWDrrZjuVkh4aa2+ALIsb55k8Dl eFPLQe5h8Fi+MiYsqvOazbAXq564iu+ib5RUy7hCySSjteGR2Bfn9t46d7MARqBUKTrZ FYy9PxwslYmJuNQeiGPWKghVPGm/nMDmCP1sRlpT4Popm4wrU1XGeEbfAsjaHv1WD/+R Cve2vl2FwMkMFTp878u3eVLI5Pvk9sHApgeD8UDwc459u1bDrYGbGfx3G73R3g3RRhZ+ IFtXImazztlcQvs7D+2YzjWmFzgxjM/MYDYB4k2BUxAY5MS+2oSgWXmVbbdswIXbEtQn COsQ== X-Gm-Message-State: AOPr4FXxq8TQ4TKQcs7tONTgcLFIXYXoqoztuweHWBR0kaUBJyn4YlEFM20I3PbgNoXb2MJLFtCi/2awfiL28w== MIME-Version: 1.0 X-Received: by 10.31.8.142 with SMTP id 136mr6106096vki.14.1460585628201; Wed, 13 Apr 2016 15:13:48 -0700 (PDT) Received: by 10.31.54.13 with HTTP; Wed, 13 Apr 2016 15:13:48 -0700 (PDT) In-Reply-To: <20160413232414.3a37907e@zeta.dino.sk> References: <20160413232414.3a37907e@zeta.dino.sk> Date: Wed, 13 Apr 2016 15:13:48 -0700 Message-ID: Subject: Re: Orange Pi One From: Russell Haley To: Milan Obuch Cc: freebsd-arm Content-Type: text/plain; charset=UTF-8 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: Wed, 13 Apr 2016 22:13:49 -0000 On Wed, Apr 13, 2016 at 2:24 PM, Milan Obuch wrote: > Hello, > > 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. > > Analysing image I see there are two partitions, first one being FAT > despite gpart telling both partitions are linux-data... and it seems > there are just two files important, script.bin and uImage in root > directory. It seems to be somewhat explained here: http://linux-sunxi.org/Manual_build_howto script.bin is a hardware description file and uImage is (of course) the Linux kernel. It sounds like the specific instance of u-boot for the Orange-pi is maintained by the sunxi group and loads the kernel directly from fat instead of from the rootfs. The specifics of your board seem to be here: http://linux-sunxi.org/Xunlong_Orange_Pi_One After some poking the FreeBSD info is here: http://linux-sunxi.org/FreeBSD What a nice little community page. Sure makes Allwinner specific stuff easy to find! > As both files are binary, there is nothing more to reveal from cursory > view and I am going to look for more details on www.orangepi.org page, > just would like to know if someone already did something. If yes, > please let me know - I have no problem building kernel and userland > binaries, but first I need to get a way to load kernel... It doesn't look like the Allwinner H family of processors is supported at all by FreeBSD. http://linux-sunxi.org/FreeBSD and my limited hardware understanding tells me it's a very different beast from the A10/A20 (meaning lots of work to port). https://en.wikipedia.org/wiki/Allwinner_Technology BUT if you're interested, here is the starting page for Allwinner stuff: https://wiki.freebsd.org/FreeBSD/arm/Allwinner Either way, I'll hazard a guess that if you can place the FreeBSD kernel in the fat partition and update the u-boot environment variables with the file name and address, you may be able to get a kernel to load but that's just the first hurdle because (probably) nothing is going to work. Cheers, Russ