• «
  • 1
  • 2
  • 3
  • »
  • Pages: 2/3     Go
主题 : 移植Android2.1(附获取freerunner 2.1 源码的方法) 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
10楼  发表于: 2010-08-25 22:52
引用第54楼359853147qq于2010-08-25 17:27发表的  :
支持yafs映像格式吗?

支持,但前提是你用的bootloader和内核都必须支持,并且配置正确,即可以正确的写入yaffs格式的镜像并且可以由内核正确的读出并挂载。
"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
11楼  发表于: 2010-08-25 22:56
引用第55楼359853147qq于2010-08-25 18:01发表的  :
版主啊,楼主提供的文件系统源文件需要生成可用在mini2440 64M的映像需要怎么做?

呵呵,问题比较低级,别笑话,刚入门,就是困难多多!!
多谢支持!!

可以用64M NAND Flash版的mkyaffs2image工具来制作。但估计作出来的镜像文件大小已经超过64M了,建议你还是把文件系统放在SD卡上启动,具体的步骤参考http://aiothome.net/read.php?tid-2903.html
"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
12楼  发表于: 2010-08-26 16:01

 回 58楼(359853147qq) 的帖子

android2.1-armv4t-rootfs.tar.gz 到SD卡里的FAT32里面并解压,解压过程中报出了很多

你为什么要把根文件系统解压到FAT32的分区上?那是留给Android做USB Mass Storage的。文件系统应该解压在另外一个EXT3的分区里,这些在那个帖子里说的很清楚吧。

我还是强行的解压,然后在XP里的ghost做了镜像到SD卡里的linux ext3里去

如果你已经成功的把文件系统解压到EXT3分区上了,为什么还要做Ghost?帖子的作者提供了解压缩和Ghost两种方法,你只要选择其中一种,不是吗?

Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0"

你没有按照帖子里的第三步"设置linux_cmd_line", supervivi传递给内核的命令行依然是从NAND Flash挂载根文件系统。安全起见,你可以在内核的命令行参数里加上rootdelay=3来延迟一点挂载文件系统的时间,确保SD卡初始化正确。
"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
13楼  发表于: 2010-08-26 22:21
引用第61楼359853147qq于2010-08-26 18:05发表的  :
版主啊,新问题啊:添加和不添加rootdelay参数 结果内核启动打印出来的错误不一样,是不是我内核配置有问题啊?

1.添加rootdelay的打印出来的命令行参数 linux command line is: "console=ttySAC0 root=179:2 rootdelay=3 init=/linuxrc"
2.没添加rootdelay的打印出来的命令行参数 linux command line is: "console=ttySAC0 root=179:2 init=/linuxrc"

.......

看起来这个是shinelk在实现等待SD卡初始化完成时出了一个问题,事实上rootdelay=3就可以实现这一功能。你可以打上附件里的补丁来移除shinelk在内核中的修改部分。
打补丁的步骤如下:
$cd /path/to/android2.1_kernel_mini2440/source/code
$gunzip -dc /path/to/remove_mmc_wait_hack.patch.gz |patch -p1

然后重新制作zImage并下载到开发板上。

另外,我觉得你的SD卡初始化本身似乎就有问题,正常情况下,在"Waiting 3sec before mounting root device..."之后应该会出现检测到的SD卡的信息,我想你最好贴出完整的内核启动信息以方便分析。
[ 此帖被kasim在2010-08-26 22:57重新编辑 ]
附件: remove_mmc_wait_hack.patch.gz (2 K) 下载次数:15
"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
14楼  发表于: 2010-08-27 12:10
看起来的确是SD卡没有检测到。
打开你内核源代码目录下的.config文件,确保里面的CONFIG_MMC_S3C的值是"y", 把“# CONFIG_MMC_DEBUG is not set”改成"CONFIG_MMC_DEBUG=y", 然后make ARCH=arm oldconfig,再重新制作zImage。重新插拔一下SD卡,在supervivi中在内核的命令行里加上"ignore_loglevel", 把内核的启动信息贴出来。
"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
15楼  发表于: 2010-08-27 13:24
生成zImage应该是"make ARCH=arm zImage"吧,你之前都是直接用“make”的吗?
"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
16楼  发表于: 2010-08-27 13:53
Kernel configured for XIP (CONFIG_XIP_KERNEL=y)

shinelk提供的源代码包里的.config里CONFIG_XIP_KERNEL是没有选中的,是你改了内核的默认配置。
我想你最好重新解压缩下载下来的android2.1_kernel_mini2440.tar.gz, 按照上面的帖子修改源代码根目录下面的".config"文件,然后make ARCH=arm oldconfig && make ARCH=arm zImage
"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
17楼  发表于: 2010-08-27 14:37

 回 79楼(359853147qq) 的帖子

你用来解压的命令没有错,可能是压缩包在下载的时候损坏了。
我看你还是重新下载吧,在论坛的FTP的android-2.1-mini2440-shinelk目录下。文件的大小应该是64.56M
"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
18楼  发表于: 2010-08-27 18:16

 回 81楼(359853147qq) 的帖子

你确定你把文件系统正确解压到SD卡上了?
"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
19楼  发表于: 2010-08-28 10:18

 回 83楼(359853147qq) 的帖子

恭喜,终于走上正轨了:)
屏也在不停的闪,貌似屏的频率不对!!

你用的是那种mini2440的LCD?

既然现在Android的文件系统已经运行起来了,我想你可以用命令行上的logcat工具来诊断Android的启动流程。
"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
  • 3
  • »
  • Pages: 2/3     Go