From owner-freebsd-embedded@FreeBSD.ORG Wed Jul 31 21:52:06 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 677C48BB for ; Wed, 31 Jul 2013 21:52:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DA0582926 for ; Wed, 31 Jul 2013 21:52:05 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id j13so1048942wgh.2 for ; Wed, 31 Jul 2013 14:52:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=MvlxVKta8cyxnhIhYk0lhTpFtdML7drz0InE4KkJxaA=; b=s4WZcz7BLP1AzZZT7UrXCD/ahgTEGA3fysjAkEvMTXNS+9H2ksdBerESIFbZyCanWu S15erq7TWu3iddj9JgDdlRZ7OCBD1hntQfOOQ8olwDhgGdm6n0zFqoHBJB4byemk7BIW MD22OlL4AOQM3NsHbG1uMlwJFKmoe9AOf1hxhW0lWn/dXOGEZhM3gB0+uL8QStyY85Cd OduXflo7ph0GuBWmr1K0jx26b0f26+kbCb3cfsOP2zh4GmhSb3iVirqCqdpYSuVVj0+a aDBCXPT7VJ3+Qzf8LHOBq03pIXHnuidKTat/vSjMbIjNNId5o0mIcss7hEEhg4HvOBBX Jggw== MIME-Version: 1.0 X-Received: by 10.180.160.165 with SMTP id xl5mr5628874wib.46.1375307524121; Wed, 31 Jul 2013 14:52:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Wed, 31 Jul 2013 14:52:04 -0700 (PDT) In-Reply-To: References: <20130729151943.70ce473e14d88588337e57ba@ddteam.net> <51F7983C.5090309@dat.pl> Date: Wed, 31 Jul 2013 14:52:04 -0700 X-Google-Sender-Auth: -n7bZJ61vUDy-WF8L9BZ4K-f4lg Message-ID: Subject: Re: Making Picostation m2HP work From: Adrian Chadd To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 21:52:06 -0000 Are you using the right flags to the _ports_ lzma to create an image that uboot can actually decode? -adrian On 31 July 2013 14:23, hiren panchasara wrote: > On Tue, Jul 30, 2013 at 7:02 AM, Outback Dingo wrote: >> >> >> >> On Tue, Jul 30, 2013 at 7:29 AM, Outback Dingo >> wrote: >>> >>> >>> >>> >>> On Tue, Jul 30, 2013 at 6:41 AM, Maciej Milewski wrote: >>>> >>>> On 29.07.2013 20:52, hiren panchasara wrote: >>>>> >>>>> Firmware check failed! >>>> >>>> AFAIR I had such info when I tried to flash image from RouterStation Pro >>>> to Routerstation. I think that it must be something with firmware header or >>>> firmware format. >>>> >>> I believe its the headers, there is something different about the 2HP that >>> required padding, im digging through data from 4 years ago to find it >>> from when we deployed a ton of these based on OpenWRT, they are different >>> then all others, same with the RS/RSPRO, >>> >>> >> >> >> Warning, my brain is dealing with 4 year old information again, YMMV..... >> but maybe some insight will help... I could be offbase, >> Adrian would know best what his mkfwimage supports. >> >> its possible it was different offsets so that the mkfirmware image had to be >> modified to build the correct image, the image you are building requires >> XS2-8 to be correct, I believe the ap91 image is using XS2 and not XS2-8 >> ....... Adrian again will have to validate AP91 configuration for XS2-8, or >> create a config that uses it. >> >> >> Okay digging back through this a bit in the UBNT SDK, Yes I still have >> one..... it shows >> -$(STAGING_DIR_HOST)/bin/mkfwimage \ >> -B XS2-8 -v XS2.ar2316.OpenWrt.$(REVISION) \ >> -k $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma \ >> -r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \ >> -o $(BIN_DIR)/openwrt-$(BOARD)-ubnt2-pico2-$(1).bin >> >> >> and XS2-8 is for PicosStations built with >> mkfwimage -i XS2-8.txt -v XS2.ar2316.OpenWRT-kamikaze -o >> openwrt-picostation2-squashfs.bin >> >> >> which required a file called XS2-8.txt >> >> kernel 0x01 0xA8030000 0x000D0000 0x80041000 >> 0x80041000 openwrt-vmlinux.lzma >> rootfs 0x02 0xA8100000 0x006C0000 0x00000000 >> 0x00000000 .openwrt-vmlinux.squashfs > > So I looked at this file. (I found similar references of using this > file too). So here is what it says: > > name index baseaddr size memaddr entryaddr file > > kernel 0x01 0xA8030000 0x000D0000 0x80041000 0x80041000 openwrt-vmlinux.lzma > rootfs 0x02 0xA8100000 0x006C0000 0x00000000 0x00000000 openwrt-vmlinux.squashfs > > In the image I am generating (with adrian's scripts), the baseaddr for > kernel is as mentioned above 0xA8030000. But the baseaddr for rootfs > is calculated as: > rootfs->partition_baseaddr = kernel->partition_baseaddr + > kernel->partition_length; > > which is not 0xA8100000. but a little higher than that. So I thought > kernel is a bit too big. So I trimmed down the kernel a bit and hard > coded the value like: > rootfs->partition_baseaddr = 0xA8100000; > > But no success. And the kernel I am using is lzma'ed. I am not sure if > the rootfs has to be squashfs'ed? > > cheers, > Hiren > > Journey continues.... > >> >> >> >>>> >>>> -- >>>> Pozdrawiam, >>>> Maciej Milewski >>>> >>>> >>>> _______________________________________________ >>>> freebsd-embedded@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-embedded >>>> To unsubscribe, send any mail to >>>> "freebsd-embedded-unsubscribe@freebsd.org" >>> >>> >> > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to "freebsd-embedded-unsubscribe@freebsd.org"