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.

ti-processor-sdk-linux-am335x-evm-03.03.00.04 编译的内核在beaglebone black上运行到Starting kernel ...就重启

我用的SDK版本是ti-processor-sdk-linux-am335x-evm-03.03.00.04 ,编译的uImage 和zImage 在beaglebone black通过tftp下载并运行(spl和uboot都是通过串口下载的),每次启动到Starting kernel ... 过一段时间就重启了,不知道什么原因,请求支援!

log:

U-Boot 2016.05-00319-gcf14e63-dirty (Jul 14 2017 - 10:43:22 +0800)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
       Watchdog enabled
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
MMC: no card present
** Bad device mmc 0 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in SROM is         de:ad:be:ef:00:01
Address in environment is  04:a3:16:b1:54:73
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
=>  setenv autoload no
=> setenv bootargs console=ttyO0,115200n8 quiet root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
=> set ipaddr 192.168.1.186  
=>  set serverip 192.168.1.185
=>  tftp 0x82000000 zImage
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.1.185; our IP address is 192.168.1.186
Filename 'zImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #########################################
         754.9 KiB/s
done
Bytes transferred = 3456632 (34be78 hex)
=>  bootm 0x82000000
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>  bootz 0x82000000
Kernel image @ 0x82000000 [ 0x000000 - 0x34be78 ]

Starting kernel ...

CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC

  • 用prebuild的文件看看行不行

  • prebuild images 也是一样的效果。

  • 这个是prebuild image的log:

    Transferring u-boot-spl.bin-am335x-evm...
      100%      76 KB       6 KB/sec    00:00:12       0 Errors  


    U-Boot SPL 2016.05-g4db46a6bbd (Mar 29 2017 - 17:44:45)
    Trying to boot from UART
    C
    Transferring u-boot-am335x-evm.img, errors 1...el.
      100%     628 KB       4 KB/sec    00:02:06       2 Errors  

    Loaded 644080 bytes


    U-Boot 2016.05-g4db46a6bbd (Mar 29 2017 - 17:44:45 -0400)

    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
           Watchdog enabled
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    MMC: no card present
    ** Bad device mmc 0 **
    Using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net:   eth0: ethernet@4a100000
    Warning: usb_ether MAC addresses don't match:
    Address in SROM is         de:ad:be:ef:00:01
    Address in environment is  04:a3:16:b1:54:73
    , eth1: usb_ether
    Press SPACE to abort autoboot in 2 seconds
    => set ipaddr 192.168.1.186    
    => setenv autoload no
    => setenv bootargs console=ttyO0,115200n8 quiet root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    => set serverip 192.168.1.185
    =>  tftp 0x82000000
    link up on port 0, speed 100, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.1.185; our IP address is 192.168.1.186
    Filename 'zImage'.
    Load address: 0x82000000
    Loading: #################################################################
             ########
    Abort
    =>  tftp 0x82000000 zImage-am335x-evm.bin
    link up on port 0, speed 100, full duplex
    Using ethernet@4a100000 device
    TFTP from server 192.168.1.185; our IP address is 192.168.1.186
    Filename 'zImage-am335x-evm.bin'.
    Load address: 0x82000000
    Loading: #################################################################
             #################################################################
             #################################################################
             ##########################################
             237.3 KiB/s
    done
    Bytes transferred = 3477576 (351048 hex)
    => bootz 0x82000000
    Kernel image @ 0x82000000 [ 0x000000 - 0x351048 ]

    Starting kernel ...

  • log信息里没看到下载设备树dtb文件。看一下uboot环境变量的设置,请参考下面的链接。

    http://blog.csdn.net/zy812248258/article/details/39338759

  • 是的,没有加载设备树。 加载后就好了

x 出现错误。请重试或与管理员联系。