From owner-freebsd-arm@FreeBSD.ORG Sat Jul 27 16:18:04 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BBB52CD for ; Sat, 27 Jul 2013 16:18:04 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 95C8B2B4D for ; Sat, 27 Jul 2013 16:18:04 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r6RGHoYD083822; Sat, 27 Jul 2013 16:17:50 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id mvqu74uffi6spj4eb7pbm5atae; Sat, 27 Jul 2013 16:17:50 +0000 (UTC) (envelope-from kientzle@freebsd.org) From: Tim Kientzle Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/mixed; boundary="Apple-Mail=_60B5C2E3-2137-4A39-A560-FAD51804DC83" Subject: Re: Adding options to RPI-B Date: Sat, 27 Jul 2013 09:17:49 -0700 In-Reply-To: <877D7426-64E2-4451-AECC-073664A70AC1@freebsd.org> To: Rui Paulo , "freebsd-arm@freebsd.org" References: <2C57A72F-0CB3-41DF-B0E5-1509348128BD@freebsd.org> <42C259D6-F652-417A-80B5-536893D6D642@felyko.com> <25D75461-E6FB-43C3-86AE-A513B02FA00D@freebsd.org> <877D7426-64E2-4451-AECC-073664A70AC1@freebsd.org> Message-Id: <1B3F0A21-D982-4D0C-965D-16739DB27003@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: Sat, 27 Jul 2013 16:18:04 -0000 --Apple-Mail=_60B5C2E3-2137-4A39-A560-FAD51804DC83 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jul 24, 2013, at 10:07 PM, Tim Kientzle wrote: >=20 > On Jul 24, 2013, at 9:42 PM, Rui Paulo wrote: >=20 >> On 24 Jul 2013, at 21:22, Tim Kientzle wrote: >>=20 >>> I've never used loader.conf myself so please >>> let me know what you think is still missing. >>>=20 >>> According to the manpage for loader.conf, it seems >>> the key requirement is FICL support, and that is >>> enabled in ubldr on ARM. >>=20 >> We don't ship with a loader.rc capable of reading loader.conf. For an = example, see amd64/i386 where we load loader.4th from loader.rc and = loader.4th reads loader.conf. >=20 > Ah. I'll try installing the standard Forth files and > see what happens. Here's a proposed patch that installs all of the standard Forth files as part of ubldr on ARM. It does not install a loader.rc, however, so it should have no effect per se, other than putting a few more files on the image. I plan to commit this to the FreeBSD tree soon. If you're using Crochet, I also just pushed a change to Crochet so that it copies all the boot files provided by FreeBSD's build, instead of just picking out the ubldr and loader.help files. With the FreeBSD patch, this results in all of the Forth files actually being in the image. Again: A system built with these changes should function exactly the same since loader.rc is still not present. To enable loader.conf, first boot the system, then: $ cp /boot/loader.rc.sample /boot/loader.rc and reboot. With these changes, I've built and booted a BeagleBone image that does process loader.conf and seems none the worse for it. I still need to test on RPi; hope to do that this weekend. This should be enough for people to start experimenting with the beastie menu on RPi. Just copy the loader.rc from i386 and see what happens. ;-) Tim --Apple-Mail=_60B5C2E3-2137-4A39-A560-FAD51804DC83 Content-Disposition: attachment; filename=arm_uboot_include_forth_files.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="arm_uboot_include_forth_files.patch" Content-Transfer-Encoding: 7bit Index: src/sys/boot/arm/uboot/Makefile =================================================================== --- src/sys/boot/arm/uboot/Makefile (revision 253514) +++ src/sys/boot/arm/uboot/Makefile (working copy) @@ -134,7 +134,20 @@ mv ldscript.generated.tmp ldscript.generated; \ fi +.if !defined(LOADER_ONLY) .PATH: ${.CURDIR}/../../forth -FILES= loader.help +FILES+= loader.help loader.4th support.4th loader.conf +FILES+= screen.4th frames.4th beastie.4th +FILES+= brand.4th check-password.4th color.4th delay.4th +FILES+= menu.4th menu-commands.4th menusets.4th shortcuts.4th version.4th +FILESDIR_loader.conf= /boot/defaults +# Put sample loader.rc and menu.rc on disk but don't enable them +# by default. +FILES+= loader.rc +FILESNAME_loader.rc= loader.rc.sample +FILES+= menu.rc +FILESNAME_menu.rc= menu.rc.sample +.endif + .include --Apple-Mail=_60B5C2E3-2137-4A39-A560-FAD51804DC83 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=windows-1252 --Apple-Mail=_60B5C2E3-2137-4A39-A560-FAD51804DC83--