please choosego to mobile | Continue to access the PC version
Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

2

threads

34

posts

419

credits

Intermediate member

Rank: 3Rank: 3

credits
419
Published in 2015-10-25 07:36:27 | Show all floors
Hey @loboris,
How do I compile modules?.. I mean, what is the proper way to do it?..
I have configured kernel with your script, then I go to linux-3.4/ and do make prepare, then make prepare_modules, then (in my case) I do make M=drivers/media/gspca. It all goes without errors, but when I try to load the module I get:
  1. insmod: ERROR: could not insert module gspca_zc3xx.ko: Invalid module format
Copy code

I am definitely missing something.

10

threads

448

posts

5106

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5106
 Author| Published in 2015-10-25 07:46:16 | Show all floors
Edited by loboris at 2015-10-25 00:52
toxuin replied at 2015-10-25 00:36
Hey @loboris,
How do I compile modules?.. I mean, what is the proper way to do it?..
I have configur ...

Look at the build_mali_driver.sh script, it builds only modules (it is called form build_linux_kernel.sh).
You can modify it for the modules you want to build.
If you can enable the module in kernel configuration, it is better to build the whole kernel together with the newly included module(s), then copy the uImage and lib/modules to your OPI.

1

threads

4

posts

124

credits

Registered member

Rank: 2

