主题 : 移植Android2.1(附获取freerunner 2.1 源码的方法) 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
80楼  发表于: 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: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
81楼  发表于: 2010-08-27 18:02
版主,新状况:
貌似挂接上了,但执行不了linuxrc
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) ) #299 PREEMPT Fri Aug 27 17:44:05 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 c04081a4, node_mem_map c0487000
  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: 60244KB available (3844K code, 638K data, 116K 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
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-core: driver [dummy] registered
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 17:40:31 Installing.
msgmni has been set to 117
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)
zd1211rw usb_init()
usbcore: registered new interface driver zd1211rw
zd1211rw initialized
usbcore: registered new interface driver zd1201
Linux video capture interface: v2.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
i2c-core: driver [ovcamchip] registered
usbcore: registered new interface driver ov511
ov511: v1.64 for Linux 2.5 : ov511 USB Camera Driver
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-0x00020000 : "vivi"
0x00050000-0x00250000 : "kernel_linux2.6.27"
0x00250000-0x03ffc000 : "root_yaffs2"
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohc2en30usb usb1: configuration #1 c B:Initializing USB Mass Storage driver...
usbcore: re ors3ctcei
usbcorer inens3c2410 TouchScr )r4ese2iiccc04v-c.2s2I 00c22 ecatoia  
n 3e4ndgred2
:u0nq4i: g1 teePups3   s s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 16875kHz (requested: 25000kHz).
s3c2440-sdi s3c2440-sdi: running at sn252kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 116K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
82楼  发表于: 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: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
83楼  发表于: 2010-08-28 09:30
版主,新状况,系统时挂接上了,也显示android里的背景图片--山水画 了,但就是没有图标!!!
屏也在不停的闪,貌似屏的频率不对!!
之前出现的问题:
1.下载的内核,解压后部分文档欠缺,重新下载,打上版主给出的有关SD的补丁,重新配置一下内核。
2.通过SD卡挂载文件系统,参考《SD卡启动系统步骤(可用于64M板)》,将android2.1-armv4t-rootfs.tar.gz解压到linux分区。

之前挂接不到SD卡上的linuxrc文件,是由于SD卡质量有问题,后来换一个就ok了。

