TI中文支持网
TI专业的中文技术问题搜集分享网站

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

Denny%20Yang99373:

用prebuild的文件看看行不行

fucheng xu:

回复 Denny%20Yang99373:

prebuild images 也是一样的效果。

fucheng xu:

回复 Denny%20Yang99373:

这个是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 UARTCTransferring u-boot-am335x-evm.img, errors 1…el.  100%     628 KB       4 KB/sec    00:02:06       2 Errors  Loaded 644080 bytesU-Boot 2016.05-g4db46a6bbd (Mar 29 2017 – 17:44:45 -0400)CPU  : AM335X-GP rev 2.1Model: TI AM335x BeagleBone Black       Watchdog enabledDRAM:  512 MiBNAND:  0 MiBMMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1MMC: no card present** Bad device mmc 0 **Using default environment<ethaddr> not set. Validating first E-fuse MACNet:   eth0: ethernet@4a100000Warning: usb_ether MAC addresses don't match:Address in SROM is         de:ad:be:ef:00:01Address in environment is  04:a3:16:b1:54:73, eth1: usb_etherPress 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 duplexUsing ethernet@4a100000 deviceTFTP from server 192.168.1.185; our IP address is 192.168.1.186Filename 'zImage'.Load address: 0x82000000Loading: #################################################################         ########Abort=>  tftp 0x82000000 zImage-am335x-evm.binlink up on port 0, speed 100, full duplexUsing ethernet@4a100000 deviceTFTP from server 192.168.1.185; our IP address is 192.168.1.186Filename 'zImage-am335x-evm.bin'.Load address: 0x82000000Loading: #################################################################         #################################################################         #################################################################         ##########################################         237.3 KiB/sdoneBytes transferred = 3477576 (351048 hex)=> bootz 0x82000000 Kernel image @ 0x82000000 [ 0x000000 – 0x351048 ]Starting kernel …

Shine:

回复 fucheng xu:

log信息里没看到下载设备树dtb文件。看一下uboot环境变量的设置,请参考下面的链接。http://blog.csdn.net/zy812248258/article/details/39338759

fucheng xu:

回复 Shine:

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

赞(0)
未经允许不得转载:TI中文支持网 » ti-processor-sdk-linux-am335x-evm-03.03.00.04 编译的内核在beaglebone black上运行到Starting kernel …就重启
分享到: 更多 (0)