September 20, 2019, 06:32:31 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

RobinS

Hi Slovenia,

Thanks for your input, and the problem is currently driving me crazy.
I have been experimenting, unfortunately without success, but have found some consistency.

My experiments:
1)   Upgraded to the latest version of win32diskimager, to make sure that the image was loaded correctly onto uSD.
2)   Tested cubian image.
3)   Reduced the number of mirrors in the sources.list file to only one.
4)   Tested multiple mirrors on both cubian and this image (including some from netselect-apt).
5)   Tested http and ftp mirrors.

No change with the latest version of win32diskimager.
I have the same problems with the cubian image. (rest applies to both images).

I focussed on:
deb http://http.debian.net/debian/ wheezy main contrib non-free
and experimented with multiple mirrors.

On all tests I have issues with:
wheezy/main armhf Packages

For http:// I get "404  Not Found [IP: 77.75.110.242 80]" errors
For ftp:// I get "Unable to fetch file, server said 'Failed to open file.  ' [IP: 77.75.110.242 21]" errors

When I visited the repo with my webbrowser, there are files in the main armhf packages directory.
Other directories do seems to sync.

mirror.sov.uk.goscomb.net
be.mirror.eurid.eu
debian.mirrors.ovh.net
ftp.us.debian.org
ftp.de.debian.org
ftp.uk.debian.org
ftp.nl.debian.org
http.debian.net
and some others.

As the other repo dirs work, and ftp server reports that the file is not available, there is a good network connection with the repo server,
but somehow a file (but have no clue which) seems missing in the repo. As this seems to be the case for all repo's I tested, and is not limited to the cubie wheezy
image but also the cubian image, it seems to be a more generic issue.
In my opinion it seems that either there is a repo issue, or one of the repo files wrongly listed.

I do not understand why you and some others are able to update successfully.
Could you perhaps find out which mirror you are using ?

I am a bit out of options to diagnose (will test it at work tomorrow so rule out my provider and network).
Any suggestions ?

Best Regards,

Robin



jedie

Quote from: ua3prq on March 21, 2014, 02:15:42 pm
Thanks!

I have worked with this file, but there is only here:

# /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
# bcmdhd
# if you want access point mode, load wifi module this way: bcmdhd op_mode=2

I can not find WiFi  :-[


to disable WiFi i have added iwconfig wlan0 txpower off to /etc/rc.local

RobinS


Quote from: RobinS on March 23, 2014, 05:05:20 pm
Hi Slovenia,

...

As the other repo dirs work, and ftp server reports that the file is not available, there is a good network connection with the repo server,
but somehow a file (but have no clue which) seems missing in the repo. As this seems to be the case for all repo's I tested, and is not limited to the cubie wheezy
image but also the cubian image, it seems to be a more generic issue.
In my opinion it seems that either there is a repo issue, or one of the repo files wrongly listed.


Hi Slovenia,

I have done some additional tests, and have come to a conclusion:
Its somehow related to my home network or ISP.
As I tested it today at the office, and tonight with a 3G connection at home, and updating works perfectly  :)

I now have to figure out what the F***K is going on, on my home network in combo with the wheezy main armhf repo. My debian VM's, raspberry pi and ubuntu machines are not experiencing any update problems, neither do I have been able to detect any other internet connection problems.

So it remains a puzzle, but thanks very much for your input.

Best Regards,

Robin


slovenia

QuoteIts somehow related to my home network or ISP.


What is more interesting is the deep nature of the problem. When / if you find out it will be nice to know what is causing this. I will also look more for this issue.

QuoteMy debian VM's, raspberry pi and ubuntu machines are not experiencing any update problems, neither do I have been able to detect any other internet connection problems.


That's what makes me think.  :-\

Anyway. As a consequences of this I add automatic fastest mirror selection functionality to the (unpublished) image. Sources list is created at first boot when I do partition resize, ssh keys creating, ... It does not solve any of your problems but it helps generally.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

RobinS

Hi Slovenia,

Ok, then I will post my findings in this forum, regarding this subject.
I have done more experiments, and have been able to rule out stuff, but also have some more question marks...

First an ascii overview of my network:

30 MB/s VDSL <-> Fritz!box 7360 [2x 1Gb + 2x 100Mb] <-1Gb-> NetGear R6250 [3x Gb + WLAN]

If I connect my Cubietruck to either a 1Gb or 100Mb port of the FritzBox or a 3Gb port on my Netgear WLAN router, I can NOT update with apt... (also tried 3 different cables)
However if I enable and configure the WLAN on the CT to roam into my NetGear (and disconnect the Ethernet cable of the CT), I CAN update with apt.... ??? !!!!  :) :-\

So I can rule out my ISP, Fritz!box and Netgear... BUT only for WLAN.... as an ethernet connection still does not work, but uses the same infrastructure...
So my thoughts go the CT ethernet port... but I used this port in the office this morning with success....  ?????!!!!

Tomorrow I will add your suggestion, and test with another router (to create a different subnet) and switch.

To be continued....

Best Regards,

Robin


MrDialUp

Have you closely looked at the contacts of the ethernet port of the CT?  Try poking at each one to see how they travel.  Could be one of the contacts has jumped out of it's constraint or a constraint is broken  and may either be making intermittent contact or is shorting out another one of the contacts.  This condition could be aggravated or even alleviated by slight variations in cable ends which may explain why it worked in your office.  Just a suggestion.

jademonkee

Hullo slovenia!

