From owner-freebsd-arm@freebsd.org Sat Feb 4 16:38:43 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE785CD0A42 for ; Sat, 4 Feb 2017 16:38:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A77101C9D for ; Sat, 4 Feb 2017 16:38:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22d.google.com with SMTP id c7so32327121itd.1 for ; Sat, 04 Feb 2017 08:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Ng2B6Y/Edl9HUVO874THBxKcPWV9muGVdIj4hapT7zI=; b=rIIsVM0LMa9oBal+t/8OBhD0VrLgnQOsadV1O8bVT33w91ORVv+PJVvgoV+WUh+6li uL3JMgmVSsHJzCuV7LJyAmyqpXi6rTeWxH8iKHeKpZQM43Eyr8gU5A96gqr9FrcfZHFk Q0Vy5K8iKUBZoeW48Es5arnSbyGY1FZp5VaDBjaQm4Y1JDkT4mJQt2lbChm1RpYQW7WV ewD8S5kewLGMDT8EJXyuPaJk9OMixQ1nfg6E4J2nxxzLFp2zIA9nNvZba5RLwgXcfQAI g/r+YhI524si0w14iSW6jAnTzssNEBM/kbsVjgzlA3L0bG0vrMLwLH0o4KX2y005jynr Ko2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Ng2B6Y/Edl9HUVO874THBxKcPWV9muGVdIj4hapT7zI=; b=ZxEuNTU9gPU30rccthYRCy+hdGCsylgkZ1noAJ+qfgNV+96rzRFwaSTSmb3x17ZjCO PAHKocLrjRkq3P/ZikWZvaw2Te0+LSe2l7cNUK6Fe/xXUXkO6a8hhz3iS3kufH1IeUn8 K9YIAYi2+6D5QHEnPPUuN5CAhhcdpwIBmaeB67yhALZyOZcO44gzforEz9KtwZIpo8ir WPeCOsi2FpBpH9hruHVu/9JkLJMIKUx8ifzndPvmMhF+jlGm9/AJ1nlBN8jVgiiuFsWB HELu7cLKHpXK+Fi+JVDpCisT/iBx6nSaMVBxM4uOwGtfHK4RmPxt5WDtakXcHi3mwiiA vlzg== X-Gm-Message-State: AIkVDXIBaJgUc2XVNcyxvjY2b5jXXrrUXSKecp5equBp4dgxv2fXHvOAzhxqm8/kjmdxT92yxwMGQ7S9rs92mw== X-Received: by 10.36.90.194 with SMTP id v185mr1720389ita.85.1486226322876; Sat, 04 Feb 2017 08:38:42 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.145.217 with HTTP; Sat, 4 Feb 2017 08:38:42 -0800 (PST) X-Originating-IP: [69.53.245.200] In-Reply-To: <506d5c30-93f7-048e-2cde-d76bfaf76a8f@denninger.net> References: <69c5a012-c1e7-c887-cd3b-ffcf78d8175e@denninger.net> <506d5c30-93f7-048e-2cde-d76bfaf76a8f@denninger.net> From: Warner Losh Date: Sat, 4 Feb 2017 09:38:42 -0700 X-Google-Sender-Auth: PpjSh3UZckojiWe4R4yLQLX898s Message-ID: Subject: Re: NanoBSD config script for RPI2 To: Karl Denninger Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2017 16:38:43 -0000 On Sat, Feb 4, 2017 at 5:55 AM, Karl Denninger wrote: > 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: > --formats - list image formats > --schemes - list partition schemes > --version - show version information > > -b - file containing boot code > -c - capacity (in bytes) of the disk > -f > -o - file to write image into > -p > -s > -v - increase verbosity > -y - [developers] enable unit test > -H - number of heads to simulate > -P - physical sector size > -S - logical sector size > -T - 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... Install a newer mkimg: Revision 307550 - (view) (download) (annotate) - [select for diffs] Modified Tue Oct 18 05:43:12 2016 UTC (3 months, 2 weeks ago) by imp File length: 3730 byte(s) Diff to previous 307544 Add a new flag to mkimg (-a num) to specify the active partition for those partitioning schemes that have this concept. Implement it as an override for mbr's setting 0x80 in the flags for the first partition when we have boot code. Differential Revision: https://reviews.freebsd.org/D4403 Though maybe I should try to add it to the bootstrap tools so I can use a new one after the build. Warner > 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 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@denninger.net >>> /The Market Ticker/ >>> /[S/MIME encrypted email preferred]/ > > -- > Karl Denninger > karl@denninger.net > /The Market Ticker/ > /[S/MIME encrypted email preferred]/