Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

1

threads

47

posts

189

credits

Registered member

Rank: 2

credits
189
Published in 2015-10-13 18:58:04 | Show all floors
loboris replied at 2015-10-13 15:28
As I said before, if you need some driver which is not included, try to find the driver sources an ...

The driver for the 148f:2573 wifi dongle is lichee/linux-3.4/drivers/net/wireless/rt2x00/rt73usb.c.
The CONFIG_RT73USB may be set to 'm' in Device Drivers->Network device support->Wireless LAN->Ralink driver support->Ralink rt2501/rt73 (USB) support

4

threads

25

posts

266

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
266
Published in 2015-10-13 19:07:09 | Show all floors
moinejf replied at 2015-10-13 11:58
The driver for the 148f:2573 wifi dongle is lichee/linux-3.4/drivers/net/wireless/rt2x00/rt73usb.c ...

have installed the package firmware-ralink ?

0

threads

6

posts

73

credits

Registered member

Rank: 2

credits
73
Published in 2015-10-13 22:41:27 | Show all floors
cyryllo replied at 2015-10-13 19:07
have installed the package firmware-ralink ?

Just installing it won't be enough if the kernel doesn't support it. I had atheros adapter and installed firmware-atheros.
The udev is triggered when the device is inserted
  1. orangepi@radiopi:~$ udevadm monitor --environment --udev
  2. monitor will print the received events for:
  3. UDEV - the event which udev sends out after rule processing

  4. UDEV  [58603.911684] add      /devices/platform/sunxi-ehci.2/usb2/2-1 (usb)
  5. ACTION=add
  6. BUSNUM=002
  7. DEVNAME=/dev/bus/usb/002/004
  8. DEVNUM=004
  9. DEVPATH=/devices/platform/sunxi-ehci.2/usb2/2-1
  10. DEVTYPE=usb_device
  11. ID_BUS=usb
  12. ID_MODEL=USB2.0_WLAN
  13. ID_MODEL_ENC=USB2.0\x20WLAN
  14. ID_MODEL_FROM_DATABASE=AR9271 802.11n
  15. ID_MODEL_ID=9271
  16. ID_REVISION=0108
  17. ID_SERIAL=ATHEROS_USB2.0_WLAN_12345
  18. ID_SERIAL_SHORT=12345
  19. ID_USB_INTERFACES=:ff0000:
  20. ID_VENDOR=ATHEROS
  21. ID_VENDOR_ENC=ATHEROS
  22. ID_VENDOR_FROM_DATABASE=Atheros Communications, Inc.
  23. ID_VENDOR_ID=0cf3
  24. MAJOR=189
  25. MINOR=131
  26. PRODUCT=cf3/9271/108
  27. SEQNUM=1815
  28. SUBSYSTEM=usb
  29. TYPE=255/255/255
  30. UDEV_LOG=6
  31. USEC_INITIALIZED=603902584

  32. UDEV  [58603.920954] add      /devices/platform/sunxi-ehci.2/usb2/2-1/usb_device/usbdev2.4 (usb_device)
  33. ACTION=add
  34. DEVNAME=/dev/usbdev2.4
  35. DEVPATH=/devices/platform/sunxi-ehci.2/usb2/2-1/usb_device/usbdev2.4
  36. MAJOR=189
  37. MINOR=131
  38. SEQNUM=1817
  39. SUBSYSTEM=usb_device
  40. UDEV_LOG=6
  41. USEC_INITIALIZED=603902584

  42. UDEV  [58604.948847] add      /devices/platform/sunxi-ehci.2/usb2/2-1/2-1:1.0 (usb)
  43. ACTION=add
  44. DEVPATH=/devices/platform/sunxi-ehci.2/usb2/2-1/2-1:1.0
  45. DEVTYPE=usb_interface
  46. ID_MODEL_FROM_DATABASE=AR9271 802.11n
  47. ID_USB_CLASS_FROM_DATABASE=Vendor Specific Class
  48. ID_USB_PROTOCOL_FROM_DATABASE=Vendor Specific Protocol
  49. ID_USB_SUBCLASS_FROM_DATABASE=Vendor Specific Subclass
  50. ID_VENDOR_FROM_DATABASE=Atheros Communications, Inc.
  51. INTERFACE=255/0/0
  52. MODALIAS=usb:v0CF3p9271d0108dcFFdscFFdpFFicFFisc00ip00
  53. PRODUCT=cf3/9271/108
  54. SEQNUM=1816
  55. SUBSYSTEM=usb
  56. TYPE=255/255/255
  57. UDEV_LOG=6
  58. USEC_INITIALIZED=3904358
Copy code
But no driver is being loaded
  1. /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=sunxi-ehci/1p, 480M
  2.     |__ Port 1: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 480M
Copy code



0

threads

6

posts

188

credits

Registered member

Rank: 2

credits
188
Published in 2015-10-13 23:33:20 | Show all floors
cfinteractive has to be use CPU 100%.
What is the cause?

  1. top - 00:32:02 up 2 days,  1:27,  1 user,  load average: 2.80, 2.75, 2.73
  2. Tasks:  88 total,   3 running,  85 sleeping,   0 stopped,   0 zombie
  3. %Cpu(s):  0.6 us, 25.4 sy,  0.0 ni, 73.7 id,  0.0 wa,  0.0 hi,  0.4 si,  0.0 st
  4. KiB Mem:   1026964 total,   692448 used,   334516 free,    19804 buffers
  5. KiB Swap:        0 total,        0 used,        0 free.   298648 cached Mem

  6.   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                              
  7.    33 root      rt   0       0      0      0 R  98.3  0.0 298:44.51 cfinteractive   
Copy code

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

5104

credits

Moderator

Rank: 7Rank: 7Rank: 7

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

780

credits

Senior member

Rank: 4

credits
780
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/).
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list