21ic问答首页 - buildroot编的fitImage(initramfs)在icicle kit上无法运行
buildroot编的fitImage(initramfs)在icicle kit上无法运行
大家好,我有一个polarfire soc icicle kit开发板。默认可以启动。里面的软件版本如下:
PolarFire(R) SoC Hart Software Services (HSS) - version 0.99.29-dev-build
MPFS HAL version 1.8.140 / Mi-V IHC version 0.1.1
(c) Copyright 2017-2021 Microchip FPGA Embedded Systems Solutions.
[6.45158] HSS_E51_Banner(): incorporating OpenSBI - version 0.9
(c) Copyright 2019-2021 Western Digital Corporation.
U-Boot 2022.01 (Jan 10 2022 - 18:46:34 +0000)
Linux version 5.12.19 (oe-user@oe-host) (riscv64-oe-linux-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP Mon Feb 14 12:25:04 UTC 2022
我自己使用 buildroot ,buildroot-2025.11.tar.bz2 +buildroot-external-microchip-linux4microchip-fpga-2025.10.zip
PolarFire(R) SoC Hart Software Services (HSS) - version 0.99.29-dev-build
MPFS HAL version 1.8.140 / Mi-V IHC version 0.1.1
(c) Copyright 2017-2021 Microchip FPGA Embedded Systems Solutions.
[6.45158] HSS_E51_Banner(): incorporating OpenSBI - version 0.9
(c) Copyright 2019-2021 Western Digital Corporation.
U-Boot 2022.01 (Jan 10 2022 - 18:46:34 +0000)
Linux version 5.12.19 (oe-user@oe-host) (riscv64-oe-linux-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP Mon Feb 14 12:25:04 UTC 2022
我自己使用 buildroot ,buildroot-2025.11.tar.bz2 +buildroot-external-microchip-linux4microchip-fpga-2025.10.zip
BR2_EXTERNAL=../buildroot-external-microchip/ make icicle_initramfs_defconfig
make
生成了镜像:
da---- 2026/1/6 9:59 dts
da---- 2026/1/6 9:54 microchip
da---- 2026/1/6 9:59 mpfs_icicle
-a---- 2026/1/6 9:44 559 boot.scr
-a---- 2026/1/6 10:00 62914560 boot.vfat
-a---- 2026/1/6 10:00 2283 boot.vfat.bmap
-a---- 2026/1/6 9:59 57505280 Image
-a---- 2026/1/6 9:59 45813901 Image.gz
-a---- 2026/1/6 9:54 24218 mpfs-icicle-kit.dtb
-a---- 2026/1/6 10:00 45872416 mpfs_icicle.itb
-a---- 2026/1/6 9:58 4058 mpfs_icicle.its
-a---- 2026/1/6 9:58 787088 payload.bin
-a---- 2026/1/6 9:59 107531776 rootfs.cpio
-a---- 2026/1/6 9:59 39653388 rootfs.cpio.gz
-a---- 2026/1/6 9:59 113029120 rootfs.tar
-a---- 2026/1/6 10:00 63737856 sdcard.img
-a---- 2026/1/6 10:00 2394 sdcard.img.bmap
-a---- 2026/1/6 9:44 785348 u-boot.bin
-a---- 2026/1/6 9:44 8192 uboot-env.bin
然后,我把payload.bin使用dd写进了板子的emmc,然后启动板子,中断u-boot,并执行如下操作:
U-Boot 2025.07-linux4microchip+fpga-2025.10 (Mar 21 2026 - 22:38:32 +0800)
CPU: sifive,u54-mc
Model: Microchip PolarFire-SoC Icicle Kit
DRAM: 1 GiB (total 2 GiB)
Core: 67 devices, 16 uclasses, devicetree: board
MMC: mmc@20008000: 0
Loading Environment from FAT... Unable to use mmc 0:2...
In: serial@20100000
Out: serial@20100000
Err: serial@20100000
Net: eth1: ethernet@20110000, eth0: ethernet@20112000
Hit any key to stop autoboot: 0
RISC-V #
RISC-V #
RISC-V #
RISC-V #
RISC-V #
RISC-V #
RISC-V # setenv ipaddr 192.168.1.5;setenv netmask 255.255.255.0;setenv serverip 192.168.1.28;setenv gatewayip 192.168.1.1
RISC-V # tftpboot 0x8e000000 mpfs_icicle.itb
ethernet@20112000: PHY present at 9
ethernet@20112000: Starting autonegotiation...
ethernet@20112000: Autonegotiation complete
ethernet@20112000: link up, 100Mbps full-duplex (lpa: 0xcd81)
Using ethernet@20112000 device
TFTP from server 192.168.1.28; our IP address is 192.168.1.5
Filename 'mpfs_icicle.itb'.
Load address: 0x8e000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######################################################
1.7 MiB/s
done
Bytes transferred = 45872416 (2bbf520 hex)
RISC-V # bootm 0x8e000000
Loading kernel (any) from FIT Image at 8e000000 ...Model: Microchip PolarFire-SoC Icicle Kit
DRAM: 1 GiB (total 2 GiB)
Core: 67 devices, 16 uclasses, devicetree: board
MMC: mmc@20008000: 0
Loading Environment from FAT... Unable to use mmc 0:2...
In: serial@20100000
Out: serial@20100000
Err: serial@20100000
Net: eth1: ethernet@20110000, eth0: ethernet@20112000
Hit any key to stop autoboot: 0
RISC-V #
RISC-V #
RISC-V #
RISC-V #
RISC-V #
RISC-V #
RISC-V # setenv ipaddr 192.168.1.5;setenv netmask 255.255.255.0;setenv serverip 192.168.1.28;setenv gatewayip 192.168.1.1
RISC-V # tftpboot 0x8e000000 mpfs_icicle.itb
ethernet@20112000: PHY present at 9
ethernet@20112000: Starting autonegotiation...
ethernet@20112000: Autonegotiation complete
ethernet@20112000: link up, 100Mbps full-duplex (lpa: 0xcd81)
Using ethernet@20112000 device
TFTP from server 192.168.1.28; our IP address is 192.168.1.5
Filename 'mpfs_icicle.itb'.
Load address: 0x8e000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#######################################################
1.7 MiB/s
done
Bytes transferred = 45872416 (2bbf520 hex)
RISC-V # bootm 0x8e000000
Using 'conf-microchip,mpfs-icicle-kit-prod' configuration
Trying 'kernel' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x8e0000cc
Data Size: 45813901 Bytes = 43.7 MiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: sha256
Hash value: cb05a885c364989999458ee8c3e0ca89ef4035889fc676f9d859efe3ed12e05d
Verifying Hash Integrity ... sha256+ OK
Loading fdt (any) from FIT Image at 8e000000 ...Trying 'kernel' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x8e0000cc
Data Size: 45813901 Bytes = 43.7 MiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: sha256
Hash value: cb05a885c364989999458ee8c3e0ca89ef4035889fc676f9d859efe3ed12e05d
Verifying Hash Integrity ... sha256+ OK
Using 'conf-microchip,mpfs-icicle-kit-prod' configuration
Trying 'fdt-mpfs-icicle-kit-prod.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x90bb7204
Data Size: 24328 Bytes = 23.8 KiB
Architecture: RISC-V
Load Address: 0x8a000000
Hash algo: sha256
Hash value: 680f9ab0889303afe616afe350cda577e61dc22d561b334a59d9ed0638ca71e3
Verifying Hash Integrity ... sha256+ OK
Loading fdt from 0x90bb7204 to 0x8a000000
Booting using the fdt blob at 0x8a000000
Working FDT set to 8a000000
Uncompressing Kernel Image to 80200000
Loading Device Tree to 000000008dff7000, end 000000008dffff07 ... OK
Working FDT set to 8dff7000
Trying 'fdt-mpfs-icicle-kit-prod.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x90bb7204
Data Size: 24328 Bytes = 23.8 KiB
Architecture: RISC-V
Load Address: 0x8a000000
Hash algo: sha256
Hash value: 680f9ab0889303afe616afe350cda577e61dc22d561b334a59d9ed0638ca71e3
Verifying Hash Integrity ... sha256+ OK
Loading fdt from 0x90bb7204 to 0x8a000000
Booting using the fdt blob at 0x8a000000
Working FDT set to 8a000000
Uncompressing Kernel Image to 80200000
Loading Device Tree to 000000008dff7000, end 000000008dffff07 ... OK
Working FDT set to 8dff7000
Starting kernel ...
[ 0.000000] Linux version 6.12.48-linux4microchip+fpga-2025.10 (wuming@ThinkPad-P16s-Gen-1) (riscv64-buildroot-linux-gnu-gcc.br_real (Buildroot 2025.11) 14.3.0, GNU ld (GNU Binutils) 2.43.1) #2 SMP Tue Jan 6 09:59:50 CST 2026
[ 0.000000] Machine model: Microchip PolarFire-SoC Icicle Kit (Production Silicon)
[ 0.000000] SBI specification v0.3 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x9
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8')
[ 0.000000] printk: legacy bootconsole [ns16550a0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000c4000000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node non-cached-low-buffer, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x00000000c4000000..0x00000000c7ffffff (65536 KiB) nomap non-reusable non-cached-low-buffer
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000001412000000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node non-cached-high-buffer, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000001412000000..0x0000001421ffffff (262144 KiB) nomap non-reusable non-cached-high-buffer
[ 0.000000] Machine model: Microchip PolarFire-SoC Icicle Kit (Production Silicon)
[ 0.000000] SBI specification v0.3 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x9
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000020100000 (options '115200n8')
[ 0.000000] printk: legacy bootconsole [ns16550a0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000c4000000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node non-cached-low-buffer, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x00000000c4000000..0x00000000c7ffffff (65536 KiB) nomap non-reusable non-cached-low-buffer
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000001412000000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node non-cached-high-buffer, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000001412000000..0x0000001421ffffff (262144 KiB) nomap non-reusable non-cached-high-buffer
然后就没有输出打印了,请问这是怎么回事,怎么解决呢?感谢!

问答
赞0
评论
2026-03-25
赞0
https://github.com/polarfire-soc/icicle-kit-reference-design/releases
评论
2026-03-24
您需要登录后才可以回复 登录 | 注册