This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6A816x-evm kernel boot fails on NAND but works on SD

Other Parts Discussed in Thread: PMP

Hi,

I have bitbaked a new arago-console image and generated a new kernel and rootfilesystem.  The kernel works when booted from the SD card (rootfs is mounted via NFS) but when I try to boot the same kernel via NAND it fails.

The version of the kernel that I bitbaked is called linux-omap3-2.6.36+2.6.37-rc3-psp04.00.00.09

I noticed some small changes of the output when booting from SD vs NAND.  Does something need to be done different to the kernel to get it to boot out of NAND?

Here is the dmesg output of booting out of the SD (which works):

Linux version 2.6.37-rc3 (hutch@neo) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #3 Wed Apr 20 14:36:02 EDT 2011
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8168evm
vram size = 52428800 at 0
reserved size = 52428800 at 0
FB: Reserving 52428800 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8168
On node 0 totalpages: 29696
free_area_init_node: node 0, pgdat c0473ba4, node_mem_map c04ab000
  Normal zone: 332 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 29364 pages, LIFO batch:7
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 29364
Kernel command line: console=ttyS2,115200n8 root=/dev/nfs rw nfsroot=192.168.1.5:/home/hutch/downloads/Integra/rootfs mem=166M earlyprink vram=50M ti816xfb.vram=0:16M,1:16M,2:6M ip=192.168.1.1:192.168.1.5::255.255.255.0 noinitrd
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: 116MB = 116MB total
Memory: 112524k/112524k available, 57460k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xca800000 - 0xf8000000   ( 728 MB)
    lowmem  : 0xc0000000 - 0xca600000   ( 166 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0035000   ( 180 kB)
      .text : 0xc0035000 - 0xc0439000   (4112 kB)
      .data : 0xc043a000 - 0xc0475040   ( 237 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:400
GPMC revision 6.0
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
OMAP clockevent source: GPTIMER1 at 27000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
omap_mux_init: Add partition: #1: core, flags: 0
_omap_mux_init_signal: Could not set signal i2c2_scl.i2c2_scl
_omap_mux_init_signal: Could not set signal i2c2_sda.i2c2_sda
NOR: Can't request GPMC CS
registered ti816x_vpss device
pm_dbg_init: only OMAP3 supported
Registered ti81xx_fb device
ti816x_pcie: Invoking PCI BIOS...
ti816x_pcie: Setting up Host Controller...
ti816x_pcie: Register base mapped @0xca820000
ti816x_pcie: Starting PCI scan...
PCI: bus0: Fast back to back transfers enabled
pci_bus 0000:00: resource 0 [mem 0x20000000-0x2fffffff]
pci_bus 0000:00: resource 1 [io  0x40000000-0x402fffff]
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_omap i2c_omap.1: rpm_resume flags 0x4
i2c_omap i2c_omap.1: omap_pm_runtime_resume
i2c_omap i2c_omap.1: rpm_resume returns 0
i2c_omap i2c_omap.1: bus 1 rev4.0 at 100 kHz
i2c_omap i2c_omap.1: rpm_suspend flags 0x0
i2c_omap i2c_omap.1: omap_pm_runtime_suspend
i2c_omap i2c_omap.1: rpm_suspend returns 0
i2c_omap i2c_omap.2: rpm_resume flags 0x4
i2c_omap i2c_omap.2: omap_pm_runtime_resume
i2c_omap i2c_omap.2: rpm_resume returns 0
i2c_omap i2c_omap.2: bus 2 rev4.0 at 100 kHz
i2c_omap i2c_omap.2: rpm_suspend flags 0x0
i2c_omap i2c_omap.2: omap_pm_runtime_suspend
i2c_omap i2c_omap.2: rpm_suspend returns 0
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource gp timer
musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
Switched to NOHz mode on CPU #0
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb_hdrc: kernel must blacklist external hubs
musb_hdrc: HDRC RTL version 2.0
musb_hdrc: setup fifo_mode 4
musb_hdrc: 28/31 max ep, 16384/16384 memory
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb_hdrc musb_hdrc.0: USB Host mode controller at ca80c000 using DMA, IRQ 18
Registered /proc/driver/musb_hdrc.0
musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb_hdrc: kernel must blacklist external hubs
musb_hdrc: HDRC RTL version 2.0
musb_hdrc: setup fifo_mode 4
musb_hdrc: 28/31 max ep, 16384/16384 memory
musb_hdrc musb_hdrc.1: MUSB HDRC host driver
musb_hdrc musb_hdrc.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb_hdrc musb_hdrc.1: USB Host mode controller at ca81e800 using DMA, IRQ 19
Registered /proc/driver/musb_hdrc.1
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.
PCI: CLS 0 bytes, default 64
NetWinder Floating Point Emulator V0.97 (double precision)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 219
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap-hsuart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
omap-hsuart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap-hsuart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
brd: module loaded
loop: module loaded
ahci ahci: forcing port_map 0x0 -> 0x3
ahci ahci: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci
scsi1 : ahci
ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
scsi host0: rpm_resume flags 0x4
scsi host0: rpm_resume returns 1
scsi host1: rpm_resume flags 0x4
scsi host1: rpm_resume returns 1
m25p80 spi1.0: found m25p05-nonjedec, expected w25x32
m25p80 spi1.0: m25p05-nonjedec (64 Kbytes)
Creating 4 MTD partitions on "spi_flash":
0x000000000000-0x000000040000 : "U-Boot"
mtd: partition "U-Boot" extends beyond the end of device "spi_flash" -- size truncated to 0x10000
0x000000010000-0x000000012000 : "U-Boot Env"
mtd: partition "U-Boot Env" is out of reach -- disabled
0x000000000000-0x000000280000 : "Kernel"
mtd: partition "Kernel" extends beyond the end of device "spi_flash" -- size truncated to 0x10000
0x000000010000-0x000000010000 : "File System"
mtd: partition "File System" is out of reach -- disabled
omap2-nand driver initializing
No NAND device found.
No NAND device found.
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
omap_wdt omap_wdt: rpm_resume flags 0x4
omap_wdt omap_wdt: omap_pm_runtime_resume
omap_wdt omap_wdt: rpm_resume returns 0
OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
omap_wdt omap_wdt: rpm_suspend flags 0x0
omap_wdt omap_wdt: omap_pm_runtime_suspend
omap_wdt omap_wdt: rpm_suspend returns 0
PSTATE 1ff0000
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
1-0018 supply IOVDD not found, using dummy regulator
1-0018 supply DVDD not found, using dummy regulator
1-0018 supply AVDD not found, using dummy regulator
1-0018 supply DRVDD not found, using dummy regulator
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
ALSA device list:
  #0: TI81XX EVM
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
emac-mii: probed
mdio_bus 1:01: DaVinci EMAC: mii bus found 31
net eth1: DaVinci EMAC eth1 PHY not found
davinci_emac: probe of davinci_emac.1 failed with error -1
mmc0: new SDHC card at address e624
mmcblk0: mmc0:e624 SD08G 7.40 GiB
 mmcblk0: p1 p2 p3
ata1: SATA link down (SStatus 0 SControl 300)
scsi host0: rpm_suspend flags 0x0
scsi host0: rpm_suspend returns 0
ata2: SATA link down (SStatus 0 SControl 300)
scsi host1: rpm_suspend flags 0x0
scsi host1: rpm_suspend returns 0
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, id=282f013)
IP-Config: Complete:
     device=eth0, addr=192.168.1.1, mask=255.255.255.0, gw=255.255.255.255,
     host=192.168.1.1, domain=, nis-domain=(none),
     bootserver=192.168.1.5, rootserver=192.168.1.5, rootpath=
Warning: unable to open an initial console.
PHY: 1:01 - Link is Up - 1000/Full
VFS: Mounted root (nfs filesystem) on device 0:14.
devtmpfs: mounted
Freeing init memory: 180K
udevd (60): /proc/60/oom_adj is deprecated, please use /proc/60/oom_score_adj instead.
udev: starting version 141
NET: Registered protocol family 10
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev mmcblk0.
EXT3-fs (mmcblk0): error: can't find ext3 filesystem on dev mmcblk0.
EXT2-fs (mmcblk0): error: can't find an ext2 filesystem on dev mmcblk0.
SQUASHFS error: Can't find a SQUASHFS superblock on mmcblk0
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev mmcblk0.
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
EXT3-fs: barriers not enabled
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p3): warning: mounting unchecked fs, running e2fsck is recommended
EXT3-fs (mmcblk0p3): using internal journal
EXT3-fs (mmcblk0p3): recovery complete
EXT3-fs (mmcblk0p3): mounted filesystem with writeback data mode
eth0: no IPv6 routers present

 

