how to use Debian mips packages?

Utilities and tools for networking, routers, setup etc
Post Reply
xoid
Novice
Novice
Posts: 17
Joined: Mon Mar 28, 2011 12:09 pm

how to use Debian mips packages?

Post by xoid » Sat Oct 15, 2011 1:38 pm

Debian has support for mips and mipsel (what is the difference?)
I have unpack varios deb packets by 7z archiver in Windows.

But no Debian binaries can run in my DLINK G604T with router tech firmawre.

What Debian version is better to choose and what arch (mips or mipsel)?
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: how to use Debian mips packages?

Post by mstombs » Sat Oct 15, 2011 3:13 pm

Unlikely to be able to use Debian mips (our AR7 is little endian mipsel), due to bespoke old montavista kernel and cut-down uclibc and other libraries. Better chance with optware packages, but again lack of /opt and standard libs is an issue.

See the RouterTech repository for custom builds of some packages
viewforum.php?f=28

There is some portability of binaries between Ti AR7 mipsel and Broadcom mipsel - I've got some Tomato binaries to run on RouterTech and vice-versa.
See http://multics.minidns.net/blog/article ... utilities/ for various Tomato packages - NB the static compiles have no library dependency and are huge.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: how to use Debian mips packages?

Post by thechief » Sat Oct 15, 2011 3:14 pm

You need mipsel. I doubt that Debian binaries will work, as it is not sufficient to support the cpu - you also need library support (in our case, uClibc rather than GNU libc). Your best bet is to build whatever you want to run yourself, using an appropriate cross-compiler and toolchain.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
xoid
Novice
Novice
Posts: 17
Joined: Mon Mar 28, 2011 12:09 pm

Re: how to use Debian mips packages?

Post by xoid » Sun Oct 16, 2011 10:38 am

Thank you !
I have try Tomato utiliies but got the same error as for debian binaries:


/var/ppp # ./pppdump
./pppdump: line 1: syntax error: unexpected "("
/var/ppp #

looks like ELF format is not recognized. but first bytes in binaries looks similar.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Re: how to use Debian mips packages?

Post by thechief » Sun Oct 16, 2011 2:22 pm

xoid wrote:looks like ELF format is not recognized.
That is not the problem. The problem has already been well explained at least twice, and it would do no good to rehash it.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
mstombs
RouterTech Team
RouterTech Team
Posts: 3753
Joined: Wed Jan 10, 2007 11:54 pm

Re: how to use Debian mips packages?

Post by mstombs » Mon Oct 17, 2011 1:08 am

A syntax error usually means the binary file format not understood and the shell script interpreter has had a go - usually because wrong architecture - or test mode, not binary mode transfer. Does anything work? - ppp related probably not good starting point because pppd fairly heavily patched (mainky restricted options and size reduction) - doesn't use dynamic plugins etc.
Post Reply