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.

AM3389 烧写Uboot 问题

Other Parts Discussed in Thread: AM3359

Hi,all

现在在调试一块自己做的AM3359的板子,只能通过串口来烧写uboot。

通过串口Xmodem (1K mode)烧写u-boot-spl.bin后,打印出

U-Boot SPL 2011.09 (May 15 2012 - 20:28:11)

Texas Instruments Revision detection unimplemented

Could not probe the EEPROM; something fundamentally wrong on the I2C bus.

read_eeprom() failure

最后只打印出了一个‘C'

当我通过串口Ymodem加载u-boot.img时,这文件总是加载不了。

请指点一下,下一步该怎么排除这问题。

谢谢!

  • 你到u-boot里面去看看,需要改改read_eeprom()函数,这个是针对EVM板的,你的板子上应该么有eeprom

  • 是的,我的板子没有eeprom,有两个问题

    第一个问题是我尝试着屏蔽read_eeprom(),SPL可以加载,最后仍然只是打印一个‘C',是否一定要读eeprom才行

    还有一个问题,SPL能够加载了,能不能说明DDR2正常工作了

    第一次用TI的ARM芯片,请多多指教

    谢谢

  • 第一个问题:默认情况下,spl会从eeprom中读一些值,然后这些值会做为后续程序的一些判断语句。你这种现象发生可能是你没有屏蔽eeprom干净,有些变量值还是需要更改。请仔细查下代码。

    第二个问题:不能说明, uboot正常加载并执行才能说明你DDR2没有问题。

  • 我目前怀疑的是DDR2没有初始化成功,DDR2如果没有运行起来,uboot.img会加载不进去。我的板子上DDR2是两片的K4G1G084QF。

    有没有成功配置过K4G1G084QF的童鞋,分享一下经验。

  • 请问u-boot-spl.bin这个文档在哪里啊,没有找到啊,现在急需,希望得到您的回复

  • 我看了,需要下载u-boot-spl.bin,可是找不到这个文件

    Select “u-boot-spl.bin” for the transfer

    用的是AM3359的开发板

  • 原来用SD卡烧写的时候可以用MLO和u-boot.img,有资料说Bootloader=mlo+uboot,呵呵

  • u-boot-spl.bin文件包含在../board-support/u-boot-2011.09-psp04.06.00.xx/spl路径下。 如专家yaoming说的,多看看processors.wiki.ti.com/.../AM335x_U-Boot_User%27s_Guide,对开发很有帮助。

  • 编译u-boot正确无误后,会成am335x目录,而u-boot-spl.bin在am335x/spl目录下

  • 您好 我做了一个am3359的 板子,参考EVM做的,去掉了eeprom

    在sd卡启动的时候卡在这个地方,不知道什么原因,第一次用ti的arm  求帮助:

    U-Boot SPL 2011.09 (Feb 09 2012 - 15:38:59)

    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 (Feb 09 2012 - 15:11:31)

    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

    ** Unable to read "uEnv.txt" from mmc 0:1 **

    reading uImage

    2922160 bytes read

    ## Booting kernel from Legacy Image at 80007fc0 ...

      Image Name:   Arago/3.1.0-psp04.06.00.03.sdk/a

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    2922096 Bytes = 2.8 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 (jenkins@sdit-build01) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Thu Feb 9 14:58:49 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 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait 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: 253724k/253724k available, 8420k 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 - 0xc0534000   (5296 kB)

    [    0.000000]       .init : 0xc0534000 - 0xc056d000   ( 228 kB)

    [    0.000000]       .data : 0xc056e000 - 0xc05c2d80   ( 340 kB)

    [    0.000000]        .bss : 0xc05c2da4 - 0xc05fd320   ( 234 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.000252] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464)

    [    0.058632] pid_max: default: 32768 minimum: 301

    [    0.058787] Security Framework initialized

    [    0.058911] Mount-cache hash table entries: 512

    [    0.059364] CPU: Testing write buffer coherency: ok

    [    0.064943] print_constraints: dummy:

    [    0.065416] NET: Registered protocol family 16

    [    0.065839] GPMC revision 6.0

    [    0.068434] OMAP GPIO hardware version 0.1

    [    0.071351] omap_l3_smx omap_l3_smx.0: couldn't find resource

    [    0.071983] omap_mux_init: Add partition: #1: core, flags: 0

    [    0.075915]  omap_i2c.1: alias fck already exists

    [    0.077914]  omap2_mcspi.1: alias fck already exists

    [    0.078202]  omap2_mcspi.2: alias fck already exists

    [    0.108230] bio: create slab <bio-0> at 0

    [    0.111092] SCSI subsystem initialized

    [    0.113178] usbcore: registered new interface driver usbfs

    [    0.113610] usbcore: registered new interface driver hub

    [    0.113876] usbcore: registered new device driver usb

    [    0.128784] omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz

    [    0.131430] Advanced Linux Sound Architecture Driver Version 1.0.24.

    [    0.132799] Switching to clocksource gp timer

    [    0.138702] Switched to NOHz mode on CPU #0

    [    0.153967] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)

    [    0.154198] musb-hdrc musb-hdrc.0: dma type: pio

    [    0.155266] musb-hdrc musb-hdrc.0: USB OTG mode controller at d080a000 using PIO, IRQ 18

    [    0.155481] musb-hdrc musb-hdrc.1: dma type: pio

    [    0.156394] musb-hdrc musb-hdrc.1: USB OTG mode controller at d080c800 using PIO, IRQ 19

    [    0.156892] NET: Registered protocol family 2

    [    0.157131] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)

    [    0.157488] TCP established hash table entries: 8192 (order: 4, 65536 bytes)

    [    0.157712] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)

    [    0.157848] TCP: Hash tables configured (established 8192 bind 8192)

    [    0.157864] TCP reno registered

    [    0.157882] UDP hash table entries: 256 (order: 0, 4096 bytes)

    [    0.157914] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

    [    0.158159] NET: Registered protocol family 1

    [    0.158508] RPC: Registered named UNIX socket transport module.

    [    0.158527] RPC: Registered udp transport module.

    [    0.158540] RPC: Registered tcp transport module.

    [    0.158553] RPC: Registered tcp NFSv4.1 backchannel transport module.

    [    0.158828] NetWinder Floating Point Emulator V0.97 (double precision)

    [    0.172829] VFS: Disk quotas dquot_6.5.2

    [    0.172974] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

    [    0.173738] JFFS2 version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.

    [    0.174130] msgmni has been set to 495

    [    0.175096] io scheduler noop registered

    [    0.175115] io scheduler deadline registered

    [    0.175212] io scheduler cfq registered (default)

    [    0.176327] Could not set LED4 to fully on

    [    0.178344] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

    [    0.180531] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0

    [    0.659948] console [ttyO0] enabled

    [    0.664342] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1

    [    0.672205] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2

    [    0.680152] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3

    [    0.688026] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4

    [    0.695892] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5

    [    0.715574] brd: module loaded

    [    0.725348] loop: module loaded

    [    0.728881] i2c-core: driver [tsl2550] using legacy suspend method

    [    0.735432] i2c-core: driver [tsl2550] using legacy resume method

    [    0.741921] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write

    [    0.802852] No daughter card found

    [    0.806486] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write

    [    0.872853] AM335X: EVM Config read fail: -110

    [    0.879593] mtdoops: mtd device (mtddev=name/number) must be supplied

    [    0.886727] omap2-nand driver initializing

    [    0.891289] OneNAND driver initializing

    [    0.897234] CAN device driver interface

    [    0.901246] CAN bus driver for Bosch D_CAN controller 1.0

    [    0.907891] usbcore: registered new interface driver cdc_ether

    [    0.914313] usbcore: registered new interface driver cdc_subset

    [    0.920593] Initializing USB Mass Storage driver...

    [    0.925999] usbcore: registered new interface driver usb-storage

    [    0.932316] USB Mass Storage support registered.

    [    0.937259] musb-hdrc musb-hdrc.1: MUSB HDRC host driver

    [    0.942944] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1

    [    0.950863] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

    [    0.958033] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

    [    0.965645] usb usb1: Product: MUSB HDRC host driver

    [    0.970865] usb usb1: Manufacturer: Linux 3.1.0 musb-hcd

    [    0.976461] usb usb1: SerialNumber: musb-hdrc.1

    [    0.982217] hub 1-0:1.0: USB hub found

    [    0.986231] hub 1-0:1.0: 1 port detected

    [    0.991672] mousedev: PS/2 mouse device common for all mice

    [    0.998981] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0

    [    1.006021] i2c /dev entries driver

    [    1.012538] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec

    [    1.019577] cpuidle: using governor ladder

    [    1.024586] cpuidle: using governor menu

    [    1.032424] usbcore: registered new interface driver usbhid

    [    1.038347] usbhid: USB HID core driver

    [    1.043631] usbcore: registered new interface driver snd-usb-audio

    [    1.052162] ALSA device list:

    [    1.055352]   No soundcards found.

    [    1.058926] oprofile: hardware counters not available

    [    1.064248] oprofile: using timer interrupt.

    [    1.068767] nf_conntrack version 0.5.0 (3964 buckets, 15856 max)

    [    1.075696] ip_tables: (C) 2000-2006 Netfilter Core Team

    [    1.081426] TCP cubic registered

    [    1.084872] NET: Registered protocol family 17

    [    1.089558] can: controller area network core (rev 20090105 abi 8)

    [    1.096188] NET: Registered protocol family 29

    [    1.100864] can: raw protocol (rev 20090105)

    [    1.105372] can: broadcast manager protocol (rev 20090105 t)

    [    1.111369] Registering the dns_resolver key type

    [    1.116414] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3

    [    1.124499] ThumbEE CPU extension supported.

    [    1.129898] _regulator_get: mpu.0 supply mpu not found, using dummy regulator

    [    1.137559] omap2_set_init_voltage: Fail set voltage-dpll_mpu_ck(f=500000000 v=1100000)on vddmpu

    [    1.146822] omap2_set_init_voltage: unable to set vdd_mpu

    [    1.155345] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)

    [    1.164733] Waiting for root device /dev/mmcblk0p2...

  • Hi,yuanqi

    你这个问题我怀疑是你的内核在board-am335xem.c文件中没有初始化sd 卡。

    如果你有初始化SD卡的还有这个问题,那要检查下CD引脚和WP引脚的配置是否正确。

  • Hi John Lee

    现在我在调试AM3359,DEVKIT8600, 我想在u-boot下使用tftp下载内核,可是下载不了,驱动没有加载上,能不能分享一下u-boot的源码啊,我看看网络驱动是怎么配置的啊。

    万分感谢!

  • 大家用的uboot的源码都是一样的,都是从ti的sdk里拿到的,你没有必要在这里到处要。

  • 恩,知道了 ,谢谢!