From owner-freebsd-arm@FreeBSD.ORG Mon Dec 31 18:48:40 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D994BFC for ; Mon, 31 Dec 2012 18:48:40 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id AA4368FC0C for ; Mon, 31 Dec 2012 18:48:39 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id qBVImcWl015078; Mon, 31 Dec 2012 18:48:38 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id v38mdc4upx3676hamdvufr6zre; Mon, 31 Dec 2012 18:48:38 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: FreeBSD on Raspberry Pi 512MB (with U-Boot + ubldr) From: Tim Kientzle In-Reply-To: Date: Mon, 31 Dec 2012 10:48:37 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3988C1622A974F19A9D3888F0334FF10@ad.peach.ne.jp> <046DA83A0A7B4B489B3FD4471A3ACD98@ad.peach.ne.jp> <50DF7A65.7090604@bluezbox.com> <7F539D6B-583E-4E74-9F08-3717B827F1B8@kientzle.com> To: Dave Cheney , freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.1283) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2012 18:48:40 -0000 Thanks for the reminder. I had intended to re-enable devd. I just committed that change. I'm reluctant to use SYNCDHCP because of the boot-time consequences. It should only be needed by people attaching their RPi to fairly sophisticated networks, which I doubt will be the norm. However, there are a couple of all-purpose hooks for local customizations. 1) Provide your own rc.conf as work/overlay/etc/rc.conf The contents of work/overlay are copied on top of the image after the script has done all of the routine build steps. You can build or copy this file within your config.sh. 2) Define a customize_freebsd_partition function. This function always runs exactly last, just before the FreeBSD partition is unmounted. For example, you can add the following lines to your config.sh: customize_freebsd_partition ( ) { echo 'ifconfig_ue0=3D"SYNCDHCP"' >> $1/etc/rc.conf } ($1 is the root of the mounted FreeBSD partition at this point in time.) I think the above is all documented in config.sh.sample; do you see any way to improve that documentation? Tim On Dec 30, 2012, at 9:10 PM, Dave Cheney wrote: > Hi Tim, >=20 > I tried to build a Pi image using your latest scripts but ran into a > problem DHCP'ing the image. It might be because devd is not enabled by > default, but irrespective, could I encourage you to use SYNCDHCP on > the Pi images ? >=20 > Cheers >=20 > Dave >=20 > On Sun, Dec 30, 2012 at 2:28 PM, Tim Kientzle = wrote: >>=20 >> On Dec 29, 2012, at 3:19 PM, Oleksandr Tymoshenko wrote: >>=20 >>> On 12/29/2012 2:38 PM, Tim Kientzle wrote: >>>> On Dec 1, 2012, at 3:26 AM, Daisuke Aoyama wrote: >>>>=20 >>>>>> You can try my test version from: >>>>>> http://www.peach.ne.jp/archives/rpi/freebsd-pi-20121201.img.gz >>>>>>=20 >>>>>> SHA256 (freebsd-pi-20121130.img.gz) =3D = a4159301e2d7564ef065aa4c3d6afaef3284cc3ace1ae7c146aaea9e18ec0457 >>>>>> SHA256 (freebsd-pi-20121201.img.gz) =3D = 7a0b8bcda7f70c39b259811c12854fcf856af7e18436e9beb0c2fa25a7fdb0e0 >>>>>>=20 >>>>>> Using config is here: >>>>>> http://www.peach.ne.jp/archives/rpi/config/RPI-B-test3 >>>>> If you have a problem such as "Unrecognized filesystem type", = please try this version: >>>>>=20 >>>>> http://www.peach.ne.jp/archives/rpi/test/uboot-20121201.img >>>>> SHA256 (uboot-20121201.img) =3D = 9218f3ce3a09b012eb250c044df9ed835929c207f3c3f89b21bfe249ef639a0f >>>>>=20 >>>>> Rename it to uboot.img, then copy it to the SD you created. >>>> Could you please send me the patches you used for this >>>=20 >>> I might be wrong but I think it just disables HS mode for SDHCI. >>> Something like this: >>> http://people.freebsd.org/~gonzo/patches/u-boot-pi-nohs.diff >>>=20 >>=20 >> Thank you! That's what I was looking for. >>=20 >> My scripts are now updated to support the new boot >> process. In particular, they build U-Boot from source, >> build the VideoCore elements, and properly assemble >> all of the new boot bits. >>=20 >> https://github.com/kientzle/freebsd-beaglebone >>=20 >> The following config.sh should be sufficient to build a >> working RaspberryPi image from -CURRENT: >>=20 >> ----------------------------- >> board_setup RaspberryPi >> SD_SIZE=3D$((1500 * MB)) >> #INSTALL_USR_SRC=3Dyes >> #INSTALL_USR_PORTS=3Dyes >> ----------------------------- >>=20 >> Tim >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org"