LINUX.ORG.RU

Сообщения Redfern89

 

Ошибки при сборке ядра

Форум — General

всем добра. Собираю ядро для MI MIX 3 5G, по инструкции с репозитория (https://github.com/MiCode/Xiaomi_Kernel_OpenSource/wiki/How-to-compile-kernel-standalone). Однако не все так просто, в коде ядра куча варнингов, которые вылезают в виде ошибок. Вот пример одного из них:

make[1]: Entering directory '/home/fck/Mi_Kernel/andromeda-p-oss/out'
  CHK     include/config/kernel.release
  Using .. as source for kernel
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    ../scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  CC      arch/arm64/mm/fault.o
../arch/arm64/mm/fault.c: In function 'mem_abort_decode':
../arch/arm64/mm/fault.c:127:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=]
error, forbidden warning: fault.c:127
../scripts/Makefile.build:363: recipe for target 'arch/arm64/mm/fault.o' failed
make[2]: *** [arch/arm64/mm/fault.o] Error 1
/home/fck/Mi_Kernel/andromeda-p-oss/Makefile:1135: recipe for target 'arch/arm64/mm' failed
make[1]: *** [arch/arm64/mm] Error 2
make[1]: Leaving directory '/home/fck/Mi_Kernel/andromeda-p-oss/out'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Я понимаю, что можно упороться и поустранять их все. Но их там сотни, если не тысячи. Как можно задушить их? спасибо ;)

 , ,

Redfern89
()

Сборка ядра linux для Realme C21Y

Форум — Linux-hardware

Всем доброго времени суток! Пытаюсь собрать ядро для данного аппарата с оф. репозитория (https://github.com/realme-kernel-opensource/realme_C21Y-AndroidR-kernel-source)

Подготовка окружения

export CC=/home/fck/dev/android_prebuilts_clang_host_linux-x86_clang-6573524/bin/clang
export CROSS_COMPILE=/home/fck/dev/android-ndk-r10e/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-
export ARCH=arm64
export SUBARCH=arm64

Использован компилятор llvm clang 11.0.2, тулчейн aarch64-linux-android-4.9

Попытка сборки

make sprd_all_defconfig O=../c21y-kernel
make O=../c21y-kernel -j12

Спустя некоторое время

 CC      drivers/gpu/drm/sprd/oplus_engine/oplus_display_private_api.o
/home/fck/dev/realme_C21Y-AndroidR-kernel-source/drivers/gpu/drm/sprd/oplus_engine/oplus_display_private_api.c: In function 'lcd_id_get':
/home/fck/dev/realme_C21Y-AndroidR-kernel-source/drivers/gpu/drm/sprd/oplus_engine/oplus_display_private_api.c:17:2: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Werror=format=]
  DRM_INFO("lcd_id from uboot: %u, ret: %d\n", lcd_id, ret);
  ^
/home/fck/dev/realme_C21Y-AndroidR-kernel-source/drivers/gpu/drm/sprd/oplus_engine/oplus_display_private_api.c: In function 'lcd_id_show':
/home/fck/dev/realme_C21Y-AndroidR-kernel-source/drivers/gpu/drm/sprd/oplus_engine/oplus_display_private_api.c:30:3: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Werror=format=]
   ret = scnprintf(buf, PAGE_SIZE, "LCM ID[%x]: 0x%x 0x%x\n", 0, lcd_id, 0);
   ^
cc1: all warnings being treated as errors
make[6]: *** [/home/fck/dev/realme_C21Y-AndroidR-kernel-source/scripts/Makefile.build:362: drivers/gpu/drm/sprd/oplus_engine/oplus_display_private_api.o] Error 1
make[5]: *** [/home/fck/dev/realme_C21Y-AndroidR-kernel-source/scripts/Makefile.build:676: drivers/gpu/drm/sprd/oplus_engine] Error 2
make[4]: *** [/home/fck/dev/realme_C21Y-AndroidR-kernel-source/scripts/Makefile.build:676: drivers/gpu/drm/sprd] Error 2
make[3]: *** [/home/fck/dev/realme_C21Y-AndroidR-kernel-source/scripts/Makefile.build:676: drivers/gpu/drm] Error 2
make[2]: *** [/home/fck/dev/realme_C21Y-AndroidR-kernel-source/scripts/Makefile.build:676: drivers/gpu] Error 2
make[1]: *** [/home/fck/dev/realme_C21Y-AndroidR-kernel-source/Makefile:1163: drivers] Error 2
make[1]: Leave directory «/home/fck/dev/c21y-kernel»
make: *** [Makefile:146: sub-make] Error 2

Попытка сборки без warnings as errors

make O=../c21y-kernel KCFLAGS="-Wno-error -mcmodel=small -fno-pic" KBUILD_CFLAGS+="-Wno-error -mcmodel=small -fno-pic" EXTRA_CFLAGS="-Wno-error -mcmodel=small -fno-pic"

Спустя некоторое время

make[1]: Enter directory «/home/fck/dev/c21y-kernel»
arch/arm64/Makefile:49: LSE atomics not supported by binutils
arch/arm64/Makefile:57: Detected assembler with broken .inst; disassembly will be unreliable
  CHK     include/config/kernel.release
  Using /home/fck/dev/realme_C21Y-AndroidR-kernel-source as source for kernel
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    /home/fck/dev/realme_C21Y-AndroidR-kernel-source/scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  CHK     kernel/kheaders_data.tar.xz
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.o
  AR      built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: "pic_op" [vmlinux] is COMMON symbol
