TCI6638 k2k ccs5.5 U-boot 启动问题

 TI工程师,你们好

        在使用 TCI6638 k2k   arm核烧写LINUX系统时,参考你们工程师提供的   Build and Run U-boot and Linux Kernel on TCI6638 EVM   PDF手册,   贴子的名字为

[Keystone-2资料共享][更新]如何在TCI6638 EVM上烧写及运行U-boot和Linux Kernel

下载的手册名字为(5102.Build and Run U-boot and Linux Kernel on TCI6638 EVM-V2.1.pdf)

操作到将U-BOOT下载到了TCI6638 k2k的ARM的第一个核的0X0C001000地址,按照文档所说,将PC指针跳转到0x0C001000地址,点击 “Resume”发现U-BOOT在串口并没有输出启动信息,将CCS5.5停下来,发现PC指针已经跑到0XB0145C80 DDR的一个地址。

u-boot启动的串口没有任何关系启动的信息输出

BMC VERSION 1.0.2.5
BUILT May 14 2013 11:46:18
---------------------

[00:00:00] BMC Init Begin
[00:00:00] BMC Version 1.0.2.5
[00:00:00] XTCIEVMK2X
[00:00:00] 3.0
[00:00:00] S/N: 93342
[00:00:00] BMC Init Complete
[00:00:00] Main PWR Start Begin
[00:00:00] Main PWR Start Complete
[00:00:00] SOC PWR Start Begin
[00:00:00] Clock 1
[00:00:00] Passed
[00:00:00] Clock 2
[00:00:01] Passed
[00:00:01] Clock 3
[00:00:01] Passed
[00:00:01] SOC PWR Start Complete
[00:00:02] SOC RST Begin
[00:00:02] Current BootMode is set to DSP No-Boot
[00:00:02] SOC RST Complete
[00:00:02] BOOT COMPLETE
[00:09:15] BMC>help
[00:09:15] Executing command "help"

lcd - Adds a string to a specified line and page of the LCD
wait - Waits for a specified amount of time
eeprom - Writes or reads from the EEPROM.
help - Used to get information on other commands. Type "help command" for specific
information on a command.
wp - Used to control the write protect of EEPROM, NOR, and NAND.
reboot - Performs various reboot functions.
shutdown - Performs various shutdown functions.
run - Attempts to bring the board from its current state to the running state.
status - Displays the status of the board in formatted fashion.
bootmode - Used to perform various actions with Bootmodes.
ver - Displays BMC version, board type, board version, and board serial number.

[00:09:22] BMC>bootmode
[00:09:22] Executing command "bootmode"
[00:09:22] Current Bootmode is 0x0000000000100001 DSP No-Boot
BMC>

1.参考文档编译出来需要的u-boot.bin    uImage  烧写文件,CC5.5烧写u-boot.bin进运行发现没有启动信息从串口输出,能否提供个你们编译好的定向文件让我验证下是否编译出来的文件出现了问题。

2.setboot无效,在BCM》中使用help命令发现没有setboot命令,但使用拨码开关可以将状态设置为0x00100001和0x00112005.,此处在uboot启动时是否还需要通过BCM命令设置什么。

3.开发板使用官网提供的,ARM   64位。U-BOOT启动是否和64位有关系,还是本身的大小端设置有关系。

表面现象只是发现调试口并没有输出u-boot.bin的启动信息,在CCS5.5将PC指针跳转到了0x0c001000地址,运行烧写在此地址开始的u-boot.bin代码。

希望TI工程师给于技术支持。

程序员的世界1K就是1024,我的工资是18K=18432,每次公司都少发432元。老板说18K就是1.8W,你不懂我啊

