音影先锋亚洲天堂网|电影世界尽头的爱完整版播放|国产 熟女 91|高清无码免费观看欧美日韩|韩国一区二区三区黄色录像|美女亚洲加勒比在线|亚洲综合网 开心五月|7x成人在线入口|成人网站免费日韩毛片区|国产黄片?一级?二级?三级

登錄 免費注冊 首頁 | 行業(yè)黑名單 | 幫助
維庫電子市場網(wǎng)
技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng)
驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe

求助 /dev/mtd 怎么創(chuàng)建?

作者:mail_zang 欄目:ARM技術(shù)
求助 /dev/mtd 怎么創(chuàng)建?
本人在9200上跑2.6的核,這在以前有過發(fā)貼
現(xiàn)在想移植 nand 到2。6的核上,經(jīng)過一番艱辛終于能夠在啟動時找到NAND了,可是不知道怎樣才能把它加到/dev/mtd上,怎術(shù)才能創(chuàng)建/dev/mtdblock/有誰知道的請給點提示,本人將感激涕零!!
以下是本人的啟動信息:
## Starting application at 0x21000000 ...
Uncompressing Linux................................................................ done, booting the kernel.
Linux version 2.6.16 (root@localhost.localdomain) (gcc version 3.4.1) #10 Thu Aug 10 17:03:00 UTC 2006
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: ATMEL AT91RM9200-DK
Warning: bad configuration page, trying to continue
MEMORY policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, MASTER 59 MHz, main 18.432 MHz
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
Kernel command LINE: mem=32M console=ttyS0,115200 initrd=0x21100000,6000000 root=/dev/ram0 rw
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 256 (order: 8, 4096 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: 32MB = 32MB total
MEMORY: 24476KB available (1612K code, 348K data, 88K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio MAGIC); looks like an initrd
Freeing initrd MEMORY: 5859K
NET: Registered protocol family 16
AT91: at91_add_DEVICE_nand(OK!).
NetWinder Floating Point EMULATOR V0.97 (double PRECISION)
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2003 Red Hat, Inc.
yaffs Aug 10 2006 16:58:31 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
AT91 Real Time Clock driver.
AT91 SPI driver loaded
AT91 Watchdog Timer enabled (5 seconds, nowayout=1)
at91_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a AT91_SERIAL
at91_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a AT91_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
eth0: LINK now 100-FullDuplex
eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (12:34:56:78:9a:bc)
eth0: DAVICOM 9196 PHY (Copper)
physmap FLASH DEVICE: 200000 at 10000000
phys_mapped_FLASH: Found 1 x16 DEVICEs at 0x0 in 16-bit bank
SUPPORT for command set 0001 not present
gen_probe: No supported Vendor Command Set found
NAND DEVICE: MANUFACTURER ID: 0xec, Chip ID: 0x75 (SAMSUNG NAND 32MiB 3,3V 8-bit)
Scanning DEVICE for bad blocks
Creating 2 MTD partitions on "NAND 32MiB 3,3V 8-bit":
0x00000000-0x00020000 : "Yaffs 1"
mtd: Giving out DEVICE 0 to Yaffs 1
0x00020000-0x00000000 : "User Space 2"
mtd: Giving out DEVICE 1 to User Space 2
at91_cf: irqs det #64, io #0
udc: at91_udc version 8 March 2005
mice: PS/2 mouse DEVICE common for all mice
i2c /dev entries driver
at91_i2c at91_i2c: AT91 i2c bus driver.
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: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP RENO registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0

以下是/proc/mtd 中的信息:
[root@AT91RM9200DK /proc]$+ mtd
dev:    size   erasesize  NAME
mtd0: 00020000 00004000 "Yaffs 1"
mtd1: fffe0000 00004000 "User Space 2"

謝謝!

* - 本貼最后修改時間:2006-8-11 9:59:28 修改者:mail_zang

參與討論
昵稱:
討論內(nèi)容:
 
 
相關(guān)帖子
我是這樣花一個星期快速入門44B0X的:
大家ADS的輸出可燒寫文件格式是選i32還是elf?
三級流水線是不是意味著復(fù)位后兩個周期才正式開始執(zhí)行程序?
ICE及DEBUG的實現(xiàn)要占用ARM中的多少門?
EP9315-CB,EP9312-CB現(xiàn)貨
免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進(jìn)入


Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號