November 14, 2019, 05:56:43 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Buster, Xenial and Bionic - updated 6.7.2019

Started by slovenia, December 24, 2013, 03:23:11 pm

Previous topic - Next topic

Sloop

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:
Quotersync: 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:
QuoteCorrupted 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 ...
QuoteCorrupted 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:
QuoteJun 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

greentown

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?

slovenia

QuoteI 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

opendream

apt-get install nfs-kernel-server nfs-common
[warn] Not starting NFS kernel daemon: no exports. ... (warning)
Kernel must have NFS server not support?

opendream

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

slovenia

Quote from: opendream 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?


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


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
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

JustACat

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:
root@cubie:~# update-rc.d -f lirc remove
But after reboot lsmod shows me:
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!

slovenia

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

JustACat

Quote from: slovenia on June 30, 2014, 12:24:16 am
Edit /etc/modules and put a # in front of unwanted, reboot and they are gone.


Hm...

I've modified /etc/modules like this:
# /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:
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:
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.

vanfanel

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:

        // 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!



slovenia

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

Sloop

Quote from: slovenia on June 29, 2014, 09:50:35 am
QuoteI 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

olouv

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.

mno

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.

reolee

want to set up bluetooth soundbar, but can't find asound.conf