Kernel successfully built for BeagleV-Fire but still obtain ERROR messages

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,

Hi, Dear Robert Nelson. Long time no see… Where is your Where is your https://eewiki.net/ ?? :grinning: :grinning: :grinning: :grinning: :grinning:

I’m using Ubuntu 22.04.3 .

A couple of things I modified, for the most up-to-date released version of HSS, U-Boot and Linux Kernel, ALL synced to 2023.09:

  1. ➜ BeagleV-Fire-ubuntu git:(main) ✗ git diff 01_git_sync.sh gave me:
diff --git a/01_git_sync.sh b/01_git_sync.sh
index cf3e230..6ab34c1 100755
--- a/01_git_sync.sh
+++ b/01_git_sync.sh
@@ -3,11 +3,11 @@
 GIT_DEPTH="20"
 GCC_VERSION="11.4.0"
 
-HSS_BRANCH="v2023.02"
+HSS_BRANCH="v2023.09"
 HSS_REPO="https://github.com/polarfire-soc/hart-software-services.git"
 
 #UBOOT_BRANCH="mpfs-uboot-2022.01"
-UBOOT_BRANCH="linux4microchip+fpga-2023.02"
+UBOOT_BRANCH="linux4microchip+fpga-2023.09"
 UBOOT_REPO="https://github.com/polarfire-soc/u-boot.git"
 #UBOOT_REPO="https://git.beagleboard.org/beaglev-fire/beaglev-fire-u-boot.git"
 #UBOOT_REPO="git@git.beagleboard.org:beaglev-fire/beaglev-fire-u-boot.git"
@@ -16,7 +16,7 @@ DT_BRANCH="v6.1.x-Beagle"
 DT_REPO="https://git.beagleboard.org/beagleboard/BeagleBoard-DeviceTrees.git"
 #DT_REPO="git@git.beagleboard.org:beagleboard/BeagleBoard-DeviceTrees.git"
 
-LINUX_BRANCH="linux4microchip+fpga-2023.06"
+LINUX_BRANCH="linux4microchip+fpga-2023.09"
 LINUX_REPO="https://github.com/linux4microchip/linux.git"
 #LINUX_REPO="https://git.beagleboard.org/beaglev-fire/beaglev-fire-linux.git"
 #LINUX_REPO="git@git.beagleboard.org:beaglev-fire/beaglev-fire-linux.git"
(END)

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