〔翻译〕摩托罗拉E680的linux系统解码

类别:Java 点击:0 评论:0 推荐:

探索结果

  这是迄今为止我发现的一些结果:
  目录 /var /tmp,一部分 /etc/ 下的文件存放在ram中。此ram就是机子标配的64M RAM
  目录 / 是只读falsh
  目录 /.backup/ 是此机子的完全备份,并且带有重新格式化并恢复预装程序的指令
  目录 /diska/ 是可重写flash文件系统,在文件浏览器中标记为“Phone”
  目录 /ezxlocal/ 是可重谢falsh内存,用于应用程序配置
  目录 /mmc/mmca1/ 就是SD卡
  预装程序都在目录 /usr/SYSqtapps/ 下,这些程序应该全部出现在菜单(注:手机上)。 "wvimps"是IM程序 (尽管这个程序是你的,但有可能不能在菜单中出现) ,mtc看起来像是电话测试命令。

  操作系统和Zaurus Linux系统是二进制兼容的,虽然它缺少了用于Qtopia应用程序的共享库,以至于像嵌入控制台这样的程序无法启动。我正在努力看能否把这些库补充进去同时有不给系统造成伤害。

  下面是些好消息。我能描述出菜单的格式了(预先载入的程序罗列在目录 /usr/language/preloadapps/NativeDB 下);暂时还不能在无SD卡的情况下添加项目。SD卡装好的话,会有一个目录 /mmc/mcca1/.system/java/am/ ,目录下有另外一个DB文件(可能名字会是InstRemDB)。如果添加或者改变这些入口(类似于NativeDB下的入口),那点击的时候就会运行本地linux程序。我已经能添加mtc程序到菜单中了。我在设想,如果能够指出程序所用的包文件,那就可以找到一种安装本地程序的方法咯。

Exploration Results

  Here's what I've found so far:
  the /var /tmp, and a few /etc/ files are in /ram which is the 64 megs RAM of the unit
  / is read only cramfs (flash)
  /.backup/ is a complete backup of the stock phone along with commands to reformat and restore all preinstalled apps/etc.
  /diska/ is the rewritable flash filesystem accessable as "Phone" from the file browser
  /ezxlocal/ is rewritable flash memory for application configuration/etc.
  /mmc/mmca1/ is the SD card
  Preinstalled applications are in /usr/SYSqtapps/ there are a few there that are not in the menu. "wvimps" is the IM program (which wasn't in my menu, although it may be in yours) and mtc seemed to be a phone test command.

  The system _is_ binary compatable with Zaurus Linux, although it is missing the shared librarys for Qtopia apps, so things like embeddedkonsole won't start. I'm working on seeing if these libs can be added without hurting it.

  Now onto the good news. I was able to figure out the menu format (preloaded apps are listed in /usr/language/preloadapps/NativeDB). I couldn't figure out how to add an item without having an SD card in place. With the SD card in place, there's is a /mmc/mcca1/.system/java/am/ directory with another DB file (called something like InstRemDB). If you add or change and entry there that looks like the entries in the NativeDB it will run the native linux app when clicked. I was able to add the "mtc" program to my menu this way. I imagine there's a way to install native apps if we can figure out the packaging used.

  取自http://www.howardforums.com/showthread.php?s=&postid=4392063#post4392063

本文地址:http://com.8s8s.com/it/it11932.htm