Date: Mon, 11 Feb 2013 22:06:32 +0900 From: Takeshi Taguchi <taguchi@ff.iij4u.or.jp> To: Tim Kientzle <tim@kientzle.com> Cc: freebsd-arm@freebsd.org Subject: Re: add versatilepb support to tim's script Message-ID: <5118ECD8.1040107@ff.iij4u.or.jp> In-Reply-To: <BBD47A31-71A5-4CD2-AC54-ADE3B111E7C2@kientzle.com> References: <511790F3.7070806@ff.iij4u.or.jp> <BBD47A31-71A5-4CD2-AC54-ADE3B111E7C2@kientzle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5118ECD8.1040107>