Date: Thu, 16 Jan 2014 05:59:26 +0100 From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me> To: Warren Block <wblock@wonkity.com> Cc: "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org> Subject: Re: Creating code slice before disk image in nanobsd Message-ID: <CA%2Bq%2BTcqw%2BFbVtGbg_6%2B-j55R4HPGzMvhmkTktrZnyWucmpDrkA@mail.gmail.com> In-Reply-To: <alpine.BSF.2.00.1401151214480.83038@wonkity.com> References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <CAJ-VmonKFEvPRimEmA8vnAbXVCYQ16yOftYhq03VJBYB5knotA@mail.gmail.com> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> <alpine.BSF.2.00.1401151214480.83038@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 15, 2014 at 8:50 PM, Warren Block <wblock@wonkity.com> wrote: > >> >> To create the initial MBR, probably already done before the code above: > gpart create -s mbr ${MD} > gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} > Regarding the remplacement of boot0cfg by gpart, the exact command that nanobsd uses is: NANO_BOOT0CFG="-o packet -s 1 -m 3" NANO_BOOTLOADER="boot/boot0sio" boot0cfg -B -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOT0CFG} ${MD} A PC Engines WRAP need the NANO_BOOT0CFG="-o nopacket" for booting. Does gpart bootcode support all these boot0cfg options too ? (I didn't find it in the man page). Regards, Olivier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bq%2BTcqw%2BFbVtGbg_6%2B-j55R4HPGzMvhmkTktrZnyWucmpDrkA>