From owner-freebsd-arm@FreeBSD.ORG Mon Feb 11 13:07:01 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 3620067C for ; Mon, 11 Feb 2013 13:07:01 +0000 (UTC) (envelope-from taguchi@ff.iij4u.or.jp) Received: from mo.iij4u.or.jp (mo10.iij4u.or.jp [210.138.174.78]) by mx1.freebsd.org (Postfix) with ESMTP id B34137FF for ; Mon, 11 Feb 2013 13:06:59 +0000 (UTC) DKIM-Signature: v=1;a=rsa-sha256;c=relaxed/simple;d=ff.iij4u.or.jp;h= Message-ID:Date:From:MIME-Version:To:CC:References:In-Reply-To:Content-Type; i=taguchi@ff.iij4u.or.jp; s=20120530.iij4u; t=1360588011; x=1361797611; bh=XoNLsd dBTjDshIRD0NpOJ90QLvvja0RTxSKAv9UBlLc=; b=okvxXBeLNZ3H8UhEtnM6ba2tXr+pLa6SQeUS nlZUu9iikv6EzoUgACkr44s+rikMZXLlIEahBnvfGJBxtKhMMVjin/ZqO75sSmC0USqGpkYJH/gHr dOWx0M+EPgDSGCKDDbl8Y5zGKVkpE/c6hztl8r6N3YShK5di2GWl6gYYH0=; Received: by mo.iij4u.or.jp (mo10) id r1BD6pld007806; Mon, 11 Feb 2013 22:06:51 +0900 Received: from [10.0.1.129] (55.178.30.125.dy.iij4u.or.jp [125.30.178.55]) by mbox.iij4u.or.jp (mbox10) id r1BD6oMm025948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 11 Feb 2013 22:06:51 +0900 Message-ID: <5118ECD8.1040107@ff.iij4u.or.jp> Date: Mon, 11 Feb 2013 22:06:32 +0900 From: Takeshi Taguchi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tim Kientzle Subject: Re: add versatilepb support to tim's script References: <511790F3.7070806@ff.iij4u.or.jp> In-Reply-To: Content-Type: multipart/mixed; boundary="------------080400070806070803000102" 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: Mon, 11 Feb 2013 13:07:01 -0000 This is a multi-part message in MIME format. --------------080400070806070803000102 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Hi, Tim Thanks for your suggestion. Here is a update patch. I'd test using qemu on windows. it was seem work fine. Thanks. -- T.T 2013/02/11 10:00), Tim Kientzle wrote: > > 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 >> >> 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 >> >> and then try to exec: >> qemu-system-arm -M versatilepb -m 128M \ >> -kernel FreeBSD-VERSATILEPB.flash \ >> -cpu arm1176 \ >> -hda FreeBSD-VERSATILEPB.img >> >> 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=${WORKDIR}/obj/arm.armv6`realpath ${FREEBSD_SRC}`/sys/${KERNCONF}/kernel.bin > > then > > dd of=$FLASH …. if=$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=${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 > > > --------------080400070806070803000102 Content-Type: text/plain; charset=Shift_JIS; name="update.20130211.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="update.20130211.diff" ZGlmZiAtLWdpdCBhL2JvYXJkL1ZlcnNhdGlsZVBCL3NldHVwLnNoIGIvYm9hcmQvVmVyc2F0 aWxlUEIvc2V0dXAuc2gKaW5kZXggNzdjMTQyOC4uNTNjM2JjOSAxMDA2NDQKLS0tIGEvYm9h cmQvVmVyc2F0aWxlUEIvc2V0dXAuc2gKKysrIGIvYm9hcmQvVmVyc2F0aWxlUEIvc2V0dXAu c2gKQEAgLTIsNyArMiw3IEBAIEZSRUVCU0RfU1JDPS91c3Ivc3JjCiBLRVJOQ09ORj1WRVJT QVRJTEVQQgogSU1HPSR7V09SS0RJUn0vRnJlZUJTRC0ke0tFUk5DT05GfS5pbWcKIEZMQVNI PSR7V09SS0RJUn0vRnJlZUJTRC0ke0tFUk5DT05GfS5mbGFzaAotS0VSTkVMQklOPSR7V09S S0RJUn0vb2JqL2FybS5hcm12NmByZWFscGF0aCAke0ZSRUVCU0RfU1JDfWAvc3lzLyR7S0VS TkNPTkZ9L2tlcm5lbC5iaW4KK0ZSRUVCU0RfSU5TVEFMTEtFUk5FTF9CT0FSRF9BUkdTPUtF Uk5FTF9FWFRSQV9JTlNUQUxMPWtlcm5lbC5iaW4KIAogYm9hcmRfY29uc3RydWN0X2Jvb3Rf cGFydGl0aW9uICggKSB7CiAgICAgIyBkdW1teSBwYXJ0aXRpb24uCkBAIC0xNywxMCArMTcs MTMgQEAgYm9hcmRfY29uc3RydWN0X2Jvb3RfcGFydGl0aW9uICggKSB7CiAgICAgL3Vzci9i aW4vcHJpbnRmICJcMFwwNjBcMjQwXDM0MyIgPj4gJHtXT1JLRElSfS9maXJzdF9jb21tYW5k cwogICAgICMganVtcCB0byBrZXJuZWwgZW50cnkgcG9pbnQKICAgICAvdXNyL2Jpbi9wcmlu dGYgIlwwMDFcMzY2XDI0MFwzNDMiID4+ICR7V09SS0RJUn0vZmlyc3RfY29tbWFuZHMKKyAg ICAjIGluc3RhbGwga2VybmVsCisgICAgWyAhIC1kICR7V09SS0RJUn0vXy5rZXJuZWwuYmlu IF0gJiYgbWtkaXIgJHtXT1JLRElSfS9fLmtlcm5lbC5iaW4KKyAgICBmcmVlYnNkX2luc3Rh bGxrZXJuZWwgJHtXT1JLRElSfS9fLmtlcm5lbC5iaW4KIAogICAgIGRkIG9mPSRGTEFTSCBi cz0xTSBjb3VudD00IGlmPS9kZXYvemVybwogICAgIGRkIG9mPSRGTEFTSCBicz0xIGNvbnY9 bm90cnVuYyBpZj0ke1dPUktESVJ9L2ZpcnN0X2NvbW1hbmRzCi0gICAgZGQgb2Y9JEZMQVNI IGJzPTY0ayBvc2Vlaz0xNSBjb252PW5vdHJ1bmMgaWY9JEtFUk5FTEJJTgorICAgIGRkIG9m PSRGTEFTSCBicz02NGsgb3NlZWs9MTUgY29udj1ub3RydW5jIGlmPSR7V09SS0RJUn0vYm9v dC9rZXJuZWwva2VybmVsLmJpbgogICAgIAogfQogCg== --------------080400070806070803000102--