Now here is the output of the exact same kernel image booting from NAND (which doesn't work ... I get strange characters on my console right after the omap-hsuart output):

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37-rc3 (hutch@neo) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #3 Wed Apr 20 14:36:02 EDT 2011
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8168evm
bootconsole [earlycon0] enabled
reserved size = 0 at 0
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8168
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 25400
Kernel command line: console=ttyS2,115200n8 root=/dev/mtdblock3 rw rootfstype=jffs2 mem=100M earlyprintk
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: 100MB = 100MB total
Memory: 96684k/96684k available, 5716k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc6800000 - 0xf8000000   ( 792 MB)
    lowmem  : 0xc0000000 - 0xc6400000   ( 100 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0035000   ( 180 kB)
      .text : 0xc0035000 - 0xc0439000   (4112 kB)
      .data : 0xc043a000 - 0xc0475040   ( 237 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:400
GPMC revision 6.0
IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
Total of 128 interrupts on 1 active controller
OMAP clockevent source: GPTIMER1 at 27000000 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
omap_mux_init: Add partition: #1: core, flags: 0
_omap_mux_init_signal: Could not set signal i2c2_scl.i2c2_scl
_omap_mux_init_signal: Could not set signal i2c2_sda.i2c2_sda
NOR: Can't request GPMC CS
registered ti816x_vpss device
pm_dbg_init: only OMAP3 supported
Registered ti81xx_fb device
ti816x_pcie: Invoking PCI BIOS...
ti816x_pcie: Setting up Host Controller...
ti816x_pcie: Register base mapped @0xc6820000
ti816x_pcie: Starting PCI scan...
PCI: bus0: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_omap i2c_omap.1: bus 1 rev4.0 at 100 kHz
i2c_omap i2c_omap.2: bus 2 rev4.0 at 100 kHz
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource gp timer
musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
Switched to NOHz mode on CPU #0
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
musb_hdrc: kernel must blacklist external hubs
musb_hdrc musb_hdrc.0: MUSB HDRC host driver
musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb_hdrc musb_hdrc.0: USB Host mode controller at c680c000 using DMA, IRQ 18
musb_hdrc: kernel must blacklist external hubs
musb_hdrc musb_hdrc.1: MUSB HDRC host driver
musb_hdrc musb_hdrc.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
musb_hdrc musb_hdrc.1: USB Host mode controller at c681e800 using DMA, IRQ 19
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.
NetWinder Floating Point Emulator V0.97 (double precision)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) .. 2001-2006 Red Hat, Inc.
msgmni has been set to 188
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
omap-hsuart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0                                                                                                                                                                  a
omap-hsuart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1                                                                                                                      �.&2=��4010). �.m.!| .. .85j��..-�/�.-0.1.0�.
omap-hsuart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2                                                                                            1.. .85j��..-�/�.-0.1.0�.8                                            
U-Boot 2010.06 (Nov 19 2010 - 00:26:27)�.-000- .�a�!.)!.)!.)0�.103.3�..2��..3'.303..,0.4z�.-.�.�!.)!.)&.�| .13�&�.�" �//�9�. ..3.-�2.�4 .�.4) !...�.4. !...