WARNING: "of_aliases" [vmlinux] is COMMON symbol
WARNING: "himax_proc_limit_area_file" [vmlinux] is COMMON symbol
WARNING: "private_ts" [vmlinux] is COMMON symbol
WARNING: "arm_pm_restart" [vmlinux] is COMMON symbol
WARNING: "irq_err_count" [vmlinux] is COMMON symbol
WARNING: "CID_VER_MAJ_FLASH_ADDR" [vmlinux] is COMMON symbol
WARNING: "points_info" [vmlinux] is COMMON symbol
WARNING: "cts_tpmodule" [vmlinux] is COMMON symbol
WARNING: "g_hx_chip_inited" [vmlinux] is COMMON symbol
WARNING: "cfg_flag" [vmlinux] is COMMON symbol
WARNING: "reclaim_avg_efficiency" [vmlinux] is COMMON symbol
WARNING: "fts_proc_baseline_test_file" [vmlinux] is COMMON symbol
WARNING: "selinuxfs_mount" [vmlinux] is COMMON symbol
WARNING: "plat_dev" [vmlinux] is COMMON symbol
WARNING: "ring_buffer_expanded" [vmlinux] is COMMON symbol
WARNING: "FAT_cache_hash_list" [vmlinux] is COMMON symbol
WARNING: "sighand_cachep" [vmlinux] is COMMON symbol
WARNING: "dns_resolver_cache" [vmlinux] is COMMON symbol
WARNING: "functionmask" [vmlinux] is COMMON symbol
WARNING: "vm_dirty_bytes" [vmlinux] is COMMON symbol
WARNING: "soc_temp_sensor" [vmlinux] is COMMON symbol
WARNING: "fscrypt_info_cachep" [vmlinux] is COMMON symbol
WARNING: "tracepoint_print_iter" [vmlinux] is COMMON symbol
WARNING: "ilits" [vmlinux] is COMMON symbol
WARNING: "HX_RX_NUM_2" [vmlinux] is COMMON symbol
WARNING: "diag_mutual" [vmlinux] is COMMON symbol
WARNING: "hugetlb_fault_mutex_table" [vmlinux] is COMMON symbol
WARNING: "memblock_debug" [vmlinux] is COMMON symbol
WARNING: "g_charger_info" [vmlinux] is COMMON symbol
WARNING: "mem_map" [vmlinux] is COMMON symbol
WARNING: "dbg_func_ptr_r" [vmlinux] is COMMON symbol
WARNING: "g_core_fp" [vmlinux] is COMMON symbol
WARNING: "memcg_nr_cache_ids" [vmlinux] is COMMON symbol
WARNING: "max_low_pfn" [vmlinux] is COMMON symbol
WARNING: "reg_read_data" [vmlinux] is COMMON symbol
WARNING: "lsm_names" [vmlinux] is COMMON symbol
WARNING: "vm_total_pages" [vmlinux] is COMMON symbol
WARNING: "flash_buffer" [vmlinux] is COMMON symbol
WARNING: "usb_serial_tty_driver" [vmlinux] is COMMON symbol
WARNING: "total_forks" [vmlinux] is COMMON symbol
WARNING: "sysctl_compact_memory" [vmlinux] is COMMON symbol
WARNING: "page_cluster" [vmlinux] is COMMON symbol
WARNING: "Y_NUM" [vmlinux] is COMMON symbol
WARNING: "def_rt_bandwidth" [vmlinux] is COMMON symbol
WARNING: "CID_VER_MIN_FLASH_ADDR" [vmlinux] is COMMON symbol
WARNING: "ras_debugfs_dir" [vmlinux] is COMMON symbol
WARNING: "sysdump_status" [vmlinux] is COMMON symbol
WARNING: "devices_kset" [vmlinux] is COMMON symbol
WARNING: "proc_dir_oplus" [vmlinux] is COMMON symbol
WARNING: "g_core_cmd_op" [vmlinux] is COMMON symbol
WARNING: "cgroup_threadgroup_rwsem" [vmlinux] is COMMON symbol
WARNING: "kcrypto_wq" [vmlinux] is COMMON symbol
WARNING: "ipi_custom_irq_domain" [vmlinux] is COMMON symbol
WARNING: "regs" [vmlinux] is COMMON symbol
WARNING: "__boot_cpu_id" [vmlinux] is COMMON symbol
WARNING: "hx_ED_event_flag" [vmlinux] is COMMON symbol
WARNING: "g_max_mutual" [vmlinux] is COMMON symbol
WARNING: "sched_domains_tmpmask2" [vmlinux] is COMMON symbol
WARNING: "timeEnd" [vmlinux] is COMMON symbol
WARNING: "udp_memory_allocated" [vmlinux] is COMMON symbol
WARNING: "cpu_isolated_map" [vmlinux] is COMMON symbol
WARNING: "handshaking_result" [vmlinux] is COMMON symbol
WARNING: "gsp_enabled_layer_count" [vmlinux] is COMMON symbol
WARNING: "swap_slot_cache_enabled" [vmlinux] is COMMON symbol
WARNING: "psram_op" [vmlinux] is COMMON symbol
WARNING: "egisfp_class" [vmlinux] is COMMON symbol
WARNING: "calc_load_tasks" [vmlinux] is COMMON symbol
WARNING: "corner_info" [vmlinux] is COMMON symbol
WARNING: "max_user_congthresh" [vmlinux] is COMMON symbol
WARNING: "panic_blink" [vmlinux] is COMMON symbol
WARNING: "selinux_null" [vmlinux] is COMMON symbol
WARNING: "sys_tz" [vmlinux] is COMMON symbol
WARNING: "dns_resolver_debug" [vmlinux] is COMMON symbol
WARNING: "alternatives_applied" [vmlinux] is COMMON symbol
WARNING: "marlin_callback_para" [vmlinux] is COMMON symbol
WARNING: "max_segment" [vmlinux] is COMMON symbol
WARNING: "file_w_flag" [vmlinux] is COMMON symbol
WARNING: "gsp_tipc" [vmlinux] is COMMON symbol
WARNING: "kmem_cache" [vmlinux] is COMMON symbol
WARNING: "HX_CRITERIA_SIZE" [vmlinux] is COMMON symbol
WARNING: "key_user_tree" [vmlinux] is COMMON symbol
WARNING: "autotest" [vmlinux] is COMMON symbol
WARNING: "himax_proc_backscreen_baseline_file" [vmlinux] is COMMON symbol
WARNING: "fw_update_complete" [vmlinux] is COMMON symbol
WARNING: "no_irq_affinity" [vmlinux] is COMMON symbol
WARNING: "g_zero_event_count" [vmlinux] is COMMON symbol
WARNING: "reboot_force" [vmlinux] is COMMON symbol
WARNING: "__i2c_first_dynamic_bus_num" [vmlinux] is COMMON symbol
WARNING: "initrd_start" [vmlinux] is COMMON symbol
WARNING: "fw_update_going" [vmlinux] is COMMON symbol
WARNING: "drm_class" [vmlinux] is COMMON symbol
WARNING: "ge2_completion" [vmlinux] is COMMON symbol
WARNING: "ip6_ra_chain" [vmlinux] is COMMON symbol
WARNING: "gpdev" [vmlinux] is COMMON symbol
WARNING: "diag_mutual_2" [vmlinux] is COMMON symbol
WARNING: "nf_nat_sip_hooks" [vmlinux] is COMMON symbol
WARNING: "cts_fw" [vmlinux] is COMMON symbol
WARNING: "__highest_present_section_nr" [vmlinux] is COMMON symbol
WARNING: "pm_dma" [vmlinux] is COMMON symbol
WARNING: "percpu_pagelist_fraction" [vmlinux] is COMMON symbol
WARNING: "himax_ksym_lookup" [vmlinux] is COMMON symbol
WARNING: "hx_EC_event_flag" [vmlinux] is COMMON symbol
WARNING: "musb_dma_controller_create" [vmlinux] is COMMON symbol
WARNING: "codec_instance_count" [vmlinux] is COMMON symbol
WARNING: "tcp_hashinfo" [vmlinux] is COMMON symbol
WARNING: "himax_proc_self_test_file" [vmlinux] is COMMON symbol
WARNING: "ip_ra_chain" [vmlinux] is COMMON symbol
WARNING: "tty_class" [vmlinux] is COMMON symbol
WARNING: "ic_boot_done" [vmlinux] is COMMON symbol
WARNING: "pregs_die_g" [vmlinux] is COMMON symbol
WARNING: "mem_sleep_states" [vmlinux] is COMMON symbol
WARNING: "minidump_regs_g" [vmlinux] is COMMON symbol
WARNING: "argv" [vmlinux] is COMMON symbol
WARNING: "mm_kobj" [vmlinux] is COMMON symbol
WARNING: "gnss_ops" [vmlinux] is COMMON symbol
WARNING: "ctx_power" [vmlinux] is COMMON symbol
WARNING: "missed_req" [vmlinux] is COMMON symbol
WARNING: "block_dump" [vmlinux] is COMMON symbol
WARNING: "musb_readb" [vmlinux] is COMMON symbol
WARNING: "mpidr_hash" [vmlinux] is COMMON symbol
WARNING: "CFG_VER_MAJ_FLASH_ADDR" [vmlinux] is COMMON symbol
WARNING: "shub_stream_processor" [vmlinux] is COMMON symbol
WARNING: "not_ready_time" [vmlinux] is COMMON symbol
WARNING: "IC_CHECKSUM" [vmlinux] is COMMON symbol
WARNING: "hxfw" [vmlinux] is COMMON symbol
WARNING: "raw_data_array" [vmlinux] is COMMON symbol
WARNING: "HX_EXCP_RESET_ACTIVATE" [vmlinux] is COMMON symbol
WARNING: "pm_freezing" [vmlinux] is COMMON symbol
WARNING: "g_diag_arr_num" [vmlinux] is COMMON symbol
WARNING: "shub_stream_processor_nwu" [vmlinux] is COMMON symbol
WARNING: "psinfo" [vmlinux] is COMMON symbol
WARNING: "proc_dir_debug_info" [vmlinux] is COMMON symbol
WARNING: "suspend_stats" [vmlinux] is COMMON symbol
WARNING: "initrd_end" [vmlinux] is COMMON symbol
WARNING: "lcd_str" [vmlinux] is COMMON symbol
WARNING: "swapper_spaces" [vmlinux] is COMMON symbol
WARNING: "cmd_set" [vmlinux] is COMMON symbol
WARNING: "X_NUM" [vmlinux] is COMMON symbol
WARNING: "g_inspection_criteria" [vmlinux] is COMMON symbol
WARNING: "secondary_data" [vmlinux] is COMMON symbol
WARNING: "himax_proc_diag_dir" [vmlinux] is COMMON symbol
WARNING: "swiotlb_force" [vmlinux] is COMMON symbol
WARNING: "usb_hcds_loaded" [vmlinux] is COMMON symbol
WARNING: "cpuidle_curr_governor" [vmlinux] is COMMON symbol
WARNING: "selinux_state" [vmlinux] is COMMON symbol
WARNING: "mbox_ops" [vmlinux] is COMMON symbol
WARNING: "snd_cards" [vmlinux] is COMMON symbol
WARNING: "vm_highmem_is_dirtyable" [vmlinux] is COMMON symbol
WARNING: "avenrun" [vmlinux] is COMMON symbol
WARNING: "cfg80211_regdomain" [vmlinux] is COMMON symbol
WARNING: "blk_requestq_cachep" [vmlinux] is COMMON symbol
WARNING: "kp_putname_kernel" [vmlinux] is COMMON symbol
WARNING: "cpus_stuck_in_kernel" [vmlinux] is COMMON symbol
WARNING: "blkcg_root" [vmlinux] is COMMON symbol
WARNING: "g_i_FW_VER" [vmlinux] is COMMON symbol
WARNING: "cluster1_temp_sensor" [vmlinux] is COMMON symbol
WARNING: "initcall_debug" [vmlinux] is COMMON symbol
WARNING: "aio_nr" [vmlinux] is COMMON symbol
WARNING: "tcp_sockets_allocated" [vmlinux] is COMMON symbol
WARNING: "pzf_op" [vmlinux] is COMMON symbol
WARNING: "mem_section" [vmlinux] is COMMON symbol
WARNING: "blk_max_pfn" [vmlinux] is COMMON symbol
WARNING: "pm_power_off" [vmlinux] is COMMON symbol
WARNING: "diag_self_old" [vmlinux] is COMMON symbol
WARNING: "dirty_background_bytes" [vmlinux] is COMMON symbol
WARNING: "fb_mode_option" [vmlinux] is COMMON symbol
WARNING: "root_task_group" [vmlinux] is COMMON symbol
WARNING: "reboot_cpu" [vmlinux] is COMMON symbol
WARNING: "reg_cmd" [vmlinux] is COMMON symbol
WARNING: "request_cachep" [vmlinux] is COMMON symbol
WARNING: "sysctl_panic_on_oom" [vmlinux] is COMMON symbol
WARNING: "pdriver_op" [vmlinux] is COMMON symbol
WARNING: "musb_writeb" [vmlinux] is COMMON symbol
WARNING: "g_switch_mode" [vmlinux] is COMMON symbol
WARNING: "pm_wq" [vmlinux] is COMMON symbol
WARNING: "himax_proc_stack_file" [vmlinux] is COMMON symbol
WARNING: "g_i_CID_MAJ" [vmlinux] is COMMON symbol
WARNING: "hx_ctpmodule" [vmlinux] is COMMON symbol
WARNING: "irq_default_affinity" [vmlinux] is COMMON symbol
WARNING: "hx_state_info" [vmlinux] is COMMON symbol
WARNING: "max_pfn" [vmlinux] is COMMON symbol
WARNING: "cgrp_dfl_root" [vmlinux] is COMMON symbol
WARNING: "default_hstate_idx" [vmlinux] is COMMON symbol
WARNING: "CFG_VER_MIN_FLASH_ADDR" [vmlinux] is COMMON symbol
WARNING: "system_serial" [vmlinux] is COMMON symbol
WARNING: "cfg80211_rdev_list_generation" [vmlinux] is COMMON symbol
WARNING: "tick_next_period" [vmlinux] is COMMON symbol
WARNING: "USB_detect_flag" [vmlinux] is COMMON symbol
WARNING: "vm_committed_as" [vmlinux] is COMMON symbol
WARNING: "ovl_idx" [vmlinux] is COMMON symbol
WARNING: "initrd_below_start_ok" [vmlinux] is COMMON symbol
WARNING: "uuid_null" [vmlinux] is COMMON symbol
WARNING: "vm_area_cachep" [vmlinux] is COMMON symbol
WARNING: "sysctl_oom_kill_allocating_task" [vmlinux] is COMMON symbol
WARNING: "sysctl_sched_sync_hint_enable" [vmlinux] is COMMON symbol
WARNING: "__icache_flags" [vmlinux] is COMMON symbol
WARNING: "cpufreq_datas" [vmlinux] is COMMON symbol
WARNING: "sleep_save_stash" [vmlinux] is COMMON symbol
WARNING: "emmc_resetting_when_cmdq" [vmlinux] is COMMON symbol
WARNING: "fs_cachep" [vmlinux] is COMMON symbol
WARNING: "module_sysfs_initialized" [vmlinux] is COMMON symbol
WARNING: "cpuhp_tasks_frozen" [vmlinux] is COMMON symbol
WARNING: "nr_threads" [vmlinux] is COMMON symbol
WARNING: "musb_readl" [vmlinux] is COMMON symbol
WARNING: "snd_seq_root" [vmlinux] is COMMON symbol
WARNING: "debug_locks_silent" [vmlinux] is COMMON symbol
WARNING: "dbg_func_ptr_w" [vmlinux] is COMMON symbol
WARNING: "rcutorture_testseq" [vmlinux] is COMMON symbol
WARNING: "HX_TOUCH_INFO_POINT_CNT" [vmlinux] is COMMON symbol
WARNING: "FAT_cache_lru_list" [vmlinux] is COMMON symbol
WARNING: "jbd2_inode_cache" [vmlinux] is COMMON symbol
WARNING: "max_mapnr" [vmlinux] is COMMON symbol
WARNING: "FW_VER_MAJ_FLASH_ADDR" [vmlinux] is COMMON symbol
WARNING: "rtc_class" [vmlinux] is COMMON symbol
WARNING: "perf_guest_cbs" [vmlinux] is COMMON symbol
WARNING: "buf_cache_lru_list" [vmlinux] is COMMON symbol
WARNING: "g_mmi_refcnt" [vmlinux] is COMMON symbol
WARNING: "sd_gpio" [vmlinux] is COMMON symbol
WARNING: "block_depr" [vmlinux] is COMMON symbol
WARNING: "pfw_op" [vmlinux] is COMMON symbol
WARNING: "g_sensor" [vmlinux] is COMMON symbol
WARNING: "lcd_name" [vmlinux] is COMMON symbol
WARNING: "wdd" [vmlinux] is COMMON symbol
WARNING: "snd_ecards_limit" [vmlinux] is COMMON symbol
WARNING: "fsnotify_mark_srcu" [vmlinux] is COMMON symbol
WARNING: "timeStart" [vmlinux] is COMMON symbol
WARNING: "rc_core_debug" [vmlinux] is COMMON symbol
WARNING: "g_f_0f_updat" [vmlinux] is COMMON symbol
WARNING: "min_cap_cpu_mask" [vmlinux] is COMMON symbol
WARNING: "g_flash_cmd" [vmlinux] is COMMON symbol
WARNING: "slab_state" [vmlinux] is COMMON symbol
WARNING: "of_chosen" [vmlinux] is COMMON symbol
WARNING: "manufacture_information" [vmlinux] is COMMON symbol
WARNING: "HX_TX_NUM_2" [vmlinux] is COMMON symbol
WARNING: "sge_array" [vmlinux] is COMMON symbol
WARNING: "cpu_hwcaps" [vmlinux] is COMMON symbol
WARNING: "taskstats_cache" [vmlinux] is COMMON symbol
WARNING: "max_threads" [vmlinux] is COMMON symbol
WARNING: "console_set_on_cmdline" [vmlinux] is COMMON symbol
WARNING: "blk_max_low_pfn" [vmlinux] is COMMON symbol
WARNING: "dual_role_class" [vmlinux] is COMMON symbol
WARNING: "fsnotify_mark_connector_cachep" [vmlinux] is COMMON symbol
WARNING: "himax_proc_flash_dump_file" [vmlinux] is COMMON symbol
WARNING: "debug_data" [vmlinux] is COMMON symbol
WARNING: "buffer_heads_over_limit" [vmlinux] is COMMON symbol
WARNING: "usb_debug_root" [vmlinux] is COMMON symbol
WARNING: "key_serial_tree" [vmlinux] is COMMON symbol
WARNING: "sysfs_dev_char_kobj" [vmlinux] is COMMON symbol
WARNING: "audit_inode_hash" [vmlinux] is COMMON symbol
WARNING: "minidump_info_desc_g" [vmlinux] is COMMON symbol
WARNING: "of_stdout" [vmlinux] is COMMON symbol
WARNING: "pm_suspend_target_state" [vmlinux] is COMMON symbol
WARNING: "real_root_dev" [vmlinux] is COMMON symbol
WARNING: "min_low_pfn" [vmlinux] is COMMON symbol
WARNING: "pm_nosig_freezing" [vmlinux] is COMMON symbol
WARNING: "g_i_CID_MIN" [vmlinux] is COMMON symbol
WARNING: "key_jar" [vmlinux] is COMMON symbol
WARNING: "reset_devices" [vmlinux] is COMMON symbol
WARNING: "total_swap_pages" [vmlinux] is COMMON symbol
WARNING: "g_i_CFG_VER" [vmlinux] is COMMON symbol
WARNING: "kp_file_open_name" [vmlinux] is COMMON symbol
WARNING: "debug_level_cmd" [vmlinux] is COMMON symbol
WARNING: "pdata" [vmlinux] is COMMON symbol
WARNING: "tcp_orphan_count" [vmlinux] is COMMON symbol
WARNING: "__fib6_flush_trees" [vmlinux] is COMMON symbol
WARNING: "def_dl_bandwidth" [vmlinux] is COMMON symbol
WARNING: "autotest_class" [vmlinux] is COMMON symbol
WARNING: "uidhash_table" [vmlinux] is COMMON symbol
WARNING: "le_ctx_power" [vmlinux] is COMMON symbol
WARNING: "CFG_TABLE_FLASH_ADDR_T" [vmlinux] is COMMON symbol
WARNING: "rcu_expedited" [vmlinux] is COMMON symbol
WARNING: "schedtune_spc_rdiv" [vmlinux] is COMMON symbol
WARNING: "sysctl_hugetlb_shm_group" [vmlinux] is COMMON symbol
WARNING: "trace_instance_dir" [vmlinux] is COMMON symbol
WARNING: "dummy_regulator_rdev" [vmlinux] is COMMON symbol
WARNING: "ftrace_dump_on_oops" [vmlinux] is COMMON symbol
WARNING: "sysctl_emem_trigger" [vmlinux] is COMMON symbol
WARNING: "power_shutdown" [vmlinux] is COMMON symbol
WARNING: "hd_thread" [vmlinux] is COMMON symbol
WARNING: "argc" [vmlinux] is COMMON symbol
WARNING: "g_inspt_crtra_flag" [vmlinux] is COMMON symbol
WARNING: "tp_gesture" [vmlinux] is COMMON symbol
WARNING: "rcutorture_vernum" [vmlinux] is COMMON symbol
WARNING: "byte_length" [vmlinux] is COMMON symbol
WARNING: "kp_getname_kernel" [vmlinux] is COMMON symbol
WARNING: "perf_swevent_enabled" [vmlinux] is COMMON symbol
WARNING: "gpu_tz" [vmlinux] is COMMON symbol
WARNING: "g_hx_inspt_setting_val" [vmlinux] is COMMON symbol
WARNING: "g_flash_progress" [vmlinux] is COMMON symbol
WARNING: "dumpmem_complete" [vmlinux] is COMMON symbol
WARNING: "minors" [vmlinux] is COMMON symbol
WARNING: "pingv6_ops" [vmlinux] is COMMON symbol
WARNING: "g_ts_dbg" [vmlinux] is COMMON symbol
WARNING: "himax_proc_pen_pos_file" [vmlinux] is COMMON symbol
WARNING: "pm_suspend_global_flags" [vmlinux] is COMMON symbol
WARNING: "test_force_stop" [vmlinux] is COMMON symbol
WARNING: "f2fs_inode_entry_slab" [vmlinux] is COMMON symbol
WARNING: "kthreadd_task" [vmlinux] is COMMON symbol
WARNING: "hang_info" [vmlinux] is COMMON symbol
WARNING: "crash_kexec_post_notifiers" [vmlinux] is COMMON symbol
WARNING: "musb_writel" [vmlinux] is COMMON symbol
WARNING: "HX_PROC_SEND_FLAG" [vmlinux] is COMMON symbol
WARNING: "mode_flag" [vmlinux] is COMMON symbol
WARNING: "himax_proc_delta_file" [vmlinux] is COMMON symbol
WARNING: "silfp_class" [vmlinux] is COMMON symbol
WARNING: "memcg_kmem_cache_wq" [vmlinux] is COMMON symbol
WARNING: "avc_backtrace_enable" [vmlinux] is COMMON symbol
WARNING: "irq_stat" [vmlinux] is COMMON symbol
WARNING: "nr_swap_pages" [vmlinux] is COMMON symbol
WARNING: "binder_alloc_lru" [vmlinux] is COMMON symbol
WARNING: "files_cachep" [vmlinux] is COMMON symbol
WARNING: "cluster_data" [vmlinux] is COMMON symbol
WARNING: "marlin_reset_func" [vmlinux] is COMMON symbol
WARNING: "ROOT_DEV" [vmlinux] is COMMON symbol
WARNING: "power_s" [vmlinux] is COMMON symbol
WARNING: "power_supply_class" [vmlinux] is COMMON symbol
WARNING: "irqchip_fwnode_ops" [vmlinux] is COMMON symbol
WARNING: "sysfs_root_kn" [vmlinux] is COMMON symbol
WARNING: "swap_avail_heads" [vmlinux] is COMMON symbol
WARNING: "himax_proc_baseline_test_file" [vmlinux] is COMMON symbol
WARNING: "tick_period" [vmlinux] is COMMON symbol
WARNING: "fs_kobj" [vmlinux] is COMMON symbol
WARNING: "swap_info" [vmlinux] is COMMON symbol
WARNING: "bdi_wq" [vmlinux] is COMMON symbol
WARNING: "sysfs_dev_block_kobj" [vmlinux] is COMMON symbol
WARNING: "buf_cache_hash_list" [vmlinux] is COMMON symbol
WARNING: "reservation_seqcount_class" [vmlinux] is COMMON symbol
WARNING: "max_user_bgreq" [vmlinux] is COMMON symbol
WARNING: "himax_proc_game_switch_en_file" [vmlinux] is COMMON symbol
WARNING: "tick_nsec" [vmlinux] is COMMON symbol
WARNING: "fb_class" [vmlinux] is COMMON symbol
WARNING: "mdbg_wait" [vmlinux] is COMMON symbol
WARNING: "timeDelta" [vmlinux] is COMMON symbol
WARNING: "configfs_dir_cachep" [vmlinux] is COMMON symbol
WARNING: "CFG_TABLE_FLASH_ADDR" [vmlinux] is COMMON symbol
WARNING: "g_flash_dump_rst" [vmlinux] is COMMON symbol
WARNING: "__disable_trace_on_warning" [vmlinux] is COMMON symbol
WARNING: "dbg_cmd_par" [vmlinux] is COMMON symbol
WARNING: "diag_self" [vmlinux] is COMMON symbol
WARNING: "regmap" [vmlinux] is COMMON symbol
WARNING: "g_boot_upgrade_flag" [vmlinux] is COMMON symbol
WARNING: "high_memory" [vmlinux] is COMMON symbol
WARNING: "diag_mutual_old" [vmlinux] is COMMON symbol
WARNING: "rcu_normal" [vmlinux] is COMMON symbol
WARNING: "pt_data_len" [vmlinux] is COMMON symbol
WARNING: "kernfs_node_cache" [vmlinux] is COMMON symbol
WARNING: "fts_proc_touchpanel_dir" [vmlinux] is COMMON symbol
WARNING: "esphs" [vmlinux] is COMMON symbol
WARNING: "preset_lpj" [vmlinux] is COMMON symbol
WARNING: "himax_proc_limit_enable_file" [vmlinux] is COMMON symbol
WARNING: "tcp_fastopen_ctx" [vmlinux] is COMMON symbol
WARNING: "crypto_default_rng" [vmlinux] is COMMON symbol
WARNING: "flag_reset" [vmlinux] is COMMON symbol
WARNING: "tracepoint_printk" [vmlinux] is COMMON symbol
WARNING: "fts_ftest" [vmlinux] is COMMON symbol
WARNING: "pcpu_nr_empty_pop_pages" [vmlinux] is COMMON symbol
WARNING: "__smp_cross_call" [vmlinux] is COMMON symbol
WARNING: "scsi_logging_level" [vmlinux] is COMMON symbol
WARNING: "nfc_devlist_generation" [vmlinux] is COMMON symbol
WARNING: "nvdimm_major" [vmlinux] is COMMON symbol
WARNING: "isolation_global_kobject" [vmlinux] is COMMON symbol
WARNING: "g_test_item_flag" [vmlinux] is COMMON symbol
WARNING: "HX_HW_RESET_ACTIVATE" [vmlinux] is COMMON symbol
WARNING: "ext4__ioend_wq" [vmlinux] is COMMON symbol
WARNING: "persistent_clock_is_local" [vmlinux] is COMMON symbol
WARNING: "firmware_kobj" [vmlinux] is COMMON symbol
WARNING: "saved_command_line" [vmlinux] is COMMON symbol
WARNING: "himax_proc_dc_file" [vmlinux] is COMMON symbol
WARNING: "pipe_user_pages_hard" [vmlinux] is COMMON symbol
WARNING: "sound_class" [vmlinux] is COMMON symbol
WARNING: "dqstats" [vmlinux] is COMMON symbol
WARNING: "smsg_ipcs" [vmlinux] is COMMON symbol
WARNING: "enable" [vmlinux] is COMMON symbol
WARNING: "pm_power_off_prepare" [vmlinux] is COMMON symbol
WARNING: "himax_mcu_cmd_struct_free" [vmlinux] is COMMON symbol
WARNING: "g_aud_ipc" [vmlinux] is COMMON symbol
WARNING: "power_l" [vmlinux] is COMMON symbol
WARNING: "FAT_cache_array" [vmlinux] is COMMON symbol
WARNING: "mutual_set_flag" [vmlinux] is COMMON symbol
WARNING: "cpu_context" [vmlinux] is COMMON symbol
WARNING: "hx_fw" [vmlinux] is COMMON symbol
WARNING: "vsp_pw_domain_info" [vmlinux] is COMMON symbol
WARNING: "dbg_cmd_flag" [vmlinux] is COMMON symbol
WARNING: "ic_data" [vmlinux] is COMMON symbol
WARNING: "unix_tot_inflight" [vmlinux] is COMMON symbol
WARNING: "calibration_mode" [vmlinux] is COMMON symbol
WARNING: "himax_proc_touchpanel_dir" [vmlinux] is COMMON symbol
WARNING: "refined_jiffies" [vmlinux] is COMMON symbol
WARNING: "def_root_domain" [vmlinux] is COMMON symbol
WARNING: "dsram_flag" [vmlinux] is COMMON symbol
WARNING: "nf_nat_ftp_hook" [vmlinux] is COMMON symbol
WARNING: "hx_touch_data" [vmlinux] is COMMON symbol
WARNING: "cpu_topology" [vmlinux] is COMMON symbol
WARNING: "musb_readw" [vmlinux] is COMMON symbol
WARNING: "avc_dump_all" [vmlinux] is COMMON symbol
WARNING: "display_class" [vmlinux] is COMMON symbol
WARNING: "lpj_fine" [vmlinux] is COMMON symbol
WARNING: "musb_dma_controller_destroy" [vmlinux] is COMMON symbol
WARNING: "tp_interface" [vmlinux] is COMMON symbol
WARNING: "regmap_ctx" [vmlinux] is COMMON symbol
WARNING: "die_notify_flag" [vmlinux] is COMMON symbol
WARNING: "process_type" [vmlinux] is COMMON symbol
WARNING: "total_cpus" [vmlinux] is COMMON symbol
WARNING: "mm_percpu_wq" [vmlinux] is COMMON symbol
WARNING: "inodes_stat" [vmlinux] is COMMON symbol
WARNING: "oops_in_progress" [vmlinux] is COMMON symbol
WARNING: "le_ctx_enable" [vmlinux] is COMMON symbol
WARNING: "himax_touch_proc_dir" [vmlinux] is COMMON symbol
WARNING: "power_iso" [vmlinux] is COMMON symbol
WARNING: "pm_print_times_enabled" [vmlinux] is COMMON symbol
WARNING: "module_kset" [vmlinux] is COMMON symbol
WARNING: "global_wb_domain" [vmlinux] is COMMON symbol
WARNING: "jbd2_handle_cache" [vmlinux] is COMMON symbol
WARNING: "himax_proc_baseline_file" [vmlinux] is COMMON symbol
WARNING: "core_pipe_limit" [vmlinux] is COMMON symbol
WARNING: "imsbr_stats" [vmlinux] is COMMON symbol
WARNING: "Ctp_name" [vmlinux] is COMMON symbol
WARNING: "fuse_conn_list" [vmlinux] is COMMON symbol
WARNING: "nf_nat_decode_session_hook" [vmlinux] is COMMON symbol
WARNING: "console_drivers" [vmlinux] is COMMON symbol
WARNING: "HX_CRITERIA_ITEM" [vmlinux] is COMMON symbol
WARNING: "max_possible_pfn" [vmlinux] is COMMON symbol
WARNING: "fts_data" [vmlinux] is COMMON symbol
WARNING: "uevent_seqnum" [vmlinux] is COMMON symbol
WARNING: "audit_n_rules" [vmlinux] is COMMON symbol
WARNING: "fwupgrade" [vmlinux] is COMMON symbol
WARNING: "cluster0_temp_sensor" [vmlinux] is COMMON symbol
WARNING: "cur_lp_state" [vmlinux] is COMMON symbol
WARNING: "sipc_ap" [vmlinux] is COMMON symbol
WARNING: "unix_socket_table" [vmlinux] is COMMON symbol
WARNING: "cpufreq_global_kobject" [vmlinux] is COMMON symbol
WARNING: "debug_guardpage_ops" [vmlinux] is COMMON symbol
WARNING: "guid_null" [vmlinux] is COMMON symbol
WARNING: "hash_table" [vmlinux] is COMMON symbol
WARNING: "overflow" [vmlinux] is COMMON symbol
WARNING: "synproxy_net_id" [vmlinux] is COMMON symbol
WARNING: "mmap_min_addr" [vmlinux] is COMMON symbol
WARNING: "fts_proc_backscreen_baseline_file" [vmlinux] is COMMON symbol
WARNING: "pflash_op" [vmlinux] is COMMON symbol
WARNING: "FW_VER_MIN_FLASH_ADDR" [vmlinux] is COMMON symbol
WARNING: "pm_states" [vmlinux] is COMMON symbol
WARNING: "lcd_id" [vmlinux] is COMMON symbol
WARNING: "of_kset" [vmlinux] is COMMON symbol
WARNING: "hx_EB_event_flag" [vmlinux] is COMMON symbol
WARNING: "diag_coor" [vmlinux] is COMMON symbol
WARNING: "g_fgu_data" [vmlinux] is COMMON symbol
WARNING: "binder_transaction_log_failed" [vmlinux] is COMMON symbol
WARNING: "g_target_report_data" [vmlinux] is COMMON symbol
WARNING: "himax_proc_debug_file" [vmlinux] is COMMON symbol
WARNING: "tcp_memory_allocated" [vmlinux] is COMMON symbol
WARNING: "cfg80211_wq" [vmlinux] is COMMON symbol
WARNING: "sysctl_legacy_va_layout" [vmlinux] is COMMON symbol
WARNING: "dvfs_class" [vmlinux] is COMMON symbol
WARNING: "core_uses_pid" [vmlinux] is COMMON symbol
WARNING: "default_vdev" [vmlinux] is COMMON symbol
WARNING: "snd_major" [vmlinux] is COMMON symbol
WARNING: "wdt_fiq" [vmlinux] is COMMON symbol
WARNING: "spi" [vmlinux] is COMMON symbol
WARNING: "ctx_enable" [vmlinux] is COMMON symbol
WARNING: "of_root" [vmlinux] is COMMON symbol
WARNING: "power_kobj" [vmlinux] is COMMON symbol
WARNING: "hstates" [vmlinux] is COMMON symbol
WARNING: "heaps" [vmlinux] is COMMON symbol
WARNING: "fts_proc_oplus_tp_direction" [vmlinux] is COMMON symbol
WARNING: "mdbg_dev" [vmlinux] is COMMON symbol
WARNING: "s_buf_done_count" [vmlinux] is COMMON symbol
WARNING: "kernel_kobj" [vmlinux] is COMMON symbol
WARNING: "do_lpwg_test" [vmlinux] is COMMON symbol
WARNING: "g_max_self" [vmlinux] is COMMON symbol
WARNING: "cad_pid" [vmlinux] is COMMON symbol
WARNING: "diag_mutual_new" [vmlinux] is COMMON symbol
WARNING: "sched_domains_tmpmask" [vmlinux] is COMMON symbol
WARNING: "fs_struct" [vmlinux] is COMMON symbol
WARNING: "calc_load_update" [vmlinux] is COMMON symbol
WARNING: "buf_cache_array" [vmlinux] is COMMON symbol
WARNING: "g_rslt_data" [vmlinux] is COMMON symbol
WARNING: "fs_bio_set" [vmlinux] is COMMON symbol
WARNING: "audit_signals" [vmlinux] is COMMON symbol
WARNING: "crash_notes" [vmlinux] is COMMON symbol
WARNING: "reboot_mode" [vmlinux] is COMMON symbol
WARNING: "Is_2T2R" [vmlinux] is COMMON symbol
WARNING: "sysctl_drop_caches" [vmlinux] is COMMON symbol
WARNING: "i2c_error_count" [vmlinux] is COMMON symbol
WARNING: "sched_domain_level_max" [vmlinux] is COMMON symbol
WARNING: "initial_boot_params" [vmlinux] is COMMON symbol
WARNING: "diag_self_new" [vmlinux] is COMMON symbol
WARNING: "himax_proc_vendor_file" [vmlinux] is COMMON symbol
WARNING: "musb_writew" [vmlinux] is COMMON symbol
WARNING: "g_rslt_data_len" [vmlinux] is COMMON symbol
WARNING: "laptop_mode" [vmlinux] is COMMON symbol
WARNING: "sprd_log_buf" [vmlinux] is COMMON symbol
WARNING: "binder_transaction_log" [vmlinux] is COMMON symbol
WARNING: "hugepages_treat_as_movable" [vmlinux] is COMMON symbol
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
mm/gup.o: In function `follow_pud_mask':
gup.c:(.text+0x4344): undefined reference to `follow_devmap_pud'
mm/memory.o: In function `copy_page_range':
memory.c:(.text+0x81cc): undefined reference to `copy_huge_pud'
mm/memory.o: In function `unmap_page_range':
memory.c:(.text+0xaf10): undefined reference to `__split_huge_pud'
memory.c:(.text+0xaf28): undefined reference to `zap_huge_pud'
mm/memory.o: In function `insert_pfn':
memory.c:(.text+0xeac8): undefined reference to `pte_mkdevmap'
mm/pagewalk.o: In function `walk_pud_range':
pagewalk.c:(.text+0x608): undefined reference to `__split_huge_pud'
mm/page_io.o: In function `swap_writepage':
page_io.c:(.text+0xf18): undefined reference to `__frontswap_store'
mm/page_io.o: In function `swap_readpage':
page_io.c:(.text+0x2b5c): undefined reference to `__frontswap_load'
mm/swapfile.o: In function `swap_range_free':
swapfile.c:(.text+0x1828): undefined reference to `__frontswap_invalidate_page'
mm/swapfile.o: In function `SyS_swapoff':
swapfile.c:(.text+0xb8f8): undefined reference to `__frontswap_invalidate_area'
mm/migrate.o: In function `remove_migration_pte':
migrate.c:(.text+0x267c): undefined reference to `pte_mkdevmap'
mm/huge_memory.o: In function `insert_pfn_pmd':
huge_memory.c:(.text+0x51c0): undefined reference to `pmd_mkdevmap'
drivers/base/dma-mapping.o: In function `dma_configure':
dma-mapping.c:(.text+0x1104): undefined reference to `pci_put_host_bridge_device'
drivers/nvdimm/bus.o: In function `nd_pmem_forget_poison_check':
bus.c:(.text+0x22b4): undefined reference to `to_nd_pfn'
bus.c:(.text+0x22dc): undefined reference to `to_nd_dax'
drivers/nvdimm/region_devs.o: In function `nd_region_notify_driver_action':
region_devs.c:(.text+0x1e6c): undefined reference to `to_nd_pfn'
region_devs.c:(.text+0x1ef8): undefined reference to `to_nd_dax'
drivers/nvdimm/namespace_devs.o: In function `is_uuid_busy':
namespace_devs.c:(.text+0x35c): undefined reference to `to_nd_pfn'
drivers/nvdimm/namespace_devs.o: In function `nvdimm_namespace_common_probe':
namespace_devs.c:(.text+0x4868): undefined reference to `to_nd_pfn'
namespace_devs.c:(.text+0x4898): undefined reference to `to_nd_dax'
drivers/nvdimm/claim.o: In function `to_nd_pfn_safe':
claim.c:(.text+0x4e0): undefined reference to `to_nd_pfn'
claim.c:(.text+0x500): undefined reference to `to_nd_dax'
drivers/nvdimm/pmem.o: In function `pmem_attach_disk':
pmem.c:(.text+0x11bc): undefined reference to `to_nd_pfn'
pmem.c:(.text+0x11d0): undefined reference to `nvdimm_setup_pfn'
drivers/nvdimm/pmem.o: In function `nd_pmem_notify':
pmem.c:(.text+0x1f08): undefined reference to `to_nd_pfn'
make[1]: *** [/home/fck/dev/realme_C21Y-AndroidR-kernel-source/Makefile:1144: vmlinux] Error 1
make[1]: выход из каталога «/home/fck/dev/c21y-kernel»
make: *** [Makefile:146: sub-make] Error 2

