From owner-freebsd-arm@FreeBSD.ORG Wed Feb 13 05:45:58 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5FD584E0 for ; Wed, 13 Feb 2013 05:45:58 +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 0BFFDBED for ; Wed, 13 Feb 2013 05:45:57 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r1D5jqS3025970; Wed, 13 Feb 2013 05:45:52 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id yyik7izqu6ydkqcwi73v2ssgen; Wed, 13 Feb 2013 05:45:52 +0000 (UTC) (envelope-from tim@kientzle.com) Subject: Re: add versatilepb support to tim's script Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=iso-2022-jp From: Tim Kientzle In-Reply-To: <5118ECD8.1040107@ff.iij4u.or.jp> Date: Tue, 12 Feb 2013 21:45:52 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <3CA080CC-7CC7-4E88-B337-B8F2792310A9@kientzle.com> References: <511790F3.7070806@ff.iij4u.or.jp> <5118ECD8.1040107@ff.iij4u.or.jp> To: Takeshi Taguchi X-Mailer: Apple Mail (2.1283) Cc: freebsd-arm@freebsd.org 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: Wed, 13 Feb 2013 05:45:58 -0000 Thank you very much! I've committed this to the project on github. Tim On Feb 11, 2013, at 5:06 AM, Takeshi Taguchi wrote: > Hi, Tim >=20 > Thanks for your suggestion. > Here is a update patch. > I'd test using qemu on windows. > it was seem work fine. >=20 > Thanks. > -- > T.T >=20 > 2013/02/11 10:00), Tim Kientzle wrote: >>=20 >> On Feb 10, 2013, at 4:22 AM, Takeshi Taguchi wrote: >>=20 >>> 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 >>=20 >> Thank you! This is wonderful! >> I've merged this to the code on Github. >>=20 >> I only have one suggestion for improving it: >>=20 >> You use this code to get the kernel object file: >>=20 >> KERNELBIN=3D${WORKDIR}/obj/arm.armv6`realpath = ${FREEBSD_SRC}`/sys/${KERNCONF}/kernel.bin >>=20 >> then >>=20 >> dd of=3D$FLASH =1B$B!D=1B(B. if=3D$KERNELBIN >>=20 >> This approach is a little brittle. Elsewhere, >> I've used something similar to the following: >>=20 >> mkdir ${WORKDIR}/kernel >> freebsd_kernel_install ${WORKDIR}/kernel >> dd .... if=3D${WORKDIR}/kernel/.../kernel.bin >>=20 >> 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.) >>=20 >> Tim >>=20 >>=20 >>=20 >=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"