Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: no NAND device found on Linux booting
PostPosted: Mon Dec 26, 2011 12:54 pm 
Offline

Joined: Mon Jun 21, 2010 4:02 pm
Posts: 1
Hello every body,

When I tried to load Linux kernel "uImage-2.6.39-r1-at91sam9x5ek.bin" that downloaded from http://www.at91.com/linux4sam/ to NAND Flash on SAM9X35-CM, it can boot, but the message say that "no NAND device found". The same situation remain when I rebuild the Kernel. Can anybody help me to fix this problem? Thanks


Top
 Profile  
 
 Post subject: Re: no NAND device found on Linux booting
PostPosted: Wed Jan 04, 2012 12:24 pm 
Offline

Joined: Tue Dec 13, 2011 1:27 pm
Posts: 3
Hello, sau!

Have you resolved your problem with nand flash?


Top
 Profile  
 
 Post subject: Re: no NAND device found on Linux booting
PostPosted: Sat Feb 11, 2012 7:30 am 
Offline

Joined: Fri Jan 21, 2011 6:39 am
Posts: 10
Hi

I am also facing the same problem.In development board, everything is working fine.But in our custom gadget, kernel returns " No Nand Device Found".The same remains in u-boot also.

But bootstrap is working fiine.How this could be?Any nand timing issue or hardware problem?


Regards

Vignesh Rajendran
Embedded Linux Engineer
Vaaraahi Embedded


Top
 Profile  
 
 Post subject: Re: no NAND device found on Linux booting
PostPosted: Mon Apr 30, 2012 9:14 pm 
Offline

Joined: Fri Oct 28, 2011 7:25 pm
Posts: 29
Did you ever fix this issue? If so, what was the solution.

I'm having a similar issue. We have a SAM9G25-EK and we designed our own base board with the same SODIMM socket and pinout as the evaluation kit. I pulled the CPU module off of the evaluation kit and placed it in our base board. I also get the "No NAND device found." error.

Here is my complete console log when attempting to boot from my board:

Code:
Start AT91Bootstrap...                                                         
Init DDR... Done!                                                               
Loading 1-Wire info...                                                         
Enumerate all roms:                                                             
Rom#0x0: 0xe9 0x0 0x0 0x3 0x8 0x64 0xba 0x2d                                   
Done, 0x1 1-wire chips found!                                                   
                                                                               
Board name: SAM9G25-CM [B1]; Vendor name: EMBEST                               
sn: 0x23;   rev: 0x8001                                                         
Downloading image...                                                           
chip id: 0x2cda                                                                 
Copy 0x50000 bytes from 0x40000 to 0x26f00000                                   
Done!                                                                           
                                                                               
                                                                               
U-Boot 2010.06 (Jun 01 2011 - 20:09:42)                                         
                                                                               
DRAM:  128 MiB                                                                 
NAND:  256 MiB                                                                 
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
Net:   macb0                                                                   
macb0: Starting autonegotiation...                                             
macb0: Autonegotiation complete                                                 
macb0: link up, 100Mbps full-duplex (lpa: 0xc5e1)                               
Hit any key to stop autoboot:  0                                               
                                                                               
NAND read: device 0 offset 0x200000, size 0x220000                             
2228224 bytes read: OK                                                         
## Booting kernel from Legacy Image at 22000000 ...                             
   Image Name:   Angstrom/2.6.39/at91sam9x5ek                                   
   Image Type:   ARM Linux Kernel Image (uncompressed)                         
   Data Size:    2130356 Bytes = 2 MiB                                         
   Load Address: 20008000                                                       
   Entry Point:  20008000                                                       
   Verifying Checksum ... OK                                                   
   Loading Kernel Image ... OK                                                 
OK                                                                             
                                                                               
Starting kernel ...                                                             
                                                                               
Uncompressing Linux... done, booting the kernel.                               
Linux version 2.6.39 (engineer@ubuntu) (gcc version 4.5.3 20110311 (prerelease)
(GCC) ) #1 Wed Apr 25 11:59:44 EDT 2012                                         
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                   
CPU: VIVT data cache, VIVT instruction cache                                   
Machine: Atmel AT91SAM9X5-EK                                                   
Memory policy: ECC disabled, Data cache writeback                               
Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz                           
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512     
Kernel command line: mem=128M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootst
rap/uboot/kernel)ro,-(rootfs) root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1
root=ubi0:rootfs                                                               
PID hash table entries: 512 (order: -1, 2048 bytes)                             
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)                 
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)                   
Memory: 128MB = 128MB total                                                     
Memory: 125692k/125692k available, 5380k reserved, 0K highmem                   
Virtual kernel memory layout:                                                   
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)                               
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                               
    DMA     : 0xff000000 - 0xffe00000   (  14 MB)                               
    vmalloc : 0xc8800000 - 0xfee00000   ( 870 MB)                               
    lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)                               
    modules : 0xbf000000 - 0xc0000000   (  16 MB)                               
      .init : 0xc0008000 - 0xc0028000   ( 128 kB)                               
      .text : 0xc0028000 - 0xc03e3bf0   (3823 kB)                               
      .data : 0xc03e4000 - 0xc040a560   ( 154 kB)                               
