How to recompile Realtek drivers for Odroid XU4?

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • How to recompile Realtek drivers for Odroid XU4?

      Sorry if this is the wrong forum for this but I have been having issues with my samba shares being slow. Because I have OMV installed on an XU4 I cannot upgrade to 3.0, without losing all of my configurations and data. Is there any way to download the source for the Realtek chip (Realtek RTL8153-CG) and compile it on the XU4 then override the current drivers. I'm hoping that it will fix my issue with the shares.
    • Jeansburger wrote:

      I followed that guide and my speed is still at ~2Mbps, I'm at a loss at why my device has such slow performance using samba
      Did you try the samba tuning guides on this forum? Some of it has to do with the client asking for protocols not supported. So min and max protocol helps many times.
      omv 4.0.14 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.1
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      Did you try the samba tuning guides on this forum? Some of it has to do with the client asking for protocols not supported. So min and max protocol helps many times.
      I have tried a few, I have my current set up as min=smb1 and max=smb2, with a few different things that like read and write raw, no delay on TCP, don't sign the server etc. I have tried different types of combinations of those and nothing as helped that situation.


      Side note: Would you prefer me to make a new post on the SMB/CIFS forum as this is the only issue the XU4 is great, I just want to figure out why when I try to move things from the server to my personal pc or from one server share to another I get snail pace speeds.
    • Jeansburger wrote:

      Would you prefer me to make a new post on the SMB/CIFS forum
      No. It is fine here.

      Jeansburger wrote:

      min=smb1 and max=smb2
      I assume you were shortening what you really put in the options? I don't have a working XU4 anymore. So, I can't really help much more.
      omv 4.0.14 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.1
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      I assume you were shortening what you really put in the options? I don't have a working XU4 anymore. So, I can't really help much more.

      Yes I can list the entire settings here:

      Source Code

      1. read size = 65536
      2. read prediction = true
      3. socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
      4. write raw = yes
      5. read raw = no
      6. max xmit = 65535
      7. max protocol = SMB2
      8. min protocol = SMB1
      9. server signing = disabled
      Is there a more pointed XU4 section on the website? I'm wondering if someone else has had this issue. I am currently using EXT4 formatting for all of my drives, I have always not bothered with NTFS because of the huge overhead in a Linux system. Is that a possible issue?
    • Jeansburger wrote:

      Is there a more pointed XU4 section on the website? I'm wondering if someone else has had this issue.
      Did you try min protocol = SMB2? I never used any settings when my XU4s were working and I got faster speeds than that. It depends on the clients too. Did you try the odroid forum?
      omv 4.0.14 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.1
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      What is the output of: apt-cache policy samba4*

      Source Code

      1. samba4-common:
      2. Installed: (none)
      3. Candidate: (none)
      4. Version table:
      5. libsamba-credentials-dev:
      6. Installed: (none)
      7. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      8. Version table:
      9. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      10. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      11. libsamba-policy0:
      12. Installed: (none)
      13. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      14. Version table:
      15. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      16. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      17. gadmin-samba-dbg:
      18. Installed: (none)
      19. Candidate: 0.2.9-3
      20. Version table:
      21. 0.2.9-3 0
      22. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      23. samba-vfs-modules:
      24. Installed: (none)
      25. Candidate: 2:4.1.17+dfsg-1~bpo70+1
      26. Version table:
      27. 2:4.1.17+dfsg-1~bpo70+1 0
      28. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      29. samba4-dev:
      30. Installed: (none)
      31. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      32. Version table:
      33. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      34. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      35. libsamba-util0:
      36. Installed: (none)
      37. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      38. Version table:
      39. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      40. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      41. samba4:
      42. Installed: (none)
      43. Candidate: (none)
      44. Version table:
      45. libsamba-hostconfig0:
      46. Installed: (none)
      47. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      48. Version table:
      49. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      50. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      51. samba4-testsuite:
      52. Installed: (none)
      53. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      54. Version table:
      55. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      56. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      57. samba-testsuite:
      58. Installed: (none)
      59. Candidate: 2:4.1.17+dfsg-1~bpo70+1
      60. Version table:
      61. 2:4.1.17+dfsg-1~bpo70+1 0
      62. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      63. libsamba-credentials0:
      64. Installed: (none)
      65. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      66. Version table:
      67. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      68. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      69. dpsyco-samba:
      70. Installed: (none)
      71. Candidate: 1.0.36
      72. Version table:
      73. 1.0.36 0
      74. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      75. samba-ad-dc:
      76. Installed: (none)
      77. Candidate: (none)
      78. Version table:
      79. libsamba-hostconfig-dev:
      80. Installed: (none)
      81. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      82. Version table:
      83. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      84. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      85. samba-dbg:
      86. Installed: (none)
      87. Candidate: 2:3.6.6-6+deb7u11
      88. Version table:
      89. 2:4.1.17+dfsg-1~bpo70+1 0
      90. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      91. 2:3.6.6-6+deb7u11 0
      92. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      93. 2:3.6.6-6+deb7u7 0
      94. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      95. samba4-clients:
      96. Installed: (none)
      97. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      98. Version table:
      99. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      100. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      101. samba-dev:
      102. Installed: (none)
      103. Candidate: 2:4.1.17+dfsg-1~bpo70+1
      104. Version table:
      105. 2:4.1.17+dfsg-1~bpo70+1 0
      106. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      107. samba-common-bin:
      108. Installed: 2:3.6.6-6+deb7u11
      109. Candidate: 2:3.6.6-6+deb7u11
      110. Version table:
      111. 2:4.1.17+dfsg-1~bpo70+1 0
      112. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      113. *** 2:3.6.6-6+deb7u11 0
      114. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      115. 100 /var/lib/dpkg/status
      116. 2:3.6.6-6+deb7u7 0
      117. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      118. samba-doc:
      119. Installed: (none)
      120. Candidate: 2:3.6.6-6+deb7u11
      121. Version table:
      122. 2:4.1.17+dfsg-1~bpo70+1 0
      123. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      124. 2:3.6.6-6+deb7u11 0
      125. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      126. 2:3.6.6-6+deb7u7 0
      127. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      128. samba-tools:
      129. Installed: (none)
      130. Candidate: 2:3.6.6-6+deb7u11
      131. Version table:
      132. 2:3.6.6-6+deb7u11 0
      133. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      134. 2:3.6.6-6+deb7u7 0
      135. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      136. samba-ldb-tools:
      137. Installed: (none)
      138. Candidate: (none)
      139. Version table:
      140. libsamba-util-dev:
      141. Installed: (none)
      142. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      143. Version table:
      144. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      145. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      146. samba-client:
      147. Installed: (none)
      148. Candidate: (none)
      149. Version table:
      150. samba-doc-pdf:
      151. Installed: (none)
      152. Candidate: 2:3.6.6-6+deb7u11
      153. Version table:
      154. 2:3.6.6-6+deb7u11 0
      155. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      156. 2:3.6.6-6+deb7u7 0
      157. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      158. python2.7-samba:
      159. Installed: (none)
      160. Candidate: (none)
      161. Version table:
      162. samba:
      163. Installed: 2:3.6.6-6+deb7u11
      164. Candidate: 2:3.6.6-6+deb7u11
      165. Version table:
      166. 2:4.1.17+dfsg-1~bpo70+1 0
      167. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      168. *** 2:3.6.6-6+deb7u11 0
      169. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      170. 100 /var/lib/dpkg/status
      171. 2:3.6.6-6+deb7u7 0
      172. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      173. gadmin-samba:
      174. Installed: (none)
      175. Candidate: 0.2.9-3
      176. Version table:
      177. 0.2.9-3 0
      178. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      179. python-samba:
      180. Installed: (none)
      181. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      182. Version table:
      183. 2:4.1.17+dfsg-1~bpo70+1 0
      184. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      185. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      186. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      187. libsamba-policy-dev:
      188. Installed: (none)
      189. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      190. Version table:
      191. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      192. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      193. samba4-common-bin:
      194. Installed: (none)
      195. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      196. Version table:
      197. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      198. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      199. samba-dsdb-modules:
      200. Installed: (none)
      201. Candidate: 4.0.0~beta2+dfsg1-3.2+deb7u2
      202. Version table:
      203. 2:4.1.17+dfsg-1~bpo70+1 0
      204. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      205. 4.0.0~beta2+dfsg1-3.2+deb7u2 0
      206. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      207. samba-common:
      208. Installed: 2:3.6.6-6+deb7u11
      209. Candidate: 2:3.6.6-6+deb7u11
      210. Version table:
      211. 2:4.1.17+dfsg-1~bpo70+1 0
      212. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      213. *** 2:3.6.6-6+deb7u11 0
      214. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      215. 100 /var/lib/dpkg/status
      216. 2:3.6.6-6+deb7u7 0
      217. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      218. gosa-plugin-samba:
      219. Installed: (none)
      220. Candidate: 2.7.4-4.3~deb7u3
      221. Version table:
      222. 2.7.4-4.3~deb7u3 0
      223. 995 http://security.debian.org/debian-security/ wheezy/updates/main armhf Packages
      224. 2.7.4-4.3~deb7u2 0
      225. 995 http://ftp.uk.debian.org/debian/ wheezy/main armhf Packages
      226. samba-libs:
      227. Installed: (none)
      228. Candidate: 2:4.1.17+dfsg-1~bpo70+1
      229. Version table:
      230. 2:4.1.17+dfsg-1~bpo70+1 0
      231. 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages
      Display All
    • My bad, I haven't had my coffee yet :P

      Source Code

      1. Reading package lists... Done
      2. Building dependency tree
      3. Reading state information... Done
      4. Some packages could not be installed. This may mean that you have
      5. requested an impossible situation or if you are using the unstable
      6. distribution that some required packages have not yet been created
      7. or been moved out of Incoming.
      8. The following information may help to resolve the situation:
      9. The following packages have unmet dependencies:
      10. samba : Depends: python-samba but it is not going to be installed
      11. Depends: samba-common (= 2:4.1.17+dfsg-1~bpo70+1) but 2:3.6.6-6+deb7u11 is to be installed
      12. Depends: samba-common-bin (= 2:4.1.17+dfsg-1~bpo70+1) but 2:3.6.6-6+deb7u11 is to be installed
      13. Depends: samba-dsdb-modules but it is not going to be installed
      14. Depends: libldb1 (>= 0.9.21) but it is not going to be installed
      15. Depends: samba-libs (= 2:4.1.17+dfsg-1~bpo70+1) but it is not going to be installed
      16. E: Unable to correct problems, you have held broken packages.
      Display All

      What flag do I need to force the dependencies I'm completely blanking on which one gets or builds them.
    • The odroid doesn't have the backports repo pinned at a higher value. So, you need to specify each package it wants with the version string or add the pinning.
      omv 4.0.14 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.1
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      The odroid doesn't have the backports repo pinned at a higher value. So, you need to specify each package it wants with the version string or add the pinning.
      I tried doing it installing one package at a time it completely wiped out the system and uninstalled a lot of open media vault plugins and I could not get back to the web console (thank you for recommending to backup). Would changing the pinning of the wheezy-backports.list help at all? How do I go about changing the pinning for that file?
    • It should tell you if it is going to uninstall a package.

      echo "deb http://ftp.debian.org/debian wheezy-backports main contrib non-free" > /etc/apt/sources.list.d/backports.list

      echo "Package: libtalloc2 libtdb1 libwbclient0 samba-common samba samba-common-bin" > /etc/apt/preferences.d/99backports.pref
      echo "Pin: release a=jessie-backports" >> /etc/apt/preferences.d/99backports.pref
      echo "Pin-Priority: 995" >> /etc/apt/preferences.d/99backports.pref

      apt-get install samba
      omv 4.0.14 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.1
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!