Если пытаюсь собирать в директорию в которой сам исходный код - очень много ошибок, связанных с отсутствующими файлами. Компилятор linux-android-4.9 и clang version 11.0.2. Все это я узнал из cat /proc/version в самом телефоне

Linux version 4.14.193+ (root@ubuntu-134-43) (Android (6573524 based on r383902b) clang version 11.0.2 (https://android.googlesource.com/toolchain/llvm-project b397f81060ce6d701042b782172ed13bee898b79), LLD 11.0.2 (/buildbot/tmp/tmpF3FjA8 b397f81060ce6d701042b782172ed13bee898b79)) #1 SMP PREEMPT Wed Feb 8 21:48:43 CST 2023

Что мне дала информация file magisk_patched-27006_zOerm.img

magisk_patched-27006_zOerm.img: Android bootimg, kernel (0x8000), ramdisk (0x5400000), page size: 2048, cmdline (console=ttyS1,115200n8 video=HDMI-A-1:1280x800@60 buildvariant=user)

Ссылка на issues раздел в репозитории: https://github.com/ahmedshahin9/realme-c21y-kernel/issues/1 (один) https://github.com/realme-kernel-opensource/realme_C21Y-AndroidR-kernel-source/issues/1 (два)

В репозитории от ahmedshahin9 есть файл RMX3261_defconfig, с ним такие-же проблемы в сборке. Так-же есть файл sprd_minimum_defconfig, с ним ядро собирается. Процесс сборки нового boot.img с помощью abootimg

abootimg -x boot.img

writing boot image config in bootimg.cfg
extracting kernel in zImage
extracting ramdisk in initrd.img

После извлечения меняем файл zImage из папки с новым ядром и собираем обратно boot.img

в файле boot.cfg меняем параметр pagesize = 0x1000, ибо page size нового ядра выходит 4К, в то время как стандартное ядро телефона имеет 2K

abootimg --create new_boot.img -f bootimg.cfg -k zImage -r initrd.img

В итоге прошиваем телефон новым new_boot.img и получаем бутлуп. Причем даже до анимации не доходит. Видимо в sprd_minimum_defconfig исключены почти все модули и работает только базовая система, загрузкой андроид там и не пахнет. Видимо для дальнейшего анализа нужно будет приделать туда UART

 , ,

Redfern89
()

DD [seek] - объясните дураку пожалуйста

Форум — General

Доброго времени суток, уважаемые участники форума! Пытаюсь скопировать 100 байт с /dev/sdb,

┌──(root😈fuck-laptop)-(5.19.0-46-generic)-[ 📂/home/fck ]
└─> dd if=/dev/sdb of=sdb bs=1 count=200 seek=0 && cat sdb | xxd
200+0 records in
200+0 records out
200 bytes copied, 0,00476778 s, 41,9 kB/s
00000000: fab8 0010 8ed0 bc00 b0b8 0000 8ed8 8ec0  ................
00000010: fbbe 007c bf00 06b9 0002 f3a4 ea21 0600  ...|.........!..
00000020: 00be be07 3804 750b 83c6 1081 fefe 0775  ....8.u........u
00000030: f3eb 16b4 02b0 01bb 007c b280 8a74 018b  .........|...t..
00000040: 4c02 cd13 ea00 7c00 00eb fe00 0000 0000  L.....|.........
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000090: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000b0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000c0: 0000 0000 0000 0000                      ........

Хорошо, теперь пропускаем 1 байт

┌──(root😈fuck-laptop)-(5.19.0-46-generic)-[ 📂/home/fck ]
└─> dd if=/dev/sdb of=sdb bs=1 count=200 seek=1 && cat sdb | xxd
200+0 records in
200+0 records out
200 bytes copied, 0,0044253 s, 45,2 kB/s
00000000: fafa b800 108e d0bc 00b0 b800 008e d88e  ................
00000010: c0fb be00 7cbf 0006 b900 02f3 a4ea 2106  ....|.........!.
00000020: 0000 bebe 0738 0475 0b83 c610 81fe fe07  .....8.u........
00000030: 75f3 eb16 b402 b001 bb00 7cb2 808a 7401  u.........|...t.
00000040: 8b4c 02cd 13ea 007c 0000 ebfe 0000 0000  .L.....|........
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000090: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000b0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
000000c0: 0000 0000 0000 0000 00                   .........

Откуда взялось еще одно fa в начале??

 ,

Redfern89
()

Звук xUbuntu Irbis NB-144

Форум — Desktop

Доброго времени суток! Попал в руки IRBIS NB-144 на халяву. Установил xUbuntu. Все хорошо, только звук не работает. Драйвера вроде как есть..

┌──(root😈fuck)-[ 📂/home/fck ] 
└─> inxi -A
Audio:
  Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
    driver: sof-audio-pci-intel-apl
  Sound Server-1: ALSA v: k5.19.0-32-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes

┌──(root😈fuck)-[ 📂/home/fck ] 
└─> lspci -knn | grep -i -A3 audio
00:0e.0 Multimedia audio controller [0401]: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster [8086:5a98] (rev 0d)
	DeviceName: Onboard - Sound
	Subsystem: Device [02f3:f000]
	Kernel driver in use: sof-audio-pci-intel-apl
	Kernel modules: snd_hda_intel, snd_soc_skl, snd_soc_avs, snd_sof_pci_intel_apl
00:0f.0 Communication controller [0780]: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine [8086:5a9a] (rev 0d)
	DeviceName: Onboard - Other

На родной Windows 10 звук работал, на сторонней Windows 10 - звук уже не работал, хотя все драйвера установил.. На xUbuntu соотоветственно звука тоже нету :(

 ,

Redfern89
()

ЭЛТ

Галерея — Рабочие места

Электронно-лучевой трубки вам в ленту!

Оговорюсь сразу — проект еще не закончен! По-любому там есть косяки, которые еще всплывут при работе/наладке. Как, например, сегодня — изображение постоянно фокусируется/расфокусируется. Замена подстроечников не помогла, напряжение на 2м аноде скачет от 368 до 372 вольт. Вчера такого не было!!!

В будущем это часы на электронно-лучевой трубке 6ЛО1И, хотя еще валяется 5ЛО38И, и ее я не проверял пока что. Вся система состоит на данный момент из нескольких блоков:

  1. Блок питания на SG3525. Имеет несколько напряжений: +350, -470, +12, -12, +5, ~6.3 вольт. По 5-вольтовой обмотке предусмотрена обратная связь и небольшая подстройка напряжения в небольших пределах. На выходе высоковольтной обмотки стоят два умножителя напряжения Кокрофта-Уолтона (удвоитель на положительном полуплече, утроитель на отрицательном полуплече). Больше про блок питания сказать нечего.

  2. Усилитель отклонения — самый обычный дифф-каскад на высоковольтных парах 2sc2611 (можно так-же применить MJE340, MJE13003) с усилением на 2 транзисторах. Подстройка четкости осуществляется крутиками подстроечников GAIN (R12, R32) и подбором конденсаторов C9, C11. В моем варианте нагрузочные резисторы (R8, R14, R28, R34) стоят на 150К/1W, о чем я пожалел, ибо они быстро почернели, без активного охлаждения они быстро перегреваются и начинают дымить, нужно ставить мощнее, хотя бы ватт на 5. По идее при снижении их сопротивления можно поднять частоту усилителя, но это еще не опробовано. Подстроечниками Balance (R17, R36) можно отрегулировать изображение по ширине/высоте, а R4, R26 можно растянуть/сузить изображение.

  3. Цифро-аналоговый преобразователь. В моем варианте ЦАП — аццкий костыль на сдвиговых регистрах 74hc595 и резисторах. R-2R. По нему сказать вообще нечего :))

  4. Микроконтроллер. Я пока все делаю на ардуине в среде Atmel Studio 7. Частоты преобразования ей явно не хватает, ибо даже на надписи linux.org.ru есть небольшое мерцание. Ну тут либо я лох и делаю что-то не так, либо нужен микроконтроллер по серьезнее. В наличии есть STM32F103C8T6 (он-же Blue Pill), но пока руки до него не дошли.

Вся система питается от 12 вольт и потребляет 1.4 ампера.

Исходники, плата, схема (GitHub).

ЗЫ. Возможно далеко не все тут написал, но если будет интересно — задавайте вопросы, постараюсь ответить :))

