N900 install NITDroid Gingerbread on SDcard simply
I tried to use N900-Autoinstaller here: http://wiki.nitdroid.com/index.php?title=N900-Autoinstaller But failed。
The guid N900-install here: http://wiki.nitdroid.com/index.php?title=N900-install is outdated, some of the packages can't downloaded.
I have installed Gingerbread on my N900 with the following steps:
1. Prepare SDcard
For this step you need to know the capacity of your SDcard. The Android partition can only be 2GB, so you need to create a FAT partition that is so large there will only be 2GB left. The number must be in MB, example some recommended sizes are 1, 100, 2100, 6100, 14100, 30100. If its 8GB you can choose a number like 6100MB, if its 4GB you can choose a number like 2100MB. If your memory card is 2GB or below, you can choose 1MB as a number. I suggest you use 4GB or bigger.
Here's an example using 4GB SDcard, use these commands in your N900:
# sudo gainroot
# umount /dev/mmcblk1p1
# sfdisk -uM /dev/mmcblk1 << EOF
,2100,C
,,L
,,
,,
EOF
2. Install the packages that are needed during the installing
# apt-get install wget bzip2 multiboot multiboot-kernel-maemo
or download these packages and install.
from http://maemo.org/packages/:
wget_1.10.2-2osso3_armel.deb
bzip2_1.0.5-3+0m5_armel.deb
multiboot_0.2.10_armel.deb
multiboot-kernel-maemo_0.3-1_armel.deb
3. Install android filesystem and kernel
# cd /home/user/MyDocs
# wget http://downloads.nitdroid.com/e-yes/gingerbread.tar.bz2
# bzip2 -d gingerbread.tar.bz2
# mkdir -p /and
# mount /dev/mmcblk1p2 /and
# cd /and
# rm -rf *
# tar xvf /home/user/MyDocs/gingerbread.tar
# cd /home/user/MyDocs
# wget http://downloads.nitdroid.com/nitinstaller/Packages/nitdroid-kernel-2.6.28-06_final1_armel.deb
# dpkg -i nitdroid-kernel-2.6.28-06_final1_armel.deb
4. Reboot and enjoy android
# reboot
choose 2 to boot android
5. About this version:
What is working:
- 3D
- GApps
- accelerometer && orientation policies
- lights HAL
- hardware keyboard%)
- sound
- charging, battery status indication
- modem/data, SMS receiving, USSD, calls/signaling
- A2SD
- wi-fi connectivity
- bluetooth
What is NOT working:
- voicecalls (wut do you expect -- mediaserver crashes when ringtone is played?)
- fakegps
- UMS
Showing posts with label android. Show all posts
Showing posts with label android. Show all posts
Friday, 8 April 2011
Wednesday, 30 March 2011
又是JAVA
写在前面的话:本来想一直用英文写这个博客的,但是现在能力有限,还是用中文好了。
最近迷上了kindle 3,居然发现这个东西的系统还是开源的, 在亚马逊的官网用GPL(GNU General Public License)发布了些源码。下载后,看了一眼,好乱,一堆的压缩包。在网上找了下,没有发现有整理好的版本,看来我自己定做个性化kindle 3系统的愿望暂时不容易实现啊。
不弄系统了,自己移植个浏览器到kindle 3上也好。到处搜索看看K3的APP是如何开发的。发现kindle 3 是用的linux内核,上层应用程序却是JAVA( Running natively in Java, active content has access to our Whispernet mobile network and Kindle’s large e-ink display.)。这点让我想到了android, 看看android的构架:
为啥这些嵌入式设备上层都用JAVA来实现应用呢? JAVA真的这么好? 可惜我不会JAVA,难道我真的要学JAVA了?
我看kindle 3源码包里面有个:gtk+-2.16.5.tar.bz2 ,这个说明了什么?kindle 3的应用程序应该能用GTK+写才对,那官方为什么说是JAVA呢?难道这个官方发布的代码是很久以前的版本?
最近迷上了kindle 3,居然发现这个东西的系统还是开源的, 在亚马逊的官网用GPL(GNU General Public License)发布了些源码。下载后,看了一眼,好乱,一堆的压缩包。在网上找了下,没有发现有整理好的版本,看来我自己定做个性化kindle 3系统的愿望暂时不容易实现啊。
不弄系统了,自己移植个浏览器到kindle 3上也好。到处搜索看看K3的APP是如何开发的。发现kindle 3 是用的linux内核,上层应用程序却是JAVA( Running natively in Java, active content has access to our Whispernet mobile network and Kindle’s large e-ink display.)。这点让我想到了android, 看看android的构架:
为啥这些嵌入式设备上层都用JAVA来实现应用呢? JAVA真的这么好? 可惜我不会JAVA,难道我真的要学JAVA了?
我看kindle 3源码包里面有个:gtk+-2.16.5.tar.bz2 ,这个说明了什么?kindle 3的应用程序应该能用GTK+写才对,那官方为什么说是JAVA呢?难道这个官方发布的代码是很久以前的版本?
Tuesday, 28 December 2010
android gstreamer debug information can not work
在android上面做一些gstreamer的工作
尝试显示出gstreamer自己的调试信息
在android模拟器上面运行:
gst-launch-0.10 --gst-debug-level=1 audiotestsrc ! audioflingersink
结果显示:
Could not open converter from 'ASCII' to 'UTF-8'
调试发现:libiconv在android上面已经移除了
在gconvert.c g_convert()中添加了以上代码自己转换,将ASCII 转换成 UTF-8,debug 消息就可以打印出来了
//--> allen add for testing
printf("allen in gconvert.c g_convert() %s %d\n", str, len);
gsize retval;
gchar *utf;
gsize utfmax;
if (len < 0)
{
len = strlen (str);
}
utfmax = 2 * (len + 1);
printf("utfmax: %d\n", utfmax);
utf = g_malloc (utfmax);
for (retval = 0; *str && utfmax > 1; utfmax -= 2, retval += 2)
{
*(utf + retval/2) = *(str + retval/2);
*(utf + retval/2 + 1) = 0;
}
if (utfmax > 0)
{
*utf = *str;
++retval;
}
if (bytes_read)
*bytes_read = len + 1;
if (bytes_written)
*bytes_written = retval;
printf("allen in gconvert.c g_convert() %s %d\n", utf, utfmax);
return utf;
//<--end
devkit8000,android,NFS boot
NFS boot
- Follow the steps to boot the board using NFS
- Setup host machine as NFS server (optional)
- If you want to setup a new NFS server, do this step
- Add one line in /etc/exports:
/nfsroot *(rw,no_root_squash,sync)
- Then restart NFS server
$ sudo /etc/init.d/nfs-kernel-server restart
- If you want to setup a new NFS server, do this step
- Build Kernel for NFS boot
- make sure your kernel enable these options for NFS boot:
[*] Networking support --->
Networking options --->
[*] IP: kernel level autoconfiguration
[*] IP: DHCP support
File systems --->
[*] Network File Systems --->
<*> NFS client support
[*] NFS client support for NFS version 3
[*] NFS client support for the NFSv3 ACL protocol extension
[*] NFS client support for NFS version 4 (EXPERIMENTAL)
[*] Root file system on NFS - Build kernel:
- make sure your kernel enable these options for NFS boot:
- Copy kernel to the TFTP server's root
- We also have a TFTP server on the test machine, the TFTP server's root path is: /mydroid/tftpboot
- Put kernel file to the TFTP server's root path
- uImage is the name of the kernel file you just built out
- We also have a TFTP server on the test machine, the TFTP server's root path is: /mydroid/tftpboot
- Prepare the rootfs
- Put the files to the NFS root path
- Use android for example, we build the file system first, then do the commands:
- Put the files to the NFS root path
- Set the boot parameters to kernel for the frist time, before it run 'autoboot'
- serverip is the IP address of your NFS server
- for example, our NFS server ip here is 10.126.34.43
- serverip is the IP address of your NFS server
- Boot
- Just restart the board
- The same as normal boot, Enjoy!
- Just restart the board
Subscribe to:
Posts (Atom)