From owner-freebsd-mips@FreeBSD.ORG Sun Jan 11 20:18:13 2015 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3FE4363; Sun, 11 Jan 2015 20:18:13 +0000 (UTC) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 420F1C29; Sun, 11 Jan 2015 20:18:12 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id t0BKHsvG052827 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 11 Jan 2015 21:17:55 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id t0BKHnfe027387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Jan 2015 21:17:49 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id t0BKHnCi061614; Sun, 11 Jan 2015 21:17:49 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id t0BKHn8M061613; Sun, 11 Jan 2015 21:17:49 +0100 (CET) (envelope-from ticso) Date: Sun, 11 Jan 2015 21:17:48 +0100 From: Bernd Walter To: Adrian Chadd Subject: Re: Booting on AR9331 based Easylink EL-M150 Message-ID: <20150111201748.GI46805@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <20150111160356.GG46805@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, DNS_FROM_AHBL_RHSBL=2.699, T_RP_MATCHES_RCVD=-0.01 autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: Bernd Walter , ticso@cicely.de, "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:18:13 -0000 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.