今天把andriod系统初步load到了mini2440上面运行,依然还有很多问题需要自己去摸索:
我把文件系统中的,#service servicemanager /system/bin/servicemanager
因为会出现下面的问题:init: critical process 'servicemanager' exited 4 times in 4 minutes; rebooting into recovery mode
Restarting system with command 'recovery'.
问题的解决办法:
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_LOGGER=y
解决该问题之后,可以看到那个传说中的大钟,自己辛苦得来,还是比较激动的。(文件系统用的别人的)
debug 信息如下:
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux....................................................................................................................................................... done, booting the kernel.
Linux version 2.6.25 (root@liyi) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #2 PREEMPT Tue Apr 20 20:35:14 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
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,115200 root=nfs nfsroot=10.128.32.82:/nfs_root ip=10.128.32.73 init=/init
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: 60032KB available (4460K code, 267K data, 128K init)
SLUB: Genslabs=12, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 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
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
NetWinder Floating Point Emulator V0.97 (double precision)
ashmem: initialized
NTFS driver 2.1.29 [Flags: R/W DEBUG].
fuse init (API version 7.9)
yaffs Apr 20 2010 18:19:56 Installing.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 30x20
fb0: s3c2410fb frame buffer device
Non-volatile memory driver v1.2
backlight 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
dm9000 Ethernet Driver, V1.31
Now use the default MAC address: 08:90:90:90:90:90
eth0: dm9000e at c4822000,c4824004 IRQ 51 MAC: c3c5324cM (friendly-arm)
Linux video capture interface: v2.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
usbcore: registered new interface driver ov511
drivers/media/video/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver
st: Version 20080221, fixed bufsize 32768, s/g segs 256
Driver 'st' needs updating - please use bus_type methods
Driver 'sd' needs updating - please use bus_type methods
SCSI Media Changer driver v0.25
Driver 'ch' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=1, 9ns Twrph0=3 29ns, Twrph1=1 9ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00050000 : "vivi(liyi)"
0x00050000-0x00350000 : "kernel(liyi)"
0x00350000-0x03ffc000 : "roofs(liyi)"
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
sl811: driver sl811-hcd, 19 May 2005
usbcore: registered new interface driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
usbcore: registered new interface driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
mice: PS/2 mouse device common for all mice
mRtos keypad successfully loaded
input: mRtos_keypad as /class/input/input0
mRtos keypad probe...
usbcore: registered new interface driver appletouch
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /class/input/input1
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
usbcore: registered new interface driver pcwd_usb
pcwd_usb: Berkshire USB-PC Watchdog driver v1.02 (21 Jan 2007)
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
SoftDog: cannot register miscdev on minor=130 (err=-16)
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
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)
dm9000 dm9000.0: WARNING: no IRQ resource flags set.
eth0: link up, 10Mbps, half-duplex, lpa 0x0021
IP-Config: Guessing netmask 255.0.0.0
IP-Config: Complete:
device=eth0, addr=10.128.32.73, mask=255.0.0.0, gw=255.255.255.255,
host=10.128.32.73, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=10.128.32.82, rootpath=
Looking up port of RPC 100003/2 on 10.128.32.82
Looking up port of RPC 100005/1 on 10.128.32.82
VFS: Mounted root (nfs filesystem).
Freeing init memory: 128K
Warning: unable to open an initial console.
init: /init.rc: 98: invalid command 'user'
init: /init.rc: 98: invalid command 'critical'
init: /init.rc: 98: invalid command 'onrestart'
init: /init.rc: 98: invalid command 'onrestart'
init: cannot open '/initlogo.rle'
init: cannot find '/system/bin/playmp3', disabling 'bootsound'
sh: can't access tty; job control turned off
# warning: `rild' uses 32-bit capabilities (legacy support in use)
# ps
USER PID PPID VSIZE RSS WCHAN PC NAME
root 1 0 316 204 c00a0e14 0000ee1c S /init
root 2 0 0 0 c005801c 00000000 S kthreadd
root 3 2 0 0 c0047f70 00000000 S ksoftirqd/0
root 4 2 0 0 c00548d0 00000000 S events/0
root 5 2 0 0 c00548d0 00000000 S khelper
root 76 2 0 0 c00548d0 00000000 S kblockd/0
root 82 2 0 0 c00548d0 00000000 S ata/0
root 83 2 0 0 c00548d0 00000000 S ata_aux
root 86 2 0 0 c00548d0 00000000 S ksuspend_usbd
root 92 2 0 0 c029f330 00000000 S khubd
root 95 2 0 0 c02c678c 00000000 S kseriod
root 101 2 0 0 c00548d0 00000000 S kmmcd
root 121 2 0 0 c0075ef0 00000000 S pdflush
root 122 2 0 0 c0075ef0 00000000 S pdflush
root 123 2 0 0 c0079e0c 00000000 S kswapd0
root 205 2 0 0 c00548d0 00000000 S aio/0
root 321 2 0 0 c0235af4 00000000 S kapmd
root 377 2 0 0 c00548d0 00000000 S scsi_tgtd/0
root 389 2 0 0 c0291880 00000000 S mtdblockd
root 436 2 0 0 c00548d0 00000000 S kpsmoused
root 468 2 0 0 c00548d0 00000000 S rpciod/0
root 666 1 924 376 c0045a28 afe0deac S /system/bin/sh
root 667 1 2020 376 ffffffff afe0da9c S /system/bin/mountd
root 668 1 832 344 c0301204 afe0da9c S /system/bin/debuggerd
radio 669 1 3520 648 ffffffff afe0d79c S /system/bin/rild
root 675 1 984 284 c0301204 afe0da9c S /system/bin/installd
root 677 1 1320 168 ffffffff 00012a94 S /sbin/adbd
root 732 1 60388 18336 00000000 afb0a9e0 R zygote
root 755 666 1096 380 00000000 afe0ceec R ps