From owner-freebsd-arm@FreeBSD.ORG Sat May 2 16:14:00 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 96AA6E7C for ; Sat, 2 May 2015 16:14:00 +0000 (UTC) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 43E1118DC for ; Sat, 2 May 2015 16:13:59 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 41A2550F0B; Sun, 3 May 2015 01:13:51 +0900 (JST) Received: from artemis (unknown [172.18.0.21]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 27CA550F09; Sun, 3 May 2015 01:13:51 +0900 (JST) Message-ID: <6F344CF15E884BD18A98FBD97B07C79F@ad.peach.ne.jp> From: "Daisuke Aoyama" To: "Luiz Otavio O Souza" , "Andreas Schwarz" Cc: References: <028290c7462d8fcf63b07bfdbbd08897.squirrel@ikornapostur.1984.is> <04594F43-C6FD-4798-ACFF-8BB7179A905F@bsdimp.com> <5FD36BF9-2FAD-40ED-AE67-D8B1E3274CB1@gromit.dlib.vt.edu> <552FCD90.20401@foxvalley.net> <462bae1cb99.7f9417c1@mail.schwarzes.net> <46369db827.17451cd@mail.schwarzes.net> In-Reply-To: Subject: Re: FreeBSD 10.1 / 11 on a Raspberry Pi B+ / 2 ? Date: Sun, 3 May 2015 01:13:50 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP 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: Sat, 02 May 2015 16:14:00 -0000 Hi all, -------------------------------------------------- From: "Luiz Otavio O Souza" Sent: Friday, May 01, 2015 12:15 PM To: ; "Andreas Schwarz" Subject: Re: FreeBSD 10.1 / 11 on a Raspberry Pi B+ / 2 ? > On 30 April 2015 at 20:54, Andreas Schwarz wrote: >> On 22.04.15, Luiz Otavio O Souza wrote: >> >> Hi all, >> >>> Yes, that is right, we need a different u-boot for it. >>> >>> I'm working on the new u-boot, it's working already, its a matter of >>> tidy up the port and get everything in its place. >> >> New u-boot is there, but unfortunately I'm not successful yet. First, I've tried >> to upgrade my installation, building u-boot-rpi2 and the Kernel with RPI2 kernelconf >> (added the ARM_NEW_PMAP option). The new u-boot-rpi2 and ubldr seem to work and the >> kernel is loaded, but when the kernel should start/boot, the RPI2 shuts down suddenly, >> all LED are off, nothing. >> >> To keep sure that I don't make a mistake, I've build (independently from my installation) >> a completly new image, described in the Wiki (link below). But I run in the exacly same >> problem. >> >> https://wiki.freebsd.org/FreeBSD/arm/Raspberry%20Pi%202%20image >> >> >> Here is my rpi2 image, build by following the wiki instructions (it's not working for >> me). For security reasons I've removed my ssh pubkey from /root/.ssh/. >> >> http://dl.strcmp.org/rpi2-b-r282267.img.xz >> >> Maybe someone can check and confirm or deny the behavior. >> >> -Andreas > > Hi Andreas, > > If you are using the HDMI output this is expected, the framebuffer is > broken on RPi 2. > > It is because of the newer firmware version. > > I'm working on a fix, but vt seems.. different.. I hope to sort this > out and commit the fix ASAP. > > You can also use Crochet to build RPi 2 images (probably simpler). > > I'll send an heads up when it is ready for test. I get freeze if I remove "options SMP" from kernel config. Also freshly installed OS(VM in ESXi) and freshly installed crochet and src without any patch give me un-bootable image.... It seems current RPI2 code does not work with/without ARM_NEW_PMAP at least r282205. My host is r281389 (clang 3.6 version) which is same version of ODROID-C1 and RPI version on ESXi server. [root@fbs11 /usr/local/src/crochet]# uname -a FreeBSD fbs11 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r281389: Sat Apr 11 05:31:17 JST 2015 aoyama@fbs11.local:/usr/obj/usr/src/sys/GENERIC amd64 [root@fbs11 /usr/local/src/crochet]# cc -v FreeBSD clang version 3.6.0 (tags/RELEASE_360/final 230434) 20150225 Target: x86_64-unknown-freebsd11.0 [root@fbs11 /usr/local/src/crochet]# git show commit b9dd6083c630526a600c508b94bc9fa960620106 Merge: 0afbe99 1d6309a Author: Tim Kientzle Date: Mon Apr 27 19:05:19 2015 -0700 Merge pull request #106 from loos-br/master Add support to build images for Raspberry Pi 2 Console log on RPi2 shows: uhub0: on usbus0 mmcsd0: 2GB at mmc0 41.6MHz/4bit/65535-block bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF fb0: 640x480(0x0@0,0) 16bpp fb0: pitch 0, base 0xfdb64000, screen_size 614400 fbd0 on fb0 VT: initialize with new VT driver "fb". random: unblocking device. uhub0: 1 port with 1 removable, self powered (kernel stopped here) -- Daisuke Aoyama