September 20, 2019, 06:34:29 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

jedie

Quote from: slovenia on March 18, 2014, 07:10:50 am
C'mon. It's poor, yes! ... but very, very poor?  :P

Yes, it's around 5MB/s ... Sometimes 1-2MB/s and never above 10MB/s

slovenia

Quote from: jedie on March 18, 2014, 07:35:10 am
Quote from: slovenia on March 18, 2014, 07:10:50 am
C'mon. It's poor, yes! ... but very, very poor?  :P

Yes, it's around 5MB/s ... Sometimes 1-2MB/s and never above 10MB/s


OK, but that's not normal! There must be some trouble ...

I don't have a gigabit switch here but no matter what I do I got constant 10MB/s with CPU utilisation around 50%.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Sloop

@jedie: you should try to debug your NIC and DISK first (!). Don't mess around with samba, because samba is the upper layer of your problem as it is only the application. Try do some tests with "ioperf" or "netio" first. These test utilities will show you how much your network bandwidth can be. These tests DON'T use any disk activity so you get really expressive results for your network bandwidth. You should get around 80 MB/sec transfer rate when you test with "netio" or "iperf" (your other computer you are testing with should of course be 1000MBit/s capable ;) ) so all your components between your tests should have a Gigabit-NIC, also your switch if there is one in use.

Then, try to benchmark your disk which samba is using. Take care, that the fastest disc I/O is provided when you use an internal SATA hard disk. The slowest I/O has the internal NAND-flash. Here are some disk throughput results of mine, so you have an overview about the speeds which are possible:

1.) doing a Write-Test with: "dd if=/dev/zero of=/mnt/disktest.tmp bs=1M count=1024"
2.) deleting cache for getting real results: "echo 3 > /proc/sys/vm/drop_caches"
3.) doing a Read-Test with: "dd if=/mnt/disktest.tmp of=/dev/null bs=1M count=1024"

***********
* RESULTS *
***********

Harddisk 2.5" WesternDigital Red 1TB, /dev/sda1 with ext4:
======================================
Write = 46,6 MB/s, Read = 105 MB/s

microSD-card SanDisk 16GB Class10  ~45MB/sec, /dev/mmcblk0p1 with ext4:
=================================================
Write = 19,9 MB/s, Read = 19,2 MB/s

NAND-Flash /dev/nand2 with ext4:
================================
Write = 8,4 MB/s, Read = 13,9 MB/s

The next step would then be to do some file copy tests, either through NFS, SCP, FTP, or similar. In my case I would expect a maximum rate of about 46,6 MB/sec (=which is equal to ~373 MBit/s) when copying files "->TO" the cubietruck. When I copy files from cubietruck to my local computer, I would expect to achieve max. ~80-85MB/sec (because the NIC is limiting here with ~500-550 MBit/s which is equal to 80-85MB/sec).

When you have done these tests and you get what you expect, "THEN" try to debug your samba configuration and look for samba questions.

Hope this helps.

Greetings,
Sloop

jedie

Quote from: slovenia on March 18, 2014, 08:21:08 am
I don't have a gigabit switch here but no matter what I do I got constant 10MB/s with CPU utilisation around 50%.

Hm! I have made tests via NFS. Then i get also ~11MB/s (Every test is only reading a big file)

@Sloop: Good idea!

jedie

Found two things:

1. i have use the wrong Ethernet cable.  ::) It was another 100MBit switch and not directly in my GB switch ;)
But this doesn't change anything. Reading one big file from samba results in ~5MB/s

2. I increase the samba buffer:
socket options = TCP_NODELAY SO_RCVBUF=65535 SO_SNDBUF=65535
With this, i get >20MB/s  ;D
One CPU core goes up to ~70%

Transfer the same file again (so it should be in the cache) i get ~26MB/s

Using NFS i get ~37MB/s and both CPU cores usage goes up to ~60-80%

ua3prq

To Slovenia

Hello!
Established to prepare for the home use version 1.7 (CLI server I need). Here CB2 A20.B flash 8Gb Transcend 10class. Work great!
Almost set up all the necessary services, HDD (WD Red 3Tb) format EXT4 on GPT partition- everything is fine. Samba/torrent is running at full speed my 100 Mbit ethernet.
It remains to remove small defects configuration created for CT (WiFi, BT, may be something else). Help to disable missing devices for CB2.
Thank you!