Источники вдохновения:

Михаил Майоров - Как устроен осциллограф. Как пользоваться осциллографом (видео)
Теплый ламповый дисплей. Собираем монитор из электронно-лучевой трубки — Хакер
Homemade Scope Clock DG7 pic16

>>> Просмотр (2560x1920, 1264 Kb)

 ,

Redfern89
()

Orange PI 4 LTS U-Boot

Форум — Linux-hardware

Всем доброго времени суток, уважаемые участники ЛОРа!

Прикупил Orange PI 4 LTS (пишу как раз с него сейчас), нужно собрать u-boot под него. Сам u-boot собрать не проблема, вопрос - как его записать туда? К примеру для allwinner

dd if=u-boot.bin of=/dev/mmcblk0 bs=1k seek=8

Кто сталкивался, можете помочь пожалуйста? спасибо

 , ,

Redfern89
()

Armbian, перенос /boot в другой раздел

Форум — General

Всем привет! Простите, что надоедаю с этим armbian, но тема как по мне достойна внимания. В общем и целом собрал ядро, загрузчик - все работает отлично. Тут захотелось перенести /boot в другой раздел на карточке. Сказано - сделано. Вот такая карта раздлов на данный момент получилась:

ice     Boot    Start      End  Sectors  Size Id Type
/dev/sdc1           8192 61220863 61212672 29,2G 83 Linux
/dev/sdc2  *    61220864 62332927  1112064  543M 83 Linux

