Beaglebone Black:无法显示 u-boot 提示

Beaglebone Black : Could not display u-boot prompt

我正在学习 Mastering Embedded Linux Programming second edition

看不到 u-boot 提示符 (U-Boot#)

我用的是u-boot v2020.07, crosstool-ng v1.24.0 复制了MLO, u-boot.img到sd卡

我该如何解决这个问题?

谢谢。

U-Boot SPL 2020.07 (Oct 21 2020 - 13:46:52 +0900)
Trying to boot from MMC1

U-Boot 2020.07 (Oct 21 2020 - 13:46:52 +0900)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
WDT:   Started with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, 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 ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
, eth1: usb_ether
Hit any key to stop autoboot:  0 
switch to partitions #0, OK

mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK

mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK

mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK

mmc1(part 0) is current device
Scanning mmc 1:1...
switch to partitions #0, OK

mmc1(part 0) is current device
SD/MMC found on device 1
Error: "bootcmd_nand0" not defined

starting USB...
Bus usb@47401800: Port not available.
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready

missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-d0-5f-b8-d1-0b-67
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/00000000
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/0000000
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/000000
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/00000
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/0000
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/000
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/00
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/0
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/default-arm-am33xx-am335x
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/default-arm-am33xx
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/default-arm
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Retrieving file: pxelinux.cfg/default
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Config file not found
starting USB...
Bus usb@47401800: Port not available.
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
ethernet@4a100000 Waiting for PHY auto negotiation to complete......... TIMEOUT !

Warning: usb_ether MAC addresses don't match:
Address in ROM is       de:ad:be:ef:00:01
Address in environment is   d0:5f:b8:d1:0b:69
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready


=> 

这可能是您得到的提示是您所期望的提示,但您确实从 u-boot 得到了提示,即您发布的输出中的最后一个 =>

如果您输入 help 然后按回车键,您应该会得到可用命令的列表。

这本书现在已经五年了,而您使用的是 u-boot 2020.07,这可以解释差异。

作者可能在他编译的u-boot中自定义了提示信息:你可以通过在CONFIG_SYS_PROMPT符号定义中添加一个adding/modifying值来实现同样的效果您使用的配置文件,例如 configs/am335x_evm_defconfig

CONFIG_SYS_PROMPT="U-Boot# "

在 re-compiled u-boot 之后,您应该会得到您所期望的准确提示信息。