From owner-freebsd-embedded@FreeBSD.ORG Mon Mar 23 19:20:58 2015 Return-Path: Delivered-To: embedded@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 B025A711; Mon, 23 Mar 2015 19:20:58 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7765BF0C; Mon, 23 Mar 2015 19:20:58 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id t2NJKuoS023730; Mon, 23 Mar 2015 15:20:56 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <55106794.9050208@sentex.net> Date: Mon, 23 Mar 2015 15:20:52 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Adrian Chadd , "freebsd-mips@freebsd.org" , "freebsd-embedded@freebsd.org" Subject: Re: New AP: TP-Link TL-WR1043ND v2 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 19:20:58 -0000 On 3/15/2015 6:47 PM, Adrian Chadd wrote: > Hi! > > I decided to port to the TP-LINK 1043nd v2, since I did the v1 port > and it seems only fitting to also port to the v2 platform. > > https://wiki.freebsd.org/FreeBSD/mips/TL-WR1043NDv2 Hi, These scripts look really cool and I am anxious to try them out. I read through the tftp netboot part and will try that first. But once you verify the image, is there a way you can skip the tftp boot portion and just upgrade the hardware to the FreeBSD image through the web interface ? i.e. -r-xr-xr-x 1 root wheel - 6094100 Mar 23 14:30 kernel.TL-WR1043NDv2 -r-xr-xr-x 1 root wheel - 19583698 Mar 23 14:30 kernel.TL-WR1043NDv2.symbols -rwxr-xr-x 1 root wheel - 4449792 Mar 23 14:30 mfsroot-tl-wr1043ndv2.img.ulzma -rw-r--r-- 1 root wheel - 5891584 Mar 23 14:30 tl-wr1043ndv2.factory.bin i.e. can I just upgrade the unit with tl-wr1043ndv2.factory.bin through the web interface ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-embedded@FreeBSD.ORG Mon Mar 23 19:32:46 2015 Return-Path: Delivered-To: embedded@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 97AE2291; Mon, 23 Mar 2015 19:32:46 +0000 (UTC) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CE79C7; Mon, 23 Mar 2015 19:32:46 +0000 (UTC) Received: by igcau2 with SMTP id au2so38863860igc.1; Mon, 23 Mar 2015 12:32:45 -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:message-id:subject :from:to:cc:content-type; bh=Ut3pPDXOqfUQxyxC6oBcRo3HRlshSWiIosCjROqjuTI=; b=JUL+oumn2xtv+/FFr9Z5ecDz6omDtZoPoXhLcBQa2dM3c4K4awNTavK8EOSakxwr7B 5KYNBm8FG8H6oQHYJJMCdNj7BMJBrtV7uXhMPe882sDXJXLV2x1eTCaFTF0XNdyVEQPm Hwat18zqK/drikUbI48IgNbl1O48Yh1v3joNlQlOXWlc8j9j3Axi0C+xfW39tqCFHshB urk+lxLe4WhY7EF3Hg2ARBP4OUpghJZBzbif/8RyN/YFkJ926Wyg35q3PlMvtCm+Ncrt q9XfbMRsyLhVfxeb/SF0rRgJd7TTStPBEv/QC955DaMYJESw1E0YzDLeMSSImVzEBk2U wesQ== MIME-Version: 1.0 X-Received: by 10.50.36.65 with SMTP id o1mr16801067igj.32.1427139165663; Mon, 23 Mar 2015 12:32:45 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Mon, 23 Mar 2015 12:32:45 -0700 (PDT) In-Reply-To: <55106794.9050208@sentex.net> References: <55106794.9050208@sentex.net> Date: Mon, 23 Mar 2015 12:32:45 -0700 X-Google-Sender-Auth: I1qiWkj76sju514H82BoRik6Ehs Message-ID: Subject: Re: New AP: TP-Link TL-WR1043ND v2 From: Adrian Chadd To: Mike Tancsa Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 19:32:46 -0000 On 23 March 2015 at 12:20, Mike Tancsa wrote: > On 3/15/2015 6:47 PM, Adrian Chadd wrote: >> >> Hi! >> >> I decided to port to the TP-LINK 1043nd v2, since I did the v1 port >> and it seems only fitting to also port to the v2 platform. >> >> https://wiki.freebsd.org/FreeBSD/mips/TL-WR1043NDv2 > > > Hi, > These scripts look really cool and I am anxious to try them out. I > read through the tftp netboot part and will try that first. But once you > verify the image, is there a way you can skip the tftp boot portion and just > upgrade the hardware to the FreeBSD image through the web interface ? > i.e. > > -r-xr-xr-x 1 root wheel - 6094100 Mar 23 14:30 kernel.TL-WR1043NDv2 > -r-xr-xr-x 1 root wheel - 19583698 Mar 23 14:30 > kernel.TL-WR1043NDv2.symbols > -rwxr-xr-x 1 root wheel - 4449792 Mar 23 14:30 > mfsroot-tl-wr1043ndv2.img.ulzma > -rw-r--r-- 1 root wheel - 5891584 Mar 23 14:30 > tl-wr1043ndv2.factory.bin > > i.e. can I just upgrade the unit with tl-wr1043ndv2.factory.bin through the > web interface ? maybe? :) I haven't tried it. But once you've done that, the only way to update is to reflash it via tftpboot and the manual instructions posted on the wiki page. Also - I see you've built it as root. You very explicitly do not have to build it as root. You can build it as user - just make /tftpboot writable by you. (I'm going to soon shuffle it so it doesn't land in /tftpboot but in ../images or something, so it's 100% kept inside the build directory. I do 100% of my image building as user 'adrian' nowdays. It makes the foot shooting possibilities much less risky. -adrian From owner-freebsd-embedded@FreeBSD.ORG Tue Mar 24 13:09:58 2015 Return-Path: Delivered-To: embedded@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 EF297B76; Tue, 24 Mar 2015 13:09:58 +0000 (UTC) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B54853B7; Tue, 24 Mar 2015 13:09:58 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.9/8.14.9) with ESMTP id t2OD9qHt060389; Tue, 24 Mar 2015 09:09:52 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <5511621A.8020904@sentex.net> Date: Tue, 24 Mar 2015 09:09:46 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: New AP: TP-Link TL-WR1043ND v2 References: <55106794.9050208@sentex.net> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.75 Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2015 13:09:59 -0000 On 3/23/2015 3:32 PM, Adrian Chadd wrote: >> i.e. can I just upgrade the unit with tl-wr1043ndv2.factory.bin through the >> web interface ? > > maybe? :) I haven't tried it. How do people typically mass re-flash such devices with FreeBSD? On openwrt, there is a neat script that can automate it via the web interface for factory default devices. It would be nice not to physically open each unit in order to attach a temp serial console. > Also - I see you've built it as root. You very explicitly do not have > to build it as root. Cool, I will switch to a non root user! ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-embedded@FreeBSD.ORG Tue Mar 24 15:44:15 2015 Return-Path: Delivered-To: embedded@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 C21296A4; Tue, 24 Mar 2015 15:44:15 +0000 (UTC) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 86094AA5; Tue, 24 Mar 2015 15:44:15 +0000 (UTC) Received: by ieclw3 with SMTP id lw3so609320iec.2; Tue, 24 Mar 2015 08:44:14 -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:message-id:subject :from:to:cc:content-type; bh=UOjV7lMZJPmgG4yLmHHUoKF0OZ/Apiqd4x/U8dOETdc=; b=zPZ48ATywkCtruNceRI63WbEcEKtOLj5tif5ply4w44aJxOKF6NKhBc3DiHe5/5bEf brhMenrSpTe4ZNhWoi6vZoBDf4KLck7B92O9flbEeh/NSxGkzMrkHKWL9uqPeUwqA9wr 3aTHLIf9+wY1hmNlJ3yWCJwm3bmwiuZjl2fiRoadYcgV7ioJ6sj89AXGGp6SGRNBQZmf PgMK8Ec3cnU4CPGqdzSsW5G4S0PNO4JGD6zrjkZHKrSxWUgb4vNUzsVxgHFr36hWzlLN oCZr5duiJEBTpqQ26vcKnrlGMsXOVR0tNGqFCIFhx3EyZ9GWK95ievkt6WsQTXAGrO76 RflA== MIME-Version: 1.0 X-Received: by 10.42.41.200 with SMTP id q8mr22759752ice.61.1427211854840; Tue, 24 Mar 2015 08:44:14 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Tue, 24 Mar 2015 08:44:14 -0700 (PDT) In-Reply-To: <5511621A.8020904@sentex.net> References: <55106794.9050208@sentex.net> <5511621A.8020904@sentex.net> Date: Tue, 24 Mar 2015 08:44:14 -0700 X-Google-Sender-Auth: Ro5soTdHPSdZjIerHf3HndlMNDM Message-ID: Subject: Re: New AP: TP-Link TL-WR1043ND v2 From: Adrian Chadd To: Mike Tancsa Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-embedded@freebsd.org" , "freebsd-mips@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2015 15:44:15 -0000 On 24 March 2015 at 06:09, Mike Tancsa wrote: > On 3/23/2015 3:32 PM, Adrian Chadd wrote: > >>> i.e. can I just upgrade the unit with tl-wr1043ndv2.factory.bin through >>> the >>> web interface ? >> >> >> maybe? :) I haven't tried it. > > > How do people typically mass re-flash such devices with FreeBSD? On openwrt, > there is a neat script that can automate it via the web interface for > factory default devices. It would be nice not to physically open each unit > in order to attach a temp serial console. Someone will have to write something to do that :) I can't imagine it'll be that hard. -a From owner-freebsd-embedded@FreeBSD.ORG Sat Mar 28 06:57:20 2015 Return-Path: Delivered-To: embedded@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 E9689202; Sat, 28 Mar 2015 06:57:20 +0000 (UTC) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B14688D9; Sat, 28 Mar 2015 06:57:20 +0000 (UTC) Received: by igbqf9 with SMTP id qf9so37118030igb.1; Fri, 27 Mar 2015 23:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=59kNi2d5WeL2AwlPou+K2KUjXWXltGRBrHpgWEIt20Y=; b=EGGkhw64rAjNeN4oz+H+SBZ+y/lBbWqmoQSEVduK57DAdCgruz3Sm4+PUr8AkbM48H JrEPJM3RWo++v3+UczZxE7w0zD8qqJWA/4SH6NBNZBR3A/+Jewz2cVc+UgVHCnoLmLoj +vszN4o/gAqEgtBdF+7NTYOqpA8tNLH9TUegdvpNtmRvdk+lCavf38IJf+oUQ7H+qvIx XwuxJh2DWE9gXyABEKzdjHtq7gywZ91yYdHUOteWM72EvUjWPBlZkLZO6jCAHxEso+Ej 7Cjvxi5iy8S7DnbwlYdOxrh/S3CwDASLrigBU8sG//ZLI5v/IUN2fgOwwyOaMhznbfoB w3mQ== MIME-Version: 1.0 X-Received: by 10.50.36.65 with SMTP id o1mr3596708igj.32.1427525840153; Fri, 27 Mar 2015 23:57:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.17.194 with HTTP; Fri, 27 Mar 2015 23:57:20 -0700 (PDT) Date: Fri, 27 Mar 2015 23:57:20 -0700 X-Google-Sender-Auth: _p7RHVUM4sANHEfGC8gQAWQQO_k Message-ID: Subject: Update: TL-WR1043nd v1 just got updated in -HEAD From: Adrian Chadd To: "freebsd-mips@freebsd.org" , "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2015 06:57:21 -0000 Hi! After some reminding from gjb@, I went and re-investigated why the TL-WR1043nd v1 was running out of flash space. It turns out OpenWRT moved to using a new way of building images using mktplinkfw - instead of providing the board name, it just provides the board id and layout id. Then, it's not restricted to a specific kernel size or whatnot. So, the kernel (which is gzip'ed) can be bigger than 1MiB - the kernel+rootfs just has to be smaller than the total available flash. I've tested this on the TL-WR1043nd v1 and it's now running -HEAD as of a few minutes ago. So in case you're still trying to shoehorn FreeBSD onto it - it's great. :) -adrian