sdc2 - это boot-раздел. Да, не очень очевидно, но так уж вышло. Разделу задан флаг boot.

Затер весь boot.cmd и напиал следующее

load mmc 0:2 0x43400000 uInitrd
load mmc 0:2 0x42000000 zImage
load mmc 0:2 0x43000000 dtb/sun8i-h3-orangepi-pc.dtb
bootz 0x42000000 0x43400000 0x43000000

Система стартует, начинается работа initramfs и …

done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.37.2
[/usr/sbin/fsck.ext4 (1) -- /dev/mmcblk0p2] fsck.ext4 -a -C0 /dev/mmcblk0p2 
armbi_boot: clean, 265/34800 files, 19851/139008 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
done.
mount: mounting /run on /root/run failed: No such file or directory
run-init: can't execute '/sbin/init': No such file or directory
Target filesystem doesn't have requested /sbin/init.
run-init: can't execute '/sbin/init': No such file or directory
run-init: can't execute '/etc/init': No such file or directory
run-init: can't execute '/bin/init': No such file or directory
run-init: can't execute '/bin/sh': No such file or directory
run-init: can't execute '': No such file or directory
No init found. Try passing init= bootarg.

Распаковал uInitrd, что-бы посмотреть, что-же там такое.

dd if=uInitrd-5.15.80-sunxi of=uInitrd-5.15.80-sunxi.img.gz bs=64 skip=1
gunzip uInitrd-5.15.80-sunxi.img.gz 
mkdir uInitrd && cd uInitrd
cpio -i < ../uInitrd-5.15.48-sunxi.img

