設置 | 登錄 | 註冊

目前共有8篇帖子。

烧录镜像后RV1103无法启动,串口输出uboot: decompress error, ret=1

1樓 巨大八爪鱼 2025-3-13 11:29

鸇DR 306b9977f5 wesley.yao 23/12/21-09:28:37,fwver: v1.15
S5P1
4x
fc27
rgef0
rgef1
DDRConf1
DDR2, BW=16 Col=10 Bk=4 CS0 Row=13 CS=1 Size=64MB
528MHz
DDR bin out

U-Boot SPL board init
U-Boot SPL 2017.09 (Mar 12 2025 - 17:41:14)
Trying to boot from MMC2
MMC: no card present
mmc_init: -123, time 2
spl: mmc init failed with error: -123
Trying to boot from MTD1
ENVF: Primary 0x00000000 - 0x00040000
No misc partition
Trying fit image at 0x400 sector
## Verified-boot: 0
## Checking uboot 0x00200000 (lzma @0x00400000) ... sha256(e3b0c44298...) + uboot: decompress error, ret=1
OK
## Checking fdt 0x00200000 ... sha256(9f596c5683...) + OK
Total: 65.383/146.740 ms

Jumping to U-Boot(0x00200000)

然后后面就卡死了。

2樓 巨大八爪鱼 2025-3-13 11:31

查看编译过程的输出:

  CAT     spl/u-boot-spl-dtb.bin
  COPY    spl/u-boot-spl.bin
  CFGCHK  u-boot.cfg
egrep: warning: egrep is obsolescent; using grep -E
/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/u-boot/scripts/compress.sh: line 22: lzma: command not found
pack u-boot.itb okay! Input: /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/rkbin/RKTRUST/RV1106TOS.ini

FIT description: FIT Image with ATF/OP-TEE/U-Boot/MCU
Created:         Thu Mar 13 11:06:56 2025
 Image 0 (uboot)
  Description:  U-Boot
  Created:      Thu Mar 13 11:06:56 2025
  Type:         Standalone Program
  Compression:  lzma compressed
  Data Size:    0 Bytes = 0.00 KiB = 0.00 MiB
  Architecture: ARM
  Load Address: 0x00200000
  Entry Point:  unavailable
  Hash algo:    sha256
  Hash value:   e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
 Image 1 (fdt)
  Description:  U-Boot dtb
  Created:      Thu Mar 13 11:06:56 2025
  Type:         Flat Device Tree
  Compression:  uncompressed
  Data Size:    9670 Bytes = 9.44 KiB = 0.01 MiB
  Architecture: ARM
  Hash algo:    sha256
  Hash value:   9f596c5683acf8a637b6e1a3cb1669bfc33f229b4cef5782c67070aaf0bc543e
 Default Configuration: 'conf'
 Configuration 0 (conf)
  Description:  rv1106-evb
  Kernel:       unavailable
  FDT:          fdt
  Loadables:    uboot
egrep: warning: egrep is obsolescent; using grep -E
********boot_merger ver 1.35********
Info:Pack loader ok.
creating new idblock from loader...
idblock binary saving at rv1106_idblock_v1.15.102.img
pack loader(SPL) okay! Input: /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/rkbin/RKBOOT/RV1106MINIALL.ini

/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/u-boot
pack loader with new: spl/u-boot-spl.bin

Image(no-signed, version=0): uboot.img (FIT with uboot, trust...) is ready
Image(no-signed): rv1106_idblock_v1.15.102.img (with spl, ddr...) is ready
pack uboot.img okay! Input: /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/rkbin/RKTRUST/RV1106TOS.ini

