• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 号召移植android4.1.2给tiny210(TODO整理) 复制链接 | 浏览器收藏 | 打印
君子终日乾乾,夕惕若,厉,无咎
级别: 侠客
UID: 8588
精华: 0
发帖: 61
金钱: 310 两
威望: 65 点
贡献值: 0 点
综合积分: 122 分
注册时间: 2009-08-29
最后登录: 2018-02-08
楼主  发表于: 2012-11-09 23:49

 号召移植android4.1.2给tiny210(TODO整理)

1.google的nexus s,也就是2儿子已经有官方4.1.2的支持了,aosp下面也有crespo的device profile,cyanogenmod也有crespo的cm10支持
2.s5pv210和s5pv110好像是同系列cpu,kernel支持都是相同的也就是https://en.wikipedia.org/wiki/Samsung_Exynos#Exynos_3110
3.google官方也有放出nexus s需要的binary,https://developers.google.com/android/nexus/drivers
4.之前有高手已经移植了cm7
5.aosp的crespo device profile,https://android.googlesource.com/device/samsung/crespo

我们再参照友善的官方源码应该可以移植出4.1.2来,接下来就是根据官方的device profile再结合上面的资源制作出tiny210的device profile,然后无尽的调试。

既然板子的kernel代码是开放的,就算是hal代码不开放,相信我们也可以根据cmmod和aosp的hal适配成功。友善不愿意开放代码,我们就自己来吧。

TODOs:
最开始要以最简单的方式来移植,只求能正常boot起来,基本特性可以正常工作。以后再逐渐完善。
文件系统和镜像工具,考虑使用linaro项目的相关工具,尽量利用已有的项目(多谢http://www.aiothome.net/u.php?action-show-uid-27.html)。

0.用github托管代码,主要的改动都集中到tiny210的device profile里面
1.选择cm10或者aosp 4.1.2开始?(cm10)
2.从crespo的device profile开始
3.从友善4.0.3和crespo里面取需要的binary库(pvr和egl以及hal库)
4.友善的内核为了多个linux都不改内核代码,没有完全按照android的要求去做,比如framebuffer设备节点就不在/dev/graphics/fb0,这个android代码好像是hardcode吧
5.那个linuxrc也是为了兼容多个linux的启动参数,唉,这个就不要了吧。。。
6.没有sdflasher对应在linux下如何把各个image放到sdcard上

进展:
0.开工,制作device profile,编译cm代码(暂停状态,出差,工作可能异动
1.使用uboot引导友善提供的内核源码,启动官方镜像,找到支持fastboot和dnw的uboot代码 http://www.aiothome.net/read.php?tid-25944.html,希望能一起测试完善,这里的校验什么的我还没有测试
2.友善的内核需要小小修改才能启动,希望能顺便把有关问题解决了并上传到github
3.uboot 启动linux内核遇到问题(串口始终没有任何信息),查阅了论坛相关的帖子,更换几个可用的bootloader都无果,希望确认问题所在(在kasim的帮助下已经解决)
4.uboot(带fastboot的改版和kasim的2012版都可以正常引导内核镜像了),linux3.0内核和最新光盘的android两个版本的文件系统都不能正常启动,正在查错
[ 此帖被vmlinz在2013-01-06 16:53重新编辑 ]
君子终日乾乾,夕惕若,厉,无咎
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-11-10 11:18

 回 楼主(vmlinz) 的帖子

支持!Nexus S用的其实就是S5PCV210(S5PV210和S5PC110其实是一样的)。
如果楼主能做一份详细的移植task list, 我相信论坛里还是有几个高手可以跟你一起合作的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2012-11-10 17:48

 回 7楼(huhu2207) 的帖子

1、init方式太神奇,而且有些模块不开源,影响整体开发,而且不符合GPL协议……

按照AOSP源代码构建的Android文件系统会使用同一的initramfs作为ramdisk,并且使用Android统一的init。

2、不支持CPU调频

不管是kernel.org内核还是AOSP的samsung内核,都已经支持S5PV210的cpufreq驱动,使用默认的ondemand governor应该就可以实现按照CPU loading实时调频率了。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2012-11-10 19:54

 回 10楼(huhu2207) 的帖子

你是怎么试的?用的不是cpufreq吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2012-11-10 20:33

 回 12楼(huhu2207) 的帖子

我没有用过setcpu。不过我想你最好先确保你用的内核打开了cpufreq支持。我在我的Nexus S + CM10上确认过是没有问题的。如果你还有问题,另外开一个帖子我们再讨论。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2012-11-11 08:29
这是CM的kernel Git 仓库 for Samsung Crespo (Nexus S)
git://github.com/CyanogenMod/android_kernel_samsung_crespo.git

可以在https://github.com/CyanogenMod/android_kernel_samsung_crespo/tree/jb在线浏览(JellyBean分支)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2012-11-11 13:52

 回 16楼(vmlinz) 的帖子

我想你可以通过github这样的服务和大家一起合作。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2012-11-11 17:11

 Re:Re:回 16楼(vmlinz) 的帖子

引用第18楼huhu2207于2012-11-11 16:56发表的 Re:回 16楼(vmlinz) 的帖子 :
github不错,但太容易被河蟹了

这个对你来说不是问题:)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2012-11-11 21:02

 回 20楼(benjaminwan) 的帖子

只是后期完善工作量很大,而且google版本发布嗖嗖地快

这就是用git作为SCM工具的好处,可以快速的合并上游源代码的改动。

但是烧写、试验如果有更好的办法(比如NFS启动文件系统)来改善效率的话,会好做不少。有啥好办法么?

也许离线SD卡烧写是一个比较方便而且快速的方法。Linaro有一个制作SD卡镜像for Android的工具"linaro-image-tools"(https://launchpad.net/linaro-image-tools), 适用于支持SD卡boot,并且从SD卡分区挂载文件系统镜像的系统,比如Tiny210。
参考https://wiki.linaro.org/Platform/Android/InstallImages
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2012-11-11 21:50
引用第24楼huhu2207于2012-11-11 21:12发表的  :
linaro的那个工具能完全兼容210吗?怎么上面全说的是panda board之类的板子?

很不幸的是,这个工具目前还不支持S5PV210的板子。它是针对最新的ARM平台,包括S5PV310, OMAP4等等。但我们可以利用这个工具制作SD卡镜像的原理,加上210平台需要的支持就可以了。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go