From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 13:19:12 2013 Return-Path: Delivered-To: freebsd-mips@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 60888F8F for ; Wed, 28 Aug 2013 13:19:12 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D7BB826BE for ; Wed, 28 Aug 2013 13:19:11 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id l12so5228374wiv.1 for ; Wed, 28 Aug 2013 06:19:10 -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=wtGxAwBbV2vfLdPhRFgOecGs8XbvJDTUUV2VoaV17/Q=; b=VQAdxTAbyokKLKyuRDE0Uur8LSrFbWLZXrMtnIwm7L+kO0LpJVeUtH21ZMpy0zod36 ki1jy0zwMi4wxrTPYopOUGKb/UGjEh1GKXi9a94P7pbWwgL5cQMt0agksVu/rioZdARY SgmeAUdBhZT47XfJQferekkq38Z0A0urRfo/VkOkTNkM6A/HnvTZqU5SDIe1XzY4g/XX 5OFVuQYAnuUzAocbN9+6gi+a9VIJD7sO54LMmOIfTn+lgNgr85gdAh+fYMU4aiQGXDgN baJV0ccNACwy8w+eJjHawIK6oHkIWiwm+Cf4pzXYBcBriXewQw2xmiAD0FaeS7Bwt4bD 5xZA== MIME-Version: 1.0 X-Received: by 10.194.75.165 with SMTP id d5mr19662334wjw.18.1377695950142; Wed, 28 Aug 2013 06:19:10 -0700 (PDT) Received: by 10.216.75.140 with HTTP; Wed, 28 Aug 2013 06:19:10 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 10:19:10 -0300 Message-ID: Subject: Re: TP-Link 1043ND - its tme :) From: Luiz Otavio O Souza To: Nenhum_de_Nos Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2013 13:19:12 -0000 On 28 August 2013 07:20, Nenhum_de_Nos wrote: > hail, > > I'm trying to flash FreeBSD on it, but I can't build it and not get this > error: > > *** Running makefs to build compressed image .. > *** from /root/work/freebsd/head/src/../mfsroot/tl-wr1043nd .. > Calculated size of > `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img': 19300352 bytes, > 1223 > inodes > Extent size set to 4096 > /root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img: 18.4MB (37696 > sectors) block size 4096, > fragment size 512 > using 2 cylinder groups of 12.96MB, 3319 blks, 896 inodes. > super-block backups (for fsck -b #) at: > 32, 26584, > Populating `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' > Image `/root/work/freebsd/head/src/../mfsroot-tl-wr1043nd.img' complete > *** Running mkuzip to create a compressed filesystem .. > *** Target Done. > *** Target : tplink > 4119+2 records in > 4119+1 records out > 2109309 bytes transferred in 1.088462 secs (1937880 bytes/sec) > [mktplinkfw] *** error: kernel image is too big > root@dev:~ # > > what can I do now ? > > sometime ago, this was head to blame. What rev from svn is ok on this > point ? > > I tested yesterday the serial cable, and was successful, now its time to > make FreeBSD shine on it. > > thanks, > > matheus > > ps: I soldered my DIR-825 also, so when the 1043 is done, I can help debug > the other (just need to > have one working wifi, so the house keeps up on internet access :) > > pps: posting to mips@ only, if better suited for embedded, just say so :) > > Hey Matheus, Can you show me the size of your kernel and the rootfs images ? The mktplinkfw tool defines some default limits for these sizes: .id = "TL-WR1043NDv1", .hw_id = HWID_TL_WR1043ND_V1, .hw_rev = 1, .fw_max_len = 0x7c0000, .kernel_la = 0x80060000, .kernel_ep = 0x80060000, .rootfs_ofs = 0x140000, So the maximum allowed kernel size (by default) is 0x140000 (1310720 bytes). We can change this offset to accommodate a bigger kernel, but it is going to change a few other settings (like the flash mappings) and i also want to check if it is going to fit in the flash. Regards, Luiz