Но что-то понять не могу, где ему сказать, что система находится в /dev/mmcblk0p1???

P.S. Если что, в системе не забыл создать папку /boot и fstab указал, что ее нужно монтировать по такому-то UUID.

UPD. Я идиот и не верно истолковал понятие rootdev, посчитав, что там файлы загрузки должны быть. Поправил boot.cmd

setenv rootdev "/dev/mmcblk0p1"
setenv rootfstype "ext4"
setenv consoleargs "console=ttyS0,115200"
setenv verbosity "1"
setenv disp_mode "1920x1080p60"

part uuid mmc 0:2 partuuid;
setenv rootdev "/dev/mmcblk0p1"

setenv bootargs "root=/dev/mmcblk0p1 rootwait rootfstype=${rootfstype} ${consoleargs} hdmi.audio=EDID:0 disp.screen0_output_mode=${disp_mode} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} ubootsource=mmc usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"


load mmc 0:2 0x43400000 uInitrd
load mmc 0:2 0x42000000 zImage
load mmc 0:2 0x43000000 dtb/sun8i-h3-orangepi-pc.dtb
bootz 0x42000000 0x43400000 0x43000000

Система стала загружаться.. Вывод df -h

┌──(fck😈fuck)-[ 📂/home/fck ] 
└─> df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           100M  3.3M   97M   4% /run
/dev/mmcblk0p1   29G  1.5G   27G   6% /
tmpfs           500M     0  500M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           500M     0  500M   0% /tmp
/dev/mmcblk0p2  519M   53M  428M  11% /boot
/dev/zram1       47M  2.5M   41M   6% /var/log
tmpfs           100M     0  100M   0% /run/user/1000

 , , , ,

