找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 329|回复: 1

u-boot 设置u盘启动无法设置块设备

[复制链接]

1

主题

0

回帖

27

积分

新手上路

积分
27
发表于 2024-10-25 22:01:20 | 显示全部楼层 |阅读模式
本帖最后由 yixuan 于 2024-10-25 22:12 编辑

Loading Environment from SPIFlash... OK
frame buffer addr: 0x900000000dc00000
In:    serial,gpiobtn,usbkbd
Out:   serial,vidconsole
Err:   serial,vidconsole
Net:   eth0: ethernet@0x16020000
************************** Notice **************************
Press c to enter u-boot console, m to enter boot menu
************************************************************
Bus ehci@0x16080000: USB EHCI 1.00
Bus ohci@0x16088000: USB OHCI 1.0
scanning bus ehci@0x16080000 for devices... 2 USB Device(s) found
scanning bus ohci@0x16088000 for devices... 1 USB Device(s) found
Autoboot in 3 seconds
unable to select a mode : -1
mmc_init: -524, time 27
** Bad device specification mmc 0 **
Couldn't find partition mmc 0
Can't set block device
Wrong Image Type for bootm command
ERROR -91: can't get kernel image!
Bootcmd="setenv bootargs ${bootargs} mtdparts=${mtdparts}; ext4load mmc 0 ${loadaddr} /boot/uImage;bootm"
Boot Kernel failed. Kernel not found or bad.
Autoboot in 3 seconds
SOC#setenv bootargs root=/dev/sda1 rootdelay=5
SOC#ext4load usb 0:1 ${loadaddr} boot/uImage
Can't set block device
SOC#usb storage
  Device 0: Vendor: Mass     Rev: 1.00 Prod: Storage Device
            Type: Removable Hard Disk
            Capacity: 14980.0 MB = 14.6 GB (30679040 x 512)
SOC#usb part 0

Partition Map for USB device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     1               30679039        5b2fad14-01     ee


3

主题

1

回帖

27

积分

新手上路

积分
27
发表于 2024-10-27 12:51:22 | 显示全部楼层
检查U盘分区是否为 mbr ext4 分区格式
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2024-12-4 00:48 , Processed in 0.078960 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表