|
After reading this excellent blog post by Dieter Reuter, I said to myself that compiling the kernel on this very same board could be a good idea.
I cloned the kernel:
- git clone https://github.com/orangepi-xunlong/OrangePiRK3399_kernel.git
Copy code
Unfortunately,
- zcat /proc/config.gz > .config
Copy code
does not work.
- 1. /proc/config.gz
- 2. /boot/config
- 3. /boot/config-$(uname -r)
Copy code
do not work either, I suspect the config extension have not been built for this kernel.
- sudo modprobe configs
- modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.103/modules.dep.bin'
- modprobe: FATAL: Module configs not found in directory /lib/modules/4.4.103
Copy code
Then, I thought I could get the configuration from the kernel image file.
It was nowhere to be found...
So, I unzipped the img I flashed on the device on a X86 Linux machine, mounted the boot img
- sudo mount -t msdos -o loop boot.img /mnt/firmware/
- gounthar@maurice:~/Desktop/rk-linux/out$ ll /mnt/firmware/
- total 19212
- drwxr-xr-x 3 root root 16384 janv. 1 1970 ./
- drwxr-xr-x 3 root root 4096 mai 2 16:22 ../
- drwxr-xr-x 2 root root 2048 oct. 16 2018 extlinux/
- -rwxr-xr-x 1 root root 19568648 oct. 16 2018 image*
- -rwxr-xr-x 1 root root 78885 oct. 16 2018 rk3399~1.dtb*
Copy code
and it does not work
- /usr/src/linux-headers-4.18.0-17/scripts/extract-ikconfig /mnt/firmware/image >config
- extract-ikconfig: Cannot find kernel config.
Copy code
The file command says image is just data. Could it be linked that I'm doing that on a X86 machine?
I then transfered the image file to the RK3399 to see if I have a different result:
- root@linaro-alip:/home/linaro/OrangePiRK3399_kernel# file /tmp/image
- /tmp/image: data
- root@linaro-alip:/home/linaro/OrangePiRK3399_kernel# ./scripts/extract-ikconfig /tmp/image
- extract-ikconfig: Cannot find kernel config.
Copy code |
|