主题 : 移植Android2.1(附获取freerunner 2.1 源码的方法) 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
70楼  发表于: 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: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
71楼  发表于: 2010-08-27 13:10
执行了
make ARCH=arm oldconfig后

执行
make
出现了
warning:#warning syscall fadvise64 not implemented
warning:#warning syscall migrate_pages not implemented
warning:#warning syscall pselect6  not implemented
warning:#warning syscall  ppoll not implemented
warning:#warning syscall eppoll_pwait  not implemented
CHK   include/linux/compile.h
Kernel:arch/arm/boot/xipImage is ready (physical address:0x00080000)
Building modules, stage 2.
MODPOST 2 modules

生成不了zImage
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
72楼  发表于: 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: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
73楼  发表于: 2010-08-27 13:36
用make ARCH=arm zImage
编译过程出错:
Kernel configured for XIP (CONFIG_XIP_KERNEL=y)
only the xipImage target is available in this case
make[1]:***[arch/arm/boot/zImage]错误1
make[2]:***[zImage]错误2
级别: 侠客
UID: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
74楼  发表于: 2010-08-27 13:46
  
内核配置里多了个 xip的配置
去掉就行了
级别: 侠客
UID: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
75楼  发表于: 2010-08-27 13:51
添加了 ignore_loglevel
信息如下:

b
Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00500000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 root=179:2 rootdelay=3 ignore_loglevel init=/linuxrc"
MACH_TYPE = 1999
NOW, Booting Linux......
Uncompressing Linux....................................................................................................................... done, booting the kernel.
Linux version 2.6.27 (root@lwj-desktop) (gcc version 4.4.0 (GCC) ) #329 PREEMPT Fri Aug 27 13:46:08 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
Converting old-style param struct to taglist
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat c03a6d3c, node_mem_map c0425000
  DMA zone: 16256 pages, LIFO batch:3
CPU S3C2440A (id 0x32440001)
MM: CPU does not support supersection mapping for 0x55000000000 at 0xf0d00000
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttySAC0 root=179:2 rootdelay=3 ignore_loglevel init=/linuxrc
debug: ignoring loglevel setting.
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 60640KB available (3472K code, 613K data, 120K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 288 bytes
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
S3C244X: Clock Support, DVS off
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
ashmem: initialized
NTFS driver 2.1.29 [Flags: R/W DEBUG].
yaffs Aug 27 2010 13:28:20 Installing.
msgmni has been set to 118
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
s3c2410fb_set_par!
Console: switching to colour frame buffer device 100x30
fb0: s3c2410fb frame buffer device
adc    initialized
input: buttons as /devices/virtual/input/input0
buttons    initialized
leds    initialized
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
nbd: registered device at major 43
logger: created 64K log 'log_main'
logger: created 256K log 'log_events'
logger: created 64K log 'log_radio'
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 08:90:90:90:90:90
eth0: dm9000e at c4804000,c4806004 IRQ 51 MAC: c3b84134 (friendly-arm)
Linux video capture interface: v2.00
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00060000 : "vivi"
0x00060000-0x00260000 : "kernel_linux2.6.27"
0x00260000-0x04000000 : "root_yaffs2"
mice: PS/2 mouse device common for all mice
input: s3c2410 TouchScreen as /devices/virtual/input/input1
s3c2410 TouchScreen successfully loaded
UDA1341 audio driver initialized
failed to get memory region resouce
s3c2410-iis: probe of s3c2410-iis.0 failed with error -2
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Waiting 3sec before mounting root device...
VFS: Cannot open root device "179:2" or unknown-block(179,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00        384 mtdblock0 (driver?)
1f01       2048 mtdblock1 (driver?)
1f02      63104 mtdblock2 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
76楼  发表于: 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: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
77楼  发表于: 2010-08-27 14:03
Driver 'sd' needs updating - please use bus_type methods
...
failed to get memory region resouce
...
是不是SD卡问题还没处理好?
我补丁是这样打的:
将remove_mmc_wait_hack.patch.gz拷贝到kernel文件夹[android21_kernel]里面
进入该压缩文件所在的路径
$cd /android21_kernel/
$gunzip -dc remove_mmc_wait_hack.patch.gz |patch -p1
不知这样的操作对不?
级别: 侠客
UID: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
78楼  发表于: 2010-08-27 14:11
之前解压内核文件是出现过解压错误,但还是可以编译:

之前
用tar xvzf android2.1_kernel_mini2440.tar.gz命令解压过程中出现
tar:归档文件中异常的EOF
tar:归档文件中异常的EOF
tar:错误不可恢复:现在退出

不知是不是内核源文件出问题了,还是我用的指令有问题???
级别: 侠客
UID: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
79楼  发表于: 2010-08-27 14:25
补充解压不出 usr文件夹