Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

0

threads

6

posts

73

credits

Registered member

Rank: 2

credits
73
Published in 2015-10-14 16:20:06 | Show all floors
lymon replied at 2015-10-14 13:59
I am having trouble compiling your kernel.
Your cross-compiler doesn't seem to work on my Ubuntu wor ...

Same thing here, tried different configurations, compiled my own script.bin, checked libs, nothing. Every time compiled kernel is booted it kernel panics...
https://gist.github.com/Alberts0 ... e-bootlog-L467-L511

0

threads

2

posts

18

credits

Novice

Rank: 1

credits
18
Published in 2015-10-15 01:40:18 | Show all floors
Hey Loboris,

I tried to build the driver for the realtek RTL8191SU - but when I try to run the install.sh of the driver I get:

make[1]: Entering directory '/home/orangepi/kernel/OrangePI-Kernel/linux-3.4'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /home/orangepi/kernel/OrangePI-Kernel/linux-3.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  Building modules, stage 2.
/home/orangepi/kernel/OrangePI-Kernel/linux-3.4/scripts/Makefile.modpost:42: include/config/auto.conf: No such file or directory
make[2]: *** No rule to make target 'include/config/auto.conf'.  Stop.
Makefile:1368: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/orangepi/kernel/OrangePI-Kernel/linux-3.4'
Makefile:220: recipe for target 'modules' failed
make: *** [modules] Error 2


Do you have any idea how I could get it running?

1

threads

90

posts

780

credits

Senior member

Rank: 4

credits
780
Published in 2015-10-15 02:37:18 | Show all floors
Edited by lymon at 2015-10-15 18:03
moinejf replied at 2015-10-14 15:37
You may use the kernel offered by steffen-g and, use
to select the drivers you want.
If these are  ...

yes, already tried that , but steffen-g's kernel is probably from another source, as it is missing a lot of drivers (in menu-config, as compared to loboris kernel/menu-config)
....Although both are kernel 3.4.39

Also tried to manually add  the drivers I needed to steffen-g's kernel config, but then I couldn't get it to compile correctly.







4

threads

52

posts

284

credits

Intermediate member

Rank: 3Rank: 3

credits
284
Published in 2015-10-15 04:32:48 | Show all floors

Mali question

Edited by makama80 at 2015-10-15 04:36

@loboris: which Mali kernel module version did you compile? The Sunxi-Mali site mentions r3p0. When I try to compile the Mali userspace driver the 'make' command should invoke autodetection of the Mali kernel driver.

But... it doesn't (see below). It's possible to provide the version to the make script. This works, but I would like to provide the correct version off course...
Furthermore I get no errors during the compiling of other drivers (UMP, fbturbo) so I want to give this a try... It seems to be the last item missing.
Maybe you can shine your light on how you compiled the kernel driver itself?

root@OrangePI:/home/orangepi/Downloads/sunxi-mali# make
make -f Makefile.config
make[1]: Entering directory '/home/orangepi/Downloads/sunxi-mali'
ABI="armhf" (Detected)
VERSION="UNKNOWN" (Detected)
Makefile.config:57: Unknown/unhandled Mali Version "UNKNOWN"
Makefile.config:58: Use VERSION=(r2p4,r3p0,r3p1,r3p2-01rel1) instead
Makefile.config:59: *** Unknown/unhandled Mali Version "UNKNOWN".  Stop.
make[1]: Leaving directory '/home/orangepi/Downloads/sunxi-mali'
Makefile:12: recipe for target 'config.mk' failed
make: *** [config.mk] Error 2
root@OrangePI:/home/orangepi/Downloads/sunxi-mali#


1

threads

10

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-10-15 05:21:54 | Show all floors
Cores replied at 2015-10-15 01:40
Hey Loboris,

I tried to build the driver for the realtek RTL8191SU - but when I try to run the inst ...

Cores (and Loboris),
I'm having issues with a Realtek driver as well.  Just installed the OrangePi-PC Ubuntu image, and after figuring out that I needed to install build-essentials to compile software, the install.sh script tells me that /lib/modules/3.4.39/build does not exist.

