BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / embedded-system / #8453同步于 2010/5/4
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Embedded_System机器人发帖

[求助] AT91RM9200 添加 NAND FLASH 的问题

IOCO
2010/5/4镜像同步2 回复
U-Boot 1.0.0 (Sep 26 2004 - 10:20:17) U-Boot code: 21F00000 -> 21F1A978 BSS: -> 21F263A0 DRAM Configuration: Bank #0: 20000000 32 MB Fujitsu: 29LV320BE(32Mbit) Flash: 4 MB NAND:NanD_Command (ReadID) got 0 0 No NAND flash chips recognised. 0 MB DataFlash:AT45DB642 Nb pages: 8192 Page Size: 1056 Size= 8650752 bytes Logical address: 0xD0000000 In: serial Out: serial Err: serial Hit any key to stop autoboot: 0 Uboot> tftp 21000000 uImage TFTP from server 192.168.0.161; our IP address is 192.168.0.165 Filename 'uImage'. Load address: 0x21000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ############################################## done Bytes transferred = 1564880 (17e0d0 hex) Uboot> bootm ## Booting image at 21000000 ... Image Name: uImage Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1564816 Bytes = 1.5 MB Load Address: 21008000 Entry Point: 21008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux............................................................. Linux version 2.6.28 (mengyongtao@mengyongtao-desktop) (gcc version 3.4.1) #22 0 CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177 CPU: VIVT data cache, VIVT instruction cache Machine: Atmel AT91RM9200-DK Memory policy: ECC disabled, Data cache writeback Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 Kernel command line: root=/dev/mtdblock /3 console=ttyS0,115200 mem=32M AT91: 128 gpio irqs in 4 banks PID hash table entries: 128 (order: 7, 512 bytes) Console: colour dummy device 80x30 console [ttyS0] enabled Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 32MB = 32MB total Memory: 29292KB available (2804K code, 232K data, 112K init) SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Calibrating delay loop... 89.79 BogoMIPS (lpj=350208) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 288 bytes NET: Registered protocol family 16 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: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered NET: Registered protocol family 1 NetWinder Floating Point Emulator V0.97 (double precision) Installing knfsd (copyright (C) 1996 okir@monad.swb.de). JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. msgmni has been set to 57 io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL atmel_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL eth0: Link now 100-FullDuplex eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (00:12:34:56:78:9a) eth0: Davicom 9161 PHY (Copper) Uniform Multi-Platform E-IDE driver ide-gd driver 1.18 physmap platform flash device: 00200000 at 10000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank NOR chip too large to fit in mapping. Attempting to cope... Amd/Fujitsu Extended Query Table at 0x0041 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. Reducing visibility of 4096KiB chip to 2048KiB RedBoot partition parsing not available AT91RM9200-NOR:0x00400000 at 0x10000000 NOR flash on AT91RM9200DK: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0041 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available AT91RM9200-NOR:using static partition definition Creating 3 MTD partitions on "NOR flash on AT91RM9200DK": 0x00000000-0x00040000 : "U-boot" 0x00040000-0x00240000 : "Kernel" 0x00240000-0x003f0000 : "RootFS" No recognised DiskOnChip devices found NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND 128MiB 1,8V 8-b) flash size: 128 MiB page size: 512 bytes OOB area size: 16 bytes sector size: 16 KiB pages number: 262144 pages per sector: 32 bus width: 8 bits in sector size: 14 bits in page size: 9 bits in OOB size: 4 flash size with OOB: 135168 KiB page address bytes: 4 sector address bytes: 3 options: 0x62 Scanning device for bad blocks Creating 1 MTD partitions on "NAND 128MiB 1,8V 8-bit": 0x00000000-0x08000000 : "NAND simulator partition 0" [u]No NAND device found!!![/u] GPIO NAND driver, �© 2004 Simtec Electronics usbcore: registered new interface driver alauda at91_cf: irqs det #64, io #0 usbmon: debugfs is not available ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver at91_ohci at91_ohci: AT91 OHCI at91_ohci at91_ohci: new USB bus registered, assigned bus number 1 at91_ohci at91_ohci: irq 23, io mem 0x00300000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 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: AT91 OHCI usb usb1: Manufacturer: Linux 2.6.28 ohci_hcd usb usb1: SerialNumber: at91 udc: at91_udc version 3 May 2006 mice: PS/2 mouse device common for all mice at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0 AT91 Real Time Clock driver. i2c /dev entries driver i2c-gpio i2c-gpio: using pins 57 (SDA) and 58 (SCL) AT91 Watchdog Timer enabled (5 seconds, nowayout) TCP cubic registered Initializing XFRM netlink socket NET: Registered protocol family 17 NET: Registered protocol family 15 RPC: Registered udp transport module. RPC: Registered tcp transport module. at91_rtc at91_rtc: setting system clock to 1998-01-01 00:00:36 UTC (883612836) VFS: Cannot open root device "mtdblock" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: 1f00 2048 mtdblock0 (driver?) 1f01 4096 mtdblock1 (driver?) 1f02 256 mtdblock2 (driver?) 1f03 2048 mtdblock3 (driver?) 1f04 1728 mtdblock4 (driver?) 1f05 131072 mtdblock5 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) 在NAND device:Toshiba NAND 128MiB 1,8V 8-b,板上好像并没有这个FLASH, 板上的NAND FLASH是三星的K9F1208U0B,64M 在添加Nor FLASH 是在drivers/mtd/maps/下自己做了一个at91rm9200.c然后在Kconfig和 Makefile修改相应的参数,出来了相应的三个分区(也不知道是不是正确) 用相似的方法添加NAND就没反映,百度了好久没有一个常识成功。求大牛相助。 [ema1]
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
ssailing机器人#1 · 2010/5/5
NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba NAND 128MiB 1,8V 8-b) flash size: 128 MiB page size: 512 bytes OOB area size: 16 bytes sector size: 16 KiB pages number: 262144 pages per sector: 32 bus width: 8 bits in sector size: 14 bits in page size: 9 bits in OOB size: 4 flash size with OOB: 135168 KiB page address bytes: 4 sector address bytes: 3 options: 0x62 Scanning device for bad blocks Creating 1 MTD partitions on "NAND 128MiB 1,8V 8-bit": 这个说明你的板子上的Nand驱动没有问题 ms就是分区表有点问题 查查Nand的分区表是咋移植的吧
ArmStrong机器人#2 · 2010/5/5
查一查nand的设备列表,改一下配置,另外找找分区表,要么在driver/mtd里,要么在arch/arm/mach-xxxx下 【 在 IOCO (wolf) 的大作中提到: 】 : U-Boot 1.0.0 (Sep 26 2004 - 10:20:17) : U-Boot code: 21F00000 -> 21F1A978 BSS: -> 21F263A0 : DRAM Configuration: : ...................