我使用的是ti-processor-sdk-linux-am335x-evm-06.01.00.08,可以从SD卡启动uboot,但无法对emmc进行烧写,这是哪里出了问题,请大神帮帮忙
U-Boot 2019.01-g1ebdbc7-dirty (May 21 2020 – 22:18:26 +0800)
CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT… MMC: no card present
Loading Environment from MMC… Card did not respond to voltage select!
*** Warning – No block device, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: Could not get PHY for ethernet@4a100000: addr 0
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 4c:3f:d3:cb:f2:55
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
Card did not respond to voltage select!
Card did not respond to voltage select!
MMC: no card present
## Error: "bootcmd_nand0" not defined
starting USB…
USB0: Port not available.
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
The remote end did not respond in time.missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-4c-3f-d3-cb-f2-53
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is 4c:3f:d3:cb:f2:55
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
The remote end did not respond in time.Retrieving file: pxelinux.cfg/00000000
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is 4c:3f:d3:cb:f2:55
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
The remote end did not respond in time.Retrieving file: pxelinux.cfg/0000000
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is 4c:3f:d3:cb:f2:55
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
Nancy Wang:
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
Card did not respond to voltage select!
Card did not respond to voltage select!
MMC: no card present
## Error: "bootcmd_nand0" not defined
参考以下帖子类似的报错问题,看一下能否解决。
e2e.ti.com/…/662382
user6350786:
回复 Nancy Wang:
这个是不是因为mmc0_pin_mux配置问题,导致sd卡无法识别
Nancy Wang:
回复 user6350786:
也有可能是pinmux的配置问题。
emmc是接在哪个mmc上的?
请贴出以下命令的打印信息看一下。
=> mmc list
=> mmc info
请问是自制板吗?pinmux配置请检查<Processor SDK>/board-support/u-boot-<version>/board/ti/am335x/mux.c和设备树中的mmc配置。
user6350786:
回复 Nancy Wang:
是自制的板子
U-Boot SPL 2019.01-g1ebdbc7-dirty (May 22 2020 – 22:25:53 +0800)
Trying to boot from MMC1U-Boot 2019.01-g1ebdbc7-dirty (May 22 2020 – 22:25:53 +0800)
CPU: AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM:512 MiB
NAND:0 MiB
MMC:OMAP SD/MMC: 0
Loading Environment from FAT… <ethaddr> not set. Validating first E-fuse MAC
Net:Could not get PHY for ethernet@4a100000: addr 0
eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM isde:ad:be:ef:00:01
Address in environment is4c:3f:d3:cb:f2:55
, eth1: usb_ether
Hit any key to stop autoboot:0
=> mmc list
OMAP SD/MMC: 0
=> mmc info
=>
user6350786:
回复 Nancy Wang:
U-Boot 2019.01-g1ebdbc7-dirty (May 25 2020 – 23:17:40 +0800)
CPU: AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:512 MiB
MMC:OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT… MMC: no card present
Loading Environment from MMC… Card did not respond to voltage select!
*** Warning – No block device, using default environment<ethaddr> not set. Validating first E-fuse MAC
Net:Could not get PHY for ethernet@4a100000: addr 0
eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM isde:ad:be:ef:00:01
Address in environment is4c:3f:d3:cb:f2:55
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
=>
=> mmc info
MMC: no card present
=> mmc list
OMAP SD/MMC: 0
OMAP SD/MMC: 1
=>
Nancy Wang:
回复 user6350786:
=> mmc info
MMC: no card present
=> mmc dev 是不是也找不到设备?
请问用的是mmc1接的emmc吗?上面提到的mmc1 pinmux配置部分再检查看看。
user6350786:
回复 Nancy Wang:
U-Boot 2019.01-g1ebdbc7-dirty (May 25 2020 – 23:17:40 +0800)
CPU: AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:512 MiB
MMC:OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT… MMC: no card present
Loading Environment from MMC… Card did not respond to voltage select!
*** Warning – No block device, using default environment<ethaddr> not set. Validating first E-fuse MAC
Net:Could not get PHY for ethernet@4a100000: addr 0
eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM isde:ad:be:ef:00:01
Address in environment is4c:3f:d3:cb:f2:55
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
=>
=>
=> mmc dev
MMC: no card present
=>主要需要检查mmc1 pinmux的哪些东西,第一次搞,不太清楚,还请多多指教
user6350786:
回复 Nancy Wang:
U-Boot SPL 2019.01-g1ebdbc7-dirty (May 27 2020 – 22:16:49 +0800)
Trying to boot from MMC1
Loading Environment from FAT… *** Warning – bad CRC, using default environment
Loading Environment from MMC… Card did not respond to voltage select!
*** Warning – No block device, using default environment
U-Boot 2019.01-g1ebdbc7-dirty (May 27 2020 – 22:16:49 +0800)
CPU : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM: 512 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from FAT… *** Warning – bad CRC, using default environment
Loading Environment from MMC… MMC Device 1 not found
*** Warning – No MMC card found, using default environment
<ethaddr> not set. Validating first E-fuse MAC
Net: Could not get PHY for ethernet@4a100000: addr 0
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 4c:3f:d3:cb:f2:55
, eth1: usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Unable to read file boot.scr **
194 bytes read in 3 ms (62.5 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc0 …
Running uenvcmd …
4417112 bytes read in 378 ms (11.1 MiB/s)
48948 bytes read in 7 ms (6.7 MiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
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
** File not found /boot/zImage **
MMC Device 1 not found
no mmc device at slot 1
MMC Device 1 not found
no mmc device at slot 1
SD/MMC found on device 1
## Error: "bootcmd_nand0" not defined
把mmc1的配置修改后,好像可以识别了,但报
Wrong Image Format for bootm command
ERROR: can't get kernel image!
这是问题内核的编译有问题嘛
Nancy Wang:
回复 user6350786:
再确认一点,您现在是已经完成了emmc的烧写,但是启动之后报以上的错误是吗?
启动方式修改过了吗?
user6350786:
回复 Nancy Wang:
还没有烧写成功,应该是执行烧写脚本出了问题
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p2 rootwait
bootcmd=fatload mmc 0 0x82000000 uImage; fatload mmc 0 0x83000000 am335x-boneblack.dtb; bootm 0x82000000 – 0x83000000
uenvcmd=boot
TI中文支持网


