UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. unger
    U
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 10
    • Groups 0

    unger

    @unger

    0
    Reputation
    3
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    unger Unfollow Follow

    Latest posts made by unger

    • Can not locate config makefile for product

      Hello
      I'm using halium 7.1 to build ubuntu toch.
      When executing the command breakfast m31
      gives the error: *** Can not locate config makefile for product "lineage_m31". Stop.

      But I have a file called lineage_m31 in the /device/samsung/m31/ folder

      Why does this error occur?

      root@bd5509508ee9:/var/android# breakfast m31
      including vendor/cm/vendorsetup.sh
      build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_m31".  Stop.
      build/core/product_config.mk:249: *** Can not locate config makefile for product "cm_m31".  Stop.
      build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_m31".  Stop.
      Device m31 not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
      Repository for m31 not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
      build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_m31".  Stop.
      build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_m31".  Stop.
      
      ** Don't have a product spec for: 'lineage_m31'
      ** Do you have the right repo manifest?
      
      posted in Porting
      U
      unger
    • How build kernal on macos

      Hello.
      How will build right kernal?
      I did use flag -j64
      I have error

      created build_kernel.sh

      #!/bin/bash
      export ARCH=arm64
      export PLATFORM_VERSION=12
      export ANDROID_MAJOR_VERSION=s
      export CLANG_TRIPLE=aarch64-linux-gnu-
      export CROSS_COMPILE=aarch64-linux-android-
      
      
      make ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CONFIG_SECTION_MISMATCH_WARN_ONLY=y exynos9610-m31nsxx_defconfig
      make ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu-CROSS_COMPILE=aarch64-linux-android- CONFIG_SECTION_MISMATCH_WARN_ONLY=y -j64
      
      posted in Porting
      U
      unger
    • halium 10 on samsung M31

      I need help? Why unknown target 'halium-boot'?
      manifest file

      <?xml version="1.0" encoding="UTF-8"?>
      <manifest>
      
          <remote name="android_device_samsung_m31" fetch="https://github.com/erfanoabdi/" revision="lineage-17.1" />
      
          <project path="device/samsung/universal9610-common" name="android_device_samsung_universal9610-common" remote="android_device_samsung_m31" revision="lineage-17.1" />
      
           <project path="samsung/universal9610-common" name="android_device_samsung_universal9610-common" remote="android_device_samsung_m31" revision="lineage-17.1" />
      
          <project path="device/samsung/m31" name="android_device_samsung_m31" remote="android_device_samsung_m31" revision="lineage-17.1" />
      
          <project path="kernel/samsung/m31" name="android_kernel_samsung_universal9610" remote="android_device_samsung_m31" revision="lineage-17.1" />
      
          <project path="vendor/samsung" name="proprietary_vendor_samsung" remote="android_device_samsung_m31" revision="lineage-17.1" />
      
      </manifest>
      

      run command mka mkbootimg

      
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=10
      LINEAGE_VERSION=17.1-20240310-UNOFFICIAL-m31
      TARGET_PRODUCT=lineage_m31
      TARGET_BUILD_VARIANT=userdebug
      TARGET_BUILD_TYPE=release
      TARGET_ARCH=arm64
      TARGET_ARCH_VARIANT=armv8-a
      TARGET_CPU_VARIANT=cortex-a73
      TARGET_2ND_ARCH=arm
      TARGET_2ND_ARCH_VARIANT=armv8-a
      TARGET_2ND_CPU_VARIANT=cortex-a53
      HOST_ARCH=x86_64
      HOST_OS=darwin
      HOST_OS_EXTRA=Darwin-23.3.0-x86_64-14.3.1
      HOST_BUILD_TYPE=release
      BUILD_ID=QQ3A.200805.001
      OUT_DIR=out
      PRODUCT_SOONG_NAMESPACES=device/samsung/universal9610-common vendor/samsung/universal9610-common device/samsung/m31
      ============================================
      ninja: no work to do.
      
      #### build completed successfully (19 seconds) ####
      
      

      run command mka halium-boot

      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=10
      LINEAGE_VERSION=17.1-20240310-UNOFFICIAL-m31
      TARGET_PRODUCT=lineage_m31
      TARGET_BUILD_VARIANT=userdebug
      TARGET_BUILD_TYPE=release
      TARGET_ARCH=arm64
      TARGET_ARCH_VARIANT=armv8-a
      TARGET_CPU_VARIANT=cortex-a73
      TARGET_2ND_ARCH=arm
      TARGET_2ND_ARCH_VARIANT=armv8-a
      TARGET_2ND_CPU_VARIANT=cortex-a53
      HOST_ARCH=x86_64
      HOST_OS=darwin
      HOST_OS_EXTRA=Darwin-23.3.0-x86_64-14.3.1
      HOST_BUILD_TYPE=release
      BUILD_ID=QQ3A.200805.001
      OUT_DIR=out
      PRODUCT_SOONG_NAMESPACES=device/samsung/universal9610-common vendor/samsung/universal9610-common device/samsung/m31
      ============================================
      FAILED: ninja: unknown target 'halium-boot'
      19:03:46 ninja failed with: exit status 1
      
      #### failed to build some targets (20 seconds) ####
      
      

      FAILED: ninja: unknown target 'halium-boot'
      I need help? Why unknown target 'halium-boot'?

      posted in Porting
      U
      unger
    • RE: Error build kernel for Samsung M31

      Found another Kernal. I use https://github.com/erfanoabdi/android_kernel_samsung_universal9610

      The errors are as follows:
      created build_kernel.sh

      #!/bin/bash
      
      export ARCH=arm64
      export PLATFORM_VERSION=12
      export ANDROID_MAJOR_VERSION=s
      export CLANG_TRIPLE=aarch64-linux-gnu-
      export CROSS_COMPILE=aarch64-linux-android-
      
      
      make ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CONFIG_SECTION_MISMATCH_WARN_ONLY=y exynos9610-m31nsxx_defconfig
      make ARCH=arm64 CLANG_TRIPLE=aarch64-linux-gnu-CROSS_COMPILE=aarch64-linux-android- CONFIG_SECTION_MISMATCH_WARN_ONLY=y -j64
      

      run bash build_kernel.sh

       % bash build_kernel.sh    
        HOSTCC  scripts/basic/fixdep
        HOSTCC  scripts/kconfig/conf.o
      scripts/kconfig/conf.c:78:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                      printf(_("aborted!\n\n"));
                             ^~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:78:10: note: treat the string as an argument to avoid this
                      printf(_("aborted!\n\n"));
                             ^
                             "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:79:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                      printf(_("Console input/output is redirected. "));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:79:10: note: treat the string as an argument to avoid this
                      printf(_("Console input/output is redirected. "));
                             ^
                             "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:80:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                      printf(_("Run 'make oldconfig' to update configuration.\n\n"));
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:80:10: note: treat the string as an argument to avoid this
                      printf(_("Run 'make oldconfig' to update configuration.\n\n"));
                             ^
                             "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:90:10: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                      printf(_("(NEW) "));
                             ^~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:90:10: note: treat the string as an argument to avoid this
                      printf(_("(NEW) "));
                             ^
                             "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:291:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                                      printf(_(" (NEW)"));
                                             ^~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:291:12: note: treat the string as an argument to avoid this
                                      printf(_(" (NEW)"));
                                             ^
                                             "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:439:13: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                                              printf(_("*\n* Restart config...\n*\n"));
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:439:13: note: treat the string as an argument to avoid this
                                              printf(_("*\n* Restart config...\n*\n"));
                                                     ^
                                                     "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:641:6: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                                              _("\n*** The configuration requires explicit update.\n\n"));
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:641:6: note: treat the string as an argument to avoid this
                                              _("\n*** The configuration requires explicit update.\n\n"));
                                              ^
                                              "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:694:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                              fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:694:20: note: treat the string as an argument to avoid this
                              fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
                                              ^
                                              "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:698:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                              fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:698:20: note: treat the string as an argument to avoid this
                              fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
                                              ^
                                              "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      scripts/kconfig/conf.c:709:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
                              fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^~~~~~~~~~~~~
      scripts/kconfig/conf.c:709:20: note: treat the string as an argument to avoid this
                              fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
                                              ^
                                              "%s", 
      scripts/kconfig/lkc.h:34:17: note: expanded from macro '_'
      #define _(text) gettext(text)
                      ^
      10 warnings generated.
        SHIPPED scripts/kconfig/zconf.tab.c
        SHIPPED scripts/kconfig/zconf.lex.c
        HOSTCC  scripts/kconfig/zconf.tab.o
        HOSTLD  scripts/kconfig/conf
      drivers/samsung/misc/Kconfig:13:warning: ignoring type redefinition of 'SEC_DEBUG_TSP_LOG' from 'tristate' to 'boolean'
      'rivers/sensorhub/Kconfig:200:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:9:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:20:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:31:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:42:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:53:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:64:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:75:warning: ignoring unsupported character '
      #
      # configuration written to .config
      #
      ./scripts/gcc-version.sh: line 26: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory
      ./scripts/gcc-version.sh: line 27: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      scripts/kconfig/conf  --silentoldconfig Kconfig
      drivers/samsung/misc/Kconfig:13:warning: ignoring type redefinition of 'SEC_DEBUG_TSP_LOG' from 'tristate' to 'boolean'
      'rivers/sensorhub/Kconfig:200:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:9:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:20:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:31:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:42:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:53:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:64:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:75:warning: ignoring unsupported character '
      arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
      arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
      ./scripts/gcc-version.sh: line 26: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory
      ./scripts/gcc-version.sh: line 27: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
        CHK     include/config/kernel.release
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
        WRAP    arch/arm64/include/generated/uapi/asm/ioctl.h
        WRAP    arch/arm64/include/generated/uapi/asm/errno.h
        WRAP    arch/arm64/include/generated/uapi/asm/ioctls.h
        WRAP    arch/arm64/include/generated/uapi/asm/ipcbuf.h
        WRAP    arch/arm64/include/generated/uapi/asm/msgbuf.h
        WRAP    arch/arm64/include/generated/uapi/asm/mman.h
        WRAP    arch/arm64/include/generated/uapi/asm/kvm_para.h
        WRAP    arch/arm64/include/generated/uapi/asm/sembuf.h
        WRAP    arch/arm64/include/generated/uapi/asm/sockios.h
        WRAP    arch/arm64/include/generated/uapi/asm/shmbuf.h
        WRAP    arch/arm64/include/generated/uapi/asm/socket.h
        WRAP    arch/arm64/include/generated/uapi/asm/termbits.h
        WRAP    arch/arm64/include/generated/uapi/asm/swab.h
        WRAP    arch/arm64/include/generated/uapi/asm/resource.h
        WRAP    arch/arm64/include/generated/uapi/asm/types.h
        WRAP    arch/arm64/include/generated/uapi/asm/termios.h
        WRAP    arch/arm64/include/generated/uapi/asm/poll.h
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
        CHK     include/generated/uapi/linux/version.h
        UPD     include/generated/uapi/linux/version.h
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
        HOSTCC  scripts/basic/bin2c
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
        WRAP    arch/arm64/include/generated/asm/bugs.h
        WRAP    arch/arm64/include/generated/asm/delay.h
        WRAP    arch/arm64/include/generated/asm/clkdev.h
        WRAP    arch/arm64/include/generated/asm/emergency-restart.h
        WRAP    arch/arm64/include/generated/asm/dma.h
        WRAP    arch/arm64/include/generated/asm/early_ioremap.h
        WRAP    arch/arm64/include/generated/asm/dma-contiguous.h
        WRAP    arch/arm64/include/generated/asm/div64.h
        WRAP    arch/arm64/include/generated/asm/hw_irq.h
        WRAP    arch/arm64/include/generated/asm/irq_regs.h
        WRAP    arch/arm64/include/generated/asm/kmap_types.h
        WRAP    arch/arm64/include/generated/asm/mcs_spinlock.h
        WRAP    arch/arm64/include/generated/asm/kdebug.h
        WRAP    arch/arm64/include/generated/asm/local.h
        WRAP    arch/arm64/include/generated/asm/preempt.h
        WRAP    arch/arm64/include/generated/asm/mm-arch-hooks.h
        WRAP    arch/arm64/include/generated/asm/local64.h
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
        WRAP    arch/arm64/include/generated/asm/switch_to.h
        WRAP    arch/arm64/include/generated/asm/rwsem.h
        WRAP    arch/arm64/include/generated/asm/unaligned.h
        WRAP    arch/arm64/include/generated/asm/trace_clock.h
        WRAP    arch/arm64/include/generated/asm/serial.h
        WRAP    arch/arm64/include/generated/asm/xor.h
        WRAP    arch/arm64/include/generated/asm/set_memory.h
        WRAP    arch/arm64/include/generated/asm/segment.h
        WRAP    arch/arm64/include/generated/asm/msi.h
        WRAP    arch/arm64/include/generated/asm/sizes.h
        WRAP    arch/arm64/include/generated/asm/vga.h
        WRAP    arch/arm64/include/generated/asm/user.h
      make: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: Command not found
        HOSTCC  scripts/sortextable
        HOSTCC  scripts/kallsyms
        HOSTCC  scripts/genksyms/genksyms.o
        HOSTCC  scripts/dtc/dtc.o
        SHIPPED scripts/genksyms/parse.tab.c
        SHIPPED scripts/genksyms/lex.lex.c
        HOSTCC  scripts/dtc/flattree.o
        HOSTCC  scripts/dtc/fstree.o
        HOSTCC  scripts/dtc/livetree.o
        HOSTCC  scripts/dtc/srcpos.o
        SHIPPED scripts/genksyms/parse.tab.h
        SHIPPED scripts/dtc/dtc-parser.tab.c
        SHIPPED scripts/dtc/dtc-lexer.lex.c
        HOSTCC  scripts/dtc/treesource.o
        CC      scripts/mod/devicetable-offsets.s
      /bin/sh: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory
        HOSTCC  scripts/mod/mk_elfconfig
      make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
      make[2]: *** Waiting for unfinished jobs....
        HOSTCC  scripts/dtc/data.o
        HOSTCC  scripts/selinux/mdp/mdp
        HOSTCC  scripts/dtc/checks.o
        SHIPPED scripts/dtc/dtc-parser.tab.h
        HOSTCC  scripts/dtc/util.o
        CC      scripts/mod/empty.o
      /bin/sh: ./toolchain/clang/host/linux-x86/clang-4639204/bin/clang: No such file or directory
      make[2]: *** [scripts/mod/empty.o] Error 1
        HOSTCC  scripts/selinux/genheaders/genheaders
        HOSTCC  scripts/genksyms/parse.tab.o
        HOSTCC  scripts/genksyms/lex.lex.o
        HOSTCC  scripts/dtc/dtc-parser.tab.o
        HOSTCC  scripts/dtc/dtc-lexer.lex.o
      scripts/sortextable.c:23:10: fatal error: 'elf.h' file not found
      #include <elf.h>
               ^~~~~~~
      scripts/mod/mk_elfconfig.c:5:10: fatal error: 'elf.h' file not found
      #include <elf.h>
               ^~~~~~~
      1 error generated.
      In file included from scripts/selinux/mdp/mdp.c:48:
      In file included from ./security/selinux/include/classmap.h:2:
      In file included from ./include/uapi/linux/capability.h:17:
      ./include/uapi/linux/types.h:5:10: fatal error: 'asm/types.h' file not found
      #include <asm/types.h>
               ^~~~~~~~~~~~~
      make[2]: *** [scripts/mod/mk_elfconfig] Error 1
      1 error generated.
      make[1]: *** [scripts/mod] Error 2
      make[1]: *** Waiting for unfinished jobs....
      make[1]: *** [scripts/sortextable] Error 1
      1 error generated.
      make[3]: *** [scripts/selinux/mdp/mdp] Error 1
      make[2]: *** [scripts/selinux/mdp] Error 2
      make[2]: *** Waiting for unfinished jobs....
      In file included from scripts/selinux/genheaders/genheaders.c:18:
      In file included from ./security/selinux/include/classmap.h:2:
      In file included from ./include/uapi/linux/capability.h:17:
      ./include/uapi/linux/types.h:5:10: fatal error: 'asm/types.h' file not found
      #include <asm/types.h>
               ^~~~~~~~~~~~~
      1 error generated.
      make[3]: *** [scripts/selinux/genheaders/genheaders] Error 1
      make[2]: *** [scripts/selinux/genheaders] Error 2
      make[1]: *** [scripts/selinux] Error 2
        HOSTLD  scripts/dtc/dtc
        HOSTLD  scripts/genksyms/genksyms
      make: *** [scripts] Error 2
      make: *** Waiting for unfinished jobs....
        UPD     include/config/kernel.release
      

      Not file asm/types.h and elf.h

      posted in Porting
      U
      unger
    • Error build kernel for Samsung M31
      cd kernel/samsung/m31
      
      make ARCH=arm64 exynos9610-m31nsxx_defconfig
      #### build completed successfully (2 seconds) ####
      
      make
      

      result:

      % make
      arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
      arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
      scripts/kconfig/conf  --silentoldconfig Kconfig
      drivers/samsung/misc/Kconfig:13:warning: ignoring type redefinition of 'SEC_DEBUG_TSP_LOG' from 'tristate' to 'boolean'
      'rivers/sensorhub/Kconfig:200:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:9:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:20:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:31:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:42:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:53:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:64:warning: ignoring unsupported character '
      'rivers/sensorhub/factory/Kconfig:75:warning: ignoring unsupported character '
      arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
      arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
        CHK     include/config/kernel.release
        CHK     include/generated/uapi/linux/version.h
        CHK     include/generated/utsrelease.h
        CHK     include/generated/bounds.h
        CHK     include/generated/timeconst.h
        CC      arch/arm64/kernel/asm-offsets.s
      In file included from arch/arm64/kernel/asm-offsets.c:24:
      In file included from ./include/linux/kvm_host.h:38:
      In file included from ./arch/arm64/include/asm/kvm_host.h:39:
      In file included from ./include/kvm/arm_pmu.h:21:
      In file included from ./include/linux/perf_event.h:56:
      In file included from ./include/linux/cgroup.h:27:
      ./include/linux/cgroup-defs.h:404:16: error: field 'cgrp' with variable sized
            type 'struct cgroup' not at the end of a struct or class is a GNU
            extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
              struct cgroup cgrp;
                            ^
      1 error generated.
      make[1]: *** [arch/arm64/kernel/asm-offsets.s] Error 1
      make: *** [prepare0] Error 2
      
      #### failed to build some targets (16 seconds) ####
      

      I need help?

      posted in Porting
      U
      unger
    • RE: I'm collecting halium for samsung m31

      Hello
      run mka halium-boot

      mka halium-boot         
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=9
      LINEAGE_VERSION=16.0-20240309-UNOFFICIAL-m31
      TARGET_PRODUCT=lineage_m31
      TARGET_BUILD_VARIANT=userdebug
      TARGET_BUILD_TYPE=release
      TARGET_ARCH=arm64
      TARGET_ARCH_VARIANT=armv8-a
      TARGET_CPU_VARIANT=cortex-a73
      TARGET_2ND_ARCH=arm
      TARGET_2ND_ARCH_VARIANT=armv8-a
      TARGET_2ND_CPU_VARIANT=cortex-a53
      HOST_ARCH=x86_64
      HOST_OS=darwin
      HOST_OS_EXTRA=Darwin-23.3.0-x86_64-14.3.1
      HOST_BUILD_TYPE=release
      BUILD_ID=PQ3A.190801.002
      OUT_DIR=/Volumes/Code/halium9/out
      PRODUCT_SOONG_NAMESPACES=device/samsung/universal9610-common device/samsung/m31
      ============================================
      ninja: no work to do.
      [1/1] /Volumes/Code/halium9/out/soong/...mes/Code/halium9/out/soong/build.ninja
      No need to regenerate ninja file
      No need to regenerate ninja file
      ninja: error: '/Volumes/Code/halium9/out/target/product/m31/kernel', needed by '/Volumes/Code/halium9/out/target/product/m31/obj/ROOT/halium-boot_intermediates/halium-boot.img', missing and no known rule to make it
      14:15:40 ninja failed with: exit status 1
      
      #### failed to build some targets (25 seconds) ####
      

      If run cd kernel/samsung/m31
      and run make

      
      make: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
      make: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: Command not found
      scripts/kconfig/conf  --silentoldconfig Kconfig
      ***
      *** Configuration file ".config" not found!
      ***
      *** Please run some configurator (e.g. "make oldconfig" or
      *** "make menuconfig" or "make xconfig").
      ***
      make[2]: *** [silentoldconfig] Error 1
      make[1]: *** [silentoldconfig] Error 2
      make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
      
      #### failed to build some targets (4 seconds) ####
      

      did not create include/config/auto.conf' and include/config/kernel.release'

      posted in Porting
      U
      unger
    • I'm collecting halium for samsung m31

      I'm collecting halium for samsung m31, there is an error when creating the image
      alt text

      posted in Porting
      U
      unger
    • RE: ubuntu touch on Samsung M31

      @unger Question for ubports support. If I donate funds, can you quickly support ubuntu touch in the Samsung M31 device?

      posted in Support
      U
      unger
    • ubuntu touch on Samsung M31

      Hello. tell me how to install ubuntu touch on Samsung M31. I tried it through ubports, but nothing works, perhaps this is because this phone model is not in the list of supported devices.

      posted in Support
      U
      unger