Monday, March 19, 2007

想在龙芯上运行mldonkey

想法是把盒子改造成下载器兼播放器,盒子有tvout,直接接电视上放
我的笔记本就不需要拿来拿去了,也不用进windows了
mldonkey的好处是,我在笔记本点连接,就可以直接调用盒子上的mldonkey来下载
不过要移植ocaml
ocaml是一种编程语言
目前只支持IRIX和n32 ABI
现在龙芯还只能运行于Linux,Linux上的应用程序主要还是用o32 ABI
参考Redhatter曾经说过的:
The problem with n32 though, is that few applications actually handle
this case well. Debugging tools like strace and gdb are not coded to
handle this... KDE works sort-of, but is broken in several key areas.
Gnome is totally useless on n32.
两个解决方案,一个是multilib,一个是移植到o32 ABI。似乎都不太容易。
如果multilib,如spb所说的:
you'll need your userland CHOST set to mips64 instead of mips, a gcc
and binutils capable of handling all the binary formats you want to
use, and appropriate system libraries for all the ABIs
不过Redhatter又说过:
The optimal solution would be multilib, however the necessary code for
Portage has not been written. Architectures like AMD64 work because
of shear ugly kludges ... the actual multilib case isn't handled at
all.
如果要移植,至少需要做两件事(可能还有其他的,我还没有发现)
一是增加一个汇编文件mipsel.s(SGI的mips是大头端的,龙芯是小头端),改成o32 ABI
二是为asm generator增加mipsel+o32后端

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home