Mar 20 14:35:13 cubie kernel: [    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
Mar 20 14:35:13 cubie kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Mar 20 14:35:13 cubie kernel: [    0.000000] Machine: sun7i
Mar 20 14:35:13 cubie kernel: [    0.000000] Memory policy: ECC disabled, Data cache writealloc
Mar 20 14:35:13 cubie kernel: [    0.000000] On node 0 totalpages: 262144
Mar 20 14:35:13 cubie kernel: [    0.000000] free_area_init_node: node 0, pgdat c095b580, node_mem_map d0000000
Mar 20 14:35:13 cubie kernel: [    0.000000]   DMA zone: 512 pages used for memmap
Mar 20 14:35:13 cubie kernel: [    0.000000]   DMA zone: 0 pages reserved
Mar 20 14:35:13 cubie kernel: [    0.000000]   DMA zone: 65024 pages, LIFO batch:15
Mar 20 14:35:13 cubie kernel: [    0.000000]   Normal zone: 1008 pages used for memmap
Mar 20 14:35:13 cubie kernel: [    0.000000]   Normal zone: 128016 pages, LIFO batch:31
Mar 20 14:35:13 cubie kernel: [    0.000000]   HighMem zone: 528 pages used for memmap
Mar 20 14:35:13 cubie kernel: [    0.000000]   HighMem zone: 67056 pages, LIFO batch:15
Mar 20 14:35:13 cubie kernel: [    0.000000] pcpu-alloc: s8064 r8192 d12416 u32768 alloc=8*4096
Mar 20 14:35:13 cubie kernel: [    0.000000] pcpu-alloc: [0] 0 [0] 1
Mar 20 14:35:13 cubie kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Mar 20 14:35:13 cubie kernel: [    0.238098] CPU1: Booted secondary processor
Mar 20 14:35:13 cubie kernel: [    0.381313] libata version 3.00 loaded.
Mar 20 14:35:13 cubie kernel: [    0.432929] [usb_manager]: CONFIG_USB_SW_SUNXI_USB0_OTG
Mar 20 14:35:13 cubie kernel: [    0.436732] [sw_hcd0]: usb host driver initialize........
Mar 20 14:35:13 cubie kernel: [    0.440956] [sw_hcd0]: open_usb_clock
Mar 20 14:35:13 cubie kernel: [    0.465175] [sw_hcd0]: host_init_state = 1
Mar 20 14:35:13 cubie kernel: [    0.466156] [sw_hcd0]: platform is usb host
Mar 20 14:35:13 cubie kernel: [    0.469086] [sw_hcd0]: sw_hcd_host0: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
Mar 20 14:35:13 cubie kernel: [    0.480292] [sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host mode controller at f1c13000 using PIO, IRQ 70
Mar 20 14:35:13 cubie kernel: [    0.509756] wrn: hcd is not enable, need not start hcd
Mar 20 14:35:13 cubie kernel: [    0.511150] [sw_hcd0]: sw_usb_host0_disable start
Mar 20 14:35:13 cubie kernel: [    0.517177] -------sw_hcd0_soft_disconnect---------
Mar 20 14:35:13 cubie kernel: [    0.520170] is_on = 0, hcd0_set_vbus_cnt = 0
Mar 20 14:35:13 cubie kernel: [    0.523231] [sw_hcd_host0]: Set USB Power Off
Mar 20 14:35:13 cubie kernel: [    0.526984] wrn: hcd is not enable, need not stop hcd
Mar 20 14:35:13 cubie kernel: [    0.528035] [sw_hcd0]: close_usb_clock
Mar 20 14:35:13 cubie kernel: [    0.530524] [sw_hcd0]: sw_usb_host0_disable end
Mar 20 14:35:13 cubie kernel: [    0.533716] [sw_udc]: udc_init: version 20080411
Mar 20 14:35:13 cubie kernel: [    0.615151] highmem bounce pool size: 64 pages
Mar 20 14:35:13 cubie kernel: [    0.632029] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Mar 20 14:35:13 cubie kernel: [    1.572860] G2D: drv_g2d_init
Mar 20 14:35:13 cubie kernel: [    1.601975] [NAND] nand driver version: 0x2 0x9
Mar 20 14:35:13 cubie kernel: [    1.888993] [NAND]nand driver, ok.
Mar 20 14:35:13 cubie kernel: [    2.082848] [sw-ehci1]: open clock
Mar 20 14:35:13 cubie kernel: [    2.108872] [sw-ehci1]: Set USB Power ON
Mar 20 14:35:13 cubie kernel: [    2.180026] ehci_irq: port change detect
Mar 20 14:35:13 cubie kernel: [    2.200624] [sw-ohci1]: open clock
Mar 20 14:35:13 cubie kernel: [    2.347137] [sw-ehci2]: open clock
Mar 20 14:35:13 cubie kernel: [    2.373727] [sw-ehci2]: Set USB Power ON
Mar 20 14:35:13 cubie kernel: [    2.470128] [sw-ohci2]: open clock
Mar 20 14:35:13 cubie kernel: [    2.531707] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
Mar 20 14:35:13 cubie kernel: [    2.794690] ===========================hv_keypad_init=====================
Mar 20 14:35:13 cubie kernel: [    2.805032] ========HV Inital ===================
Mar 20 14:35:13 cubie kernel: [    2.832378] hv_keypad_init: after fetch_sysconfig_para:  normal_i2c: 0x0. normal_i2c[1]: 0x0
Mar 20 14:35:13 cubie kernel: [    2.869557] config i2c gpio with gpio_config api
Mar 20 14:35:13 cubie kernel: [    2.903084] [AXP]axp driver uning configuration failed(342)
Mar 20 14:35:13 cubie kernel: [    2.910615] [AXP]power_start = 0
Mar 20 14:35:13 cubie kernel: [    2.933441] [cedar dev]: not installed! ve_mem_reserve=0
Mar 20 14:35:13 cubie kernel: [    2.942162] [tt]----- avs_dev driver load... ----
Mar 20 14:35:13 cubie kernel: [    2.950437] [tt]-----      register iomem      ----
Mar 20 14:35:13 cubie kernel: [    2.959084] [tt]--- avs_dev driver load ok!! -----
Mar 20 14:35:13 cubie kernel: [    2.965681] [ace_drv] start!!!
Mar 20 14:35:13 cubie kernel: [    2.971176] [ace_drv] init end!!!
Mar 20 14:35:13 cubie kernel: [    2.976165] [pa_drv] start!!!
Mar 20 14:35:13 cubie kernel: [    2.981410] [pa_drv] init end!!!
Mar 20 14:35:13 cubie kernel: [    3.281815] [mmc_pm]: failed to fetch sdio card configuration!
Mar 20 14:35:13 cubie kernel: [    3.303972] Registered led device: green:ph20:led1
Mar 20 14:35:13 cubie kernel: [    3.320851] Registered led device: blue:ph21:led2
Mar 20 14:35:13 cubie kernel: [    3.586426] [mmc_pm]: No sdio card, please check your config !!
Mar 20 14:35:13 cubie kernel: [    9.965788] pm: select wifi: rtl8192cu
Mar 20 14:35:13 cubie kernel: [    9.997529] [wifi_pm]: wifi gpio init is OK !!
Mar 20 14:35:13 cubie kernel: [   10.077311] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   10.097579] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   10.216178] =========== WLAN placed in POWER ON ========
Mar 20 14:35:13 cubie kernel: [   12.232783]
Mar 20 14:35:13 cubie kernel: [   12.232789] failed to power up wifi chip, retry again (4 left) **
Mar 20 14:35:13 cubie kernel: [   12.232794]
Mar 20 14:35:13 cubie kernel: [   12.271635] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   12.292156] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   12.309663] =========== WLAN placed in POWER OFF ========
Mar 20 14:35:13 cubie kernel: [   12.330378] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   12.350826] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   12.468170] =========== WLAN placed in POWER ON ========
Mar 20 14:35:13 cubie kernel: [   14.482782]
Mar 20 14:35:13 cubie kernel: [   14.482787] failed to power up wifi chip, retry again (3 left) **
Mar 20 14:35:13 cubie kernel: [   14.482792]
Mar 20 14:35:13 cubie kernel: [   14.521139] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   14.541531] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   14.558956] =========== WLAN placed in POWER OFF ========
Mar 20 14:35:13 cubie kernel: [   14.579616] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   14.600052] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   14.718680] =========== WLAN placed in POWER ON ========
Mar 20 14:35:13 cubie kernel: [   16.732790]
Mar 20 14:35:13 cubie kernel: [   16.732796] failed to power up wifi chip, retry again (2 left) **
Mar 20 14:35:13 cubie kernel: [   16.732801]
Mar 20 14:35:13 cubie kernel: [   16.772085] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   16.792990] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   16.811038] =========== WLAN placed in POWER OFF ========
Mar 20 14:35:13 cubie kernel: [   16.832338] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn on WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   16.853371] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   16.971387] =========== WLAN placed in POWER ON ========
Mar 20 14:35:13 cubie kernel: [   18.982792]
Mar 20 14:35:13 cubie kernel: [   18.982798] failed to power up wifi chip, retry again (1 left) **
Mar 20 14:35:13 cubie kernel: [   18.982803]
Mar 20 14:35:13 cubie kernel: [   19.023372] dhd_customer_gpio_wlan_ctrl: call customer specific GPIO to turn off WL_REG_ON
Mar 20 14:35:13 cubie kernel: [   19.044631] [wifi_pm]: No select wifi, please check your config !!
Mar 20 14:35:13 cubie kernel: [   19.062834] =========== WLAN placed in POWER OFF ========
Mar 20 14:35:13 cubie kernel: [   19.081601]
Mar 20 14:35:13 cubie kernel: [   19.081606] failed to power up wifi chip, max retry reached, exits **
Mar 20 14:35:13 cubie kernel: [   19.081611]
Mar 20 14:35:21 cubie kernel: [   34.630614] eth0: no IPv6 routers present

