嵌入式爱好者

查看: 13|回复: 1

[Linux] 请问OK6231 烧录自己编译的固件后无法启动怎么解决?

[复制链接]

3

主题

5

帖子

15

积分

FCU11xx通行证

扫一扫,手机访问本帖
发表于 9 小时前 | 显示全部楼层 |阅读模式
用下载的固件制作SD卡烧录能启动,用下载的代码,把编译后的制作成SD卡烧录后就不能启动,问题日志如下:

U-Boot 2023.04 (Dec 13 2023 - 05:38:52 +0000)

SoC:   AM62X SR1.0 HS-FS
Model: Texas Instruments AM625 SK
DRAM:  1 GiB
Core:  81 devices, 31 uclasses, devicetree: separate
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
splashfile is <NULL>,bootpart is 0:2
3072056 bytes read in 31 ms (94.5 MiB/s)
59305 bytes read in 14 ms (4 MiB/s)
Unknown command ' - try 'help'
Saving Environment to MMC... Writing to MMC(0)... OK
Net:   eth0: ethernet@8000000port@1
Hit space key to stop autoboot:  0
## Error: "findfdt" not defined
switch to partitions #0, OK
mmc0(part 0) is current device
SD/MMC found on device 0
Failed to load 'boot.scr'
Failed to load 'uEnv.txt'
MMC: no card present
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Can't set block device
21522944 bytes read in 131 ms (156.7 MiB/s)
59305 bytes read in 14 ms (4 MiB/s)
Working FDT set to 88000000
4835 bytes read in 14 ms (336.9 KiB/s)
4402 bytes read in 14 ms (306.6 KiB/s)
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
398 bytes read in 14 ms (27.3 KiB/s)
failed on fdt_overlay_apply(): FDT_ERR_BADMAGIC
base fdt does did not have a /__symbols__ node
make sure you've compiled with -@
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
---------------------------------------------
0: Exit to console
1: Reboot
2: Display type
---------------------------------------------

通过网络方式启动是可以的,然后用网络方式更新Image和dtb文件,重启还是不能启动
1. 证明固件是没有问题的,能启动
2. 证明是确实更新了的
回复

使用道具 举报

3

主题

5

帖子

15

积分

FCU11xx通行证

 楼主| 发表于 4 小时前 | 显示全部楼层
贴一个正常启动的日志

---------------------------------------
U-Boot 2023.04 (Dec 13 2023 - 05:38:52 +0000)

SoC:   AM62X SR1.0 HS-FS
Model: Texas Instruments AM625 SK
DRAM:  1 GiB
Core:  81 devices, 31 uclasses, devicetree: separate
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
splashfile is <NULL>,bootpart is 0:2
3072056 bytes read in 31 ms (94.5 MiB/s)
60231 bytes read in 15 ms (3.8 MiB/s)
Unknown command '8 - try 'help'
Saving Environment to MMC... Writing to MMC(0)... OK
Net:   eth0: ethernet@8000000port@1
Hit space key to stop autoboot:  0
## Error: "findfdt" not defined
switch to partitions #0, OK
mmc0(part 0) is current device
SD/MMC found on device 0
Failed to load 'boot.scr'
Failed to load 'uEnv.txt'
MMC: no card present
** Bad device specification mmc 1 **
Couldn't find partition mmc 1:1
Can't set block device
21522944 bytes read in 131 ms (156.7 MiB/s)
60231 bytes read in 14 ms (4.1 MiB/s)
Working FDT set to 88000000
4977 bytes read in 14 ms (346.7 KiB/s)
4575 bytes read in 14 ms (318.4 KiB/s)
730 bytes read in 14 ms (50.8 KiB/s)
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
Working FDT set to 88000000
   Loading Device Tree to 000000008feee000, end 000000008fffffff ... OK
Working FDT set to 8feee000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.33-g36fc74346200-dirty (root@ubuntu) (aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 11.3.Rel1) 11.3.1 20220712, GNU ld (Arm GNU Toolchain 11.3.Rel1) 2.38.20220708) #1 SMP PREEMPT Fri Dec 20 09:28:17 CST 2024
点评回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-20 19:22

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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