From owner-freebsd-embedded@FreeBSD.ORG Thu Jan 16 04:59:47 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92F0E40C for ; Thu, 16 Jan 2014 04:59:47 +0000 (UTC) Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [IPv6:2607:f8b0:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4AB111AF5 for ; Thu, 16 Jan 2014 04:59:47 +0000 (UTC) Received: by mail-vc0-f179.google.com with SMTP id ia6so795407vcb.10 for ; Wed, 15 Jan 2014 20:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=3z197K2aDp5nqKChM5dqgaq5EsRBCSufyOhxUJ/SGcw=; b=Rd6ySlEePZdnISSRGpoVCXa1wdGcBt1TofI5++ZzVBEEuqO088yBGbaWlBaKjuRrSB 3xLAo7964VjuNQb78Dx4xmZY4BEhvlvgxqEYcEjz895GqhzJ2AAEWhxDUOWkjous7W8H myvwXDqB6EFIlK+MxPL7g0XhdFdk8sfQ3/bLypr734acFrUvRYVW+yWcZwxmWINcaYyy lpEeT78nHPFtDYq7vv07KsPNliktpxueC1V4nRxYvb40pIGhyHegkIA5ZVmieUPbKKdq QPlpuM6YXcRp53Uo2axoKPpY3gepGWGbv7tEZJeCaNeW9Uks+yANNjp647QsP4aQRpuP INuw== X-Received: by 10.52.74.99 with SMTP id s3mr3362vdv.42.1389848386311; Wed, 15 Jan 2014 20:59:46 -0800 (PST) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.171.1 with HTTP; Wed, 15 Jan 2014 20:59:26 -0800 (PST) In-Reply-To: References: <20120629133759.GA19373@snail.casa> <20140114161533.GB19601@snail.casa> <6027B660-1D2E-4058-B87F-83D8225F0DC3@bsdimp.com> <20140116034220.B43023@sola.nimnet.asn.au> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Thu, 16 Jan 2014 05:59:26 +0100 X-Google-Sender-Auth: VVFMY9qeW4Dsm4QS2BAcIRw6kfg Message-ID: Subject: Re: Creating code slice before disk image in nanobsd To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2014 04:59:47 -0000 On Wed, Jan 15, 2014 at 8:50 PM, Warren Block 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