From owner-freebsd-mips@freebsd.org Tue Oct 13 16:11:52 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 2E89AA12863 for ; Tue, 13 Oct 2015 16:11:52 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (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 F054BF85 for ; Tue, 13 Oct 2015 16:11:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by iofl186 with SMTP id l186so26370168iof.2 for ; Tue, 13 Oct 2015 09:11:51 -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=Hpv/apI9iWVDrSJkt13oR6N7BplSQu7+qzjSp3UexWc=; b=q8WCySzAqJYmEzKiyopxv1eXe9/XEeQ/LQCG+oKLmyDxNhOowH67ytqKmLLCwfziQK 0+nIjBRBequWAiroenLdMM0N6SU3hVq2cZ7P8EQ08FXmb13prUF1hCANKkDVIQrAD7vC O62zQDjOAWw0V3GXbZ5OggI8poFj9S5vKdBvYh9YTdrArqbPkNylOKJ82a4pJTpoZrAn IZN/pMaEPRrjhYEMcGeUjp0NNHUv/IcZNnTgV5vMsvQh76zQYw76F9XyzSPLN1w3ISSh lTZSj15WfO/XWPpx6ntuitxKYKyPB1/a+03bey2dnoazb+g9LgXpgA9BKBWvstOe7Mxf YBgQ== MIME-Version: 1.0 X-Received: by 10.107.13.75 with SMTP id 72mr33606376ion.75.1444752711366; Tue, 13 Oct 2015 09:11:51 -0700 (PDT) Received: by 10.36.2.10 with HTTP; Tue, 13 Oct 2015 09:11:51 -0700 (PDT) In-Reply-To: <561D24D0.6090707@grosbein.net> References: <561ADF43.8080005@grosbein.net> <561B682E.8060607@grosbein.net> <561D24D0.6090707@grosbein.net> Date: Tue, 13 Oct 2015 09:11:51 -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: Tue, 13 Oct 2015 16:11:52 -0000 It doesn't; it dd's 64k chunks at a time and that causes an erase/write cycle. If yo'ure just expanding cfg then yeah, cfg_save will do it via dd. -a On 13 October 2015 at 08:35, Eugene Grosbein wrote: > On 13.10.2015 00:51, Adrian Chadd wrote: >> 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. :) > > I don't see how cfg_save erases flash before writing. >