credits
124
Published in 2015-10-25 08:12:59 | Show all floors
Edited by bizongod at 2015-10-25 08:28
loboris replied at 2015-10-25 07:14
It looks like it is related to udev (which from version 217 no longer has userspace firmware loader ...

Ubuntu Trusty works and correctly loads firmware.
Thanks for the tip

Now I found, that USB for hub and external USB connectors are working in
full-speed mode (12Mb). With 12Mb USB DVBT tuner will grab only one program, while I need whole MUX -> 480Mb is must.

Thanks,
Karol

1

threads

25

posts

141

credits

Registered member

Rank: 2

credits
141
Published in 2015-10-25 09:24:58 | Show all floors
loboris replied at 2015-10-25 07:46
Look at the build_mali_driver.sh script, it builds only modules (it is called form build_linux_kern ...

Like Bizongod said loading firmware modules is working with older udev version. Could we change udev version ourselves or must we wait for new image updates?

2

threads

34

posts

419

credits

Intermediate member

Rank: 3Rank: 3

credits
419
Published in 2015-10-25 09:35:53 | Show all floors
I managed to compile and load the module for my webcam, but then mmc fails for some reason. If curoius see dmesg output below.

I give up.

@loboris, could you be so kind and compile modules for gspca webcams? I, in particular, need gspca_zc3xx module. But I guess all other modules in video/gspca would be handy for other buddies from future who might want to attach an old webcam to OrangePi. Thanks!

dmesg output if I load the module:
  1. [   56.982917] gspca_main: v2.14.0 registered
  2. [   79.429700] gspca_main: gspca_zc3xx-2.14.0 probing 046d:08d7
  3. [   80.798265] usbcore: registered new interface driver gspca_zc3xx
  4. [   80.813252] Unable to handle kernel NULL pointer dereference at virtual address 00000020
  5. [   80.813289] pgd = edff8000
  6. [   80.813305] [00000020] *pgd=00000000
  7. [   80.813331] sunxi oops: enable sdcard JTAG interface
  8. [   80.819216] sunxi oops: cpu frequency: 480 MHz
  9. [   80.820045] sunxi oops: ddr frequency: 672 MHz
  10. [   80.820045] sunxi oops: gpu frequency: 105 MHz
  11. [   80.820045] sunxi oops: cpu temperature: 50
  12. [   80.820045] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
  13. [   80.820045] Modules linked in: gspca_zc3xx(OF) gspca_main(OF) snd_usb_audio snd_usbmidi_lib snd_hwdep uvcvideo 8188eu
  14. [   80.820045] CPU: 2    Tainted: GF          O  (3.4.39 #1)
  15. [   80.820045] PC is at v4l2_open+0x64/0xe0
  16. [   80.820045] LR is at v4l2_open+0x60/0xe0
  17. [   80.820045] pc : [<c04b31a0>]    lr : [<c04b319c>]    psr: 60070013
  18. [   80.820045] sp : ef289d88  ip : 00000000  fp : ef289da4
  19. [   80.820045] r10: 00000000  r9 : 00000000  r8 : 00000000
  20. [   80.820045] r7 : ee160600  r6 : ef2b8008  r5 : 00000000  r4 : ef2b8000
  21. [   80.820045] r3 : 00000000  r2 : 00000001  r1 : 00000000  r0 : c0fe9af8
  22. [   80.820045] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
  23. [   80.820045] Control: 10c5387d  Table: 6dff806a  DAC: 00000015

  24. *** REGISTER STATES WERE HERE. MUCH HEX, SO 0xfffffff ***

  25. [   80.820045] Process v4l_id (pid: 702, stack limit = 0xef2882f8)
  26. [   80.820045] Stack: (0xef289d88 to 0xef28a000)
  27. ...
  28. [   80.820045] [<c04b31a0>] (v4l2_open+0x64/0xe0) from [<c0113680>] (chrdev_open+0x12c/0x154)
  29. [   80.820045] [<c0113680>] (chrdev_open+0x12c/0x154) from [<c010d8ec>] (__dentry_open.isra.12+0x1a0/0x2ac)
  30. [   80.820045] [<c010d8ec>] (__dentry_open.isra.12+0x1a0/0x2ac) from [<c010e7a4>] (nameidata_to_filp+0x48/0x54)
  31. [   80.820045] [<c010e7a4>] (nameidata_to_filp+0x48/0x54) from [<c011d1b4>] (do_last+0x7f0/0x820)
  32. [   80.820045] [<c011d1b4>] (do_last+0x7f0/0x820) from [<c011d3ec>] (path_openat+0xc8/0x374)
  33. [   80.820045] [<c011d3ec>] (path_openat+0xc8/0x374) from [<c011d7bc>] (do_filp_open+0x3c/0x88)
  34. [   80.820045] [<c011d7bc>] (do_filp_open+0x3c/0x88) from [<c010e8a8>] (do_sys_open+0xf8/0x184)
  35. [   80.820045] [<c010e8a8>] (do_sys_open+0xf8/0x184) from [<c010e964>] (sys_open+0x30/0x34)
  36. [   80.820045] [<c010e964>] (sys_open+0x30/0x34) from [<c000e100>] (ret_fast_syscall+0x0/0x30)
  37. [   80.820045] Code: ebfcfa2f e59f0078 eb08732b e5943000 (e5935020)
  38. [   82.910853] [mmc]: *** sunxi_mci_dump_errinfo(L826):
  39. [   82.910961] ---[ end trace 161e4128e5400d46 ]---
  40. [   82.937563] smc 0 err, cmd 25,  RE !!
  41. [   82.949501] [mmc]: *** sunxi_mci_request_done(L887): In data write operation
  42. [   82.965342] [mmc]: found data error, need to send stop command !!
  43. [   82.980052] [mmc]: *** sunxi_mci_send_manual_stop(L795): sdc 0 send stop command failed
  44. [   83.002295] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 13,  RE !!
  45. [   83.018436] mmcblk0: error -110 sending status command, retrying
  46. [   83.033172] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 13,  RE !!
  47. [   83.049336] mmcblk0: error -110 sending status command, retrying
  48. [   83.064124] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 13,  RE !!
  49. [   83.079015] mmcblk0: error -110 sending status command, aborting
  50. [   83.092632] end_request: I/O error, dev mmcblk0, sector 172040
  51. [   83.102559] Buffer I/O error on device mmcblk0p2, logical block 1
  52. [   83.102559] lost page write due to I/O error on mmcblk0p2
  53. [   83.132463] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 25,  RE !!
  54. [   83.147128] [mmc]: *** sunxi_mci_request_done(L887): In data write operation
  55. [   83.161108] [mmc]: found data error, need to send stop command !!
  56. [   83.173986] [mmc]: *** sunxi_mci_send_manual_stop(L795): sdc 0 send stop command failed
  57. [   83.189091] mmcblk0: timed out sending r/w cmd command, card status 0x0
  58. [   83.201864] mmcblk0: not retrying timeout
  59. [   83.211666] end_request: I/O error, dev mmcblk0, sector 172504
  60. [   83.221633] Buffer I/O error on device mmcblk0p2, logical block 59
  61. [   83.221633] lost page write due to I/O error on mmcblk0p2
  62. [   83.247149] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 25,  RE !!
  63. [   83.260652] [mmc]: *** sunxi_mci_request_done(L887): In data write operation
  64. [   83.273938] [mmc]: found data error, need to send stop command !!
  65. [   83.286136] [mmc]: *** sunxi_mci_send_manual_stop(L795): sdc 0 send stop command failed
  66. [   83.305658] mmcblk0: timed out sending r/w cmd command, card status 0x0
  67. [   83.318611] mmcblk0: not retrying timeout
Copy code

0

threads

10

posts

102

credits

Registered member

Rank: 2

credits
102
Published in 2015-10-25 19:29:55 | Show all floors
Edited by birky at 2015-10-25 19:34

I am using Ubuntu_trusty_mini with latest scriptbin_kernel, where i need kernel with CONFIG_BRIDGE=m
Goal is to create bridge between wlan0 and eth0.
Thanks.




10

threads

448

posts

5106

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5106
 Author| Published in 2015-10-25 19:53:38 | Show all floors
Riconec replied at 2015-10-25 02:24
Like Bizongod said loading firmware modules is working with older udev version. Could we change ud ...

I don't think you can easily (if at all) downgrade udev/systemd on Ubuntu Vivid/Wily.
So, for now, it looks like you have only two options:
Use the wifi adapter (and other hardware) which does not require firmware loading
Use the distro with older udev like Ubuntu Trusty, probably Debian Wheezy&Jessie (please test)


1

threads

25

posts

141

credits

Registered member

Rank: 2

credits
141
Published in 2015-10-25 22:37:10 | Show all floors
Edited by Riconec at 2015-10-25 23:47
loboris replied at 2015-10-25 19:53
I don't think you can easily (if at all) downgrade udev/systemd on Ubuntu Vivid/Wily.
So, for now, ...

How can I install ubuntu trusty?

UPD:
I have just loaded ubuntu trusty and firmware loading problem is gone!) RTL8188CUS loads normally!

Also I have problem with NTP: service is started, but sync don`t wirking (have the same issue on Vivid)

10

threads

448

posts

5106

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5106
 Author| Published in 2015-10-25 23:36:06 | Show all floors
Edited by loboris at 2015-10-25 16:38
Riconec replied at 2015-10-25 15:37
How can I install ubuntu trusty?

You can download Ubuntu_trusty_mini.img and install Lubuntu (LXDE) Desktop using script.
You can also try OrangePI_Jessie_Xfce.img.
I'll prepare Trusty Xfce image and upload it soon.

10

threads

448

posts

5106

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5106
 Author| Published in 2015-10-25 23:48:32 | Show all floors
@birky   @toxuin   @ALL  you can try new kernel version with included dvb, v4l drivers and CONFIG_BRIDGE=m

You can use the new kernel update script:

Download update_kernel.sh from Mega or GoogleDrive
Copy the script to /usr/local/bin and make it executable
  1. sudo cp <download_path>/update_kernel.sh /usr/local/bin
  2. sudo chmod +x /usr/local/bin/update_kernel.sh
Copy code
Run the script.
  1. sudo update_kernel.sh
Copy code


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

Points Rule

Quick reply Top Return list