启动2440的输出信息

启动2440的输出信息
启动2440的输出信息:

Welcome to minicom 2.1

OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Feb 12 2006, 02:33:34.

Press CTRL-A Z for help on special keys



U-Boot 1.3.0-rc3 (Dec 15 2007 - 22:10:35)

DRAM:  64 MB
dm9000 i/o: 0x18000300, id: 0x90000a46
MAC: 00:0c:20:02:0a:5b
NAND:  64 MiB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x50000, size 0x13ff6c

Reading data from 0x18fe00 -- 100% complete.
 1310572 bytes read: OK
## Booting image at 33000000 ...
   Image Name:   Linux-2.6.18.2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1310508 Bytes =  1.2 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux..................................................................................... done, booting the kernel.
Linux version 2.6.18.2 (root@lyl) (gcc version 3.4.1) #597 Sun Oct 12 15:48:46 JST 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SBZ2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 406.425 MHz, memory 135.475 MHz, peripheral 67.737 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (2.116 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.  Total pages: 16384
Kernel command line: root=/dev/mtdblock1 rw rootfstype=jffs2 noinitrd init=/linuxrc console=ttySAC0,115200 ip=192.168.1.7:192.168.1.21
:192.168.1.21:255.255.255.0:avantech:eth0:off
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 2048 bytes)
timer tcon=00500000, tcnt dc7f, tcfg 00000200,00000000, usec 000016ad
Console: colour dummy device 80x30
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: 62092KB available (2164K code, 478K data, 112K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2440: Initialising architecture
SBZ: s3c244x_irq_add()
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
Generic PHY: Registered new driver
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
S3C2410 DMA Driver, (c) 2003-2004 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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
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
RAMDISK driver initialized: 2 RAM disks of 41984K size 1024 blocksize
loop: loaded (max 8 devices)
Davicom DM9161E: Registered new driver
Davicom DM9131: Registered new driver
SMSC LAN83C185: Registered new driver
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
dm9000 Ethernet Driver
eth0: dm9000 at c485e000,c485e004 IRQ 51 MAC: 80:e2:66:60:00:01
Linux video capture interface: v2.00
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=2, 14ns Twrph0=5 36ns, Twrph1=2 14ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00200000 : "Kernel"
0x00200000-0x04000000 : "root partition"
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 driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
s3c-buttons s3c-buttons: successfully loaded
input: s3c-buttons as /class/input/input0
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /class/input/input1
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc intf: dev (254:0)
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
s3c2410-sdi s3c2410-sdi: powered down.
s3c2410-sdi s3c2410-sdi: initialisation done.
UDA1341 audio driver initialized
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
s3c2410-sdi s3c2410-sdi: powered down.
IP-Config: Complete:
      device=eth0, addr=192.168.1.7, mask=255.255.255.0, gw=192.168.1.21,
     host=avantech, domain=, nis-domain=(none),
     bootserver=192.168.1.21, rootserver=192.168.1.21, rootpath=
Empty flash at 0x01f30580 ends at 0x01f30600
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 112K
mount /etc as ramfs
mount /dev as tmpfs
mounting all

Please press Enter to activate this console.


BusyBox v1.4.1 (2007-03-25 03:24:25 CST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

//这里就进入了命令行了。
在上面出现的input: s3c-buttons as /class/input/input0,是将该文件在/proc建立并初始化在/sys/下。


[root@avantech /]# ls /dev/input
ls: /dev/input: No such file or directory
[root@avantech /]# mkdir /dev/input
[root@avantech /]# mknod /dev/input/event0 c 13 2
[root@avantech /]# cat /dev/input/event0
cat: /dev/input/event0: No such device
[root@avantech /]# mknod /dev/input/event0 c 13 52
mknod: /dev/input/event0: File exists
[root@avantech /]# rm -f /dev/input/event0
[root@avantech /]# mknod /dev/input/event0 c 13 64
[root@avantech /]# cat /dev/input/event0
.1.
....A.
...3U
[root@avantech /]#
[root@avantech /]# ls
arm         etc         linuxrc     opt         sys         var
bin         home        lost+found  proc        tmp
dev         lib         mnt         sbin        usr
[root@avantech /]# ls -l  /dev/input/event0
crw-r--r--    1 root     root      13,  64 Jan  1 00:03 /dev/input/event0
[root@avantech /]# ls /proc/bus/input/devices
/proc/bus/input/devices

------------------------------
下面显示的信息,说明板子上按键事件由Sysfs=/class/input/input0处理(/dev/input/event0),
板子上的触摸屏事件由Sysfs=/class/input/input1处理(/dev/input/event1)。
[root@avantech /]# cat /proc/bus/input/devices
I: Bus=0019 Vendor=dead Product=beef Version=0001
N: Name="s3c-buttons"
P: Phys=
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=3
B: KEY=3c

I: Bus=0013 Vendor=dead Product=beef Version=0101
N: Name="s3c2410 TouchScreen"
P: Phys=
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1 ts0
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=1000003
-------------------------------
//与/dev/input/eventx有关的,属于2.6内核的udev文件系统的支持event interface的文件。
我们可以对这件进行读写
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值