主题 : 移植android到2440开发板时遇到麻烦了,不知咋办!!! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 22259
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
贡献值: 0 点
综合积分: 42 分
注册时间: 2010-05-28
最后登录: 2015-05-07
楼主  发表于: 2010-11-28 18:38

 移植android到2440开发板时遇到麻烦了,不知咋办!!!

启动系统进入串口控制终端后,很多命令都用不了,或报告没权限,或报告不能执行。使用nfs文件系统,将文件系统所在目录执行"chmod a+rwx s3c2440_fs" 命令后还是一样。
启动后,LCD只有“ANDROID”字样,字样以外一片漆黑。
所用kernel和fs分别是android-kernel-20090825.tgz和android-fs-20090825.tar.gz,并在其基础上去掉DM9000驱动,加上cs8900的驱动。

启动后的输出如下:
[zhanglong]#
[zhanglong]# printenv
bootargs=noinitrd console=ttySAC0,115200 init=linuxrc mem=64M root=/dev/nfs rw nfsroot=192.168.1.97:/home/zl/s3c2440_nfs ip=192.168.1.107:192.168.1.97:192.168.1.1:255.255.255.0::eth0:off
bootcmd=nand read 30008000 80000 280000;bootm 30008000;
bootdelay=3
baudrate=115200
ethaddr=09:06:08:80:06:23
ipaddr=192.168.1.107
serverip=192.168.1.97
gatewayip=192.168.1.1
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial

