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