Author Topic: Buster, Xenial and Bionic - updated 6.7.2019  (Read 733240 times)

Offline Sloop

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +2/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
« Reply #645 on: June 25, 2014, 10:02:19 am »
I tracked it a bit down... the problem occurs also with a simple "rsync". When I use rsync after some minutes the process gets aborted with error message like:
Quote
rsync: connection unexpectedly closed (1428917314 bytes received so far) [recei
ver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [receiver=3.1.0]
rsync: connection unexpectedly closed (216979 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0]

After that I tried the rsync-command again and measured the time. The result was:
Quote
Corrupted MAC on input.
Disconnecting: Packet corrupt
rsync: connection unexpectedly closed (4593828874 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [receiver=3.1.0]
rsync: connection unexpectedly closed (223851 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0]

real    9m57.371s

I did execute the same command again ...
Quote
Corrupted MAC on input.
Disconnecting: Packet corrupt
rsync: connection unexpectedly closed (2509602340 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [receiver=3.1.0]
rsync: connection unexpectedly closed (269977 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0]

real    5m29.582s

As you see, the time elapsed and bytes transferred vary. I do not understand what exactly is causing this errors but I guess some kind of network interruption. Syslog says:
Quote
Jun 25 15:46:00 myhost sshd[4172]: Received disconnect from 192.168.0.111: 2: Packet corrupt
Jun 25 15:54:19 myhost sshd[5590]: Received disconnect from 192.168.0.111: 2: Packet corrupt

Any help appreciated

Offline greentown

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #646 on: June 29, 2014, 09:17:40 am »
Hi,

I registered just to add my 2 cents and try to contribute. First of all, thanks a lot to Slovenia for his image.

I have also experienced problems transferring large files with SCP. The transfer is capped at around 9-10 MB/s because that's my internet connection, however, the cubie board is connected at gbit speeds. This means that the NIC is not working at full capacity. When I'm transferring files it does this:

#scp aaa@abc.com:/dir/file.tar.gz .
aaa@abc.com's password:
file.tar.gz                                                               7%  538MB   9.3MB/s   12:04 ETA
Corrupted MAC on input.
Disconnecting: Packet corrupt
lost connection

I have googles this problem and people seem to suggest to turn off TCP checksum, which I've done. However, the problem still persists. I suspect that my problem has the same source as the rsync issue above...Could this be a problem with the NIC driver?

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #647 on: June 29, 2014, 09:50:35 am »
Quote
I have googles this problem and people seem to suggest to turn off TCP checksum, which I've done. However, the problem still persists. I suspect that my problem has the same source as the rsync issue above...Could this be a problem with the NIC driver?

It looks like the problem is in board configuration files. We are working on it here. I assume it's fixed but we need more testing to be sure and to find out possible effects on other things of using those old configs :)

You are welcome to test. Thanks.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline opendream

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #648 on: June 29, 2014, 03:34:04 pm »
apt-get install nfs-kernel-server nfs-common
[warn] Not starting NFS kernel daemon: no exports. ... (warning)
Kernel must have NFS server not support?

Offline opendream

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #649 on: June 29, 2014, 03:48:23 pm »
Modem (E1550) falls off sometimes after 3 minutes, sometimes after 3 hours.
ERROR[2767] chan_dongle.c: [dongle0] timedout while waiting 'OK' in response to 'AT'.
Asterisk 1.8.13.
Dongle:
wget https://asterisk-chan-dongle.googlecode.com/files/chan_dongle-1.1.r14.tgz
tar xvzf chan_dongle-1.1.r14.tgz
cd chan_dongle-1.1.r14
./configure
make
make install
cp etc/dongle.conf /etc/asterisk

Rights of Debian installed, 3A power supply. Tried on firmware 2.1 and 2.2

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #650 on: June 29, 2014, 04:10:33 pm »
apt-get install nfs-kernel-server nfs-common
[warn] Not starting NFS kernel daemon: no exports. ... (warning)
Kernel must have NFS server not support?

It's working normally. I am not using it but I got no error. This warning is ok.

Code: [Select]
root@mail:~# uname -a
Linux mail 3.4.91-sun7i+ #1 SMP PREEMPT Fri May 30 12:11:04 CEST 2014 armv7l GNU/Linux
root@mail:~# apt-get install nfs-kernel-server nfs-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
nfs-common is already the newest version.
nfs-kernel-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.

Can't help much regarding modem. You can try with those altered scripts:
http://www.cubieforums.com/index.php/topic,2590.msg17825.html#msg17825
« Last Edit: June 29, 2014, 04:15:26 pm by slovenia »
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline JustACat

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #651 on: June 29, 2014, 07:22:14 pm »
Hi!
I'm not using ir and bluetooth, so want to disable them from starting by default.
For ir I've modified ct-vga.bin (I use CT on VGA): set [ir_para] - ir_used = 0
Additionally I've run this command:
Code: [Select]
root@cubie:~# update-rc.d -f lirc removeBut after reboot lsmod shows me:
Code: [Select]
Module                  Size  Used by
bnep                   13953  2
cpufreq_userspace       3318  0
sunxi_ss               16086  0
bcmdhd                497253  0
sunxi_lirc              3988  0
lirc_gpio              11020  0
lirc_dev               13066  2 lirc_gpio,sunxi_lirc
hidp                   17152  0
rfcomm                 57906  0
bt_gpio                 2488  0
wifi_gpio               5885  2 bcmdhd,bt_gpio
hci_uart               23966  0
bluetooth             263410  12 bnep,hidp,hci_uart,rfcomm
ftdi_sio               33899  0
usbserial              35169  1 ftdi_sio

So could someone, please, explain me how to disable modules from starting if I not need them (all the IR and BlueTooth related)?

Thanks!

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #652 on: June 30, 2014, 12:24:16 am »
Edit /etc/modules and put a # in front of unwanted, reboot and they are gone.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline JustACat

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #653 on: June 30, 2014, 10:57:29 am »
Edit /etc/modules and put a # in front of unwanted, reboot and they are gone.

Hm...

I've modified /etc/modules like this:
Code: [Select]
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

#hci_uart
gpio_sunxi
#bt_gpio
wifi_gpio
#rfcomm
#hidp
#lirc_gpio
#sunxi_lirc
bcmdhd
sunxi_ss
# if you want access point mode, load wifi module this way: bcmdhd op_mode=2
# and edit /etc/init.d/hostapd change DAEMON_CONF=/etc/hostapd.conf ; edit your wifi net settings in hostapd.conf ; reboot

And now IR modules don't start! Great!

But bluetooth module still does:
Code: [Select]
root@cubie:~# lsmod
Module                  Size  Used by
bnep                   13953  2
rfcomm                 57906  0
cpufreq_userspace       3318  0
bluetooth             263410  10 bnep,rfcomm
sunxi_ss               16086  0
bcmdhd                497253  0
wifi_gpio               5885  1 bcmdhd
ftdi_sio               33899  0
usbserial              35169  1 ftdi_sio

After renaming S04bluetooth to K04bluetooth in /etc/rc(2-5).d's/ and "update-rc.d bluetooth defaults" I got this:
Code: [Select]
root@cubie:~# lsmod
Module                  Size  Used by
cpufreq_userspace       3318  0
bluetooth             263410  0
sunxi_ss               16086  0
bcmdhd                497253  0
wifi_gpio               5885  1 bcmdhd
ftdi_sio               33899  0
usbserial              35169  1 ftdi_sio

Better, but bluetooth module still here... Why?

PS: maybe I should ask such a noob questions in another section of forum but don't know in which one, so, please, sorry for that.
« Last Edit: June 30, 2014, 11:04:04 am by JustACat »

Offline vanfanel

  • Newbie
  • *
  • Posts: 12
  • Karma: +2/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #654 on: July 01, 2014, 05:12:36 am »
I will quote myself...

Quote
Hi! This distro is fantastic, and I adapted it to my needs, but there is a little problem with the kernel: fbdev has wait-for-vsync disabled EVEN if eglSwapInterval() sets it otherwise.
So, can you please uncomment line 1074 from drivers/video/sunxi/disp/dev_fb.c ??
The line in question is:

Code: [Select]
        // Fb_wait_for_vsync(info);
It won't affect system performance AT ALL. It will simply allow us to have wait for vsync active in GLES apps.
Thanks!



Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #655 on: July 01, 2014, 05:20:56 am »
I think I added manually to 2.2 but am not sure. Will be in 2.3 ... kernel update + small fixes.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline Sloop

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +2/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
« Reply #656 on: July 01, 2014, 10:10:35 am »
Quote
I have googles this problem and people seem to suggest to turn off TCP checksum, which I've done. However, the problem still persists. I suspect that my problem has the same source as the rsync issue above...Could this be a problem with the NIC driver?

It looks like the problem is in board configuration files. We are working on it here. I assume it's fixed but we need more testing to be sure and to find out possible effects on other things of using those old configs :)

You are welcome to test. Thanks.

Thanks for the link. I did read through the post and tried that change with cpufrequtils. It seems that it works! :-) 8) For more details about that issue and how to fix read here :D

Offline olouv

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 1.7.2014
« Reply #657 on: July 02, 2014, 09:16:09 am »
Has someone been able to compile VLC with cedar acceleration on this distrib?
Posted there https://github.com/willswang/vlc/issues/11

Did try to use cedrus (vpau) with a light X, but did not work either.

Would be awesome to support hardware acceleration for video decoding.

Awesome work anyway.

Offline mno

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
« Reply #658 on: July 03, 2014, 05:09:28 pm »
is there a way to upgrade from 1.9 to 2.3? Or do I have to reinstall everything?

Because I like your Image, I've just set up a download mirror which can be found here: http://download.hoeper.me/CTDebian/. I hope it to be helpful. If you don't like/want it just let me know.
In my opinion it would also be very nice to have an apt repository for your image. Everyone could upgrade to the latest CTDebian image via apt then.
« Last Edit: July 03, 2014, 07:50:29 pm by mno »

Offline reolee

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
« Reply #659 on: July 05, 2014, 12:17:33 am »
want to set up bluetooth soundbar, but can't find asound.conf