Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2013 09:17:49 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Rui Paulo <rpaulo@felyko.com>, "freebsd-arm@freebsd.org" <arm@freebsd.org>
Subject:   Re: Adding options to RPI-B
Message-ID:  <1B3F0A21-D982-4D0C-965D-16739DB27003@freebsd.org>
In-Reply-To: <877D7426-64E2-4451-AECC-073664A70AC1@freebsd.org>
References:  <CALCpEUEV2woA3qmQEGQCR0tZ%2B2fMX0xObw3b4F8_MDh51mODDw@mail.gmail.com> <CAJ-Vmoni3HTEsxXPh=7mrqJkZbX%2B6gPyAbaC7_P6F3m-E1H%2Bvg@mail.gmail.com> <2C57A72F-0CB3-41DF-B0E5-1509348128BD@freebsd.org> <42C259D6-F652-417A-80B5-536893D6D642@felyko.com> <25D75461-E6FB-43C3-86AE-A513B02FA00D@freebsd.org> <BB6A8DE9-EB00-4F8E-BADB-D9543D6C33A8@felyko.com> <BEDFAA8C-A1E1-4993-AC12-61F4E5941C44@freebsd.org> <AFE1E912-8450-4C24-A6E3-9B2543CEED24@felyko.com> <877D7426-64E2-4451-AECC-073664A70AC1@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <kientzle@freebsd.org> 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 <bsd.prog.mk>

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B3F0A21-D982-4D0C-965D-16739DB27003>