First of all, many thanks for your version of Debian. I'm using my CubieTruck as a headless server for my music collection (so it's also running Logitech Media Server), which is sitting on a SATA mounted 1TB laptop drive. The performance is wonderful - it scans only marginally slower than my (old) Intel i7, and magnitudinally faster than my (now redundant) Raspberry Pi. I look forward to handing a few extra jobs (Usenet downloader, potential VPN box) to it in the near future.

Anyway, this is my first Linux box, and I'm really enjoying learning all about this wonderful OS - there's something satisfying about a command line.
However, one thing I can't find online (as it relates to this specific set up and your build of Debian) is if I should move the swap space to my internal hard drive.

Would it be beneficial to move the swap space to my internal hard drive? Would it minimise wear to the SD card? Or do your modifications somehow minimise writes to swap? Would it offer a speed increase?
Finally, would doing so complicate future OS upgrades (which is why I don't want to move the OS to the HDD)? I'm already a little unclear how upgrades will work (as far as keeping my installed server software), so info here would also be appreciated.

Anyway, thanks again for your OS, and sorry for asking such a trivial question.

slovenia

QuoteI look forward to handing a few extra jobs (Usenet downloader, potential VPN box) to it in the near future.


No problem to handle all this. You can see here what is my setup. I use latest ( test / unpublished / not much different) image even with some overclock, no swap needed.

QuoteWould it be beneficial to move the swap space to my internal hard drive? Would it minimise wear to the SD card? Or do your modifications somehow minimise writes to swap? Would it offer a speed increase?
Finally, would doing so complicate future OS upgrades (which is why I don't want to move the OS to the HDD)? I'm already a little unclear how upgrades will work (as far as keeping my installed server software), so info here would also be appreciated.


I don't use swap. 2G memory is luxury in most scenarios. If you run something that odd to need swap just enable it - kernel supports it.

(normal) SD card writing speed is bad - worse than reading and many tweaks in this image are made to decrease writings to minimum. There is some security decrease but it's not danger since worst case scenario we lost some log files in case of power failure, because logs are written to ram and sync daily / on power-off.

I am using SD card (some time I had it on NAND) for the system and a hard drive for data. I found no need to transfer system to hard drive.

Upgrades of my image is unfortunately not easy / automatic. My plan was to develop some sort of auto-update but that part of the project is stalled  :-[ but I always write what's changed and sometimes prepare the update package too. In that case is just "unzip update.zip". You are generally safe to skip few releases before upgrade.

On the other hand is recommended to have a regular backup of your configs and a script to recreate the server in case of failure or just to do the fresh install.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

jademonkee

Fantastic news on all accounts - thanks for all the information.

edoline


slovenia

Quote from: edoline on March 26, 2014, 02:47:06 pm
Hello Board,

maybe on this thread I can get help with this:

http://www.cubieforums.com/index.php?topic=1511.msg13995#msg13995

does anybody know about kernel updates?


There is a option to update just a kernel (with all modules) but it's not 100% safe procedure and in if the system won't boot then you will anyway need a working SD card system to access and repair NAND system. You can have more kernels on the system and choose them in uEnv.txt, add or change: kernel=/boot/mynewkernel When you point to the new kernel and reboot is the point when you might need (or not) a working sd card system. But UN-DO is easy if you got that, just mount nand boot partition, find and edit uEnv and point back to old kernel. There is one general difference between kernels, some kernels see nand partitions as nanda,nandb, ... others nand1,nand2,...

In test mode you sometimes :o need a monitor and a keyboard, sometimes even a serial console :P
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

ua3prq

To slovenia

Hello!
I kept TTY debug-log v1.7 in cubieboard2. Look at when will be a mood, may be something interesting for optimizations for CB2...

edoline

Quote from: slovenia on March 26, 2014, 03:23:53 pm
Quote from: edoline on March 26, 2014, 02:47:06 pm
Hello Board,

maybe on this thread I can get help with this:

http://www.cubieforums.com/index.php?topic=1511.msg13995#msg13995

does anybody know about kernel updates?


There is a option to update just a kernel (with all modules) but it's not 100% safe procedure and in if the system won't boot then you will anyway need a working SD card system to access and repair NAND system. You can have more kernels on the system and choose them in uEnv.txt, add or change: kernel=/boot/mynewkernel When you point to the new kernel and reboot is the point when you might need (or not) a working sd card system. But UN-DO is easy if you got that, just mount nand boot partition, find and edit uEnv and point back to old kernel. There is one general difference between kernels, some kernels see nand partitions as nanda,nandb, ... others nand1,nand2,...

In test mode you sometimes :o need a monitor and a keyboard, sometimes even a serial console :P


slovenia, thanks a lot or your help!

First I will create a bootable sd-card and test it. I catches the file already, the page with the description is down "http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/";, but i will try first with standard settings: dd bs=1M
I guess this will be save enough, if I have an bootable sd-card with an running ssh-server on it. Enough to  check if there is a nand1 or nanda anyway.
Now I will check the kernel tread, thanks!

edoline

ok. I'm now on kernel 3.4.79. All is gone fine with this tutorial http://www.cubieforums.com/index.php?topic=504.15. nanda or nand1 is not critical, if the root file-system reside on SATA.

from kernel 3.4.61 to 3.4.79  :D

slovenia

Quote from: edoline on March 26, 2014, 07:48:41 pm
ok. I'm now on kernel 3.4.79. All is gone fine with this tutorial http://www.cubieforums.com/index.php?topic=504.15. nanda or nand1 is not critical, if the root file-system reside on SATA.

from kernel 3.4.61 to 3.4.79  :D


You can't boot from SATA - your boot part is remaining on NAND (or SD) so in case of troubles you will need to access that.

p.s.
My blog is running on my Cubie and when I test new image web page goes offline for some minutes :)
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com