slovenia

QuoteIt remains to remove small defects configuration created for CT (WiFi, BT, may be something else). Help to disable missing devices for CB2.


Just remove / comment:

bcmdhd

and

rfcomm
hidp

in /etc/modules

Thank you for feedback. I will solve this issue in next release ... but even if you left this as is it shouldn't cause any troubles.

p.s.
Nice box! I still have all parts lying on my desk  :-[
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

ua3prq

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  :-[

slovenia

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  :-[


bcmdhd is the module for Cubietrucks wifi adapter. If you remove it it shouldn't output any error on CB2 regarding wifi but since I only have Cubietruck I can't test. The problem might also be in loading proper script.bin ...
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

ua3prq


RobinS

Hello,

I am new to Cubietruck (got it a few days ago), but have been a multi PI user from the start.
The lightweight debian version in this thread (very nice work mr slovenia), suites my needs very well.

I installed the 27.0.2014 image onto uSD card, and the board starts OK.
However I have problems with apt-get.
If I do an apt-get update, I get 404 not found and GPG BADSIG errors.

GPG error: http://http.debian.net wheezy-updates Release: The following signatures were invalid:
BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org

GPG error: http://security.debian.org wheezy/updates Release: The following signatures were invalid:
BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian
.org>

Err http://http.debian.net wheezy/main armhf Packages
  404  Not Found [IP: 130.89.149.21 80]

I tried clearing the apt list by:
apt-get clean
rm -vf /var/lib/apt/lists/*
rm /var/lib/apt/lists/partial/*
mkdir -pv /var/lib/apt/lists/partial
apt-get update

but no luck...  :(

I also tried different repos as I read in another forum that http.debian.net was a bit unstable.
So I tried the ftp.de.debian.org and ftp.nl.debian.org, (all with apt list clearing and rebuilding) but no luck.
I also tried to install debian-archive-keyring, but it was already installed and was not updated.
I have searched for a solution for the BADSIG, but am unable to find one.

Does this sound familiar ? (as I could not find any references in this thread)
And does anyone have a clue how to fix it ?

BTW: I wrote the image to uSD with win32diskimager, and resized the 1 GB partition to 4GB (uSD card size) with gparted using a VM on my PC.

Thanks in advance,

Best Regards,

Robin


ua3prq

Quote from: RobinS on March 22, 2014, 05:05:30 pm
However I have problems with apt-get.
If I do an apt-get update, I get 404 not found and GPG BADSIG errors.

Hi Robin!
Strangely

root@roger:~# apt-get update
Hit http://http.debian.net wheezy Release.gpg
Get:1 http://http.debian.net wheezy-updates Release.gpg [836 B]
Get:2 http://security.debian.org wheezy/updates Release.gpg [836 B]
Hit http://http.debian.net wheezy Release
Get:3 http://http.debian.net wheezy-updates Release [124 kB]
Get:4 http://security.debian.org wheezy/updates Release [102 kB]
Hit http://http.debian.net wheezy/main Sources
Hit http://http.debian.net wheezy/contrib Sources
Hit http://http.debian.net wheezy/non-free Sources
Hit http://http.debian.net wheezy/main armhf Packages
Hit http://http.debian.net wheezy/contrib armhf Packages
Hit http://http.debian.net wheezy/non-free armhf Packages
Hit http://http.debian.net wheezy/contrib Translation-en
Hit http://http.debian.net wheezy/main Translation-en
Hit http://http.debian.net wheezy/non-free Translation-en
Get:5 http://http.debian.net wheezy-updates/main Sources [4,057 B]
Get:6 http://http.debian.net wheezy-updates/contrib Sources [14 B]
Get:7 http://http.debian.net wheezy-updates/non-free Sources [14 B]
Get:8 http://http.debian.net wheezy-updates/main armhf Packages/DiffIndex [1,057 B]
Get:9 http://security.debian.org wheezy/updates/main Sources [92.7 kB]
Get:10 http://http.debian.net wheezy-updates/contrib armhf Packages [14 B]
Get:11 http://http.debian.net wheezy-updates/non-free armhf Packages [14 B]
Get:12 http://http.debian.net wheezy-updates/contrib Translation-en [14 B]
Hit http://http.debian.net wheezy-updates/main Translation-en/DiffIndex
Get:13 http://http.debian.net wheezy-updates/non-free Translation-en [14 B]
Get:14 http://http.debian.net wheezy-updates/main armhf 2014-03-20-2050.16.pdiff [1,548 B]
Get:15 http://http.debian.net wheezy-updates/main armhf 2014-03-20-2050.16.pdiff [1,548 B]
Get:16 http://security.debian.org wheezy/updates/contrib Sources [14 B]
Get:17 http://security.debian.org wheezy/updates/non-free Sources [14 B]
Get:18 http://security.debian.org wheezy/updates/main armhf Packages [162 kB]
Get:19 http://security.debian.org wheezy/updates/contrib armhf Packages [14 B]
Get:20 http://security.debian.org wheezy/updates/non-free armhf Packages [14 B]
Get:21 http://security.debian.org wheezy/updates/contrib Translation-en [14 B]
Get:22 http://security.debian.org wheezy/updates/main Translation-en [93.5 kB]
Get:23 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]
Fetched 583 kB in 5s (114 kB/s)
Reading package lists... Done
root@roger:~#


slovenia

Quote from: RobinS on March 22, 2014, 05:05:30 pm
Hello,

I am new to Cubietruck (got it a few days ago), but have been a multi PI user from the start.
The lightweight debian version in this thread (very nice work mr slovenia), suites my needs very well.

I installed the 27.0.2014 image onto uSD card, and the board starts OK.
However I have problems with apt-get.
If I do an apt-get update, I get 404 not found and GPG BADSIG errors.

GPG error: http://http.debian.net wheezy-updates Release: The following signatures were invalid:
BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org

GPG error: http://security.debian.org wheezy/updates Release: The following signatures were invalid:
BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian
.org>

Err http://http.debian.net wheezy/main armhf Packages
  404  Not Found [IP: 130.89.149.21 80]

I tried clearing the apt list by:
apt-get clean
rm -vf /var/lib/apt/lists/*
rm /var/lib/apt/lists/partial/*
mkdir -pv /var/lib/apt/lists/partial
apt-get update

but no luck...  :(

I also tried different repos as I read in another forum that http.debian.net was a bit unstable.
So I tried the ftp.de.debian.org and ftp.nl.debian.org, (all with apt list clearing and rebuilding) but no luck.
I also tried to install debian-archive-keyring, but it was already installed and was not updated.
I have searched for a solution for the BADSIG, but am unable to find one.

Does this sound familiar ? (as I could not find any references in this thread)
And does anyone have a clue how to fix it ?

BTW: I wrote the image to uSD with win32diskimager, and resized the 1 GB partition to 4GB (uSD card size) with gparted using a VM on my PC.

Thanks in advance,

Best Regards,

Robin


Hi. It look's like outside trouble - router / internet. There is no need to resize partition manually - it's done at first boot + ssh keys generation + MAC address ...

Write an image once again, don't touch it, leave it reboot once then login and try again. If everything is o.k. with your router, you should be able to do apt-get update. Note: only wired network is DHCP enabled by default, for wireless you have to edit /etc/network/interfaces to enable it.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

RobinS

Hi Slovenia,

Thanks for your fast response.
I just reimaged the uSD card and put it in the cubietruck, and immediately after boot ran a traceroute to the repo servers, and then ran apt-get update.
But unfortunately with the same issues....  :'(
I have included the results of my attempts below.

Any ideas ?

Best Regards,

Robin


My connection checks:
root@cubie:~# traceroute http.debian.net
traceroute to http.debian.net (46.4.205.44), 30 hops max, 60 byte packets
fritz.box (192.168.1.1)  0.374 ms  0.234 ms  0.260 ms
2  MASKED OWN IP (MASKED)  15.738 ms  15.659 ms  15.502 ms
init7.nikhef.nl-ix.net (193.239.116.84)  17.938 ms  18.292 ms  18.210 ms
r1nue2.core.init7.net (77.109.140.158)  41.509 ms  42.790 ms  42.631 ms
r1nue1.core.init7.net (77.109.140.153)  42.853 ms  42.798 ms  42.716 ms
gw-hetzner.init7.net (77.109.135.102)  42.626 ms  106.854 ms  40.000 ms
core12.hetzner.de (213.239.245.25)  40.333 ms  40.530 ms  40.692 ms
core22.hetzner.de (213.239.245.213)  42.924 ms  42.843 ms  42.604 ms
juniper2.rz13.hetzner.de (213.239.245.122)  43.356 ms  43.421 ms  42.986 ms
10  hos-tr3.ex3k11.rz13.hetzner.de (213.239.224.76)  46.332 ms hos-tr4.ex3k11.rz
13.hetzner.de (213.239.224.108)  44.695 ms  45.962 ms
11  ivanova.ganneff.de (88.198.55.121)  44.546 ms  45.791 ms  45.705 ms
12  ivanova.ganneff.de (88.198.55.121)  45.618 ms  46.770 ms  46.616 ms

root@cubie:~# traceroute security.debian.org
traceroute to security.debian.org (212.211.132.32), 30 hops max, 60 byte packets
fritz.box (192.168.1.1)  0.264 ms  0.298 ms  0.313 ms
2  MASKED OWN IP (MASKED))  15.291 ms  15.560 ms  15.936 ms
amsix.sara.ams.spxs.net (195.69.145.99)  31.645 ms  31.646 ms  31.873 ms
vl647.ffmxs11.ix.ffm.spxs.net (212.211.255.73)  163.689 ms  163.537 ms  163.
605 ms
villa.debian.org (212.211.132.32)  34.233 ms  34.604 ms  34.561 ms
root@cubie:~#

So connections to repos are OK..

But apt-get update fails:
oot@cubie:~# apt-get update
Get:1 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get:2 http://security.debian.org wheezy/updates Release [102 kB]
Hit http://http.debian.net wheezy Release.gpg
Get:3 http://http.debian.net wheezy-updates Release.gpg [836 B]
Hit http://http.debian.net wheezy Release
Get:4 http://http.debian.net wheezy-updates Release [124 kB]
Err http://security.debian.org wheezy/updates Release

Err http://http.debian.net wheezy-updates Release

Hit http://http.debian.net wheezy/main Sources
Hit http://http.debian.net wheezy/contrib Sources
Hit http://http.debian.net wheezy/non-free Sources
Hit http://http.debian.net wheezy/main armhf Packages
Hit http://http.debian.net wheezy/contrib armhf Packages
Hit http://http.debian.net wheezy/non-free armhf Packages
Hit http://http.debian.net wheezy/contrib Translation-en
Hit http://http.debian.net wheezy/main Translation-en
Hit http://http.debian.net wheezy/non-free Translation-en
Fetched 228 kB in 0s (258 kB/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not upd
ated and the previous index files will be used. GPG error: http://security.debia
n.org wheezy/updates Release: The following signatures were invalid: BADSIG 8B48
AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian
.org>

W: A error occurred during the signature verification. The repository is not upd
ated and the previous index files will be used. GPG error: http://http.debian.ne
t wheezy-updates Release: The following signatures were invalid: BADSIG 8B48AD62
46925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org
>

W: Failed to fetch http://security.debian.org/debian-security/dists/wheezy/updat
es/Release

W: Failed to fetch http://http.debian.net/debian/dists/wheezy-updates/Release

W: Some index files failed to download. They have been ignored, or old ones used
instead.
root@cubie:~#

slovenia

QuoteI have included the results of my attempts below.

Any ideas ?


I made a full dummy test - download the image, write it and everything went o.k. So far none reported to run into this.

Maybe change apt sources to (any) your local mirror:
https://www.debian.org/mirror/list

Or semi automated way:

apt-get install netselect-apt # You need this tool
netselect-apt -n -s wheezy # This will create new sources.list based on the download speed
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com