NR_IRQS:192                                                                     
AT91: 128 gpio irqs in 4 banks                                                 
Console: colour dummy device 80x30                                             
console [ttyS0] enabled                                                         
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)                         
pid_max: default: 32768 minimum: 301                                           
Mount-cache hash table entries: 512                                             
CPU: Testing write buffer coherency: ok                                         
devtmpfs: initialized                                                           
NET: Registered protocol family 16                                             
AT91: CM rev B and higher                                                       
AT91: EK rev A                                                                 
AT91: Power Management (with slow clock mode)                                   
AT91: Starting after power-restored wakeup                                     
bio: create slab <bio-0> at 0                                                   
SCSI subsystem initialized                                                     
usbcore: registered new interface driver usbfs                                 
usbcore: registered new interface driver hub                                   
usbcore: registered new device driver usb                                       
i2c-gpio i2c-gpio.0: using pins 62 (SDA) and 63 (SCL)                           
at_hdmac at_hdmac.0: Atmel AHB DMA Controller ( cpy slave ), 8 channels         
at_hdmac at_hdmac.1: Atmel AHB DMA Controller ( cpy slave ), 8 channels         
Switching to clocksource tcb_clksrc                                             
NET: Registered protocol family 2                                               
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)                 
TCP established hash table entries: 4096 (order: 3, 32768 bytes)               
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)                       
TCP: Hash tables configured (established 4096 bind 4096)                       
TCP reno registered                                                             
UDP hash table entries: 256 (order: 0, 4096 bytes)                             
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)                         
NET: Registered protocol family 1                                               
RPC: Registered udp transport module.                                           
RPC: Registered tcp transport module.                                           
RPC: Registered tcp NFSv4.1 backchannel transport module.                       
JFFS2 version 2.2. (NAND) (SUMMARY)  �� 2001-2006 Red Hat, Inc.                 
msgmni has been set to 245                                                     
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)           
io scheduler noop registered (default)                                         
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL             
atmel_usart.1: ttyS1 at MMIO 0xf801c000 (irq = 5) is a ATMEL_SERIAL             
cfg80211: Calling CRDA to update world regulatory domain                       
atmel_usart.4: ttyS4 at MMIO 0xf8028000 (irq = 8) is a ATMEL_SERIAL             
brd: module loaded                                                             
loop: module loaded                                                             
ssc ssc.0: Atmel SSC device at 0xc8878000 (irq 28)                             
atmel_nand atmel_nand: Using dma0chan0 for DMA transfers.                       
No NAND device found.                                                           
UBI error: ubi_init: UBI error: cannot initialize UBI, error -19               
PPP generic driver version 2.4.2                                               
NET: Registered protocol family 24                                             
tun: Universal TUN/TAP device driver, 1.6                                       
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>                         
macb macb.0: invalid hw address, using random                                   
macb macb.0: eth0: Features changed: 0x00004800 -> 0x00004000                   
MACB_mii_bus: probed                                                           
eth0: Atmel MACB at 0xf802c000 irq 24 (42:75:2f:a2:58:a6)                       
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=0:00, irq=-1)     
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver                     
atmel-ehci atmel-ehci: Atmel EHCI UHP HS                                       
atmel-ehci atmel-ehci: new USB bus registered, assigned bus number 1           
atmel-ehci atmel-ehci: irq 22, io mem 0x00700000                               
atmel-ehci atmel-ehci: USB 2.0 started, EHCI 1.00                               
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002                   
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1             
usb usb1: Product: Atmel EHCI UHP HS                                           
usb usb1: Manufacturer: Linux 2.6.39 ehci_hcd                                   
usb usb1: SerialNumber: atmel-ehci                                             
hub 1-0:1.0: USB hub found                                                     
hub 1-0:1.0: 3 ports detected                                                   
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 2             
at91_ohci at91_ohci: irq 22, io mem 0x00600000                                 
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001                   
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1             
usb usb2: Product: AT91 OHCI                                                   
usb usb2: Manufacturer: Linux 2.6.39 ohci_hcd                                   
usb usb2: SerialNumber: at91                                                   
hub 2-0:1.0: USB hub found                                                     
hub 2-0:1.0: 3 ports detected                                                   
Initializing USB Mass Storage driver...                                         
usbcore: registered new interface driver usb-storage                           
USB Mass Storage support registered.                                           
usbcore: registered new interface driver libusual                               
usbcore: registered new interface driver usbserial                             
USB Serial support registered for generic                                       
usbcore: registered new interface driver usbserial_generic                     
usbserial: USB Serial Driver core                                               
USB Serial support registered for moto-modem                                   
usbcore: registered new interface driver moto-modem                             
USB Serial support registered for opticon                                       
usbcore: registered new interface driver opticon                               
USB Serial support registered for pl2303                                       
usbcore: registered new interface driver pl2303                                 
pl2303: Prolific PL2303 USB to serial adaptor driver                           
USB Serial support registered for Qualcomm USB modem                           
usbcore: registered new interface driver qcserial                               
USB Serial support registered for sam-ba                                       
usbcore: registered new interface driver sam-ba                                 
sam_ba: v1.0: Atmel SAM Boot Assistant (SAM-BA) driver                         
USB Serial support registered for symbol                                       
usbcore: registered new interface driver symbol                                 
atmel_usba_udc atmel_usba_udc: MMIO registers at 0xf803c000 mapped at c8864000 
atmel_usba_udc atmel_usba_udc: FIFO at 0x00500000 mapped at c8900000           
input: gpio-keys as /devices/platform/gpio-keys/input/input0                   
qt1070 0-001b: can not read register, returned -6                               
qt1070 0-001b: ID -6 not supported                                             
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0                       
AT91 Real Time Clock driver.                                                   
i2c /dev entries driver                                                         
usbcore: registered new interface driver usbhid                                 
usbhid: USB HID core driver                                                     
nf_conntrack version 0.5.0 (1963 buckets, 7852 max)                             
IPv4 over IPv4 tunneling driver                                                 
tunl0: Features changed: 0x00007800 -> 0x00007000                               
ip_tables: (C) 2000-2006 Netfilter Core Team                                   
TCP cubic registered                                                           
NET: Registered protocol family 17                                             
lib80211: common routines for IEEE802.11 drivers                               
Registering the dns_resolver key type                                           
at91_rtc at91_rtc: setting system clock to 2007-01-01 00:00:07 UTC (1167609607)
atmel_mci atmel_mci.0: Using dma0chan0 for DMA transfers                       
atmel_mci atmel_mci.0: Atmel MCI controller at 0xf0008000 irq 12, 1 slots       
atmel_mci atmel_mci.1: Using dma1chan0 for DMA transfers                       
atmel_mci atmel_mci.1: Atmel MCI controller at 0xf000c000 irq 26, 1 slots       
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)               
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) 
[<c002cce0>] (unwind_backtrace+0x0/0xe0) from [<c02ed054>] (panic+0x50/0x170)   
[<c02ed054>] (panic+0x50/0x170) from [<c0008d20>] (mount_block_root+0x234/0x284)
[<c0008d20>] (mount_block_root+0x234/0x284) from [<c0008f50>] (prepare_namespace
+0x88/0x1c0)                                                                   
[<c0008f50>] (prepare_namespace+0x88/0x1c0) from [<c00089ac>] (kernel_init+0x100
/0x13c)                                                                         
[<c00089ac>] (kernel_init+0x100/0x13c) from [<c0029754>] (kernel_thread_exit+0x0
/0x8)                                                   


Top
 Profile  
 
 Post subject: Re: no NAND device found on Linux booting
PostPosted: Tue May 01, 2012 1:17 pm 
Offline

Joined: Fri Oct 28, 2011 7:25 pm
Posts: 29
I figured out my issue. For our base board, we didn't have the one-wire EEPROM present, which is used during bootup to determine which hardware revision the base board is. Since the CPU module didn't find the EEPROM, it assumed it was "EK board Rev A" and then proceeded to setup the GPIO attached the NAND flash for USB usage.

My fix was to modify arch/arm/mach-at91/include/mach/board-sam9x5.h as follows:

Code:
-#define ek_is_revA()   (ek_rev() == 0)
-#define ek_is_revB()   (ek_rev() == ('B' - 'A'))
+#define ek_is_revA()   0
+#define ek_is_revB()   1


If you're having a problem with Linux finding the NAND flash, check your board configuration file to see if it is readjusting GPIO that it shouldn't.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron