NanoBSD config script for RPI2
Karl Denninger
karl at denninger.net
Sat Feb 4 12:55:33 UTC 2017
It fails here during image create....
Populating `/pics/CrossBuild/embedded/rpi2/_.s2'
Image `/pics/CrossBuild/embedded/rpi2/_.s2' complete
+ [ -n s1 ]
+ eval 's1=fat16b'
+ s1=fat16b
+ out=/pics/CrossBuild/embedded/images/_.disk.image.HD-MCP
+ mkimg -a 3 -s mbr -p 'fat16b:=/pics/CrossBuild/embedded/rpi2/_.s1' -p
'freebsd
:=/pics/CrossBuild/embedded/rpi2/_.s2' -p
'freebsd:=/pics/CrossBuild/embedded/rp
i2/_.s3' -o /pics/CrossBuild/embedded/images/_.disk.image.HD-MCP
mkimg: invalid option -- a
mkimg: error: unknown option
usage: mkimg <options>
options:
--formats - list image formats
--schemes - list partition schemes
--version - show version information
-b <file> - file containing boot code
-c <num> - capacity (in bytes) of the disk
-f <format>
-o <file> - file to write image into
-p <partition>
-s <scheme>
-v - increase verbosity
-y - [developers] enable unit test
-H <num> - number of heads to simulate
-P <num> - physical sector size
-S <num> - logical sector size
-T <num> - number of tracks to simulate
formats:
qcow - QEMU Copy-On-Write, version 1
qcow2 - QEMU Copy-On-Write, version 2
raw - Raw Disk
vhd - Virtual Hard Disk
vhdf - Fixed Virtual Hard Disk
vmdk - Virtual Machine Disk
schemes:
apm - Apple Partition Map
bsd - BSD disk label
ebr - Extended Boot Record
gpt - GUID Partition Table
mbr - Master Boot Record
pc98 - PC-9800 disk partitions
vtoc8 - SMI VTOC8 disk labels
Is the "-a" flag attempting to set the active partition? It appears
there's no option to do that in mkimg...
On 2/3/2017 14:21, Warner Losh wrote:
> I've used tools/tools/nanobsd/embedded/rpi2.cfg in the past to create
> images for my rpi2. It has been a while, but I don't think anything
> should have broken it...
>
> Warner
>
> On Fri, Feb 3, 2017 at 11:19 AM, Karl Denninger <karl at denninger.net> wrote:
>> Anyone got a working one? Having some trouble getting usable output
>> from it...
>>
>> For reference I have sources in /pics/CrossBuild and the "mk" script to
>> crossbuild which *does* work; after doing an "install" (into nfsroot) I
>> can then rsync that to a running unit and the update is successful. I'd
>> like to be able to build off the same source tree since it's already
>> there and distinct from my x86 stuff.
>>
>>
>> --
>> Karl Denninger
>> karl at denninger.net <mailto:karl at denninger.net>
>> /The Market Ticker/
>> /[S/MIME encrypted email preferred]/
--
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2993 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20170204/d14d3108/attachment.bin>
More information about the freebsd-arm
mailing list