From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 08:42:40 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8A584D3C for ; Fri, 9 Nov 2012 08:42:40 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm18-vm0.bullet.mail.ukl.yahoo.com (nm18-vm0.bullet.mail.ukl.yahoo.com [217.146.183.95]) by mx1.freebsd.org (Postfix) with ESMTP id F133D8FC0A for ; Fri, 9 Nov 2012 08:42:39 +0000 (UTC) Received: from [217.146.183.211] by nm18.bullet.mail.ukl.yahoo.com with NNFMP; 09 Nov 2012 08:42:33 -0000 Received: from [217.146.183.108] by tm4.bullet.mail.ukl.yahoo.com with NNFMP; 09 Nov 2012 08:42:33 -0000 Received: from [127.0.0.1] by smtp109.mail.ukl.yahoo.com with NNFMP; 09 Nov 2012 08:42:33 -0000 X-Yahoo-Newman-Id: 155262.14143.bm@smtp109.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 3nItc.AVM1lgLUpc1scjjpS6oIdsHJ8ukzSjZ0SrzXs5RBk aE2UI22EqTvpMkfKjrQO6u._.4U.YnS5SYktSTWRzWtKPOVhFDIXMJxzy.PB B3YlzYumAkncgnWnrINHVDG832D0ozr6Zi6MuDcYzr2K_ZM8inQbYA1SClEe N4rdh_g7dEmo_CBh3qERYnGjgiUTPvdsrWzqY_a.bLciawquoLnR81FeNRnU 2clYLHJ_z4X3dkRa6d.zE7p5LwAO_0J46nWsadlZFIyH1rNcMZxWAgA3sZTX 8x2U5QbSkDcLyAj3NrkTEZRLjwcqY7Bdp51geIazcPM7v6JODWIxWLWLyR2K tReQYe_0YMTQ.ZOa8ubU.NlrWUBEXAmwmdzWkUcal_kM9j0NeseDVADZzUxp ze6qoS3pEsJKVfQgWO1U5BtHtUP2YZfgcrYgRQbIKeaAQKMLQ3zOz0HJ5oW0 8txAFGitNBZGEfA.1.peZ8I6p5SkaFdQUHrEp.2PqgswV2aF7OLkpxPX4egu 043zQsvLG1mgbMhB_YNmZMPq3G8rOduukb3DVujWYkNoNxyWw2.dR0Yrdnz6 ESecMWN53X9TaQ36GhS1khzEhN.N8xHXrpfN5FOH.6.Ti X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.11] (se@87.158.17.230 with plain) by smtp109.mail.ukl.yahoo.com with SMTP; 09 Nov 2012 00:42:33 -0800 PST Message-ID: <509CC1F6.1010308@freebsd.org> Date: Fri, 09 Nov 2012 09:42:30 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: Tim Kientzle , freebsd-hackers@freebsd.org Subject: Re: FreeBSD on RaspberryPi References: <31C904E6-F230-4187-AE32-F9A7B1A7C38E@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2012 08:42:40 -0000 Am 09.11.2012 05:44, schrieb Tim Kientzle: >> On Wed, Nov 7, 2012 at 6:01 PM, Tim Kientzle wrote: >> WARNING: This is still highly experimental and by no >> means ready for "production use", ... >> >> To boot FreeBSD on your RaspberryPi, you'll need: >> 1) A RaspberryPi. >> 2) A serial cable similar to this one: www.adafruit.com/products/954 > > > On Nov 8, 2012, at 9:13 AM, Sami Halabi wrote: >> >> why the console cable is needed ? >> > As far as I can tell, the code in FreeBSD-CURRENT > does not yet support the video out. So you need > a serial console cable to interact with it. All it takes to get the framebuffer working is that the hash chars are removed. I.e. the following works: device sc device kbdmux options SC_DFLT_FONT # compile font in makeoptions SC_DFLT_FONT=cp437 > You might be able to interact via SSH but > that requires a little bit more setup (a root > password needs to be set and you need to > edit /etc/ssh/sshd_config to allow root logins). I used SSH, and the framebuffer helps to see how far the boot process has come. It takes about 60 seconds to generate the SSH host keys, for example. [The following points are not specific to the R-PI, and I'm sure you know them, but I list them for others that may want to use their R-PI without serial console.] In order to use SSH I modified sshd_config to accept direct root logins. The root password must be set (best method: "vipw -d /mnt/etc", else you must remember to invoke "pwd_mkdb -d /mnt/etc" when you are done). The host name and IP address should be set in rc.conf (or assigned via DHCP). If you do not want to enable direct root login, then a non-privileged account in group wheel is required to be able to "su" to root. That's all I remember ... I used the build script from "http://kernelnomicon.org/?p=164" with one slight modification (tar -x ... --no-same-owner ...). My R-PI kernel contains MSDOSFS and NFS client support to allow it to mount its boot partition and NFS exported /usr/src, /usr/obj, /usr/ports and /usr/work (where I build ports). Most of them are R/O mounts. I have not tried to build world on the R-PI (cross building is so much faster ...). But ports can be build, if a swap partition is available (e.g. on SD card or via NFS - I did not try to mount a USB stick, but that might be another option). Regards, STefan