From owner-freebsd-arm@freebsd.org Sat May 14 15:05:20 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 07AAAB3B22F for ; Sat, 14 May 2016 15:05:20 +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 7571B1989 for ; Sat, 14 May 2016 15:05:18 +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 03c1671f; Sat, 14 May 2016 17:05:09 +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=gCDYlS2wOGU/ZyZDgxhC421ANJo=; b=J6rGGcnLmSdzl3pDgAPyjETJ3E+7 Wu7pvzHsZ873cfoFLOrIHyBTavHPWho0aD34LWQnWbTWCKgU2qxlhy+Emji6Z78g e84tCEjbuyE7S+U6yiII5gtnu6YfjG296WvRxURud1npc6JAvFf+HsawItgAYiqQ eKeq+tXx8uH7X6k= 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=s2IDhas8E00rRXoOK18S2Fhu5fuqY7YKBE6xmCyEXrwmSoxJi0XlE0sW T2ICYnPn9dvk/IdvZ7QkJ5Azxznt87d6GthA7bjGtSRwZZY9Bz/7EaYr0PtIW3bw lgNFqv5N8lhjN27OzdUVZK7TWXfMJvnbJyrWMoNtYRrfhDQxB5I= 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 fc278df6 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Sat, 14 May 2016 17:05:09 +0200 (CEST) Date: Sat, 14 May 2016 17:05:08 +0200 From: Emmanuel Vadot To: Daniel Braniss Cc: freebsd-arm Subject: Re: Orange Pi One Message-Id: <20160514170508.e00ce11728401717cef4a3c4@bidouilliste.com> In-Reply-To: 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> <20160418210108.4047c526@zeta.dino.sk> <20160419092012.0ad4ad2d@zeta.dino.sk> <20160419093408.2f6d8d6472b09298f1e08ecb@bidouilliste.com> <20160419095358.351c74b3@zeta.dino.sk> <20160419121326.86a991f54efa7fa6e10ceb4f@bidouilliste.com> 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.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2016 15:05:20 -0000 On Mon, 2 May 2016 16:08:36 +0300 Daniel Braniss wrote: > > > On 19 Apr 2016, at 13:13, Emmanuel Vadot wrote: > > > > > > With the help of Milan I managed to boot FreeBSD on my OrangePi One (using the OrangePi Plus DTS): > > > > KDB: debugger backends: ddb > > KDB: current backend: ddb > > Copyright (c) 1992-2016 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights reserved. > > FreeBSD is a registered trademark of The FreeBSD Foundation. > > FreeBSD 11.0-CURRENT #8 7a08e49(h3)-dirty: Tue Apr 19 11:44:25 CEST 2016 > > elbarto@knuckles.blih.net:/usr/home/elbarto/Work/freebsd-obj/arm.armv6/usr/home/elbarto/Work/freebsd.git/sys/H3 arm > > FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) > > WARNING: WITNESS option enabled, expect reduced performance. > > VT: init without driver. > > CPU: Cortex A7 rev 5 (Cortex-A core) > > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > > WB enabled LABT branch prediction disabled > > LoUU:2 LoC:3 LoUIS:2 > > Cache level 1: > > 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc > > 32KB/32B 2-way instruction cache Read-Alloc > > Cache level 2: > > 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > > real memory = 536870912 (512 MB) > > avail memory = 511164416 (487 MB) > > random: entropy device external interface > > kbd0 at kbdmux0 > > ofwbus0: > > aw_ccu0 on ofwbus0 > > clk_fixed0: on aw_ccu0 > > clk_fixed1: on aw_ccu0 > > aw_pll0: mem 0x1c20000-0x1c20003 on aw_ccu0 > > clk_fixed2: on aw_ccu0 > > aw_pll1: mem 0x1c20028-0x1c2002b on aw_ccu0 > > clk_fixed3: on aw_ccu0 > > clk_fixed4: on aw_ccu0 > > aw_cpuclk0: mem 0x1c20050-0x1c20053 on aw_ccu0 > > aw_axiclk0: mem 0x1c20050-0x1c20053 on aw_ccu0 > > aw_ahbclk0: mem 0x1c20054-0x1c20057 on aw_ccu0 > > aw_apbclk0: mem 0x1c20054-0x1c20057 on aw_ccu0 > > aw_apbclk1: mem 0x1c20058-0x1c2005b on aw_ccu0 > > aw_gate0: mem 0x1c20060-0x1c20073 on aw_ccu0 > > aw_mmcclk0: mem 0x1c20088-0x1c2008b on aw_ccu0 > > aw_mmcclk1: mem 0x1c2008c-0x1c2008f on aw_ccu0 > > aw_mmcclk2: mem 0x1c20090-0x1c20093 on aw_ccu0 > > simplebus0: on ofwbus0 > > aw_reset0: mem 0x1c202c0-0x1c202cb on simplebus0 > > aw_reset1: mem 0x1c202d0-0x1c202d3 on simplebus0 > > aw_reset2: mem 0x1c202d8-0x1c202db on simplebus0 > > regfix0: on ofwbus0 > > regfix1: on ofwbus0 > > regfix2: on ofwbus0 > > gic0: mem 0x1c81000-0x1c81fff,0x1c82000-0x1c82fff,0x1c84000-0x1c85fff,0x1c86000-0x1c87fff irq 10017 on simplebus0 > > gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b irqs 160 > > generic_timer0: irq 10000,10001,10002,10003 on ofwbus0 > > Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 > > Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 > > rtc0: mem 0x1f00000-0x1f00053 irq 10018,10019 on simplebus0 > > cpulist0: on ofwbus0 > > cpu0: on cpulist0 > > cpu1: on cpulist0 > > cpu2: on cpulist0 > > cpu3: on cpulist0 > > a10_mmc0: mem 0x1c0f000-0x1c0ffff irq 10005 on simplebus0 > > mmc0: on a10_mmc0 > > aw_wdog0: mem 0x1c20ca0-0x1c20cbf irq 10012 on simplebus0 > > uart0: mem 0x1c28000-0x1c283ff irq 10013 on simplebus0 > > uart0: console (961538,n,8,1) > > cryptosoft0: > > Timecounters tick every 10.000 msec > > mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block > > WARNING: WITNESS option enabled, expect reduced performance. > > Trying to mount root from ufs:/dev/ufs/rootfs [rw]... > > random: unblocking device. > > > > Not a lot of devices are presents but it's the same in the DTS. I'll probably add today (maybe tomorow) the gpio padconf and I'll look at the CPU power clamp soon to add SMP. > > > > The code is in my github branch : https://github.com/evadot/freebsd/tree/h3 > > > > For those interested I've put the file available : > > - https://www.bidouilliste.com/freebsd/orangepi-plus (The kernel) > > - https://www.bidouilliste.com/freebsd/orangepi-plus.dtb > > - https://www.bidouilliste.com/freebsd/orangepi-plus-uboot-201601.bin (Provided by Milan) > > > > my SoC just arrived, so is there a .img I can pull to check if all is ok before I start compiling/building? > > cheers, > danny Hello, Sorry no image for now. I've commited the code into HEAD yesterday (minus the dts) so the easiest way is to grab a copy of it and compile a kernel. For u-boot you can use the one from previous mail or compile one your self from u-boot-201601 (using the orangepi-pc config). For creating a SD image if you don't want to do all the steps you can just take a recent snapshot for BANANAPI and override u-boot and kernel. The DTS haven't been commited because they come from u-boot and it will make import from linux harder, you can use my tree from github for the orangepi-one which include the DTS : https://github.com/evadot/freebsd/tree/orangepi-one -- Emmanuel Vadot