From owner-freebsd-hackers@FreeBSD.ORG Thu May 22 20:33:24 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CB145446; Thu, 22 May 2014 20:33:24 +0000 (UTC) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A40128A7; Thu, 22 May 2014 20:33:24 +0000 (UTC) Received: by mail-qg0-f54.google.com with SMTP id q108so6632750qgd.13 for ; Thu, 22 May 2014 13:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Ie7uv6Wj+Iw/rDV6/UNGAIocWw3xAdxULbz21prH/ek=; b=PimkyEoPzxmq+mNYGmG9f/zgHTwNrBjLQDgtOSlp9D2jwVVcORPCIH6U8zaR15Q3ft squpTdvepwk/aUYUkYJLt0rd/BY9VSZufLsitEb0nQwj+TJHtMwfUTIJmf36pq6dZzps EmJhAhrNZOUnCbzgqX6tdW3UnCEErDRxHgEDZuSO3Bd28ZfWWc+RvbeQrcVppljkAmgx Oq6P+dFiXfcGnJsTwix3j2g7t7Inq8XrSiYq1ZZwrYefJLOo+y/uDlxJQ6fCfCrQDyUR yd+bZjjZGUUHU2+GosEeS/nDkx0vCfCz+4JMFvuh0u+ZMjTOxsHdkh9QxyugLSWrLwEQ GBGA== MIME-Version: 1.0 X-Received: by 10.140.48.1 with SMTP id n1mr17344059qga.107.1400790803661; Thu, 22 May 2014 13:33:23 -0700 (PDT) Received: by 10.96.84.232 with HTTP; Thu, 22 May 2014 13:33:23 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 May 2014 14:33:23 -0600 Message-ID: Subject: Re: Patch to tech mkimg about the TMPDIR variable From: Dan McGregor To: Marcel Moolenaar Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-hackers@freebsd.org" , Alan Somers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2014 20:33:24 -0000 On 22 May 2014 14:27, Marcel Moolenaar wrote: > On 5/22/14, 1:18 PM, "Marcel Moolenaar" wrote: >>> >>>The next itch I want to scratch is a way to set the active partition >>>on an MBR image. >> >>I thought I made the first partition active by default. >>I guess not=E2=80=A6 > > Yes, I did! > > The gotcha is that mkimg only does that if you give it > a boot code file. Try that... Also, while I'm thinking about it, the other thing I wanted was a way to specify the origin of a partition. So as an example (units are sectors): 0: MBR table 2-63: empty 64-2047: first partition data 2048-$end: second partition data The use case for this is some other boards (Wandboard for me) puts u-boot as raw data 1K into the image. Dan