嵌入式爱好者

查看: 8370|回复: 4

[Ubuntu] LS1046A U盘烧写失败

[复制链接]

4

主题

10

帖子

40

积分

AM335x通行证

扫一扫,手机访问本帖
发表于 2021-10-9 17:35:01 | 显示全部楼层 |阅读模式
通过U盘烧写 原厂的镜像,烧写失败,请问这是什么问题呢?

烧写时的log如下:
Hit any key to stop autoboot:  0
=>
=>
=>
=> boot
starting USB...
USB0:   Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
USB1:   Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2:   Register 200017f NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 2 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: SanDisk Rev: 1.00 Prod: Cruzer Blade
            Type: Removable Hard Disk
            Capacity: 30024.0 MB = 29.3 GB (61489152 x 512)
... is now current device
Scanning usb 0:4...
Found U-Boot script /ls1046ardb_update.scr
365 bytes read in 20 ms (17.6 KiB/s)
## Executing script at 80000000
** Invalid partition 1 **
** Invalid partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
SCRIPT FAILED: continuing...
Found U-Boot script /boot/ls1046ardb_boot.scr
926 bytes read in 32 ms (27.3 KiB/s)
## Executing script at 80000000
** Invalid partition 3 **
** Invalid partition 2 **
** Invalid partition 2 **
** Invalid partition 2 **
Bad Linux ARM64 Image magic!
SCRIPT FAILED: continuing...
switch to partitions #0, OK
mmc0(part 0) is current device
** Unrecognized filesystem type **
Scanning mmc 0:2...
Found U-Boot script /boot/ls1046ardb_boot.scr
926 bytes read in 18 ms (49.8 KiB/s)
## Executing script at 80000000
** Unable to read file /boot/uEnv.txt **
21590528 bytes read in 1108 ms (18.6 MiB/s)
29605 bytes read in 24 ms (1.2 MiB/s)
## Flattened Device Tree blob at 90000000
   Booting using the fdt blob at 0x90000000
   Using Device Tree in place at 0000000090000000, end 000000009001a3a4

Starting kernel ...


回复

使用道具 举报

4

主题

10

帖子

40

积分

AM335x通行证

 楼主| 发表于 2021-10-9 17:38:14 | 显示全部楼层
本帖最后由 Mxc77121337 于 2021-10-9 17:40 编辑

烧写的镜像为飞凌提供的镜像C:\Users\Lenovo\Desktop\11111111.png
点评回复 支持 反对

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2021-10-11 08:27:18 | 显示全部楼层
看打印信息U盘存在无效分区,建议重新格式化一下再拷贝镜像进行烧写;或者换个一个其他U盘进行烧写
U盘大小要大于4G,格式为FAT32格式
点评回复 支持 反对

使用道具 举报

4

主题

10

帖子

40

积分

AM335x通行证

 楼主| 发表于 2021-10-11 15:19:26 | 显示全部楼层
多谢,换了一个U盘就可以烧写了。
还有一个问题请教一下,U盘只烧写Image镜像,怎么实现?  不烧写ubuntu.img,

点评

djh
单步更新内核: 可以使用 U 盘直接替换文件系统中/run/media/mmcblk0p2/boot/的镜像。 使用如下命令替换镜像: cp -rf /run/media/sda1/boot /run/media/mmcblk0p2/ 然后再输入 sync 保存 重启即可。  详情 回复 发表于 2021-10-11 17:00
点评回复 支持 反对

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2021-10-11 17:00:24 | 显示全部楼层
Mxc77121337 发表于 2021-10-11 15:19
多谢,换了一个U盘就可以烧写了。
还有一个问题请教一下,U盘只烧写Image镜像,怎么实现?  不烧写ubuntu. ...

单步更新内核:
可以使用 U 盘直接替换文件系统中/run/media/mmcblk0p2/boot/的镜像。
使用如下命令替换镜像:
cp -rf /run/media/sda1/boot /run/media/mmcblk0p2/
然后再输入 sync 保存 重启即可。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-20 14:26

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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