From owner-freebsd-mips@freebsd.org Mon Oct 12 17:51:11 2015 Return-Path: Delivered-To: freebsd-mips@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 48F67A110FE for ; Mon, 12 Oct 2015 17:51:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) (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 16C1313BB for ; Mon, 12 Oct 2015 17:51:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioii196 with SMTP id i196so157513285ioi.3 for ; Mon, 12 Oct 2015 10:51:10 -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; bh=CAFkQBVBatVxVW1a8mfXYdCXRh+TtEHx2IUQ+TpFrBg=; b=jK/XQ65VojV4b6IQZzJnq0bQyd6hTfEPJzRFNeeY5zj9UshAsHtoDGTPRO04JI70/A VPoHZRl908EFrSpSvg31l2Pu5Qb5Svr+ySYnKHFejwXVyr/uNLjbUUtKsIiPtIUyCKLT bi35cIr5JaQe19NKhMVP4tfM3rfmczakAsn11W1kDYKEVU8RHGvaXjUKvgNriZiHCPP0 uiAjh5pnkoCMRQ5LVw3PydpZXus8C/hyGd6HDMN5Vobp8ayLx81qZbnQBW8z+1TRwdI9 YufnFR2f0hjHSvWeoChXNf+yfXw989k+nUsrfjFXRgXivOxLMA6Kcx3pP3a3+Y39zhyb 3Pkw== MIME-Version: 1.0 X-Received: by 10.107.35.78 with SMTP id j75mr27611576ioj.123.1444672270032; Mon, 12 Oct 2015 10:51:10 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Mon, 12 Oct 2015 10:51:09 -0700 (PDT) In-Reply-To: <561B682E.8060607@grosbein.net> References: <561ADF43.8080005@grosbein.net> <561B682E.8060607@grosbein.net> Date: Mon, 12 Oct 2015 10:51:09 -0700 Message-ID: Subject: Re: mib0 flash partition TL-WDR3600 From: Adrian Chadd To: Eugene Grosbein Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 17:51:11 -0000 Yes. The bootloader doesn't care what you do as long as: * you don't overwrite uboot; * you don't ovewrite uboot-env if it exists; * you put the "uboot application" (ie, the kernel) in the right place (which on these devices is at the beginning of the usable flash area); and * don't ovewrite ART. Just make sure you erase the extra space before you write into it. :) -a On 12 October 2015 at 00:58, Eugene Grosbein wrote: > On 12.10.2015 10:21, Adrian Chadd wrote: >> It's just a hold-over from the atheros layout. On 16mb devices they >> tended to have a mib0 partition that contained a bunch more leftover >> space and would put things like a big overlayfs on it. >> >> until nandfs grows nor support and is actually stable, we can't really >> use it. :( > > May I change geom_map layout on such 8mb device to eliminate mib0 > and use freed extra space for cfg in my private build? Won't it break anything? > > >