Please select To the mobile version | Continue to access the desktop computer version


Hot search: orangepi
Return to list New
Author: pbies

Orange Pi RK3399 questions

[Copy link]







Senior member

Rank: 4

Post time 2019-5-9 23:59:26 | Show all posts
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 the Code

  1. zcat /proc/config.gz > .config
Copy the Code

does not work.
  1.     1. /proc/config.gz
  2.     2. /boot/config
  3.     3. /boot/config-$(uname -r)
Copy the 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 the 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 the 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 the 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 the Code
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-7-7 20:11 GMT+8 , Processed in 0.023644 second(s), 19 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list