Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2013 17:00:02 -0800
From:      Tim Kientzle <tim@kientzle.com>
To:        Takeshi Taguchi <taguchi@ff.iij4u.or.jp>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: add versatilepb support to tim's script
Message-ID:  <BBD47A31-71A5-4CD2-AC54-ADE3B111E7C2@kientzle.com>
In-Reply-To: <511790F3.7070806@ff.iij4u.or.jp>
References:  <511790F3.7070806@ff.iij4u.or.jp>

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

On Feb 10, 2013, at 4:22 AM, Takeshi Taguchi wrote:

> Hi, all
> Attached patch  add support versatilepb to tim's script:
>  https://github.com/kientzle/freebsd-beaglebone
>=20
> use:
>  board_setup VersatilePB
> in config.sh. and try to run:
>  sh beaglebine/sh
> then you will get following images:
>  FreeBSD-VERSATILEPB.flash : kernel image
>  FreeBSD-VERSATILEPB.img   : userland image
>=20
> and then try to exec:
>  qemu-system-arm -M versatilepb -m 128M \
>    -kernel FreeBSD-VERSATILEPB.flash \
>    -cpu arm1176 \
>    -hda FreeBSD-VERSATILEPB.img
>=20
> Thanks.
> -
> T.T

Thank you!  This is wonderful!
I've merged this to the code on Github.

I only have one suggestion for improving it:

You use this code to get the kernel object file:

 KERNELBIN=3D${WORKDIR}/obj/arm.armv6`realpath =
${FREEBSD_SRC}`/sys/${KERNCONF}/kernel.bin

then

   dd of=3D$FLASH =1B$B!D=1B(B. if=3D$KERNELBIN

This approach is a little brittle.   Elsewhere,
I've used something similar to the following:

   mkdir ${WORKDIR}/kernel
   freebsd_kernel_install ${WORKDIR}/kernel
   dd .... if=3D${WORKDIR}/kernel/.../kernel.bin

If this doesn't work, please consider adding a new
function to lib/freebsd.sh to copy kernel.bin; that way,
there will be only one place that knows about this
kind of detail.  (Rather than having copies of your
code for every board.)

Tim





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BBD47A31-71A5-4CD2-AC54-ADE3B111E7C2>