Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

0

threads

10

posts

102

credits

Registered member

Rank: 2

credits
102
Published in 2015-10-14 00:39:27 | Show all floors
Edited by birky at 2015-10-14 00:46
loboris replied at 2015-10-13 15:20
Have you tried the command
as mentioned in my post.

Hi Loboris,
yes i tried the command from your post, and it is perfectly working for routed AP, but I try to make a bridge betwean wlan0 and eth0 what is option "-m bridge"
i also installed "bridge-utils" and tried create a bridge:
root@Leela:~# brctl addbr br0
add bridge failed: Package not installed
root@Leela:~#
after some search it seems that CONFIG_BRIDGE is not set (kernel not compiled with bridge support)
At this poitn I am not sure, and I don't know how to try compiling kernel with bridge support.
Thanks for your support

5

threads

17

posts

85

credits

Registered member

Rank: 2

credits
85
Published in 2015-10-14 00:44:27 | Show all floors
Edited by kris85 at 2015-10-14 00:45

I have also firmware-ralink installed, but i typed like Makenai : udevadm monitor --environment --udev

root@OrangePI:~# udevadm monitor --environment --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

UDEV  [8316.293859] add      /devices/platform/sunxi-ehci.4/usb4/4-1 (usb)
ACTION=add
BUSNUM=004
DEVNAME=/dev/bus/usb/004/006
DEVNUM=006
DEVPATH=/devices/platform/sunxi-ehci.4/usb4/4-1
DEVTYPE=usb_device
ID_BUS=usb
ID_MODEL=802.11_bg_WLAN
ID_MODEL_ENC=802.11\x20bg\x20WLAN
ID_MODEL_FROM_DATABASE=RT2501/RT2573 Wireless Adapter
ID_MODEL_ID=2573
ID_REVISION=0001
ID_SERIAL=Ralink_802.11_bg_WLAN
ID_USB_INTERFACES=:ffffff:
ID_VENDOR=Ralink
ID_VENDOR_ENC=Ralink
ID_VENDOR_FROM_DATABASE=Ralink Technology, Corp.
ID_VENDOR_ID=148f
MAJOR=189
MINOR=389
PRODUCT=148f/2573/1
SEQNUM=1770
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=16275206

UDEV  [8316.301975] add      /devices/platform/sunxi-ehci.4/usb4/4-1/4-1:1.0 (usb)
ACTION=add
DEVPATH=/devices/platform/sunxi-ehci.4/usb4/4-1/4-1:1.0
DEVTYPE=usb_interface
ID_MODEL_FROM_DATABASE=RT2501/RT2573 Wireless Adapter
ID_VENDOR_FROM_DATABASE=Ralink Technology, Corp.
INTERFACE=255/255/255
MODALIAS=usb:v148Fp2573d0001dc00dsc00dp00icFFiscFFipFF
PRODUCT=148f/2573/1
SEQNUM=1771
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=277064

UDEV  [8316.302563] add      /devices/platform/sunxi-ehci.4/usb4/4-1/usb_device/usbdev4.6 (usb_device)
ACTION=add
DEVNAME=/dev/usbdev4.6
DEVPATH=/devices/platform/sunxi-ehci.4/usb4/4-1/usb_device/usbdev4.6
MAJOR=189
MINOR=389
SEQNUM=1772
SUBSYSTEM=usb_device
USEC_INITIALIZED=16275206

and result of : lsusb -t :
root@OrangePI:~# lsusb -t
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ohci/1p, 12M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
    |__ Port 1: Dev 6, If 0, Class=Vendor Specific Class, Driver=, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M

So driver not loaded.

10

threads

448

posts

5273

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5273
 Author| Published in 2015-10-14 04:27:15 | Show all floors
Fedora 22 images uploaded to Mega.

0

threads

3

posts

52

credits

Registered member

Rank: 2

credits
52
Published in 2015-10-14 13:45:54 | Show all floors
Hi friends,
I download OrangePI-PC_Ubuntu_Vivid_Mate.img, flash and run on Orange Pi PC.
After boot:
sudo fs_resize
reboot
sudo install_x2goserver
reboot

All good, but I have not a sound on TV throw HDMI (picture is OK)  and can't run x2goserver.
Error: No such file or directory

1

threads

90

posts

868

credits

Senior member

Rank: 4

credits
868
Published in 2015-10-14 13:59:20 | Show all floors
I am having trouble compiling your kernel.
Your cross-compiler doesn't seem to work on my Ubuntu workstation, so I installed another/newer one (gcc-linaro-4.9-2014.11-x86_64_arm-linux-gnueabi)

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
I tried a different kernel (https://github.com/steffen-g/orangepipc) and this one compiles and works fine.

Can you give me any hints ?
I would like to compile your kernel because of the additional (wireless) drivers

Thanks

1

threads

47

posts

189

credits

Registered member

Rank: 2

credits
189
Published in 2015-10-14 15:37:29 | 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 ...

You may use the kernel offered by steffen-g and, use
  1. make menuconfig
Copy code
to select the drivers you want.
If these are USB drivers, you should better generate them as modules so that you need only to compile / install these modules
(make modules,  depmod and cp to /lib/modules/3.4.39/).

0

threads

6

posts

106

credits

Registered member

Rank: 2

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

868

credits

Senior member

Rank: 4

credits
868
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#


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

Points Rule

Quick reply Top Return list