04-18-2018, 04:26 PM
(04-18-2018, 02:15 PM)Lorp Wrote: I'd just like to chime in that I'm having essentially the same problem. I'm attempting to make some small changes to the kernel to improve support for an Intel RealSense device, but I'm not entirely sure what to do in order to replace my current kernel with the newly built one (as described in the previous post by frewind). Are there any Linux/Rock64 gurus out there who can point us in the right direction?
Hi Lorp,
I just spent an evening debugging the various scripts that get run off the back of running the make install command.
I tracked my problem down to the /usr/share/flash-kernel/functions script. This script set a couple of variables (kfile & ifile) which as the names suggest, are for the kermel and the initramfs files including version numbers, the script tests to see if the files are present and if not writes a log then fails.
The log file is /tmp/flash-kernel-no-kernel-error.log and mine contained the following error
Code:
rock64@rock64:~$ more /tmp/flash-kernel-no-kernel-error.log
+ ls -l /boot/vmlinuz-4.16.0-rc6-46881-g027e722bb005.old
-rw-r--r-- 1 root root 27386368 Apr 16 13:39 /boot/vmlinuz-4.16.0-rc6-46881-g027e722bb005.old
+ ls -l /boot/initrd.img-4.16.0-rc6-46881-g027e722bb005.old*
ls: cannot access '/boot/initrd.img-4.16.0-rc6-46881-g027e722bb005.old*': No such file or directory
I copy the original to the .old version and now the make install run all the way through
Code:
cp initrd.img-4.16.0-rc6-46881-g027e722bb005 /boot/initrd.img-4.16.0-rc6-46881-g027e722bb005.old
I've not tested any further and I need to get some sleep, otherwise it will be a long day at work tomorrow

I hope this helpful to you....