Platform RV1106 is build OK, with exist .config
arm-rockchip830-linux-uclibcgnueabihf-
Thu Mar 13 11:06:56 AWST 2025
~/Documents/Code/C/luckfox-pico/sysdrv
'/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/u-boot/uboot.img' -> '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/out/image_uclibc_rv1106/uboot.img'
'/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/u-boot/rv1106_idblock_v1.15.102.img' -> '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/out/image_uclibc_rv1106/idblock.img'
'/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/u-boot/rv1106_download_v1.15.108.bin' -> '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/out/image_uclibc_rv1106/download.bin'
~/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/u-boot ~/Documents/Code/C/luckfox-pico/sysdrv
~/Documents/Code/C/luckfox-pico/sysdrv


 [INSTALL]  /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/out/image_uclibc_rv1106/idblock.img /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/out/image_uclibc_rv1106/uboot.img /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/out/image_uclibc_rv1106/download.bin
    TO      /home/oct1158/Documents/Code/C/luckfox-pico/output/image

 


 [INSTALL]  /home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/out/bin/board_uclibc_rv1106/uboot.debug.tar.bz2
    TO      /home/oct1158/Documents/Code/C/luckfox-pico/output/out/sysdrv_out/board_uclibc_rv1106


make: Leaving directory '/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv'
[build.sh:info] Running build_uboot succeeded.

 

里面有这样一句话:

/home/oct1158/Documents/Code/C/luckfox-pico/sysdrv/source/uboot/u-boot/scripts/compress.sh: line 22: lzma: command not found

推测是因为linux虚拟机里面没有安装lzma命令,无法压缩uboot镜像,所以烧录到板子上后就提示解压失败。

3樓 巨大八爪鱼 2025-3-13 11:35
用金属镊子短接SPI Flash的5脚(DI/D0)和6脚(CLK),插Type-C USB线上电,再松开镊子,可以重新进入下载模式。
4樓 巨大八爪鱼 2025-3-13 13:53

安装lzma命令:sudo dnf install lzma

[oct1158@fed41-bh8f7e0 luckfox-pico]$ sudo dnf install lzma
Updating and loading repositories:
 Fedora 41 - x86_64 - Updates                                                                         100% |  27.3 KiB/s |  38.7 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver                                                   100% |   4.6 KiB/s |  17.3 KiB |  00m04s
 Fedora 41 - x86_64                                                                                   100% |  10.8 KiB/s |   8.3 KiB |  00m01s
 Copr repo for PyCharm owned by phracek                                                               100% |   2.0 KiB/s |   2.1 KiB |  00m01s
 RPM Fusion for Fedora 41 - Nonfree - Steam                                                           100% |  14.3 KiB/s |  16.5 KiB |  00m01s
 google-chrome                                                                                        100% |   4.6 KiB/s |   1.3 KiB |  00m00s
 Fedora 41 - x86_64 - Updates                                                                         100% |   1.2 MiB/s |   3.3 MiB |  00m03s
 google-chrome                                                                                        100% |   5.6 KiB/s |   3.2 KiB |  00m01s
Repositories loaded.
Package                                        Arch        Version                                         Repository                     Size
Installing:
 xz-lzma-compat                                x86_64      1:5.6.2-2.fc41                                  fedora                     38.5 KiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 34 KiB. Need to download 34 KiB.
After this operation, 38 KiB extra will be used (install 38 KiB, remove 0 B).
Is this ok [y/N]: y
[1/1] xz-lzma-compat-1:5.6.2-2.fc41.x86_64                                                            100% |  37.2 KiB/s |  33.9 KiB |  00m01s
----------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total                                                                                           100% |  22.3 KiB/s |  33.9 KiB |  00m02s
Running transaction
[1/3] Verify package files                                                                            100% | 250.0   B/s |   1.0   B |  00m00s
[2/3] Prepare transaction                                                                             100% |   0.0   B/s |   1.0   B |  00m02s
[3/3] Installing xz-lzma-compat-1:5.6.2-2.fc41.x86_64                                                 100% |  67.5 KiB/s |  51.3 KiB |  00m01s
Complete!
[oct1158@fed41-bh8f7e0 luckfox-pico]$

 

重新打包镜像:./build.sh

 

烧录:sudo ./rkflash.sh update