2 个回复

  • 请问MCSDK版本是否使用的是 3.0 GA (Alpha11) or higher version packet版本?

    EVM板是1.1/2.0版本吗?
  • 回复 Shine Zhang:

    此问题我已经解决,本身有两个usb-uart,一个是做EVM设置,一个是linux启动的, 开发板官网购买的,现在遇见新的问题,CCS5.5运行后,通过串口终端调试 ,网口DHCP不通
    U-BOOT使用的是DEV.MCSDK-2013-01.11,


    环境变量配置如下所示:

    TCI6638 EVM # print
    addr_fdt=0x87000000
    addr_file=0x82000000
    addr_fs=0x82000000
    addr_kern=0x88000000
    addr_mon=0x0c5f0000
    addr_ubi=0x82000000
    addr_uboot=0x87000000
    addr_uinitrd=-
    args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1
    args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
    args_ramfs=setenv bootargs ${bootargs} earlyprintk rdinit=/sbin/init rw root=/dev/ram0 initrd=0x802000000,9M
    args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048
    args_uinitrd=setenv bootargs ${bootargs} earlyprintk rdinit=/sbin/init rw root=/dev/ram0
    baudrate=115200
    boot=ubi
    bootargs=console=ttyS0,115200n8 rootwait=1 rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048
    bootcmd=run init_${boot} get_fdt_${boot} get_mon_${boot} get_kern_${boot} run_mon run_kern
    bootdelay=3
    bootfile=./arago-console-image.cpio.gz
    burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
    burn_uboot=sf probe; sf erase 0 0x100000; sf write ${addr_uboot} 0 ${filesize}
    ethact=TCI6638_EMAC
    ethaddr=c4:ed:ba:a0:44:c2
    fdt_high=0xffffffff
    fileaddr=82000000
    filesize=573000
    gatewayip=10.0.0.1
    get_fdt_net=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
    get_fdt_ramfs=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
    get_fdt_ubi=ubifsload ${addr_fdt} ${name_fdt}
    get_fdt_uinitrd=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
    get_fs_ramfs=dhcp ${addr_fs} ${tftp_root}/${name_fs}
    get_fs_uinitrd=dhcp ${addr_fs} ${tftp_root}/${name_uinitrd}
    get_kern_net=dhcp ${addr_kern} ${tftp_root}/${name_kern}
    get_kern_ramfs=dhcp ${addr_kern} ${tftp_root}/${name_kern}
    get_kern_ubi=ubifsload ${addr_kern} ${name_kern}
    get_kern_uinitrd=dhcp ${addr_kern} ${tftp_root}/${name_kern}
    get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_mon_ubi=ubifsload ${addr_mon} ${name_mon}
    get_mon_uinitrd=dhcp ${addr_mon} ${tftp_root}/${name_mon}
    get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
    get_uboot_net=dhcp ${addr_uboot} ${tftp_root}/${name_uboot}
    has_mdio=0
    init_net=run set_fs_none args_all args_net
    init_ramfs=run set_fs_none args_all args_ramfs get_fs_ramfs
    init_ubi=run set_fs_none args_all args_ubi; ubi part ubifs; ubifsmount boot
    init_uinitrd=run set_fs_uinitrd args_all args_uinitrd get_fs_uinitrd
    initrd_high=0xffffffff
    ipaddr=10.0.1.97
    ipdaar=10.0.1.97
    mem_lpae=1
    mem_reserve=512M
    mtddevname=bootloader
    mtddevnum=0
    mtdids=nand0=davinci_nand.0
    mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,522752k(ubifs)
    name_fdt=uImage1.dtb
    name_fs=arago-console-image.cpio.gz
    name_kern=uImage1.bin
    name_mon=skern1.bin
    name_ubi=keystone-evm-ubifs.ubi
    name_uboot=u-boot-spi-keystone-evm.gph
    name_uinitrd=uinitrd.bin
    netmask=255.0.0.0
    nfs_options=v3,tcp,rsize=4096,wsize=4096
    nfs_root=/export
    no_post=1
    partition=nand0,0
    run_kern=bootm ${addr_kern} ${addr_uinitrd} ${addr_fdt}
    run_mon=mon_install ${addr_mon}
    serverip=10.0.1.41
    set_fs_none=setenv addr_uinitrd -
    set_fs_uinitrd=setenv addr_uinitrd ${addr_fs}
    stderr=serial
    stdin=serial
    stdout=serial
    tftp_root=.
    ver=U-Boot 2013.01 (Jun 14 2018 - 09:51:32)

    Environment size: 3303/262140 bytes

    TCI6638 EVM # ping 10.0.1.41 //ping 命令查看是否能ping通 可以ping通
    Using TCI6638_EMAC device
    host 10.0.1.41 is alive
    TCI6638 EVM # ping 10.0.1.97 //ping 本身设置的IP地址, 不可以ping通

    Using TCI6638_EMAC device
    ping failed; host 10.0.1.97 is not alive
    TCI6638 EVM # run get_uboot_net //获取烧写的文件数据
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    BOOTP broadcast 6
    BOOTP broadcast 7
    BOOTP broadcast 8
    BOOTP broadcast 9
    BOOTP broadcast 10
    BOOTP broadcast 11
    BOOTP broadcast 12
    BOOTP broadcast 13
    BOOTP broadcast 14
    BOOTP broadcast 15
    BOOTP broadcast 16
    BOOTP broadcast 17
    BOOTP broadcast 18
    BOOTP broadcast 19
    BOOTP broadcast 20
    BOOTP broadcast 21
    BOOTP broadcast 22
    BOOTP broadcast 23
    BOOTP broadcast 24
    BOOTP broadcast 25
    BOOTP broadcast 26
    BOOTP broadcast 27
    BOOTP broadcast 28
    BOOTP broadcast 29
    BOOTP broadcast 30
    BOOTP broadcast 31
    BOOTP broadcast 32

    Retry count exceeded; starting again
    *** ERROR: `eth1addr' not set
    BOOTP broadcast 1
    BOOTP broadcast 2
    BOOTP broadcast 3
    BOOTP broadcast 4
    BOOTP broadcast 5
    BOOTP broadcast 6
    BOOTP broadcast 7
    BOOTP broadcast 8
    BOOTP broadcast 9

    Abort
    TCI6638 EVM #

    在使用PC ping开发版的IP地址不通,使用开发板ping PC机时 IP地址可以被ping通,与此同时PC发现本来PC ping开发板也能ping通,但是当开发板的ping命令结束后,本来变通的PC ping开发板命令又不通了,帮忙分析下问题 。

    程序员的世界1K就是1024,我的工资是18K=18432,每次公司都少发432元。老板说18K就是1.8W,你不懂我啊