omap-nand-flash.c的阅读

来源:互联网 发布:mysql 删除数据库 编辑:程序博客网 时间:2024/06/05 08:39

 

request_mem_region(res->start, size, pdev->dev.driver->name) 通过这个来实现存储区域的分配!

Machine: TI-OSK
Memory policy: ECC disabled, Data cache writeback
OMAP162123 revision 2 handled as 16xx id: ca059089bfc81c20
SRAM: Mapped pa 0x20000000 to va 0xd7000000 size: 0x100000
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15240
Kernel command line: console=ttyS0,115200n8 noinitrd root=/dev/nfs rw ip=192.168.0.199 nfsroot=192.168.0.11:/data/rootfs2.6,nolock mem=60M
Clocks: ARM_SYSST: 0x1000 DPLL_CTL: 0x2833 ARM_CKCTL: 0x2000
Clocking rate (xtal/DPLL1/MPU): 12.0/192.0/192.0 MHz
Total of 128 interrupts in 4 interrupt banks
OMAP GPIO hardware version 1.0
PID hash table entries: 256 (order: 8, 1024 bytes)
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: 60MB = 60MB total
Memory: 57216KB available (3240K code, 255K data, 140K 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
Debug: spi_register_board_info!
OMAP DMA hardware version 1
DMA capabilities: 000c0000:00000000:01ff:003f:007f
Initializing OMAP McBSP system
omap_dsp_init() done
USB: hmc 16, usb2 alt 0 wires
i2c_omap i2c_omap.1: bus 1 rev2.2 at 400 kHz
tps65010: version 2 May 2005
SCSI subsystem initialized
Debug: spi_alloc_master!
Debug: spi_register_master!
Debug: spi_new_device!
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switched to NOHz mode on CPU #0
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
Power Management for TI OMAP.
NetWinder Floating Point Emulator V0.97 (double precision)
OMAP OCPI interconnect driver loaded
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
omapfb: configured for panel osk
omapfb: LCDC initialized
Console: switching to colour frame buffer device 30x40
omapfb: Framebuffer initialized. Total vram 155648 planes 1
omapfb: Pixclock 9600 kHz hfreq 30.7 kHz vfreq 92.9 Hz
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xfffb0000 (irq = 46) is a ST16654
console [ttyS0] enabled
brd: module loaded
loop: module loaded
PPP generic driver version 2.4.2
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>
eth0: SMC91C94 (rev 9) at c4050300 IRQ 160 [nowait]
eth0: Ethernet addr: 00:0e:99:02:0a:52
i2c /dev entries driver
Clock enabled to MCBSP1 & 3
TLV320AIC23 I2C version 1.8 (10-Feb-2006)
dsp dsp: OMAP DSP driver initialization
Driver 'sd' needs updating - please use bus_type methods
omapflash.0: Found 1 x16 devices at 0x0 in 16-bit bank
omapflash.0: Found 1 x16 devices at 0x1000000 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Creating 4 MTD partitions on "omapflash.0":
0x00000000-0x00020000 : "Uboot1.6"
0x00020000-0x00040000 : "boot params"
0x00040000-0x00240000 : "kernel2.6"
0x00240000-0x02000000 : "jffs2 filesystem"
NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND 8MiB 1,8V 8-bit)
flash size: 8 MiB
page size: 512 bytes
OOB area size: 16 bytes
sector size: 8 KiB
pages number: 16384
pages per sector: 16
bus width: 8
bits in sector size: 13
bits in page size: 9
bits in OOB size: 4
flash size with OOB: 8448 KiB
page address bytes: 3
sector address bytes: 2
options: 0x62
Scanning device for bad blocks
Creating 1 MTD partitions on "NAND 8MiB 1,8V 8-bit":
0x00000000-0x00800000 : "NAND simulator partition 0"
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 1 MTD partitions on "omapnand.0":
0x08000000-0x0c000000 : "nand filesystem"
mtd: partition "nand filesystem" is out of reach -- disabled
usbmon: debugfs is not available
ohci ohci: OMAP OHCI
ohci ohci: new USB bus registered, assigned bus number 1
ohci ohci: irq 38, io mem 0xfffba000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: OMAP OHCI
usb usb1: Manufacturer: Linux 2.6.25-omap1 ohci_hcd
usb usb1: SerialNumber: ohci
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver libusual
mice: PS/2 mouse device common for all mice
OMAP Keypad Driver
input: omap-keypad as /class/input/input0
ads7846 spi2.0: touchscreen, irq 204
input: ADS784x Touchscreen as /class/input/input1
usbcore: registered new interface driver usbkbd
drivers/hid/usbhid/usbkbd.c: :USB HID Boot Protocol keyboard driver
usbcore: registered new interface driver usbmouse
drivers/hid/usbhid/usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31 16:40:16 2008 UTC).
audio support initialized
ALSA device list:
  #0: Dummy 1
  #1: OSK AIC23
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFP support v0.3: not present
FIXME: Clock "tc2_ck" seems unused
Disabling unused clock "tc1_ck"...  done
Skipping reset check for DSP domain clock "dsptim_ck"
Skipping reset check for DSP domain clock "dspper_ck"
OMAP GPIO switch handler initializing
eth0: link up
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
     device=eth0, addr=192.168.0.199, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.0.199, domain=, nis-domain=(none),
     bootserver=255.255.255.255, rootserver=192.168.0.11, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.11
Looking up port of RPC 100005/1 on 192.168.0.11
VFS: Mounted root (nfs filesystem).
Freeing init memory: 140K
init started: BusyBox v1.9.2 (2008-10-12 09:54:54 CST)
starting pid 911, tty '': '/etc/init.d/rcS'
----------mount all
----------Starting mdev......
*********************************************************
 Yang  Rootfs(nfs) 2009.10.10
 Love Linux ! !
********************************************************
starting pid 915, tty '': '/bin/login'

192.168.0.199 login:

[root@/root]#cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00020000 "Uboot1.6"
mtd1: 00020000 00020000 "boot params"
mtd2: 00200000 00020000 "kernel2.6"
mtd3: 01dc0000 00020000 "jffs2 filesystem"
mtd4: 00800000 00002000 "NAND simulator partition 0"
mtd5: 00000000 00004000 "nand filesystem"