Results 1 to 4 of 4

Thread: Nethunter kernel build problem TWRP flash Error 1

  1. #1
    Join Date
    2023-Jan
    Posts
    5

    Nethunter kernel build problem TWRP flash Error 1

    Hi, i could use some help cus I cant seem to get this working, I own a Ulefone Armor 6 and I really like the phone,
    but I would love it even more if i can get this nethunter kernel working with packet injection that would be so much fun but im stuck,

    first of all im facing the problem that my device does not have a kernel source available so im using the kernel source of a somewhat similar speced phone the Nokia 5.1 Plus ....

    but I cant seem to get this working. the kernel just dont want to flash with twrp, it keeps giving me error 1 over and over again i tried diffrent configs but ive been trying for days now

    but i cant seem to get it working, not even the test kernel flash, I been following this guide https://www.***********************FwSHbZqY88k

    I git clone the source code, I cd in it, I git clone nethunter installer than I cp the local config, edit it like he explains with my url github and as branch I tried diffrent things to see if that was the problem, i tried Oreo-8.1, android-8.1, android-4.4
    and I uncomment Clang and all the unset clangs, (dunno if i need to uncomment first Clang aswell?) anyway i tried it both I guess, its all not working, its just dont wanne flash

    here is my local.config



    GNU nano 7.1 local.config
    #!/bin/bash

    ################################################## ##########################################
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # Kernel Source:
    # git clone https://github.com/nokia-dev/android...kia_mt6771.git -b android-4.4
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ################################################## ##########################################

    ##############################################
    # Toolchains
    # Find more on https://kali.download/nethunter-images/toolchains/
    ##############################################

    # Architecture (arm or arm64)
    export ARCH=arm64

    ### Most arm64 kernels above version 4.x is fine with Clang.

    # Comment out this section if the above applies to your device.
    Clang
    CLANG_ROOT
    CLANG_PATH
    LD_LIBRARY_PATH
    CLANG_TRIPLE
    CC
    CLANG_SRC

    ### Recommended arm compiler (don't comment out as it will be always needed)
    # GCC 32bit (arm) source
    CROSS_COMPILE_ARM32_SRC="https://kali.download/nethunter-images/toolchains/linaro-armhf-4.9.tar.xz"
    CROSS_COMPILE_ARM32_TYPE="wget"
    # And it's path
    CCD32="${TD}/linaro-armhf-4.9"
    export CROSS_COMPILE_ARM32=${CCD32}/bin/arm-linux-gnueabihf-

    ### Recommended arm64 compiler (comment out if you use clang)
    # GCC 64bit (arm64) source
    CROSS_COMPILE_SRC="https://kali.download/nethunter-images/toolchains/linaro-aarch64-4.9.tar.xz"
    CROSS_COMPILE_TYPE="wget"
    # And it's path
    CCD="${TD}/aarch64-4.9"
    export CROSS_COMPILE=${CCD}/bin/aarch64-linux-gnu-

    # Additional compiler arguments
    MAKE_ARGS=""

    # Speed up the build
    CCACHE=true

    ^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location M-U Undo M-A Set Mark M-] To Bracket M-Q Previous ^B Back ^◂ Prev Word ^A Home
    ^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line M-E Redo M-6 Copy ^Q Where Was M-W Next ^F Forward ^▸ Next Word ^E End


    I start the build, I press 8 to config I set device name 1 to Armor_6 and dev/block boot from 1 to zero and i save,

    # AnyKernel3 Ramdisk Mod Script
    # osm0sis @ xda-developers
    # Changes for SkyDragon by HolyAngel @ xda-developers
    # Changes for NetHunter by Re4son

    ## AnyKernel setup
    # begin properties
    properties() { '
    kernel.string=NetHunter Kernel for the Armor 6
    do.devicecheck=1
    do.modules=1
    do.systemless=0 #Never use this for NetHunter kernels as it prevents us from writing to /lib/modules
    do.cleanup=1
    do.cleanuponabort=0
    device.name1=Armor_6
    device.name2=guacamole
    device.name3=OnePlus 7 Pro
    device.name4=Guacamole
    device.name5=OnePlus7
    device.name6=guacamoleb
    device.name7=OnePlus 7
    device.name8=Guacamoleb
    device.name9=OnePlus7ProNR
    device.name10=OnePlus7ProTMO
    device.name11=hotdogb
    device.name12=hotdog
    device.name13=OnePlus7T
    device.name14=OnePlus7TPro
    supported.versions=
    supported.patchlevels=
    '; } # end properties

    # shell variables
    block=/dev/block/bootdevice/by-name/boot;
    is_slot_device=0;
    ramdisk_compression=auto;

    ## AnyKernel methods (DO NOT CHANGE)
    # import patching functions/variables - see for reference
    . tools/ak3-core.sh;

    ## Trim partitions
    fstrim -v /cache;
    fstrim -v /data;

    ## AnyKernel file attributes
    # set permissions/ownership for included ramdisk files
    chmod -R 750 $ramdisk/*;
    chown -R root:root $ramdisk/*;

    ## AnyKernel install
    dump_boot;
    ��������������������������
    �������������������������������������������������� �������������������������������������������������� �������������������������������������������������� ���������������������������������������������7,18� ���������Top

    I make a anykernel nethunter zip and I try to flash it with TWRP but it fails every time,(I even tried PitchBlack Recovery) Im clueless I dont know what to do anymore I really want nethunter on my phone, there gotte be a way ,,,,

    here is the recovery.log after flashing fails, hope someone can help me out here



    Starting PitchBlackTWRP 3.2.3-PB-v2.9.0-Unofficial--PB-v2.9.0-Unofficial on 046de549 (pid Sun Jan 8 21:33:18 2023
    )
    RECOVERY_SDCARD_ON_DATA := true
    I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
    TW_INCLUDE_CRYPTO := true
    I:TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
    I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
    I:TWFunc::Set_Brightness: Setting brightness control to 255
    I:LANG: en
    Starting the UI...
    setting DRM_FORMAT_BGRA8888 and GGL_PIXEL_FORMAT_BGRA_8888
    cannot find/open a drm device: No such file or directory
    fb0 reports (possibly inaccurate):
    vi.bits_per_pixel = 32
    vi.red.offset = 0 .length = 8
    vi.green.offset = 8 .length = 8
    vi.blue.offset = 16 .length = 8
    setting GGL_PIXEL_FORMAT_RGBA_8888
    double buffered
    RECOVERY_BGRA
    framebuffer: 0 (1080 x 2246)
    Using fbdev graphics.
    I:TWFunc::Set_Brightness: Setting brightness control to 255
    I:Loading package: splash (/twres/splash.xml)
    I:Load XML directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
    I:Checking resolution...
    I:Scaling theme width 1.000000x and height 1.169792x, offsets x: 0 y: 0 w: 0 h: 0
    I:Loading resources...
    I:Loading variables...
    I:Loading mouse cursor...
    I:Loading pages...
    I:Loading page splash
    I:Switching packages (splash)
    => Linking mtab
    => Processing /etc/twrp.fstab
    I:Reading /etc/twrp.fstab
    I:Processing '/boot_para'
    I:Processing '/recovery'
    I:Processing '/para'
    I:Processing '/expdb'
    I:Processing '/frp'
    I:Processing '/metadata'
    I:Processing '/nvcfg'
    I:Created '/nvcfg' folder.
    I:Processing '/nvdata'
    I:Created '/nvdata' folder.
    I:Processing '/protect_f'
    I:Created '/protect_f' folder.
    I:Processing '/protect_s'
    I:Created '/protect_s' folder.
    I:Processing '/seccfg'
    I:Processing '/spmfw'
    I:Processing '/sspm_1'
    I:Processing '/sspm_2'
    I:Processing '/proinfo'
    I:Processing '/md1img'
    I:Processing '/md1dsp'
    I:Processing '/md3img'
    I:Processing '/md1arm7'
    I:Processing '/nvram'
    I:Processing '/odmdtbo'
    I:Processing '/lk'
    I:Processing '/lk2'
    I:Processing '/boot'
    I:Processing '/logo'
    I:Processing '/tee1'
    I:Processing '/tee2'
    I:Processing '/system'
    I:Processing '/system_image'
    I:Processing '/cache'
    I:Processing '/data'
    I:Processing '/vendor'
    I:Processing '/external_sd'
    I:Created '/external_sd' folder.
    I:Processing '/usbotg'
    I:Created '/usbotg' folder.
    Ione processing fstab files
    I:Setting up '/data' as data/media emulated storage.
    I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
    I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
    I:Setting up '/data' as data/media emulated storage.
    I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
    I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
    I:Backup folder set to '/data/media/0/PBRP/BACKUPS/0123456789ABCDEF'
    I:Settings storage is '/data/media/0'
    Iecrypt adopted storage starting
    I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly
    I:successfully loaded storage.xml
    Updating partition details...
    Iata backup size is 1490MB, free: 110786MB.
    I:Unable to mount '/external_sd'
    I:Actual block device: '', current file system: 'auto'
    I:Unable to mount '/usbotg'
    I:Actual block device: '', current file system: 'auto'
    ...done
    I:Unmounting main partitions...


    Partition Logs:
    /boot_para | /dev/block/mmcblk0p1 | Size: 1MB
    Flags: IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p1
    Display_Name: boot_para
    Storage_Name: boot_para
    Backup_Path: /boot_para
    Backup_Name: boot_para
    Backup_Display_Name: boot_para
    Storage_Path: /boot_para
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /recovery | /dev/block/mmcblk0p2 | Size: 32MB
    Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
    Primary_Block_Device: /dev/block/mmcblk0p2
    Display_Name: Recovery
    Storage_Name: Recovery
    Backup_Path: /recovery
    Backup_Name: recovery
    Backup_Display_Name: Recovery
    Storage_Path: /recovery
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /para | /dev/block/mmcblk0p3 | Size: 0MB
    Flags: Can_Be_Backed_Up IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p3
    Display_Name: Parametr
    Storage_Name: Parametr
    Backup_Path: /para
    Backup_Name: para
    Backup_Display_Name: Parametr
    Storage_Path: /para
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /expdb | /dev/block/mmcblk0p4 | Size: 20MB
    Flags: IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p4
    Display_Name: expdb
    Storage_Name: expdb
    Backup_Path: /expdb
    Backup_Name: expdb
    Backup_Display_Name: expdb
    Storage_Path: /expdb
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /frp | /dev/block/mmcblk0p5 | Size: 1MB
    Flags: Can_Be_Backed_Up IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p5
    Display_Name: Frp
    Storage_Name: Frp
    Backup_Path: /frp
    Backup_Name: frp
    Backup_Display_Name: Frp
    Storage_Path: /frp
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /metadata | /dev/block/mmcblk0p8 | Size: 32MB
    Flags: IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p8
    Display_Name: metadata
    Storage_Name: metadata
    Backup_Path: /metadata
    Backup_Name: metadata
    Backup_Display_Name: metadata
    Storage_Path: /metadata
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /nvcfg | /dev/block/mmcblk0p6 | Size: 26MB Used: 0MB Free: 26MB Backup Size: 0MB
    Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p6
    Display_Name: Nvcfg
    Storage_Name: Nvcfg
    Backup_Path: /nvcfg
    Backup_Name: nvcfg
    Backup_Display_Name: Nvcfg
    Storage_Path: /nvcfg
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files

    /nvdata | /dev/block/mmcblk0p7 | Size: 57MB Used: 1MB Free: 56MB Backup Size: 1MB
    Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p7
    Display_Name: Nvdata
    Storage_Name: Nvdata
    Backup_Path: /nvdata
    Backup_Name: nvdata
    Backup_Display_Name: Nvdata
    Storage_Path: /nvdata
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files

    /protect_f | /dev/block/mmcblk0p9 | Size: 3MB Used: 0MB Free: 3MB Backup Size: 0MB
    Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Has_SubPartition IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p9
    Display_Name: Protect
    Storage_Name: Protect
    Backup_Path: /protect_f
    Backup_Name: protect_f
    Backup_Display_Name: Protect
    Storage_Path: /protect_f
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files

    /protect_s | /dev/block/mmcblk0p10 | Size: 5MB Used: 0MB Free: 5MB Backup Size: 0MB
    Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Is_SubPartition IsPresent
    SubPartition_Of: /protect_f
    Primary_Block_Device: /dev/block/mmcblk0p10
    Display_Name: protect_s
    Storage_Name: protect_s
    Backup_Path: /protect_s
    Backup_Name: protect_s
    Backup_Display_Name: protect_s
    Storage_Path: /protect_s
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files

    /seccfg | /dev/block/mmcblk0p6 | Size: 32MB
    Flags: IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p6
    Display_Name: seccfg
    Storage_Name: seccfg
    Backup_Path: /seccfg
    Backup_Name: seccfg
    Backup_Display_Name: seccfg
    Storage_Path: /seccfg
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /spmfw | /dev/block/mmcblk0p15 | Size: 1MB
    Flags: Can_Be_Backed_Up Has_SubPartition IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p15
    Display_Name: Spm
    Storage_Name: Spm
    Backup_Path: /spmfw
    Backup_Name: spmfw
    Backup_Display_Name: Spm
    Storage_Path: /spmfw
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /sspm_1 | /dev/block/mmcblk0p18 | Size: 1MB
    Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
    SubPartition_Of: /spmfw
    Primary_Block_Device: /dev/block/mmcblk0p18
    Display_Name: sspm_1
    Storage_Name: sspm_1
    Backup_Path: /sspm_1
    Backup_Name: sspm_1
    Backup_Display_Name: sspm_1
    Storage_Path: /sspm_1
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /sspm_2 | /dev/block/mmcblk0p19 | Size: 1MB
    Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
    SubPartition_Of: /spmfw
    Primary_Block_Device: /dev/block/mmcblk0p19
    Display_Name: sspm_2
    Storage_Name: sspm_2
    Backup_Path: /sspm_2
    Backup_Name: sspm_2
    Backup_Display_Name: sspm_2
    Storage_Path: /sspm_2
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /proinfo | /dev/block/mmcblk0p13 | Size: 3MB
    Flags: Can_Be_Backed_Up IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p13
    Display_Name: Proinfo
    Storage_Name: Proinfo
    Backup_Path: /proinfo
    Backup_Name: proinfo
    Backup_Display_Name: Proinfo
    Storage_Path: /proinfo
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /md1img | /dev/block/mmcblk0p14 | Size: 100MB
    Flags: Can_Be_Backed_Up Has_SubPartition IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p14
    Display_Name: Modem
    Storage_Name: Modem
    Backup_Path: /md1img
    Backup_Name: md1img
    Backup_Display_Name: Modem
    Storage_Path: /md1img
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /md1dsp | | Size: 0MB
    Flags: Can_Be_Backed_Up Is_SubPartition
    SubPartition_Of: /md1img
    Primary_Block_Device: /dev/block/platform/bootdevice/by-name/md1dsp
    Display_Name: md1dsp
    Storage_Name: md1dsp
    Backup_Path: /md1dsp
    Backup_Name: md1dsp
    Backup_Display_Name: md1dsp
    Storage_Path: /md1dsp
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /md3img | | Size: 0MB
    Flags:
    Primary_Block_Device: /dev/block/platform/bootdevice/by-name/md3img
    Display_Name: md3img
    Storage_Name: md3img
    Backup_Path: /md3img
    Backup_Name: md3img
    Backup_Display_Name: md3img
    Storage_Path: /md3img
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /md1arm7 | | Size: 0MB
    Flags:
    Primary_Block_Device: /dev/block/platform/bootdevice/by-name/md1arm7
    Display_Name: md1arm7
    Storage_Name: md1arm7
    Backup_Path: /md1arm7
    Backup_Name: md1arm7
    Backup_Display_Name: md1arm7
    Storage_Path: /md1arm7
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /nvram | /dev/block/mmcblk0p25 | Size: 64MB
    Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
    Primary_Block_Device: /dev/block/mmcblk0p25
    Display_Name: Nvram
    Storage_Name: Nvram
    Backup_Path: /nvram
    Backup_Name: nvram
    Backup_Display_Name: Nvram
    Storage_Path: /nvram
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /odmdtbo | /dev/block/mmcblk0p30 | Size: 16MB
    Flags: IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p30
    Display_Name: odmdtbo
    Storage_Name: odmdtbo
    Backup_Path: /odmdtbo
    Backup_Name: odmdtbo
    Backup_Display_Name: odmdtbo
    Storage_Path: /odmdtbo
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /lk | /dev/block/mmcblk0p26 | Size: 1MB
    Flags: Can_Be_Backed_Up Has_SubPartition IsPresent Can_Flash_Img
    Primary_Block_Device: /dev/block/mmcblk0p26
    Display_Name: Uboot
    Storage_Name: Uboot
    Backup_Path: /lk
    Backup_Name: lk
    Backup_Display_Name: Uboot
    Storage_Path: /lk
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /lk2 | /dev/block/mmcblk0p27 | Size: 1MB
    Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
    SubPartition_Of: /lk
    Primary_Block_Device: /dev/block/mmcblk0p27
    Display_Name: lk2
    Storage_Name: lk2
    Backup_Path: /lk2
    Backup_Name: lk2
    Backup_Display_Name: lk2
    Storage_Path: /lk2
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /boot | /dev/block/mmcblk0p28 | Size: 32MB
    Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
    Primary_Block_Device: /dev/block/mmcblk0p28
    Display_Name: Boot
    Storage_Name: Boot
    Backup_Path: /boot
    Backup_Name: boot
    Backup_Display_Name: Boot
    Storage_Path: /boot
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /logo | /dev/block/mmcblk0p29 | Size: 8MB
    Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
    Primary_Block_Device: /dev/block/mmcblk0p29
    Display_Name: Logo
    Storage_Name: Logo
    Backup_Path: /logo
    Backup_Name: logo
    Backup_Display_Name: Logo
    Storage_Path: /logo
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /tee1 | /dev/block/mmcblk0p31 | Size: 5MB
    Flags: Can_Be_Backed_Up Has_SubPartition IsPresent Can_Flash_Img
    Primary_Block_Device: /dev/block/mmcblk0p31
    Display_Name: Tee
    Storage_Name: Tee
    Backup_Path: /tee1
    Backup_Name: tee1
    Backup_Display_Name: Tee
    Storage_Path: /tee1
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /tee2 | /dev/block/mmcblk0p32 | Size: 12MB
    Flags: Can_Be_Backed_Up Is_SubPartition IsPresent
    SubPartition_Of: /tee1
    Primary_Block_Device: /dev/block/mmcblk0p32
    Display_Name: tee2
    Storage_Name: tee2
    Backup_Path: /tee2
    Backup_Name: tee2
    Backup_Display_Name: tee2
    Storage_Path: /tee2
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /system | /dev/block/mmcblk0p34 | Size: 2929MB Used: 1827MB Free: 1101MB Backup Size: 1827MB
    Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent Mount_Read_Only
    Primary_Block_Device: /dev/block/mmcblk0p34
    Display_Name: System
    Storage_Name: System
    Backup_Path: /system
    Backup_Name: system
    Backup_Display_Name: System
    Storage_Path: /system
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files

    /system_image | /dev/block/mmcblk0p34 | Size: 3072MB
    Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img
    Primary_Block_Device: /dev/block/mmcblk0p34
    Display_Name: System Image
    Storage_Name: system_image
    Backup_Path: /system_image
    Backup_Name: system_image
    Backup_Display_Name: System Image
    Storage_Path: /system_image
    Current_File_System: emmc
    Fstab_File_System: emmc
    Backup_Method: dd

    /cache | /dev/block/mmcblk0p35 | Size: 418MB Used: 0MB Free: 417MB Backup Size: 0MB
    Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent
    Primary_Block_Device: /dev/block/mmcblk0p35
    Display_Name: Cache
    Storage_Name: Cache
    Backup_Path: /cache
    Backup_Name: cache
    Backup_Display_Name: Cache
    Storage_Path: /cache
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files

    /data | /dev/block/mmcblk0p36 | Size: 112367MB Used: 1490MB Free: 110786MB Backup Size: 1490MB
    Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage
    Symlink_Path: /data/media/0
    Symlink_Mount_Point: /sdcard
    Primary_Block_Device: /dev/block/mmcblk0p36
    Crypto_Key_Location: /dev/block/platform/bootdevice/by-name/metadata
    Display_Name: Data
    Storage_Name: Internal Storage
    Backup_Path: /data
    Backup_Name: data
    Backup_Display_Name: Data
    Storage_Path: /data/media/0
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files
    MTP_Storage_ID: 65537

    /vendor | /dev/block/mmcblk0p33 | Size: 816MB Used: 454MB Free: 362MB Backup Size: 454MB
    Flags: Can_Be_Mounted Can_Be_Wiped IsPresent Mount_Read_Only
    Primary_Block_Device: /dev/block/mmcblk0p33
    Display_Name: Vendor
    Storage_Name: Vendor
    Backup_Path: /vendor
    Backup_Name: vendor
    Backup_Display_Name: Vendor
    Storage_Path: /vendor
    Current_File_System: ext4
    Fstab_File_System: ext4
    Backup_Method: files

    /external_sd | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
    Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage
    Primary_Block_Device: /dev/block/mmcblk1p1
    Alternate_Block_Device: /dev/block/mmcblk1
    Display_Name: External SDcard
    Storage_Name: External SDcard
    Backup_Path: /external_sd
    Backup_Name: external_sd
    Backup_Display_Name: External SDcard
    Storage_Path: /external_sd
    Current_File_System: auto
    Fstab_File_System: auto
    Backup_Method: files
    MTP_Storage_ID: 65538

    /usbotg | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
    Flags: Can_Be_Mounted Can_Be_Wiped Removable Is_Storage
    Primary_Block_Device: /dev/block/sda1
    Alternate_Block_Device: /dev/block/sda
    Display_Name: Usb-Otg
    Storage_Name: Usb-Otg
    Backup_Path: /usbotg
    Backup_Name: usbotg
    Backup_Display_Name: Usb-Otg
    Storage_Path: /usbotg
    Current_File_System: auto
    Fstab_File_System: auto
    Backup_Method: files
    MTP_Storage_ID: 65539

    I:Loading package: TWRP (/data/media/0/PBRP/theme/ui.zip)
    I:Loading zip theme
    I:Loading package: TWRP (/twres/ui.xml)
    I:Load XML directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_TW.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_CN.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_PT.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ja.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/in.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
    parsing languageFile
    parsing languageFile done
    I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
    I:Checking resolution...
    I:Scaling theme width 1.000000x and height 1.169792x, offsets x: 0 y: 0 w: 0 h: 0
    I:Loading resources...
    I:Failed to load image from indeterminate013, error -1
    I:Loading variables...
    I:Loading mouse cursor...
    I:Loading pages...
    I:Including file: /twres/portrait.xml...
    I:PageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly
    I:Loading resources...
    I:Loading variables...
    I:Loading mouse cursor...
    I:Loading pages...
    I:Loading page main
    I:Loading page main2
    I:Loading page install
    I:Loading page flash_confirm
    I:Loading page flash_zip
    I:Loading page flash_done
    I:Loading page flash_sleep_and_reboot
    I:Loading page flashimage_confirm
    I:Loading page clear_vars
    I:Loading page reboot_system_routine
    I:Loading page confirm_action
    I:Loading page action_page
    I:Loading page singleaction_page
    I:Loading page action_complete
    I:Loading page filecheck
    I:Loading page rebootcheck
    I:Loading page appcheck
    I:Loading page wipe
    I:Loading page advancedwipe
    I:Loading page formatdata
    I:Loading page formatdata_confirm
    I:Loading page checkpartitionlist
    I:Loading page partitionoptions
    I:Loading page refreshfilesystem
    I:Loading page selectfilesystem
    I:Loading page backup
    I:Loading page backup_options
    I:Loading page backupname1
    I:Loading page backupname2
    I:Loading page backupencryption
    I:Loading page backupencryption2
    I:Loading page checkbackuppassword
    I:Loading page backup_run
    I:Loading page restore
    I:Unable to open '/data/media/0/PBRP/BACKUPS/0123456789ABCDEF'
    I:Loading page restore_read
    I:Loading page restore_decrypt
    I:Loading page try_restore_decrypt
    I:Loading page restore_select
    I:Loading page renamebackup
    I:Loading page restore_run
    I:Loading page mount
    I:Loading page usb_mount
    I:Loading page usb_umount
    I:Loading page system_readonly_check
    I:Loading page reboot
    I:Loading page rebootapp
    I:Loading page system_readonly
    I:Loading page settings
    I:Loading page settings_timezone
    I:Loading page settings_screen
    I:Loading page settings_vibration
    I:Loading page settings_language
    I:Loading page copylog
    I:Loading page advanced
    I:Loading page tools1
    I:Loading page tools
    I:Loading page about
    I:Loading page thanksto
    I:Loading page toolscr
    I:Loading page contributors
    I:Loading page SETTINGOTA
    I:Loading page settingsota_info
    I:Loading page changelog
    I:Loading page partsdcardsel
    I:Loading page partsdcardcheck
    I:Loading page partsdcard
    I:Loading page htcdumlock
    I:Loading page lock
    I:Loading page filemanagerlist
    I:Loading page filemanageroptions
    I:Loading page choosedestinationfolder
    I:Loading page filemanagerrenamefile
    I:Loading page filemanagerrenamefolder
    I:Loading page filemanagerchmod
    I:Loading page filemanagerconfirm
    I:Loading page filemanageraction
    I:Loading page decrypt
    I:Loading page decrypt_pattern
    I:Loading page trydecrypt
    I:Loading page terminalcommand
    I:Loading page sideload
    I:Loading page fixcontexts
    I:Loading page slideout
    I:Loading page select_storage
    I:Loading page select_language
    I:Loading page color_changer
    I:Loading page color_changer_black
    I:Loading page change_theme
    I:Loading page change_theme_black
    I:Loading page text_color
    I:Loading page change_text_color
    I:Set page: 'clear_vars'
    I:Set page: 'main2'
    I:Switching packages (TWRP)
    No file contexts for SELinux
    Full SELinux support is present.
    *********************************PitchBlack Recovery: Welcome! ^_^Maintained By PBRP Team*********************************I:Symlink Created : '/system/bin/linker'
    I:Symlink Created : '/system/bin/linker64'
    sh: getprop: not found


    Startup Commands:
    sys.usb.ffs.ready=1
    service.adb.root=1
    ro.persistent_properties.ready=true
    ro.boottime.adbd=3071572153
    ro.boottime.init=1800
    ro.boottime.init.selinux=59
    ro.boottime.init.cold_boot_wait=1061
    ro.boottime.logd=3066133460
    ro.boottime.ueventd=1995836922
    ro.boottime.recovery=3070260383
    ro.boottime.ldconfigtxt=3070661691
    ro.boottime.logd-reinit=3066645768
    ro.boottime.set_permissive=3069749845
    ro.boot.serialno=0123456789ABCDEF
    ro.serialno=0123456789ABCDEF
    net.bt.name=Android
    net.tethering.noprovisioning=true
    sys.usb.controller=musb-hdrc
    persist.sys.usb.config=mtp,adb
    persist.sys.dalvik.vm.lib.2=libart.so
    persist.sys.disable_rescue=true
    persist.service.adb.enable=1
    persist.service.debuggable=1
    debug.atrace.tags.enableflags=0
    ro.dalvik.vm.native.bridge=0
    dalvik.vm.isa.arm.variant=cortex-a53
    dalvik.vm.isa.arm.features=default
    dalvik.vm.isa.arm64.variant=cortex-a73
    dalvik.vm.isa.arm64.features=default
    dalvik.vm.dexopt.secondary=true
    dalvik.vm.usejit=true
    dalvik.vm.lockprof.threshold=500
    dalvik.vm.dex2oat-Xms=64m
    dalvik.vm.dex2oat-Xmx=512m
    dalvik.vm.appimageformat=lz4
    dalvik.vm.usejitprofiles=true
    dalvik.vm.stack-trace-dir=/data/anr
    dalvik.vm.image-dex2oat-Xms=64m
    dalvik.vm.image-dex2oat-Xmx=64m
    dalvik.vm.image-dex2oat-filter=verify-at-runtime
    pm.dexopt.boot=extract
    pm.dexopt.ab-ota=speed-profile
    pm.dexopt.shared=speed
    pm.dexopt.install=quicken
    pm.dexopt.inactive=verify
    pm.dexopt.bg-dexopt=speed-profile
    pm.dexopt.first-boot=extract
    ro.adb.secure=0
    ro.com.google.clientidbase=android-google
    ro.com.android.dataroaming=false
    ro.com.android.wifi-watchlist=GoogleGuest
    ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
    ro.boot.mode=recovery
    ro.boot.selinux=permissive
    ro.boot.hardware=mt6771
    ro.boot.bootreason=power_key
    ro.boot.veritymode=enforcing
    ro.boot.meta_log_disable=0
    ro.boot.verifiedbootstate=green
    ro.miui.has_cust_partition=true
    ro.omni.device=Armor_6
    ro.omni.version=8.1.0-20190722-Armor_6-HOMEMADE
    ro.omni.fingerprint=OmniROM/8.1.0/Armor_6/20190722.01:41
    ro.twrp.boot=1
    ro.twrp.version=3.2.3-PB-v2.9.0-Unofficial
    ro.wifi.channels=
    ro.allow.mock.location=1
    ro.board.platform=mt6771
    ro.build.id=OPM8.190405.001
    ro.build.date=Mon Jul 22 01:40:56 IST 2019
    ro.build.date.utc=1563739856
    ro.build.host=geekofia-cloud
    ro.build.tags=test-keys
    ro.build.type=eng
    ro.build.user=chankruze
    ro.build.flavor=omni_Armor_6-eng
    ro.build.display.id=omni_Armor_6-eng 8.1.0 OPM8.190405.001 eng.chankr.20190722.014056 test-keys
    ro.build.product=Armor_6
    ro.build.selinux=1
    ro.build.version.sdk=27
    ro.build.version.base_os=
    ro.build.version.release=8.1.0
    ro.build.version.codename=REL
    ro.build.version.incremental=eng.chankr.20190722.0 14056
    ro.build.version.preview_sdk=0
    ro.build.version.all_codenames=REL
    ro.build.version.security_patch=2019-04-05
    ro.build.description=omni_Armor_6-eng 8.1.0 OPM8.190405.001 eng.chankr.20190722.014056 test-keys
    ro.build.characteristics=default
    ro.bionic.ld.warning=1
    ro.kernel.android.checkjni=1
    ro.secure=0
    ro.treble.enabled=true
    ro.vendor.product.name=omni_Armor_6
    ro.vendor.product.brand=Ulefone
    ro.vendor.product.model=Armor_6
    ro.vendor.product.device=Armor_6
    ro.vendor.product.manufacturer=Ulefone
    ro.zygote=zygote32
    ro.carrier=unknown
    ro.product.cpu.abi=arm64-v8a
    ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi
    ro.product.cpu.abilist32=armeabi-v7a,armeabi
    ro.product.cpu.abilist64=arm64-v8a
    ro.product.name=omni_Armor_6
    ro.product.board=mt6771
    ro.product.brand=Ulefone
    ro.product.model=Armor_6
    ro.product.device=Armor_6
    ro.product.locale=en-US
    ro.product.manufacturer=Ulefone
    ro.baseband=unknown
    ro.bootmode=recovery
    ro.hardware=mt6771
    ro.revision=0
    ro.bootimage.build.date=Mon Jul 22 01:40:56 IST 2019
    ro.bootimage.build.date.utc=1563739856
    ro.bootloader=unknown
    ro.debuggable=1
    ro.modversion=OmniROM-8.1.0-20190722-Armor_6-HOMEMADE
    ro.recovery_id=0x059d06514ef10d75bb9299bfcde47f910 e28d8c3000000000000000000000000
    ro.setupwizard.enterprise_mode=1
    ro.property_service.version=2
    init.svc.adbd=running
    init.svc.logd=running
    init.svc.ueventd=running
    init.svc.recovery=running
    init.svc.ldconfigtxt=stopped
    init.svc.logd-reinit=stopped
    init.svc.set_permissive=stopped
    twrp.crash_counter=0
    twrp.action_complete=0
    keyguard.no_require_sim=true
    tombstoned.max_tombstone_count=50

    I:Copying file /cache/recovery/log to /cache/recovery/last_log
    tw_get_context got selinux context: ubject_r:media_rw_data_file:s0
    I:Got default contexts and file mode for storage files.
    I:Attempt to load settings from settings file...
    I:InfoManager loading from '/data/media/0/PBRP/.twrps'.
    I:Backup folder set to '/usbotg/PBRP/BACKUPS/0123456789ABCDEF'
    I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
    I:Version number saved to '/cache/recovery/.version'
    I:Unable to mount '/external_sd'
    I:Actual block device: '', current file system: 'auto'
    I:Unable to mount '/usbotg'
    I:Actual block device: '', current file system: 'auto'
    __bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
    __bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
    I:TWFunc::Set_Brightness: Setting brightness control to 255
    I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
    parsing languageFile
    parsing languageFile done
    I:Translating partition display names
    I:Backup folder set to '/usbotg/PBRP/BACKUPS/0123456789ABCDEF'
    I:Starting MTP
    I:Cannot find file /sys/class/android_usb/android0/idVendor
    I:Cannot find file /sys/class/android_usb/android0/idProduct
    I:[MTP] Starting MTP
    I:sending message to add 65537 '/data/media/0' 'Internal Storage'
    I:Message sent, add storage ID: 65537 '/data/media/0'
    MTP Enabled
    I:Check_Lifetime_Writes result: '46836'
    I:Starting Adb Backup FIFO
    I:Switching packages (TWRP)
    I:Set page: 'main'
    I:Set page: 'clear_vars'
    I:Set page: 'main2'
    E:[MTP] could not open MTP driver, errno: 2
    I:Set page: 'advanced'
    I:Set page: 'main'
    I:Set page: 'clear_vars'
    I:Set page: 'main2'
    I:Set page: 'install'
    I:Found no matching fstab entry for uevent device '/devices/platform/11200000.usb3_xhci/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0/block/sda' - add
    I:Set overlay: 'select_storage'
    I:Backup folder set to '/usbotg/PBRP/BACKUPS/0123456789ABCDEF'
    I:Backup folder set to '/usbotg/PBRP/BACKUPS/0123456789ABCDEF'
    I:Set overlay: ''
    I:Set page: 'clear_vars'
    I:Set page: 'install'
    I:Set overlay: 'select_storage'
    I:Backup folder set to '/usbotg/PBRP/BACKUPS/0123456789ABCDEF'
    I:Set overlay: ''
    I:Set page: 'clear_vars'
    I:Set page: 'install'
    I:Set page: 'flash_confirm'
    I:Set page: 'flash_zip'
    Iperation_start: 'Flashing'
    Installing zip file '/usbotg/anykernel-NetHunter.zip'
    Checking for Digest file...
    Skipping Digest check: no Digest file found
    I:Update binary zip
    Verifying package compatibility...
    Package doesn't contain kompatibility.zip entry
    Detecting Current Package
    - Detected Either a Patch or Fix Package
    Support MIUI Incremental package status: Disabled
    I:Zip does not contain SELinux file_contexts file in its root.
    I:Legacy property environment not used in updater.

    Archive: /usbotg/anykernel-NetHunter.zip
    inflating: META-INF/com/google/android/updater-script
    inflating: banner
    inflating: tools/ak3-core.sh
    inflating: META-INF/com/google/android/update-binary
    inflating: Changelog.txt
    inflating: tools/magiskpolicy
    inflating: anykernel.sh
    inflating: tools/magiskboot
    inflating: tools/busybox
    ##################################################
    ## NetHunter Kernel Installer ##
    ##################################################
    Kernel: Test Kernel
    Versiom: 0.1
    Author: NetHunter Team


    NetHunter Kernel for the Armor 6

    AnyKernel3 by osm0sis @ xda-developers


    Checking device...
    Armor_6

    Installing...
    /dev/block/bootdevice/by-name/boot
    /cache: 436011008 bytes trimmed
    /data: 116067909632 bytes trimmed
    chmod: /tmp/anykernel/ramdisk/*: No such file or directory
    chown: /tmp/anykernel/ramdisk/*: No such file or directory

    Invalid partition. Aborting...
    Updater process ended with ERROR: 1
    I:Install took 5 second(s).
    Error installing zip file '/usbotg/anykernel-NetHunter.zip'
    I:Unmounting main partitions...
    Updating partition details...
    Iata backup size is 1490MB, free: 110786MB.
    I:Unable to mount '/external_sd'
    I:Actual block device: '', current file system: 'auto'
    ...done
    I:Set page: 'flash_done'
    Iperation_end - status=1
    I:TWFunc::Set_Brightness: Setting brightness control to 0
    I:TWFunc::Set_Brightness: Setting brightness control to 255
    I:Set overlay: ''
    I:Set page: 'clear_vars'
    I:Set page: 'install'
    I:Set page: 'main'
    I:Set page: 'clear_vars'
    I:Set page: 'main2'
    I:Set page: 'advanced'
    I:Set page: 'copylog'
    I:Set page: 'action_page'
    Iperation_start: 'Copy Log'
    I:Copying file /tmp/recovery.log to /usbotg/recovery.log


    I cant find it, i dunno why its not working, is it the kernel source? or is it something diffrent? can i make this work? I really want kali on my phone that would be so awesome. I emailed ulefone for the kernel source but they say they cant provide me it, which sucks, I searched the whole web, its not available, I have to go the route with this nokia 5.1 plus kernel code. is it possible? or am i just at a dead end here?


  2. #2
    Join Date
    2023-Jan
    Posts
    5
    I managed to succesfully install the TWRP zip cus i was facing same error, I installed the zip with succes by in Nethunter ,/build script press 8 and edit the rule

    # Shell variables
    block=/dev/block/bootdevice/by-name/boot;
    is_slot_device=1;
    ram_diskcompression=auto;

    to

    # Shell variables
    block=/dev/block/mmcblk0p28;
    is_slot_device=0;
    ram_diskcompression=auto;

    save the file, make the anykernel zip and try to flash it, this worked for me... im sadly facing another problem myself with building the kernel but I hope this works for you

    grts, sandro

  3. #3
    Join Date
    2023-Jan
    Posts
    5
    Oh i see u own a armor 6, im having the same phone and trying to make a nethunter kernel myself for a week now, i cant get it to work either, im gonne post me a tread myself, im using some oppo kernel, i managed to fix the twrp error 1 but i cant get the kernel build to work,
    its not cus its not for my phone cus i havnt even tried to install the nethunter modified kernel yet, i just get this problem with the build, i get an error and i dunno how to fix it

  4. #4
    Join Date
    2023-Jan
    Posts
    5

Similar Threads

  1. Dpkg error in kernel build says kernel not configured
    By SamaraMorgan in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2022-12-27, 22:08
  2. kali nethunter not install TWRP error mount system con rw!
    By dartpc2019 in forum Installing NetHunter
    Replies: 2
    Last Post: 2020-10-11, 22:57
  3. nethunter kernel build - clang-10: error
    By morty luthier in forum Building NetHunter
    Replies: 5
    Last Post: 2020-08-03, 12:52
  4. Im tring to build a kernel with kernel builder but im getting error
    By dylanmurz in forum NetHunter Development
    Replies: 0
    Last Post: 2020-05-28, 16:14
  5. OnePlus wont flash TWRP to install Nethunter
    By aidden in forum Installing NetHunter
    Replies: 2
    Last Post: 2016-02-11, 01:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •