03-05-2018, 03:30 AM
(03-05-2018, 01:36 AM)jegb Wrote:(02-23-2018, 10:26 AM)xalius Wrote: I am pretty sure you can not build that module from mainline 4.13.x against a BSP kernel 4.4.77... as I said above, you have to cherry-pick the patches from linux-lima-4.13 and apply them to https://github.com/ayufan-rock64/linux-mainline-kernel/ ...
I am getting this on
$sudo make install:
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
make[1]: 'include/generated/vdso-offsets.h' is up to date.
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CHK kernel/config_data.h
/bin/bash ./arch/arm64/boot/install.sh 4.4.114-gccfa68a3e270-dirty \
arch/arm64/boot/Image System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.114-gccfa68a3e270-dirty /boot/vmlinuz-4.4.114-gccfa68a3e270-dirty
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.114-gccfa68a3e270-dirty /boot/vmlinuz-4.4.114-gccfa68a3e270-dirty
update-initramfs: Generating /boot/initrd.img-4.4.114-gccfa68a3e270-dirty
WARNING: missing /lib/modules/4.4.114-gccfa68a3e270-dirty
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/4.4.114-gccfa68a3e270-dirty: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Warning: root device does not exist
depmod: WARNING: could not open /var/tmp/mkinitramfs_AwXRHp/lib/modules/4.4.114-gccfa68a3e270-dirty/modules.order: No such file or directory
depmod: WARNING: could not open /var/tmp/mkinitramfs_AwXRHp/lib/modules/4.4.114-gccfa68a3e270-dirty/modules.builtin: No such file or directory
Using DTB: rk3328-rock64.dtb
Couldn't find DTB rk3328-rock64.dtb in /usr/lib/linux-image-4.4.114-gccfa68a3e270-dirty or /etc/flash-kernel/dtbs
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
arch/arm64/boot/Makefile:54: recipe for target 'install' failed
make[1]: *** [install] Error 1
arch/arm64/Makefile:119: recipe for target 'install' failed
make: *** [install] Error 2
Could you describe how to apply the patches for this lib?
/lib/modules/4.4.114-gccfa68a3e270-dirty
Thank you for trying out various things.
By the way, what is a patch?