01studio_k230_sdk 编译的镜像 启动报错

Viewed 120

重现步骤

板子是2g版本,在https://developer.canaan-creative.com/zh/resource 下载01studio的镜像,使用refuse4.2和balean烧录,最后都是无法顺利启动

按照https://developer.canaan-creative.com/k230_linux/dev/ 教程,部署docker拉取不了,
随后在https://github.com/kendryte/k230_SDK 按照教程又试了下,可以编译了,但烧录进去后还是启动失败

期待结果和实际结果

软硬件版本信息

错误日志

尝试解决过程

补充材料

![image.png](/uploads/post/5pECS6QGoQG.png)![48cd7f9113eda130dceb6ec854bf2df.jpg](/uploads/post/5pEDxJ8TwrW.jpg)
2 Answers

«
U-Boot SPL 2022.10 (Aug 26 2024 - 15:47:12 +0800)
00000000: PMU Major Msg: End of CA training
00000000: PMU Major Msg: End of initialization
00000000: PMU Major Msg: End of read enable training
00000000: PMU Major Msg: End of fine write leveling
00000000: PMU Major Msg: End of read dq deskew training
00000000: PMU Major Msg: End of MPR read delay center optimization
00000000: PMU Major Msg: End of Write leveling coarse delay
00000000: PMU Major Msg: End of write delay center optimization
00000000: PMU Major Msg: End of read delay center optimization
00000000: PMU Major Msg: End of max read latency training
00000000: PMU Major Msg: Firmware run has completed

Loading Environment from MMC...
OK
sha256 error uboot boot failed
spl_board_init_f() failed: -3

reboot system

U-Boot SPL 2022.10 (Aug 26 2024 - 15:47:12 +0800)
00000000: PMU Major Msg: End of CA training
00000000: PMU Major Msg: End of initialization
00000000: PMU Major Msg: End of read enable training
00000000: PMU Major Msg: End of fine write leveling
00000000: PMU Major Msg: End of read dq deskew training
00000000: PMU Major Msg: End of MPR read delay center optimization
00000000: PMU Major Msg: End of Write leveling coarse delay
00000000: PMU Major Msg: End of write delay center optimization
00000000: PMU Major Msg: End of read delay center optimization
00000000: PMU Major Msg: End of max read latency training
00000000: PMU Major Msg: Firmware run has completed

Loading Environment from MMC...
OK

U-Boot 2022.10 (Aug 26 2024 - 15:47:12 +0800)

CPU: rv64imafdcvsu
Model: kendryte k230 canmv 01studio
DRAM: 1 GiB
Core: 21 devices, 12 uclasses, devicetree: embed
MMC: mmc0@91580000: 0
Loading Environment from MMC...
*** Warning - bad CRC, using default environment

In: serial@91400000
Out: serial@91400000
Err: serial@91400000
Net: No ethernet found.
Hit any key to stop autoboot: 5
 4
 3
 2
 1
 0
sha256 error

OpenSBI v0.9
[ 0.000000] Linux version 5.10.4 (gitlab@runner) (riscv64-unknown-linux-gnu-gcc (Xuantie-900 linux-5.10.4 glibc gcc Toolchain V2.6.0 B-20220715) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 SMP Mon Aug 26 15:27:07 CST 2024

[ 0.000000] earlycon: sbi0 at I
/O port 0x0 (options '')

[ 0.000000] printk: bootconsole [sbi0] enabled

[ 0.000000] efi: UEFI not found.

[ 0.000000] Initial ramdisk at: 0x(ptrval) (22507520 bytes)

[ 0.000000] Zone ranges:

[ 0.000000] DMA32 [mem 0x0000000008200000-0x000000000fffefff]

[ 0.000000] Normal empty

[ 0.000000] Movable zone start for each node

[ 0.000000] Early memory node ranges

[ 0.000000] node 0: [mem 0x0000000008200000-0x000000000fffefff]

[ 0.000000] Initmem setup node 0 [mem 0x0000000008200000-0x000000000fffefff]

[ 0.000000] On node 0 totalpages: 32255

[ 0.000000] DMA32 zone: 441 pages used for memmap

[ 0.000000] DMA32 zone
: 0 pages reserved

[ 0.000000] DMA32 zone: 32255 pages, LIFO batch:7

=> ERROR [internal] load metadata for docker.io/library/ubuntu:20.0423.0S------> [internal] load metadata for docker.io/library/ubuntu:20.04:------Dockerfile:14

12#13
14>>> FROM ubuntu:20.0415LABEL verdor=canaan16LABEL name=k230 sdk

ERROR: failed to solve: ubuntu:20.04: failed to resolve source metadata for docker.io/library/ubuntu:20.04: encountered unknown type text/html; children may not befetched

更新下sdk,老的sdk不支持2G内存,后面才支持的。