Trying to build Debian for my BeagleV-Fire, ./04_build_linux.sh
gave me:
......
NM System.map
SORTTAB vmlinux
OBJCOPY arch/riscv/boot/Image
Kernel: arch/riscv/boot/Image is ready
Compressing 6.1.43-linux4microchip+fpga-2023.09-20231213+-modules.tar.gz...
'./.config' -> '../patches/linux/mpfs_defconfig'
'./arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts' -> '../patches/linux/dts/mpfs-beaglev-fire.dts'
'./arch/riscv/boot/dts/microchip/mpfs-beaglev-fire-fabric.dtsi' -> '../patches/linux/dts/mpfs-beaglev-fire-fabric.dtsi'
'./arch/riscv/boot/Image' -> '../deploy/input/Image'
cp: cannot stat './arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dtb': No such file or directory
'./patches/linux/beaglev_fire.its' -> './deploy/input/beaglev_fire.its'
FATAL ERROR: Couldn't open "./mpfs-beaglev-fire.dtb": No such file or directory
../../u-boot/tools/mkimage: Can't open beaglev_fire.itb.tmp: No such file or directory
Error: Bad parameters for FIT image type
I tried to manually convert from mpfs-beaglev-fire.dts
to mpfs-beaglev-fire.dtb
, but still erronous:
➜ microchip git:(linux4microchip+fpga-2023.09) ✗ dtc -I dts -O dtb -o mpfs-beaglev-fire.dtb mpfs-beaglev-fire.dts
Error: mpfs-beaglev-fire.dts:6.1-9 syntax error
FATAL ERROR: Unable to parse input tree
Odd, it seems you ran the 04 script, these whole sections were ignored…
…
Why is if [ -f arch/riscv/configs/mpfs_defconfig ]
failing…
What is your os?
Regards,
Problem solved by adding dtb-$(CONFIG_SOC_MICROCHIP_POLARFIRE) += mpfs-beaglev-fire.dtb
into LINUXROOT/arch/riscv/boot/dts/microchip/Makefile
.
Kernel: arch/riscv/boot/Image is ready
Compressing 6.1.43-linux4microchip+fpga-2023.09-20231213+-modules.tar.gz...
'./.config' -> '../patches/linux/mpfs_defconfig'
'./arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dts' -> '../patches/linux/dts/mpfs-beaglev-fire.dts'
'./arch/riscv/boot/dts/microchip/mpfs-beaglev-fire-fabric.dtsi' -> '../patches/linux/dts/mpfs-beaglev-fire-fabric.dtsi'
'./arch/riscv/boot/Image' -> '../deploy/input/Image'
'./arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dtb' -> '../deploy/input/mpfs-beaglev-fire.dtb'
'./patches/linux/beaglev_fire.its' -> './deploy/input/beaglev_fire.its'
FIT description: U-Boot fitImage for the BeagleV-Fire
Created: Wed Dec 13 15:01:16 2023
Image 0 (kernel)
Description: Linux kernel
Created: Wed Dec 13 15:01:16 2023
Type: Kernel Image
Compression: gzip compressed
Data Size: 8621692 Bytes = 8419.62 KiB = 8.22 MiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: sha256
Hash value: 10c37a7b5ca3b6b511a5fe81635cad6e10ed468d8a12d6489bf773d645116510
Image 1 (base_fdt)
Description: Flattened Device Tree blob
Created: Wed Dec 13 15:01:16 2023
Type: Flat Device Tree
Compression: uncompressed
Data Size: 20670 Bytes = 20.19 KiB = 0.02 MiB
Architecture: RISC-V
Load Address: 0x8a000000
Hash algo: sha256
Hash value: b8fcfe485d229df53d3f68d5db0372237c8754bc1e96822c4527362ce076d537
Default Configuration: 'kernel_dtb'
Configuration 0 (kernel_dtb)
Description: 1 Linux kernel, FDT blob
Kernel: kernel
FDT: base_fdt
Configuration 1 (base_dtb)
Description: Base FDT blob for BeagleV-Fire board
Kernel: unavailable
FDT: base_fdt