An 'ls -l' search of /lib/modules/3.4.39 gives me
  1. /lib/modules/3.4.39
  2. orangepi$ ls -l
  3. total 344
  4. lrwxrwxrwx 1 root root    49 Oct 12 09:22 build -> /home/LoBo2_Razno/OrangePI/kernel_3.4.9/linux-3.4
  5. drwxr-xr-x 6 root root  4096 Oct 12 09:22 kernel
  6. -rw-r--r-- 1 root root 91686 Oct 12 09:22 modules.alias
  7. -rw-r--r-- 1 root root 97038 Oct 12 09:22 modules.alias.bin
  8. -rw-r--r-- 1 root root 18362 Oct 12 09:22 modules.builtin
  9. -rw-r--r-- 1 root root 19686 Oct 12 09:22 modules.builtin.bin
  10. -rw-r--r-- 1 root root 13829 Oct 12 09:22 modules.dep
  11. -rw-r--r-- 1 root root 20313 Oct 12 09:22 modules.dep.bin
  12. -rw-r--r-- 1 root root    52 Oct 12 09:22 modules.devname
  13. -rw-r--r-- 1 root root  5993 Oct 12 09:22 modules.order
  14. -rw-r--r-- 1 root root    55 Oct 12 09:22 modules.softdep
  15. -rw-r--r-- 1 root root 26296 Oct 12 09:22 modules.symbols
  16. -rw-r--r-- 1 root root 32534 Oct 12 09:22 modules.symbols.bin
  17. lrwxrwxrwx 1 root root    49 Oct 12 09:22 source -> /home/LoBo2_Razno/OrangePI/kernel_3.4.9/linux-3.4
Copy code
As you can see, the build and source directories are symbolic links to what I'm assuming are Loboris' home directory, which obviously don't exist on my pi.  How do I fix this?

Thanks!

1

threads

90

posts

780

credits

Senior member

Rank: 4

credits
780
Published in 2015-10-15 13:11:11 | Show all floors
Jazzmania replied at 2015-10-15 05:21
Cores (and Loboris),
I'm having issues with a Realtek driver as well.  Just installed the OrangePi ...

You will need kernel headers (this is the 'build' error you are getting) or build the kernel from source and include the drivers (if not already included in the kernel source tree)

loboris kernel source tree can be found here: https://github.com/loboris/OrangePI-Kernel
(but it seems to have 'kernel-panic' problems once compiled)






0

threads

2

posts

46

credits

Novice

Rank: 1

credits
46
Published in 2015-10-15 13:38:20 | Show all floors
Makenai replied at 2015-10-14 16:20
Same thing here, tried different configurations, compiled my own script.bin, checked libs, nothing ...

Same thing here, with Opi-Plus, distro="jessie". Everything compiled from github source.What i done:  OrangePi-BuildLinux create_image ; image_from_dir ; dd the img to SDCard than OrangePI-Kernel build_linux_kernel; copied the script.bin and uImage to SDCard's BOOT, and libs to SDCard's linux. Is it sould be OK, not? Or am I left something?

Thanks, Marcell

1

threads

7

posts

229

credits

Intermediate member

Rank: 3Rank: 3

credits
229
Published in 2015-10-15 15:45:29 | Show all floors
Edited by mark2@opi at 2015-10-15 15:47
With this compiler and some small modifications I got it to finish the compilation of the kernel and modules successfully, but once I install the kernel on my OPI-PC I get a kernel panic because of a hard lockup on CPU 3

Same here;

I'm also trying to build a kernel with some additional options, among other things, the network bonding driver... Unfortunately by no means a Linux expert, just playing around with it for some months, so most likely a bit too ambitious to build a customized kernel but like learning hands-on.

And many thanx for your great work!!!

0

threads

4

posts

22

credits

Novice

Rank: 1

credits
22
Published in 2015-10-15 17:38:07 | Show all floors
Edited by Sergei at 2015-10-15 17:44
loboris replied at 2015-10-4 19:01
KERNEL UPDATE (EXPERIMENTAL)
Uploaded scriptbin_kernel_test.tar.gz which contains the kernel with so ...

Many thanks.
Now my QinHeng Electronics HL-340 USB-Serial adapter is on ttyUSBx
Orange Pi PC,  uname: Linux OrangePI 3.4.39 #1 SMP PREEMPT Wed Sep 16 13:39:07 CEST 2015 armv7l GNU/Linux

  1. root@OrangePI:~# lsusb
  2. Bus 006 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
  3. Bus 007 Device 002: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
  4. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  5. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  6. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  7. Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  8. Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  9. Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  10. Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  11. Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  12. root@OrangePI:~# dmesg | grep ttyUSB
  13. [  206.532805] usb 6-1: ch341-uart converter now attached to ttyUSB0
  14. root@OrangePI:~#
Copy code



Published in 2015-10-15 18:47:17 | Show all floors
Orange PI PC
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list