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.
U-Boot SPL 2011.09-00000-gc0d1c2f (Jul 25 2012 - 10:47:29)
Texas Instruments Revision detection unimplemented
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
read_eeprom() failure
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00000-gc0d1c2f (Jul 25 2012 - 10:47:29)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
214 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2631200 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631136 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (liujiangman@ubuntu) (gcc version 4.4.3 (GCC) ) #1 Mon Sep 3 15:13:26 CST 2012
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253292k/253292k available, 8852k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04b5000 (4788 kB)
[ 0.000000] .init : 0xc04b5000 - 0xc04e9000 ( 208 kB)
[ 0.000000] .data : 0xc04ea000 - 0xc0532fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0532fdc - 0xc0669f48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000264] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058633] pid_max: default: 32768 minimum: 301
[ 0.058802] Security Framework initialized
[ 0.058888] Mount-cache hash table entries: 512
[ 0.059363] CPU: Testing write buffer coherency: ok
[ 0.064463] print_constraints: dummy:
[ 0.064716] NET: Registered protocol family 16
[ 0.064948] GPMC revision 6.0
[ 0.066020] OMAP GPIO hardware version 0.1
[ 0.066871] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.066991] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069730] omap_i2c.1: alias fck already exists
[ 0.070633] omap2_mcspi.1: alias fck already exists
[ 0.070767] omap2_mcspi.2: alias fck already exists
[ 0.080462] bio: create slab <bio-0> at 0
[ 0.081534] SCSI subsystem initialized
[ 0.082502] usbcore: registered new interface driver usbfs
[ 0.082628] usbcore: registered new interface driver hub
[ 0.082798] usbcore: registered new device driver usb
[ 0.083717] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084622] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085281] Bluetooth: Core ver 2.16
[ 0.085376] NET: Registered protocol family 31
[ 0.085394] Bluetooth: HCI device and connection manager initialized
[ 0.085419] Bluetooth: HCI socket layer initialized
[ 0.085437] Bluetooth: L2CAP socket layer initialized
[ 0.085472] Bluetooth: SCO socket layer initialized
[ 0.085682] Switching to clocksource gp timer
[ 0.088714] Switched to NOHz mode on CPU #0
[ 0.095049] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095239] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096018] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096318] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.096988] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097365] NET: Registered protocol family 2
[ 0.097614] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098039] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098267] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098405] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098424] TCP reno registered
[ 0.098444] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098481] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098768] NET: Registered protocol family 1
[ 0.099131] RPC: Registered named UNIX socket transport module.
[ 0.099150] RPC: Registered udp transport module.
[ 0.099165] RPC: Registered tcp transport module.
[ 0.099180] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099464] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099547] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.255676] Gpio value is :117
[ 0.256344] ashmem: initialized
[ 0.257402] msgmni has been set to 494
[ 0.258502] io scheduler noop registered
[ 0.258523] io scheduler deadline registered
[ 0.258609] io scheduler cfq registered (default)
[ 0.259137] Could not set LED4 to fully on
[ 0.260265] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.261505] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.770709] console [ttyO0] enabled
[ 0.774694] WL1271: BT Enable
[ 0.778066] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.785896] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.793574] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.801315] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.809014] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.823840] brd: module loaded
[ 0.831026] loop: module loaded
[ 0.834549] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.895731] No daughter card found
[ 0.899365] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.965734] AM335X: EVM Config read fail: -110
[ 0.971504] omap2-nand driver initializing
[ 0.975980] OneNAND driver initializing
[ 0.980508] Initializing USB Mass Storage driver...
[ 0.985803] usbcore: registered new interface driver usb-storage
[ 0.992121] USB Mass Storage support registered.
[ 0.999221] gadget: Mass Storage Function, version: 2009/09/11
[ 1.005458] gadget: Number of LUNs=1
[ 1.009371] lun0: LUN: removable file: (no medium)
[ 1.014799] gadget: android_usb ready
[ 1.018812] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.024414] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.032979] hub 1-0:1.0: USB hub found
[ 1.036986] hub 1-0:1.0: 1 port detected
[ 1.041700] mousedev: PS/2 mouse device common for all mice
[ 1.049087] using rtc device, omap_rtc, for alarms
[ 1.054003] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.061030] i2c /dev entries driver
[ 1.065603] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.072252] device-mapper: uevent: version 1.0.3
[ 1.077393] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.086308] Bluetooth: HCI UART driver ver 2.2
[ 1.090986] Bluetooth: HCI H4 protocol initialized
[ 1.096040] Bluetooth: HCILL protocol initialized
[ 1.101554] usbcore: registered new interface driver usbhid
[ 1.107454] usbhid: USB HID core driver
[ 1.112068] logger: created 256K log 'log_main'
[ 1.117007] logger: created 256K log 'log_events'
[ 1.122089] logger: created 256K log 'log_radio'
[ 1.127102] logger: created 256K log 'log_system'
[ 1.133322] ALSA device list:
[ 1.136508] No soundcards found.
[ 1.140228] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[ 1.147087] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.152824] TCP cubic registered
[ 1.156269] NET: Registered protocol family 17
[ 1.161261] Bluetooth: RFCOMM TTY layer initialized
[ 1.166449] Bluetooth: RFCOMM socket layer initialized
[ 1.171855] Bluetooth: RFCOMM ver 1.11
[ 1.175819] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.181406] Bluetooth: BNEP filters: protocol multicast
[ 1.186921] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.193337] Registering the dns_resolver key type
[ 1.198406] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.206502] ThumbEE CPU extension supported.
[ 1.211970] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.218147] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.224204] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.230173] omap2_set_init_voltage: unable to set vdd_core
[ 1.241143] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.250644] Waiting for root device /dev/mmcblk0p2...
alvin lu您好,按照您的指点,我试了试,
2631224 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631160 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ...
这一块几乎是同时出来的,所以我卡不到您说的那个点上,拔出SD卡时已经运行到到Verifying Checksum ... ,到最后还是停在这里
[ 1.250925] Waiting for root device /dev/mmcblk0p2...
请问这是哪里的问题,需要怎么解决啊?
要是拔SD卡拔的早了,就是再reading uImage之后拔,就找不到SD卡了,
2631224 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631160 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
mmc_send_cmd: timedout waiting for cmddis!
** Can't read from device 0 **
** Unable to use mmc 0:1 for fatload **
Booting from nand ...
HW ECC BCH8 Selected
NAND read: device 0 offset 0x280000, size 0x500000
5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631160 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (a0131746@sditapps03) (gcc version 4.4.3 (GCC) ) #1 Mon Nov 28 21:00:21 IST 2011
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mtdblock7 rw noinitrd rootfstype=jffs2 ip=none
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253292k/253292k available, 8852k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04b5000 (4788 kB)
[ 0.000000] .init : 0xc04b5000 - 0xc04e9000 ( 208 kB)
[ 0.000000] .data : 0xc04ea000 - 0xc0532fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0532fdc - 0xc0669f48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000264] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058630] pid_max: default: 32768 minimum: 301
[ 0.058801] Security Framework initialized
[ 0.058890] Mount-cache hash table entries: 512
[ 0.059365] CPU: Testing write buffer coherency: ok
[ 0.064489] print_constraints: dummy:
[ 0.064743] NET: Registered protocol family 16
[ 0.064981] GPMC revision 6.0
[ 0.066065] OMAP GPIO hardware version 0.1
[ 0.066911] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067029] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069812] omap_i2c.1: alias fck already exists
[ 0.070712] omap2_mcspi.1: alias fck already exists
[ 0.070849] omap2_mcspi.2: alias fck already exists
[ 0.080583] bio: create slab <bio-0> at 0
[ 0.081669] SCSI subsystem initialized
[ 0.082647] usbcore: registered new interface driver usbfs
[ 0.082773] usbcore: registered new interface driver hub
[ 0.082942] usbcore: registered new device driver usb
[ 0.083864] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084765] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085427] Bluetooth: Core ver 2.16
[ 0.085530] NET: Registered protocol family 31
[ 0.085548] Bluetooth: HCI device and connection manager initialized
[ 0.085572] Bluetooth: HCI socket layer initialized
[ 0.085589] Bluetooth: L2CAP socket layer initialized
[ 0.085627] Bluetooth: SCO socket layer initialized
[ 0.085837] Switching to clocksource gp timer
[ 0.088710] Switched to NOHz mode on CPU #0
[ 0.095198] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095395] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096177] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096476] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.097130] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097510] NET: Registered protocol family 2
[ 0.097757] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098191] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098420] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098557] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098577] TCP reno registered
[ 0.098597] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098633] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098926] NET: Registered protocol family 1
[ 0.099298] RPC: Registered named UNIX socket transport module.
[ 0.099319] RPC: Registered udp transport module.
[ 0.099333] RPC: Registered tcp transport module.
[ 0.099348] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099641] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099727] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.256061] Gpio value is :117
[ 0.256641] ashmem: initialized
[ 0.257705] msgmni has been set to 494
[ 0.258815] io scheduler noop registered
[ 0.258835] io scheduler deadline registered
[ 0.258922] io scheduler cfq registered (default)
[ 0.259453] Could not set LED4 to fully on
[ 0.260587] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.261827] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.767202] console [ttyO0] enabled
[ 0.771184] WL1271: BT Enable
[ 0.774502] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.782349] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.790093] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.797826] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.805491] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.820386] brd: module loaded
[ 0.827640] loop: module loaded
[ 0.831162] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.895891] No daughter card found
[ 0.899528] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.965891] AM335X: EVM Config read fail: -110
[ 0.971658] omap2-nand driver initializing
[ 0.976134] OneNAND driver initializing
[ 0.980668] Initializing USB Mass Storage driver...
[ 0.985967] usbcore: registered new interface driver usb-storage
[ 0.992287] USB Mass Storage support registered.
[ 0.999424] gadget: Mass Storage Function, version: 2009/09/11
[ 1.005660] gadget: Number of LUNs=1
[ 1.009568] lun0: LUN: removable file: (no medium)
[ 1.015000] gadget: android_usb ready
[ 1.019017] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.024618] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.033195] hub 1-0:1.0: USB hub found
[ 1.037202] hub 1-0:1.0: 1 port detected
[ 1.041917] mousedev: PS/2 mouse device common for all mice
[ 1.049322] using rtc device, omap_rtc, for alarms
[ 1.054239] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.061267] i2c /dev entries driver
[ 1.065844] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.072503] device-mapper: uevent: version 1.0.3
[ 1.077644] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.086558] Bluetooth: HCI UART driver ver 2.2
[ 1.091236] Bluetooth: HCI H4 protocol initialized
[ 1.096291] Bluetooth: HCILL protocol initialized
[ 1.101808] usbcore: registered new interface driver usbhid
[ 1.107706] usbhid: USB HID core driver
[ 1.112317] logger: created 256K log 'log_main'
[ 1.117252] logger: created 256K log 'log_events'
[ 1.122334] logger: created 256K log 'log_radio'
[ 1.127344] logger: created 256K log 'log_system'
[ 1.133561] ALSA device list:
[ 1.136743] No soundcards found.
[ 1.140472] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[ 1.147344] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.153081] TCP cubic registered
[ 1.156525] NET: Registered protocol family 17
[ 1.161530] Bluetooth: RFCOMM TTY layer initialized
[ 1.166719] Bluetooth: RFCOMM socket layer initialized
[ 1.172125] Bluetooth: RFCOMM ver 1.11
[ 1.176088] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.181676] Bluetooth: BNEP filters: protocol multicast
[ 1.187189] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.193610] Registering the dns_resolver key type
[ 1.198698] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.206795] ThumbEE CPU extension supported.
[ 1.212274] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.218449] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.224508] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.230478] omap2_set_init_voltage: unable to set vdd_core
[ 1.241497] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.250841] Root-NFS: no NFS server address
[ 1.255245] VFS: Unable to mount root fs via NFS, trying floppy.
[ 1.262377] VFS: Cannot open root device "mtdblock7" or unknown-block(2,0)
[ 1.269664] Please append a correct "root=" boot option; here are the available partitions:
[ 1.278496] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 1.287204] Backtrace:
[ 1.289822] [<c0016f24>] (dump_backtrace+0x0/0x110) from [<c038326c>] (dump_stack+0x18/0x1c)
[ 1.298715] r7:c0442332 r6:00008000 r5:c0533ed0 r4:c0533ed0
[ 1.304703] [<c0383254>] (dump_stack+0x0/0x1c) from [<c03832d4>] (panic+0x64/0x18c)
[ 1.312798] [<c0383270>] (panic+0x0/0x18c) from [<c04b5dd8>] (mount_block_root+0x1dc/0x21c)
[ 1.321597] r3:00000000 r2:00000000 r1:cf81df50 r0:c04423d9
[ 1.327602] [<c04b5bfc>] (mount_block_root+0x0/0x21c) from [<c04b5ec4>] (mount_root+0xac/0xcc)
[ 1.336691] [<c04b5e18>] (mount_root+0x0/0xcc) from [<c04b6050>] (prepare_namespace+0x16c/0x1c4)
[ 1.345945] r4:c0533060
[ 1.348628] [<c04b5ee4>] (prepare_namespace+0x0/0x1c4) from [<c04b52f8>] (kernel_init+0xf0/0x124)
[ 1.357973] r5:c04e8c14 r4:c0533000
[ 1.361768] [<c04b5208>] (kernel_init+0x0/0x124) from [<c003bc10>] (do_exit+0x0/0x604)
[ 1.370110] r5:c04b5208 r4:00000000
呵呵,是这样的,你可能对uboot不是很熟悉,
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
到这里,串口终端就没有再输出任何信息了.
以上的串口输出信息是uboot的引导过程,至于这个starting kernel其实是uboot阶段输出最后的一句信息,这时候正准备进入内核引导。
在这个阶段过后,uboot的工作才算做完,这个时候拔SD才与uboot无关。
然后我看了下你的报错,当检测不到sd的时候将会从nand下载内核,我在你的内核打印里面并没有看到关于nand初始化的信息,你的nand似乎跟我一样都没起来。
你从nfs起来试试吧,然后cat /proc/mtd ,看有没有分区信息输出
再看看/dev下面关于nand和mmc的设备驱动节点,应该都没有吧。
从他给出的信息来看,在mmc下的command line是[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init ip=off
在nand下,command line是Kernel command line: console=ttyO0,115200n8 root=/dev/mtdblock7 rw noinitrd rootfstype=jffs2 ip=none
不过他设备都没检测到,这些怎么改都没用的。
kernel boot argument:
bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot,请问您说的是在这里改么,改成bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M rootfs=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=bootrootfs=/dev/nfs
文件系统的分区吧,我刚才看了下board.3359.c,nand一共分区8个,0-7,这个mtd7就是filesystem,不过他检测到不到nand设备,哪个区文件系统都没用。
SD卡里有个uEnv.txt,里面内容:
bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot
请问您说的是在这个文件里改么,改成
bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M rootfs=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot
还是在编译kernel时改呢,要是编译kernel时在哪里改呢。
要是只改这个文档,结果是
U-Boot SPL 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
Texas Instruments Revision detection unimplemented
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
read_eeprom() failure
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
211 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2631224 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631160 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (a0131746@sditapps03) (gcc version 4.4.3 (GCC) ) #1 Mon Nov 28 21:00:21 IST 2011
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M rootfts=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253292k/253292k available, 8852k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04b5000 (4788 kB)
[ 0.000000] .init : 0xc04b5000 - 0xc04e9000 ( 208 kB)
[ 0.000000] .data : 0xc04ea000 - 0xc0532fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0532fdc - 0xc0669f48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000266] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058633] pid_max: default: 32768 minimum: 301
[ 0.058804] Security Framework initialized
[ 0.058891] Mount-cache hash table entries: 512
[ 0.059376] CPU: Testing write buffer coherency: ok
[ 0.064525] print_constraints: dummy:
[ 0.064778] NET: Registered protocol family 16
[ 0.065012] GPMC revision 6.0
[ 0.066090] OMAP GPIO hardware version 0.1
[ 0.066939] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067060] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069821] omap_i2c.1: alias fck already exists
[ 0.070718] omap2_mcspi.1: alias fck already exists
[ 0.070850] omap2_mcspi.2: alias fck already exists
[ 0.080557] bio: create slab <bio-0> at 0
[ 0.081645] SCSI subsystem initialized
[ 0.082617] usbcore: registered new interface driver usbfs
[ 0.082745] usbcore: registered new interface driver hub
[ 0.082922] usbcore: registered new device driver usb
[ 0.083843] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084751] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085416] Bluetooth: Core ver 2.16
[ 0.085514] NET: Registered protocol family 31
[ 0.085533] Bluetooth: HCI device and connection manager initialized
[ 0.085556] Bluetooth: HCI socket layer initialized
[ 0.085575] Bluetooth: L2CAP socket layer initialized
[ 0.085612] Bluetooth: SCO socket layer initialized
[ 0.085820] Switching to clocksource gp timer
[ 0.088712] Switched to NOHz mode on CPU #0
[ 0.095204] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095401] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096181] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096485] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.097145] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097517] NET: Registered protocol family 2
[ 0.097772] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098209] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098437] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098575] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098595] TCP reno registered
[ 0.098614] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098650] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098942] NET: Registered protocol family 1
[ 0.099307] RPC: Registered named UNIX socket transport module.
[ 0.099327] RPC: Registered udp transport module.
[ 0.099342] RPC: Registered tcp transport module.
[ 0.099357] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099648] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099732] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.256223] Gpio value is :117
[ 0.256803] ashmem: initialized
[ 0.257882] msgmni has been set to 494
[ 0.258953] io scheduler noop registered
[ 0.258971] io scheduler deadline registered
[ 0.259061] io scheduler cfq registered (default)
[ 0.259594] Could not set LED4 to fully on
[ 0.260729] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.261967] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.771076] console [ttyO0] enabled
[ 0.775066] WL1271: BT Enable
[ 0.778445] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.786276] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.793947] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.801688] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.809388] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.824234] brd: module loaded
[ 0.831469] loop: module loaded
[ 0.834998] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.895872] No daughter card found
[ 0.899507] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.965874] AM335X: EVM Config read fail: -110
[ 0.971665] omap2-nand driver initializing
[ 0.976147] OneNAND driver initializing
[ 0.980679] Initializing USB Mass Storage driver...
[ 0.985978] usbcore: registered new interface driver usb-storage
[ 0.992296] USB Mass Storage support registered.
[ 0.999408] gadget: Mass Storage Function, version: 2009/09/11
[ 1.005644] gadget: Number of LUNs=1
[ 1.009556] lun0: LUN: removable file: (no medium)
[ 1.014986] gadget: android_usb ready
[ 1.018998] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.024601] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.033178] hub 1-0:1.0: USB hub found
[ 1.037183] hub 1-0:1.0: 1 port detected
[ 1.041901] mousedev: PS/2 mouse device common for all mice
[ 1.049308] using rtc device, omap_rtc, for alarms
[ 1.054222] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.061253] i2c /dev entries driver
[ 1.065814] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.072474] device-mapper: uevent: version 1.0.3
[ 1.077624] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.086534] Bluetooth: HCI UART driver ver 2.2
[ 1.091212] Bluetooth: HCI H4 protocol initialized
[ 1.096266] Bluetooth: HCILL protocol initialized
[ 1.101786] usbcore: registered new interface driver usbhid
[ 1.107683] usbhid: USB HID core driver
[ 1.112292] logger: created 256K log 'log_main'
[ 1.117231] logger: created 256K log 'log_events'
[ 1.122316] logger: created 256K log 'log_radio'
[ 1.127324] logger: created 256K log 'log_system'
[ 1.133529] ALSA device list:
[ 1.136712] No soundcards found.
[ 1.140432] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[ 1.147298] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.153040] TCP cubic registered
[ 1.156482] NET: Registered protocol family 17
[ 1.161489] Bluetooth: RFCOMM TTY layer initialized
[ 1.166677] Bluetooth: RFCOMM socket layer initialized
[ 1.172082] Bluetooth: RFCOMM ver 1.11
[ 1.176045] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.181633] Bluetooth: BNEP filters: protocol multicast
[ 1.187147] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.193575] Registering the dns_resolver key type
[ 1.198635] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.206731] ThumbEE CPU extension supported.
[ 1.212208] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.218384] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.224443] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.230412] omap2_set_init_voltage: unable to set vdd_core
[ 1.241446] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.250895] Waiting for root device ...
sd卡里有个uEnv.txt文档,内容是bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot
请问是在这里改么,改成bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M rootfs=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot
U-Boot SPL 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
Texas Instruments Revision detection unimplemented
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
read_eeprom() failure
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
211 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2631224 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631160 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (a0131746@sditapps03) (gcc version 4.4.3 (GCC) ) #1 Mon Nov 28 21:00:21 IST 2011
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M rootfts=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253292k/253292k available, 8852k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04b5000 (4788 kB)
[ 0.000000] .init : 0xc04b5000 - 0xc04e9000 ( 208 kB)
[ 0.000000] .data : 0xc04ea000 - 0xc0532fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0532fdc - 0xc0669f48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000266] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058633] pid_max: default: 32768 minimum: 301
[ 0.058804] Security Framework initialized
[ 0.058891] Mount-cache hash table entries: 512
[ 0.059376] CPU: Testing write buffer coherency: ok
[ 0.064525] print_constraints: dummy:
[ 0.064778] NET: Registered protocol family 16
[ 0.065012] GPMC revision 6.0
[ 0.066090] OMAP GPIO hardware version 0.1
[ 0.066939] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067060] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069821] omap_i2c.1: alias fck already exists
[ 0.070718] omap2_mcspi.1: alias fck already exists
[ 0.070850] omap2_mcspi.2: alias fck already exists
[ 0.080557] bio: create slab <bio-0> at 0
[ 0.081645] SCSI subsystem initialized
[ 0.082617] usbcore: registered new interface driver usbfs
[ 0.082745] usbcore: registered new interface driver hub
[ 0.082922] usbcore: registered new device driver usb
[ 0.083843] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084751] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085416] Bluetooth: Core ver 2.16
[ 0.085514] NET: Registered protocol family 31
[ 0.085533] Bluetooth: HCI device and connection manager initialized
[ 0.085556] Bluetooth: HCI socket layer initialized
[ 0.085575] Bluetooth: L2CAP socket layer initialized
[ 0.085612] Bluetooth: SCO socket layer initialized
[ 0.085820] Switching to clocksource gp timer
[ 0.088712] Switched to NOHz mode on CPU #0
[ 0.095204] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095401] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096181] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096485] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.097145] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097517] NET: Registered protocol family 2
[ 0.097772] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098209] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098437] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098575] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098595] TCP reno registered
[ 0.098614] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098650] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098942] NET: Registered protocol family 1
[ 0.099307] RPC: Registered named UNIX socket transport module.
[ 0.099327] RPC: Registered udp transport module.
[ 0.099342] RPC: Registered tcp transport module.
[ 0.099357] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099648] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099732] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.256223] Gpio value is :117
[ 0.256803] ashmem: initialized
[ 0.257882] msgmni has been set to 494
[ 0.258953] io scheduler noop registered
[ 0.258971] io scheduler deadline registered
[ 0.259061] io scheduler cfq registered (default)
[ 0.259594] Could not set LED4 to fully on
[ 0.260729] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.261967] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.771076] console [ttyO0] enabled
[ 0.775066] WL1271: BT Enable
[ 0.778445] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.786276] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.793947] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.801688] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.809388] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.824234] brd: module loaded
[ 0.831469] loop: module loaded
[ 0.834998] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.895872] No daughter card found
[ 0.899507] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.965874] AM335X: EVM Config read fail: -110
[ 0.971665] omap2-nand driver initializing
[ 0.976147] OneNAND driver initializing
[ 0.980679] Initializing USB Mass Storage driver...
[ 0.985978] usbcore: registered new interface driver usb-storage
[ 0.992296] USB Mass Storage support registered.
[ 0.999408] gadget: Mass Storage Function, version: 2009/09/11
[ 1.005644] gadget: Number of LUNs=1
[ 1.009556] lun0: LUN: removable file: (no medium)
[ 1.014986] gadget: android_usb ready
[ 1.018998] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.024601] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.033178] hub 1-0:1.0: USB hub found
[ 1.037183] hub 1-0:1.0: 1 port detected
[ 1.041901] mousedev: PS/2 mouse device common for all mice
[ 1.049308] using rtc device, omap_rtc, for alarms
[ 1.054222] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.061253] i2c /dev entries driver
[ 1.065814] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.072474] device-mapper: uevent: version 1.0.3
[ 1.077624] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.086534] Bluetooth: HCI UART driver ver 2.2
[ 1.091212] Bluetooth: HCI H4 protocol initialized
[ 1.096266] Bluetooth: HCILL protocol initialized
[ 1.101786] usbcore: registered new interface driver usbhid
[ 1.107683] usbhid: USB HID core driver
[ 1.112292] logger: created 256K log 'log_main'
[ 1.117231] logger: created 256K log 'log_events'
[ 1.122316] logger: created 256K log 'log_radio'
[ 1.127324] logger: created 256K log 'log_system'
[ 1.133529] ALSA device list:
[ 1.136712] No soundcards found.
[ 1.140432] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[ 1.147298] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.153040] TCP cubic registered
[ 1.156482] NET: Registered protocol family 17
[ 1.161489] Bluetooth: RFCOMM TTY layer initialized
[ 1.166677] Bluetooth: RFCOMM socket layer initialized
[ 1.172082] Bluetooth: RFCOMM ver 1.11
[ 1.176045] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.181633] Bluetooth: BNEP filters: protocol multicast
[ 1.187147] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.193575] Registering the dns_resolver key type
[ 1.198635] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.206731] ThumbEE CPU extension supported.
[ 1.212208] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.218384] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.224443] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.230412] omap2_set_init_voltage: unable to set vdd_core
[ 1.241446] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.250895] Waiting for root device ...
sd卡里有个uEnv.txt文档,内容是bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot
请问是在这里改么,改成bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M rootfs=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=off
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot
U-Boot SPL 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
Texas Instruments Revision detection unimplemented
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
read_eeprom() failure
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
211 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2631224 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631160 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (a0131746@sditapps03) (gcc version 4.4.3 (GCC) ) #1 Mon Nov 28 21:00:21 IST 2011
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M rootfts=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253292k/253292k available, 8852k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04b5000 (4788 kB)
[ 0.000000] .init : 0xc04b5000 - 0xc04e9000 ( 208 kB)
[ 0.000000] .data : 0xc04ea000 - 0xc0532fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0532fdc - 0xc0669f48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000266] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058633] pid_max: default: 32768 minimum: 301
[ 0.058804] Security Framework initialized
[ 0.058891] Mount-cache hash table entries: 512
[ 0.059376] CPU: Testing write buffer coherency: ok
[ 0.064525] print_constraints: dummy:
[ 0.064778] NET: Registered protocol family 16
[ 0.065012] GPMC revision 6.0
[ 0.066090] OMAP GPIO hardware version 0.1
[ 0.066939] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067060] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069821] omap_i2c.1: alias fck already exists
[ 0.070718] omap2_mcspi.1: alias fck already exists
[ 0.070850] omap2_mcspi.2: alias fck already exists
[ 0.080557] bio: create slab <bio-0> at 0
[ 0.081645] SCSI subsystem initialized
[ 0.082617] usbcore: registered new interface driver usbfs
[ 0.082745] usbcore: registered new interface driver hub
[ 0.082922] usbcore: registered new device driver usb
[ 0.083843] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084751] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085416] Bluetooth: Core ver 2.16
[ 0.085514] NET: Registered protocol family 31
[ 0.085533] Bluetooth: HCI device and connection manager initialized
[ 0.085556] Bluetooth: HCI socket layer initialized
[ 0.085575] Bluetooth: L2CAP socket layer initialized
[ 0.085612] Bluetooth: SCO socket layer initialized
[ 0.085820] Switching to clocksource gp timer
[ 0.088712] Switched to NOHz mode on CPU #0
[ 0.095204] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095401] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096181] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096485] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.097145] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097517] NET: Registered protocol family 2
[ 0.097772] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098209] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098437] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098575] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098595] TCP reno registered
[ 0.098614] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098650] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098942] NET: Registered protocol family 1
[ 0.099307] RPC: Registered named UNIX socket transport module.
[ 0.099327] RPC: Registered udp transport module.
[ 0.099342] RPC: Registered tcp transport module.
[ 0.099357] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099648] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099732] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.256223] Gpio value is :117
[ 0.256803] ashmem: initialized
[ 0.257882] msgmni has been set to 494
[ 0.258953] io scheduler noop registered
[ 0.258971] io scheduler deadline registered
[ 0.259061] io scheduler cfq registered (default)
[ 0.259594] Could not set LED4 to fully on
[ 0.260729] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.261967] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.771076] console [ttyO0] enabled
[ 0.775066] WL1271: BT Enable
[ 0.778445] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.786276] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.793947] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.801688] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.809388] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.824234] brd: module loaded
[ 0.831469] loop: module loaded
[ 0.834998] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.895872] No daughter card found
[ 0.899507] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.965874] AM335X: EVM Config read fail: -110
[ 0.971665] omap2-nand driver initializing
[ 0.976147] OneNAND driver initializing
[ 0.980679] Initializing USB Mass Storage driver...
[ 0.985978] usbcore: registered new interface driver usb-storage
[ 0.992296] USB Mass Storage support registered.
[ 0.999408] gadget: Mass Storage Function, version: 2009/09/11
[ 1.005644] gadget: Number of LUNs=1
[ 1.009556] lun0: LUN: removable file: (no medium)
[ 1.014986] gadget: android_usb ready
[ 1.018998] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.024601] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.033178] hub 1-0:1.0: USB hub found
[ 1.037183] hub 1-0:1.0: 1 port detected
[ 1.041901] mousedev: PS/2 mouse device common for all mice
[ 1.049308] using rtc device, omap_rtc, for alarms
[ 1.054222] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.061253] i2c /dev entries driver
[ 1.065814] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.072474] device-mapper: uevent: version 1.0.3
[ 1.077624] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.086534] Bluetooth: HCI UART driver ver 2.2
[ 1.091212] Bluetooth: HCI H4 protocol initialized
[ 1.096266] Bluetooth: HCILL protocol initialized
[ 1.101786] usbcore: registered new interface driver usbhid
[ 1.107683] usbhid: USB HID core driver
[ 1.112292] logger: created 256K log 'log_main'
[ 1.117231] logger: created 256K log 'log_events'
[ 1.122316] logger: created 256K log 'log_radio'
[ 1.127324] logger: created 256K log 'log_system'
[ 1.133529] ALSA device list:
[ 1.136712] No soundcards found.
[ 1.140432] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[ 1.147298] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.153040] TCP cubic registered
[ 1.156482] NET: Registered protocol family 17
[ 1.161489] Bluetooth: RFCOMM TTY layer initialized
[ 1.166677] Bluetooth: RFCOMM socket layer initialized
[ 1.172082] Bluetooth: RFCOMM ver 1.11
[ 1.176045] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.181633] Bluetooth: BNEP filters: protocol multicast
[ 1.187147] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.193575] Registering the dns_resolver key type
[ 1.198635] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.206731] ThumbEE CPU extension supported.
[ 1.212208] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.218384] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.224443] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.230412] omap2_set_init_voltage: unable to set vdd_core
[ 1.241446] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.250895] Waiting for root device...
哎,你ip=off。
我这里有个以前AM1808的env,你看着改吧。
nfs
U-Boot > pri
baudrate=115200
ethaddr=00:00:68:23:0b:c1
bootdelay=3
bootcmd=nand read.e 0xc0700000 0x200000 0x230000;bootm 0xc0700000
bootfile=uImage
dnsip=192.168.10.230
dnsip2=218.2.135.1
bootargs=root=/dev/nfs nfsroot=192.168.10.2:/usr/local/ti-sdk-am180x-evm/targetNFS ip=192.168.10.167:192.168.10.2:192.168.10.230:255.255.255.0::eth0:off console=ttyS2,115200
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2009.11 (Nov 09 2011 - 07:48:52)
filesize=DAE090
fileaddr=C0008000
gatewayip=192.168.10.230
netmask=255.255.255.0
ipaddr=192.168.10.167
serverip=192.168.10.2
Environment size: 560/131068 bytes
我现在改成:
bootargs=console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/nfs rw rootfstype=ext3 rootwait init=/init ip=dhcp
bootcmd=mmc rescan ; fatload mmc 0 82000000 uImage ; bootm 82000000
uenvcmd=boot
您好,我是新手,有很多东西都不知道,有的您的提议我也不知道去哪里改,请原谅。我又看了些资料,是不是没有网口的话不能用nfs那种,还有有的资料中提及分区,我的卡是三块
查了许多资料照着改了还解决不了才来提问希望得到大家帮助的呢,uEnv.tet是开发板里的卡里带着的资料,看了许多说是改这个,可是照的哪个改还是出那个错,肿么办
这几天我又查了点资料,在code.google.com/.../LinuxBootDiskFormat 上看到一句话:Bootloader settings
If you use bootloader U-Boot, use following settings to mount root file system at second partition from kernel:
console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1
我觉得我一直停留在这里,是不是从内核的第二部分没有挂载上根文件系统,然后我processors.wiki.ti.com/.../How_to_Make_3_Partition_SD_Card 在这个网站了给SD卡分了俩区,一个fat32,一个ext3,把filesystem解压到ext3,把MLO、u-boot.img、uImage、uEnv.txt放到fat32,结果插上SD卡就只输出cccc了,请问这是怎么回事啊,这几天都不知道去哪里找问题了。
我又仔细看了processors.wiki.ti.com/.../TI-Android-GingerBread-2.3.4-DevKit-2.1.1_DeveloperGuide,原来有一块To generate SD/MMC card to boot Android,按着做就可以给SD卡分区并且把需要的复制进去,我也做了,分了3个区,并且每个里面都有文件,可是执行还是卡在那里,请问/mmcblk0p2...是什么意思啊,。。。
因为你的子板去掉了,读不到ID
ret = mem_acc->read(mem_acc, (char *)&config, 0, sizeof(config));
if (ret != sizeof(config)) {
pr_err("AM335X EVM config read fail, read %d bytes\n", ret);
pr_err("This likely means that there either is no/or a failed EEPROM\n");
goto out;
}
if (config.header != AM335X_EEPROM_HEADER) {
pr_err("AM335X: wrong header 0x%x, expected 0x%x\n",
config.header, AM335X_EEPROM_HEADER);
goto out;
}
if (strncmp("A335", config.name, 4)) {
pr_err("Board %s\ndoesn't look like an AM335x board\n",
config.name);
goto out;
}
经过高人的指点和这几天的摸索,对内核进行了修改,卡着的那步终于过去了,不过还是有错,请大家指导一下
CCCCCCCC
U-Boot SPL 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
Texas Instruments Revision detection unimplemented
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
read_eeprom() failure
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
203 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2571312 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2571248 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (liujiangman@ubuntu) (gcc version 4.4.3 (GCC) ) #2 Sun Sep 16 15:08:21 CST 2012
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253396k/253396k available, 8748k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc049b000 (4684 kB)
[ 0.000000] .init : 0xc049b000 - 0xc04cf000 ( 208 kB)
[ 0.000000] .data : 0xc04d0000 - 0xc0518fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0518fdc - 0xc064ff48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000265] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058635] pid_max: default: 32768 minimum: 301
[ 0.058806] Security Framework initialized
[ 0.058895] Mount-cache hash table entries: 512
[ 0.059380] CPU: Testing write buffer coherency: ok
[ 0.064516] print_constraints: dummy:
[ 0.064768] NET: Registered protocol family 16
[ 0.065008] GPMC revision 6.0
[ 0.066094] OMAP GPIO hardware version 0.1
[ 0.066946] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067061] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069826] omap_i2c.1: alias fck already exists
[ 0.070728] omap2_mcspi.1: alias fck already exists
[ 0.070859] omap2_mcspi.2: alias fck already exists
[ 0.080506] bio: create slab <bio-0> at 0
[ 0.081610] SCSI subsystem initialized
[ 0.082582] usbcore: registered new interface driver usbfs
[ 0.082706] usbcore: registered new interface driver hub
[ 0.082875] usbcore: registered new device driver usb
[ 0.083802] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084712] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085370] Bluetooth: Core ver 2.16
[ 0.085464] NET: Registered protocol family 31
[ 0.085482] Bluetooth: HCI device and connection manager initialized
[ 0.085507] Bluetooth: HCI socket layer initialized
[ 0.085524] Bluetooth: L2CAP socket layer initialized
[ 0.085562] Bluetooth: SCO socket layer initialized
[ 0.085773] Switching to clocksource gp timer
[ 0.088715] Switched to NOHz mode on CPU #0
[ 0.095311] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095512] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096295] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096592] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.097252] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097630] NET: Registered protocol family 2
[ 0.097888] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098319] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098546] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098684] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098703] TCP reno registered
[ 0.098722] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098758] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.099046] NET: Registered protocol family 1
[ 0.099420] RPC: Registered named UNIX socket transport module.
[ 0.099442] RPC: Registered udp transport module.
[ 0.099456] RPC: Registered tcp transport module.
[ 0.099471] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099759] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099842] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.233430] Gpio value is :117
[ 0.234011] ashmem: initialized
[ 0.235082] msgmni has been set to 494
[ 0.236290] io scheduler noop registered
[ 0.236312] io scheduler deadline registered
[ 0.236405] io scheduler cfq registered (default)
[ 0.236932] Could not set LED4 to fully on
[ 0.238062] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.239319] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.747576] console [ttyO0] enabled
[ 0.751552] WL1271: BT Enable
[ 0.754871] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.762705] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.770443] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.778175] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.785876] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.800808] brd: module loaded
[ 0.808101] loop: module loaded
[ 0.811618] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.875825] No daughter card found
[ 0.879460] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.886805] AM335x:EVM Config Without Read E2PROM
[ 1.005835] Board name: A335ABCD
[ 1.009416] Board version: 00AA
[ 1.012718] SKU: SKU#01
[ 1.015455] The board is general purpose EVM in profile 0
[ 1.021152] Found invalid GP EVM revision, falling back to Rev1.1A
[ 1.027988] omap_hsmmc.0: alias fck already exists
[ 1.033619] omap_hsmmc.2: alias fck already exists
[ 1.039026] Configure Bluetooth Enable pin...
[ 1.044742] omap2-nand driver initializing
[ 1.049269] OneNAND driver initializing
[ 1.053833] Initializing USB Mass Storage driver...
[ 1.059132] usbcore: registered new interface driver usb-storage
[ 1.065451] USB Mass Storage support registered.
[ 1.072718] gadget: Mass Storage Function, version: 2009/09/11
[ 1.079007] gadget: Number of LUNs=1
[ 1.082863] lun0: LUN: removable file: (no medium)
[ 1.088325] gadget: android_usb ready
[ 1.092313] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.097943] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.106496] hub 1-0:1.0: USB hub found
[ 1.110463] hub 1-0:1.0: 1 port detected
[ 1.115192] mousedev: PS/2 mouse device common for all mice
[ 1.122416] using rtc device, omap_rtc, for alarms
[ 1.127381] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.134350] i2c /dev entries driver
[ 1.138991] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.145585] device-mapper: uevent: version 1.0.3
[ 1.150729] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.159641] Bluetooth: HCI UART driver ver 2.2
[ 1.164318] Bluetooth: HCI H4 protocol initialized
[ 1.169376] Bluetooth: HCILL protocol initialized
[ 1.175778] usbcore: registered new interface driver usbhid
[ 1.181702] usbhid: USB HID core driver
[ 1.186538] logger: created 256K log 'log_main'
[ 1.191440] logger: created 256K log 'log_events'
[ 1.196574] logger: created 256K log 'log_radio'
[ 1.201558] logger: created 256K log 'log_system'
[ 1.207890] ALSA device list:
[ 1.211017] No soundcards found.
[ 1.214747] nf_conntrack version 0.5.0 (3959 buckets, 15836 max)
[ 1.221646] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.227418] TCP cubic registered
[ 1.230819] NET: Registered protocol family 17
[ 1.236055] Bluetooth: RFCOMM TTY layer initialized
[ 1.241202] Bluetooth: RFCOMM socket layer initialized
[ 1.246640] Bluetooth: RFCOMM ver 1.11
[ 1.250587] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.256196] Bluetooth: BNEP filters: protocol multicast
[ 1.261695] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.268132] Registering the dns_resolver key type
[ 1.273175] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.281278] ThumbEE CPU extension supported.
[ 1.286786] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.292927] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.299022] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.304974] omap2_set_init_voltage: unable to set vdd_core
[ 1.316079] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.325525] Waiting for root device /dev/mmcblk0p2...
[ 1.369090] mmc0: new high speed SD card at address 1234
[ 1.375310] mmcblk0: mmc0:1234 SA02G 1.85 GiB
[ 1.382454] mmcblk0: p1 p2
[ 4.278698] kjournald starting. Commit interval 5 seconds
[ 4.284561] EXT3-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
[ 4.523686] EXT3-fs (mmcblk0p2): using internal journal
[ 4.529214] EXT3-fs (mmcblk0p2): recovery complete
[ 4.539017] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
[ 4.546533] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 4.553286] Freeing init memory: 208K
INIT: version 2.86 booting
Usage: mount [-r] [-w] [-o options] [-t type] device directory
INIT: Entering runlevel: 5
INIT: Id "S" respawning too fast: disabled for 5 minutes
最后这一句隔几分钟出现一次,请问是哪里的问题
对卡重新进行了分区,文件系统重新烧写,输出信息如下
U-Boot SPL 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
Texas Instruments Revision detection unimplemented
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
read_eeprom() failure
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
203 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2631080 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631016 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (liujiangman@ubuntu) (gcc version 4.4.3 (GCC) ) #1 Sun Sep 16 16:26:08 CST 2012
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253292k/253292k available, 8852k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04b5000 (4788 kB)
[ 0.000000] .init : 0xc04b5000 - 0xc04e9000 ( 208 kB)
[ 0.000000] .data : 0xc04ea000 - 0xc0532fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0532fdc - 0xc0669f48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000263] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058630] pid_max: default: 32768 minimum: 301
[ 0.058800] Security Framework initialized
[ 0.058888] Mount-cache hash table entries: 512
[ 0.059380] CPU: Testing write buffer coherency: ok
[ 0.064491] print_constraints: dummy:
[ 0.064748] NET: Registered protocol family 16
[ 0.064978] GPMC revision 6.0
[ 0.066038] OMAP GPIO hardware version 0.1
[ 0.066887] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067004] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069749] omap_i2c.1: alias fck already exists
[ 0.070648] omap2_mcspi.1: alias fck already exists
[ 0.070782] omap2_mcspi.2: alias fck already exists
[ 0.080377] bio: create slab <bio-0> at 0
[ 0.081471] SCSI subsystem initialized
[ 0.082452] usbcore: registered new interface driver usbfs
[ 0.082582] usbcore: registered new interface driver hub
[ 0.082757] usbcore: registered new device driver usb
[ 0.083666] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084570] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085238] Bluetooth: Core ver 2.16
[ 0.085334] NET: Registered protocol family 31
[ 0.085352] Bluetooth: HCI device and connection manager initialized
[ 0.085376] Bluetooth: HCI socket layer initialized
[ 0.085394] Bluetooth: L2CAP socket layer initialized
[ 0.085431] Bluetooth: SCO socket layer initialized
[ 0.085644] Switching to clocksource gp timer
[ 0.088709] Switched to NOHz mode on CPU #0
[ 0.094995] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095190] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.095973] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096280] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.096932] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097315] NET: Registered protocol family 2
[ 0.097564] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098002] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098230] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098368] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098388] TCP reno registered
[ 0.098407] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098444] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098735] NET: Registered protocol family 1
[ 0.099103] RPC: Registered named UNIX socket transport module.
[ 0.099124] RPC: Registered udp transport module.
[ 0.099139] RPC: Registered tcp transport module.
[ 0.099154] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099448] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099534] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.256042] Gpio value is :117
[ 0.256627] ashmem: initialized
[ 0.257694] msgmni has been set to 494
[ 0.258765] io scheduler noop registered
[ 0.258785] io scheduler deadline registered
[ 0.258874] io scheduler cfq registered (default)
[ 0.259409] Could not set LED4 to fully on
[ 0.260540] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.261780] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.770067] console [ttyO0] enabled
[ 0.774054] WL1271: BT Enable
[ 0.777433] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.785129] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.792952] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.800705] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.808414] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.823264] brd: module loaded
[ 0.830461] loop: module loaded
[ 0.833980] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.895697] No daughter card found
[ 0.899333] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.906680] AM335x:EVM Config Without Read E2PROM
[ 1.025696] Board name: A335ABCD
[ 1.029277] Board version: 00AA
[ 1.032580] SKU: SKU#01
[ 1.035313] The board is general purpose EVM in profile 0
[ 1.041010] Found invalid GP EVM revision, falling back to Rev1.1A
[ 1.047858] omap_hsmmc.0: alias fck already exists
[ 1.053495] omap_hsmmc.2: alias fck already exists
[ 1.058903] Configure Bluetooth Enable pin...
[ 1.064632] omap2-nand driver initializing
[ 1.069134] OneNAND driver initializing
[ 1.073693] Initializing USB Mass Storage driver...
[ 1.078991] usbcore: registered new interface driver usb-storage
[ 1.085310] USB Mass Storage support registered.
[ 1.092567] gadget: Mass Storage Function, version: 2009/09/11
[ 1.098857] gadget: Number of LUNs=1
[ 1.102713] lun0: LUN: removable file: (no medium)
[ 1.108166] gadget: android_usb ready
[ 1.112152] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.117784] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.126330] hub 1-0:1.0: USB hub found
[ 1.130297] hub 1-0:1.0: 1 port detected
[ 1.135014] mousedev: PS/2 mouse device common for all mice
[ 1.142260] using rtc device, omap_rtc, for alarms
[ 1.147225] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.154193] i2c /dev entries driver
[ 1.158832] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.165429] device-mapper: uevent: version 1.0.3
[ 1.170568] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.179482] Bluetooth: HCI UART driver ver 2.2
[ 1.184158] Bluetooth: HCI H4 protocol initialized
[ 1.189214] Bluetooth: HCILL protocol initialized
[ 1.195636] usbcore: registered new interface driver usbhid
[ 1.201556] usbhid: USB HID core driver
[ 1.206396] logger: created 256K log 'log_main'
[ 1.211301] logger: created 256K log 'log_events'
[ 1.216429] logger: created 256K log 'log_radio'
[ 1.221414] logger: created 256K log 'log_system'
[ 1.227743] ALSA device list:
[ 1.230870] No soundcards found.
[ 1.234606] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[ 1.241505] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.247287] TCP cubic registered
[ 1.250691] NET: Registered protocol family 17
[ 1.255930] Bluetooth: RFCOMM TTY layer initialized
[ 1.261080] Bluetooth: RFCOMM socket layer initialized
[ 1.266514] Bluetooth: RFCOMM ver 1.11
[ 1.270461] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.276070] Bluetooth: BNEP filters: protocol multicast
[ 1.281568] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.288015] Registering the dns_resolver key type
[ 1.293046] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.301150] ThumbEE CPU extension supported.
[ 1.306655] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.312795] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.318887] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.324840] omap2_set_init_voltage: unable to set vdd_core
[ 1.336006] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.345459] Waiting for root device /dev/mmcblk0p2...
[ 1.388961] mmc0: new high speed SD card at address 1234
[ 1.395193] mmcblk0: mmc0:1234 SA02G 1.85 GiB
[ 1.402354] mmcblk0: p1 p2
[ 22.204917] kjournald starting. Commit interval 5 seconds
[ 22.451991] EXT3-fs (mmcblk0p2): using internal journal
[ 22.457523] EXT3-fs (mmcblk0p2): recovery complete
[ 22.466985] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
[ 22.474478] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 22.481258] Freeing init memory: 208K
[ 22.485288] Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 22.498406] Backtrace:
[ 22.501025] [<c0016f24>] (dump_backtrace+0x0/0x110) from [<c038322c>] (dump_stack+0x18/0x1c)
[ 22.509920] r7:00000013 r6:c003bbe8 r5:c0533ed0 r4:c0533ed0
[ 22.515924] [<c0383214>] (dump_stack+0x0/0x1c) from [<c0383294>] (panic+0x64/0x18c)
[ 22.523991] [<c0383230>] (panic+0x0/0x18c) from [<c0008680>] (init_post+0xa8/0xcc)
[ 22.531967] r3:fffffffe r2:0000000c r1:0000f96f r0:c04420dd
[ 22.537983] [<c00085d8>] (init_post+0x0/0xcc) from [<c04b52fc>] (kernel_init+0xf4/0x124)
[ 22.546513] r5:c04e8c14 r4:c0533000
[ 22.550309] [<c04b5208>] (kernel_init+0x0/0x124) from [<c003bbe8>] (do_exit+0x0/0x604)
U-Boot SPL 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
Texas Instruments Revision detection unimplemented
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
read_eeprom() failure
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
214 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2571312 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2571248 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (liujiangman@ubuntu) (gcc version 4.4.3 (GCC) ) #2 Sun Sep 16 15:08:21 CST 2012
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait init=/init ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253396k/253396k available, 8748k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc049b000 (4684 kB)
[ 0.000000] .init : 0xc049b000 - 0xc04cf000 ( 208 kB)
[ 0.000000] .data : 0xc04d0000 - 0xc0518fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0518fdc - 0xc064ff48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000265] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058631] pid_max: default: 32768 minimum: 301
[ 0.058796] Security Framework initialized
[ 0.058886] Mount-cache hash table entries: 512
[ 0.059368] CPU: Testing write buffer coherency: ok
[ 0.064522] print_constraints: dummy:
[ 0.064773] NET: Registered protocol family 16
[ 0.065005] GPMC revision 6.0
[ 0.066094] OMAP GPIO hardware version 0.1
[ 0.066938] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067053] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069810] omap_i2c.1: alias fck already exists
[ 0.070712] omap2_mcspi.1: alias fck already exists
[ 0.070845] omap2_mcspi.2: alias fck already exists
[ 0.080481] bio: create slab <bio-0> at 0
[ 0.081573] SCSI subsystem initialized
[ 0.082545] usbcore: registered new interface driver usbfs
[ 0.082671] usbcore: registered new interface driver hub
[ 0.082842] usbcore: registered new device driver usb
[ 0.083770] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084679] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085337] Bluetooth: Core ver 2.16
[ 0.085431] NET: Registered protocol family 31
[ 0.085449] Bluetooth: HCI device and connection manager initialized
[ 0.085474] Bluetooth: HCI socket layer initialized
[ 0.085491] Bluetooth: L2CAP socket layer initialized
[ 0.085529] Bluetooth: SCO socket layer initialized
[ 0.085740] Switching to clocksource gp timer
[ 0.088712] Switched to NOHz mode on CPU #0
[ 0.095275] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095475] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096257] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096562] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.097223] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097601] NET: Registered protocol family 2
[ 0.097853] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098287] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098516] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098653] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098673] TCP reno registered
[ 0.098693] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098728] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.099019] NET: Registered protocol family 1
[ 0.099394] RPC: Registered named UNIX socket transport module.
[ 0.099415] RPC: Registered udp transport module.
[ 0.099430] RPC: Registered tcp transport module.
[ 0.099445] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099733] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099818] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.233285] Gpio value is :117
[ 0.233870] ashmem: initialized
[ 0.234942] msgmni has been set to 494
[ 0.236161] io scheduler noop registered
[ 0.236183] io scheduler deadline registered
[ 0.236273] io scheduler cfq registered (default)
[ 0.236799] Could not set LED4 to fully on
[ 0.237931] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.239185] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.748460] console [ttyO0] enabled
[ 0.752430] WL1271: BT Enable
[ 0.755751] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.763588] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.771327] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.779059] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.786754] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.801666] brd: module loaded
[ 0.808910] loop: module loaded
[ 0.812430] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.875793] No daughter card found
[ 0.879429] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.886774] AM335x:EVM Config Without Read E2PROM
[ 1.005799] Board name: A335ABCD
[ 1.009379] Board version: 00AA
[ 1.012681] SKU: SKU#01
[ 1.015417] The board is general purpose EVM in profile 0
[ 1.021116] Found invalid GP EVM revision, falling back to Rev1.1A
[ 1.027954] omap_hsmmc.0: alias fck already exists
[ 1.033586] omap_hsmmc.2: alias fck already exists
[ 1.038983] Configure Bluetooth Enable pin...
[ 1.044709] omap2-nand driver initializing
[ 1.049240] OneNAND driver initializing
[ 1.053789] Initializing USB Mass Storage driver...
[ 1.059089] usbcore: registered new interface driver usb-storage
[ 1.065408] USB Mass Storage support registered.
[ 1.072656] gadget: Mass Storage Function, version: 2009/09/11
[ 1.078944] gadget: Number of LUNs=1
[ 1.082800] lun0: LUN: removable file: (no medium)
[ 1.088262] gadget: android_usb ready
[ 1.092250] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.097883] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.106444] hub 1-0:1.0: USB hub found
[ 1.110411] hub 1-0:1.0: 1 port detected
[ 1.115135] mousedev: PS/2 mouse device common for all mice
[ 1.122361] using rtc device, omap_rtc, for alarms
[ 1.127326] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.134299] i2c /dev entries driver
[ 1.138957] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.145554] device-mapper: uevent: version 1.0.3
[ 1.150694] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.159606] Bluetooth: HCI UART driver ver 2.2
[ 1.164283] Bluetooth: HCI H4 protocol initialized
[ 1.169340] Bluetooth: HCILL protocol initialized
[ 1.175744] usbcore: registered new interface driver usbhid
[ 1.181664] usbhid: USB HID core driver
[ 1.186496] logger: created 256K log 'log_main'
[ 1.191400] logger: created 256K log 'log_events'
[ 1.196525] logger: created 256K log 'log_radio'
[ 1.201511] logger: created 256K log 'log_system'
[ 1.207835] ALSA device list:
[ 1.210960] No soundcards found.
[ 1.214688] nf_conntrack version 0.5.0 (3959 buckets, 15836 max)
[ 1.221594] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.227371] TCP cubic registered
[ 1.230773] NET: Registered protocol family 17
[ 1.236012] Bluetooth: RFCOMM TTY layer initialized
[ 1.241163] Bluetooth: RFCOMM socket layer initialized
[ 1.246599] Bluetooth: RFCOMM ver 1.11
[ 1.250546] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.256157] Bluetooth: BNEP filters: protocol multicast
[ 1.261657] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.268095] Registering the dns_resolver key type
[ 1.273133] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.281234] ThumbEE CPU extension supported.
[ 1.286742] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.292887] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.298978] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.304931] omap2_set_init_voltage: unable to set vdd_core
[ 1.316039] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.325484] Waiting for root device /dev/mmcblk0p2...
[ 1.369050] mmc0: new high speed SD card at address 1234
[ 1.375264] mmcblk0: mmc0:1234 SA02G 1.85 GiB
[ 1.382412] mmcblk0: p1 p2 p3
[ 1.682443] kjournald starting. Commit interval 5 seconds
[ 1.693039] EXT3-fs (mmcblk0p2): using internal journal
[ 1.698570] EXT3-fs (mmcblk0p2): recovery complete
[ 1.707394] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
[ 1.714879] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 1.721657] Freeing init memory: 208K
[ 1.880146] WL1271: BT Disable
[ 2.783919] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
# [ 5.798357] warning: `dhcpcd' uses 32-bit capabilities (legacy support in use)
[ 6.102732] adb_open
[ 8.115439] g_zero: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 8.129336] android_usb: already disabled
[ 8.134858] adb_bind_config
[ 8.700183] compat: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 9.196862] cfg80211: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 9.236848] pvrsrvkm: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 9.829184] omaplfb: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 9.908563] mac80211: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 10.725994] wl12xx: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 11.008736] compat: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 11.268586] cfg80211: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 11.772127] mac80211: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 18.204605] wl12xx: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 19.741510] compat: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 20.287487] cfg80211: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 20.534195] mac80211: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 20.802407] pvrsrvkm: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 20.821961] wl12xx: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 21.072111] omaplfb: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 29.378541] compat: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
[ 30.497420] cfg80211: version magic '3.1.0-g62911f8-dirty mod_unload modversions ARMv7 ' should be '3.1.0-g62911f8-dirty ARMv7 '
后面这几句重复出现,一直在出,请问这是怎么回事
我开始使用的tisdk-rootfs-am335x-evm.tar.gz做的文件系统,遇到跟楼主一样的问题,后来用base-rootfs-am335x-evm.tar.gz做了一个就可以正常的启动了。
TI E2E 上有个回答 可能有帮助
It looks like your SD Card is not created properly. How did you create the card? The TI Wiki has some instructions here:
processors.wiki.ti.com/.../AM335x_U-Boot_User%27s_Guide
You might want to try a 1GB or 4GB card. The 2GB size can cause problems if your card reader is one of the older models. That size needs a MBR.
我的是修改了内核里面的配置才可以的,现在又卡到了另一处,估计还得改配置
U-Boot 2011.09-00001-g95a7849 (Feb 14 2012 - 10:53:14)
I2C: ready
DRAM: 256 MiB
WARNING: Caches not enabled
Could not probe the EEPROM; something fundamentally wrong on the I2C bus.
NAND: HW ECC Hamming Code selected
256 MiB
MMC: OMAP SD/MMC: 0
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
227 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage
2631088 bytes read
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-3.1.0-g62911f8-dirty
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2631024 Bytes = 2.5 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.1.0-g62911f8-dirty (liujiangman@ubuntu) (gcc version 4.4.3 (GCC) ) #1 Tue Sep 18 09:40:45 CST 2012
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait rootdelay=1 init=/init ip=off
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253292k/253292k available, 8852k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffa00000 - 0xffe00000 ( 4 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04b5000 (4788 kB)
[ 0.000000] .init : 0xc04b5000 - 0xc04e9000 ( 208 kB)
[ 0.000000] .data : 0xc04ea000 - 0xc0532fa0 ( 292 kB)
[ 0.000000] .bss : 0xc0532fdc - 0xc0669f48 (1244 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000263] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)
[ 0.058633] pid_max: default: 32768 minimum: 301
[ 0.058801] Security Framework initialized
[ 0.058890] Mount-cache hash table entries: 512
[ 0.059376] CPU: Testing write buffer coherency: ok
[ 0.064476] print_constraints: dummy:
[ 0.064733] NET: Registered protocol family 16
[ 0.064966] GPMC revision 6.0
[ 0.066051] OMAP GPIO hardware version 0.1
[ 0.066899] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.067019] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.069764] omap_i2c.1: alias fck already exists
[ 0.070664] omap2_mcspi.1: alias fck already exists
[ 0.070795] omap2_mcspi.2: alias fck already exists
[ 0.080417] bio: create slab <bio-0> at 0
[ 0.081513] SCSI subsystem initialized
[ 0.082479] usbcore: registered new interface driver usbfs
[ 0.082608] usbcore: registered new interface driver hub
[ 0.082783] usbcore: registered new device driver usb
[ 0.083694] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
[ 0.084607] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.085274] Bluetooth: Core ver 2.16
[ 0.085377] NET: Registered protocol family 31
[ 0.085395] Bluetooth: HCI device and connection manager initialized
[ 0.085419] Bluetooth: HCI socket layer initialized
[ 0.085437] Bluetooth: L2CAP socket layer initialized
[ 0.085476] Bluetooth: SCO socket layer initialized
[ 0.085685] Switching to clocksource gp timer
[ 0.088707] Switched to NOHz mode on CPU #0
[ 0.095071] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.095265] musb-hdrc musb-hdrc.0: dma type: pio
[ 0.096040] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18
[ 0.096341] musb-hdrc musb-hdrc.1: dma type: pio
[ 0.096993] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19
[ 0.097374] NET: Registered protocol family 2
[ 0.097625] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.098056] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.098282] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.098421] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.098441] TCP reno registered
[ 0.098460] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098496] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.098786] NET: Registered protocol family 1
[ 0.099154] RPC: Registered named UNIX socket transport module.
[ 0.099175] RPC: Registered udp transport module.
[ 0.099190] RPC: Registered tcp transport module.
[ 0.099206] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.099493] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.099579] omap_init_opp_table: no hwmod or odev for iva, [8] cannot add OPPs.
[ 0.256033] Gpio value is :117
[ 0.256627] ashmem: initialized
[ 0.257688] msgmni has been set to 494
[ 0.258797] io scheduler noop registered
[ 0.258817] io scheduler deadline registered
[ 0.258907] io scheduler cfq registered (default)
[ 0.259435] Could not set LED4 to fully on
[ 0.260559] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.261797] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.772176] console [ttyO0] enabled
[ 0.776191] WL1271: BT Enable
[ 0.779515] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.787364] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.795039] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.802793] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.810513] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.825349] brd: module loaded
[ 0.832558] loop: module loaded
[ 0.836161] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.895736] No daughter card found
[ 0.899369] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.906714] AM335x:EVM Config Without Read E2PROM
[ 1.025738] Board name: A335ABCD
[ 1.029317] Board version: 00AA
[ 1.032619] SKU: SKU#01
[ 1.035356] The board is general purpose EVM in profile 0
[ 1.041053] Found invalid GP EVM revision, falling back to Rev1.1A
[ 1.047897] omap_hsmmc.0: alias fck already exists
[ 1.053539] omap_hsmmc.2: alias fck already exists
[ 1.058948] Configure Bluetooth Enable pin...
[ 1.064667] omap2-nand driver initializing
[ 1.069171] OneNAND driver initializing
[ 1.073724] Initializing USB Mass Storage driver...
[ 1.079021] usbcore: registered new interface driver usb-storage
[ 1.085339] USB Mass Storage support registered.
[ 1.092594] gadget: Mass Storage Function, version: 2009/09/11
[ 1.098881] gadget: Number of LUNs=1
[ 1.102737] lun0: LUN: removable file: (no medium)
[ 1.108202] gadget: android_usb ready
[ 1.112191] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 1.117822] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 1.126373] hub 1-0:1.0: USB hub found
[ 1.130339] hub 1-0:1.0: 1 port detected
[ 1.135053] mousedev: PS/2 mouse device common for all mice
[ 1.142274] using rtc device, omap_rtc, for alarms
[ 1.147244] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[ 1.154147] omap_rtc: already running
[ 1.158094] i2c /dev entries driver
[ 1.162729] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.169366] device-mapper: uevent: version 1.0.3
[ 1.174450] device-mapper: ioctl: 4.21.0-ioctl (2011-07-06) initialised: dm-devel@redhat.com
[ 1.183374] Bluetooth: HCI UART driver ver 2.2
[ 1.188069] Bluetooth: HCI H4 protocol initialized
[ 1.193108] Bluetooth: HCILL protocol initialized
[ 1.199547] usbcore: registered new interface driver usbhid
[ 1.205415] usbhid: USB HID core driver
[ 1.210273] logger: created 256K log 'log_main'
[ 1.215176] logger: created 256K log 'log_events'
[ 1.220306] logger: created 256K log 'log_radio'
[ 1.225290] logger: created 256K log 'log_system'
[ 1.231612] ALSA device list:
[ 1.234736] No soundcards found.
[ 1.238519] nf_conntrack version 0.5.0 (3957 buckets, 15828 max)
[ 1.245358] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.251143] TCP cubic registered
[ 1.254547] NET: Registered protocol family 17
[ 1.259807] Bluetooth: RFCOMM TTY layer initialized
[ 1.264958] Bluetooth: RFCOMM socket layer initialized
[ 1.270400] Bluetooth: RFCOMM ver 1.11
[ 1.274347] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.279956] Bluetooth: BNEP filters: protocol multicast
[ 1.285454] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.291896] Registering the dns_resolver key type
[ 1.296966] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.305041] ThumbEE CPU extension supported.
[ 1.310556] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 1.316731] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 1.322789] omap2_set_init_voltage: unable to get clk l3_ick
[ 1.328756] omap2_set_init_voltage: unable to set vdd_core
[ 1.339873] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:06:18 UTC (946685178)
[ 1.349147] Waiting 1sec before mounting root device...
[ 1.389000] mmc0: new high speed SD card at address 1234
[ 1.395216] mmcblk0: mmc0:1234 SA02G 1.85 GiB
[ 1.402390] mmcblk0: p1 p2 p3
[ 5.479382] kjournald starting. Commit interval 5 seconds
[ 5.727193] EXT3-fs (mmcblk0p2): using internal journal
[ 5.732696] EXT3-fs (mmcblk0p2): recovery complete
[ 5.741537] EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
[ 5.749054] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 5.755830] Freeing init memory: 208K
[ 6.151153] WL1271: BT Disable
[ 6.547639] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
# [ 10.534472] warning: `dhcpcd' uses 32-bit capabilities (legacy support in use)
[ 10.546141] adb_open
[ 11.482998] gadget: Gadget Zero, version: Cinco de Mayo 2008
[ 11.489157] gadget: zero ready
[ 11.492496] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 11.498117] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[ 11.506816] hub 2-0:1.0: USB hub found
[ 11.510757] hub 2-0:1.0: 1 port detected
[ 11.517654] android_usb: already disabled
[ 11.522995] adb_bind_config
[ 12.039825] Compat-wireless backport release: compat-wireless-2011-07-27
[ 12.047006] Backport based on wl12xx.git v2.6.39-1152-g0c08ddf
[ 13.340948] cfg80211: Calling CRDA to update world regulatory domain
[ 14.216383] cfg80211: World regulatory domain updated:
[ 14.221864] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 14.230693] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 14.239040] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 14.247386] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 14.255735] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 14.264066] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 14.274403]
[ 21.850254] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 26.028853] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 33.312458] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 39.201803] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 43.669687] request_suspend_state: wakeup (3->0) at 43663947842 (2000-01-01 00:07:00.819479715 UTC)
[ 44.949766] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 50.313479] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 53.857606] request_suspend_state: wakeup (0->0) at 53851864926 (2000-01-01 00:07:11.007397341 UTC)
[ 54.331072] init: untracked pid 215 exited
[ 55.920544] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 60.295655] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 62.928680] request_suspend_state: wakeup (0->0) at 62922939968 (2000-01-01 00:07:20.078473050 UTC)
[ 66.648763] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 70.201490] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 72.809300] request_suspend_state: wakeup (0->0) at 72803559887 (2000-01-01 00:07:29.959091719 UTC)
[ 74.953584] init: untracked pid 296 exited
[ 78.610656] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 83.573503] request_suspend_state: wakeup (0->0) at 83567761346 (2000-01-01 00:07:40.723292636 UTC)
[ 85.206749] init: untracked pid 332 exited
[ 86.027051] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 90.589514] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 95.621215] request_suspend_state: wakeup (0->0) at 95615473681 (2000-01-01 00:07:52.771005429 UTC)
[ 95.718844] init: untracked pid 360 exited
[ 96.947099] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 101.304100] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 106.849297] request_suspend_state: wakeup (0->0) at 106843557182 (2000-01-01 00:08:03.999088722 UTC)
[ 106.922636] init: untracked pid 402 exited
[ 109.699917] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 116.308268] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 118.075549] request_suspend_state: wakeup (0->0) at 118069806725 (2000-01-01 00:08:15.225338557 UTC)
[ 122.141980] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 128.142550] request_suspend_state: wakeup (0->0) at 128136807518 (2000-01-01 00:08:25.292339225 UTC)
[ 129.529415] init: untracked pid 493 exited
[ 129.729520] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 135.612791] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 138.073478] request_suspend_state: wakeup (0->0) at 138067736228 (2000-01-01 00:08:35.223269601 UTC)
[ 139.564742] init: untracked pid 532 exited
[ 142.652653] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 147.236316] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 149.197063] request_suspend_state: wakeup (0->0) at 149191321854 (2000-01-01 00:08:46.346855186 UTC)
[ 149.209699] init: untracked pid 570 exited
[ 152.851621] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
[ 158.442229] request_suspend_state: wakeup (0->0) at 158436486480 (2000-01-01 00:08:55.592018062 UTC)
[ 159.538519] omaplfb: OMAPLFB_Init: OMAPLFBInit failed
我只是修改了board_am335xevm.c,只是这里过去了,别的还有错,你可以参考下我的改的,这个路径是kernel/arch/arm/mach-omap2
/* * Code for AM335X EVM. * * Copyright (C) 2011 Texas Instruments, Inc. - http://www.ti.com/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation version 2. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any * kind, whether express or implied; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/i2c.h> #include <linux/i2c/at24.h> #include <linux/phy.h> #include <linux/gpio.h> #include <linux/spi/spi.h> #include <linux/spi/flash.h> #ifdef CONFIG_KEYBOARD_GPIO #include <linux/gpio_keys.h> #endif #ifdef CONFIG_KEYBOARD_MATRIX #include <linux/input.h> #include <linux/input/matrix_keypad.h> #endif #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/platform_device.h> #include <linux/clk.h> #include <linux/err.h> #include <linux/wl12xx.h> #include <linux/ethtool.h> /* LCD controller is similar to DA850 */ #include <video/da8xx-fb.h> #include <mach/hardware.h> #include <mach/board-am335xevm.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/hardware/asp.h> #include <plat/irqs.h> #include <plat/board.h> #include <plat/common.h> #include <plat/lcdc.h> #include <plat/usb.h> #include <plat/mmc.h> #include "board-flash.h" #include "mux.h" #include "devices.h" #include "hsmmc.h" /* TLK PHY IDs */ #define TLK110_PHY_ID 0x2000A201 #define TLK110_PHY_MASK 0xfffffff0 /* BBB PHY IDs */ #define BBB_PHY_ID 0x7c0f1 #define BBB_PHY_MASK 0xfffffffe /* TLK110 PHY register offsets */ #define TLK110_COARSEGAIN_REG 0x00A3 #define TLK110_LPFHPF_REG 0x00AC #define TLK110_SPAREANALOG_REG 0x00B9 #define TLK110_VRCR_REG 0x00D0 #define TLK110_SETFFE_REG 0x0107 #define TLK110_FTSP_REG 0x0154 #define TLK110_ALFATPIDL_REG 0x002A #define TLK110_PSCOEF21_REG 0x0096 #define TLK110_PSCOEF3_REG 0x0097 #define TLK110_ALFAFACTOR1_REG 0x002C #define TLK110_ALFAFACTOR2_REG 0x0023 #define TLK110_CFGPS_REG 0x0095 #define TLK110_FTSPTXGAIN_REG 0x0150 #define TLK110_SWSCR3_REG 0x000B #define TLK110_SCFALLBACK_REG 0x0040 #define TLK110_PHYRCR_REG 0x001F /* TLK110 register writes values */ #define TLK110_COARSEGAIN_VAL 0x0000 #define TLK110_LPFHPF_VAL 0x8000 #define TLK110_SPANALOG_VAL 0x0000 #define TLK110_VRCR_VAL 0x0008 #define TLK110_SETFFE_VAL 0x0605 #define TLK110_FTSP_VAL 0x0255 #define TLK110_ALFATPIDL_VAL 0x7998 #define TLK110_PSCOEF21_VAL 0x3A20 #define TLK110_PSCOEF3_VAL 0x003F #define TLK110_ALFACTOR1_VAL 0xFF80 #define TLK110_ALFACTOR2_VAL 0x021C #define TLK110_CFGPS_VAL 0x0000 #define TLK110_FTSPTXGAIN_VAL 0x6A88 #define TLK110_SWSCR3_VAL 0x0000 #define TLK110_SCFALLBACK_VAL 0xC11D #define TLK110_PHYRCR_VAL 0x4000 #ifdef CONFIG_TLK110_WORKAROUND #define am335x_tlk110_phy_init()\ do { \ phy_register_fixup_for_uid(TLK110_PHY_ID,\ TLK110_PHY_MASK,\ am335x_tlk110_phy_fixup);\ } while (0); #else #define am335x_tlk110_phy_init() do { } while (0); #endif /* Convert GPIO signal to GPIO pin number */ #define GPIO_TO_PIN(bank, gpio) (32 * (bank) + (gpio)) static const struct display_panel disp_panel = { WVGA, 32, 32, COLOR_ACTIVE, }; static struct lcd_ctrl_config lcd_cfg = { &disp_panel, .ac_bias = 255, .ac_bias_intrpt = 0, .dma_burst_sz = 16, .bpp = 32, .fdd = 0x80, .tft_alt_mode = 0, .stn_565_mode = 0, .mono_8bit_mode = 0, .invert_line_clock = 1, .invert_frm_clock = 1, .sync_edge = 0, .sync_ctrl = 1, .raster_order = 0, }; struct da8xx_lcdc_platform_data TFC_S9700RTWV35TR_01B_pdata = { .manu_name = "ThreeFive", .controller_data = &lcd_cfg, .type = "TFC_S9700RTWV35TR_01B", }; /* TSc controller */ #include <linux/input/ti_tscadc.h> static struct resource tsc_resources[] = { [0] = { .start = AM33XX_TSC_BASE, .end = AM33XX_TSC_BASE + SZ_8K - 1, .flags = IORESOURCE_MEM, }, [1] = { .start = AM33XX_IRQ_ADC_GEN, .end = AM33XX_IRQ_ADC_GEN, .flags = IORESOURCE_IRQ, }, }; static struct tsc_data am335x_touchscreen_data = { .wires = 4, .x_max = 0x0fff, .y_max = 0x0fff, .x_plate_resistance = 200, }; static struct platform_device tsc_device = { .name = "tsc", .id = -1, .dev = { .platform_data = &am335x_touchscreen_data, }, .num_resources = ARRAY_SIZE(tsc_resources), .resource = tsc_resources, }; static u8 am335x_iis_serializer_direction1[] = { INACTIVE_MODE, INACTIVE_MODE, TX_MODE, RX_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, }; static struct snd_platform_data am335x_evm_snd_data1 = { .tx_dma_offset = 0x46400000, /* McASP1 */ .rx_dma_offset = 0x46400000, .op_mode = DAVINCI_MCASP_IIS_MODE, .num_serializer = ARRAY_SIZE(am335x_iis_serializer_direction1), .tdm_slots = 2, .serial_dir = am335x_iis_serializer_direction1, .asp_chan_q = EVENTQ_2, .version = MCASP_VERSION_3, .txnumevt = 1, .rxnumevt = 1, }; static struct omap2_hsmmc_info am335x_mmc[] __initdata = { { .mmc = 1, .caps = MMC_CAP_4_BIT_DATA, .gpio_cd = GPIO_TO_PIN(0, 6), .gpio_wp = GPIO_TO_PIN(3, 18), .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, /* 3V3 */ }, { .mmc = 0, /* will be set at runtime */ }, { .mmc = 0, /* will be set at runtime */ }, {} /* Terminator */ }; #ifdef CONFIG_OMAP_MUX static struct omap_board_mux board_mux[] __initdata = { AM33XX_MUX(I2C0_SDA, OMAP_MUX_MODE0 | AM33XX_SLEWCTRL_SLOW | AM33XX_INPUT_EN | AM33XX_PIN_OUTPUT), AM33XX_MUX(I2C0_SCL, OMAP_MUX_MODE0 | AM33XX_SLEWCTRL_SLOW | AM33XX_INPUT_EN | AM33XX_PIN_OUTPUT), { .reg_offset = OMAP_MUX_TERMINATOR }, }; #else #define board_mux NULL #endif /* module pin mux structure */ struct pinmux_config { const char *string_name; /* signal name format */ int val; /* Options for the mux register value */ }; struct evm_dev_cfg { void (*device_init)(int evm_id, int profile); /* * If the device is required on both baseboard & daughter board (ex i2c), * specify DEV_ON_BASEBOARD */ #define DEV_ON_BASEBOARD 0 #define DEV_ON_DGHTR_BRD 1 u32 device_on; u32 profile; /* Profiles (0-7) in which the module is present */ }; /* AM335X - CPLD Register Offsets */ #define CPLD_DEVICE_HDR 0x00 /* CPLD Header */ #define CPLD_DEVICE_ID 0x04 /* CPLD identification */ #define CPLD_DEVICE_REV 0x0C /* Revision of the CPLD code */ #define CPLD_CFG_REG 0x10 /* Configuration Register */ static struct i2c_client *cpld_client; static u32 am335x_evm_id; static struct omap_board_config_kernel am335x_evm_config[] __initdata = { }; /* * EVM Config held in On-Board eeprom device. * * Header Format * * Name Size Contents * (Bytes) *------------------------------------------------------------- * Header 4 0xAA, 0x55, 0x33, 0xEE * * Board Name 8 Name for board in ASCII. * example "A33515BB" = "AM335X Low Cost EVM board" * * Version 4 Hardware version code for board in * in ASCII. "1.0A" = rev.01.0A * * Serial Number 12 Serial number of the board. This is a 12 * character string which is WWYY4P16nnnn, where * WW = 2 digit week of the year of production * YY = 2 digit year of production * nnnn = incrementing board number * * Configuration option 32 Codes(TBD) to show the configuration * setup on this board. * * Available 32720 Available space for other non-volatile * data. */ struct am335x_evm_eeprom_config { u32 header; u8 name[8]; char version[4]; u8 serial[12]; u8 opt[32]; }; static struct am335x_evm_eeprom_config config; static bool daughter_brd_detected; #define GP_EVM_REV_IS_1_0 0x1 #define GP_EVM_REV_IS_1_1A 0x2 #define GP_EVM_REV_IS_UNKNOWN 0xFF static unsigned int gp_evm_revision = GP_EVM_REV_IS_UNKNOWN; unsigned int gigabit_enable = 1; #define EEPROM_MAC_ADDRESS_OFFSET 60 /* 4+8+4+12+32 */ #define EEPROM_NO_OF_MAC_ADDR 3 static char am335x_mac_addr[EEPROM_NO_OF_MAC_ADDR][ETH_ALEN]; #define AM335X_EEPROM_HEADER 0xEE3355AA /* current profile if exists else PROFILE_0 on error */ static u32 am335x_get_profile_selection(void) { int val = 0; if (!cpld_client) /* error checking is not done in func's calling this routine. so return profile 0 on error */ return 0; val = i2c_smbus_read_word_data(cpld_client, CPLD_CFG_REG); if (val < 0) return 0; /* default to Profile 0 on Error */ else return val & 0x7; } /* Module pin mux for LCDC */ static struct pinmux_config lcdc_pin_mux[] = { {"lcd_data0.lcd_data0", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data1.lcd_data1", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data2.lcd_data2", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data3.lcd_data3", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data4.lcd_data4", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data5.lcd_data5", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data6.lcd_data6", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data7.lcd_data7", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data8.lcd_data8", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data9.lcd_data9", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data10.lcd_data10", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data11.lcd_data11", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data12.lcd_data12", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data13.lcd_data13", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data14.lcd_data14", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"lcd_data15.lcd_data15", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA}, {"gpmc_ad8.lcd_data16", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"gpmc_ad9.lcd_data17", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"gpmc_ad10.lcd_data18", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"gpmc_ad11.lcd_data19", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"gpmc_ad12.lcd_data20", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"gpmc_ad13.lcd_data21", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"gpmc_ad14.lcd_data22", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"gpmc_ad15.lcd_data23", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"lcd_vsync.lcd_vsync", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"lcd_hsync.lcd_hsync", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"lcd_pclk.lcd_pclk", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"lcd_ac_bias_en.lcd_ac_bias_en", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {NULL, 0}, }; static struct pinmux_config tsc_pin_mux[] = { {"ain0.ain0", OMAP_MUX_MODE0 | AM33XX_INPUT_EN}, {"ain1.ain1", OMAP_MUX_MODE0 | AM33XX_INPUT_EN}, {"ain2.ain2", OMAP_MUX_MODE0 | AM33XX_INPUT_EN}, {"ain3.ain3", OMAP_MUX_MODE0 | AM33XX_INPUT_EN}, {"vrefp.vrefp", OMAP_MUX_MODE0 | AM33XX_INPUT_EN}, {"vrefn.vrefn", OMAP_MUX_MODE0 | AM33XX_INPUT_EN}, {NULL, 0}, }; /* Pin mux for nand flash module */ static struct pinmux_config nand_pin_mux[] = { {"gpmc_ad0.gpmc_ad0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad1.gpmc_ad1", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad2.gpmc_ad2", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad3.gpmc_ad3", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad4.gpmc_ad4", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad5.gpmc_ad5", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad6.gpmc_ad6", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad7.gpmc_ad7", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_wait0.gpmc_wait0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_wpn.gpmc_wpn", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_csn0.gpmc_csn0", OMAP_MUX_MODE0 | AM33XX_PULL_DISA}, {"gpmc_advn_ale.gpmc_advn_ale", OMAP_MUX_MODE0 | AM33XX_PULL_DISA}, {"gpmc_oen_ren.gpmc_oen_ren", OMAP_MUX_MODE0 | AM33XX_PULL_DISA}, {"gpmc_wen.gpmc_wen", OMAP_MUX_MODE0 | AM33XX_PULL_DISA}, {"gpmc_ben0_cle.gpmc_ben0_cle", OMAP_MUX_MODE0 | AM33XX_PULL_DISA}, {NULL, 0}, }; /* Module pin mux for SPI fash */ static struct pinmux_config spi0_pin_mux[] = { {"spi0_sclk.spi0_sclk", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL | AM33XX_INPUT_EN}, {"spi0_d0.spi0_d0", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL | AM33XX_PULL_UP | AM33XX_INPUT_EN}, {"spi0_d1.spi0_d1", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL | AM33XX_INPUT_EN}, {"spi0_cs0.spi0_cs0", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL | AM33XX_PULL_UP | AM33XX_INPUT_EN}, {NULL, 0}, }; /* Module pin mux for SPI flash */ static struct pinmux_config spi1_pin_mux[] = { {"mcasp0_aclkx.spi1_sclk", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL | AM33XX_INPUT_EN}, {"mcasp0_fsx.spi1_d0", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL | AM33XX_PULL_UP | AM33XX_INPUT_EN}, {"mcasp0_axr0.spi1_d1", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL | AM33XX_INPUT_EN}, {"mcasp0_ahclkr.spi1_cs0", OMAP_MUX_MODE3 | AM33XX_PULL_ENBL | AM33XX_PULL_UP | AM33XX_INPUT_EN}, {NULL, 0}, }; /* Module pin mux for rgmii1 */ static struct pinmux_config rgmii1_pin_mux[] = { {"mii1_txen.rgmii1_tctl", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"mii1_rxdv.rgmii1_rctl", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_txd3.rgmii1_td3", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"mii1_txd2.rgmii1_td2", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"mii1_txd1.rgmii1_td1", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"mii1_txd0.rgmii1_td0", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"mii1_txclk.rgmii1_tclk", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"mii1_rxclk.rgmii1_rclk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd3.rgmii1_rd3", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd2.rgmii1_rd2", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd1.rgmii1_rd1", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd0.rgmii1_rd0", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"mdio_data.mdio_data", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mdio_clk.mdio_clk", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT_PULLUP}, {NULL, 0}, }; /* Module pin mux for rgmii2 */ static struct pinmux_config rgmii2_pin_mux[] = { {"gpmc_a0.rgmii2_tctl", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"gpmc_a1.rgmii2_rctl", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"gpmc_a2.rgmii2_td3", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"gpmc_a3.rgmii2_td2", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"gpmc_a4.rgmii2_td1", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"gpmc_a5.rgmii2_td0", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"gpmc_a6.rgmii2_tclk", OMAP_MUX_MODE2 | AM33XX_PIN_OUTPUT}, {"gpmc_a7.rgmii2_rclk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"gpmc_a8.rgmii2_rd3", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"gpmc_a9.rgmii2_rd2", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"gpmc_a10.rgmii2_rd1", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"gpmc_a11.rgmii2_rd0", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLDOWN}, {"mdio_data.mdio_data", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mdio_clk.mdio_clk", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT_PULLUP}, {NULL, 0}, }; /* Module pin mux for mii1 */ static struct pinmux_config mii1_pin_mux[] = { {"mii1_rxerr.mii1_rxerr", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_txen.mii1_txen", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"mii1_rxdv.mii1_rxdv", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_txd3.mii1_txd3", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"mii1_txd2.mii1_txd2", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"mii1_txd1.mii1_txd1", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"mii1_txd0.mii1_txd0", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"mii1_txclk.mii1_txclk", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxclk.mii1_rxclk", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd3.mii1_rxd3", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd2.mii1_rxd2", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd1.mii1_rxd1", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd0.mii1_rxd0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mdio_data.mdio_data", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mdio_clk.mdio_clk", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT_PULLUP}, {NULL, 0}, }; /* Module pin mux for rmii1 */ static struct pinmux_config rmii1_pin_mux[] = { {"mii1_crs.rmii1_crs_dv", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxerr.mii1_rxerr", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_txen.mii1_txen", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"mii1_txd1.mii1_txd1", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"mii1_txd0.mii1_txd0", OMAP_MUX_MODE1 | AM33XX_PIN_OUTPUT}, {"mii1_rxd1.mii1_rxd1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxd0.mii1_rxd0", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLDOWN}, {"rmii1_refclk.rmii1_refclk", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLDOWN}, {"mdio_data.mdio_data", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mdio_clk.mdio_clk", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT_PULLUP}, {NULL, 0}, }; static struct pinmux_config i2c1_pin_mux[] = { {"spi0_d1.i2c1_sda", OMAP_MUX_MODE2 | AM33XX_SLEWCTRL_SLOW | AM33XX_PULL_ENBL | AM33XX_INPUT_EN}, {"spi0_cs0.i2c1_scl", OMAP_MUX_MODE2 | AM33XX_SLEWCTRL_SLOW | AM33XX_PULL_ENBL | AM33XX_INPUT_EN}, {NULL, 0}, }; /* Module pin mux for mcasp1 */ static struct pinmux_config mcasp1_pin_mux[] = { {"mii1_crs.mcasp1_aclkx", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_rxerr.mcasp1_fsx", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN}, {"mii1_col.mcasp1_axr2", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN}, {"rmii1_refclk.mcasp1_axr3", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN}, {NULL, 0}, }; /* Module pin mux for mmc0 */ static struct pinmux_config mmc0_pin_mux[] = { {"mmc0_dat3.mmc0_dat3", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_dat2.mmc0_dat2", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_dat1.mmc0_dat1", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_dat0.mmc0_dat0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_clk.mmc0_clk", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_cmd.mmc0_cmd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mcasp0_aclkr.mmc0_sdwp", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, {"spi0_cs1.mmc0_sdcd", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, {NULL, 0}, }; static struct pinmux_config mmc0_no_cd_pin_mux[] = { {"mmc0_dat3.mmc0_dat3", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_dat2.mmc0_dat2", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_dat1.mmc0_dat1", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_dat0.mmc0_dat0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_clk.mmc0_clk", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mmc0_cmd.mmc0_cmd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"mcasp0_aclkr.mmc0_sdwp", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN}, {NULL, 0}, }; /* Module pin mux for mmc1 */ static struct pinmux_config mmc1_pin_mux[] = { {"gpmc_ad7.mmc1_dat7", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad6.mmc1_dat6", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad5.mmc1_dat5", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad4.mmc1_dat4", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad3.mmc1_dat3", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad2.mmc1_dat2", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad1.mmc1_dat1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ad0.mmc1_dat0", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_csn1.mmc1_clk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_csn0.mmc1_sdwp", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_advn_ale.mmc1_sdcd", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP}, {NULL, 0}, }; /* Module pin mux for uart3 */ static struct pinmux_config uart3_pin_mux[] = { {"spi0_cs1.uart3_rxd", AM33XX_PIN_INPUT_PULLUP}, {"ecap0_in_pwm0_out.uart3_txd", AM33XX_PULL_ENBL}, {NULL, 0}, }; static struct pinmux_config d_can_gp_pin_mux[] = { {"uart0_ctsn.d_can1_tx", OMAP_MUX_MODE2 | AM33XX_PULL_ENBL}, {"uart0_rtsn.d_can1_rx", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP}, {NULL, 0}, }; static struct pinmux_config d_can_ia_pin_mux[] = { {"uart0_rxd.d_can0_tx", OMAP_MUX_MODE2 | AM33XX_PULL_ENBL}, {"uart0_txd.d_can0_rx", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP}, {NULL, 0}, }; /* * @pin_mux - single module pin-mux structure which defines pin-mux * details for all its pins. */ static void setup_pin_mux(struct pinmux_config *pin_mux) { int i; for (i = 0; pin_mux->string_name != NULL; pin_mux++) omap_mux_init_signal(pin_mux->string_name, pin_mux->val); } /* Matrix GPIO Keypad Support for profile-0 only: TODO */ #ifdef CONFIG_KEYBOARD_MATRIX /* pinmux for keypad device */ static struct pinmux_config matrix_keypad_pin_mux[] = { {"gpmc_a5.gpio1_21", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, {"gpmc_a8.gpio1_22", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, {"gpmc_a9.gpio1_25", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, {"gpmc_a10.gpio1_26", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, {"gpmc_a11.gpio1_27", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, {NULL, 0}, }; /* Keys mapping */ static const uint32_t am335x_evm_matrix_keys[] = { KEY(0, 0, KEY_MENU), KEY(1, 0, KEY_BACK), KEY(2, 0, KEY_LEFT), KEY(0, 1, KEY_RIGHT), KEY(1, 1, KEY_ENTER), KEY(2, 1, KEY_DOWN), }; const struct matrix_keymap_data am335x_evm_keymap_data = { .keymap = am335x_evm_matrix_keys, .keymap_size = ARRAY_SIZE(am335x_evm_matrix_keys), }; static const unsigned int am335x_evm_keypad_row_gpios[] = { GPIO_TO_PIN(1, 25), GPIO_TO_PIN(1, 26), GPIO_TO_PIN(1, 27) }; static const unsigned int am335x_evm_keypad_col_gpios[] = { GPIO_TO_PIN(1, 21), GPIO_TO_PIN(1, 22) }; static struct matrix_keypad_platform_data am335x_evm_keypad_platform_data = { .keymap_data = &am335x_evm_keymap_data, .row_gpios = am335x_evm_keypad_row_gpios, .num_row_gpios = ARRAY_SIZE(am335x_evm_keypad_row_gpios), .col_gpios = am335x_evm_keypad_col_gpios, .num_col_gpios = ARRAY_SIZE(am335x_evm_keypad_col_gpios), .active_low = false, .debounce_ms = 5, .col_scan_delay_us = 2, }; static struct platform_device am335x_evm_keyboard = { .name = "matrix-keypad", .id = -1, .dev = { .platform_data = &am335x_evm_keypad_platform_data, }, }; static void matrix_keypad_init(int evm_id, int profile) { int err; setup_pin_mux(matrix_keypad_pin_mux); err = platform_device_register(&am335x_evm_keyboard); if (err) { pr_err("failed to register matrix keypad (2x3) device\n"); } } #endif #ifdef CONFIG_KEYBOARD_GPIO /* pinmux for keypad device */ static struct pinmux_config volume_keys_pin_mux[] = { {"spi0_sclk.gpio0_2", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, {"spi0_d0.gpio0_3", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, {NULL, 0}, }; /* Configure GPIOs for Volume Keys */ static struct gpio_keys_button am335x_evm_volume_gpio_buttons[] = { { .code = KEY_VOLUMEUP, .gpio = GPIO_TO_PIN(0, 2), .active_low = true, .desc = "volume-up", .type = EV_KEY, .wakeup = 1, }, { .code = KEY_VOLUMEDOWN, .gpio = GPIO_TO_PIN(0, 3), .active_low = true, .desc = "volume-down", .type = EV_KEY, .wakeup = 1, }, }; static struct gpio_keys_platform_data am335x_evm_volume_gpio_key_info = { .buttons = am335x_evm_volume_gpio_buttons, .nbuttons = ARRAY_SIZE(am335x_evm_volume_gpio_buttons), }; static struct platform_device am335x_evm_volume_keys = { .name = "gpio-keys", .id = -1, .dev = { .platform_data = &am335x_evm_volume_gpio_key_info, }, }; static void volume_keys_init(int evm_id, int profile) { int err; setup_pin_mux(volume_keys_pin_mux); err = platform_device_register(&am335x_evm_volume_keys); if (err) pr_err("failed to register matrix keypad (2x3) device\n"); } #endif /* * @evm_id - evm id which needs to be configured * @dev_cfg - single evm structure which includes * all module inits, pin-mux defines * @profile - if present, else PROFILE_NONE * @dghtr_brd_flg - Whether Daughter board is present or not */ static void _configure_device(int evm_id, struct evm_dev_cfg *dev_cfg, int profile) { int i; /* * Only General Purpose & Industrial Auto Motro Control * EVM has profiles. So check if this evm has profile. * If not, ignore the profile comparison */ /* * If the device is on baseboard, directly configure it. Else (device on * Daughter board), check if the daughter card is detected. */ if (profile == PROFILE_NONE) { for (i = 0; dev_cfg->device_init != NULL; dev_cfg++) { if (dev_cfg->device_on == DEV_ON_BASEBOARD) dev_cfg->device_init(evm_id, profile); else if (daughter_brd_detected == true) dev_cfg->device_init(evm_id, profile); } } else { for (i = 0; dev_cfg->device_init != NULL; dev_cfg++) { if (dev_cfg->profile & profile) { if (dev_cfg->device_on == DEV_ON_BASEBOARD) dev_cfg->device_init(evm_id, profile); else if (daughter_brd_detected == true) dev_cfg->device_init(evm_id, profile); } } } } #define AM335X_LCD_BL_PIN GPIO_TO_PIN(0, 7) /* pinmux for usb0 drvvbus */ static struct pinmux_config usb0_pin_mux[] = { {"usb0_drvvbus.usb0_drvvbus", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {NULL, 0}, }; /* pinmux for usb1 drvvbus */ static struct pinmux_config usb1_pin_mux[] = { {"usb1_drvvbus.usb1_drvvbus", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {NULL, 0}, }; /* Module pin mux for eCAP0 */ static struct pinmux_config ecap0_pin_mux[] = { {"ecap0_in_pwm0_out.gpio0_7", AM33XX_PIN_OUTPUT}, {NULL, 0}, }; #define AM335XEVM_WLAN_IRQ_GPIO GPIO_TO_PIN(3, 17) struct wl12xx_platform_data am335xevm_wlan_data = { .irq = OMAP_GPIO_IRQ(AM335XEVM_WLAN_IRQ_GPIO), .board_ref_clock = WL12XX_REFCLOCK_38_XTAL, /* 38.4Mhz */ }; /* Module pin mux for wlan and bluetooth */ static struct pinmux_config mmc2_wl12xx_pin_mux[] = { {"gpmc_a1.mmc2_dat0", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_a2.mmc2_dat1", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_a3.mmc2_dat2", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_ben1.mmc2_dat3", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_csn3.mmc2_cmd", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP}, {"gpmc_clk.mmc2_clk", OMAP_MUX_MODE3 | AM33XX_PIN_INPUT_PULLUP}, {NULL, 0}, }; static struct pinmux_config uart1_wl12xx_pin_mux[] = { {"uart1_ctsn.uart1_ctsn", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT}, {"uart1_rtsn.uart1_rtsn", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT}, {"uart1_rxd.uart1_rxd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP}, {"uart1_txd.uart1_txd", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL}, {NULL, 0}, }; static struct pinmux_config wl12xx_pin_mux_evm_rev1_1a[] = { {"gpmc_a0.gpio1_16", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, {"mcasp0_ahclkr.gpio3_17", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, {"mcasp0_ahclkx.gpio3_21", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, {NULL, 0}, }; static struct pinmux_config wl12xx_pin_mux_evm_rev1_0[] = { {"gpmc_csn1.gpio1_30", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, {"mcasp0_ahclkr.gpio3_17", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, {"gpmc_csn2.gpio1_31", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT}, {NULL, 0}, }; static int backlight_enable = false; static void enable_ecap0(int evm_id, int profile) { backlight_enable = true; } static int __init ecap0_init(void) { int status = 0; if (backlight_enable) { setup_pin_mux(ecap0_pin_mux); status = gpio_request(AM335X_LCD_BL_PIN, "lcd bl\n"); if (status < 0) pr_warn("Failed to request gpio for LCD backlight\n"); gpio_direction_output(AM335X_LCD_BL_PIN, 1); } return status; } late_initcall(ecap0_init); static int __init conf_disp_pll(int rate) { struct clk *disp_pll; int ret = -EINVAL; disp_pll = clk_get(NULL, "dpll_disp_ck"); if (IS_ERR(disp_pll)) { pr_err("Cannot clk_get disp_pll\n"); goto out; } ret = clk_set_rate(disp_pll, rate); clk_put(disp_pll); out: return ret; } static void lcdc_init(int evm_id, int profile) { setup_pin_mux(lcdc_pin_mux); if (conf_disp_pll(300000000)) { pr_info("Failed configure display PLL, not attempting to" "register LCDC\n"); return; } if (am33xx_register_lcdc(&TFC_S9700RTWV35TR_01B_pdata)) pr_info("Failed to register LCDC device\n"); return; } static void tsc_init(int evm_id, int profile) { int err; if (gp_evm_revision == GP_EVM_REV_IS_1_1A) { am335x_touchscreen_data.analog_input = 1; pr_info("TSC connected to beta GP EVM\n"); } else { am335x_touchscreen_data.analog_input = 0; pr_info("TSC connected to alpha GP EVM\n"); } setup_pin_mux(tsc_pin_mux); err = platform_device_register(&tsc_device); if (err) pr_err("failed to register touchscreen device\n"); } static void rgmii1_init(int evm_id, int profile) { setup_pin_mux(rgmii1_pin_mux); return; } static void rgmii2_init(int evm_id, int profile) { setup_pin_mux(rgmii2_pin_mux); return; } static void mii1_init(int evm_id, int profile) { setup_pin_mux(mii1_pin_mux); return; } static void rmii1_init(int evm_id, int profile) { setup_pin_mux(rmii1_pin_mux); return; } static void usb0_init(int evm_id, int profile) { setup_pin_mux(usb0_pin_mux); return; } static void usb1_init(int evm_id, int profile) { setup_pin_mux(usb1_pin_mux); return; } /* setup uart3 */ static void uart3_init(int evm_id, int profile) { setup_pin_mux(uart3_pin_mux); return; } /* NAND partition information */ static struct mtd_partition am335x_nand_partitions[] = { /* All the partition sizes are listed in terms of NAND block size */ { .name = "SPL", .offset = 0, /* Offset = 0x0 */ .size = SZ_128K, .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "SPL.backup1", .offset = MTDPART_OFS_APPEND, /* Offset = 0x20000 */ .size = SZ_128K, .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "SPL.backup2", .offset = MTDPART_OFS_APPEND, /* Offset = 0x40000 */ .size = SZ_128K, .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "SPL.backup3", .offset = MTDPART_OFS_APPEND, /* Offset = 0x60000 */ .size = SZ_128K, .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "U-Boot", .offset = MTDPART_OFS_APPEND, /* Offset = 0x80000 */ .size = 15 * SZ_128K, .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "U-Boot Env", .offset = MTDPART_OFS_APPEND, /* Offset = 0x260000 */ .size = 1 * SZ_128K, }, { .name = "Kernel", .offset = MTDPART_OFS_APPEND, /* Offset = 0x280000 */ .size = 40 * SZ_128K, }, { .name = "File System", .offset = MTDPART_OFS_APPEND, /* Offset = 0x780000 */ .size = MTDPART_SIZ_FULL, }, }; /* SPI 0/1 Platform Data */ /* SPI flash information */ static struct mtd_partition am335x_spi_partitions[] = { /* All the partition sizes are listed in terms of erase size */ { .name = "U-Boot-min", .offset = 0, .size = SZ_128K, .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "U-Boot", .offset = MTDPART_OFS_APPEND, .size = 2 * SZ_128K, .mask_flags = MTD_WRITEABLE, /* force read-only */ }, { .name = "U-Boot Env", .offset = MTDPART_OFS_APPEND, .size = 2 * SZ_4K, }, { .name = "Kernel", .offset = MTDPART_OFS_APPEND, .size = 20 * SZ_128K, }, { .name = "File System", .offset = MTDPART_OFS_APPEND, .size = MTDPART_SIZ_FULL, /* size ~= 1.1 MiB */ } }; static const struct flash_platform_data am335x_spi_flash = { .type = "w25q64", .name = "spi_flash", .parts = am335x_spi_partitions, .nr_parts = ARRAY_SIZE(am335x_spi_partitions), }; /* * SPI Flash works at 80Mhz however SPI Controller works at 48MHz. * So setup Max speed to be less than that of Controller speed */ static struct spi_board_info am335x_spi0_slave_info[] = { { .modalias = "m25p80", .platform_data = &am335x_spi_flash, .irq = -1, .max_speed_hz = 12000000, .bus_num = 1, .chip_select = 0, }, }; static struct spi_board_info am335x_spi1_slave_info[] = { { .modalias = "m25p80", .platform_data = &am335x_spi_flash, .irq = -1, .max_speed_hz = 12000000, .bus_num = 2, .chip_select = 0, }, }; static void evm_nand_init(int evm_id, int profile) { setup_pin_mux(nand_pin_mux); board_nand_init(am335x_nand_partitions, ARRAY_SIZE(am335x_nand_partitions), 0, 0); } static struct i2c_board_info am335x_i2c_boardinfo1[] = { { I2C_BOARD_INFO("tlv320aic3x", 0x1b), }, }; static void i2c1_init(int evm_id, int profile) { setup_pin_mux(i2c1_pin_mux); omap_register_i2c_bus(2, 100, am335x_i2c_boardinfo1, ARRAY_SIZE(am335x_i2c_boardinfo1)); return; } /* Setup McASP 1 */ static void mcasp1_init(int evm_id, int profile) { /* Configure McASP */ setup_pin_mux(mcasp1_pin_mux); am335x_register_mcasp1(&am335x_evm_snd_data1); return; } static void mmc1_init(int evm_id, int profile) { setup_pin_mux(mmc1_pin_mux); am335x_mmc[1].mmc = 2; am335x_mmc[1].caps = MMC_CAP_4_BIT_DATA; am335x_mmc[1].gpio_cd = GPIO_TO_PIN(3, 15); am335x_mmc[1].gpio_wp = GPIO_TO_PIN(0, 14); am335x_mmc[1].ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34; /* 3V3 */ /* mmc will be initialized when mmc0_init is called */ return; } static void mmc2_wl12xx_init(int evm_id, int profile) { setup_pin_mux(mmc2_wl12xx_pin_mux); am335x_mmc[1].mmc = 3; am335x_mmc[1].name = "wl1271"; am335x_mmc[1].caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD | MMC_PM_KEEP_POWER; am335x_mmc[1].nonremovable = true; am335x_mmc[1].gpio_cd = -EINVAL; am335x_mmc[1].gpio_wp = -EINVAL; am335x_mmc[1].ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34; /* 3V3 */ /* mmc will be initialized when mmc0_init is called */ return; } static void uart1_wl12xx_init(int evm_id, int profile) { setup_pin_mux(uart1_wl12xx_pin_mux); } static void wl12xx_bluetooth_enable(void) { int status = gpio_request(am335xevm_wlan_data.bt_enable_gpio, "bt_en\n"); if (status < 0) pr_err("Failed to request gpio for bt_enable"); pr_info("Configure Bluetooth Enable pin...\n"); gpio_direction_output(am335xevm_wlan_data.bt_enable_gpio, 0); } static int wl12xx_set_power(struct device *dev, int slot, int on, int vdd) { if (on) { gpio_set_value(am335xevm_wlan_data.wlan_enable_gpio, 1); mdelay(70); } else gpio_set_value(am335xevm_wlan_data.wlan_enable_gpio, 0); return 0; } static void wl12xx_init(int evm_id, int profile) { struct device *dev; struct omap_mmc_platform_data *pdata; int ret; /* Register WLAN and BT enable pins based on the evm board revision */ if (gp_evm_revision == GP_EVM_REV_IS_1_1A) { am335xevm_wlan_data.wlan_enable_gpio = GPIO_TO_PIN(1, 16); am335xevm_wlan_data.bt_enable_gpio = GPIO_TO_PIN(3, 21); } else { am335xevm_wlan_data.wlan_enable_gpio = GPIO_TO_PIN(1, 30); am335xevm_wlan_data.bt_enable_gpio = GPIO_TO_PIN(1, 31); } wl12xx_bluetooth_enable(); if (wl12xx_set_platform_data(&am335xevm_wlan_data)) pr_err("error setting wl12xx data\n"); dev = am335x_mmc[1].dev; if (!dev) { pr_err("wl12xx mmc device initialization failed\n"); goto out; } pdata = dev->platform_data; if (!pdata) { pr_err("Platfrom data of wl12xx device not set\n"); goto out; } ret = gpio_request_one(am335xevm_wlan_data.wlan_enable_gpio, GPIOF_OUT_INIT_LOW, "wlan_en"); if (ret) { pr_err("Error requesting wlan enable gpio: %d\n", ret); goto out; } if (gp_evm_revision == GP_EVM_REV_IS_1_1A) setup_pin_mux(wl12xx_pin_mux_evm_rev1_1a); else setup_pin_mux(wl12xx_pin_mux_evm_rev1_0); pdata->slots[0].set_power = wl12xx_set_power; out: return; } static void d_can_init(int evm_id, int profile) { switch (evm_id) { case IND_AUT_MTR_EVM: if ((profile == PROFILE_0) || (profile == PROFILE_1)) { setup_pin_mux(d_can_ia_pin_mux); /* Instance Zero */ am33xx_d_can_init(0); } break; case GEN_PURP_EVM: if (profile == PROFILE_1) { setup_pin_mux(d_can_gp_pin_mux); /* Instance One */ am33xx_d_can_init(1); } break; default: break; } } #ifdef CONFIG_AM335XEVM_BT_RFKILL static struct platform_device am335xevm_device_bluetooth = { .name = "am335xevm-bt", .id = -1, }; static void bt_pwr_init(void) { int err; err = platform_device_register(&am335xevm_device_bluetooth); if (err) pr_err("failed to register BT rfkill driver\n"); }; #endif static void mmc0_init(int evm_id, int profile) { setup_pin_mux(mmc0_pin_mux); omap2_hsmmc_init(am335x_mmc); return; } static void mmc0_no_cd_init(int evm_id, int profile) { setup_pin_mux(mmc0_no_cd_pin_mux); omap2_hsmmc_init(am335x_mmc); return; } /* setup spi0 */ static void spi0_init(int evm_id, int profile) { setup_pin_mux(spi0_pin_mux); spi_register_board_info(am335x_spi0_slave_info, ARRAY_SIZE(am335x_spi0_slave_info)); return; } /* setup spi1 */ static void spi1_init(int evm_id, int profile) { setup_pin_mux(spi1_pin_mux); spi_register_board_info(am335x_spi1_slave_info, ARRAY_SIZE(am335x_spi1_slave_info)); return; } static int beaglebone_phy_fixup(struct phy_device *phydev) { phydev->supported &= ~(SUPPORTED_100baseT_Half | SUPPORTED_100baseT_Full); return 0; } #ifdef CONFIG_TLK110_WORKAROUND static int am335x_tlk110_phy_fixup(struct phy_device *phydev) { unsigned int val; /* This is done as a workaround to support TLK110 rev1.0 phy */ val = phy_read(phydev, TLK110_COARSEGAIN_REG); phy_write(phydev, TLK110_COARSEGAIN_REG, (val | TLK110_COARSEGAIN_VAL)); val = phy_read(phydev, TLK110_LPFHPF_REG); phy_write(phydev, TLK110_LPFHPF_REG, (val | TLK110_LPFHPF_VAL)); val = phy_read(phydev, TLK110_SPAREANALOG_REG); phy_write(phydev, TLK110_SPAREANALOG_REG, (val | TLK110_SPANALOG_VAL)); val = phy_read(phydev, TLK110_VRCR_REG); phy_write(phydev, TLK110_VRCR_REG, (val | TLK110_VRCR_VAL)); val = phy_read(phydev, TLK110_SETFFE_REG); phy_write(phydev, TLK110_SETFFE_REG, (val | TLK110_SETFFE_VAL)); val = phy_read(phydev, TLK110_FTSP_REG); phy_write(phydev, TLK110_FTSP_REG, (val | TLK110_FTSP_VAL)); val = phy_read(phydev, TLK110_ALFATPIDL_REG); phy_write(phydev, TLK110_ALFATPIDL_REG, (val | TLK110_ALFATPIDL_VAL)); val = phy_read(phydev, TLK110_PSCOEF21_REG); phy_write(phydev, TLK110_PSCOEF21_REG, (val | TLK110_PSCOEF21_VAL)); val = phy_read(phydev, TLK110_PSCOEF3_REG); phy_write(phydev, TLK110_PSCOEF3_REG, (val | TLK110_PSCOEF3_VAL)); val = phy_read(phydev, TLK110_ALFAFACTOR1_REG); phy_write(phydev, TLK110_ALFAFACTOR1_REG, (val | TLK110_ALFACTOR1_VAL)); val = phy_read(phydev, TLK110_ALFAFACTOR2_REG); phy_write(phydev, TLK110_ALFAFACTOR2_REG, (val | TLK110_ALFACTOR2_VAL)); val = phy_read(phydev, TLK110_CFGPS_REG); phy_write(phydev, TLK110_CFGPS_REG, (val | TLK110_CFGPS_VAL)); val = phy_read(phydev, TLK110_FTSPTXGAIN_REG); phy_write(phydev, TLK110_FTSPTXGAIN_REG, (val | TLK110_FTSPTXGAIN_VAL)); val = phy_read(phydev, TLK110_SWSCR3_REG); phy_write(phydev, TLK110_SWSCR3_REG, (val | TLK110_SWSCR3_VAL)); val = phy_read(phydev, TLK110_SCFALLBACK_REG); phy_write(phydev, TLK110_SCFALLBACK_REG, (val | TLK110_SCFALLBACK_VAL)); val = phy_read(phydev, TLK110_PHYRCR_REG); phy_write(phydev, TLK110_PHYRCR_REG, (val | TLK110_PHYRCR_VAL)); return 0; } #endif /* Low-Cost EVM */ static struct evm_dev_cfg low_cost_evm_dev_cfg[] = { {rgmii1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {evm_nand_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {NULL, 0, 0}, }; /* General Purpose EVM */ static struct evm_dev_cfg gen_purp_evm_dev_cfg[] = { {enable_ecap0, DEV_ON_DGHTR_BRD, (PROFILE_0 | PROFILE_1 | PROFILE_2 | PROFILE_7) }, {lcdc_init, DEV_ON_DGHTR_BRD, (PROFILE_0 | PROFILE_1 | PROFILE_2 | PROFILE_7) }, {tsc_init, DEV_ON_DGHTR_BRD, (PROFILE_0 | PROFILE_1 | PROFILE_2 | PROFILE_7) }, {rgmii1_init, DEV_ON_BASEBOARD, PROFILE_ALL}, {rgmii2_init, DEV_ON_DGHTR_BRD, (PROFILE_1 | PROFILE_2 | PROFILE_4 | PROFILE_6) }, {usb0_init, DEV_ON_BASEBOARD, PROFILE_ALL}, {usb1_init, DEV_ON_BASEBOARD, PROFILE_ALL}, {evm_nand_init, DEV_ON_DGHTR_BRD, (PROFILE_ALL & ~PROFILE_2 & ~PROFILE_3)}, {i2c1_init, DEV_ON_DGHTR_BRD, (PROFILE_0 | PROFILE_3 | PROFILE_7)}, {mcasp1_init, DEV_ON_DGHTR_BRD, (PROFILE_0 | PROFILE_3 | PROFILE_7) }, {mmc1_init, DEV_ON_DGHTR_BRD, PROFILE_2}, {mmc2_wl12xx_init, DEV_ON_BASEBOARD, (PROFILE_0 | PROFILE_3 | PROFILE_5)}, {mmc0_init, DEV_ON_BASEBOARD, (PROFILE_ALL & ~PROFILE_5)}, {mmc0_no_cd_init, DEV_ON_BASEBOARD, PROFILE_5}, {spi0_init, DEV_ON_DGHTR_BRD, PROFILE_2}, {uart1_wl12xx_init, DEV_ON_BASEBOARD, (PROFILE_0 | PROFILE_3 | PROFILE_5)}, {wl12xx_init, DEV_ON_BASEBOARD, (PROFILE_0 | PROFILE_3 | PROFILE_5)}, {d_can_init, DEV_ON_DGHTR_BRD, PROFILE_1}, #ifdef CONFIG_KEYBOARD_MATRIX {matrix_keypad_init, DEV_ON_DGHTR_BRD, PROFILE_0}, #endif #ifdef CONFIG_KEYBOARD_GPIO {volume_keys_init, DEV_ON_DGHTR_BRD, PROFILE_0}, #endif {NULL, 0, 0}, }; /* Industrial Auto Motor Control EVM */ static struct evm_dev_cfg ind_auto_mtrl_evm_dev_cfg[] = { {mii1_init, DEV_ON_DGHTR_BRD, PROFILE_ALL}, {usb0_init, DEV_ON_BASEBOARD, PROFILE_ALL}, {usb1_init, DEV_ON_BASEBOARD, PROFILE_ALL}, {evm_nand_init, DEV_ON_DGHTR_BRD, PROFILE_ALL}, {spi1_init, DEV_ON_DGHTR_BRD, PROFILE_ALL}, {uart3_init, DEV_ON_DGHTR_BRD, PROFILE_ALL}, {i2c1_init, DEV_ON_BASEBOARD, PROFILE_ALL}, {mmc0_no_cd_init, DEV_ON_BASEBOARD, PROFILE_ALL}, {NULL, 0, 0}, }; /* IP-Phone EVM */ static struct evm_dev_cfg ip_phn_evm_dev_cfg[] = { {enable_ecap0, DEV_ON_DGHTR_BRD, PROFILE_NONE}, {lcdc_init, DEV_ON_DGHTR_BRD, PROFILE_NONE}, {tsc_init, DEV_ON_DGHTR_BRD, PROFILE_NONE}, {rgmii1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {rgmii2_init, DEV_ON_DGHTR_BRD, PROFILE_NONE}, {usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {evm_nand_init, DEV_ON_DGHTR_BRD, PROFILE_NONE}, {i2c1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {mcasp1_init, DEV_ON_DGHTR_BRD, PROFILE_NONE}, {mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {NULL, 0, 0}, }; /* Beaglebone < Rev A3 */ static struct evm_dev_cfg beaglebone_old_dev_cfg[] = { {rmii1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {NULL, 0, 0}, }; /* Beaglebone Rev A3 and after */ static struct evm_dev_cfg beaglebone_dev_cfg[] = { {lcdc_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {mii1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE}, {NULL, 0, 0}, }; static void setup_low_cost_evm(void) { pr_info("The board is a AM335x Low Cost EVM.\n"); _configure_device(LOW_COST_EVM, low_cost_evm_dev_cfg, PROFILE_NONE); } static void setup_general_purpose_evm(void) { u32 prof_sel = am335x_get_profile_selection(); pr_info("The board is general purpose EVM in profile %d\n", prof_sel); if (!strncmp("1.1A", config.version, 4)) { gp_evm_revision = GP_EVM_REV_IS_1_1A; } else if (!strncmp("1.0", config.version, 3)) { gp_evm_revision = GP_EVM_REV_IS_1_0; } else { pr_err("Found invalid GP EVM revision, falling back to Rev1.1A"); gp_evm_revision = GP_EVM_REV_IS_1_1A; } if (gp_evm_revision == GP_EVM_REV_IS_1_0) gigabit_enable = 0; else if (gp_evm_revision == GP_EVM_REV_IS_1_1A) gigabit_enable = 1; _configure_device(GEN_PURP_EVM, gen_purp_evm_dev_cfg, (1L << prof_sel)); } static void setup_ind_auto_motor_ctrl_evm(void) { u32 prof_sel = am335x_get_profile_selection(); pr_info("The board is an industrial automation EVM in profile %d\n", prof_sel); /* Only Profile 0 is supported */ if ((1L << prof_sel) != PROFILE_0) { pr_err("AM335X: Only Profile 0 is supported\n"); pr_err("Assuming profile 0 & continuing\n"); prof_sel = PROFILE_0; } _configure_device(IND_AUT_MTR_EVM, ind_auto_mtrl_evm_dev_cfg, PROFILE_0); /* Fillup global evmid */ am33xx_evmid_fillup(IND_AUT_MTR_EVM); /* Initialize TLK110 PHY registers for phy version 1.0 */ am335x_tlk110_phy_init(); } static void setup_ip_phone_evm(void) { pr_info("The board is an IP phone EVM\n"); _configure_device(IP_PHN_EVM, ip_phn_evm_dev_cfg, PROFILE_NONE); } /* BeagleBone < Rev A3 */ static void setup_beaglebone_old(void) { pr_info("The board is a AM335x Beaglebone < Rev A3.\n"); /* Beagle Bone has Micro-SD slot which doesn't have Write Protect pin */ am335x_mmc[0].gpio_wp = -EINVAL; _configure_device(LOW_COST_EVM, beaglebone_old_dev_cfg, PROFILE_NONE); phy_register_fixup_for_uid(BBB_PHY_ID, BBB_PHY_MASK, beaglebone_phy_fixup); } /* BeagleBone after Rev A3 */ static void setup_beaglebone(void) { pr_info("The board is a AM335x Beaglebone.\n"); /* Beagle Bone has Micro-SD slot which doesn't have Write Protect pin */ am335x_mmc[0].gpio_wp = -EINVAL; _configure_device(LOW_COST_EVM, beaglebone_dev_cfg, PROFILE_NONE); } static void am335x_setup_daughter_board(struct memory_accessor *m, void *c) { u8 tmp; int ret; /* * try reading a byte from the EEPROM to see if it is * present. We could read a lot more, but that would * just slow the boot process and we have all the information * we need from the EEPROM on the base board anyway. */ ret = m->read(m, &tmp, 0, sizeof(u8)); if (ret == sizeof(u8)) { pr_info("Detected a daughter card on AM335x EVM.."); daughter_brd_detected = true; } else { pr_info("No daughter card found\n"); daughter_brd_detected = false; } } static void am335x_evm_setup(struct memory_accessor *mem_acc, void *context) { int ret; char tmp[10]; char name_tmp[10] = {'A','3','3','5','A','B','C','D','E',0}; char version_tmp[10] = {'0','0','A','A',0,'B','C','D','E',0}; char opt_tmp[7] = {'S','K','U','#','0','1',0}; /* 1st get the MAC address from EEPROM */ ret = mem_acc->read(mem_acc, (char *)&am335x_mac_addr, EEPROM_MAC_ADDRESS_OFFSET, sizeof(am335x_mac_addr)); if (ret != sizeof(am335x_mac_addr)) { pr_warning("AM335X: EVM Config read fail: %d\n", ret); return; } /* Fillup global mac id */ am33xx_cpsw_macidfillup(&am335x_mac_addr[0][0], &am335x_mac_addr[1][0]); /* get board specific data */ ret = mem_acc->read(mem_acc, (char *)&config, 0, sizeof(config)); ret = sizeof(config); // ÆÁ±Îµô³€¶ÈŒì²�? if (ret != sizeof(config)) { pr_warning("AM335X EVM config read fail, read %d bytes\n", ret); return; } config.header = AM335X_EEPROM_HEADER£»// ÆÁ±ÎµôheaderŒì²â if (config.header != AM335X_EEPROM_HEADER) { pr_warning("AM335X: wrong header 0x%x, expected 0x%x\n", config.header, AM335X_EEPROM_HEADER); goto out; } // if (strncmp("A335", config.name, 4)) { // pr_err("Board %s doesn't look like an AM335x board\n", // config.name); // goto out; // } snprintf(tmp, sizeof(config.name) + 1, "%s", name_tmp); pr_info("Board name: %s\n", tmp); snprintf(tmp, sizeof(config.version) + 1, "%s", version_tmp); pr_info("Board version: %s\n", tmp); if (!strncmp("A335BONE", name_tmp, 8)) { daughter_brd_detected = false; if(!strncmp("00A1", version_tmp, 4) || !strncmp("00A2", version_tmp, 4)) setup_beaglebone_old(); else setup_beaglebone(); } else { /* only 6 characters of options string used for now */ snprintf(tmp, 7, "%s", opt_tmp); pr_info("SKU: %s\n", tmp); if (!strncmp("SKU#00", opt_tmp, 6)) setup_low_cost_evm(); else if (!strncmp("SKU#01", opt_tmp, 6)) setup_general_purpose_evm(); else if (!strncmp("SKU#02", opt_tmp, 6)) setup_ind_auto_motor_ctrl_evm(); else if (!strncmp("SKU#03", opt_tmp, 6)) setup_ip_phone_evm(); else goto out; } /* Initialize cpsw after board detection is completed as board * information is required for configuring phy address and hence * should be call only after board detection */ //am33xx_cpsw_init(gigabit_enable); return; out: /* * If the EEPROM hasn't been programed or an incorrect header * or board name are read, assume this is an am335xevm board * if CONFIG_MACH_BEAGLEBONE is set, assume this is an old * beaglebone board (< Rev A3) */ #ifdef CONFIG_MACH_BEAGLEBONE pr_err("Could not detect any board, falling back to: " "Beaglebone (< Rev A3) with no daughter card connected\n"); daughter_brd_detected = false; setup_beaglebone(); #else pr_err("Could not detect any board, falling back to: " "GP EVM in profile 0 with no daughter card connected\n"); daughter_brd_detected = true; setup_general_purpose_evm(); #endif /* Initialize cpsw after board detection is completed as board * information is required for configuring phy address and hence * should be call only after board detection */ //am33xx_cpsw_init(gigabit_enable); } // //static void am335x_evm_setup(struct memory_accessor *mem_acc, void *context) //{ // int ret; // char tmp[10]; // // /* 1st get the MAC address from EEPROM */ // ret = mem_acc->read(mem_acc, (char *)&am335x_mac_addr, // EEPROM_MAC_ADDRESS_OFFSET, sizeof(am335x_mac_addr)); // // if (ret != sizeof(am335x_mac_addr)) { // pr_warning("AM335X: EVM Config read fail: %d\n", ret); // return; // } // // /* Fillup global mac id */ // am33xx_cpsw_macidfillup(&am335x_mac_addr[0][0], // &am335x_mac_addr[1][0]); // /* get board specific data */ // ret = mem_acc->read(mem_acc, (char *)&config, 0, sizeof(config)); // if (ret != sizeof(config)) { // pr_warning("AM335X EVM config read fail, read %d bytes\n", ret); // return; // } // if (config.header != AM335X_EEPROM_HEADER) { // pr_warning("AM335X: wrong header 0x%x, expected 0x%x\n", // config.header, AM335X_EEPROM_HEADER); // goto out; // } // if (strncmp("A335", config.name, 4)) { // pr_err("Board %s doesn't look like an AM335x board\n", // config.name); // goto out; // } // // snprintf(tmp, sizeof(config.name) + 1, "%s", config.name); // pr_info("Board name: %s\n", tmp); // snprintf(tmp, sizeof(config.version) + 1, "%s", config.version); // pr_info("Board version: %s\n", tmp); // if (!strncmp("A335BONE", config.name, 8)) { // daughter_brd_detected = false; // if(!strncmp("00A1", config.version, 4) || // !strncmp("00A2", config.version, 4)) // setup_beaglebone_old(); // else // setup_beaglebone(); // } else { // /* only 6 characters of options string used for now */ // snprintf(tmp, 7, "%s", config.opt); // pr_info("SKU: %s\n", tmp); // if (!strncmp("SKU#00", config.opt, 6)) // setup_low_cost_evm(); // else if (!strncmp("SKU#01", config.opt, 6)) // setup_general_purpose_evm(); // else if (!strncmp("SKU#02", config.opt, 6)) // setup_ind_auto_motor_ctrl_evm(); // else if (!strncmp("SKU#03", config.opt, 6)) // setup_ip_phone_evm(); // else // goto out; // } /* Initialize cpsw after board detection is completed as board * information is required for configuring phy address and hence * should be call only after board detection */ // am33xx_cpsw_init(gigabit_enable); // return; //out: /* * If the EEPROM hasn't been programed or an incorrect header * or board name are read, assume this is an am335xevm board * if CONFIG_MACH_BEAGLEBONE is set, assume this is an old * beaglebone board (< Rev A3) */ #ifdef CONFIG_MACH_BEAGLEBONE pr_err("Could not detect any board, falling back to: " "Beaglebone (< Rev A3) with no daughter card connected\n"); daughter_brd_detected = false; setup_beaglebone(); #else pr_err("Could not detect any board, falling back to: " "GP EVM in profile 0 with no daughter card connected\n"); daughter_brd_detected = true; setup_general_purpose_evm(); #endif /* Initialize cpsw after board detection is completed as board * information is required for configuring phy address and hence * should be call only after board detection */ am33xx_cpsw_init(gigabit_enable); } */ static struct at24_platform_data am335x_daughter_board_eeprom_info = { .byte_len = (256*1024) / 8, .page_size = 64, .flags = AT24_FLAG_ADDR16, .setup = am335x_setup_daughter_board, .context = (void *)NULL, }; static struct at24_platform_data am335x_baseboard_eeprom_info = { .byte_len = (256*1024) / 8, .page_size = 64, .flags = AT24_FLAG_ADDR16, .setup = am335x_evm_setup, .context = (void *)NULL, }; /* * Daughter board Detection. * Every board has a ID memory (EEPROM) on board. We probe these devices at * machine init, starting from daughter board and ending with baseboard. * Assumptions : * 1. probe for i2c devices are called in the order they are included in * the below struct. Daughter boards eeprom are probed 1st. Baseboard * eeprom probe is called last. */ static struct i2c_board_info __initdata am335x_i2c_boardinfo[] = { { /* Daughter Board EEPROM */ I2C_BOARD_INFO("24c256", DAUG_BOARD_I2C_ADDR), .platform_data = &am335x_daughter_board_eeprom_info, }, { /* Baseboard board EEPROM */ I2C_BOARD_INFO("24c256", BASEBOARD_I2C_ADDR), .platform_data = &am335x_baseboard_eeprom_info, }, { I2C_BOARD_INFO("cpld_reg", 0x35), }, { I2C_BOARD_INFO("tlc59108", 0x40), }, }; static struct omap_musb_board_data musb_board_data = { .interface_type = MUSB_INTERFACE_ULPI, .mode = MUSB_OTG, .power = 500, .instances = 1, }; static int cpld_reg_probe(struct i2c_client *client, const struct i2c_device_id *id) { cpld_client = client; return 0; } static int __devexit cpld_reg_remove(struct i2c_client *client) { cpld_client = NULL; return 0; } static const struct i2c_device_id cpld_reg_id[] = { { "cpld_reg", 0 }, { } }; static struct i2c_driver cpld_reg_driver = { .driver = { .name = "cpld_reg", }, .probe = cpld_reg_probe, .remove = cpld_reg_remove, .id_table = cpld_reg_id, }; static void evm_init_cpld(void) { i2c_add_driver(&cpld_reg_driver); } static void __init am335x_evm_i2c_init(void) { /* Initially assume Low Cost EVM Config */ am335x_evm_id = LOW_COST_EVM; evm_init_cpld(); omap_register_i2c_bus(1, 100, am335x_i2c_boardinfo, ARRAY_SIZE(am335x_i2c_boardinfo)); } static struct resource am335x_rtc_resources[] = { { .start = AM33XX_RTC_BASE, .end = AM33XX_RTC_BASE + SZ_4K - 1, .flags = IORESOURCE_MEM, }, { /* timer irq */ .start = AM33XX_IRQ_RTC_TIMER, .end = AM33XX_IRQ_RTC_TIMER, .flags = IORESOURCE_IRQ, }, { /* alarm irq */ .start = AM33XX_IRQ_RTC_ALARM, .end = AM33XX_IRQ_RTC_ALARM, .flags = IORESOURCE_IRQ, }, }; static struct platform_device am335x_rtc_device = { .name = "omap_rtc", .id = -1, .num_resources = ARRAY_SIZE(am335x_rtc_resources), .resource = am335x_rtc_resources, }; static int am335x_rtc_init(void) { void __iomem *base; struct clk *clk; clk = clk_get(NULL, "rtc_fck"); if (IS_ERR(clk)) { pr_err("rtc : Failed to get RTC clock\n"); return -1; } if (clk_enable(clk)) { pr_err("rtc: Clock Enable Failed\n"); return -1; } base = ioremap(AM33XX_RTC_BASE, SZ_4K); if (WARN_ON(!base)) return -ENOMEM; /* Unlock the rtc's registers */ __raw_writel(0x83e70b13, base + 0x6c); __raw_writel(0x95a4f1e0, base + 0x70); /* * Enable the 32K OSc * TODO: Need a better way to handle this * Since we want the clock to be running before mmc init * we need to do it before the rtc probe happens */ __raw_writel(0x48, base + 0x54); iounmap(base); return platform_device_register(&am335x_rtc_device); } /* Enable clkout2 */ static struct pinmux_config clkout2_pin_mux[] = { {"xdma_event_intr1.clkout2", OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT}, {NULL, 0}, }; static void __init clkout2_enable(void) { struct clk *ck_32; ck_32 = clk_get(NULL, "clkout2_ck"); if (IS_ERR(ck_32)) { pr_err("Cannot clk_get ck_32\n"); return; } clk_enable(ck_32); setup_pin_mux(clkout2_pin_mux); } static void __init am335x_evm_init(void) { am33xx_mux_init(board_mux); omap_serial_init(); am335x_rtc_init(); clkout2_enable(); am335x_evm_i2c_init(); omap_sdrc_init(NULL, NULL); usb_musb_init(&musb_board_data); omap_board_config = am335x_evm_config; omap_board_config_size = ARRAY_SIZE(am335x_evm_config); #ifdef CONFIG_AM335XEVM_BT_RFKILL bt_pwr_init(); #endif } static void __init am335x_evm_map_io(void) { omap2_set_globals_am33xx(); omapam33xx_map_common_io(); } MACHINE_START(AM335XEVM, "am335xevm") /* Maintainer: Texas Instruments */ .atag_offset = 0x100, .map_io = am335x_evm_map_io, .init_irq = ti816x_init_irq, .init_early = am335x_init_early, .timer = &omap3_am33xx_timer, .init_machine = am335x_evm_init, MACHINE_END MACHINE_START(AM335XIAEVM, "am335xiaevm") /* Maintainer: Texas Instruments */ .atag_offset = 0x100, .map_io = am335x_evm_map_io, .init_irq = ti816x_init_irq, .init_early = am335x_init_early, .timer = &omap3_am33xx_timer, .init_machine = am335x_evm_init, MACHINE_END