[oct1158@fed41-bh8f7e0 luckfox-pico]$ sudo ./rkflash.sh update
Using /home/oct1158/Documents/Code/C/luckfox-pico/tools/linux/Linux_Upgrade_Tool/config.ini
Loading firmware...
Support Type:1106       FW Ver:0.0.00   FW Time:2025-03-13 13:49:45
Loader ver:1.01 Loader Time:2025-03-13 13:47:47
Start to upgrade firmware...
Download Boot Start
Download Boot Success
Wait For Maskrom Start
Wait For Maskrom Success
Test Device Start
Test Device Success
Check Chip Start
Check Chip Success
Get FlashInfo Start
Get FlashInfo Success
Prepare IDB Start
Prepare IDB Success
Download IDB Start
Download IDB Success
Download Firmware Start
Download Image... (100%)
Download Firmware Success
Upgrade firmware ok.
[oct1158@fed41-bh8f7e0 luckfox-pico]$

 

这下就可以烧录成功了,并且烧录后不需要重新插USB线就能进系统。

[oct1158@fed41-bh8f7e0 luckfox-pico]$ sudo adb shell
* daemon not running; starting now at tcp:5037
* daemon started successfully
[root@luckfox ]# ls
bin            lib32          oem            run            usr
data           lib64          opt            sbin           var
dev            linuxrc        proc           sys
etc            media          rockchip_test  tmp
lib            mnt            root           userdata
[root@luckfox ]#

5樓 巨大八爪鱼 2025-3-13 13:56

ko文件信息:

[oct1158@fed41-bh8f7e0 luckfox-pico]$ ls
build.sh  config  IMAGE  media  output  project  README_CN.md  README.md  rkflash.sh  sysdrv  tools  UPDATE_LOG_CN.md  UPDATE_LOG.md
[oct1158@fed41-bh8f7e0 luckfox-pico]$ cd ~
[oct1158@fed41-bh8f7e0 ~]$ ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
[oct1158@fed41-bh8f7e0 ~]$ adb pull /oem/usr/ko/sc3336.ko
/oem/usr/ko/sc3336.ko: 1 file pulled, 0 skipped. 0.4 MB/s (17428 bytes in 0.047s)
[oct1158@fed41-bh8f7e0 ~]$ file sc3336.ko
sc3336.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=582d4f08584f4053acff425049307245159252ef, not stripped
[oct1158@fed41-bh8f7e0 ~]$ modinfo sc3336.ko
filename:       /home/oct1158/sc3336.ko
license:        GPL v2
description:    smartsens sc3336 sensor driver
alias:          of:N*T*Csmartsens,sc3336C*
alias:          of:N*T*Csmartsens,sc3336
depends:
intree:         Y
name:           sc3336
vermagic:       5.10.160 mod_unload ARMv7 thumb2 p2v8
[oct1158@fed41-bh8f7e0 ~]$ rm sc3336.ko
[oct1158@fed41-bh8f7e0 ~]$

6樓 巨大八爪鱼 2025-3-13 13:57

linux系统信息:

[oct1158@fed41-bh8f7e0 ~]$ sudo adb shell
[root@luckfox ]# uname -a
Linux luckfox 5.10.160 #1 Thu Mar 13 11:07:19 AWST 2025 armv7l GNU/Linux
[root@luckfox ]# exit
[oct1158@fed41-bh8f7e0 ~]$

7樓 巨大八爪鱼 2025-3-13 14:04

内存信息:

[root@luckfox ]# free -h
              total        used        free      shared  buff/cache   available
Mem:          33.0M       12.3M        3.8M      324.0K       17.0M       17.6M
Swap:             0           0           0

 

磁盘信息:

[root@luckfox ]# df -h
Filesystem                Size      Used Available Use% Mounted on
ubi0:rootfs              71.6M     39.9M     31.7M  56% /
devtmpfs                 16.4M         0     16.4M   0% /dev
tmpfs                    16.5M         0     16.5M   0% /dev/shm
tmpfs                    16.5M    152.0K     16.4M   1% /tmp
tmpfs                    16.5M    172.0K     16.3M   1% /run
/dev/ubi4_0              22.4M      9.4M     13.0M  42% /oem
/dev/ubi5_0             916.0K     28.0K    888.0K   3% /userdata

 

8樓 巨大八爪鱼 2025-3-13 14:13

串口登录账号:root,登录密码:luckfox。

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。