please choosego to mobile | Continue to access the PC version
Return to list Post new posts
Author: pbies

Orange Pi RK3399 questions

[Copy link]







Senior member

Rank: 4

Published in 2019-5-9 23:59:26 | Show all floors
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:
  1. git clone
Copy code

  1. zcat /proc/config.gz > .config
Copy code

does not work.
  1.     1. /proc/config.gz
  2.     2. /boot/config
  3.     3. /boot/config-$(uname -r)
Copy code

do not work either, I suspect the config extension have not been built for this kernel.
  1. sudo modprobe configs
  2. modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.103/modules.dep.bin'
  3. 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

  1. sudo mount -t msdos -o loop boot.img /mnt/firmware/
  2. gounthar@maurice:~/Desktop/rk-linux/out$ ll /mnt/firmware/
  3. total 19212
  4. drwxr-xr-x 3 root root    16384 janv.  1  1970 ./
  5. drwxr-xr-x 3 root root     4096 mai    2 16:22 ../
  6. drwxr-xr-x 2 root root     2048 oct.  16  2018 extlinux/
  7. -rwxr-xr-x 1 root root 19568648 oct.  16  2018 image*
  8. -rwxr-xr-x 1 root root    78885 oct.  16  2018 rk3399~1.dtb*
Copy code

and it does not work
  1. /usr/src/linux-headers-4.18.0-17/scripts/extract-ikconfig /mnt/firmware/image >config
  2. 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:
  1. root@linaro-alip:/home/linaro/OrangePiRK3399_kernel# file /tmp/image
  2. /tmp/image: data
  3. root@linaro-alip:/home/linaro/OrangePiRK3399_kernel# ./scripts/extract-ikconfig /tmp/image
  4. extract-ikconfig: Cannot find kernel config.
Copy code
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list