U-Boot 1.3.3 (Jul 25 2009 - 13:05:00) I2C: ready DRAM: 64 MB NAND: NAND Manufacturer id: 20 NAND Device id: 76 NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bi t) Bad block table found at page 131040, version 0x00 Bad block table found at page 131008, version 0x00 nand_read_bbt: Bad block at 0x00004000 nand_read_bbt: Bad block at 0x00008000 nand_read_bbt: Bad block at 0x0000c000 nand_read_bbt: Bad block at 0x00010000 nand_read_bbt: Bad block at 0x00014000 nand_read_bbt: Bad block at 0x00018000 nand_read_bbt: Bad block at 0x0001c000 nand_read_bbt: Bad block at 0x00020000 nand_read_bbt: Bad block at 0x00024000 nand_read_bbt: Bad block at 0x00028000 nand_read_bbt: Bad block at 0x0002c000 nand_read_bbt: Bad block at 0x00030000 nand_read_bbt: Bad block at 0x00034000 nand_read_bbt: Bad block at 0x00038000 nand_read_bbt: Bad block at 0x0003c000 64 MiB In: serial Out: serial Err: serial ARM Clock : 300000000 Hz EEPROM @ 0x50 read FAILED!!! Ethernet switch start failed! No ETH PHY detected!!! Error: Ethernet init failed! Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x600000, size 0x300000 Reading data from 0x8ffe00 -- 100% complete. 3145728 bytes read: OK Loading from NAND 64MiB 3,3V 8-bit, offset 0x200000 Image Name: Linux-2.6.18_pro500-da830_omapl1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1815804 Bytes = 1.7 MB Load Address: c0008000 Entry Point: c0008000 ## Booting kernel from Legacy Image at c0700000 ... Image Name: Linux-2.6.18_pro500-da830_omapl1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1815804 Bytes = 1.7 MB Load Address: c0008000 Entry Point: c0008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux............................................................. ............................................................ done, booting the k ernel. Linux version 2.6.18_pro500-da830_omapl137_evm-arm_v5t_le (realtimedsp@realtimed sp-laptop) (gcc 版本 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1 P REEMPT Wed Jan 28 21:23:52 CST 2015 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 Machine: DaVinci DA8XX EVM Memory policy: ECC disabled, Data cache writethrough DA830 variant 0x9 CPU0: D VIVT write-back cache CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets Built 1 zonelists. Total pages: 8192 Kernel command line: mem=32M console=ttyS2,115200n8 root=/dev/ram0 rw initrd=0xc 1180000,4M ip=off PID hash table entries: 256 (order: 8, 1024 bytes) Clock event device timer0_0 configured with caps set: 07 Console: colour dummy device 80x30 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: 24396KB available (3112K code, 634K data, 176K init) Security Framework v1.0.0 initialized Capability LSM initialized 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: 4096K NET: Registered protocol family 16 DaVinci: 128 gpio irqs Generic PHY: Registered new driver usbcore: registered new driver usbfs usbcore: registered new driver hub NET: Registered protocol family 2 IP route cache hash table entries: 256 (order: -2, 1024 bytes) TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 1024 bind 512) TCP reno registered NetWinder Floating Point Emulator V0.97 (double precision) VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) squashfs: version 3.1 (2006/08/19) Phillip Lougher JFFS version 1.0, (C) 1999, 2000 Axis Communications AB JFFS2 version 2.2. (NAND) (SUMMARY) (C) 2001-2006 Red Hat, Inc. yaffs Jan 28 2015 21:19:59 Installing. SGI XFS with no debug enabled Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered (default) LTT : ltt-facilities init LTT : ltt-facility-core init in kernel DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec Serial: 8250/16550 driver $Revision: 1.90 $ 3 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO map 0x1c42000 mem 0xfec42000 (irq = 25) is a 16550A serial8250.0: ttyS1 at MMIO map 0x1c20400 mem 0xfed0c000 (irq = 53) is a 16550A serial8250.0: ttyS2 at MMIO map 0x1d0d000 mem 0xfed0d000 (irq = 61) is a 16550A RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize Davinci EMAC MII Bus: probed MAC address is 02:00:10:00:00:00 TI DaVinci EMAC Linux version updated 4.0 i2c /dev entries driver dm_spi.0: davinci SPI Controller driver at 0xc285c000 (irq = 20) use_dma=1 Pin NSPI1_ENA already used for UART2_RXD. dm_spi.1: davinci SPI Controller driver at 0xc285e000 (irq = 56) use_dma=1 ohci ohci.0: DA8xx OHCI ohci ohci.0: new USB bus registered, assigned bus number 1 Waiting for USB PHY clock good... ohci ohci.0: irq 59, io mem 0x01e25000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected usbcore: registered new driver libusual musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0 Waiting for USB PHY clock good... musb_hdrc: USB Host mode controller at c2860000 using DMA, IRQ 58 musb_hdrc musb_hdrc: MUSB HDRC host driver musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected mice: PS/2 mouse device common for all mice rtc-da8xx rtc-da8xx.0: rtc intf: proc rtc-da8xx rtc-da8xx.0: rtc intf: dev (254:0) rtc-da8xx rtc-da8xx.0: rtc core: registered rtc-da8xx as rtc0 rtc-da8xx rtc-da8xx.0: TI DA8xx Real Time Clock driver. davinci-mmc davinci-mmc.0: Supporting 8-bit mode davinci-mmc davinci-mmc.0: Supporting 4-bit mode davinci-mmc davinci-mmc.0: Using DMA mode Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC). ASoC version 0.13.1 AIC3X Audio Codec 0.2 ALSA device list: No soundcards found. IPv4 over IPv4 tunneling driver TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 rtc-da8xx rtc-da8xx.0: setting the system clock to 2000-01-01 00:00:00 (94668480 0) Time: timer0_1 clocksource has been installed. Clock event device timer0_0 configured with caps set: 08 Switched to high resolution mode on CPU 0 RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). Freeing init memory: 176K INIT: version 2.86 booting Starting the hotplug events dispatcher: udevd. Synthesizing the initial hotplug events...done. Waiting for /dev to be fully populated...done. Activating swap...done. Remounting root filesystem...done. Mounting local filesystems: mount none on /var/run type tmpfs (rw) none on /tmp type tmpfs (rw) Setting up networking .... Starting hotplug subsystem: pci pci [success] usb usb [success] isapnp isapnp [success] ide ide [success] input input [success] scsi scsi [success] done. Starting portmap daemon.... INIT: Entering runlevel: 3 Starting internet superserver: inetd. MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921) (none) login: root Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921). login[542]: root login on 'console' # cd .. # ls bin g_serial.ko linuxrc proc spidev_test usr dev init lost+found root sys var etc lib mnt sbin tmp # cd dev # ls MAKEDEV loop rtc0 usbdev1.1_ep00 bus mem shm usbdev1.1_ep81 console net snd usbdev2.1_ep00 core null sndstat usbdev2.1_ep81 fd port spidev0.0 vc full ppp stderr vcc i2c ptmx stdin watchdog initctl pts stdout zero input random tts kmem rd tty kmsg rtc urandom # cd .. # ls bin g_serial.ko linuxrc proc spidev_test usr dev init lost+found root sys var etc lib mnt sbin tmp # ./spidee -sh: ./spidee: not found # ./spidev_test Unable to handle kernel NULL pointer dereference at virtual address 00000010 spi mode: 0 bitpgd = c0004000 s per word: 8 m[00000010] *pgd=00000000ax speed: 500000 Hz (500 KHz) Internal error: Oops: 17 [#1] Modules linked in: CPU: 0 PC is at davinci_spi_bufs_prep+0xc/0x47c LR is at davinci_spi_bufs_dma+0xec/0x49c pc : [] lr : [] Not tainted sp : c1187ea0 ip : c1187eb0 fp : c1187eac r10: c1186000 r9 : c16cb200 r8 : c1192260 r7 : c16cb4a0 r6 : c16a4760 r5 : c03493a0 r4 : 00000000 r3 : 00000008 r2 : 00000000 r1 : c16cb4a0 r0 : c16cb200 Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment kernel Control: 5317F Table: C05F0000 DAC: 00000017 Process dm_spi.0 (pid: 180, stack limit = 0xc1186258) Stack: (0xc1187ea0 to 0xc1188000) 7ea0: c1187efc c1187eb0 c0220258 c021ef74 00000000 c1187f56 c16cb200 00000001 7ec0: 00000001 ffffffff c1187f24 01c41000 c1187efc c1192260 00000000 c0521ecc 7ee0: c021f5b0 c16cb4a0 c16cb200 c1186000 c1187f34 c1187f00 c021eb28 c022017c 7f00: c16cb4d4 00000000 c1187f54 20000013 c16a4720 c1186000 c16cb4a4 00000000 7f20: c021e9a4 c16cb4a0 c1187f6c c1187f38 c0063068 c021e9b4 c16a4738 c16a4728 7f40: 00000002 00000000 c16a4728 c1186000 c16a4720 c16a4730 00000002 c1187f84 7f60: c1187fcc c1187f70 c0063870 c0062f98 00000001 00000000 00000000 00010000 7f80: 00000000 00000000 c15066c0 c004b468 00100100 00200200 ffffffff ffffffff 7fa0: 00000000 c16a4720 c1186000 c0063768 c0443dd8 00000000 00000000 00000000 7fc0: c1187ff4 c1187fd0 c0066858 c0063778 ffffffff ffffffff 00000000 00000000 7fe0: 00000000 00000000 00000000 c1187ff8 c00531e0 c0066780 bc7f1dc5 6f3d9573 Backtrace: [] (davinci_spi_bufs_prep+0x0/0x47c) from [] (davinci_spi_bu fs_dma+0xec/0x49c) [] (davinci_spi_bufs_dma+0x0/0x49c) from [] (bitbang_work+0x 184/0x2d8) [] (bitbang_work+0x0/0x2d8) from [] (run_workqueue+0xe0/0x17 0) [] (run_workqueue+0x0/0x170) from [] (worker_thread+0x108/0x 144) [] (worker_thread+0x0/0x144) from [] (kthread+0xe8/0x128) [] (kthread+0x0/0x128) from [] (do_exit+0x0/0xa24) r7 = 00000000 r6 = 00000000 r5 = 00000000 r4 = 00000000 Code: e89da800 e1a0c00d e92dd800 e24cb004 (e5923010)