Redfern89
()

Исходники ЛОРА

Форум — Linux-org-ru

А есть ли исходники данного форума? Хотелось-бы поэкспериментировать, что-то от себя добавить и тд ну и принять участие в разработке данного ресурса. Локально естественно. @linux-org-ru Простите за столь кринжовый вопрос

 

Redfern89
()

Рабочий стол как он есть

Галерея — Рабочие места

Обычный рабочий стол, без излишеств. Тут можно увидеть самодельные часы на ИВ-27, барашка розового ну и пару коробок от одноплатников Orange PI. Именно тут проходят зимние вечера с попытками собрать ядро для линукса, программирование под МК Avr, рисование печатнх плат и тд.. Всем спасибо за внимание ))

>>> Просмотр (2560x1920, 1257 Kb)

 , ,

Redfern89
()

KUbuntu

Форум — Desktop

Терминал, подключенный к Orange PI 3 LTS

Скриншот

Перемещено hobbit из screenshots

 , ,

Redfern89
()

Сборка ядра для Orange PI 3 LTS

Форум — General

Всем доброго времени суток Собираю ядро для Orange PI 3 LTS (Allwinner H6, ARM64). Что я делаю:

wget "https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.18.1.tar.xz"
tar -xfv linux-5.18.1.tar.xz
cd linux-5.18.1.tar.xz
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- sun50iw6p1_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j4
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules_install INSTALL_MOD_PATH=/mnt/mmcblk0p1
cp arch/arm64/boot/Image /mnt/mmcblk0p1/boot

На карточке установлена система Armbian. При загрузке с собранным ядром - висит на Starting kernel… Что может быть не так?

 , ,

Redfern89
()

Reaver [Redfern89-fork]

Форум — General

Всем доброго времени суток!

Решил немного доработать пакет wpsmon в reaver

  • Добавлена опция -Z, –lo-lck - не показывать точки с заблокированным wps
  • Добавлена опция -R, –rssi-min - показывать точки до определенного уровня сигнала
  • Добавлена опция -C, –colors - использовать цветовую схему
  • В каждом пункте есть визуальное представление уровня сигнала сети

https://github.com/Redfern89/reaver-redfern89

 , , ,

Redfern89
()

RSS подписка на новые темы