Kernel Menu Deconfiguration

Follow the steps below to enable the kernel menu deconfiguration for U-Boot.
  1. Use the following command to open the configuration file (with the ".configuration" extension).
    • For JH7110 EVB:
      vim freelight-u-sdk/u-boot/configs/starfive_evb_defconfig
    • For VisionFive 2:
      vim freelight-u-sdk/u-boot/configs/starfive_visionfive_defconfig
  2. Locate your target macro definition item, and use the following approach to disable the function if needed.
    • To disable a function, simply add a "#" ahead of the corresponding macro definition, or change the "y" inline with a macro definition to "n".
    Note: You are not allowed to enable a function in the deconfiguation file. If you need to re-enable a disabled function, perform the operation using menuconfig following Kernel Menu Configuration. The deconfiguration file will be updated once you have successfully enabled your target function.
    The following image shows an example of the configuration file.
    Note: The example is based on VisionFive 2. If you are working on the JH7110 EVB, make sure you understand the macro definition you encounter can be different.
    Figure 1. Deconfiguration File
The following table provides descriptions for some typical macro definitions.
  • CONFIG_RISCV: Whether to support the RISC-V ISA.
  • CONFIG_SYS_MALLOC_F_LEN: Field length for the malloc function.
  • CONFIG_NR_DRAM_BANKS: Total number of the DRAM banks.
  • CONFIG_SPL_DM_SPI: Whether to enable device management via SPI.
  • CONFIG_DEFAULT_DEVICE_TREE: Name of the default device tree file for DT control.
  • CONFIG_SPL_MMC_SUPPORT: Whether to enable the mmc command support for Secondary Program Loader (SPL).
  • CONFIG_SPL: Whether to enable SPL.
  • CONFIG_SPL_SPI_FLASH_SUPPORT: Whether to enable the SPI flash support for SPL.
  • CONFIG_SPL_SPI_SUPPORT: Whether to enable the SPI support for SPL.
  • CONFIG_BUILD_TARGET: Name of the build target file.
  • CONFIG_TARGET_STARFIVE_VISIONFIVE: Whether to support VisionFive 2.
  • CONFIG_SPL_FIT_SOURCE: The "*.its" source file for U-Boot FIT image.
  • CONFIG_SYS_PROMPT: Shell prompt.
  • And so on...