暸解Neo FreeRunner
启动Neo FreeRunner
您可以自下列数种方法启动Neo FreeRunner。你可以自NAND 内存或NOR 内存启动Openmoko 映像文件。或者,你也可以自U-Boot中启动Neo FreeRunner ,利用这个方法,可以让你更新kernel、root filesystem
自NAND Flash中启动Openmoko 映像档
|
|
按下电源按钮直到Openmoko 开机画面出现(约8秒钟),即可放开电源按钮。
Neo FreeRunner将会开始进入启动 Openmoko 映像档。。 |
自U-Boot中进入NAND Flash
|
|
按钮电源按钮、接着按住AUX 按钮 (约 5~8 秒 )。你可以看到NAND Flash选单。按下AUX选择选单中的选项,按下电源执行选项。
|
自 NOR Flash中启动Openmoko映像档
|
|
按住AUX按钮,接着按住电源按钮。放开AUX按钮。接着,你可以在屏幕上看到 NOR Flash启动选单。(此选项仅提供开发人员使用。若您无法自NAND模式下开机,请使用此选项进行开机)
|
|
NOTE: 进入NOR Flash模式后,您可以依需求,选择下面的选项。
1. Boot (启动)
2. 自MicroSD记忆卡中启动
3. Set console to USB (透过USB进行管理的启动方式)
4. Set console to Serial (连接Debug Board时的启动方式)
5. Reset(还原设定值)
6. Power off (关机)
|
更新Neo FreeRunner
随着Openmoko不断发展,Openmoko会不定时的上传Openmoko root filesystem 、kernel及U-Boot的更新版本。这些可以被写入Neo FreeRunner的内存当中。你可以使用USB接线及Openmoko所提供的工具来更新Neo FreeRunner。
Step 1. 下载更新工具
Neo FreeRunner需要在更新时进入U-Boot。
你可以在下面的位置下载更新工具:
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/dfu-util
Step 2. 更新 Kernel
你可以自下面的位置更新最近的kernel:
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/
在Linux 主机上键入以下的指令:
./dfu-util -a (分割区名称) -R -D (下载之映像档档名)
ex:
./dfu-util -a kernel -R -D uImage-2.6.24+svnr4082-r4055-r3-neo1973.bin
Log in Neo FressRunner in NOR Flash, connect your Neo with Linux Host via USB cable
在进行更新映像档的工作之前,请先将Neo FreeRunner启动至NOR Flash模式,再透过USB接线连接Linux主机,最后,执行上 述指令,即可更新映像档。
在更新完成时,会出现下列讯息:
status(0) = No error condition is present
Done!
|
|
NOTE: The meaning of parameter you spcified:
-a --alt 以名称或号码指定DFU
-R --reset 在完成更新工作后,重设USB讯号
-D --将下载的档案写入韧体
|
./dfu-util -a kernel -R -D uImage-2.6.24+svnr4082-r4055-r3-neo1973.bin
当更新完成时,会出现下列讯息:
status(0) = No error condition is present
Done!
Step 3. 更新Root Filesystem
你可以自下面的地址更新最近的root filesystem:
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/
在Linux 主机上键入以下的指令内容:
./dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2
在更新完成时会出现下面的讯息:
status(0) = No error condition is present
Done!
由USB接线连接Neo FreeRunner,进行控制
使用USB接线连接Neo FreeRunner 与Linux主机,在启动Openmoko 映像档之后,在你的Linux Host端将会出现一个新的界面。
手动控制
在Linux 主机上输入以下的指令:
ifconfig usb0 192.168.0.200 netmask 255.255.255.0
ssh root@192.168.0.202
按下Enter键输入您的密码。
自动更新法
使用 Ubuntu
编辑/etc/network/interfaces
auto usb0
iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.0
重新启动网络服务,并且在Linux主机中输入以下的指令:
ssh root@192.168.0.202
按下 Enter 输入密码。