但现在还是有新问题,打印出来的信息如下,版主啊,何解????

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) ) #303 PREEMPT Fri Aug 27 18:28:00 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 c04061a4, node_mem_map c0485000
  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: 60256KB available (3824K code, 638K data, 124K 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
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c-core: driver [dummy] registered
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 18:24:33 Installing.
msgmni has been set to 117
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 /class/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: c3bc4134 (friendly-arm)
zd1211rw usb_init()
usbcore: registered new interface driver zd1211rw
zd1211rw initialized
usbcore: registered new interface driver zd1201
Linux video capture interface: v2.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
i2c-core: driver [ovcamchip] registered
usbcore: registered new interface driver ov511
ov511: v1.64 for Linux 2.5 : ov511 USB Camera Driver
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-0x00020000 : "vivi"
0x00050000-0x00250000 : "kernel_linux2.6.27"
0x00250000-0x03ffc000 : "root_yaffs2"
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci 3musb usb1: configuration #1 ch
u:Initializing USB Mass Storage driver...
usbcore: registerrSes3cug :iusbcore:r inous3c2410 TouchScreene
0s4ese2d
ccc0 ss2c.2s2S2Cc0a22 0o0at0o0n-e
iq4ie4ndgebts :u
iq4de3ige teRldCps3  3ais3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 16875kHz (requested: 25000kHz).
s3c2440-sdi s3c2440-sdi: running at 16875kHz (requested: 0a2Skkjournald starting.  Commit interval 5 seconds
EXT3-fs warning: mounting unchecked fs, running e2fsck is recommended
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 124K
Warning: unable to open an initial console.
ts_control_open!
ts_control_release!
init: cannot open '/initlogo.rle'
s3c2410fb_set_par!
sh: can't access tty; job control turned off
/ # init: cannot find '/system/bin/playmp3', disabling 'bootsound'
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
warning: `rild' uses 32-bit capabilities (legacy support in use)
g_file_storage gadget: File-backed Storage Gadget, version: 7 August 2007
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /dev/block/mmcblk0p1
fb_mmap!
binder: release 942:942 transaction 1232 out, still active
binder: 840:864 transaction failed 29189, size 4-0
binder: send failed reply for transaction 1232, target dead
binder: release 840:844 transaction 3244 in, still active
binder: send failed reply for transaction 3244 to 1081:1143
binder: release 840:991 transaction 3217 in, still active
binder: send failed reply for transaction 3217 to 1115:1115
binder: release proc 840, transaction 3239, not freed
init: untracked pid 724 exited
fb_mmap!
  
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
84楼  发表于: 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."
级别: 侠客
UID: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
85楼  发表于: 2010-08-28 11:15
谢谢一直以来的耐心指导~~~~~

我用的是mini2440 配置的7inch 的 “a70”屏

现在的情况是 大钟没出来,屏忽然明亮忽然暗淡点,但背景还是能看到,啥图标都没看的,触摸屏不能用!
是不是背光有问题?触摸屏有问题?还有是不是android文件系统过大在内存上跑不起来,需要精简一下文件系统吗??
级别: 侠客
UID: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
86楼  发表于: 2010-08-28 11:16
“可以用命令行上的logcat工具来诊断Android的启动流程”能否列举一二??
级别: 侠客
UID: 23322
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2010-06-17
最后登录: 2010-09-10
87楼  发表于: 2010-08-28 11:19
另外补上屏的配置:
只修改了宽和高,
不知其他参数需要改不?

#define LCD_WIDTH 800         //240
#define LCD_HEIGHT 480        //320
#define LCD_PIXCLOCK 170000

#define LCD_RIGHT_MARGIN 25
#define LCD_LEFT_MARGIN 0
#define LCD_HSYNC_LEN 4

#define LCD_UPPER_MARGIN 1
#define LCD_LOWER_MARGIN 4
#define LCD_VSYNC_LEN 1

#if defined (LCD_WIDTH)

static struct s3c2410fb_display mini2440_lcd_cfg __initdata = {

#if !defined (LCD_CON5)
    .lcdcon5    = S3C2410_LCDCON5_FRM565 |
              S3C2410_LCDCON5_INVVLINE |
              S3C2410_LCDCON5_INVVFRAME |
              S3C2410_LCDCON5_PWREN |
              S3C2410_LCDCON5_HWSWP,
#else
    .lcdcon5    = LCD_CON5,
#endif

    .type        = S3C2410_LCDCON1_TFT,

    .width        = LCD_WIDTH,
    .height        = LCD_HEIGHT,

    .pixclock    = LCD_PIXCLOCK,
    .xres        = LCD_WIDTH,
    .yres        = LCD_HEIGHT,
    .bpp        = 16,
    .left_margin    = LCD_LEFT_MARGIN + 1,
    .right_margin    = LCD_RIGHT_MARGIN + 1,
    .hsync_len    = LCD_HSYNC_LEN + 1,
    .upper_margin    = LCD_UPPER_MARGIN + 1,
    .lower_margin    = LCD_LOWER_MARGIN + 1,
    .vsync_len    = LCD_VSYNC_LEN + 1,
};


static struct s3c2410fb_mach_info mini2440_fb_info __initdata = {
    .displays    = &mini2440_lcd_cfg,
    .num_displays    = 1,
    .default_display = 0,

    .gpccon =       0xaa955699,
    .gpccon_mask =  0xffc003cc,
    .gpcup =        0x0000ffff,
    .gpcup_mask =   0xffffffff,

    .gpdcon =       0xaa95aaa1,
    .gpdcon_mask =  0xffc0fff0,
    .gpdup =        0x0000faff,
    .gpdup_mask =   0xffffffff,


    .lpcsel        = 0xf82,
};
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
88楼  发表于: 2010-08-28 11:21
我用的是mini2440 配置的7inch 的 “a70”屏

如果你看一眼shinelk提供的2.6.27内核源代码里的arch/arm/mach-s3c2440/mach-smdk2440.c的话,你就会发现mini2440_lcd_cfg里只包含了对3.5寸LCD屏的支持。

至于触摸屏,我想是校准的问题,这和LCD的分辨率有关,你得先搞定LCD;
你用的文件系统已经经过shinelk精简过了,应该可以在64M的mini2440上运行。
"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
89楼  发表于: 2010-08-28 11:28
只修改了宽和高,
不知其他参数需要改不?

是的,需要。你可以从开发板光盘上提供的内核源代码里找到A70屏的参数
"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."