From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 30 23:20:56 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1FFFC6C6; Tue, 30 Jul 2013 23:20:56 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x22c.google.com (mail-ea0-x22c.google.com [IPv6:2a00:1450:4013:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6D5662F94; Tue, 30 Jul 2013 23:20:55 +0000 (UTC) Received: by mail-ea0-f172.google.com with SMTP id r16so9031ead.17 for ; Tue, 30 Jul 2013 16:20:53 -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=pDyZI+cC24Nr0BxU0h8leR9br+BARsXR/bRMWbvrJuQ=; b=JIcjzxBcJjpgx6gJMauarT7QSWd8aZJH3h3oRLjSVCZ1yEiCCAgbAocXhlHBMCYwiN scv6kzaR7FBIJy94t2msOyxxQP/ePi1c+HH0EreY/1oubHRwr5Pbm1uqaFnkb8tRhnl3 xTGjfzSONPtYrh471+7IsRvnexYcdDtOWnvwsiH21nd+h5cvR5s9RfTCeNcuLBXggYCF aokVHdEUVfKjqqRX4148gftc89vlBcYsnt5ebcnFsX5/NgNXDNXSl9M8L3dh98V7+92r Psn2iXKOPYFxeN6Yu8L28dqGb9bleFnsSQgfnr3bD6FJ9TBKCBNyvJ69xeqiCq5/00j5 6U9A== MIME-Version: 1.0 X-Received: by 10.14.1.70 with SMTP id 46mr66601209eec.82.1375226453627; Tue, 30 Jul 2013 16:20:53 -0700 (PDT) Received: by 10.14.105.137 with HTTP; Tue, 30 Jul 2013 16:20:53 -0700 (PDT) In-Reply-To: References: <20130729151943.70ce473e14d88588337e57ba@ddteam.net> <51F7983C.5090309@dat.pl> Date: Tue, 30 Jul 2013 16:20:53 -0700 Message-ID: Subject: Re: Making Picostation m2HP work From: hiren panchasara To: Outback Dingo Content-Type: text/plain; charset=UTF-8 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: Tue, 30 Jul 2013 23:20:56 -0000 On Tue, Jul 30, 2013 at 3:48 PM, Outback Dingo wrote: > > > > On Tue, Jul 30, 2013 at 6:41 PM, Adrian Chadd wrote: >> >> Don't look at me, I'm just the wifi hacker. :) haha. > > > didnt you write the build scripts?? :P I think if he can run mkfwimage > manually with the proper -i XS2-8.txt and the > rest needed, he might come put with a properly formatted image that the Pico > will accept and checksum properly I tried setting board = XS2-8 and that did not help so I am trying to find out what other utilities are doing or how the picostation is expecting the image header/format to be. > >> >> >> Hiren, we need to figure out which particular board type is applicable >> for your flash image... Yes, whenever its convenient. No hurry. I am just dumping here what I am doing and how I am progressing so that any outright stupid thing can be detected right away. Thanks for all the inputs and for also letting me rant here :-) cheers, Hiren >> >> >> -adrian >> >> On 30 July 2013 14:14, Outback Dingo wrote: >> > On Tue, Jul 30, 2013 at 12:57 PM, hiren panchasara < >> > hiren.panchasara@gmail.com> 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. >> >> I _think_ the difference would be how the board has different things >> >> laid out and we can specify with the hints? >> >> > >> >> > >> >> > 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 >> >> >> >> Yes, I found the same thing in openwrt build scripts. Now, I need to >> >> map this to how we are generating image in Adrian's scripts. >> >> > >> >> > >> >> > 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 >> >> >> >> Yes, I found this reference also as you are describing but this is >> >> part of the SDK and I could not find openwrt build scripts using this. >> >> mkfwimage in the SDK takes this file as an argument and does its job >> >> accordingly. >> >> >> >> Thanks a lot for your inputs, >> >> >> > >> > I think Adrian would know best, according to his post, his ported >> > version >> > of ubnt-mkfwimage should support the XS2-8 >> > >> > >> > >> >> Hiren >> >> >> >> /me back to mkfwimage.c >> >> >> > _______________________________________________ >> > 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" > >