admin 管理员组文章数量: 1086019
2024年2月26日发(作者:java 菜鸟例子)
mini2440开发板之andriod使用手册
潘应云(南京师范大学,panyingyun@,QQ: 29548754,848682821)提供
第一部分:内核映像及文件系统介绍.......................................................................1
第二部分:使用说明...................................................................................................1
开发平台:
RedHat 9.0 + mini2440开发板
使用内核版本类型:
linux-2.6.25-android-1.0_
下载地址:/p/android/downloads/list
交叉编译器:
2
下载地址:
/sgpp/lite/arm/portal/release642或者直接复制下面地址
/sgpp/lite/arm/portal/package3686/public/arm-none-eabi/2
第一部分:内核映像及文件系统介绍
1、zImage:andriod内核映像文件。支持触摸屏(目前没有校屏程序,点击不太准),支持nfs文件系统启动,支持RTC(可以正确显示google时钟),支持DM9000网卡,支持yaffs文件系统,电源管理等。
2、nfs_root_:nfs方式启动文件系统,可以看到很绚丽的google大钟和google浏览器。
3、final_:内核配置文件(可以自己用命令mv final config .config 放到内核下进行编译)。
(为何不提供yaffs文件系统而采用NFS启动方式:主要原因是mini2440开发板提供的nand
flash太小,只有64M空间,这里需要至少80M的空间)
第二部分:使用说明
(注意:开发环境和redhat9.0系统的安装大家可以参考mini2440开发板手册。这里给出一些新的修改。)
使用方法:
(以下步骤1-4在windows下操作,5-7在linux下操作)
1、打开DNW工具,切换到norflash启动方式,给开发板上电,启动supervivi的菜单。如下图所示:
2、选择“k”,([k] Download linux kernel),然后通过usb下载内核zImage(就是上面的zImage)。
3、选择“b”([b] Boot the system),启动内核看看是否可以正确引导内核。
出现下面内容表示已经正确引导了。
。。。。。。
[s] Set the boot parameters
[t] Print the TOC struct of wince
[u] Backup NAND Flash to HOST through USB(upload)
[r] Restore NAND Flash from HOST through USB
[q] Goto shell of vivi
Enter your selection: b
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "console=ttySAC0 root=nfs nfsroot=192.168.1.100:/nfs_root
ip=192.168.1.70 init=/init"
MACH_TYPE = 782
NOW,
Uncompressing
done, booting the kernel.
Linux version 2.6.25 (root@omain) (gcc version 4.3.2 (Sourcery G++
Lite 2008q3-72) ) #13 PREEMPT Tue Mar 31 10:06:46 CST 2009
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)
BUG: mapping for 0x at 0xd0000000 overlaps vmalloc space
MM: CPU does not support supersection mapping for 0x at 0xd0000000
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
USB Control, (c) 2008 panyingyun
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=nfs nfsroot=192.168.1.100:/nfs_root
ip=192.168.1.70 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: 60684KB available (3620K code, 447K data, 116K 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
android_power_init
android_power_init done
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].
yaffs Mar 29 2009 19:58:25 Installing.
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
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.26 I/O: c4816300, VID: 90000a46
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
Driver 'sd' needs updating - please use bus_type methods
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=1, 9ns Twrph0=4 39ns, 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-0x00030000 : "Bootloader(Panyingyun)"
0x00050000-0x00250000 : "Kernel(panyingyun)"
0x00250000-0x03dac000 : "User(panyingyun)"
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
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
s3c2410_udc: debugfs dir creation failed -19
mice: PS/2 mouse device common for all mice
usbcore: registered new interface driver appletouch
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /class/input/input0
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
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
logger: created 64K log 'log_main'
logger: created 64K log 'log_events'
logger: created 64K log 'log_radio'
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
s3c2410-rtc s3c2410-rtc: setting system clock to 2009-03-31 17:01:31 UTC
(1238518891)
request irq 51 success!
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.1.70, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.70, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.1.100, rorpcbind: server
192.168.1.100 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.1.100
4、设置nfs启动参数
首先复位mini2440开发板,回到supervivi的菜单, 选择“s”,可以到设置启动
参数的菜单(如下图所示)。
继续选“s”,设置参数。
出现下面界面:
输入修改启动命令行,linux_cmd_line
回车后,输入"console=ttySAC0 root=nfs nfsroot=192.168.1.100:/nfs_root
ip=192.168.1.70 init=/init”。
回到刚刚设置菜单下面选择“w”,写入修改后的参数。
这里可以用”v”,查看修改是否成功和正确。
5、修改nfs设置文件/etc/exports
/nfs_root *(rw,sync,no_root_squash)
6、设置主机IP地址
地址:192.168.1.100 子网掩码:255.255.255.0 默认网关:255.255.255.255
7、nfs_root_拷贝到/目录下,解压tar zxvf nfs_root_
这样在根目录下就存在一个nfs_root目录,里面就是andriod启动所需要的文件系统。最后在终端中输入命令 exportfs –r命令更新/etc/exports(在提示找不到文件系统时,试试这个命令)。
启动时串口信息:
启动时LCD显示:
启动后桌面显示:
版权声明:本文标题:mini2440 开发板之 andriod 说明书 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/p/1708911169a534317.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论