... and the above line is where the kernel booting dies.

Anyone seen this before of have a clue what the issue is?

I'm tempted to do a bitbake update to see if maybe something was already fixed in upstream git tree.

Regards,

Brian

  • hutchman said:
    console=ttyS2,115200n8

    Instead of ttyS2 you should be using ttyO2 (thats an O as in OMAP). This is mentioned in the ReadMe first section of the User Guide.

    The NFS filesystem mounted in SD boot mode has the "/etc/inittab" file updated to launch a console on both ttyS2 and ttyO2 because of which the issue gets masked out. However the filesystem that is on NAND does not have both the entries and hence you see junk characters on the console.

    Regards,

    Vaibhav

  • Vaibhav, which User Guide were you talking about because I must have missed that?  I have the TI816x-PSP 04.00.00 EA3 UserGuide and it says to use ttyS2.  I made the change you mentioned to ttyO2 and it did get further but then dies in another spot! :(

     

    Here is what dmesg looks like now:

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37-rc3 (hutch@neo) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #3 Wed Apr 20 14:36:02 EDT 2011
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    bootconsole [earlycon0] enabled
    reserved size = 0 at 0
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8168
    pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    pcpu-alloc: [0] 0
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 25400
    Kernel command line: console=ttyO2,115200n8 root=/dev/mtdblock3 rw rootfstype=jffs2 mem=100M earlyprintk noinitrd
    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: 100MB = 100MB total
    Memory: 96684k/96684k available, 5716k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xc6800000 - 0xf8000000   ( 792 MB)
        lowmem  : 0xc0000000 - 0xc6400000   ( 100 MB)
        modules : 0xbf000000 - 0xc0000000   (  16 MB)
          .init : 0xc0008000 - 0xc0035000   ( 180 kB)
          .text : 0xc0035000 - 0xc0439000   (4112 kB)
          .data : 0xc043a000 - 0xc0475040   ( 237 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:400
    GPMC revision 6.0
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    OMAP clockevent source: GPTIMER1 at 27000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    regulator: core version 0.5
    regulator: dummy:
    NET: Registered protocol family 16
    omap_mux_init: Add partition: #1: core, flags: 0
    _omap_mux_init_signal: Could not set signal i2c2_scl.i2c2_scl
    _omap_mux_init_signal: Could not set signal i2c2_sda.i2c2_sda
    NOR: Can't request GPMC CS
    registered ti816x_vpss device
    pm_dbg_init: only OMAP3 supported
    Registered ti81xx_fb device
    ti816x_pcie: Invoking PCI BIOS...
    ti816x_pcie: Setting up Host Controller...
    ti816x_pcie: Register base mapped @0xc6820000
    ti816x_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers enabled
    bio: create slab <bio-0> at 0
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    i2c_omap i2c_omap.1: bus 1 rev4.0 at 100 kHz
    i2c_omap i2c_omap.2: bus 2 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
    Switched to NOHz mode on CPU #0
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    musb_hdrc: kernel must blacklist external hubs
    musb_hdrc musb_hdrc.0: MUSB HDRC host driver
    musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    musb_hdrc musb_hdrc.0: USB Host mode controller at c680c000 using DMA, IRQ 18
    musb_hdrc: kernel must blacklist external hubs
    musb_hdrc musb_hdrc.1: MUSB HDRC host driver
    musb_hdrc musb_hdrc.1: new USB bus registered, assigned bus number 2
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    musb_hdrc musb_hdrc.1: USB Host mode controller at c681e800 using DMA, IRQ 19
    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.
    NetWinder Floating Point Emulator V0.97 (double precision)
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    Registering mini_fo version $Id$
    JFFS2 version 2.2. (NAND) .. 2001-2006 Red Hat, Inc.
    msgmni has been set to 188
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap-hsuart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    omap-hsuart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap-hsuart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    console [ttyO2] enabled, bootconsole disabled
    console [ttyO2] enabled, bootconsole disabled
    brd: module loaded
    loop: module loaded
    ahci ahci: forcing port_map 0x0 -> 0x3
    ahci ahci: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci
    scsi1 : ahci
    ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
    ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
    m25p80 spi1.0: found m25p05-nonjedec, expected w25x32
    m25p80 spi1.0: m25p05-nonjedec (64 Kbytes)
    Creating 4 MTD partitions on "spi_flash":
    0x000000000000-0x000000040000 : "U-Boot"
    mtd: partition "U-Boot" extends beyond the end of device "spi_flash" -- size truncated to 0x10000
    0x000000010000-0x000000012000 : "U-Boot Env"
    mtd: partition "U-Boot Env" is out of reach -- disabled
    0x000000000000-0x000000280000 : "Kernel"
    mtd: partition "Kernel" extends beyond the end of device "spi_flash" -- size truncated to 0x10000
    0x000000010000-0x000000010000 : "File System"
    mtd: partition "File System" is out of reach -- disabled
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron )
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000260000 : "U-Boot"
    0x000000260000-0x000000280000 : "U-Boot Env"
    0x000000280000-0x0000006c0000 : "Kernel"
    0x0000006c0000-0x00000cee0000 : "File System"
    0x00000cee0000-0x000010000000 : "Reserved"
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mice: PS/2 mouse device common for all mice
    i2c /dev entries driver
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    PSTATE 1ff0000
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    usbcore: registered new interface driver snd-usb-audio
    1-0018 supply IOVDD not found, using dummy regulator
    1-0018 supply DVDD not found, using dummy regulator
    1-0018 supply AVDD not found, using dummy regulator
    1-0018 supply DRVDD not found, using dummy regulator
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    ALSA device list:
      #0: TI81XX EVM
    TCP cubic registered
    NET: Registered protocol family 17
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    emac-mii: probed
    mdio_bus 1:01: DaVinci EMAC: mii bus found 31
    net eth1: DaVinci EMAC eth1 PHY not found
    davinci_emac: probe of davinci_emac.1 failed with error -1
    ata2: SATA link down (SStatus 0 SControl 300)
    ata1: SATA link down (SStatus 0 SControl 300)
    Division by zero in kernel.
    Backtrace:
    [<c0043b34>] (dump_backtrace+0x0/0x110) from [<c0327afc>] (dump_stack+0x18/0x1c)
     r7:c5e74400 r6:c5e74600 r5:00000000 r4:00000000
    [<c0327ae4>] (dump_stack+0x0/0x1c) from [<c0044328>] (__div0+0x18/0x20)
    [<c0044310>] (__div0+0x0/0x20) from [<c0184fdc>] (Ldiv0+0x8/0x10)
    [<c015f638>] (jffs2_do_fill_super+0x0/0x238) from [<c0160518>] (jffs2_fill_super+0xbc/0xd4)
     r7:00000001 r6:00000000 r5:c5e74400 r4:c5e74600
    [<c016045c>] (jffs2_fill_super+0x0/0xd4) from [<c020bd50>] (mount_mtd_aux+0x54/0xe8)
     r7:00000000 r6:00008000 r5:c5df9200 r4:c5e74400
    [<c020bcfc>] (mount_mtd_aux+0x0/0xe8) from [<c020be40>] (mount_mtd_nr+0x5c/0x64)
     r7:00008000 r6:c045a580 r5:00000000 r4:c5e75180
    [<c020bde4>] (mount_mtd_nr+0x0/0x64) from [<c020bf88>] (mount_mtd+0x140/0x170)
     r7:c045a580 r6:00008000 r5:01f00003 r4:c5e75180
    [<c020be48>] (mount_mtd+0x0/0x170) from [<c01601f0>] (jffs2_mount+0x1c/0x28)
    [<c01601d4>] (jffs2_mount+0x0/0x28) from [<c00b401c>] (vfs_kern_mount+0xac/0x1d8)
    [<c00b3f70>] (vfs_kern_mount+0x0/0x1d8) from [<c00b41a4>] (do_kern_mount+0x3c/0xe0)
    [<c00b4168>] (do_kern_mount+0x0/0xe0) from [<c00c9c10>] (do_mount+0x68c/0x6ec)
     r9:00000000 r8:c5e75180 r7:00000020 r6:00000000 r5:00000000
    r4:00008000
    [<c00c9584>] (do_mount+0x0/0x6ec) from [<c00c9cfc>] (sys_mount+0x8c/0xcc)
    [<c00c9c70>] (sys_mount+0x0/0xcc) from [<c0008ef0>] (do_mount_root+0x28/0xc0)
     r7:c5c12000 r6:c005e5c4 r5:c002bcbc r4:c5c12000
    [<c0008ec8>] (do_mount_root+0x0/0xc0) from [<c0009174>] (mount_block_root+0x100/0x220)
     r4:c5c12000
    [<c0009074>] (mount_block_root+0x0/0x220) from [<c0009340>] (mount_root+0xac/0xcc)
    [<c0009294>] (mount_root+0x0/0xcc) from [<c00094d0>] (prepare_namespace+0x170/0x1d4)
     r4:c04750a4
    [<c0009360>] (prepare_namespace+0x0/0x1d4) from [<c0008784>] (kernel_init+0x114/0x154)
     r5:c0008670 r4:c0475040
    [<c0008670>] (kernel_init+0x0/0x154) from [<c005e5c4>] (do_exit+0x0/0x5b8)
     r5:c0008670 r4:00000000
    Division by zero in kernel.
    Backtrace:
    [<c0043b34>] (dump_backtrace+0x0/0x110) from [<c0327afc>] (dump_stack+0x18/0x1c)
     r7:c5e74400 r6:c5e74600 r5:00000000 r4:00000000
    [<c0327ae4>] (dump_stack+0x0/0x1c) from [<c0044328>] (__div0+0x18/0x20)
    [<c0044310>] (__div0+0x0/0x20) from [<c0184fdc>] (Ldiv0+0x8/0x10)
    [<c015daf8>] (jffs2_do_mount_fs+0x0/0x648) from [<c015f794>] (jffs2_do_fill_super+0x15c/0x238)
    [<c015f638>] (jffs2_do_fill_super+0x0/0x238) from [<c0160518>] (jffs2_fill_super+0xbc/0xd4)
     r7:00000001 r6:00000000 r5:c5e74400 r4:c5e74600
    [<c016045c>] (jffs2_fill_super+0x0/0xd4) from [<c020bd50>] (mount_mtd_aux+0x54/0xe8)
     r7:00000000 r6:00008000 r5:c5df9200 r4:c5e74400
    [<c020bcfc>] (mount_mtd_aux+0x0/0xe8) from [<c020be40>] (mount_mtd_nr+0x5c/0x64)
     r7:00008000 r6:c045a580 r5:00000000 r4:c5e75180
    [<c020bde4>] (mount_mtd_nr+0x0/0x64) from [<c020bf88>] (mount_mtd+0x140/0x170)
     r7:c045a580 r6:00008000 r5:01f00003 r4:c5e75180
    [<c020be48>] (mount_mtd+0x0/0x170) from [<c01601f0>] (jffs2_mount+0x1c/0x28)
    [<c01601d4>] (jffs2_mount+0x0/0x28) from [<c00b401c>] (vfs_kern_mount+0xac/0x1d8)
    [<c00b3f70>] (vfs_kern_mount+0x0/0x1d8) from [<c00b41a4>] (do_kern_mount+0x3c/0xe0)
    [<c00b4168>] (do_kern_mount+0x0/0xe0) from [<c00c9c10>] (do_mount+0x68c/0x6ec)
     r9:00000000 r8:c5e75180 r7:00000020 r6:00000000 r5:00000000
    r4:00008000
    [<c00c9584>] (do_mount+0x0/0x6ec) from [<c00c9cfc>] (sys_mount+0x8c/0xcc)
    [<c00c9c70>] (sys_mount+0x0/0xcc) from [<c0008ef0>] (do_mount_root+0x28/0xc0)
     r7:c5c12000 r6:c005e5c4 r5:c002bcbc r4:c5c12000
    [<c0008ec8>] (do_mount_root+0x0/0xc0) from [<c0009174>] (mount_block_root+0x100/0x220)
     r4:c5c12000
    [<c0009074>] (mount_block_root+0x0/0x220) from [<c0009340>] (mount_root+0xac/0xcc)
    [<c0009294>] (mount_root+0x0/0xcc) from [<c00094d0>] (prepare_namespace+0x170/0x1d4)
     r4:c04750a4
    [<c0009360>] (prepare_namespace+0x0/0x1d4) from [<c0008784>] (kernel_init+0x114/0x154)
     r5:c0008670 r4:c0475040
    [<c0008670>] (kernel_init+0x0/0x154) from [<c005e5c4>] (do_exit+0x0/0x5b8)
     r5:c0008670 r4:00000000
    Division by zero in kernel.
    Backtrace:
    [<c0043b34>] (dump_backtrace+0x0/0x110) from [<c0327afc>] (dump_stack+0x18/0x1c)
     r7:c5c22000 r6:00000080 r5:00000000 r4:00000080
    [<c0327ae4>] (dump_stack+0x0/0x1c) from [<c0044328>] (__div0+0x18/0x20)
    [<c0044310>] (__div0+0x0/0x20) from [<c0184fdc>] (Ldiv0+0x8/0x10)
    [<c015daf8>] (jffs2_do_mount_fs+0x0/0x648) from [<c015f794>] (jffs2_do_fill_super+0x15c/0x238)
    [<c015f638>] (jffs2_do_fill_super+0x0/0x238) from [<c0160518>] (jffs2_fill_super+0xbc/0xd4)
     r7:00000001 r6:00000000 r5:c5e74400 r4:c5e74600
    [<c016045c>] (jffs2_fill_super+0x0/0xd4) from [<c020bd50>] (mount_mtd_aux+0x54/0xe8)
     r7:00000000 r6:00008000 r5:c5df9200 r4:c5e74400
    [<c020bcfc>] (mount_mtd_aux+0x0/0xe8) from [<c020be40>] (mount_mtd_nr+0x5c/0x64)
     r7:00008000 r6:c045a580 r5:00000000 r4:c5e75180
    [<c020bde4>] (mount_mtd_nr+0x0/0x64) from [<c020bf88>] (mount_mtd+0x140/0x170)
     r7:c045a580 r6:00008000 r5:01f00003 r4:c5e75180
    [<c020be48>] (mount_mtd+0x0/0x170) from [<c01601f0>] (jffs2_mount+0x1c/0x28)
    [<c01601d4>] (jffs2_mount+0x0/0x28) from [<c00b401c>] (vfs_kern_mount+0xac/0x1d8)
    [<c00b3f70>] (vfs_kern_mount+0x0/0x1d8) from [<c00b41a4>] (do_kern_mount+0x3c/0xe0)
    [<c00b4168>] (do_kern_mount+0x0/0xe0) from [<c00c9c10>] (do_mount+0x68c/0x6ec)
     r9:00000000 r8:c5e75180 r7:00000020 r6:00000000 r5:00000000
    r4:00008000
    [<c00c9584>] (do_mount+0x0/0x6ec) from [<c00c9cfc>] (sys_mount+0x8c/0xcc)
    [<c00c9c70>] (sys_mount+0x0/0xcc) from [<c0008ef0>] (do_mount_root+0x28/0xc0)
     r7:c5c12000 r6:c005e5c4 r5:c002bcbc r4:c5c12000
    [<c0008ec8>] (do_mount_root+0x0/0xc0) from [<c0009174>] (mount_block_root+0x100/0x220)
     r4:c5c12000
    [<c0009074>] (mount_block_root+0x0/0x220) from [<c0009340>] (mount_root+0xac/0xcc)
    [<c0009294>] (mount_root+0x0/0xcc) from [<c00094d0>] (prepare_namespace+0x170/0x1d4)
     r4:c04750a4
    [<c0009360>] (prepare_namespace+0x0/0x1d4) from [<c0008784>] (kernel_init+0x114/0x154)
     r5:c0008670 r4:c0475040
    [<c0008670>] (kernel_init+0x0/0x154) from [<c005e5c4>] (do_exit+0x0/0x5b8)
     r5:c0008670 r4:00000000
    VFS: Mounted root (jffs2 filesystem) on device 31:3.
    devtmpfs: error mounting -2
    Freeing init memory: 180K
    Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
    Backtrace:
    [<c0043b34>] (dump_backtrace+0x0/0x110) from [<c0327afc>] (dump_stack+0x18/0x1c)
     r7:00000013 r6:c005e5c4 r5:c0008670 r4:c04756d0
    [<c0327ae4>] (dump_stack+0x0/0x1c) from [<c0327b60>] (panic+0x60/0x17c)
    [<c0327b00>] (panic+0x0/0x17c) from [<c0035574>] (init_post+0xa4/0xc4)
     r3:c5e6eb00 r2:00000000 r1:c0567dc0 r0:c03d074d
    [<c00354d0>] (init_post+0x0/0xc4) from [<c0008788>] (kernel_init+0x118/0x154)
     r5:c0008670 r4:c0475040
    [<c0008670>] (kernel_init+0x0/0x154) from [<c005e5c4>] (do_exit+0x0/0x5b8)
     r5:c0008670 r4:00000000

     

    Thanks for the quick reply!  You are the man!

    Regards,

    Brian

     

  • Vaibhav,

    Just to clarify, the uImage & root filesystem I am using in NAND and SD are exactly the same!  I did mkfs.jffs2 on the directory I'm using for NFS mounting to create the image I then flashed to NAND.

    Regards,

    Brian

     

  • Brian,

    I should have mentioned the doc that i was referring to: http://processors.wiki.ti.com/index.php/DM816x_C6A816x_AM389x_PSP_04.00.00.10_User_Guide.

    The NAND boot issue seems to be due to mtdblock mismatch. Since the defconfig now has both SPI and NAND enabled, mtdblock7 should be used. More info here: http://processors.wiki.ti.com/index.php/DM816x_C6A816x_AM389x_PSP_04.00.00.10_U-Boot#Environment_Settings_for_JFFS2_Filesystem

    Regards,

    Vaibhav

     

     

  • Hi Vaibhav,

     

    I saw that document and tried mtdblk7 but that didn't fix it for me.  I'm currently using PSP 04.00.00.09 from the Arago git and am wondering when I can use 04.00.00.10 as I've been following the commit messages and think that maybe that is the version I should be using.

     

    Regards,

     

    Brian

     

  • Brian,

    Is the error message still the same? If yes, can you please double check the step for creating the jffs2 filesystem with the doc. If not, can you provide the error log.

    Regards,

    Vaibhav