Environment size: 426/65531 bytes
[zhanglong]# 
[zhanglong]#
[zhanglong]# tftp 30008000 uImage
TFTP from server 192.168.1.97; our IP address is 192.168.1.107
Filename 'uImage'.
Load address: 0x30008000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #############
done
Bytes transferred = 2058304 (1f6840 hex)
[zhanglong]# bootm 30008000
## Booting kernel from Legacy Image at 30008000 ...
   Image Name:   linux kernel
   Created:      2010-11-28   6:18:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2058240 Bytes =  2 MB
   Load Address: 30008000
   Entry Point:  30008040
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................................................................... done, booting the kernel.
Linux version 2.6.27 (zl@zhanglong) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #3 PREEMPT Sun Nov 28 14:17:33 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: FriendlyARM Mini2440 development board
Memory policy: ECC disabled, Data cache writeback
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: noinitrd console=ttySAC0,115200 init=linuxrc mem=64M root=/dev/nfs rw nfsroot=192.168.1.97:/home/zl/s3c2440_nfs ip=192.168.1.107:192.168.1.97:192.168.1.1:255.255.255.0::eth0:off
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, 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: 60200KB available (3892K code, 636K 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
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
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 Nov 28 2010 12:48:05 Installing.
msgmni has been set to 117
io scheduler noop registered (default)
Console: switching to colour frame buffer device 30x20
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'
Cirrus Logic CS8900A driver for Linux (Modified for ZL2440)
debug:[cs8900_probe-497]
debug:[cs8900_probe-503]
eth0: CS8900A rev D at 0xe0000300 irq=53, addr: 00: 0:3E:26:0A: 0
usbcore: registered new interface driver zd1211rw
usbcore: registered new interface driver zd1201
Linux video capture interface: v2.00
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
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 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00060000 : "supervivi"
0x00060000-0x00260000 : "Kernel"
0x00260000-0x40260000 : "root"
mtd: partition "root" extends beyond the end of device "NAND 64MiB 3,3V 8-bit" -- size truncated to 0x3da0000
0x00000000-0x40000000 : "nand"
mtd: partition "nand" extends beyond the end of device "NAND 64MiB 3,3V 8-bit" -- size truncated to 0x4000000
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
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
mice: PS/2 mouse device common for all mice
usbcore: registered new interface driver appletouch
input: s3c2410 TouchScreen as /class/input/input1
s3c2410 TouchScreen successfully loaded
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
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
mapped channel 0 to 0
s3c2440-sdi s3c2440-sdi: powered down.
s3c2440-sdi s3c2440-sdi: initialisation done.
s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
UDA1341 audio driver initialized
failed to get memory region resouce
s3c2410-iis: probe of s3c2410-iis.0 failed with error -2
s3c2440-sdi s3c2440-sdi: powered down.
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2010-11-28 18:22:59 UTC (1290968579)
IP-Config: Complete:
     device=eth0, addr=192.168.1.107, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.107, domain=, nis-domain=(none),
     bootserver=192.168.1.97, rootserver=192.168.1.97, rootpath=
Looking up port of RPC 100003/2 on 192.168.1.97
Looking up port of RPC 100005/1 on 192.168.1.97
VFS: Mounted root (nfs filesystem).
Freeing init memory: 116K
mknod: /myDev/ts0: File exists
mknod: /myDev/fb0: File exists
mknod: /myDev/ts_ctl: File exists
ts is ok!
ts_control_open!
ts_control_release!
init: cannot open '/initlogo.rle'
sh: can't access tty; job control turned off
/ # init: cannot find '/system/bin/playmp3', disabling 'bootsound'
s3c2440-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: running at 198kHz (requested: 197kHz).
s3c2440-sdi s3c2440-sdi: powered down.
warning: `rild' uses 32-bit capabilities (legacy support in use)
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/app_process', disabling 'zygote'


/ #
/ # ls
sh: ls: Permission denied
/ #
/ # cd /dev
sh: cd: can't cd to /dev
/ #
/ # echo $PATH
/bin:/sbin:/system/sbin:/system/bin:/system/xbin
/ #
/ # mkdir mydir
sh: mkdir: Permission denied
/ #
/ # which busybox
sh: which: Permission denied
[ 此帖被zhanglong71在2010-12-02 22:00重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-11-28 22:31
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/app_process', disabling 'zygote'

从这个来看,/system下目录的内容似乎没有正常挂载出来.
"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: 22259
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
贡献值: 0 点
综合积分: 42 分
注册时间: 2010-05-28
最后登录: 2015-05-07
2楼  发表于: 2010-12-02 21:53
”/system下目录的内容似乎没有正常挂载出来.“  
该如何处理呢?

文件系统是通过nfs挂载的。在nfs服务器端(主机Ubuntu 10.04)查看如下:
zl@zhanglong:~/s3c2440_nfs/system/bin$ ls -l mediaserver
-rwxrwxrwx 1 zl zl 5412 2010-11-28 13:03 mediaserver
zl@zhanglong:~/s3c2440_nfs/system/bin$
zl@zhanglong:~/s3c2440_nfs/system/bin$ ls -l app_process
-rwxrwxrwx 1 zl zl 9668 2010-11-28 13:03 app_process
zl@zhanglong:~/s3c2440_nfs/system/bin$

个人觉得以下现象:
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/app_process', disabling 'zygote'
/ # ls
sh: ls: Permission denied
/ #
/ # cd /dev
sh: cd: can't cd to /dev
/ #
/ # mkdir mydir
sh: mkdir: Permission denied
/ #
/ # which busybox
sh: which: Permission denied
……
可能是一个故障的多种表现。会不会与”sh: can't access tty; job control turned off“有关
还请指教。
[ 此帖被zhanglong71在2010-12-02 21:59重新编辑 ]
For one target!!!!!!
级别: 侠客
UID: 12758
精华: 0
发帖: 77
金钱: 385 两
威望: 77 点
贡献值: 0 点
综合积分: 154 分
注册时间: 2010-01-12
最后登录: 2019-06-05
3楼  发表于: 2010-12-24 17:20
大家好,我最近也在做这个,有没有成功的朋友出来交流一下呢
级别: 新手上路
UID: 22259
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
贡献值: 0 点
综合积分: 42 分
注册时间: 2010-05-28
最后登录: 2015-05-07
4楼  发表于: 2010-12-30 23:58
刚进入时,ls,cd 都可用,后来就逐步加载一些命令后,先是ls不可用 ,但cd 命令可用,再后来命令都不能用了。
以下蓝色是正常运行的命令及输出,红色是不能得出正常结果的命令及输出。

mknod: /myDev/ts0: File exists
mknod: /myDev/fb0: File exists
mknod: /myDev/ts_ctl: File exists
ts is ok!
ts_control_open!
ts_control_release!
init: cannot open '/initlogo.rle'
sh: can't access tty; job control turned off
/ # lsinit: cannot find '/system/bin/playmp3', disabling 'bootsound'

bin                   init.rc               sdcard
cache                 lib                   sqlite_stmt_journals
data                  linuxrc               sys
default.prop          lost+found            system
dev                   myDev                 var
etc                   proc
init.goldfish.rc      sbin
/ # cd dev
/dev #
warning: `rild' uses 32-bit capabilities (legacy support in use)
init: cannot find '/system/bin/mediaserver', disabling 'media'
init: cannot find '/system/bin/app_process', disabling 'zygote'
ls
sh: ls: Permission denied

/dev # cd
/dev # cd
/dev # cd /
/ # cd dev
/dev # ls

sh: ls: Permission denied
/dev # cd ..
/ # ls

sh: ls: Permission denied
/ # cd dev
/dev # cd ..
/ # cd lib

sh: cd: can't cd to lib
/ # cd dev
sh: cd: can't cd to dev
/ # ls
sh: ls: Permission denied
/ #
[ 此帖被zhanglong71在2010-12-31 00:07重新编辑 ]