From owner-freebsd-mips@FreeBSD.ORG Wed Aug 28 13:47:19 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 DCFCD5EA for ; Wed, 28 Aug 2013 13:47:18 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from phoenix.eternamente.info (phoenix.eternamente.info [109.169.62.232]) by mx1.freebsd.org (Postfix) with ESMTP id 986712868 for ; Wed, 28 Aug 2013 13:47:18 +0000 (UTC) Received: by phoenix.eternamente.info (Postfix, from userid 80) id 5CE9B1CC59; Wed, 28 Aug 2013 10:47:09 -0300 (BRT) Received: from 200.164.157.132 (SquirrelMail authenticated user matheus) by arroway.org with HTTP; Wed, 28 Aug 2013 10:47:09 -0300 Message-ID: <96102ae72beb72b2ccdbeacb6f0ca0c4.squirrel@arroway.org> In-Reply-To: References: Date: Wed, 28 Aug 2013 10:47:09 -0300 Subject: Re: TP-Link 1043ND - its tme :) From: "Nenhum_de_Nos" Cc: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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:47:19 -0000 On Wed, August 28, 2013 10:19, Luiz Otavio O Souza wrote: > 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 Luiz, -rw-r--r-- 1 root wheel 19300352 Aug 28 00:49 mfsroot-tl-wr1043nd.img dir ~/work/freebsd/head. Although the hint to build as user, this vm is just for this and I am using root all the way (is not a problem, right?!). -rwxr-xr-x 1 root wheel 5909301 /root/work/freebsd/head/obj/mipseb/mips.mips/root/work/freebsd/head/src/sys/TP-WN1043ND/kernel are they the right ones to look ? thanks for the answer. With time, I'll get familiar with the whole thing and walk with my own feet more easily :) matheus -- We will call you Cygnus, The God of balance you shall be A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? http://en.wikipedia.org/wiki/Posting_style