From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 19 12:59:25 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 AC3751A0 for ; Mon, 19 Aug 2013 12:59:25 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2F1B62CC6 for ; Mon, 19 Aug 2013 12:59:25 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id q56so595958wes.21 for ; Mon, 19 Aug 2013 05:59:23 -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=cqbr+eEy2f9/gw5fTy32RkLVj7oK1B8y0o5TWv2n0OU=; b=tz0GHh+CWUKOT5Q8e78QSRIU0GNQiMtul9CHoDRzAYgsu7pWVuC5iB8io5rayr9zcQ MUTwEaihufzSK8rL70KrJuBQl/pg/6br7dEb6OqhnQlj/PwVfyGrmtxGfrsWhAkW4FXp zQgWEsqPfbsfM3DwoC7LA3kHo+LUjjnewqnaYGwva7GgeGpXybaEsiypSrEbFiOUZN/x Nr0ee0U0w5+wXuS7inH8dLcmp4kZvBS41Wd3TN5UjFVnQjU2TlQm1/kdYNMk3z0vv5ej d+3eCNDjzdj8uiyovI/ripjVRymN623vL0wL/+xqXMBs2GcsFtdxibhv7THnoWpbJ2Qm 7SHA== MIME-Version: 1.0 X-Received: by 10.180.198.79 with SMTP id ja15mr8157581wic.36.1376917163467; Mon, 19 Aug 2013 05:59:23 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Mon, 19 Aug 2013 05:59:23 -0700 (PDT) In-Reply-To: References: <20130729151943.70ce473e14d88588337e57ba@ddteam.net> <51F7983C.5090309@dat.pl> Date: Mon, 19 Aug 2013 09:59:23 -0300 Message-ID: Subject: Re: Making Picostation m2HP work From: Luiz Otavio O Souza To: hiren panchasara Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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: Mon, 19 Aug 2013 12:59:25 -0000 Hi Hiren, I've looked at ubnt firmwares and there are a few identifiers that i can gather: All the 'M' series (rockets, airgrids and many others) uses the same firmware identifier: 'XM'. The b/g 2Ghz radios uses the 'XS2' identifier and the 5Ghz models uses the 'XS5'. The original PicoStation2 HP firmware has the following identifier: $ hexdump -C PicoStation2HP-v4.0.3.build5058.bin 00000000 55 42 4e 54 58 53 32 2e 61 72 32 33 31 36 2e 76 |UBNTXS2.ar2316.v| 00000010 34 2e 30 2e 33 2e 35 30 35 38 2e 31 33 30 33 32 |4.0.3.5058.13032| 00000020 38 2e 31 30 35 34 00 00 00 00 00 00 00 00 00 00 |8.1054..........| 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| [...] Can you try to build an image using 'XS2' as the board type and 'XS2.ar2316.FreeBSD' as the version string ? If you create a correct image the update process will succeed even if the compression is wrong (the loader will fail to boot, but that is ok, we can hopefully fix the image later). The kernel load address and entry point set by mkfwimage for the XS2 board is different from what we expect: .name = "XS2", .kern_start = 0xbfc30000, .kern_memstart = 0x80041000, .kern_entry = 0x80041000, .firmware_max_length= 0x00390000, So you may need to adjust your kernel or the settings on mkfwimage for this firmware template. Luiz