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-17 02:04:22 | Show all floors
loboris replied at 2015-10-16 17:13
What exactly "kernel headers problem" do you have ?

Loboris,
I think that's referring to lymon's response (post #616) to my post (#615) back on page 62 in response to some weird linking within the /lib/modules/3.4.39/ directory:
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)



1

threads

28

posts

191

credits

Registered member

Rank: 2

credits
191
Published in 2015-10-17 03:41:13 from mobile | Show all floors
lymon replied at 2015-10-17 00:41
you can try this to lock the cpu to max freq:

echo performance > /sys/devices/system/cpu/cpu0/cpu ...

Thanks! That worked like a charm.

1

threads

8

posts

84

credits

Registered member

Rank: 2

credits
84
Published in 2015-10-17 06:37:03 | Show all floors
loboris replied at 2015-9-18 05:46
Complete kernel sources, configs, and build scripts I'm using are uploaded to Mega. (kernel_3.4.9.ta ...

@loboris,
/lib/modules/3.4.39/build points to /home/LoBo2_Razno/OrangePI/kernel_3.4.9/linux-3.4

I am trying to compile a wifi driver that does
make -C /lib/modules/3.4.39/build SUBDIRS=/home/orangepi/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules

so it obviously doesn't work on my machine. Where should the link point and what should be in the directory it points to?


10

threads

448

posts

5104

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5104
 Author| Published in 2015-10-17 07:14:11 | Show all floors
Edited by loboris at 2015-10-17 00:24
palmercr replied at 2015-10-16 23:37
@loboris,
/lib/modules/3.4.39/build points to /home/LoBo2_Razno/OrangePI/kernel_3.4.9/linux-3.4

/lib/modules/3.4.39/build symbolic link is created during the kernel build and it points to the linux kernel source root directory.
You can clone my github repo, there will be the linux-3.4 directory. You can create new /lib/modules/3.4.39/build pointing to that directory.

You can use build_mali_driver.sh script as an example how to build only specific modules.

0

threads

5

posts

52

credits

Registered member

Rank: 2

credits
52
Published in 2015-10-17 08:22:37 | Show all floors
jacer replied at 2015-10-16 22:22
Your Ubuntu distro for Orange Pi PC works great except the analog audio from the AV/CBVS jack is n ...

Same with me.  I spent a decent amount of time today trying to get it to work.  I also popped on a USB audio device (that works fine on my Raspberry Pi with Ubuntu) and it also did not work.  The OS found it when I looked for attached usb devices, but no luck with it showing up in audio settings within pulseaudio.  Messed around with the settings a bit, but being a novice I did not get very far.  Not sure why usb audio does not work, it seems it should.
I was hoping to use this with Mopidy (which I got to work great on Ubuntu over HDMI audio), but stuck with either of the builds at the moment.  Need that to work over the analog audio or usb audio to plug in to some speakers.  Didn't even try to start setting up Mopidy on the Lubuntu build since I was smart enough this time to test the audio first!

It would be great if anyone had any ideas.  I went to try the Lubuntu build off the Orange Pi PC resourses section on the home page, but that was a bust.  Google Drive didn't work and the other cloud service was in Chinese.

Thanks!

Brad

0

threads

10

posts

102

credits

Registered member

Rank: 2

credits
102
Published in 2015-10-17 15:50:26 | Show all floors
Please i can't build kernel:

root@Leela:~/OrangePI-Kernel# more kbuild_plus_.log
drivers/net/wireless/ap6210/Kconfig:42:warning: defaults for choice values not supported
#
# configuration written to .config
#
/root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: 1: /root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/net/wireless/ap6210/Kconfig:42:warning: defaults for choice values not supported
/root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: 1: /root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: Syntax error: "(" unexpected
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  HOSTCC  scripts/conmakehash
  CC      scripts/mod/empty.o
/root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: 1: /root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: Syntax error: "(" unexpected
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: 'include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: 1: /root/OrangePI-Kernel/brandy/gcc-linaro/bin/arm-linux-gnueabi-gcc: Syntax error: "(" unexpected
/root/OrangePI-Kernel/linux-3.4/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:985: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
root@Leela:~/OrangePI-Kernel#

1

threads

5

posts

51

credits

Registered member

Rank: 2

credits
51
Published in 2015-10-17 17:33:33 | Show all floors
loboris replied at 2015-10-16 17:13
What exactly "kernel headers problem" do you have ?

in particular when i use the command: apt-get install linux-headers-$(uname -r)
i have these errors:
E: Unable to locate package linux-headers-3.4.39
E: Couldn't find any package by regex 'linux-headers-3.4.39'

so I can't install external driver for my wifi dongle

18

threads

303

posts

9840

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9840
Published in 2015-10-17 18:04:49 | Show all floors
jkrischt replied at 2015-10-17 08:22
Same with me.  I spent a decent amount of time today trying to get it to work.  I also popped on a ...

My USB audio card is working. It is also working on Mac OS X and Android.

1

threads

7

posts

229

credits

Intermediate member

Rank: 3Rank: 3

credits
229
Published in 2015-10-17 18:31:29 | Show all floors
Loboris,

You are one of the main kernel builder for OPI_H3, and I'd like to have your opinion on a GPIO issue.

Is adapting the Raspberry-BCM style gpio numbering a good idea or does it not matter at all?

http://www.orangepi.org/orangepi ... =546&fromuid=154053

Thanx in advance

0

threads

20

posts

102

credits

Registered member

Rank: 2

credits
102
Published in 2015-10-17 19:20:44 | Show all floors
I have OPI-2 and i try
- OrangePI_Ubuntu_Vivid_Mate.img
- OrangePI_Jessie_Xfce.img
- Fedora22_Mate.img

Audio don't work in any of them

I use the "scriptbin_kernel_test" copy script.bin and uImage in FAT partition, copy lib and run command "depmod -a"

I think all work except audio, some idea

Thanks for your awesome job
OPI-2
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list