From owner-freebsd-mips@FreeBSD.ORG Sun Jan 11 20:25:02 2015 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69A1B5FB for ; Sun, 11 Jan 2015 20:25:02 +0000 (UTC) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [IPv6:2a00:1450:400c:c00::22e]) (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 EFAE4CE9 for ; Sun, 11 Jan 2015 20:25:01 +0000 (UTC) Received: by mail-wg0-f46.google.com with SMTP id x13so16159294wgg.5 for ; Sun, 11 Jan 2015 12:25:00 -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:date:message-id:subject :from:to:cc:content-type; bh=pJ9jHYIqROVzhI9IqUtas/mIl7rBrWKX51CEFwrT2JQ=; b=xTpJOAvqyW6rVApMfKOenSm86C01w2Fk1jE1gTwwdhGlMlxGvoNK+eBB1Vl1PtJWPW tirKofqXv/vZboeicuuy8J/U8gerq2W8C17tOsRsSLChHvKjSmlQwcL/Bfgp7XYtRcCJ mtaAS6ZRaQPqQu9YqmAyrvIg/5tQ2pEpwcyj2ElsLILzp4t3EwE/ape3gCB0eiD9uuz8 yxCq49cZSEElXqKPGiuKuqxfbGXi2e76Q2CbPuu9fjrMvauxK/AhaC8K1qjLYwMQaXxB B17C7m90MBQuRQgEcUHGIzfj+jSbYNqN84Spd9qwcVookrkCwSY1/w2zptmYM1xGfuEy cqiA== MIME-Version: 1.0 X-Received: by 10.180.91.193 with SMTP id cg1mr24349324wib.26.1421007900311; Sun, 11 Jan 2015 12:25:00 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Sun, 11 Jan 2015 12:25:00 -0800 (PST) In-Reply-To: References: <20150111160356.GG46805@cicely7.cicely.de> <20150111201748.GI46805@cicely7.cicely.de> Date: Sun, 11 Jan 2015 12:25:00 -0800 X-Google-Sender-Auth: dt_oNnUm74k8MMXUWZn3UfzldXk Message-ID: Subject: Re: Booting on AR9331 based Easylink EL-M150 From: Adrian Chadd To: ticso@cicely.de Content-Type: text/plain; charset=UTF-8 Cc: Bernd Walter , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2015 20:25:02 -0000 ... .and don't replace the uboot. There may be board variations that are hard-coded in the uboot. Tsk. :) -a On 11 January 2015 at 12:24, Adrian Chadd wrote: > Yeah, there's calibration data in the flash chip. You should be very careful. :) > > > > -a > > > On 11 January 2015 at 12:17, Bernd Walter wrote: >> On Sun, Jan 11, 2015 at 10:16:49AM -0800, Adrian Chadd wrote: >>> Hi, >>> >>> I've had this issue reported by someone else - a tplink AR934x based >>> thing. I wonder if it's an updated uboot related thing. >>> >>> So the TL;DR is this. >>> >>> uboot "bootm" doesn't boot a kernel image - it boots a uboot >>> application. The application has a uboot header with details about >>> "where it should be unpacked", "where it should be executed", etc. The >>> tool that we're using is in ports but from an older uboot. It's >>> possible the header contents are now .. wrong. >>> >>> So, the flash address used by the "bootm" comand is 0x9f(blah), and >>> it'll unpack to wherever it says in the uboot header, and then execute >>> wherever it says. Everything above is wrong - Load, entry, size, etc - >>> and so that needs to be debugged. >>> >>> I have a tplink in a box that has the same issue, so I'll go see what >>> the story is. >> >> Great. >> >> My EL-M150 module has the same hynx memory chip as the carambola 2 I compared >> against, just the flash size ist different (winbond 25Q128 vs 25Q64). >> Don't know if the SPI flash is hardcoded somehow, otherwise the carambola 2 >> u-boot should work IMHO. >> >> Is there anything important in the flash, like calibration data, which >> can be trashed by tampering with it? >> Or failed parsing by a different u-boot version? >> Guess I should dump the SPI data to tftp server anyway. >> Never programmed a 25Q myself, but can't be too hard in case I brick it. >> >> -- >> B.Walter http://www.bwct.de >> Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.