LINUX.ORG.RU

u-boot проблема с boot.scr

 ,


1

2

boot.src (cmd):

setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 init=/sbin/init rootfstype=ext4 rw rootwait panic=10
load mmc 0 0x43000000 sun5i-a13-olinuxino-micro.dtb
load mmc 0 0x42000000 uImage
bootm 0x42000000 – 0x43000000

При запуске в автомате выдает ошибку:

Found U-Boot script /boot.scr
295 bytes read in 2 ms (143.6 KiB/s)
## Executing script at 43100000
16148 bytes read in 3 ms (5.1 MiB/s)
4815792 bytes read in 206 ms (22.3 MiB/s)
## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-4.14.281
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4815728 Bytes = 4.6 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid
SCRIPT FAILED: continuing...
16148 bytes read in 4 ms (3.8 MiB/s)
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image

При запуске вручную # bootm 0x42000000 - 0x43000000, стартует нормально:

## Booting kernel from Legacy Image at 42000000 ...
   Image Name:   Linux-4.14.281
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4815728 Bytes = 4.6 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Kernel Image
   Loading Device Tree to 49ff9000, end 49ffff13 ... OK

Starting kernel ...

Может кто подскажет как запустить в автомате? Процессор A13. U-Boot 2022.07-rc3-00073-g4fe629d2e8-dirty



Последнее исправление: koliamor (всего исправлений: 4)