Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

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

830

credits

Senior member

Rank: 4

credits
830
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

292

credits

Intermediate member

Rank: 3Rank: 3

credits
292
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

18

threads

303

posts

110K

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
10311
Published in 2015-10-15 21:13:30 | Show all floors
Kali Linux Distro is missing also Openwrt. Anyone tried to make one?

1

threads

28

posts

191

credits

Registered member

Rank: 2

credits
191
Published in 2015-10-16 03:33:31 | Show all floors
Im trying to build a kernel with the source from mega for my orangepi-pc. I need the sequencer module and hr timing for audio applications.
I ran the config_linux_kernel.sh and selected the modules i needed.
I ran "build_linux_kernel.sh 2", it all compiled without errors.
When i checked the modules i needed... nothing in the build dir.... only the modules that where already selected.
Also not build into kernel...
I try d multiple times.... no change.
I don't get it....

Even worse: the kernel panics.....

10.700429] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   10.795258] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[   10.795268]


Anybody got a suggestion?

0

threads

25

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-10-16 07:17:28 | Show all floors
No Internet over wired Ethernet

OrangePI-PC_Ubuntu_Vivid_Mate.img and
Fedora22_Mate.img
Both boot on my OPI-PC; my thanks to loboris.

But I cant connect to the Internet over wired Ethernet via my router.

orangepi@OrangePI:~$ ifconfig
lo        Link encapocal Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:336 errors:0 dropped:0 overruns:0 frame:0
          TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:26768 (26.7 KB)  TX bytes:26768 (26.7 KB)

Note:
Network Connection, Wired Connection, Edit, ipv4, Method: Automatic (DHCP)
My router also DHCP and LAN cable ok with other devices
My router sees no additional Device for OPI when connected
If I :
ifconfig eth0 up 192.168.0.25
I get a loopback connection, but no Internet connection.

Cable/Router connects OK to Internet with my RaspberryPi2
Thanks for any help.

10

threads

448

posts

5197

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5197
 Author| Published in 2015-10-16 07:43:28 | Show all floors
Edited by loboris at 2015-10-16 00:54

UPDATED GitHub sources.
The problem with kernel panic after building is now solved.
(As GitHub does not allow empty directories, there was a missing directory in rootfs, solved by creating it in build script)

- For building script.bin files you have to install sunxi-tools package.
- If building on 64bit OS, you must install lib32stdc++6 package (maybe also some other lib32* packages)

@mrroland please, use the git sorces, they are newer. When configuring the kernel with config_linux_kernel use the parameter 2 or plus (new).



You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list