Date: Wed, 28 Aug 2013 10:47:09 -0300 From: "Nenhum_de_Nos" <matheus@eternamente.info> Cc: freebsd-mips@freebsd.org Subject: Re: TP-Link 1043ND - its tme :) Message-ID: <96102ae72beb72b2ccdbeacb6f0ca0c4.squirrel@arroway.org> In-Reply-To: <CAB=2f8yso_JgC7YERwArcy2hu2-KijY28qb48M43Q_buXKw9ow@mail.gmail.com> References: <fff374ff14148d1fb43d22455e2f068f.squirrel@arroway.org> <CAB=2f8yso_JgC7YERwArcy2hu2-KijY28qb48M43Q_buXKw9ow@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, August 28, 2013 10:19, Luiz Otavio O Souza wrote: > On 28 August 2013 07:20, Nenhum_de_Nos <matheus@eternamente.info> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96102ae72beb72b2ccdbeacb6f0ca0c4.squirrel>