EugeneCh

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. What script is used in Armbian to build ram init image uInitrd?
  2. Hello. Rebuiled 5.3.9 kernel with .config taken from Armbian dist. and it's working great. But when i rebuild it with support KPROBE option in fails to run. What could be a reason it happens? Config file in attach. Starting kernel ... Uncompressing Linux... done, booting the kernel. Loading, please wait... starting version 232 [ 4.283026] Internal error: Oops: 5 [#1] SMP THUMB2 [ 4.287921] Modules linked in: pinctrl_axp209(+) [ 4.292568] CPU: 0 PID: 205 Comm: systemd-udevd Not tainted 5.3.9-sunxi #177 [ 4.299637] Hardware name: Allwinner sun7i (A20) Family [ 4.304886] PC is at load_module+0x14d8/0x1a54 [ 4.309335] LR is at load_module+0x14c7/0x1a54 [ 4.313779] pc : [<c018d2e0>] lr : [<c018d2cf>] psr: 300f0033 [ 4.320043] sp : ee2bfe40 ip : ffc00000 fp : c0f04d48 [ 4.325267] r10: 00000000 r9 : bf802080 r8 : bf80208c [ 4.330491] r7 : ee1af4a8 r6 : 00000008 r5 : 7f002881 r4 : ee2bff38 [ 4.337017] r3 : 7f002889 r2 : bf802290 r1 : 00000000 r0 : c0f13b84 [ 4.343545] Flags: nzCV IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none [ 4.350854] Control: 50c5387d Table: 6e2c406a DAC: 00000051 [ 4.356600] Process systemd-udevd (pid: 205, stack limit = 0x(ptrval)) [ 4.363127] Stack: (0xee2bfe40 to 0xee2c0000) [ 4.367491] fe40: bf80208c 00007fff bf802080 c018b3a1 00000001 bf8020c8 b6e81bb8 bf802194 [ 4.375692] fe60: c0c8bd78 bf806e83 bf802290 bf806000 c0c8bcc4 c0c8bcd0 c0c8bd28 c0f04d48 [ 4.383876] fe80: ee2be000 bf000000 00000000 ee2bfeb8 00002be4 c025b553 00000000 00000000 [ 4.392074] fea0: 00000000 00000000 00000000 00000000 6e72656b 00006c65 00000000 00000000 [ 4.400259] fec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 4.408439] fee0: 00000000 00000000 00000000 b3cea8fa 7fffffff c0f04d48 00000000 f0f47000 [ 4.416620] ff00: b6e81bb8 c0101224 ee2be000 0000017b 00f118b8 c018d9dd 7fffffff 00000000 [ 4.424804] ff20: 00000003 00000000 00002be4 f0f47000 00002be4 00000000 f0f47bbb f0f47dc0 [ 4.432990] ff40: f0f47000 00002be4 f0f4961c f0f494ac f0f488e0 00003000 000033b0 00001e24 [ 4.441173] ff60: 00003673 00000000 00000000 00000000 00001e14 00000022 00000023 0000001a [ 4.449358] ff80: 00000000 00000014 00000000 b3cea8fa 00000000 00f118b8 00f07298 9c5bd500 [ 4.457543] ffa0: 0000017b c0101001 00f118b8 00f07298 00000005 b6e81bb8 00000000 b6e82398 [ 4.465728] ffc0: 00f118b8 00f07298 9c5bd500 0000017b 00020000 004e23cc 00000000 00f118b8 [ 4.473912] ffe0: bebc8798 bebc8788 b6e7baeb b6d8c1c2 600f0030 00000005 00000000 00000000 [ 4.482121] [<c018d2e0>] (load_module) from [<c018d9dd>] (sys_finit_module+0x6d/0x88) [ 4.489965] [<c018d9dd>] (sys_finit_module) from [<c0101001>] (ret_fast_syscall+0x1/0x62) [ 4.498147] Exception stack(0xee2bffa8 to 0xee2bfff0) [ 4.503205] ffa0: 00f118b8 00f07298 00000005 b6e81bb8 00000000 b6e82398 [ 4.511391] ffc0: 00f118b8 00f07298 9c5bd500 0000017b 00020000 004e23cc 00000000 00f118b8 [ 4.519572] ffe0: bebc8798 bebc8788 b6e7baeb b6d8c1c2 [ 4.524635] Code: 0308 429a f000 80b7 (696b) 4642 [ 4.529595] ---[ end trace c2608df97f68879c ]--- Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. config.txt
  3. Successfully updated to 5.3.9. But armbian-config still installs old header files 4.19. Got https://apt.armbian.com/pool/main/l/linux-5.3.9-sunxi/linux-headers-current-sunxi_19.11.3_armhf.deb it now builds without errors but sudo insmod mcp251x.ko insmod: ERROR: could not insert module mcp251x.ko: Unknown symbol in module dmesg: [ 599.227996] mcp251x: loading out-of-tree module taints kernel. [ 599.228363] mcp251x: Unknown symbol can_free_echo_skb (err -2) [ 599.228389] mcp251x: Unknown symbol can_put_echo_skb (err -2) [ 599.228408] mcp251x: Unknown symbol can_get_echo_skb (err -2) [ 599.228467] mcp251x: Unknown symbol open_candev (err -2) [ 599.228515] mcp251x: Unknown symbol alloc_can_skb (err -2) [ 599.228541] mcp251x: Unknown symbol unregister_candev (err -2) [ 599.228559] mcp251x: Unknown symbol can_change_mtu (err -2) [ 599.228587] mcp251x: Unknown symbol free_candev (err -2) [ 599.228607] mcp251x: Unknown symbol alloc_candev_mqs (err -2) [ 599.228649] mcp251x: Unknown symbol close_candev (err -2) [ 599.228669] mcp251x: Unknown symbol can_bus_off (err -2) [ 599.228709] mcp251x: Unknown symbol alloc_can_err_skb (err -2) [ 599.228737] mcp251x: Unknown symbol register_candev (err -2) [ 608.071945] mcp251x: Unknown symbol can_free_echo_skb (err -2) [ 608.071978] mcp251x: Unknown symbol can_put_echo_skb (err -2) [ 608.071997] mcp251x: Unknown symbol can_get_echo_skb (err -2) [ 608.072055] mcp251x: Unknown symbol open_candev (err -2) [ 608.072103] mcp251x: Unknown symbol alloc_can_skb (err -2) [ 608.072130] mcp251x: Unknown symbol unregister_candev (err -2) [ 608.072147] mcp251x: Unknown symbol can_change_mtu (err -2) [ 608.072176] mcp251x: Unknown symbol free_candev (err -2) [ 608.072195] mcp251x: Unknown symbol alloc_candev_mqs (err -2) [ 608.072238] mcp251x: Unknown symbol close_candev (err -2) [ 608.072259] mcp251x: Unknown symbol can_bus_off (err -2) [ 608.072300] mcp251x: Unknown symbol alloc_can_err_skb (err -2) [ 608.072328] mcp251x: Unknown symbol register_candev (err -2) What am i doing wrong?
  4. Hello. I want to add some changes in mcp251x.c and rebuild it. I've installed linux-headers via armbian-config. During build process i got this error: /m_mcp251x.c:1042:8: error: implicit declaration of function ‘devm_clk_get_optional’ [-Werror=implicit-function-declaration] clk = devm_clk_get_optional(&spi->dev, NULL); ^~~~~~~~~~~~~~~~~~~~~ if i comment this line it passes compile process but when i do insmod i get these kernel debug messages: [ 583.741089] m_mcp251x: loading out-of-tree module taints kernel. [ 583.741626] m_mcp251x: Unknown symbol can_free_echo_skb (err -2) [ 583.741673] m_mcp251x: Unknown symbol can_put_echo_skb (err -2) [ 583.741707] m_mcp251x: Unknown symbol can_get_echo_skb (err -2) [ 583.741800] m_mcp251x: Unknown symbol open_candev (err -2) [ 583.741874] m_mcp251x: Unknown symbol alloc_can_skb (err -2) [ 583.741921] m_mcp251x: Unknown symbol unregister_candev (err -2) [ 583.741963] m_mcp251x: Unknown symbol can_change_mtu (err -2) [ 583.742005] m_mcp251x: Unknown symbol free_candev (err -2) [ 583.742042] m_mcp251x: Unknown symbol alloc_candev_mqs (err -2) [ 583.742105] m_mcp251x: Unknown symbol close_candev (err -2) [ 583.742327] m_mcp251x: Unknown symbol can_bus_off (err -2) [ 583.742409] m_mcp251x: Unknown symbol alloc_can_err_skb (err -2) [ 583.742464] m_mcp251x: Unknown symbol register_candev (err -2) So what i should do to build this module properly? (Linux cubieboard2 4.19.62-sunxi #5.92 SMP Wed Jul 31 22:07:23 CEST 2019 armv7l GNU/Linux)