CubieBoard Forum

Pre-Made Images => Images => Cubieboard v3 Images (Cubietruck) => Topic started by: slovenia on December 24, 2013, 03:23:11 pm

Title: Wheezy, Jessie & Trusty for SD, SATA or NAND with hotspot & BT - upd. 16.9.2016
Post by: slovenia on December 24, 2013, 03:23:11 pm
(http://forum.armbian.com/public/style_images/1_logoforum4.png)
[ Follow us on Twitter ]
https://twitter.com/armbian

Clean minimal stable base of Debian Wheezy, Jessie and Ubuntu Trusty to deploy web, mail, samba, ... server. The image is compiled from scratch. Image is suitable for any SD card larger than 2G and can be moved to NAND or SATA. The first boot takes longer time (around 1m50s) than usual (25s). It needs to regenerate SSH keys, sets your MAC address, resizes partition to fit your SD card. It might reboot one time automatically on first boot to take effect for changes.

Cubietruck
VGA / HDMI output is determined at first boot. If you start your system with HDMI plugged in than your system will be preconfigured for HDMI after first boot else VGA if HDMI is not connected.

(https://lh5.googleusercontent.com/-dYQuVFOFVo8/Uw99EtGP46I/AAAAAAAABJ0/WHo_ll6zudA/s768/ctdebian.png)

(http://www.igorpecovnik.com/wp-content/uploads/2013/12/SCQXB1C-1024x576.png)

(https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=L94PPLFPNY9X2)

16.9.2016
http://docs.armbian.com/Release_Changelog/

29.4.2016
- kernel 3.4.112 and 4.5.2 (docker ready)

28.2.2016
- fixed Bluetooth on Cubietruck (3.4.110)
- kernel upstream 4.4.3 on Vanilla
- MALI and video acceleration working on 3.4.110
- forced user creation at first login

12.2.2016

- Vanilla kernel for Allwinner based boards upgraded to 4.4.1
- Allwinner audio driver playback and capture on kernel 4.4.1, UAS, USB OTG, battery readings,
- firstrun does autoreboot only if needed: wheezy and some legacy kernels.
- added motd to /etc/updated.motd ... redesign, added battery info for Allwinner boards, bugfix, coloring
- fixed FB turbo building on Allwinner
- fixed NAND install on A10 boards (Legacy kernel only)
- fixed USB boot, added PWM on Vanilla
- readded USB sound
- added LIRC GPIO receive and send driver for legacy Allwinner
- added LED MMC activity to Vanilla kernels for Cubietruck and Cubieboard A10
- build script: option to build images with F2FS root filesystem for Allwinner boards

28.12.2015 Update only (apt-get update && apt-get upgrade)
– complete build script rework
– new development kernel package linux-image-dev-sunxi (4.4RC6) for Allwinner boards
– Vanilla kernel for Allwinner based boards upgraded to 4.3.3
– fixed Jessie RTC bug, systemd default on Jessie images

1.10.2015
– vanilla kernel upgrade to 4.2.2,
– legacy kernel upgraded to 3.4.109,
– added I2C support and bunch of multimedia modules (DVB) (vanilla),
– brcmfmac driver fixes for vanilla kernel (Cubietruck)
– performance tweak: choosing a closest Debian mirror (Debian images)
– added Astrometa DVB firmware and dvb-tools
– added Nikkov SPDIF / I2S recent patch (legacy)
– added patch for rtl8192cu: Add missing case in rtl92cu_get_hw_reg (legacy)
– bigger NAND boot partition on install
– install script bug fixes

17.9.2015
– kernel 4.2
– walk-around if ethernet is not detected on some boards due to RTC not set(?)
– update is done (semi) automatic if you are using Armbian 4.2. You only need to issue command: apt-get update && apt-get upgrade. If you are coming from older system, check Documentation
– Enabled whole USB net and HID section in kernel for Allwinner boards v4.2
– Fixed upgrade script – only some minor bugs remains.
– Fixes to build script that it’s working under Ubuntu 15.04

1.9.2015
– Upgraded NAND / SATA installer. Possible to install to SATA/NAND boot in one step.
– Easy kernel switching between old 3.4 and 4.x
– Automatic kernel updating (to disable comment armbian repo /etc/apt/sources.list)
– Aufs file system support
– kernel 4.1.6 and 3.4.108
– Added Cubieboard 1 (4.x only)
– enabled USB audio in kernel 4.x
– kernel headers fixed. No need to rebuild when you update the kernel.
– fixed boot scripts that can load from FAT partition too
– Docker support (kernel 4.x). Already here for a while / forget to mention.
- removed security system. It's coming with Kernel 3.4

5.8.2015
- Added lightweight Ubuntu Trusty XFCE desktop image
- Added auto system update via repository apt.armbian.com
- Root password change is initialized at first boot.
- 3.4.108 kernel fixes (https://github.com/dan-and/linux-sunxi/pull/12), 4.1.4 Allwinner Security System (http://sunxi.montjoie.ovh/)

12.7.2015
- Fixed stability issues, temperature display in 4.x
- Kernel upgrades to 3.4.108 and 4.1.2

11.6.2015
- Bugfix release
- Kernel 4.0.5 traffic control support
- SATA / USB install fixed on kernel 4.x
- Added 256Mb emergency swap area, created automatically @first boot

21.5.2015
- Bugfix release: all images successfully booted on Cubietruck. I waited for automatic reboot than tested remote login.
- Kernel 4.0.4 added support for power on/off button
- Both: Jessie fixed, Eth init fixed (uboot)
- armbian.com introduction

12.7.2015
Fixed stability issues, temperature display in 4.x
Kernel upgrades to 3.4.108 and 4.1.2

14.5.2015
- Kernel 4.0.3 some new functionality
- Kernel 3.4.107 added sunxi display manager to change FB on demand
- Both: Ubuntu and jessie install errors fixed, removed busybox-syslogd and changed to default logger due to problems in Jessie and Ubuntu, apt-get upgrade fixed, documentations update, Uboot fixed to 2015.4 – no more from dev branch
- Build script rework – image size shrink to actual size, possible to have fat boot partition on SD card, several script bug fixes

29.4.2015
- Kernel 3.19.6
- Kernel 3.4.107 with better BT loading solution

17.4.2015
- Kernel 3.19.4: fixed AP mode, fixed USB, added 8192CU module
- Common: apt-get upgrade ready but not enabled yet, serial console fixed, fixed hostapd under jessie, easy kernel switching, latest patched hostapd for best performance – normal and for realtek adaptors, auto IO scheduler script
- Build script: everything packed as DEB

28.3.2015
- Kernel 3.19.3: docker support, apple hid, pmp, nfsd, sata peformance fix
- Kernel 3.4.106: pmp, a20_tp – soc temp sensor
- Common: console setup fixed, headers bugfix, nand install fix
- Build script: kernel build only, custom packets install, hardware accelerated desktop build as option

28.2.2015
- Kernel 3.19.0: many new functionality and fixes.
- Desktop upgrade on 3.19.0 works.
- Bugfixes: CT wireless works in all kernels

24.1.2015
- Possible to compile external modules on both kernels
- Kernel 3.19.0 RC5
- Bugfixes: install script, headers, bashrc, spi

11.1.2015
- Kernel 3.19.0 RC3 with working console
- Kernel, headers and firmware packed as DEB package
- Bugfixes

3.12.2014
- Kernel 3.4.105 with new MALI driver and other fixes
- Added: Jessie image
- Major build script rewrite – much faster image building
- Fixed: failed MIN/MAX settings

Download (http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/)

Main features:
Project history, quick manual and old images. (http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/)

Known bugs or limitations:
DIY:


Thanks to: Dek, nobrainz, patwood, kdeenkhoorn, D_NRW and all others who gave feedback to improve this image.
Title: Re: Wheezy server image with 3.4.75
Post by: corq on December 24, 2013, 04:06:00 pm
Thanks for your work!

Boots fine after flashing. A little unnerving because I did not see the usual flashing of the LEDs.


 
Title: Re: Wheezy server image with 3.4.75
Post by: slovenia on December 26, 2013, 06:44:35 am
Thanks for your work!

Boots fine after flashing. A little unnerving because I did not see the usual flashing of the LEDs.

 :P

I have board  just next to my keyboard so this blinking can be quite annoying :) They are back in new version. I am going to disable them when system boots up in the next release.

Title: Re: Wheezy server image - update 26.12.2013
Post by: dandreoletti on December 26, 2013, 08:40:43 am
v1.2 / 26.12.2013

changed kernel and hardware config repository
kernel 3.4.61+
wi-fi working
updated manual how-to

You mentionned "git clone https://github.com/cubieboard/linux-sunxi/" in your how-to. What branch did you use ? Thanks for the how to btw.
Title: Re: Wheezy server image - update 26.12.2013
Post by: slovenia on December 26, 2013, 09:38:16 am
You mentionned "git clone https://github.com/cubieboard/linux-sunxi/" in your how-to. What branch did you use ? Thanks for the how to btw.

cubie/sunxi-3.4

Tnx.
 
Title: Re: Wheezy server image with 3.4.75
Post by: corq on December 26, 2013, 10:21:30 pm
Thanks for your work!

Boots fine after flashing. A little unnerving because I did not see the usual flashing of the LEDs.

 :P

I have board  just next to my keyboard so this blinking can be quite annoying :) They are back in new version. I am going to disable them when system boots up in the next release.

LOL after a few minutes it occurred to me to turn the cubie and watch the ethernet lights for boot progress.

I agree the cubie lights my room up like a disco, so I figured the image had them disabled, no worries.


I'll check out the new image. the original has been very solid so far.

Thanks again for building this; I'm okay with kernel tweaking but not brave enough to roll my own yet, so I'm grateful for your work :)

Title: Re: Wheezy server image - update 26.12.2013
Post by: fherb on December 27, 2013, 11:29:49 am
Thanks! It works fantastic. :)
Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on December 28, 2013, 08:21:23 am
Hi great job really looks neat :) !!!

Three questions  :
- Is it possible to create a deb repository with the kernel so we don't have to wipe all if you just update the kernel ( I guess this is the thing that change the most ?)

- Is it possible to include this patch :
https://groups.google.com/forum/#!msg/linux-sunxi/pMPZj0XcJa0/5vyPoQqi3kUJ
In the kernel because otherwise this breaks lot's of gpio tools ?

- Is it possible to include fex2bin / bin2fex (those can be handy to modify script.bin) and apt-get can't find them.

Thanks for your time :)
Title: Re: Wheezy server image - update 26.12.2013
Post by: Kit on December 28, 2013, 10:26:42 am
How can I write a raw file to the memory card from the windows  ?
Thank....
Title: Re: Wheezy server image - update 26.12.2013
Post by: slovenia on December 28, 2013, 10:56:37 am
How can I write a raw file to the memory card from the windows  ?
Thank....

Suse Image Writer for example

ftp://ftp.berlios.de/pub/kiwi/ImageWriter.exe
Title: Re: Wheezy server image - update 26.12.2013
Post by: slovenia on December 28, 2013, 11:01:35 am
Hi great job really looks neat :) !!!

Three questions  :
- Is it possible to create a deb repository with the kernel so we don't have to wipe all if you just update the kernel ( I guess this is the thing that change the most ?)

- Is it possible to include this patch :
https://groups.google.com/forum/#!msg/linux-sunxi/pMPZj0XcJa0/5vyPoQqi3kUJ
In the kernel because otherwise this breaks lot's of gpio tools ?

- Is it possible to include fex2bin / bin2fex (those can be handy to modify script.bin) and apt-get can't find them.

Thanks for your time :)

Thanks.

1. I was thinking to do ZIP(TGZ) update. Next release will come with it. Changes will be in some scripts and of course kernel + modules.

2. I will try to implement it.

3. Sure
Title: Re: Wheezy server image - update 26.12.2013
Post by: Kit on December 28, 2013, 12:43:37 pm
HDMI out dont work ?
Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on December 29, 2013, 05:20:33 am
Hi great job really looks neat :) !!!

Three questions  :
- Is it possible to create a deb repository with the kernel so we don't have to wipe all if you just update the kernel ( I guess this is the thing that change the most ?)

- Is it possible to include this patch :
https://groups.google.com/forum/#!msg/linux-sunxi/pMPZj0XcJa0/5vyPoQqi3kUJ
In the kernel because otherwise this breaks lot's of gpio tools ?

- Is it possible to include fex2bin / bin2fex (those can be handy to modify script.bin) and apt-get can't find them.

Thanks for your time :)

Thanks.

1. I was thinking to do ZIP(TGZ) update. Next release will come with it. Changes will be in some scripts and of course kernel + modules.

2. I will try to implement it.

3. Sure


Thanks a lot, also in my experience with cubieboard it's great to include cpufreqd and cpufreq-utils and set a high min max like min = 60Mhz / max = 1Ghz.

Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on December 29, 2013, 05:35:57 am
I thought it would be a good idea to start a github where we can contribute on it all together :

https://github.com/deksan/Cubietruck-Debian

If you want to remain owner of the github just fork that one and I will contribute on yours ;)
Title: Re: Wheezy server image - update 26.12.2013
Post by: slovenia on December 29, 2013, 11:51:42 am
HDMI out dont work ?

In this moment I made just VGA output images. Next release will be two separate images VGA / HDMI. It's frustrating that you have to change scripts to get desired output at the very first boot. My images event does not provide tools to do that. I just forgot to add them  :-[



Title: Re: Wheezy server image - update 26.12.2013
Post by: slovenia on December 29, 2013, 12:19:47 pm
I thought it would be a good idea to start a github where we can contribute on it all together :

https://github.com/deksan/Cubietruck-Debian

If you want to remain owner of the github just fork that one and I will contribute on yours ;)

Very good idea  8) I don't mind about ownership and happy switching to Github with the project. I just need to learn about Github a little more ;)

Currently I am working to solve problems regarding wireless access point mode which I found interesting to include into by default. CT as additional AP would be helpful in many cases.
Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on December 29, 2013, 12:26:03 pm
For github I would recommend http://www.sourcetreeapp.com/ which is free and very easy to use !!
Title: Re: Wheezy server image - update 26.12.2013
Post by: ba on December 29, 2013, 01:20:27 pm
Hello,

is it possible to install the image to nand?

Is there no problem with a the memory leak of irqbalance as lubuntu images?

Title: Re: Wheezy server image - update 26.12.2013
Post by: peter_a on December 29, 2013, 03:56:20 pm
I think the "apt-get install" must install list is a little short ?.

I`m missing some tools which it didn`t test for or try to install , like unzip , zip , qemu.
 

 
Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on December 30, 2013, 04:04:55 am
I think the "apt-get install" must install list is a little short ?.

I`m missing some tools which it didn`t test for or try to install , like unzip , zip , qemu.

Did you try with the script on the github ?
Title: Re: Wheezy server image - update 26.12.2013
Post by: peter_a on December 30, 2013, 08:25:26 am
Yes I used the script and it failed big time, the first time around failing to do everything other than installing the git`s.
But after doing a big install of what I could find was missing it is now getting a little closer.
Still having problems with some command like , partprobe , so getting most of the way there , but having problem with "can`t find command" on the last bit of making the sdcard , I will have to try again and see which line(s) failed .
Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on December 30, 2013, 08:37:29 am
Yes I used the script and it failed big time, the first time around failing to do everything other than installing the git`s.
But after doing a big install of what I could find was missing it is now getting a little closer.
Still having problems with some command like , partprobe , so getting most of the way there , but having problem with "can`t find command" on the last bit of making the sdcard , I will have to try again and see which line failed .

I ll check all the command and add the appropriate apt's package.
Title: Re: Wheezy server image - update 26.12.2013
Post by: peter_a on December 30, 2013, 09:44:41 am
Before trying I had already played at making the kernel so already had installed .

apt-get install build-essential git u-boot-tools uboot-mkimage gcc-4.7-arm-linux-gnueabihf debootstrap ncurses-dev emdebian-archive-keyring

but running the first time had problems with zip , unzip and qemu etc.

Waiting for it to finish again to see where it`s having problems.

Code: [Select]
cp: cannot stat `/usr/bin/qemu-arm-static': No such file or directory
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
--2013-12-30 15:19:51--  https://www.dropbox.com/s/jytplpmc80nvc3q/cubian-firstrun
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/jytplpmc80nvc3q/cubian-firstrun?token_hash=AAEVBw_U9QmzVuFaNiyJ5kiYB5xzSM12zaQ9WwLemSHKGg [following]
--2013-12-30 15:19:52--  https://dl.dropboxusercontent.com/s/jytplpmc80nvc3q/cubian-firstrun?token_hash=AAEVBw_U9QmzVuFaNiyJ5kiYB5xzSM12zaQ9WwLemSHKGg
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2012 (2.0K) [text/plain]
Saving to: `cubian-firstrun'

100%[======================================>] 2,012       --.-K/s   in 0s

2013-12-30 15:19:53 (61.8 MB/s) - `cubian-firstrun' saved [2012/2012]

--2013-12-30 15:19:53--  https://www.dropbox.com/s/pwlsua9xran60ji/cubian-resize2fs
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/pwlsua9xran60ji/cubian-resize2fs?token_hash=AAFqH336_o1YBXMe98o1dC3JNEMHbYiMdFjmV8A3zxulwQ [following]
--2013-12-30 15:19:55--  https://dl.dropboxusercontent.com/s/pwlsua9xran60ji/cubian-resize2fs?token_hash=AAFqH336_o1YBXMe98o1dC3JNEMHbYiMdFjmV8A3zxulwQ
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 511 [text/plain]
Saving to: `cubian-resize2fs'

100%[======================================>] 511         --.-K/s   in 0s

2013-12-30 15:19:56 (15.0 MB/s) - `cubian-resize2fs' saved [511/511]

chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
--2013-12-30 15:19:56--  https://www.dropbox.com/s/o3evaiuidtg6xb5/ap6210.zip
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/o3evaiuidtg6xb5/ap6210.zip?token_hash=AAEmuAMPaFYPzkHrJp59skXwyyt39oQhUFDmZwIQg5-0eg [following]
--2013-12-30 15:19:57--  https://dl.dropboxusercontent.com/s/o3evaiuidtg6xb5/ap6210.zip?token_hash=AAEmuAMPaFYPzkHrJp59skXwyyt39oQhUFDmZwIQg5-0eg
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 445183 (435K) [application/zip]
Saving to: `ap6210.zip'

100%[======================================>] 445,183      292K/s   in 1.5s

2013-12-30 15:20:00 (292 KB/s) - `ap6210.zip' saved [445183/445183]

Archive:  ap6210.zip
   creating: ap6210/
  inflating: ap6210/bcm20710a1.hcd
  inflating: ap6210/bd_addr.txt
  inflating: ap6210/fw_bcm40181a2.bin
  inflating: ap6210/fw_bcm40181a2_apsta.bin
  inflating: ap6210/fw_bcm40181a2_p2p.bin
  inflating: ap6210/nvram_ap6210.txt
  inflating: ap6210/nvram_apxxxx.txt
rm: cannot remove `/tmp/Cubie/output/sdcard/usr/bin/qemu-arm-static': No such file or directory
loop: can't delete device /dev/loop0: Device or resource busy
root@debian:~/Cubietruck-Debian#
Title: Re: Wheezy server image - update 26.12.2013
Post by: jarsever on December 30, 2013, 12:24:41 pm
Does this image come with the bonding module?  We are trying to use LACP on the cb3 but none of the kernels seem to include bonding.
Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on December 30, 2013, 01:26:31 pm
Before trying I had already played at making the kernel so already had installed .

apt-get install build-essential git u-boot-tools uboot-mkimage gcc-4.7-arm-linux-gnueabihf debootstrap ncurses-dev emdebian-archive-keyring

but running the first time had problems with zip , unzip and qemu etc.

Waiting for it to finish again to see where it`s having problems.

Code: [Select]
cp: cannot stat `/usr/bin/qemu-arm-static': No such file or directory
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
--2013-12-30 15:19:51--  https://www.dropbox.com/s/jytplpmc80nvc3q/cubian-firstrun
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/jytplpmc80nvc3q/cubian-firstrun?token_hash=AAEVBw_U9QmzVuFaNiyJ5kiYB5xzSM12zaQ9WwLemSHKGg [following]
--2013-12-30 15:19:52--  https://dl.dropboxusercontent.com/s/jytplpmc80nvc3q/cubian-firstrun?token_hash=AAEVBw_U9QmzVuFaNiyJ5kiYB5xzSM12zaQ9WwLemSHKGg
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2012 (2.0K) [text/plain]
Saving to: `cubian-firstrun'

100%[======================================>] 2,012       --.-K/s   in 0s

2013-12-30 15:19:53 (61.8 MB/s) - `cubian-firstrun' saved [2012/2012]

--2013-12-30 15:19:53--  https://www.dropbox.com/s/pwlsua9xran60ji/cubian-resize2fs
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/pwlsua9xran60ji/cubian-resize2fs?token_hash=AAFqH336_o1YBXMe98o1dC3JNEMHbYiMdFjmV8A3zxulwQ [following]
--2013-12-30 15:19:55--  https://dl.dropboxusercontent.com/s/pwlsua9xran60ji/cubian-resize2fs?token_hash=AAFqH336_o1YBXMe98o1dC3JNEMHbYiMdFjmV8A3zxulwQ
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 511 [text/plain]
Saving to: `cubian-resize2fs'

100%[======================================>] 511         --.-K/s   in 0s

2013-12-30 15:19:56 (15.0 MB/s) - `cubian-resize2fs' saved [511/511]

chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
--2013-12-30 15:19:56--  https://www.dropbox.com/s/o3evaiuidtg6xb5/ap6210.zip
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/o3evaiuidtg6xb5/ap6210.zip?token_hash=AAEmuAMPaFYPzkHrJp59skXwyyt39oQhUFDmZwIQg5-0eg [following]
--2013-12-30 15:19:57--  https://dl.dropboxusercontent.com/s/o3evaiuidtg6xb5/ap6210.zip?token_hash=AAEmuAMPaFYPzkHrJp59skXwyyt39oQhUFDmZwIQg5-0eg
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 445183 (435K) [application/zip]
Saving to: `ap6210.zip'

100%[======================================>] 445,183      292K/s   in 1.5s

2013-12-30 15:20:00 (292 KB/s) - `ap6210.zip' saved [445183/445183]

Archive:  ap6210.zip
   creating: ap6210/
  inflating: ap6210/bcm20710a1.hcd
  inflating: ap6210/bd_addr.txt
  inflating: ap6210/fw_bcm40181a2.bin
  inflating: ap6210/fw_bcm40181a2_apsta.bin
  inflating: ap6210/fw_bcm40181a2_p2p.bin
  inflating: ap6210/nvram_ap6210.txt
  inflating: ap6210/nvram_apxxxx.txt
rm: cannot remove `/tmp/Cubie/output/sdcard/usr/bin/qemu-arm-static': No such file or directory
loop: can't delete device /dev/loop0: Device or resource busy
root@debian:~/Cubietruck-Debian#


So far my test are with 12.04 ubuntu (I should probably make that clear...) this may explain your problems as you are running debian ? Which probably embed different things under different packages ?

Title: Re: Wheezy server image - update 26.12.2013
Post by: patwood on December 30, 2013, 11:40:04 pm
Before trying I had already played at making the kernel so already had installed .

apt-get install build-essential git u-boot-tools uboot-mkimage gcc-4.7-arm-linux-gnueabihf debootstrap ncurses-dev emdebian-archive-keyring

but running the first time had problems with zip , unzip and qemu etc.

Waiting for it to finish again to see where it`s having problems.

Code: [Select]
cp: cannot stat `/usr/bin/qemu-arm-static': No such file or directory
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
--2013-12-30 15:19:51--  https://www.dropbox.com/s/jytplpmc80nvc3q/cubian-firstrun
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/jytplpmc80nvc3q/cubian-firstrun?token_hash=AAEVBw_U9QmzVuFaNiyJ5kiYB5xzSM12zaQ9WwLemSHKGg [following]
--2013-12-30 15:19:52--  https://dl.dropboxusercontent.com/s/jytplpmc80nvc3q/cubian-firstrun?token_hash=AAEVBw_U9QmzVuFaNiyJ5kiYB5xzSM12zaQ9WwLemSHKGg
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2012 (2.0K) [text/plain]
Saving to: `cubian-firstrun'

100%[======================================>] 2,012       --.-K/s   in 0s

2013-12-30 15:19:53 (61.8 MB/s) - `cubian-firstrun' saved [2012/2012]

--2013-12-30 15:19:53--  https://www.dropbox.com/s/pwlsua9xran60ji/cubian-resize2fs
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/pwlsua9xran60ji/cubian-resize2fs?token_hash=AAFqH336_o1YBXMe98o1dC3JNEMHbYiMdFjmV8A3zxulwQ [following]
--2013-12-30 15:19:55--  https://dl.dropboxusercontent.com/s/pwlsua9xran60ji/cubian-resize2fs?token_hash=AAFqH336_o1YBXMe98o1dC3JNEMHbYiMdFjmV8A3zxulwQ
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 511 [text/plain]
Saving to: `cubian-resize2fs'

100%[======================================>] 511         --.-K/s   in 0s

2013-12-30 15:19:56 (15.0 MB/s) - `cubian-resize2fs' saved [511/511]

chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
chroot: failed to run command `/bin/bash': Exec format error
--2013-12-30 15:19:56--  https://www.dropbox.com/s/o3evaiuidtg6xb5/ap6210.zip
Resolving www.dropbox.com (www.dropbox.com)... 108.160.165.20
Connecting to www.dropbox.com (www.dropbox.com)|108.160.165.20|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://dl.dropboxusercontent.com/s/o3evaiuidtg6xb5/ap6210.zip?token_hash=AAEmuAMPaFYPzkHrJp59skXwyyt39oQhUFDmZwIQg5-0eg [following]
--2013-12-30 15:19:57--  https://dl.dropboxusercontent.com/s/o3evaiuidtg6xb5/ap6210.zip?token_hash=AAEmuAMPaFYPzkHrJp59skXwyyt39oQhUFDmZwIQg5-0eg
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 107.21.221.217
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|107.21.221.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 445183 (435K) [application/zip]
Saving to: `ap6210.zip'

100%[======================================>] 445,183      292K/s   in 1.5s

2013-12-30 15:20:00 (292 KB/s) - `ap6210.zip' saved [445183/445183]

Archive:  ap6210.zip
   creating: ap6210/
  inflating: ap6210/bcm20710a1.hcd
  inflating: ap6210/bd_addr.txt
  inflating: ap6210/fw_bcm40181a2.bin
  inflating: ap6210/fw_bcm40181a2_apsta.bin
  inflating: ap6210/fw_bcm40181a2_p2p.bin
  inflating: ap6210/nvram_ap6210.txt
  inflating: ap6210/nvram_apxxxx.txt
rm: cannot remove `/tmp/Cubie/output/sdcard/usr/bin/qemu-arm-static': No such file or directory
loop: can't delete device /dev/loop0: Device or resource busy
root@debian:~/Cubietruck-Debian#

Looks like you're attempting to build an ARM distro on an x86 linux, correct?  So if you really need to get qemu-user-static installed on your host system.
Title: Re: Wheezy server image - update 26.12.2013
Post by: z954134 on December 31, 2013, 05:17:20 pm
thank you very much.It's a good img.
I have a question when i use wifi.when i use lan and wlan together,wifi is ok.but wifi not work when i use only wlan
Title: Re: Wheezy server image - update 26.12.2013
Post by: dek on January 01, 2014, 05:22:55 am
Does this image come with the bonding module?  We are trying to use LACP on the cb3 but none of the kernels seem to include bonding.

I m Integrating the .config for the kernel in the github so you can configure more Modules manually before generating the image.

The new github is here https://github.com/igorpecovnik/Cubietruck-Debian

Because igor is the one who created the script so It's natural that he is the owner.

I ll commit my changes once I have contributor access :)

Title: Re: Wheezy server image - update 26.12.2013
Post by: pezi on January 01, 2014, 05:46:45 am
Hi!

Over 'night' some new OS images
http://dl.cubieboard.org/software/a20-cubietruck/
have been released!
See for more informations
http://www.cubieforums.com/index.php/topic,1311.0.html
Also a Debian image. This is fine - but for me here is running something wrong.

In this thread people try to build a Debian image on their own on the hard way. Meanwhile a cubie team related persons does the same/similar (inside) job...
I am a newbie and don't know the cubie 'development' team. But a little more information what is ongoing would help us to focus the rare (kernel/HW hacker) resources.

Peter





Title: Re: Wheezy server image - update 26.12.2013
Post by: slovenia on January 01, 2014, 06:25:59 am
In this thread people try to build a Debian image on their own on the hard way. Meanwhile a cubie team related persons does the same/similar (inside) job...
I am a newbie and don't know the cubie 'development' team. But a little more information what is ongoing would help us to focus the rare (kernel/HW hacker) resources.

Peter

So far they were a bit slow with support for CT and they were more dedicated to current Ubuntu distros which is no go for serious deployment.  I noticed that they released some new stuff few days ago but didn't find time to check.

There is also a great opportunity to learn / practice and having fun if you are going to build your own image  8)
Title: Re: Wheezy server image - update 26.12.2013
Post by: ba on January 01, 2014, 04:13:07 pm
Please continue work on your image - today i'm trying the nand image.

First try did not work - the ethernet adress is coded as static. So you need a serial access to change it. Moving the filesystem failed

Title: Re: Wheezy server image - update 26.12.2013
Post by: peter_a on January 01, 2014, 05:42:40 pm
I`ve install the latest version of Cubieez debian and it`s working quite well so far .
I made a rootfs partition and same size as the nand , so I can copy the rootfs back forth , but not tried copying the rootfs from the sata drive back to nand yet.

The problem I had to start with was finding password ( cubieboard ) to get in so I could edit out the network interfaces so I could get in via ssh.
 I`ve installed tvheadend ( signal tuner ) , mpd / mpc , deluge and flexget and had no problem with any install , which is not what you can say with Ubuntu.

The only problem I`ve got right now is the "load average always above 1.00" . http://www.cubieforums.com/index.php/topic,1084.0.html

I tried the usb_det_vbus_gpio = "axp_ctrl" mod , and mpd just from 5% to 55% , which I think it was using the extra 50% cpu writing 1000s of error messages to the error log.
dvb-t tuner error , so I broke the usb ports with it !!!!

Title: Re: Wheezy server image - update 26.12.2013
Post by: ba on January 01, 2014, 06:40:38 pm
Hello Peter, I didn't manage to move the rootfs from nandb to my ssd device.

A tried the same way as described for lubuntu (which workd with lubuntu)?

I also tried a copying with rsync. But it end in a missing root system.
Title: Re: Wheezy server image - update 26.12.2013
Post by: peter_a on January 01, 2014, 06:54:09 pm
I did mess it up the first time around , but it was my fault .

I used the dd method to copy , but my mistake was the partition was mounted  .
so after it had finished copying I did a reboot ( no sync ) and all looking o.k untill I did a apt-get update , which wouldn`t work .

Tried again , no problems ...
Title: Re: Wheezy server image - update 26.12.2013
Post by: ba on January 01, 2014, 07:05:44 pm
after dd you changed the uEnv.txt to your hdd?
Title: Re: Wheezy server image - update 26.12.2013
Post by: peter_a on January 01, 2014, 07:10:14 pm
Yep , and after it had booted put on a text file , saying nand and sata , just to make sure where the rootfs was.
Title: Re: Wheezy server image - update 26.12.2013
Post by: ba on January 02, 2014, 06:29:14 am
Hello Peter,

i tried a second time with dd. After dd I check the new volume und resized. My nand_root points now to the /dev/sda1. By mount it is not shown als /dev/sda1, but my root is now on the ssd.

Title: Re: Wheezy server image - update 26.12.2013
Post by: peter_a on January 02, 2014, 07:17:55 am
I made a small rooft partition on the sata drive and mounted and rest of the drive.
That way the nand and sata was the same size , so I could keep moving the image.

I think the problem is ? , if it start to write to something while making the image , so leaving the image in a mixed up state.
Title: Re: Wheezy server image - update 26.12.2013
Post by: patwood on January 02, 2014, 03:21:08 pm
I made a small rooft partition on the sata drive and mounted and rest of the drive.
That way the nand and sata was the same size , so I could keep moving the image.

I think the problem is ? , if it start to write to something while making the image , so leaving the image in a mixed up state.

One disadvantage of using dd instead of cp or rsync to copy a file system is that updates to the source file system can cause the dd to corrupt parts of the copy. The only thing that can go wrong with an rsync copy is a file or two might be out of sync, but at least the file system metadata won't be corrupted.
Title: Re: Wheezy server image - update 26.12.2013
Post by: agarbato on January 02, 2014, 06:39:13 pm
Nice work Igor.. thans!!!

Works fine on my new cubie.

Just a couple of questions :

I'm using the very last image with VGA. 
I'd like to install a small desktop environment like LXDE but even if it's installed I can't start it at all with lightdm,gdm3 or whatever.  Do I need do add something to your image in order to have a X env?

Last.. 
The only thing is not working for me is OTG hub.
It looks it's completely ignored. Plug/Unplug devices from an external hub doesn't have any effect, no log messages at all.   Do you know how we can fix also this?

Thanks
A.







Title: Re: Wheezy server image - update 26.12.2013
Post by: slovenia on January 03, 2014, 02:56:59 am
I'm using the very last image with VGA. 
I'd like to install a small desktop environment like LXDE but even if it's installed I can't start it at all with lightdm,gdm3 or whatever.  Do I need do add something to your image in order to have a X env?

Sure you can install desktop environment but at least you should edit /boot/uEnv.txt and remove this:

Code: [Select]
sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0
I was not testing desktop so there might be some other things to do.

Last.. 
The only thing is not working for me is OTG hub.
It looks it's completely ignored. Plug/Unplug devices from an external hub doesn't have any effect, no log messages at all.   Do you know how we can fix also this?

Trouble can be with not sufficient power supply. I have one small 4 port hub and it is working. Not on the build which you are using but I will test on today's build to make sure.
Title: Re: Wheezy server image - update 26.12.2013
Post by: agarbato on January 03, 2014, 06:22:56 am
Thanks, I replaced script.bin with the one I'm using on Lubuntu and LXDE works fine.

Still can't get my monitor native resolution 1920x1200 (16/10) but this is not related to your image and I've no idea how to fix this. Apparently there's no way to have this resolution, is not listed on Fex guide. No idea why with HDMI I can get it, maybe resolution it's scaled somehow.

About OTG my external hub has its own power and works fine with Lubuntu image.
I tried also to connect a single usb stick to the OTG but no luck so I guess the problem is not the HUB but the OTG port. Maybe we're missing some modules/drivers?

PS : I'm using 1st Jan image VGA.

Thanks
A.
Title: Re: Wheezy server image - update 26.12.2013
Post by: agarbato on January 03, 2014, 06:51:35 am
How to enable jumbo frames?

I tried with mtu 9000 but.

Jan  3 11:36:40 cubie kernel: [  412.623203] eth0: invalid MTU, max MTU is: 3838

I saw there's another debian image here where jumbo works so I think this is possible.

Some parameters need to be added but I'm not sure which one.

http://linux-sunxi.org/A20/GMAC

Should be GMAC_CTL_JE ?








Title: Re: Wheezy server image - update 26.12.2013
Post by: rose28357 on January 03, 2014, 07:53:13 am
Use fbset to change or request screen settings. Maybe it does work for cubie at least to show the settings.
Title: Re: Wheezy server image - update 3.1.2014
Post by: Kit on January 05, 2014, 11:40:45 am
Im flashing CTDebian_1.3_hdmi . But HDMI dont work :(
Title: Re: Wheezy server image - update 3.1.2014
Post by: pollux on January 05, 2014, 12:56:47 pm
Same here, HDMI is not working. Maybe the VGA and HDMI links are mixed up, but I had no time to check this. BUT: putty is working, so remote access is no problem.
Regards,
pollux
Title: Re: Wheezy server image - update 3.1.2014
Post by: slovenia on January 05, 2014, 01:01:45 pm
My mistake. Uploading corrected version ... they will be available in few minutes.
Title: Re: Wheezy server image - update 3.1.2014
Post by: arrhenius on January 06, 2014, 04:39:20 pm
Hi i just tried the script, i built everything and happened the same, tv is black, but the system works ok, im conected via ssh.


Thanks a lot for your script, is awesome, im going to try some minor changes in the kernel, load some modules and things like that..




Im having issues with the locale (im from spain)


i have a lot of outputs like this :


-----------------------------------------------------------------------------------------
Setting up wpasupplicant (1.0-3+b1) ...
Setting up uboot-envtools (20081215-3+2012.04.01-2) ...
Setting up dmsetup (2:1.02.74-8) ...
Setting up libdevmapper1.02.1:armhf (2:1.02.74-8) ...
Setting up libparted0debian1:armhf (2.3-12) ...
Setting up parted (2.3-12) ...
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 158 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "es",
        LC_ALL = (unset),
        LANG = "es_ES.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Preconfiguring packages ...

-------------------------------------------------------------

i think it happens when the script is building the debian distro, im not sure if i have to change something in the script, or maybe i have to configure something in my linux kubuntu 13.10 , here i can type the spanish letter Ñ whitout problem..


anyway.

THANKS FOR YOUR WORK, IS GREAT  :D :D
Title: Re: Wheezy server image - update 3.1.2014
Post by: slovenia on January 06, 2014, 04:56:22 pm
Hi i just tried the script, i built everything and happened the same, tv is black, but the system works ok, im conected via ssh.


Thanks a lot for your script, is awesome, im going to try some minor changes in the kernel, load some modules and things like that..

The configuration at the beginning is maybe confusing (i will be corrected asap). You should choose either VGA or leave HDMI as default output. It should work properly. If you are able to ssh on it you can edit script.fex (fex2bin and bin2fex tools are included in last build) and change output.



Quote
Im having issues with the locale (im from spain)

i have a lot of outputs like this :

/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory

It's not a problem because locale is not there ... yet. But there were troubles with locale other way which are hopefully fixed. Are there any errors if you install something?

Quote
THANKS FOR YOUR WORK, IS GREAT  :D :D

 8)
Title: Re: Wheezy server image - update 3.1.2014
Post by: arrhenius on January 06, 2014, 06:40:01 pm


The configuration at the beginning is maybe confusing (i will be corrected asap). You should choose either VGA or leave HDMI as default output. It should work properly. If you are able to ssh on it you can edit script.fex (fex2bin and bin2fex tools are included in last build) and change output.


Hi, i have started from scratch, i downloaded your git and executed the build. i still see my tv black, the script is set to 3 (HDMI)

maybe i did something wrong, i dont know, but, im going to try to change the hdmi config now, but i have no clue what script.fex is about ?

i guess i have to do something like this:

cd /boot
bin2fex script.bin >file.txt
vi file.txt
---- change something to activate hdmi?=??
fextobin >script.bin
reboot


is that rigth?  what should i change?

anywhay i intend to use it as a server so the hdmi output is not neccesary but i would prefer to have the choice.. just in case

Thanks in advance.  :D


ok i get it,

[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 4
screen0_output_mode = 4

My sd is set to use vga, but i got your build.sh set to 3.. extrange



Title: Re: Wheezy server image - update 3.1.2014
Post by: slovenia on January 07, 2014, 02:34:55 am
Nice to hear that you solved the problem - during my hibernation :)

Obviously the script (or theoretically possible "sed") on your system have issues with search & replace. It should work, but it does not :) Will be checked and fix after I got to the office.
Title: Re: Wheezy server image - update 3.1.2014
Post by: arrhenius on January 07, 2014, 02:59:25 am
Nice to hear that you solved the problem - during my hibernation :)

Obviously the script (or theoretically possible "sed") on your system have issues with search & replace. It should work, but it does not :) Will be checked and fix after I got to the office.

ill check the sed command alone in my system and ill tell you (when i come back from work)

the problem should be in line 85

sed -e 's/output_type = [0-9]*/output_type = '$DISPLAY'/g' $DEST/cubie_configs/sysconfig/linux/cubietruck.fex > $DEST/cubie_configs/sysconfig/linux/cubietruck-vga.fex

this command should replace the display for the 2 fex files, rigth?

Im learning a lot with your script and with the cubieboards :D


changing the topic.. do you think it would be very hard to build a kernel for this toy?
http://dx.com/es/p/cozyswan-q7-quad-core-android-4-2-2-google-tv-player-w-2gb-ram-8gb-rom-hdmi-wi-fi-black-272538

its rk3188 Quad Core based, and incredibly cheap.. but im not sure i could get work on linux

Title: Re: Wheezy server image - update 3.1.2014
Post by: slovenia on January 07, 2014, 03:54:05 am
the problem should be in line 85

sed -e 's/output_type = [0-9]*/output_type = '$DISPLAY'/g' $DEST/cubie_configs/sysconfig/linux/cubietruck.fex > $DEST/cubie_configs/sysconfig/linux/cubietruck-vga.fex

this command should replace the display for the 2 fex files, rigth?

yes. It's fixed now.

Quote
Im learning a lot with your script and with the cubieboards :D

Good. That should be the purpose of the forum community. I also learn while doing this.

Quote
changing the topic.. do you think it would be very hard to build a kernel for this toy?
http://dx.com/es/p/cozyswan-q7-quad-core-android-4-2-2-google-tv-player-w-2gb-ram-8gb-rom-hdmi-wi-fi-black-272538
its rk3188 Quad Core based, and incredibly cheap.. but im not sure i could get work on linux

I have zero experience with this chipset. In theory it should work - all those sticks and similar devices uses linux / Android by default ... but better check on XDA forum (http://forum.xda-developers.com/) if there are people playing / supporting it. Usually problems are when you want custum linux with proper video decoding, working sound, wireless, external devices, etc ...

I am sticking to Raspbery PI as a media player/xbmc center. It's fast enough (overclocked) for the job - up to 1080p mkvs and working w/o problems.
Title: Re: Wheezy server image - update 3.1.2014
Post by: arrhenius on January 07, 2014, 05:45:48 am

yes. It's fixed now.

Quote
thanks :D


I have zero experience with this chipset. In theory it should work - all those sticks and similar devices uses linux / Android by default ... but better check on XDA forum (http://forum.xda-developers.com/) if there are people playing / supporting it. Usually problems are when you want custum linux with proper video decoding, working sound, wireless, external devices, etc ...

I am sticking to Raspbery PI as a media player/xbmc center. It's fast enough (overclocked) for the job - up to 1080p mkvs and working w/o problems.

i buyed a raspi a log time ago and 1080p didnt play smooth :(, maybe i should have overclocked.. or maybe the software for the has improved..


how can be that the cubietruck plays videos worst having a hardware so much better?  are the mali drivers going to get better ?    i wish hardware vendors provide source code for the drivers.. the world would be a better place.. :D

¿do you think an android device based on A31 instead of Rk3188 should be easier to handle?  i mean, your script should work only changing the source kernel repository from linux sunxi to the a31 branch, and, of course i would have to find the proper kernel modules to ethernet , wifi etc to make them work, but linux should start easily, i am wrong?

Maybe its more dificult than i can imagine rigth now.. i am too noob
 

Are you thinking on mayor changes for a 1.4 version of your distro? i think it is perfect, i dont know how can be improved, really.

Title: Re: Wheezy server image - update 3.1.2014
Post by: slovenia on January 07, 2014, 06:30:01 am
Quote
i buyed a raspi a log time ago and 1080p didnt play smooth :(, maybe i should have overclocked.. or maybe the software for the has improved..

I am using openelec.tv for RPi, latest version. The only limitation without overclocking is watching 1080p iptv and a bit slower handling.

Quote
how can be that the cubietruck plays videos worst having a hardware so much better?  are the mali drivers going to get better ?    i wish hardware vendors provide source code for the drivers.. the world would be a better place.. :D

Software side - drivers, firmware. Oh. Yes  :P

Quote
¿do you think an android device based on A31 instead of Rk3188 should be easier to handle?  i mean, your script should work only changing the source kernel repository from linux sunxi to the a31 branch, and, of course i would have to find the proper kernel modules to ethernet , wifi etc to make them work, but linux should start easily, i am wrong?

The script can be adopted for other hardware. A31 and A20 have more in common than RK3188. And A31 is also so so supported even they released SDK. I am using one A31 based tablet and had waited months to get a stable ROM for it. I did not wanted to do it on my own in that case.

Quote
Maybe its more dificult than i can imagine rigth now.. i am too noob


Yes, it could be frustrating. To learn more about system - branded Intel / AMD PCs or even Raspberry PI is a better start. To avoid potential dead ends.

Quote
Are you thinking on mayor changes for a 1.4 version of your distro? i think it is perfect, i dont know how can be improved, really.

- Wireless is not working with encryption in Access Point mode. I would like to use CT as aditional AP in my wireless network and probably not the only one with that wish.
- Bluetooth. Fine if but not urgent to work.
- fixed a bug that was not discovered yet ;D

Basically updated / new kernel. Not much.
Title: Re: Wheezy server image - update 3.1.2014
Post by: patwood on January 07, 2014, 11:08:22 am
how can be that the cubietruck plays videos worst having a hardware so much better?  are the mali drivers going to get better ?    i wish hardware vendors provide source code for the drivers.. the world would be a better place.. :D

Mali won't fix it.  The HW video decoder is called "cedar" and it works on the A10/A20, but up until recently, it  was only available in vlc and xmbc on the linux side, and only in full screen.  There's a reverse engineering project to create an open cedar library, and an mplayer that uses it.  Last time I checked, the number of video formats supported was limited.  For now, there's nothing that'll handle high-res youtube videos on X, but that'll change over the next few months -- cedar didn't work properly on A20 until around August.
Title: Re: Wheezy server image - update 3.1.2014
Post by: pollux on January 07, 2014, 11:27:08 am
Well well, you are doing a fine work and I am glad I found this thread and your image, Slovenia.
Because of that, I am giving the ct another try, I was almost ready to give up.

The Lubuntu standard images, especially V 1.00 and partly V1.01 are frustratingly buggy and are badly maintained or documented imho, changing MACs, wildly blinking, sun-bright LEDs, bcmdhd as modprobe, hardware acceleration, mali drivers, everything is so time consuming compared to a more common product like Rpi.

I would like to know what you want to do with your ct, once you are done with the server image.


Title: Re: Wheezy server image - update 3.1.2014
Post by: arrhenius on January 07, 2014, 11:57:41 am

Mali won't fix it.  The HW video decoder is called "cedar" and it works on the A10/A20, but up until recently, it  was only available in vlc and xmbc on the linux side, and only in full screen.  There's a reverse engineering project to create an open cedar library, and an mplayer that uses it.  Last time I checked, the number of video formats supported was limited.  For now, there's nothing that'll handle high-res youtube videos on X, but that'll change over the next few months -- cedar didn't work properly on A20 until around August.

Thanks for the info, its good to know you expect improvements in the next months :D

where is located the project? i would like to learn more and be up to date about their achievements
Title: Re: Wheezy server image - update 3.1.2014
Post by: slovenia on January 07, 2014, 01:48:30 pm
I would like to know what you want to do with your ct, once you are done with the server image.

Well. I am already running a test system with Postfix(SMTP) and Dovecot(IMAP) service. I am collecting email from various accounts. Mail is being sorted to folders, checked for spam (Spamassasin) and viruses (ClamAV). For my familly / small business usage. Currently two testing imap users. Imap is running at least as fast or faster (by feeling - not measured) as Gmail with less limitations. Second service is TVheadend (IPTV) with custum XMLTV grabber for watching and recording TV broadcast. Than Transmission(torrent) and Samba file sharing. I am using 3T Sata drive just for data and it's mainly offline. There is also web service (Apache2) for blog and some applications with MySQL/PHP5.

I am planning to add CUPS (printer server) and USB port sharing to connect a HD Webcam to Windows machine trough Cubie USB ... and WiFi Access Point when it will work. I am also thinking to replace it with a router. In that case I'll need to find one fiber to USB (or at least ethernet to USB) and a one gigabit switch since I don't have gigabit router/switch yet.

The last thing. I want to put it into a (nice) wallmount box :)

From my distro there was no errors installing all this. My first touch with CT was also Lubuntu image. The only one for CT at that time and it was also pretty bad experience. I was trying to install various services just to see how fast the hardware is. But there were/are bugs everywhere :) 
Title: Re: Wheezy server image - update 3.1.2014
Post by: patwood on January 07, 2014, 04:50:34 pm

Mali won't fix it.  The HW video decoder is called "cedar" and it works on the A10/A20, but up until recently, it  was only available in vlc and xmbc on the linux side, and only in full screen.  There's a reverse engineering project to create an open cedar library, and an mplayer that uses it.  Last time I checked, the number of video formats supported was limited.  For now, there's nothing that'll handle high-res youtube videos on X, but that'll change over the next few months -- cedar didn't work properly on A20 until around August.

Thanks for the info, its good to know you expect improvements in the next months :D

where is located the project? i would like to learn more and be up to date about their achievements

http://linux-sunxi.org/CedarX
http://linux-sunxi.org/CedarX/JPEG-MJPEG_Decoding
http://linux-sunxi.org/CedarX/Reverse_Engineering
http://linux-sunxi.org/CedarX/RE_Toolkit
https://github.com/jemk/cedrus
Title: Re: Wheezy server image - update 3.1.2014
Post by: arrhenius on January 08, 2014, 03:49:17 am
Slovenia, tested your latest script from github and works perfect  :D

thanks.
Title: Re: Wheezy server image - update 3.1.2014
Post by: fairlane on January 11, 2014, 03:18:25 pm
Hello,

I use your image and this is work fine.
I would move the rootfs to my SATA drive, but this image has one fs (boot + root in one )
Do you have an advice how to make that?

thank you,
fairlane
Title: Re: Wheezy server image - update 3.1.2014
Post by: slovenia on January 12, 2014, 02:52:49 am
Hello,

I use your image and this is work fine.
I would move the rootfs to my SATA drive, but this image has one fs (boot + root in one )
Do you have an advice how to make that?

thank you,
fairlane

Anyway you can not boot directly from SATA ... so copy rootfs to SATA drive and change(for example first sata partition) root=/dev/sda1 in /boot/uEnv.txt on your SDcard

How to copy:

Create install-exclude with this content:
/dev/*
/proc/*
/sys/*
/media/*
/mnt/*
/run/*
/tmp/*

rsync -aH --exclude-from=install-exclude  /  /mnt

where /mnt is already mounted SATA drives partion.

reboot

Title: Re: Wheezy server image - update 12.1.2014
Post by: Jono on January 12, 2014, 01:20:23 pm
v1.4 eth0 network is not work
even if manually set ip address, it is not in the network
Title: Re: Wheezy server image - update 12.1.2014
Post by: slovenia on January 12, 2014, 01:34:03 pm
I test each build - it should work. The only thing which is changed from previous releases and can be related is removing/commenting sunxi_gmac in /etc/modules .... because Ethernet driver is build in kernel now.

Try enabling it (remove #, save & reboot) or let's debug a little - What you get if you try this:

Code: [Select]
dmesg | grep gmac
Code: [Select]
ifconfig
Code: [Select]
cat /etc/network/interfaces
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 13, 2014, 11:40:44 am
Hi slovenia,

thanks a lot for your build. Using CT VGA v1.4, that works fine for me.
Testing your NAND install script, really smooth and cool. Thanks.

No problems here, to get eth0 working so far.

Code: [Select]
# dmesg | grep gmac
[    1.917432] [gmac]: sun6i_gmac platform driver registration completed
[   13.872947] sunxi_gmac: probed
[   13.886049] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active
[   13.901863] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01)
[   15.912031] PHY: sunxi_gmac-0:00 - Link is Up - 1000/Full

Code: [Select]
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr ae:50:30:27:5a:cf 
          inet addr:172.16.10.201  Bcast:172.16.10.255  Mask:255.255.255.0
          inet6 addr: 2001:470:1453:0:ac50:30ff:fe27:5acf/64 Scope:Global
          inet6 addr: fe80::ac50:30ff:fe27:5acf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:3838  Metric:1
          RX packets:2273839 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6931039 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:150098081 (143.1 MiB)  TX bytes:1849894882 (1.7 GiB)
          Interrupt:117 Base address:0xc000

Code: [Select]
# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
        hwaddress ether AE:50:30:27:5A:CF # change this
        pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
#auto wlan0
#allow-hotplug wlan0
#iface wlan0 inet dhcp
#    wpa-ssid SSID
#    wpa-psk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# to generate proper encrypted key: wpa_passphrase yourSSID yourpassword


But I notice, a lacking/poor network performance, tested with "iperf".

Code: [Select]
# iperf -c 172.16.10.104 -t 60
------------------------------------------------------------
Client connecting to 172.16.10.104, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  3] local 172.16.10.201 port 47314 connected with 172.16.10.104 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-60.0 sec  3.11 GBytes   446 Mbits/sec

# uname -a
Linux cubietruck 3.4.75-sun7i+ #1 SMP PREEMPT Sun Jan 12 14:14:31 CET 2014 armv7l GNU/Linux

Double-check with a other ARM based machine:
Code: [Select]
> iperf -c 172.16.10.104 -t 30     
------------------------------------------------------------
Client connecting to 172.16.10.104, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local 172.16.10.12 port 46826 connected with 172.16.10.104 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-30.0 sec  3.23 GBytes    925 Mbits/sec

> uname -a
Linux DS112 2.6.32.12 #3810 Mon Dec 2 17:14:23 CST 2013 armv5tel GNU/Linux synology_88f6282_112+


So, I fiddle around, whats going on.
"htop" show me, while "iperf" is running, only one cpu is working now.

Code: [Select]
cpu1  :  0.0% sys:100.0% low:  0.0%                              Tasks: 32, 11 thr; 2 running
cpu2  :  1.3% sys:  2.0% low:  0.0%                                Load average: 0.60 0.19 0.16
cpu  Avg:  0.7% sys: 51.5% low:  0.0%                            Hostname: cubietruck
  1  [||||||||||||||||100.0%]   2  [||                3.3%]     

Hmmm ...  :-[

Could you please have a look on it or check yourself?

Thanks in anticipation.

cu
maxx
Title: Re: Wheezy server image - update 12.1.2014
Post by: Jono on January 13, 2014, 01:18:37 pm
I test each build - it should work. The only thing which is changed from previous releases and can be related is removing/commenting sunxi_gmac in /etc/modules .... because Ethernet driver is build in kernel now.

Try enabling it (remove #, save & reboot) or let's debug a little - What you get if you try this:

Code: [Select]
dmesg | grep gmac
Code: [Select]
ifconfig
Code: [Select]
cat /etc/network/interfaces
I put your previous assembly and the network is not raised machine.
Configuration options were and to give dynamic ip or static ip (Cube was not in the network)
I do not have usb keyboard, all settings spend only through ssh.
Problem was solved by booting from sd card (cubuntu):
-connected partition roofts on Nand
Code: [Select]
mount /dev/nandb /mnt/rootfs
 chroot /mnt/rootfs
-edited interfaces
Code: [Select]
nano /etc/network/interfaces
Code: [Select]
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
hwaddress ether 8E:E7:E9:C1:83:93
-restarted the network interfaces by command
Code: [Select]
/etc/init.d/networking restart-umont rootfs
-reboot to flash
Cube is now visible on the net!
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: arrhenius on January 13, 2014, 01:42:45 pm

Could you please have a look on it or check yourself?

Thanks in anticipation.

cu
maxx


hi:

i tested myself , i get same results (474 Mbits), but i though it was not a bad result for a cubieboard. i tried then with 4 threads (-P 4 option ) and got 573 Mbits. the second cpu seems to work more, but i cant get both 100% working.

What arm machine do you use to get 900Mbit?


root@cubie:~# iperf -c 192.168.1.202
------------------------------------------------------------
Client connecting to 192.168.1.202, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.1.208 port 49794 connected with 192.168.1.202 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   566 MBytes   474 Mbits/sec
root@cubie:~# iperf -c 192.168.1.202 -P 4
------------------------------------------------------------
Client connecting to 192.168.1.202, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  5] local 192.168.1.208 port 49798 connected with 192.168.1.202 port 5001
[  4] local 192.168.1.208 port 49795 connected with 192.168.1.202 port 5001
[  6] local 192.168.1.208 port 49799 connected with 192.168.1.202 port 5001
[  3] local 192.168.1.208 port 49796 connected with 192.168.1.202 port 5001
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec   155 MBytes   129 Mbits/sec
[  6]  0.0-10.0 sec   176 MBytes   147 Mbits/sec
[  3]  0.0-10.0 sec   180 MBytes   151 Mbits/sec
[  5]  0.0-10.0 sec   175 MBytes   146 Mbits/sec
[SUM]  0.0-10.0 sec   685 MBytes   573 Mbits/sec
root@cubie:~#
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: ellnic on January 13, 2014, 02:42:49 pm
Nice work Slovenia. :D This might be just what I am after. Looks your build has decent speeds on the Ethernet. I also especially like the fact that you have provided the option for SD or NAND.. excellent :) I can't wait to test this out fully. Thx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 13, 2014, 02:51:21 pm
Hi arrhenius,

thanks for checking and response.

What arm machine do you use to get 900Mbit?

...
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-30.0 sec  3.23 GBytes    925 Mbits/sec

> uname -a
Linux DS112 2.6.32.12 #3810 Mon Dec 2 17:14:23 CST 2013 armv5tel GNU/Linux synology_88f6282_112+

It's as  Synology DS112+ NAS  (http://www.synology.com/products/spec/DS112+ (http://www.synology.com/products/spec/DS112+)) with Marvell Kirkwood (ARM5) 2.0 GHz / 512 MB DDR3, 1 year old.  MTU 1500, no jumbo packets enabled.
Network with HP ProCurve 1800-24G GigaBit Switch. Remote station is a iMac / OS X 10.7.5 .

Thanks for the hint, never use option (-P 4) before. In my use case, we mostly have only one thread.
And yes, it get better now. Same here, with -P 4, maximum has been reached.


[
Code: [Select]
cpu 1  :  0.0% sys:100.0% low:  0.0%                              Tasks: 29, 14 thr; 4 running
cpu 2  :  1.3% sys: 55.8% low:  0.0%                              Load average: 0.66 0.16 0.11
cpu  Avg:  0.7% sys: 77.9% low:  0.0%                             Hostname: cubietruck
  1  [||||||||||||||||100.0%]   2  [||||||||||||||   57.1%]     

Code: [Select]
~$ iperf -c 172.16.10.104 -P 4 -t 60
------------------------------------------------------------
Client connecting to 172.16.10.104, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  4] local 172.16.10.201 port 47327 connected with 172.16.10.104 port 5001
[  3] local 172.16.10.201 port 47326 connected with 172.16.10.104 port 5001
[  6] local 172.16.10.201 port 47329 connected with 172.16.10.104 port 5001
[  5] local 172.16.10.201 port 47328 connected with 172.16.10.104 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-60.0 sec  1.09 GBytes   156 Mbits/sec
[  4]  0.0-60.0 sec  1.14 GBytes   164 Mbits/sec
[  6]  0.0-60.0 sec  1.21 GBytes   174 Mbits/sec
[  5]  0.0-60.0 sec  1.06 GBytes   152 Mbits/sec
[SUM]  0.0-60.0 sec  4.51 GBytes   645 Mbits/sec

~$ uname -a
Linux cubietruck 3.4.75-sun7i+ #1 SMP PREEMPT Sun Jan 12 14:14:31 CET 2014 armv7l GNU/Linux

Maybe somewhere is a possibility for network performance improvement.
Network sunxi_gmac modul, Kernel, ... ? I hope so.

=====
# dmesg | grep gmac
[    1.917432] [gmac]: sun6i_gmac platform driver registration completed
[   13.872947] sunxi_gmac: probed
[   13.886049] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active
[   13.901863] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01)
[   15.912031] PHY: sunxi_gmac-0:00 - Link is Up - 1000/Full
=====


cu
maxx

Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: arrhenius on January 13, 2014, 03:04:36 pm
Hi arrhenius,

thanks for checking and response.

What arm machine do you use to get 900Mbit?

...
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-30.0 sec  3.23 GBytes    925 Mbits/sec

> uname -a
Linux DS112 2.6.32.12 #3810 Mon Dec 2 17:14:23 CST 2013 armv5tel GNU/Linux synology_88f6282_112+

It's as  Synology DS112+ NAS  (http://www.synology.com/products/spec/DS112+ (http://www.synology.com/products/spec/DS112+)) with Marvell Kirkwood (ARM5) 2.0 GHz / 512 MB DDR3, 1 year old.  MTU 1500, no jumbo packets enabled.
Network with HP ProCurve 1800-24G GigaBit Switch. Remote station is a iMac / OS X 10.7.5 .

Thanks for the hint, never use option (-P 4) before. In my use case, we mostly have only one thread.
And yes, it get better now. Same here, with -P 4, maximum has been reached.


[
Code: [Select]
cpu 1  :  0.0% sys:100.0% low:  0.0%                              Tasks: 29, 14 thr; 4 running
cpu 2  :  1.3% sys: 55.8% low:  0.0%                              Load average: 0.66 0.16 0.11
cpu  Avg:  0.7% sys: 77.9% low:  0.0%                             Hostname: cubietruck
  1  [||||||||||||||||100.0%]   2  [||||||||||||||   57.1%]     

Code: [Select]
~$ iperf -c 172.16.10.104 -P 4 -t 60
------------------------------------------------------------
Client connecting to 172.16.10.104, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  4] local 172.16.10.201 port 47327 connected with 172.16.10.104 port 5001
[  3] local 172.16.10.201 port 47326 connected with 172.16.10.104 port 5001
[  6] local 172.16.10.201 port 47329 connected with 172.16.10.104 port 5001
[  5] local 172.16.10.201 port 47328 connected with 172.16.10.104 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-60.0 sec  1.09 GBytes   156 Mbits/sec
[  4]  0.0-60.0 sec  1.14 GBytes   164 Mbits/sec
[  6]  0.0-60.0 sec  1.21 GBytes   174 Mbits/sec
[  5]  0.0-60.0 sec  1.06 GBytes   152 Mbits/sec
[SUM]  0.0-60.0 sec  4.51 GBytes   645 Mbits/sec

~$ uname -a
Linux cubietruck 3.4.75-sun7i+ #1 SMP PREEMPT Sun Jan 12 14:14:31 CET 2014 armv7l GNU/Linux

Maybe somewhere is a possibility for network performance improvement.
Network sunxi_gmac modul, Kernel, ... ? I hope so.

=====
# dmesg | grep gmac
[    1.917432] [gmac]: sun6i_gmac platform driver registration completed
[   13.872947] sunxi_gmac: probed
[   13.886049] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active
[   13.901863] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01)
[   15.912031] PHY: sunxi_gmac-0:00 - Link is Up - 1000/Full
=====


cu
maxx

it looks like there are margin for improvement , but no idea how, i hope Patwood and Slovenia can figure it out :D


PD: Slovenia, in the forums you stated this is version 1.4 but in github it says VERSION="CTDebian 1.3" i think you forgot updating build.sh.


thanks everyone for sharing your work.


 
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 13, 2014, 03:38:29 pm
Thanks for the feedback. In this release I switched to Patwood's kernel and haven't changed much in config. Just a CPU governor. I also saw some other measurements (http://www.cubieforums.com/index.php/topic,977.msg6109.html#msg6109) and people are getting the same speed with different/older kernel.

Quote
Maybe somewhere is a possibility for network performance improvement.
Network sunxi_gmac modul, Kernel, ... ? I hope so.

Probably. I hope the same. Currently I have no idea if this is the HW limit but I will pay attention to this matter. There is also one very lame problem - I don't have a gigabit LAN and I think Patwood doesn't have a CT :)

Quote
Slovenia, in the forums you stated this is version 1.4 but in github it says VERSION="CTDebian 1.3" i think you forgot updating build.sh.

Changed  :P

Title: Re: Wheezy server image - update 12.1.2014
Post by: slovenia on January 13, 2014, 03:49:06 pm
Code: [Select]
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
hwaddress ether 8E:E7:E9:C1:83:93

MTU settings caused troubles? Strange ... I will comment it out in the future.

Thanks.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 13, 2014, 05:01:00 pm
Hi slovenia,

Probably. I hope the same. Currently I have no idea if this is the HW limit but I will pay attention to this matter.

thanks for response. Good to hear, you will have a eye on this.

I wonder about the second load at " at 1 IRQ 0 (sunxi_gmac-0:01) " in dmesg, but it's will be not active.
Currently this cause the issue ... but how knows.  :-\

Quote
There is also one very lame problem - I don't have a gigabit LAN and I think Patwood doesn't have a CT :)

Should I send you such a 5-Port Gigabit Ethernet Switch (http://routerboard.com/RB260GS)? 

Cubieboard.org (http://cubieboard.org/buy/) should send a CT to Patwood  for his awesome work!   :)

I like the way you and Patwood keep the ball rolling. It's definitely not your fault. So both keep on your  excellent work!

cu
maxx

Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: patwood on January 13, 2014, 10:15:26 pm
I just received my ct a little over a week ago  ;D , and I have a GB switch.  Gmac improvements are a long ways off, though -- gotta figure out why BT need so much hand holding to start up.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: ellnic on January 14, 2014, 09:34:09 am
Are the HDMI and VGA links still mixed up? Both the HDMI and VGA images output to VGA for me.. Apart from that, it's working lovely as a NAS and soon to be Air Print server.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: buzzy84 on January 14, 2014, 04:59:55 pm
Hello,
just tried the latest HDMI image and the output is on VGA port.
/B
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: arrhenius on January 15, 2014, 01:05:33 am
Hello,
just tried the latest HDMI image and the output is on VGA port.
/B

Hi:

i use the script to build the image myself, so i dont have this problem,  if you cant/want to build yourself, before Slovenia check the downloads, you can change the output from ssh like this:

cd /boot
bin2fex script.bin >file.txt
vi file.txt
-- go to [disp_init] section and change screen0_output_type to 3 (hdmi)
fextobin >script.bin
reboot
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 15, 2014, 03:41:51 am
Latest HDMI images fixed.

I think next release must be a bugfix  >:( since I think this is not the only bug :-[ and some update option since images are good enough to be used for real. I am already playing with my post install script to bring up various services (lamp,postfix,dovecot,samba,printer,...) and so far not a single problem occurred :P regarding base system install.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: arrhenius on January 15, 2014, 05:53:01 am
Latest HDMI images fixed.

I think next release must be a bugfix  >:( since I think this is not the only bug :-[ and some update option since images are good enough to be used for real. I am already playing with my post install script to bring up various services (lamp,postfix,dovecot,samba,printer,...) and so far not a single problem occurred :P regarding base system install.

im working in my own post-install, but is for things kynda personal, things i like to have in all my systems, and its very annoying doing again and again, thinks like :

-install google drive (someone knows any free cloud service for arm?)
-install whatsapp command line client (yowsup)
-install my own user, sudo, .bashrc, ssh known hosts..
-static ip, change hostname
-dyndns ip (afraid.org)
-samba shares
-raspcontrol (a script used to "watchdog" my others raspberrys/cubieboards are alive, and get a whatsapp message if not, i created this because sometimes the power of the house goes off, if so, i get noticed by whatsapp and can go to get the power up and dont lose all my fridge stuff )

i install the script like "wget myserver.com/install.sh && chmod +x install && ./install.sh" and im ready to go :D

i dont know if this stuff could be usefull for someone, the whatsapp thing its very usefull
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 15, 2014, 12:36:25 pm
sorry but I am not able to find a version for sd nor a version for nand?
Or can I user the same image for both memory types?
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 15, 2014, 01:05:41 pm
It's one and only. Create card, boot from it ... do whatever with the system and at any time you move/copy it to NAND. Install script is in /root ... you have to chmod +x before use - I forgot to make it executable in the creation process. Will be fixed in the future releases or become part of some kind of general setup.


Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: starbay on January 15, 2014, 01:10:23 pm
What are MySQL, NAS and samba versions in the image if there are any?
If not, would you reccoment to install on?
Thanx for advance :)
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 15, 2014, 01:24:02 pm
What are MySQL, NAS and samba versions in the image if there are any?
If not, would you reccoment to install on?
Thanx for advance :)

This is just a base system. I can recommend installation based on this manual:

LAMP (http://en.wikipedia.org/wiki/LAMP_(software_bundle)) apache+mysql+php
http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-debian-wheezy (http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-debian-wheezy)

SAMBA (file sharing)
http://www.howtoforge.com/debian-wheezy-standalone-server-with-tdbsam-backend (http://www.howtoforge.com/debian-wheezy-standalone-server-with-tdbsam-backend)

Not personally tested but I believe it should work well.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 16, 2014, 12:08:16 pm
Hi: I downloaded the CTDebian_1.4_vga.zip and unzipped into .raw
Then I wrote the image to SD card using :
$ sudo dd bs=1M ifCTDebbian_1.4_vga.raw of=dev/sdc
it wrote the image on sd - but just an ext4 partition - no boot and no boot loader.

How can that happen? Please help
Thank you
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 16, 2014, 12:26:24 pm
Yes, there is just one ext4 partition and it (should) work. Try creating image from Windows if you encounter troubles in linux / mac / virtual machine.

I don't know if you mistype just here but correct is if=CTDebian_1.4_vga.raw

Imagewriter in windows works.
ftp://ftp.berlios.de/pub/kiwi/ImageWriter.exe
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 16, 2014, 12:32:57 pm
thank you for this. I corrected my typo - sorry
I will do the dd again. I thought a bootable sd card needs these FAT/ext2 and ext4 partitions.
When I boot that sd card, does it destroy my Android in my nand?
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 16, 2014, 12:51:12 pm
Thanks - OK great - it booted very fast and then rebooted.WOW - nothing is destroyed.
I want to keep it on the micro sd card.
The first thing I want to do now  is to create a user and a very light window manager.
Flwm, openbox  or similar.
Do you recommend to install busybox?
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 16, 2014, 01:15:03 pm
Thanks - OK great - it booted very fast and then rebooted.WOW - nothing is destroyed.
I want to keep it on the micro sd card.
The first thing I want to do now  is to create a user and a very light window manager.
Flwm, openbox  or similar.
Do you recommend to install busybox?

I don't create destructive images ;D

I wasn't playing much with graphics interface on CT  but if you run into troubles edit /boot/uEnv.txt and remove code below and restart.

Code: [Select]
sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0
You don't need BusyBox. CT is powerful enough to run normal tools and some common used are already pre-installed.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: arrhenius on January 16, 2014, 01:22:01 pm
Hi: I downloaded the CTDebian_1.4_vga.zip and unzipped into .raw
Then I wrote the image to SD card using :
$ sudo dd bs=1M ifCTDebbian_1.4_vga.raw of=dev/sdc
it wrote the image on sd - but just an ext4 partition - no boot and no boot loader.

How can that happen? Please help
Thank you

i use bs=4M  instead of 1M and works for me, but i have no idea what means..
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 16, 2014, 01:25:13 pm
Hi: please dont get me wrong. I thought after booting it might install into nand automatically. I want to keep my android 4.2.2
It runs lightning fast - great work
I discovered that you have openssh and dropbear installed. Can these two guys live together?
I discovered that Android has dropbear and I had difficulties to connect with openssh on my Linux Mint 14 machine into dropbear on my CT in Android.
Do you plan to do a desktop in the near future?

Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 16, 2014, 01:35:31 pm
hi arrhenius:

i use bs=4M  instead of 1M and works for me, but i have no idea what means..
The 1M worked for me. I also have no idea what it means - but it works.
Did you try to put a tiny gui onto this server?
I know a server system does not need a gui, but since slovenia only has a server I might play around a bit.
It is very interesting and smart how slovenia did that raw image which generates just one partition.

I am with the Tiny Core Linux forum and I would like to port their Core to the CT. Tiny Core is a minimalistic Linux with a very smart concept. It would be great if I could get this Linux (it is more a toolkit) to run on CT.
I hope I can learn a bit from slovenia.
Have a good one
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: arrhenius on January 16, 2014, 02:11:28 pm
hi arrhenius:

i use bs=4M  instead of 1M and works for me, but i have no idea what means..
The 1M worked for me. I also have no idea what it means - but it works.
Did you try to put a tiny gui onto this server?
I know a server system does not need a gui, but since slovenia only has a server I might play around a bit.
It is very interesting and smart how slovenia did that raw image which generates just one partition.

I am with the Tiny Core Linux forum and I would like to port their Core to the CT. Tiny Core is a minimalistic Linux with a very smart concept. It would be great if I could get this Linux (it is more a toolkit) to run on CT.
I hope I can learn a bit from slovenia.
Have a good one

i tried lxde in CT and work well (i used cubieez image), but, like slovenia, i am interested in using CT as server, so now im using Slovenia's image, it fits better my needs. 


For "desktop" needs i reboot on NAND/Android, it works fine too.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 16, 2014, 02:14:38 pm
Hi: please dont get me wrong. I thought after booting it might install into nand automatically. I want to keep my android 4.2.2
It runs lightning fast - great work
I discovered that you have openssh and dropbear installed. Can these two guys live together?
I discovered that Android has dropbear and I had difficulties to connect with openssh on my Linux Mint 14 machine into dropbear on my CT in Android.
Do you plan to do a desktop in the near future?

Thanks. SSH - I removed dropbear from script yesterday but I don't think to build new image for that. Thanks for noticing. It's a small and unimportant change. Dropbear is installed but disabled by default from the moment when openssh is being installed. No problems about that "bug". I know that there must be bugs but they are either small or not important.

Making a good image is a way better than making a perfect one.  ::)

Desktop version ... I'll probably stick to CLI :)
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 16, 2014, 02:25:54 pm
In computers and technology the word "perfect" does not exist. A bug is also not a problem, because bugs can be fixed. You did a great job. Thank you.
I will try to put a small gui on it and may come back with some questions - if this is OK
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 16, 2014, 03:27:07 pm
Hi slovenia. I used the openssh client to copy files over in my Mint14 Linux.The speed was only
350 KB/s
This is strange
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 16, 2014, 03:35:08 pm
Hi slovenia. I used the openssh client to copy files over in my Mint14 Linux.The speed was only
350 KB/s
This is strange

ssh copy encrypt the transfer and that's why it's slow(er). Use FTP, test with different files and consider the limit of your network/other rig.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: patwood on January 16, 2014, 04:01:54 pm
Hi: I downloaded the CTDebian_1.4_vga.zip and unzipped into .raw
Then I wrote the image to SD card using :
$ sudo dd bs=1M ifCTDebbian_1.4_vga.raw of=dev/sdc
it wrote the image on sd - but just an ext4 partition - no boot and no boot loader.

How can that happen? Please help
Thank you

Not all distros have a fat32 boot partition; it's possible to configure u-boot to read the kernel and script.bin files directly from the ext4 rootfs (look in the /boot directory to see if these files are there).

The bs=1M means to read and write data in blocks of 1MB; the default block size for dd is 512 bytes, which is a little small for efficient writing.  For most SD cards, efficiency increases as the block size increase up to around 128K or so depending on the card; 1MB blocks should provide maximum throughput for just about any SD card.  Larger is okay, but probably not any faster.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: beerstein on January 17, 2014, 06:44:41 am
Hi:
Thank you so much for your help.
I was puzzled that slovenias sd card boots from a single ext4 partition. No /boot no /root no /swap visible in gparted.The first sector of the ext4 partition starts at sector 2048. So I assume that the boot-loader is located before that. I thought to boot in Allwinner ARM I need that boot-loader before sector 2048 and after that I need an ext2 boot partition and another ext3/ext4 partition for root? And where is the /swap partition?
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: fatman on January 17, 2014, 11:20:00 am
Hi there,

Your CT image is great and help me to setup a MPD server very easily.
Btw, I would like to clone my SDCARD (manual build) image into nand. I have run your nand-install script without error, and it prompt to reboot it at finally.
After pushing out the SDCARD, the CT seem cannot boot anymore, no LED (only has red power LED), no display. Do you have any idea on it?

Thx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 17, 2014, 12:52:17 pm
Tnx. Huh ... no idea at the moment.

Did you wait a bit longer? Do it again. Install Ubuntu nand image with Phoenix tools ... try if that works.

Script was written quick (i admit it's dirty  :P) and sure I could missed something but it's working for me and there are few positive reports.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 17, 2014, 02:10:03 pm
Hi fatman,

sorry, stupid question: do you run 'nand-install.sh' twice?  :-[

- 1.  do as root 'nand-install.sh'
.     => " WARNING "
.     => 'yes'
.     => " Partitioning "
.     => " Press a key to reboot than run this script again! "
.     => 'hit-a-key'
.     => auto reboot with insert SD Card


- 2.  login as root => 'nand-install.sh'
.     => " WARNING "
.     => 'yes'
.     => " Formatting and optimizing NAND rootfs ... up to 30 sec
.     => " Creating NAND bootfs ... few seconds
.     => download a file
.     => extract
.     => " Creating NAND rootfs ... up to 5 min "
.     => copying date
.     => " All done. Press a key to power off, than remove SD and boot from NAND "
.     => 'hit-a-key' 
.     => auto poweroff (LED off)
.     => remove SD
.     => press power switch a few seconds 
.     => boot from NAND (LED flicker)
.     => login

Sorry, mean no harm.

cu
maxx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: fatman on January 18, 2014, 12:41:27 am
Hi Slovenia and maxx,

Thanks your update.
I have run the script for 2 times.

Thus, after the second one, it reboot without any LED flicker, and I have also waited for at least 10min, but no hope..

Btw, are there any method I can burn my SDCARD image into NAND? I have tried other NAND android image without this problem.

Thx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 18, 2014, 03:42:42 am
Quote
Thanks your update.
I have run the script for 2 times.

Thank you. There is clearly some problem and I will be glad if you try one thing more. I want to get to the bottom of the problem too.

I attached a nand-bootloader. Boot with SD, copy this file to CT, unzip and:

dd if=nand.mbr.img of=/dev/nand bs=1M count=1

It will done in a second. Power off. Remove SD ... try booting from NAND one more time - if you still have copy of my debian there otherwise install it again + this new file.

Quote
Btw, are there any method I can burn my SDCARD image into NAND? I have tried other NAND android image without this problem.

Directly? None. There is a nand-install script with another distro - Cubian but it's not fully supporting Cubietruck yet. One way of using NAND is with Phoenix suite, like you probably already tested. But creating images for this is another project - you can not flash SD image with Phoenix.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: helios on January 18, 2014, 04:28:26 am
Well, i think, i have the same problem, but i don't think that this behavior related to distro, i suspect that there is some NAND issues (may be corrupted NAND). PhoenixSuite can't burn firmware and stucks on 88%.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 18, 2014, 06:08:27 am
Quote
PhoenixSuite can't burn firmware and stucks on 88%.

How long do you wait? The process take several minutes and sometimes stops for a while. That's normal.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: helios on January 18, 2014, 06:11:33 am
After it stuck on this level for a few minutes, PhoenixSuite throws "Burn image failed" error.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 18, 2014, 07:29:15 am
Hi helios,

... PhoenixSuite throws "Burn image failed" error.

Check, if your downloaded image is damaged, before you uncompressed it.
It's highly recommended, to check MD5 hash, after download.
Usually, here is the problem. If MD5 hash fail, download it again and check.

Sometime it's is a problem with the timing.
After the message-box for formating pop up, immediately stop pressing FEL buttom.

Format the NAND, if it will ask.
 
cu
maxx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: helios on January 18, 2014, 08:27:55 am
Thank you, maxx.
I checked md5 hashes, of images i've been downloaded before, and found them corrupted somehow. Redownloaded and flashed, and now everything is fine.
I appreciate your help.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 18, 2014, 09:25:56 am
Hi helios,

nice to hear that.

Have you checked afterward, if 'nand-install.sh' now works for you?

cu
maxx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 18, 2014, 10:26:40 am
There is a small change in the script since we hit the limit of the hosting bandwidth. Never thought that it will be relevant. :o

Script is now downloading necessary files from mirror.


Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 18, 2014, 10:35:49 am
Hi slovenia,
There is a small change in the script since we hit the limit of the hosting bandwidth. Never thought that it will be relevant. :o

Thanks.
Would it not be better, to but it simply  on github and not to a freehoster?

cu
maxx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: helios on January 18, 2014, 10:47:47 am
maxx, nand-install script worked fine after that.
Now everything is ok.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 18, 2014, 10:57:19 am
Hi helios,

thanks for reply. Thinking, it's good news foe slowenia and his effort.
Wait and see, what fatman will answer.

cu
maxx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 18, 2014, 10:57:52 am
Nice to hear that!  :P 8)

maxx: Thanks for hint. I will do that right now. It looks ok.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: maxx on January 18, 2014, 11:11:24 am
Hi slovenia,

.. and have a look, 'wget' is missing:

Code: [Select]
...
# wget https://www.dropbox.com/s/7puy5v0v3pk7y6a/nand1-cubietruck-debian-boot.tgz
http://www.mediafire.com/download/9o1oj881wkcslrl/nand1-cubietruck-debian-boot.tgz
...

cu
maxx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: sbfreddie on January 18, 2014, 02:28:33 pm
Hi All:
Is there any one here that can direct me on how to install a GUI on this base system?
My preference is LXDE.

Thanks,
Freddie
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: franco888999 on January 19, 2014, 04:15:55 am
Hi,

I would like to mount a cifs drive at boot but after I put the mount command in fstab I have notice that it isn't called at boot time.
What I'm wrong? Where I have to put the mount point?

Thank you.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: fatman on January 19, 2014, 05:49:28 am
Hi helios,

thanks for reply. Thinking, it's good news foe slowenia and his effort.
Wait and see, what fatman will answer.

cu
maxx

Hi Solvenia, maxx,
Your image can be solved the NAND boot up issue, really thanks all of your help... This image is very great... I am using as my CAS device and connect to my DAC thru USB... using MPD to control it.... ;D
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: ellnic on January 19, 2014, 06:38:31 am
Further to my previous post I just want to say that this image is now working very well as a low powered headless server for the house. It's plugged into a 4TB Seagate in an Orico Enclosure via a SATA to eSATA cable. I am using a 16GB Toshiba Class 10 MicroSD card for the rootfs and have opted to keep it on the card instead of transferring to NAND. Here is a screenshot:

(http://i39.tinypic.com/2qa78g4.jpg)

You can see that the CPU is not struggling and the memory usage is minimal. I am currently streaming over forked DAAP and copying files to it.

I have it running as:

* Samba server to Laptops
* Media server (via Samba) to RasPi
* DAAP server serving 375GB
* Web server (nothing big, just an internal landing page)
* CUPS server with Airprint
* Sockso server (work in progress - ALAC issues)

I have OpenMediaVault running on it, and will also be experimenting with MiniDLNA. Obviously I have VNC as well.

May I suggest that anyone wanting a desktop environment for this that you give XFCE a go... it seems to be running really well as you can see from the pic. I was considering LXDE but it's too lightweight for me.

If you go for XFCE make sure you do things in this order:

apt-get install xorg
apt-get install lightdm
apt-get install xfce4 xfce4-goodies tango-icon-theme gnome-icon-theme

The only thing left for me is to wait for a GMAC update to remove the gigabit Ethernet bottleneck.

Thanks again to Slovenia for this image. Can't wait to get my 2nd one now :P

EDIT: Found this http://ubuntuforums.org/showthread.php?t=992706 may be of some use if you have a lot running.

EDIT2: Corrected wrong link.

EDIT3: If using the cpulimit daemon, add this to the top:

Code: [Select]
#!/bin/bash
### BEGIN INIT INFO
# Provides:          cpulimitd
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Script to start CPU limit daemon
# Description:
#
### END INIT INFO

Or you risk an rc loop at boot.

Also add:

Code: [Select]
sleep 1
Here:

Code: [Select]
    nohup /usr/bin/cpulimit_daemon.sh >/dev/null 2>&1 &
    sleep 1
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 19, 2014, 08:01:13 am
Nice to hear some good setup stories! It might open us new ideas for using CT. :D

I am also working on a post setup and testing access point mode(working well so far) and struggling to get my scanner buttons working - http://sourceforge.net/projects/scanbd No luck with that :'(

No news about gmac yet.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: fatman on January 19, 2014, 08:26:58 am
Hi Slovenia,

Really appreciate your passion on developing the CT image...
Btw, some people told me that Realtime kernel is better to use in CAS env., Can you give me some advices how to install the RT kernel into your image?

thx
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: ellnic on January 19, 2014, 10:28:20 am
Nice to hear some good setup stories! It might open us new ideas for using CT. :D

I am also working on a post setup and testing access point mode(working well so far) and struggling to get my scanner buttons working - http://sourceforge.net/projects/scanbd No luck with that :'(

That looks really interesting :D I got given a Kodak ESP 1.2 AIO recently, but without PSU - When I get one ordered I can test for you if you like :D Providing there are Kodak drivers for Linux.. this looks like it will do the trick: http://sourceforge.net/projects/cupsdriverkodak/

No news about gmac yet.

It's not too much of an issue at the moment... Streaming works really well, just copying large amounts of files is very slow... I can plug the drive into USB3 and do a direct copy on a local machine for large files for now.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 19, 2014, 10:57:07 am
Quote
That looks really interesting :D I got given a Kodac ESP 1.2 AIO recently, but without PSU - When I get one ordered I can test for you if you like :D Providing there are Kodac drivers for Linux.. this looks like it will do the trick: http://sourceforge.net/projects/cupsdriverkodak/

My scanner is working well (Cannon Lide 60) - i can scan with Sane from CLI but triggering some actions with scanner buttons would be awesome  8) - scan to file / mail / archive, ... I don't know where is the problem at the moment. :-[ If you are going to play with it - any feedback would be helpful. :D

Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: ellnic on January 19, 2014, 11:10:42 am
My scanner is working well (Cannon Lide 60) - i can scan with Sane from CLI but triggering some actions with scanner buttons would be awesome  8) - scan to file / mail / archive, ... I don't know where is the problem at the moment. :-[ If you are going to play with it - any feedback would be helpful. :D

I will get the PSU ordered on eBay and have a play as soon as it comes through.


Btw, I edited the last post to include this link, but here it is again: http://ubuntuforums.org/showthread.php?t=992706

It's a daemon that uses cpulimit... could be very useful for these little ARMs. I think I will try it when I get MiniDLNA up and running... Also NFS which I know can be a little CPU intensive.

EDIT: Wrong link corrected.

EDIT2: HIGHLY recommend the daemon.... nothing canes the hind legs off my CPU now.. before something like a large apt-get could max out the CPU for a bit... not now. It's also keeping MiniDLNA in it's place ;D But see other post with changes to script.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: tombs on January 20, 2014, 04:53:14 pm
Interesting project. I haven't had a look to deep yet, but how customizable is the build from scratch? It would be nice if I could build one image for all my cubies.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: ellnic on January 20, 2014, 06:47:40 pm
I'd term it a 'fully optimised blank canvas' ready to do whatever you want with it :) I've turned mine into an headless eco server. Which is now serving:

Samba (Via OpenMediaVault)
NFS (Via OpenMediaVault)
iTunes Server (forked-daap)
DLNA Server (Universal Media Server/Mediatomb - No longer MiniDLNA, was buggy)
Airprint/General Print Server (CUPS)

Also have:
VNC Server (tightvnc)
Webmin (never know when you might want it)
Xfce desktop (for VNC), which runs very well.

Depends what you want to do with yours...
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: peter_a on January 20, 2014, 07:03:49 pm
I'm just about using my cubietrack in the same way as you,  plus a few additional servers like tvheadend and a torrent server.
I do want to use the interface pin,  but they don't make it easy for you, I need to get hold of a socket with 2.2 mm pitch.
My torrent sever stops working all the time so need resetting every day,  but other than that eveything is working well.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: ellnic on January 22, 2014, 04:34:53 pm
Wise choice. I think the Cubietruck makes a really good home server. It's really living up to expectations and it's a bit of a talking point when people pop round as most of my friends and family know I'm always playing with some sort of new toy/gadget. :D

I hadn't considered using it as a torrent server mainly because my laptop gets turned on in the morning and is on most of the day. Once torrents are completed I just drag them onto the share where my Pi with OpenELEC picks them up.

I'm afraid I wouldn't know where to begin with the GPIO pins, it's not something I have ever played with. I've seen some seriously cool stuff in the way of home automation and mood lighting though... see here: http://raspberry-at-home.com/ maybe I will have a look at some point :D

EDIT: For a bit of fun, I changed the MOTD....

(http://i42.tinypic.com/eu0oeg.png)

Ok, couldn't resist this either :P

(http://i44.tinypic.com/2uhlqx3.jpg)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: peter_a on January 22, 2014, 06:34:23 pm
I think the raspberry as its advantages compared to the cubietruck when using the gpio pin for interfacing , but they both have their roles.
I`ve moved from the sheevaplug which haven`t done bad , as it`s took me about 4 year before anything as come along which as come close to me thinking about replacing it for a new and better model.

 http://www.computingplugs.com/index.php/Main_Page
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: ellnic on January 22, 2014, 07:39:57 pm
I'll bare that in mind when I have a play with the pins. I just found that site and thought it had some really cool ideas. I know of sheevaplugs- I've only heard good things about them although I haven't used one myself. They use Marvell Kirkwood CPUs IIRC-  Nice units, good throughput.

Btw, idk if you have an iOS device, but if you do may I recommend an app called FileExplorer to use with your Cubie. I was really disappointed to find a lack of decent/working DAAP/DLNA clients for iOS (ESPECIALLY since DAAP is an Apple creation) but even though this app doesn't work with DAAP/DLNA, it works with all the typical local file sharing protocols (Smb/Nfs etc) and has a really nice interface - I'm using it to stream music to my iPhone while typing this and the other half uses it on the iPad to access HD video content.

Here is a screenshot of the phone:

(http://i44.tinypic.com/m9ude1.jpg)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: peter_a on January 22, 2014, 08:05:35 pm
oooow  ,Sorry I`m a bit of a apple hater , I don`t like the idea of any company patenting a basic idea like rounded corners or a letter of the alphabet like I ,  They lost a lot of friends when they started on the road of "sue you mate" .
I went down the android route and I use "ES file explorer" on all my devices , which sounds very much the same , I use it to watch my movies etc on the cubie using Samba .

One thing you can say about the sheevaplug it was super stable , I`ve had almost a full years uptime before a big power cut .
The only time it`s been off line was due to other problems , like power cuts , the psu failing power the hard drive .
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: tll on January 22, 2014, 09:43:29 pm
How do you make the banner "cubietruck"?I want to make one too!
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: ZillahGiovanni on January 22, 2014, 09:46:17 pm
Quote
update 22.1.2014
Good news!
Can i update from previous image?  8)
Can U make tarball with differences?  ;)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 23, 2014, 12:28:49 am
Can i update from previous image?  8)
Can U make tarball with differences?  ;)

yes. this was in general plan anyway  :P There is no much new from 1.4, if you don't have time: apt-get install hostapd and find conf & updated bins @github
https://github.com/igorpecovnik/Cubietruck-Debian
bugfixes are mostly  relevant for compile / install part
 ... if you can't wait a day. ;D
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 23, 2014, 12:34:43 am
How do you make the banner "cubietruck"?I want to make one too!

http://www.google.com/search?q=ascii+art+generator

I used the one from first hit.

There is also a utility called sysvbanner.

apt-get install sysvbanner
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: ZillahGiovanni on January 23, 2014, 01:20:17 am
... if you can't wait a day. ;D
perhaps I'll wait  ;)
thx!  8)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: ellnic on January 23, 2014, 04:58:36 am
oooow  ,Sorry I`m a bit of a apple hater , I don`t like the idea of any company patenting a basic idea like rounded corners or a letter of the alphabet like I ,  They lost a lot of friends when they started on the road of "sue you mate" .

I will agree that Apple have questionable morals. They also seem to believe that their ideas are the correct ones - which a lot of the time they aren't for example, they've only just included the control center and still no Bluetooth file transfer. I actually prefer Android as a mobile OS, but the Apps for Android are a long way off being as good. Mainly because they have to cater for devices of all different chipsets and screen sizes and this can sometimes cause lag and or rendering issues - and stretched lists etc that just don't look good. An example of this is the eBay apps. They have improved, but Apple's apps are better, but their OS isn't as good. As a rule of thumb, I use most platforms for various things and never tie myself to any one thing. I use Windoze, Mac, Linux etc.. :)

How do you make the banner "cubietruck"?I want to make one too!

I used this one: http://www.network-science.de/ascii/

And an app for Mac called ASCII Art for the 3 headed dog: http://nuclearnova.com/applications/asciiart/
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: kevin on January 23, 2014, 05:59:55 am
Hi Slovenia,

Really appreciate your passion on developing the CT image...
Btw, some people told me that Realtime kernel is better to use in CAS env., Can you give me some advices how to install the RT kernel into your image?

thx

Look here http://www.cubieforums.com/index.php/topic,797.0.html (http://www.cubieforums.com/index.php/topic,797.0.html)
I'm also interested for CAS using CT.
I tested RT image with above patch-set, it works but I could not differentiate between RT and non-RT image so far. Maybe I don't have golden-ears. ;D
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 23, 2014, 07:37:56 am
... if you can't wait a day. ;D
perhaps I'll wait  ;)
thx!  8)

Upgrade files and info is ready in the first post.

Code: [Select]
etc/hostapd.conf
etc/network/interfaces.hostapd
root/nand1-cubietruck-debian-boot.tgz
root/nand-install.sh
usr/sbin/hostapd_cli
usr/sbin/hostapd
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Master on January 23, 2014, 11:38:43 am
Hi there
I have a little question  :P
Can i Install this Image on Cubieboard2 ?
If no , How can i use USB RE-DIRECTOR on cubieboard2?
 :D
Tnx
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: seraphin on January 23, 2014, 03:07:50 pm
Thank you for this great work !

On my CT (Rev. B), the nand-install script did not work the first time.
Precisely , the partitioning does not work , I have added the tag "-f a20" with nand-part and then it works :)

...(echo y;) | nand-part -f a20 /dev/nand 32768 'bootloader 32768' 'rootfs 0' ...

Many thanks for this image  :)
Seb.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: unix_ch on January 23, 2014, 09:46:53 pm
hi  i install mailutils and postfix by defeat set.,but i test mail which it didnt work.so i see the log ,having the error 500  invalid sender .can  you  tell  how to solve the problem ?thank you !
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 24, 2014, 03:04:03 am
Hi there
I have a little question  :P
Can i Install this Image on Cubieboard2 ?
If no , How can i use USB RE-DIRECTOR on cubieboard2?
 :D
Tnx

USB redirector module has to be compiled for/with specific kernel and it won't work on others. I think the easiest way is to make an image for Cubieboard 2 ... I made necessary changes (uboot / script bin) but don't have an CB2 to make sure everything works.

Wheezy server SD / NAND / Hotspot for Cubieboard 2
http://www.mediafire.com/download/2rtc2j2px7rcver/CB2Debian_1.5_vga.zip
Experimental image - please report what does not work
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 24, 2014, 03:14:28 am
Thank you for this great work !

On my CT (Rev. B), the nand-install script did not work the first time.
Precisely , the partitioning does not work , I have added the tag "-f a20" with nand-part and then it works :)

...(echo y;) | nand-part -f a20 /dev/nand 32768 'bootloader 32768' 'rootfs 0' ...

Many thanks for this image  :)
Seb.

OK

Thank's. Added to the nand-install script because it should not affect revision A.

Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 24, 2014, 03:26:49 am
hi  i install mailutils and postfix by defeat set.,but i test mail which it didnt work.so i see the log ,having the error 500  invalid sender .can  you  tell  how to solve the problem ?thank you !

Can't help on this issue. :-[

Just some general thoughts. If you run into this kind of troubles and/or you don't know what you are doing it's usually better to start from scratch again, than again, ... There are guides for installing mail server while it's hard to recommend the right one for your wishes & knowledge.

This might be a good start:
http://www.howtoforge.com/perfect-server-debian-wheezy-apache2-bind-dovecot-ispconfig-3

But. Installing and operating an email server on a Linux machine can be/it is (far) away from easy.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: rhen on January 25, 2014, 07:30:48 am
@ellnic:
How have you installed openmediavault?
I added the openmediavault repo to my sources.list but has problem with it.
I can't install it, because there is no armhf build in the repo.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: ellnic on January 26, 2014, 06:09:32 am
@ellnic:
How have you installed openmediavault?
I added the openmediavault repo to my sources.list but has problem with it.
I can't install it, because there is no armhf build in the repo.

Armhf is only supported unofficially (although it works well) by some of the guys who make the plugins. More information is here: http://forums.openmediavault.org/viewtopic.php?f=12&t=481

I altered the procedure slightly though, as there were some issues. For a flawless install do this:

1.
Code: [Select]
echo 'deb http://packages.omv-plugins.org fedaykin main' >/etc/apt/sources.list.d/omv-plugins-org-fedaykin.list
echo 'deb http://packages.omv-plugins.org fedaykin-armhf main' >/etc/apt/sources.list.d/omv-plugins-org-fedaykin-armhf.list

wget -O - http://packages.omv-plugins.org/apt/99omv-plugins-org > /etc/apt/preferences.d/99omv-plugins-org

wget -O - http://packages.omv-plugins.org/omv-plugins.pub|apt-key add -

apt-get update

2. VERY IMPORTANT: Edit /etc/hosts to include your IP and hostname or the install will fail.

For example:

Code: [Select]
192.168.0.10       Cubie
3. Now do:

Code: [Select]
apt-get install openmediavault
You will be asked setup questions for postfix and scponly.. google it if you don't know.

5. Now do:

Code: [Select]
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
and

Code: [Select]
omv-initsystem
You might get an error with omv-initsystem, ignore it.

6. Now you need to manually add the plugins .deb or the updates and plugins tabs will fail.

Code: [Select]
wget http://packages.omv-plugins.org/pool/main/o/openmediavault-omvpluginsorg/openmediavault-omvpluginsorg_0.4~10.gbp5bae63_all.deb

dpkg -i openmediavault-omvpluginsorg_0.4~10.gbp5bae63_all.deb

7. Now login to the OMV control panel and check for updates - there will be a plugin update already, install it

8. Done! Now everything should be working.

Some advice, if you want to use forked-daapd - DO NOT USE the one with OMV... there is a timeout issue on the majority of the forked-daapd available on the Debian repos and the Debian derivatives at the moment.. you need a patched version. See this: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=49928

Follow the instructions, but DO NOT remove libevent-2.0 as it also removes nfs-common which breaks OMV, just skip that bit and follow instructions. It means you have to manually configure it, but it's really not so bad and it works really well.

Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Teetertank on January 26, 2014, 10:02:23 pm
Hi,

I bought a Cubietruck a month or so ago. My aim is to use it as a media server and I came across the Slovinia operating system and it seems perfect for my need. Many thanks for all the effort to put his together, as I am daunted by trying to enable all the features I think I may need. I was hoping this would solve my problems, but seem stuck at trying to SSH into the board.

I think I have installed this v1.5 server from 22.4.14, but I don't seem to have ethernet.

I downloaded the zip file, unzipped it in windows, used an image writer to write the .RAW file to SD card, inserted the card into the truck with HDMI cable on TV and various text ran up the screen. At the log in prompt I entered "root" and 1234. It seemed to let me in, but now I am stuck.

There is only the red LED lit on the main board (which I think is good as rest have been disabled in this operating system), there is a green light on the ethernet port and the yellow flashes quite frequently, but I can not see Cubietruck connected in attached devices on my router. 

I'd really like to just Logitech media server and a Samba server, but am stuck at first base.

Can anyone advise me please? Is it necessary to install any other files along with the RAW image? I see various boot files in other downloads but I'm not sure what is needed or for what systems they are compatible with. Would really appreciate if someone can help.

Thanks


Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 27, 2014, 12:15:09 am
Hi,

I bought a Cubietruck a month or so ago. My aim is to use it as a media server and I came across the Slovinia operating system and it seems perfect for my need. Many thanks for all the effort to put his together, as I am daunted by trying to enable all the features I think I may need. I was hoping this would solve my problems, but seem stuck at trying to SSH into the board.

I think I have installed this v1.5 server from 22.4.14, but I don't seem to have ethernet.

I downloaded the zip file, unzipped it in windows, used an image writer to write the .RAW file to SD card, inserted the card into the truck with HDMI cable on TV and various text ran up the screen. At the log in prompt I entered "root" and 1234. It seemed to let me in, but now I am stuck.

There is only the red LED lit on the main board (which I think is good as rest have been disabled in this operating system), there is a green light on the ethernet port and the yellow flashes quite frequently, but I can not see Cubietruck connected in attached devices on my router. 

I'd really like to just Logitech media server and a Samba server, but am stuck at first base.

Can anyone advise me please? Is it necessary to install any other files along with the RAW image? I see various boot files in other downloads but I'm not sure what is needed or for what systems they are compatible with. Would really appreciate if someone can help.

Thanks

The image should work without any additional settings or install but let's check some basic issues first:

- Do your router provide DHCP? If you don't, you have to manually edit /etc/network/interfaces and set fixed IP
- Was there one automatic reboot at first run? It's necessary.
- Let's check if you got Ethernet module running: Log in and type:

dmesg | grep sunxi_gmac
It should be:
Code: [Select]
[   19.053922] sunxi_gmac: probed
[   19.068222] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active
[   19.085150] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01)
[   21.092236] PHY: sunxi_gmac-0:00 - Link is Up - 100/Full


Check if your Ethernet is up and got IP from router, type: ifconfig

eth0   Link encap:Ethernet  HWaddr ae:50:30:27:5a:cf 
          inet addr:172.16.100.96  Bcast:172.16.100.255  Mask:255.255.255.0
          inet6 addr: fe80::7c58:cfff:fe6b:43e1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4637827 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7230795 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:585593341 (558.4 MiB)  TX bytes:9097408467 (8.4 GiB)

If you don't have eth0 adapter and you have module sunx_gmac running than there could be a problem with a router or install was not successful. (at very first run we set some things)

What is in the file, type:
more /etc/network/interfaces

It should begin with:
Code: [Select]
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
   hwaddress ether ae:50:30:27:5a:cf # will be added at first boot

I hope you installed image from the first post since I added one testing - few posts back - which is was done just for Cubieboard2 and I don't know if it works.

We'll find the problem  :)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Teetertank on January 27, 2014, 04:40:46 pm
Thanks for your response.
- Do your router provide DHCP? If you don't, you have to manually edit /etc/network/interfaces and set fixed IP
Yes, DHCP enabled in router

- Was there one automatic reboot at first run? It's necessary.
The power light never went out, I didn't notice if it rebooted. It did offer log in then ran some more text down the screen. Then offered login again.

I did notice a "failed" in red text against a line saying cubian-firstrun "failed!" (with the failed in red)

- Let's check if you got Ethernet module running: Log in and type:

dmesg | grep sunxi_gmac
It should be:
Code: [Select]
[   19.053922] sunxi_gmac: probed
[   19.068222] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active
[   19.085150] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01)
[   21.092236] PHY: sunxi_gmac-0:00 - Link is Up - 100/Full


I get no response from typing "dmesg | grep sunxi_gmac". if I type "dmesg" it runs a load of text.

Check if your Ethernet is up and got IP from router, type: ifconfig

eth0   Link encap:Ethernet  HWaddr ae:50:30:27:5a:cf 
          inet addr:172.16.100.96  Bcast:172.16.100.255  Mask:255.255.255.0
          inet6 addr: fe80::7c58:cfff:fe6b:43e1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4637827 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7230795 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:585593341 (558.4 MiB)  TX bytes:9097408467 (8.4 GiB)

Here, the response I see includes:
Link: local loopback
inetaddress 127.0.0.1
inetaddress :  ::/ /128 Scope:host
All the TX and RX figures are 0

What is in the file, type:
more /etc/network/interfaces

I get a response along the lines of what you wrote, though I can't see the left hand side of the screen as teh boarders/resolutioin must be a bit out.
I hope you installed image from the first post since I added one testing - few posts back - which is was done just for Cubieboard2 and I don't know if it works.
Yes, installed from first post version 1.5. I see your Cubietruck graphic come up and see reference to the version 1.5 in the text on screen.

We'll find the problem  :)
I hope so. Thanks for your help so far.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 27, 2014, 05:39:12 pm
Quote
The power light never went out, I didn't notice if it rebooted. It did offer log in then ran some more text down the screen. Then offered login again.

I did notice a "failed" in red text against a line saying cubian-firstrun "failed!" (with the failed in red)

One red failed at first run is normal ... nothing to worry and just a moment after that system should auto restart, red light (power led) is always on, others are shut down after system comes up.

Quote
I get no response from typing "dmesg | grep sunxi_gmac". if I type "dmesg" it runs a load of text.

This bothers me. Dmesg shows kernel messages and there is no response from Ethernet. All Cubietrucks should have the same network interface and the module is build into kernel. Strange ... try edit /etc/modules and add sunxi_gmac . Reboot.

Quote
I get a response along the lines of what you wrote, though I can't see the left hand side of the screen as teh boarders/resolutioin must be a bit out.

Change resolution to something else with, edit:
nano /boot/uEnv.txt and change EDID:1280x720p50 to 1024x768p50 or 1024x768p60 or 1920x1080p60 / try what will be ok
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Teetertank on January 27, 2014, 07:36:50 pm
This bothers me. Dmesg shows kernel messages and there is no response from Ethernet. All Cubietrucks should have the same network interface and the module is build into kernel. Strange ... try edit /etc/modules and add sunxi_gmac . Reboot.
I tried typing "/etc/modules" and get 'permission denied' do I need to log in as a different user?

Change resolution to something else with, edit:
nano /boot/uEnv.txt and change EDID:1280x720p50 to 1024x768p50 or 1024x768p60 or 1920x1080p60 / try what will be ok
nano /boot/uEnv.txt brought up what looked like an editing screen. I moved the curser and overwrote the resolution to what should be correct but am unsure how to save the change. The help files I think are just off the bottom of the screen so bit of a catch 22.

Sorry for beeing such a noob...
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: patwood on January 27, 2014, 07:50:08 pm
First, try this:

modprobe sunxi_gmac
dmesg | grep Mac
ifconfig

and report back.  If this creates a reasonable looking Ethernet device, then you need to add the line

sunxi_gmac

to the file /etc/modules.  Use a text editor.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Teetertank on January 27, 2014, 08:12:04 pm
Thanks Pat.

This looks more hopeful now. I see an UPBROADCAST RUNNING...

And now Cubie appears in attached devices for router :-)

Many thanks for suggestion. Haven't used a text editor before, I just looked them up and Vim is recommended. Is this something I need to run on a PC or is it operable from command line to add the sunxi_gmac line?
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: patwood on January 27, 2014, 08:46:05 pm
Vim is an advanced editor. You might want to look into gedit instead.  It works well with a GUI.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 28, 2014, 02:25:49 am
Thanks Pat.

This looks more hopeful now. I see an UPBROADCAST RUNNING...

And now Cubie appears in attached devices for router :-)

Many thanks for suggestion. Haven't used a text editor before, I just looked them up and Vim is recommended. Is this something I need to run on a PC or is it operable from command line to add the sunxi_gmac line?

Text editor is necessary to fix things. There is no other way  :-[

Which one is a matter of personal choice since there is no big differences between them - for basic work.

I prefer nano and it's already installed. Since you also have screen troubles is also hard to get into help:

Code: [Select]
nano /etc/modules
when you are done with editing:
CTRL +x             y              ENTER

It means "Close file". Then you are asked "Save changes". Your response should be "y" if you want to write changes, else "n" + ENTER

Other might usefull commands (http://ss64.com/bash/)

Thanks Pat.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: rose28357 on January 28, 2014, 06:42:55 am
Shoudn't he use
Code: [Select]
sudo nano /etc/modules ?
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: arrhenius on January 28, 2014, 06:52:48 am
Shoudn't he use
Code: [Select]
sudo nano /etc/modules ?

Not needed if you are root, yes if you are not.


In addition, i must say SUDO was not even installed in this distro by default until version 1.5  (i know this because my post-install script included apt-get install sudo )

Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: newmoses on January 28, 2014, 07:45:12 am
Thx for that Image, better than the originals.

All things i would do, the software do, but one thing makes me crazy.

The driver for my "Dexatek Technology Ltd. DK DVB-T Dongle" dont run, because there where no drivers. i looked all the f.. sites to fix that problem, but no chance to do it. the dongle was before at my raspberry pi and runs together with tvheadend without any drivers to install.

what ist going wrong?

hope someone can help me to fix that. with that image on cubietruck i have a verygood server with low engery at home, and energy in germany ist expensive ;D

best greetz to you (sry for my english)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: arrhenius on January 28, 2014, 08:19:55 am
Thx for that Image, better than the originals.

All things i would do, the software do, but one thing makes me crazy.

The driver for my "Dexatek Technology Ltd. DK DVB-T Dongle" dont run, because there where no drivers. i looked all the f.. sites to fix that problem, but no chance to do it. the dongle was before at my raspberry pi and runs together with tvheadend without any drivers to install.

what ist going wrong?

hope someone can help me to fix that. with that image on cubietruck i have a verygood server with low engery at home, and energy in germany ist expensive ;D

best greetz to you (sry for my english)

the first thing you need to know is what drivers works for this hardware, once you know with, you can load the proper module to make it work, its possible that the module is not available in this kernel, if so, i think you can rebuild the kernel adding that driver, but that is far beyond my knowledge rigth now.

googling a little it looks like the proper driver is called AF9013

try this command as root

modprobe af9013

this command loads the module, i tried in my cubietruck running Cubieez (uses the same kernel branch so it should work in slovenia distro too)

if it works, the command:

lsmod

should show you af9013 loaded


then try to attach the dongle.


I am very linux noob so i am not really sure if it will work, but im sure slonevia can help you


Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: rbk on January 29, 2014, 01:46:44 am
Thanks Slovenia for your work!

I am a complete newbie and would need bit of assistance in bringing up my new cubietruck. Earlier I had a R Pi and I was able to run samba/ minildlna/ trasmission on that. Now with the new CT, I downloaded your HDMI image to the SD card. It did boot up, but the issue is am not getting display over HDMI. I have connected the HDMI to my TV which is a HD resolution (1080 x 720). However I could connect via SSH and login successfully and moved to NAND.

Tried to install xRDP, and session connects but fails to display after entering username & password. And, x11vnc will not install properly, it fails to start. Could someone guide me in getting display/ RDP. I suppose it will be same as in R Pi setting samba/ minidlna/ transmission.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 29, 2014, 04:58:50 am
It did boot up, but the issue is am not getting display over HDMI. I have connected the HDMI to my TV which is a HD resolution (1080 x 720). However I could connect via SSH and login successfully and moved to NAND.

HDMI output is tested and it's working. You can try to power on TV with CT already powered and vice versa and/or by editing a file /boot/uEnv.txt and change resolution there.

Tried to install xRDP, and session connects but fails to display after entering username & password. And, x11vnc will not install properly, it fails to start. Could someone guide me in getting display/ RDP. I suppose it will be same as in R Pi setting samba/ minidlna/ transmission.

It should be exactly the same as on RPi running Debian 7.x Wheezy but it can be little different if you were on some other linux.

Why do you need graphical interface and unnecessary troubles :) for running samba/ mini dlna/ transmission?
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on January 30, 2014, 02:46:07 am
Nice to hear some good setup stories! It might open us new ideas for using CT. :D

I am also working on a post setup and testing access point mode(working well so far) and struggling to get my scanner buttons working - http://sourceforge.net/projects/scanbd No luck with that :'(

That looks really interesting :D I got given a Kodak ESP 1.2 AIO recently, but without PSU - When I get one ordered I can test for you if you like :D Providing there are Kodak drivers for Linux.. this looks like it will do the trick: http://sourceforge.net/projects/cupsdriverkodak/

I got scanner buttons working with some other application (scanbuttond) but (for my scanner) I have to use patched one:
http://wp.psyx.us/?p=500

Working perfect. I even run OCR over scanned documents even this takes enormous amount of calculating power of SoC/time  ;D (10+ min / page)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on January 30, 2014, 12:46:11 pm
Hi,

got my CT early this week and installed this image to SD Card which worked perfectly without any issues.

Trying to move the system to nand causes me some headache.
First part of the script seems to work without issues:
Code: [Select]
Proceed (y/n)? (default: y): y
Partitioning

Press a key to reboot than run this script again!

After the reboot I execute the scrit once more getting the following error messages:
Code: [Select]
Proceed (y/n)? (default: y): y
Formatting and optimizing NAND rootfs ... up to 30 sec
/dev/nand1: No such file or directory
mke2fs 1.42.5 (29-Jul-2012)
Could not stat /dev/nand2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
tune2fs: No such file or directory while trying to open /dev/nand2
Couldn't find valid filesystem superblock.
tune2fs: No such file or directory while trying to open /dev/nand2
Couldn't find valid filesystem superblock.
e2fsck 1.42.5 (29-Jul-2012)
e2fsck: No such file or directory while trying to open /dev/nand2
Possibly non-existent device?
Creating NAND bootfs ... few seconds
mount: special device /dev/nand1 does not exist
rm: cannot remove `nand_mbr.backup': No such file or directory
umount: /mnt: not mounted
Creating NAND rootfs ... up to 5 min
mount: special device /dev/nand2 does not exist

The CT is not booting if eject the sd card.
Using the sd card booting an checking the partitions shows.
fdisk -l shows:
Code: [Select]
root@cubie:~# fdisk -l

Disk /dev/nand: 7700 MB, 7700742144 bytes
255 heads, 63 sectors/track, 936 cylinders, total 15040512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xffffffff

Disk /dev/nand doesn't contain a valid partition table

I tried this three or four times.

Any idea how to fix this?

Thanks in advance, Brakelman.

Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 30, 2014, 01:26:38 pm
Quote
Trying to move the system to nand causes me some headache.

I noticed that CT Rev. B have troubles with nand install. Use updated script:

wget https://raw.github.com/igorpecovnik/Cubietruck-Debian/master/scripts/nand-install.sh

or just edit and change:

from:
(echo y;) | nand-part /dev/nand 32768 'bootloader 32768' 'rootfs 0' >> /dev/null || true
to:
(echo y;) | nand-part -f a20 /dev/nand 32768 'bootloader 32768' 'rootfs 0' >> /dev/null || true

Remove one file if exists in /root
rm .reboot-nand-install.pid

Run install once again and please report if this helps.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Morphy on January 31, 2014, 02:05:36 pm
Is there any way to enable the leds with this image?
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on January 31, 2014, 04:40:54 pm
Is there any way to enable the leds with this image?

update-rc.d -f disable_led.sh remove
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: ellnic on January 31, 2014, 07:51:00 pm
@slovenia, sorry for the delayed reply. I received the power supply for the Kodak only to find the seller sent me the wrong one. I've returned it and the correct one is on the way (apparently)... we shall see ;-) glad to see you've had better luck :-D
Title: BOOT from USB
Post by: agarbato on January 31, 2014, 11:05:24 pm
Hi All,

I'm trying to run this image from usb ssd drive.

Reason is simple..  on sata port I've a huge 2tb 2.5" drive which I spin down when I don't use it.
I did some tests and with SSD I'm close to 30mb/s read and 25write which is definitely better that nand or any sd card can do.

I know is not possible to boot straight from USB but we need sd or nand with uboot image.

I copied the root filesystem to /dev/sdb1 partition and made a sd bootable card with uboot and uEnv.txt with root=/dev/sdb1 and rootwait parameter.

It actually boot but wait forever for root device on sdb.
Looks to me usb storage module is not loaded at boot.
If I try to plug/unplug any usb device some messages comes up but nothing related to a mass storage.

Should I add some additional parameters to uEnv.tx?

Any suggestion? Nobody have ever tried to boot from USB this or another way?

Thanks
A.











Title: Re: BOOT from USB
Post by: rose28357 on February 01, 2014, 04:35:20 am
I copied the root filesystem to /dev/sdb1 partition and made a sd bootable card with uboot and uEnv.txt with root=/dev/sdb1 and rootwait parameter.

It actually boot but wait forever for root device on sdb.
USB at boot time should be enabled in script.bin. it is not by standard configuration. I have read some discussion about that somewhere in this forum ..
Title: Re: BOOT from USB
Post by: agarbato on February 01, 2014, 07:24:02 am
Quote
USB at boot time should be enabled in script.bin. it is not by standard configuration. I have read some discussion about that somewhere in this forum ..

Uhm.. All I've found here is how to boot usb fel which is another story/purpose.
Hate when I can't fix things :-)




Title: Re: BOOT from USB
Post by: agarbato on February 01, 2014, 07:57:56 am
Quote
USB at boot time should be enabled in script.bin. it is not by standard configuration. I have read some discussion about that somewhere in this forum ..

Uhm.. All I've found here is how to boot usb fel which is another story/purpose.
Hate when I can't fix things :-)

Ok.. Found a reason at least why this won't work unless the usb_storage module is embedded.
Same as here.. http://www.cubieforums.com/index.php/topic,1552.msg9839.html#msg9839

Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 01, 2014, 08:57:57 am

I noticed that CT Rev. B have troubles with nand install. Use updated script:

wget https://raw.github.com/igorpecovnik/Cubietruck-Debian/master/scripts/nand-install.sh

...

Run install once again and please report if this helps.

Hi Slovenia,

thanks for quick response, I downloaded your script and ran it twice.
But after the second reboot and removing the sd card the Cubietruck stucks on booting.

I attached a photo showing the boot screen stucking.

Any idea how to fix this?

Thanks, Brakelmann
Title: Re: BOOT from USB
Post by: agarbato on February 01, 2014, 10:45:37 am
Quote
Uhm.. All I've found here is how to boot usb fel which is another story/purpose.
Hate when I can't fix things :-)

Yuppie! :-)

I've fixed this. I've a running installation from USB SSD and system is very responsive.

If you need to do the same follow patwood build instruction here :

http://www.cubieforums.com/index.php/topic,472.0.html

Or I can provide, if someone need it, uImage with mass-storage enabled.

Ciao
A.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 01, 2014, 11:18:55 am
Hi Slovenia,

thanks for quick response, I downloaded your script and ran it twice.
But after the second reboot and removing the sd card the Cubietruck stucks on booting.

I attached a photo showing the boot screen stucking.

Any idea how to fix this?

Thanks, Brakelmann

Huh :o Never experienced this kind of trouble ... try this, it might help:

http://www.cubieforums.com/index.php/topic,1275.msg9338/topicseen.html#msg9338

Direct link to file:
https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/nand.mbr.img.tgz

Title: Re: BOOT from USB
Post by: slovenia on February 01, 2014, 11:30:54 am
Or I can provide, if someone need it, uImage with mass-storage enabled.

Ciao
A.

 8)

We can add it into future build if it does not obstruct any other functionality ?
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 01, 2014, 12:19:21 pm

Huh :o Never experienced this kind of trouble ... try this, it might help:

http://www.cubieforums.com/index.php/topic,1275.msg9338/topicseen.html#msg9338

Direct link to file:
https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/nand.mbr.img.tgz

Hi Slovenia,

I gave it a try, downloaded the mbr and executeted...

Code: [Select]
dd if=nand.mbr.img of=/dev/nand bs=1M count=1
Shutdown, remove sd card, but CT still stucks on boot.

fdisk -l still shows...
Code: [Select]
Disk /dev/nand: 7700 MB, 7700742144 bytes
255 heads, 63 sectors/track, 936 cylinders, total 15040512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nand doesn't contain a valid partition table

Something seems to be screwed up.
Any other idea?
Is there a way to part and format the nand manually?

Many thanks, Brakelmann.

EDIT: -> Some additional info:
nand-part shows:
Code: [Select]
root@cubie:~# nand-part
check partition table copy 0: mbr: version 0x00000200, magic softw411
magic softw411 is not softw311
check partition table copy 1: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 2: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 3: mbr: version 0x00000000, magic         
magic          is not softw311
all partition tables are bad!
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0
Title: Re: BOOT from USB
Post by: agarbato on February 01, 2014, 12:34:25 pm
Or I can provide, if someone need it, uImage with mass-storage enabled.
Ciao
A.

 8)
We can add it into future build if it does not obstruct any other functionality ?

That would be great.

Well compile didn't go really straight so maybe I need to test if everything still works :)
I had to change manually some settings on .config file and wireless it's not working anymore.
Well I don't really need it atm but compile failed because source do not include bmchd firmware.
I guess this has to be downloaded separately.  This can be easily fixed.

Obviously uImage is not enough, I had to copy also all new modules otherwise kernel complain and refuse to load modules created whith your uImage version.

Shoudn't be hard for you to add such feature maybe on a separate image or through a script like the one with nand.

All you need to do is to change this on .config and compile.

CONFIG_USB_STORAGE=y

That's it ;-)








Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 01, 2014, 02:42:17 pm

Huh :o Never experienced this kind of trouble ... try this, it might help:

http://www.cubieforums.com/index.php/topic,1275.msg9338/topicseen.html#msg9338

Direct link to file:
https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/nand.mbr.img.tgz

Hi Slovenia,

I gave it a try, downloaded the mbr and executeted...

Code: [Select]
dd if=nand.mbr.img of=/dev/nand bs=1M count=1
Shutdown, remove sd card, but CT still stucks on boot.

fdisk -l still shows...
Code: [Select]
Disk /dev/nand: 7700 MB, 7700742144 bytes
255 heads, 63 sectors/track, 936 cylinders, total 15040512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nand doesn't contain a valid partition table

Something seems to be screwed up.
Any other idea?
Is there a way to part and format the nand manually?

Many thanks, Brakelmann.

EDIT: -> Some additional info:
nand-part shows:
Code: [Select]
root@cubie:~# nand-part
check partition table copy 0: mbr: version 0x00000200, magic softw411
magic softw411 is not softw311
check partition table copy 1: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 2: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 3: mbr: version 0x00000000, magic         
magic          is not softw311
all partition tables are bad!
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0

nand-part looks ok, fdisk output is not relevant for NAND / it's output is normal

One dirty trick could be to install ubuntu server image for NAND with Phoenix suite and if that boots run install again and hope that this will work. Anyway, thank you for trying out. It looks like I missed something or there is some unknown hardware issue. I have to dig in more - no other ideas @this moment. Sorry.
Title: Re: BOOT from USB
Post by: slovenia on February 01, 2014, 02:55:12 pm
Well compile didn't go really straight so maybe I need to test if everything still works :)
I had to change manually some settings on .config file and wireless it's not working anymore.
Well I don't really need it atm but compile failed because source do not include bmchd firmware.
I guess this has to be downloaded separately.  This can be easily fixed.

Obviously uImage is not enough, I had to copy also all new modules otherwise kernel complain and refuse to load modules created whith your uImage version.

Shoudn't be hard for you to add such feature maybe on a separate image or through a script like the one with nand.

All you need to do is to change this on .config and compile.

CONFIG_USB_STORAGE=y

That's it ;-)

OK, I see. That should not be a problem then. Added to build script, will be in next image.

Wireless firmware troubles are solved within the build script and yes you need kernel + modules for that kernel.

Tnx.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 01, 2014, 06:11:07 pm

One dirty trick could be to install ubuntu server image for NAND with Phoenix suite and if that boots run install again and hope that this will work...

Hi Slovenia,

could you please point me to the rihgt direction where to find this "Ubuntu Image" with the Phoenix Suite.

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: rose28357 on February 01, 2014, 07:08:09 pm
could you please point me to the rihgt direction where to find this "Ubuntu Image" with the Phoenix Suite.
look here  (http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/)und try Lubunut Desktop V1.01 oder Lubuntu Server V1.00 for
nand.
Title: Re: BOOT from USB
Post by: agarbato on February 02, 2014, 03:48:38 am
Well compile didn't go really straight so maybe I need to test if everything still works :)
I had to change manually some settings on .config file and wireless it's not working anymore.
Well I don't really need it atm but compile failed because source do not include bmchd firmware.
I guess this has to be downloaded separately.  This can be easily fixed.

Obviously uImage is not enough, I had to copy also all new modules otherwise kernel complain and refuse to load modules created whith your uImage version.

Shoudn't be hard for you to add such feature maybe on a separate image or through a script like the one with nand.

All you need to do is to change this on .config and compile.

CONFIG_USB_STORAGE=y

That's it ;-)

OK, I see. That should not be a problem then. Added to build script, will be in next image.

Wireless firmware troubles are solved within the build script and yes you need kernel + modules for that kernel.

Tnx.


I see you've changed the option on kernel config.

Build script is amazing.  I spent a whole night to find out what I needed to cross compile and your build script did all itself.  I've cleaned up things and I can confirm that with the new generated image all is working fine.

Super karma 4 you.
Thanks again for sharing your job :)

Still I've a unsolved question. I've never been able to enable jumbo frames which I think could improve network performance a little bit.  I can't set mtu greater than 330X.  I tried to look around if this is due to a setting that I need to add on script.bin or a module parameter but no luck.  Any suggestion for this? Any area of improvement for network performance? What you think? Is this a driver or hardware limitation?

Ciao.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 02, 2014, 04:50:11 am
Quote
Build script is amazing.  I spent a whole night to find out what I needed to cross compile and your build script did all itself.  I've cleaned up things and I can confirm that with the new generated image all is working fine.

Thank you.  :P I am glad that you find it useful. It helps saving time and energy to deal with more advanced troubles.

Quote
Still I've a unsolved question. I've never been able to enable jumbo frames which I think could improve network performance a little bit.  I can't set mtu greater than 330X.  I tried to look around if this is due to a setting that I need to add on script.bin or a module parameter but no luck.  Any suggestion for this? Any area of improvement for network performance? What you think? Is this a driver or hardware limitation?

I was playing with this issue a little but didn't resolve it ... yet. There is one older kernel & script on this board where jumbo frames (MTU 9000) are working so we should look into that and find what makes the difference.

Ethernet performance. There are SoCs (but probably designed for routers and NAS usage) which can utilize gigabit traffic at around 100% speed so I think there could be an issue on the firmware side. I don't have enough experience to be sure about this.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: david88 on February 02, 2014, 04:54:24 am
Hi,

I am very new to Linux, therefore I am not sure if the question really belongs here or if it is not related to this image, but maybe someone can help me or point me in the right direction.

I have installed this image (which I quite like) on Cubietruck and also a few other things. I have a massive problem though with videos. I managed to install mplayer with VDPAU/Cedar support and videos play very well. The big problem is though that every time I pause a video, the whole system crashes (prints out a lot of kernel messages with a lot of numbers, then stops responding).

It seems to be a problem with ALSA, as this does not happen when I select "-ao null". ALSA itself is linked to the Cubietruck SPDIF output and works as well (meaning I get sound to my receiver without problems as long as I not try to pause it).

I tried the mplayer wheezy package, compiled newest nightly, tried mplayer2 - all have the same problem.

I found some mentioning that this bug seems to be fixed in mpv, but I have not been able to compile it as it is not available for wheezy and the compilation needs gcc 4.8 which is also not available for wheezy. I even tried compiling gcc 4.8 myself but this also did not work.

In summary I just want a video player with cedar support which allows me to pause the video, but I just cant seem to find one which does not crash the system. I worked for several days on this issue but am getting nowhere. This is just so frustrating.

Therefore I would be really happy if anyone can help me.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 03, 2014, 06:24:52 am
Any other idea?

One odd question. At the time of nand-install ... did you have a working internet connection at the cubietruck? If you didn't than there is a problem. Script needs to download a package necessary to format vfat and you won't see an error if download is unsuccessful  ... i know :-[ will be fixed someday :)

Anyway. You can check this by mounting both NAND partition from SD system and see if both contains something - first (boot) one should be vfat (kernel, script bin) and second ext4 (root fs - everything else).
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 03, 2014, 06:52:56 am
Hi,

I am very new to Linux, therefore I am not sure if the question really belongs here or if it is not related to this image, but maybe someone can help me or point me in the right direction.

I have installed this image (which I quite like) on Cubietruck and also a few other things. I have a massive problem though with videos. I managed to install mplayer with VDPAU/Cedar support and videos play very well. The big problem is though that every time I pause a video, the whole system crashes (prints out a lot of kernel messages with a lot of numbers, then stops responding).

It seems to be a problem with ALSA, as this does not happen when I select "-ao null". ALSA itself is linked to the Cubietruck SPDIF output and works as well (meaning I get sound to my receiver without problems as long as I not try to pause it).

I tried the mplayer wheezy package, compiled newest nightly, tried mplayer2 - all have the same problem.

I found some mentioning that this bug seems to be fixed in mpv, but I have not been able to compile it as it is not available for wheezy and the compilation needs gcc 4.8 which is also not available for wheezy. I even tried compiling gcc 4.8 myself but this also did not work.

In summary I just want a video player with cedar support which allows me to pause the video, but I just cant seem to find one which does not crash the system. I worked for several days on this issue but am getting nowhere. This is just so frustrating.

Therefore I would be really happy if anyone can help me.

I don't know much about this issue - I only read / on this forum / that there are (major?) troubles regarding playing (HD) video and there are no good and stable images/distributions of video / mplayer - XBMC yet. Cedar is being developed but I really don't know how far things are. You might hit the edge of current functionality.

Even more basic drivers like eth and wifi / BT need to be fixed. Eth is working stable but not at full speed, Wifi is operational but Bluetooth work only with a help from supernatural forces  ;D
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: agarbato on February 03, 2014, 04:38:41 pm
Quote
Build script is amazing.  I spent a whole night to find out what I needed to cross compile and your build script did all itself.  I've cleaned up things and I can confirm that with the new generated image all is working fine.
Quote
Thank you.  :P I am glad that you find it useful. It helps saving time and energy to deal with more advanced troubles.

After a couple of days with the new image built with USB-STORAGE to Y I find out that sometimes sata and usb tend to swap their names with sda/sdb.   99% of the times USB is sda and SATA sdb ( I tought it would have been the opposite but it's not) but sometimes they just change without a reason as the boot sequence is alway the same and both drives are always connected. 

This can be a problem for who decide to move  root to SATA and have a usb stick or drive connected. 
According to what I've read here is not possible to specify UUID or LABEL on uEnv.txt.
Giving that I can't find any valid workaround for this.

Not a big deal for me as my cubie is always on but as this can cause problems to someone else I'm here to bring you attention to this :-)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: david88 on February 04, 2014, 06:33:30 am
Hi,

I am very new to Linux, therefore I am not sure if the question really belongs here or if it is not related to this image, but maybe someone can help me or point me in the right direction.
<snip>

I don't know much about this issue - I only read / on this forum / that there are (major?) troubles regarding playing (HD) video and there are no good and stable images/distributions of video / mplayer - XBMC yet. Cedar is being developed but I really don't know how far things are. You might hit the edge of current functionality.

Even more basic drivers like eth and wifi / BT need to be fixed. Eth is working stable but not at full speed, Wifi is operational but Bluetooth work only with a help from supernatural forces  ;D

Thanks for your reply. I actually managed to get mpv compiled in the meantime (using clang instead of gcc), but after I run the installed file it just quits with "segment fault", lol.

I understand there is still the need for a lot of development - I was actually surprised how well mplayer already played my 720p files (well, except the audio bug of course).

Guess I just have to step back and wait for a few weeks or months...
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 06, 2014, 04:28:32 pm
Any other idea?

One odd question. At the time of nand-install ... did you have a working internet connection at the cubietruck? If you didn't than there is a problem. Script needs to download a package necessary to format vfat and you won't see an error if download is unsuccessful  ... i know :-[ will be fixed someday :)

Anyway. You can check this by mounting both NAND partition from SD system and see if both contains something - first (boot) one should be vfat (kernel, script bin) and second ext4 (root fs - everything else).

Hi,

yes I had a working inet connection at the time of nand install.
Im managed to install Lubuntu to fix the boot issue.
After that I once again used your modified script which worked out fine.

I guess it would be a good idea to provide scripts for both CubieTruck revisions for the nand install

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 06, 2014, 04:36:10 pm
Hi,

I am trying to use a fixed IP adress instead of DHCP.
Tried to edit the /etc/network/interfaces as follows...
Code: [Select]
auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot

Which is not working out.
If I run "ifdown eth0" and "ifup eth0" after changing the interfaces file there is no entry for eth0 at all if I call "ifconfig".

Any idea how to use static IP Adress?

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: agarbato on February 06, 2014, 05:43:05 pm
Hi,

I am trying to use a fixed IP adress instead of DHCP.
Tried to edit the /etc/network/interfaces as follows...
Code: [Select]
auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot

Which is not working out.
If I run "ifdown eth0" and "ifup eth0" after changing the interfaces file there is no entry for eth0 at all if I call "ifconfig".

Any idea how to use static IP Adress?

Thanks, Brakelmann.

Hi..

You're missing the most important parameter here.

add

auto eth0


place it on top of eth0 definition..

auto eth0

iface eth0 inet static
..
.
.


and restart network service

"service networking restart" or reboot to make sure it will work next time you reboot.

Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: rose28357 on February 06, 2014, 05:44:02 pm
You didnt activate eth0. Interfaces should look like this...

Code: [Select]
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot
My interfaces also included a setup for
brooadcast 192.168.1.255
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 07, 2014, 04:17:41 am
Hi guys,

thanks for your quick response.
Yes indeed I missed "auto eth0" but I tried that before.
So I added "auto eth0" so that my interfaces looks like this...
Code: [Select]
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot

If I use ifup eth0 this command brings up the following error message:
Code: [Select]
ifup eth0
RTNETLINK answers: No such process
Failed to bring up eth0

If I change "static" to "dhcp" it runs without any problem. And eth0 gets a dynamic IP address from the DHCP Server and has got the static IP 192.168.1.10
Code: [Select]
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot

Any ohter idea how to fix this?

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: agarbato on February 07, 2014, 04:34:39 am
Quote
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot

This looks correct to me.

Did you try to restart the network service instead or reboot?

Is the default gateway 192.168.1.3 reachable?

Try to set it manually and see if it works

Code: [Select]

ifconfig eth0  192.168.1.3 netmask 255.255.255.0 up
route add default gw 192.168.1.3


As last option you can create a dhcp lease reservation on your router so you'll get always the same IP from dhcp.




Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 07, 2014, 06:01:47 am
Quote
Did you try to restart the network service instead or reboot?
Yes, I tried both.
Quote
Is the default gateway 192.168.1.3 reachable?
Yes, it is reachable.

Quote
Try to set it manually and see if it works

Code: [Select]
ifconfig eth0  192.168.1.3 netmask 255.255.255.0 up
route add default gw 192.168.1.3
Setting this manually worked out without a problem, but the settings get lost after reboot?

Mh, kind of strange.

If nobody has further ideas I will try to go ahead with the lease reservation in my router,
as long as the static configuration is not working out for me.

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 07, 2014, 06:20:59 am
My /etc/network/interfaces

I am using fixed IP in bridge mode with default router DHCP settings and it's working as expected.

Code: [Select]
auto lo br0
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual

iface br0 inet static
        address 172.16.100.96
        netmask 255.255.255.0
        gateway 172.16.100.1
        hwaddress ether AE:50:30:27:5A:CF
bridge_ports eth0 wlan0
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: agarbato on February 07, 2014, 06:35:25 am
Quote
Did you try to restart the network service instead or reboot?
Yes, I tried both.
Quote
Is the default gateway 192.168.1.3 reachable?
Yes, it is reachable.

Quote
Try to set it manually and see if it works

Code: [Select]
ifconfig eth0  192.168.1.3 netmask 255.255.255.0 up
route add default gw 192.168.1.3
Setting this manually worked out without a problem, but the settings get lost after reboot?

Mh, kind of strange.

If nobody has further ideas I will try to go ahead with the lease reservation in my router,
as long as the static configuration is not working out for me.

Thanks, Brakelmann.

That's very strange.

Try also to comment the hwaddress line and restart network service.

Check /var/log/messages for any related error.



Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 07, 2014, 07:48:42 am
Hi Guys,

thanks for your support.
To make a long story short, I copied slovenias interface and adjusted the ipadresses which wokred fine after stopping and starting the network service.

After that I adjusted the rest to the following...
Code: [Select]
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.10
        netmask 255.255.255.0
        gateway 192.168.1.3
        hwaddress ether 00:01:43:5e:cb:55

and it is working fine.
There is no difference between the interfaces file than the one posted before.
I suppose there must have been some kind of hidden character (TAB or whatever) within this file which screwed the whole thing up.

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 07, 2014, 09:01:19 am
Hi There,

is it possible to boot from nand and use the SDCard as mounted storage?!
If in insert the sdcard, the CT always wants to boot from SD card.

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Morphy on February 07, 2014, 09:46:54 am
Quote
Build script is amazing.  I spent a whole night to find out what I needed to cross compile and your build script did all itself.  I've cleaned up things and I can confirm that with the new generated image all is working fine.
Quote
Thank you.  :P I am glad that you find it useful. It helps saving time and energy to deal with more advanced troubles.

After a couple of days with the new image built with USB-STORAGE to Y I find out that sometimes sata and usb tend to swap their names with sda/sdb.   99% of the times USB is sda and SATA sdb ( I tought it would have been the opposite but it's not) but sometimes they just change without a reason as the boot sequence is alway the same and both drives are always connected. 


This could be a problem for me too. I've got a USB-SATA adapter that has two SATA channels. I only have one of them connected at the moment but this will not mount at boot despite having this in etc/fstab:
Code: [Select]
/dev/sdb1 /media/HDD1 auto noatime 0 0sda1 (sata port) has an identical line and this mounts fine.
Can the USB mount at boot fix be applied to a current installation? And is there a way to fix the sdxy assignment as this will cause problems with NFS sharing of these drives?

I'm also experiencing really slow speeds transferring data over NFS from the USB drive. I'm talking sub 1 MB/s which is a big problem. I need to investigate further to see if this is just NFS or as well between the two drives.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: patwood on February 07, 2014, 10:08:38 am
Hi There,

is it possible to boot from nand and use the SDCard as mounted storage?!
If in insert the sdcard, the CT always wants to boot from SD card.

Thanks, Brakelmann.

Read this: http://www.cubieforums.com/index.php/topic,1542.0.html
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: patwood on February 07, 2014, 10:50:39 am
After a couple of days with the new image built with USB-STORAGE to Y I find out that sometimes sata and usb tend to swap their names with sda/sdb.   99% of the times USB is sda and SATA sdb ( I tought it would have been the opposite but it's not) but sometimes they just change without a reason as the boot sequence is alway the same and both drives are always connected. 


This could be a problem for me too. I've got a USB-SATA adapter that has two SATA channels. I only have one of them connected at the moment but this will not mount at boot despite having this in etc/fstab:
Code: [Select]
/dev/sdb1 /media/HDD1 auto noatime 0 0sda1 (sata port) has an identical line and this mounts fine.
Can the USB mount at boot fix be applied to a current installation? And is there a way to fix the sdxy assignment as this will cause problems with NFS sharing of these drives?

I'm also experiencing really slow speeds transferring data over NFS from the USB drive. I'm talking sub 1 MB/s which is a big problem. I need to investigate further to see if this is just NFS or as well between the two drives.

Are you sure the usb-storage module is built-into the kernel?  If not, the USB HDD won't mount until the module is loaded.  First check for USB_STORAGE in the kernel's configuration:

Code: [Select]
zgrep USB_STORAGE /proc/config.gz
If it's m, then you actually may be better off than if it's built into the kernel, since you want to have both SATA and USB drives connected at boot time, and you want these drives to be consistently named.  You could try putting usb_storage in /etc/modules and adding a mount line to /etc/rc.local; I believe all the modules should be loaded by then.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 07, 2014, 12:10:39 pm

Read this: http://www.cubieforums.com/index.php/topic,1542.0.html

Thanks, patwood that is what I was searching for.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: lauri on February 07, 2014, 06:13:46 pm
Hello,

Good job, but it seems I am unable to install it to NAND.

I booted it from microSD and ran "bash nand-install.sh" and followed the instructions.

When I remove the microSD card and hold power button to power it up I get stuck at boot:

(http://lauri.vosandi.com/shared/failtruck.jpg)
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 08, 2014, 04:21:33 am
Hello,

Good job, but it seems I am unable to install it to NAND.

I booted it from microSD and ran "bash nand-install.sh" and followed the instructions.

When I remove the microSD card and hold power button to power it up I get stuck at boot:

Thanks. This issue is known but unsolved yet :) There is a workaround - read from here (http://www.cubieforums.com/index.php/topic,1275.msg10354.html#msg10354).
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: lauri on February 08, 2014, 06:04:57 am
Thanks. This issue is known but unsolved yet :) There is a workaround - read from here (http://www.cubieforums.com/index.php/topic,1275.msg10354.html#msg10354).

What exactly are you referring to? After some digging I guess this has something to do with A20 version A vs version B. Some details about that issue can be found here:

http://www.cubietruck.com/blogs/news/11711025-upgrade-new-android-for-cubietruckv1-01
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 08, 2014, 06:22:53 am
Quote
What exactly are you referring to? After some digging I guess this has something to do with A20 version A vs version B. Some details about that issue can be found here:

That's one problem. Try to replace (in nand-install script)

nand-part
with
nand-part -f a20

Repeat the whole procedure.

There is another unsolved problem too and if this does not work, there is an dirty workaround - installing lubuntu (http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/) to NAND with Phoenix tools and do the nand-install again.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: lauri on February 08, 2014, 06:31:30 am
That's one problem. Try to replace (in nand-install script)

nand-part
with
nand-part -f a20

Repeat the whole procedure.

This is what already is there..

There is another unsolved problem too and if this does not work, there is an dirty workaround - installing lubuntu (http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/) to NAND with Phoenix tools and do the nand-install again.

This addresses version A vs B issue?
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: slovenia on February 08, 2014, 06:46:23 am
Quote
This addresses version A vs B issue?

Not sure. CT boards rev. B just started to appear and I haven't found/read what is the main difference ... yet. The dirty workaround was successful in few cases and it's worth trying until we found a better way.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: lauri on February 08, 2014, 08:01:59 am
Not sure. CT boards rev. B just started to appear and I haven't found/read what is the main difference ... yet. The dirty workaround was successful in few cases and it's worth trying until we found a better way.

Thanks man, it works. Please make others' life easier by putting a big red notice on your main download page ;)

Let me know how I can help porting your image to ver B boards :)

Btw, dd-ing the whole /dev/nand of a working machine to another machine didn't work. Does Cubietruck employ also some sort of (configurable/overwritable) bootloader outside NAND?
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 08, 2014, 11:01:21 am
Hi,

any idea how to get rid of these messages which logged almost every 30 seconds to syslog?

Code: [Select]
Feb  8 16:58:33 cubie kernel: [ 4649.494984] EDID version: 1.3
Feb  8 16:58:33 cubie kernel: [ 4649.509877] PCLK=119000000 X 1680 1728 1760 1840 Y 1050 1053 1059 1080 fr 59 PN
Feb  8 16:58:33 cubie kernel: [ 4649.529007] disp_clk: Could not find a matching pll-freq for 146850000 pclk
Feb  8 16:58:33 cubie kernel: [ 4649.534869] disp_clk: Could not find a matching pll-freq for 78800000 pclk
Feb  8 16:58:33 cubie kernel: [ 4649.540708] disp_clk: Could not find a matching pll-freq for 26150000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.568683] ParseEDID
Feb  8 16:59:07 cubie kernel: [ 4683.604979] EDID version: 1.3
Feb  8 16:59:07 cubie kernel: [ 4683.619908] PCLK=119000000 X 1680 1728 1760 1840 Y 1050 1053 1059 1080 fr 59 PN
Feb  8 16:59:07 cubie kernel: [ 4683.639044] disp_clk: Could not find a matching pll-freq for 146850000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.644969] disp_clk: Could not find a matching pll-freq for 78800000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.650798] disp_clk: Could not find a matching pll-freq for 26150000 pclk
Feb  8 16:59:41 cubie kernel: [ 4717.408698] ParseEDID

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: patwood on February 08, 2014, 08:05:26 pm
Hi,

any idea how to get rid of these messages which logged almost every 30 seconds to syslog?

Code: [Select]
Feb  8 16:58:33 cubie kernel: [ 4649.494984] EDID version: 1.3
Feb  8 16:58:33 cubie kernel: [ 4649.509877] PCLK=119000000 X 1680 1728 1760 1840 Y 1050 1053 1059 1080 fr 59 PN
Feb  8 16:58:33 cubie kernel: [ 4649.529007] disp_clk: Could not find a matching pll-freq for 146850000 pclk
Feb  8 16:58:33 cubie kernel: [ 4649.534869] disp_clk: Could not find a matching pll-freq for 78800000 pclk
Feb  8 16:58:33 cubie kernel: [ 4649.540708] disp_clk: Could not find a matching pll-freq for 26150000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.568683] ParseEDID
Feb  8 16:59:07 cubie kernel: [ 4683.604979] EDID version: 1.3
Feb  8 16:59:07 cubie kernel: [ 4683.619908] PCLK=119000000 X 1680 1728 1760 1840 Y 1050 1053 1059 1080 fr 59 PN
Feb  8 16:59:07 cubie kernel: [ 4683.639044] disp_clk: Could not find a matching pll-freq for 146850000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.644969] disp_clk: Could not find a matching pll-freq for 78800000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.650798] disp_clk: Could not find a matching pll-freq for 26150000 pclk
Feb  8 16:59:41 cubie kernel: [ 4717.408698] ParseEDID

Thanks, Brakelmann.

These usually appear when the HDMI cable is plugged. Maybe yours isn't making good contact?
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: Morphy on February 09, 2014, 03:55:10 pm
Are you sure the usb-storage module is built-into the kernel?  If not, the USB HDD won't mount until the module is loaded.  First check for USB_STORAGE in the kernel's configuration:

Code: [Select]
zgrep USB_STORAGE /proc/config.gz
If it's m, then you actually may be better off than if it's built into the kernel, since you want to have both SATA and USB drives connected at boot time, and you want these drives to be consistently named.  You could try putting usb_storage in /etc/modules and adding a mount line to /etc/rc.local; I believe all the modules should be loaded by then.

Yes the output is m. Sorry you've lost me now, where is usb_storage? Sorry I'm still learning the ropes when it comes to linux...

So it seems the problem lies with my USB-Sata board. I've tried another and it works much better, mounts at boot and everything. The problem is I want to use this as it has dual sata channels and a nice 4 amp psu supplying it so I can power the CT and SATA drive off it. I'm thinking its driver related somehow as it works fine in windows and even fine when I was running it on raspbian on the pi.
Two problems are:
Transfer speed under 1MB/s
Only way to work is powering on after CT has booted.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: patwood on February 09, 2014, 05:42:20 pm
If you do

Code: [Select]
modprobe usb_storage

do the USB drives and partitions show up in /proc/partitions?  If it mounts after booting, try adding usb_storage to /etc/modules and the mount command for /dev/sdb1 in /etc/rc.local.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: Morphy on February 10, 2014, 01:51:59 pm
If you do

Code: [Select]
modprobe usb_storage

do the USB drives and partitions show up in /proc/partitions?  If it mounts after booting, try adding usb_storage to /etc/modules and the mount command for /dev/sdb1 in /etc/rc.local.

Nope nothing happens entering that? This is with it mounted too. Output of fdisk -l and sdb1 is usb-sata drive:

Code: [Select]
fdisk -l

Disk /dev/nand: 7700 MB, 7700742144 bytes
255 heads, 63 sectors/track, 936 cylinders, total 15040512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nand doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc80e13d0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  3907028991  1953513472   83  Linux

Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: patwood on February 10, 2014, 07:13:08 pm
Nope nothing happens entering that? This is with it mounted too. Output of fdisk -l and sdb1 is usb-sata drive:

Code: [Select]
fdisk -l

Disk /dev/nand: 7700 MB, 7700742144 bytes
255 heads, 63 sectors/track, 936 cylinders, total 15040512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nand doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc80e13d0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  3907028991  1953513472   83  Linux

Okay, I'm lost here.  Let me take a step back and try to summarize:

1. You've got a 3TB SATA drive (nice!) set up on sda and use that for your root fs.  Works fine.  Mounts as your rootfs at boot up.
2. You've got a 2 channel USB SATA board with sdb on it.  It doesn't want to mount at boot time.
3. If you connect a different board (or perhaps a USB thumb drive) to the USB port, the drive mounts at boot time.

So it sounds like the usb-storage driver works and loads properly at boot time but the USB SATA board doesn't.  Perhaps there's a driver for it that's not being loaded properly, or perhaps it's not being loaded early enough.

So, first, boot without the USB SATA board and run the lsmod command; then plug in the board, mount the drive, and run lsmod again.  Any differences?  If you run dmesg and look at the last 30 lines or so, you should see some like this:

Code: [Select]
[   44.953203] ehci_irq: port change detect
[   45.234591] usb 2-1: new high-speed USB device number 2 using sw-ehci
[   45.461702] Initializing USB Mass Storage driver...
[   45.474246] scsi1 : usb-storage 2-1:1.0
[   45.485845] usbcore: registered new interface driver usb-storage
[   45.489426] USB Mass Storage support registered.
[   46.878170] scsi 1:0:0:0: Direct-Access     FLASH    Drive SM_USB20   3000 PQ: 0 ANSI: 0 CCS
[   46.899354] sd 1:0:0:0: [sda] 30965760 512-byte logical blocks: (15.8 GB/14.7 GiB)
... [all partition stuff after this]

Anything else in there?
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: Morphy on February 10, 2014, 07:40:20 pm
Yep you got it. Except root fs is on nand still. The 3tb is a WD red download drive. Speaking of which does this kernel have power saving features ie hd spin down?

I digress... lsmod before:
Code: [Select]
Module                  Size  Used by
tusbd                  38450  1
cpufreq_userspace       3294  0
nfsd                  221296  13
bcmdhd                496591  0
wifi_gpio               5853  1 bcmdhd
hci_uart               23864  0
bluetooth             263915  1 hci_uart

And after:

Code: [Select]
Module                  Size  Used by
sg                     22739  0
usb_storage            44995  0
tusbd                  38450  1
cpufreq_userspace       3294  0
nfsd                  221296  13
bcmdhd                496591  0
wifi_gpio               5853  1 bcmdhd
hci_uart               23864  0
bluetooth             263915  1 hci_uart

So yes its picking up after I flick the power once booted. I suspect its a driver issue as I'm getting awful speeds too.
dmesg:
Code: [Select]
[   20.030571] =========== WLAN placed in RESET ========
[   21.910017] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 2                                               1, 21964 clusters in bitmap, 21960 in gd
[   21.953418] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 1                                               9, 38 clusters in bitmap, 39 in gd
[   21.979930] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 2                                               0, 17179 clusters in bitmap, 17181 in gd
[   22.772730] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:                                                (null)
[   24.289399] sunxi_gmac: probed
[   24.303014] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active
[   24.319334] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01)
[   26.331955] PHY: sunxi_gmac-0:00 - Link is Up - 1000/Full
[   30.508464] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   34.901746] eth0: no IPv6 routers present
[   36.565815] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery d                                               irectory
[   36.589267] NFSD: starting 90-second grace period
[   37.806870] usbcore: registered new interface driver usb-stub-driver
[   38.259747] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 1                                               , 40 clusters in bitmap, 19 in gd
[   38.309397] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 2                                               , 8585 clusters in bitmap, 8092 in gd
[  129.178833] ata1: exception Emask 0x10 SAct 0x0 SErr 0x10200 action 0xe froze                                               n
[  129.190798] ata1: irq_stat 0x00400000, PHY RDY changed
[  129.200127] ata1: SError: { Persist PHYRdyChg }
[  129.207645] ata1: hard resetting link
[  129.972720] ata1: SATA link down (SStatus 0 SControl 300)
[  131.634712] ehci_irq: port change detect
[  131.641451] ehci_irq: port change detect
[  131.715883] ata1: hard resetting link
[  132.753014] ehci_irq: port change detect
[  132.971487] ehci_irq: port change detect
[  133.033981] hub 2-0:1.0: unable to enumerate USB device on port 1
[  133.043311] The port change to OHCI now!
[  137.114324] ata1: link is slow to respond, please be patient (ready=0)
[  139.763989] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  139.957314] ata1.00: configured for UDMA/133
[  139.964566] ata1: EH complete
[  144.807808] ehci_irq: port change detect
[  145.084327] usb 2-1: new high-speed USB device number 3 using sw-ehci
[  145.383753] Initializing USB Mass Storage driver...
[  145.394108] scsi1 : usb-storage 2-1:1.0
[  145.415608] usbcore: registered new interface driver usb-storage
[  145.427020] USB Mass Storage support registered.
[  146.417467] scsi 1:0:0:0: Direct-Access     Ext Hard  Disk                 PQ                                               : 0 ANSI: 4
[  146.438998] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.                                               81 TiB)
[  146.452420] sd 1:0:0:0: [sdb] Write Protect is off
[  146.464177] sd 1:0:0:0: [sdb] Mode Sense: 10 00 00 00
[  146.480585] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, does                                               n't support DPO or FUA
[  146.513432] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  146.525821] sd 1:0:0:0: Attached scsi generic sg1 type 0
[  148.651382]  sdb: sdb1
[  148.660990] sd 1:0:0:0: [sdb] Attached SCSI disk
[  315.382093] EXT4-fs (nand2): error count: 103
[  315.393271] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_bu                                               ddy:741
[  315.407956] EXT4-fs (nand2): last error at 1392078659: ext4_mb_generate_buddy                                               :741
A lot of errors with the nand2 there which is not the problem but worrying!
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: manofring on February 12, 2014, 01:43:40 pm
Hi Slovenia!
Tnx for u efforts, sorry my english is poor, its not my native language. Im from Russia. You script may build two image for Cubieboard2 (im successfully install self - build image for Cubietruck, but from u script im cut usb-director, add mc, screen, gpm ...  my be u add install its packages for defaults, install usb-director like option ? Because we build server image). My question - u may add RTC support for u kernel? For example DS1307, just patch 3 lines in u kernel config, for building CB2 image, and CB dont have VGA (but its available, need only 3 750OM resistors, dupont cables and VGA female connector). For Cb2 need build only HDMI version. And u make kernel like with
export ARCH=arm
export DEB_HOST_ARCH=armhf
export CONCURRENCY_LEVEL=`grep -m1 cpu\ cores /proc/cpuinfo | cut -d : -f 2`
fakeroot make-kpkg --arch arm --cross-compile arm-linux-gnueabihf- --initrd --append-to-version=-custom1 kernel_image kernel_headers
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- EXTRAVERSION=-custom1 uImage
After the compilation, in the directory one level above the kernel source tree, you will get:
linux-image-*.deb, a Debian package with the kernel;
linux-headers-*.deb, a Debian package with kernel headers (mostly unneeded);
an uImage, the kernel itself in the u-boot compatible format.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: slovenia on February 12, 2014, 03:29:22 pm
Hi Slovenia!
Tnx for u efforts, sorry my english is poor, its not my native language. Im from Russia. You script may build two image for Cubieboard2 (im successfully install self - build image for Cubietruck, but from u script im cut usb-director, add mc, screen, gpm ...  my be u add install its packages for defaults, install usb-director like option ? Because we build server image). My question - u may add RTC support for u kernel? For example DS1307, just patch 3 lines in u kernel config, for building CB2 image, and CB dont have VGA (but its available, need only 3 750OM resistors, dupont cables and VGA female connector). For Cb2 need build only HDMI version. And u make kernel like with
export ARCH=arm
export DEB_HOST_ARCH=armhf
export CONCURRENCY_LEVEL=`grep -m1 cpu\ cores /proc/cpuinfo | cut -d : -f 2`
fakeroot make-kpkg --arch arm --cross-compile arm-linux-gnueabihf- --initrd --append-to-version=-custom1 kernel_image kernel_headers
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- EXTRAVERSION=-custom1 uImage
After the compilation, in the directory one level above the kernel source tree, you will get:
linux-image-*.deb, a Debian package with the kernel;
linux-headers-*.deb, a Debian package with kernel headers (mostly unneeded);
an uImage, the kernel itself in the u-boot compatible format.

I will test and implement your suggestions asap / in next image release. I know that there are things to be fixed and sure we can try to add new features ... if they are not causing any new troubles  ;)

VGA. It's needed for Cubietruck and since there is one image for both why bother with removing? :) I left configuration on purpose for those who self constructed an VGA output.

Script. It would be easier and clearly if you add a suggestion / pull directly to script on Github.

Thanks for support!
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: triglav on February 12, 2014, 05:02:09 pm
Well, I just had a wild goose chase.

After running the nand-install script on a HDMI setup I reboot CT and there is dead screen. SSH still worked, so the copy went over fine.

After being paranoid and starting over from scratch (lubunto -> this image -> nand) the same thing happened. And here I still am, stuck at a dead screen when booting from NAND. If I reinsert the SD card and boot from there everything is OK.

Anyone got any ideas? The .bin files seem OK, they are bit by bit identical to the SD card ones.

Edit:

Bahhhhhhh, now I see what happened... It is outputting to VGA. Bloody hell.

I'll try to switch it back, any tips on where exactly the setting is?

Edit2:

Well, now things are rolling along.
Copying the /boot from SDcard to NAND does make a difference :)

#CT has booted from NAND, and then you insert the sdcard
#Mount sdcard to /mnt
mount /dev/mmcblk0p1 /mnt/
#Save old boot and copy over the one from sdcard
mv /boot /boot_old
cp /mnt/boot/   /
reboot

Tadaa, HDMI is again alive.

Edit4:

Well, back where I started. Copied over the root system to an external HDD /sda1 and once again HDMI stopped working and VGA is outputting again. Where is this getting set? :(

Edit5:
Yesss, conquest. It seems the actual file was located in /dev/nand1 namely  script.bin was a copy of ct-vga.bin instead of ct-hdmi.bin
A simple cp ct-hdmi.bin script.bin solved it yet again, no idea why what I did before worked
Title: Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
Post by: Brakelmann on February 13, 2014, 11:24:51 am
These usually appear when the HDMI cable is plugged. Maybe yours isn't making good contact?

Hi patwood,

I found out that these messages appear when I switch off my monitor and the HDMI calbe is still connected.
So removing the HDMI calbe from the CT stops theses messages.

Thanks, Brakelmann.


Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: Brakelmann on February 13, 2014, 12:04:35 pm
Hi there,

is there any information how to set up the cubie as WLAN Acces Point / HotSpot?
I am using the following interfaces configuration.
Code: [Select]
auto lo br0
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual

iface br0 inet static
        address 192.168.1.10
        netmask 255.255.255.0
        gateway 192.168.1.3
        hwaddress ether AE:50:30:27:5A:CF
bridge_ports eth0 wlan0

The hostapd file is still untouched, just for testing purposes:
Code: [Select]
ssid=CUBIE
interface=wlan0
hw_mode=g
channel=1
bridge=br0

logger_syslog=0
logger_syslog_level=0

wmm_enabled=0
wpa=2
preamble=1
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0

What else is neccesary?
I started "/etc/init.d/hostapd start" but I am not able to find the SSID with my WLAN scanner.

Any help is much appreciated, thanks Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: rose28357 on February 13, 2014, 01:58:09 pm
Somewhere here we found that you need to start the wifi driver in the ap mode.

Solved it by modifying bcmdhd module load :
Code: [Select]
bcmdhd op_mode=2
Read the whole story here (http://www.cubieforums.com/index.php/topic,1133.msg6743.html#msg6743)
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: Brakelmann on February 13, 2014, 04:08:53 pm
Somewhere here we found that you need to start the wifi driver in the ap mode.

Solved it by modifying bcmdhd module load :
Code: [Select]
bcmdhd op_mode=2
Read the whole story here (http://www.cubieforums.com/index.php/topic,1133.msg6743.html#msg6743)

Hi,

I read the whole story, but I am not able to find the correct config file or how to change the "bcmdhd op_mode" to "2".

EDIT: If found the /etc/modules file and changed the parameter to "bcmdhd op_mode=2"
Rebooted the CT but without any success.
Code: [Select]
root@cubie ~ # iwconfig
lo        no wireless extensions.

br0       no wireless extensions.

tunl0     no wireless extensions.

wlan0     IEEE 802.11  ESSID:"" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Bit Rate:65 Mb/s   Tx-Power:32 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

p2p0      IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=1496 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: rose28357 on February 13, 2014, 04:35:37 pm
Somewhere there was also a story about having the right hostapd version.

They worked out several problems and got it up with.
http://www.cubieforums.com/index.php/topic,963.msg6528.html#msg6528 (http://www.cubieforums.com/index.php/topic,963.msg6528.html#msg6528)

Here the linkto the hostapd v2 version
http://www.cubieforums.com/index.php/topic,963.msg7641.html#msg7641 (http://www.cubieforums.com/index.php/topic,963.msg7641.html#msg7641)

And hostapd v2.1
http://www.cubieforums.com/index.php/topic,963.msg9269.html#msg9269 (http://www.cubieforums.com/index.php/topic,963.msg9269.html#msg9269)
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: slovenia on February 13, 2014, 05:55:59 pm
Check file

/etc/init.d/hostapd

Do you have correct path to your config

DAEMON_CONF=/etc/hostapd.conf

This could be the problem.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: Brakelmann on February 15, 2014, 02:45:50 pm
Hi slovenia,

yes!
This did the trick.
The path was not set.

Thanks, Brakelmann.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: Morphy on February 17, 2014, 06:15:06 pm
I'm getting a new USB-Dual Sata adapter tomorrow so hoping that will perform better than the previous. Any ideas what these nand errors are all about in my dmesg?

Code: [Select]
   51.893208] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 2                    , 9190 clusters in bitmap, 8697 in gd
[   58.902036] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 1                    , 48 clusters in bitmap, 27 in gd
[  315.514501] EXT4-fs (nand2): error count: 127
[  315.525695] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_bu                    ddy:741
[  315.540377] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_buddy                    :741
[86807.897770] EXT4-fs (nand2): error count: 127
[86807.908937] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_bu                    ddy:741
[86807.923578] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_buddy                    :741
[173315.417785] EXT4-fs (nand2): error count: 127
[173315.429037] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_b                    uddy:741
[173315.443784] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_budd                    y:741
[259822.937720] EXT4-fs (nand2): error count: 127
[259822.949000] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_b                    uddy:741
[259822.963766] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_budd                    y:741
[300842.608297] ata1: exception Emask 0x10 SAct 0x0 SErr 0x10200 action 0xe froz                    en
[300842.620251] ata1: irq_stat 0x00400000, PHY RDY changed
[300842.629336] ata1: SError: { Persist PHYRdyChg }
[300842.637098] ata1: hard resetting link
[300847.769586] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[300847.959365] ata1.00: configured for UDMA/133
[300847.966054] ata1: EH complete
[346330.457757] EXT4-fs (nand2): error count: 127
[346330.469012] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_b                    uddy:741
[346330.483757] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_budd                    y:741
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: patwood on February 17, 2014, 09:10:01 pm
I'm getting a new USB-Dual Sata adapter tomorrow so hoping that will perform better than the previous. Any ideas what these nand errors are all about in my dmesg?

Code: [Select]
   51.893208] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 2                    , 9190 clusters in bitmap, 8697 in gd
[   58.902036] EXT4-fs error (device nand2): ext4_mb_generate_buddy:741: group 1                    , 48 clusters in bitmap, 27 in gd
[  315.514501] EXT4-fs (nand2): error count: 127
[  315.525695] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_bu                    ddy:741
[  315.540377] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_buddy                    :741
[86807.897770] EXT4-fs (nand2): error count: 127
[86807.908937] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_bu                    ddy:741
[86807.923578] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_buddy                    :741
[173315.417785] EXT4-fs (nand2): error count: 127
[173315.429037] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_b                    uddy:741
[173315.443784] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_budd                    y:741
[259822.937720] EXT4-fs (nand2): error count: 127
[259822.949000] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_b                    uddy:741
[259822.963766] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_budd                    y:741
[300842.608297] ata1: exception Emask 0x10 SAct 0x0 SErr 0x10200 action 0xe froz                    en
[300842.620251] ata1: irq_stat 0x00400000, PHY RDY changed
[300842.629336] ata1: SError: { Persist PHYRdyChg }
[300842.637098] ata1: hard resetting link
[300847.769586] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[300847.959365] ata1.00: configured for UDMA/133
[300847.966054] ata1: EH complete
[346330.457757] EXT4-fs (nand2): error count: 127
[346330.469012] EXT4-fs (nand2): initial error at 1391195499: ext4_mb_generate_b                    uddy:741
[346330.483757] EXT4-fs (nand2): last error at 1392252595: ext4_mb_generate_budd                    y:741

Those are not nand errors, they are messages from the ext4 driver on the nand2 partition.  Boot from an SD card and run fsck -f /dev/nand2.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: FanM on February 18, 2014, 02:11:51 am
Dear friends, hi there!

First of all big thanks to the Slovenia, who providing all that great work.

I have some problem with mounting the SATA hard drive. Hope someone can help, maybe someone had the same problem.

When i am trying to mount my SDA1 disk, it is mounting with next problem:
root@cubie:/# mount /dev/sda1 /mnt
mount: warning: /mnt seems to be mounted read-only.

I am trying that on clean system, right after first starting.

I do not have the same problem in Debian that is from cubueboard.org web-site (nand flash version).

That is fdisk -l results:
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x93a867c6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63  1250258624   625129281    7  HPFS/NTFS/exFAT

Please help me to solve that thing.

P.S.: ver 1.6 HDMI installed.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: cubieplayer on February 18, 2014, 02:28:54 am
Hi Slovenia!
Tnx for u efforts, sorry my english is poor, its not my native language. Im from Russia. You script may build two image for Cubieboard2 (im successfully install self - build image for Cubietruck, but from u script im cut usb-director, add mc, screen, gpm ...  my be u add install its packages for defaults, install usb-director like option ? Because we build server image). My question - u may add RTC support for u kernel? For example DS1307, just patch 3 lines in u kernel config, for building CB2 image, and CB dont have VGA (but its available, need only 3 750OM resistors, dupont cables and VGA female connector). For Cb2 need build only HDMI version. And u make kernel like with
export ARCH=arm
export DEB_HOST_ARCH=armhf
export CONCURRENCY_LEVEL=`grep -m1 cpu\ cores /proc/cpuinfo | cut -d : -f 2`
fakeroot make-kpkg --arch arm --cross-compile arm-linux-gnueabihf- --initrd --append-to-version=-custom1 kernel_image kernel_headers
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- EXTRAVERSION=-custom1 uImage
After the compilation, in the directory one level above the kernel source tree, you will get:
linux-image-*.deb, a Debian package with the kernel;
linux-headers-*.deb, a Debian package with kernel headers (mostly unneeded);
an uImage, the kernel itself in the u-boot compatible format.
It's useful to me, Thank you
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: kendaron on February 18, 2014, 05:47:56 am
Hi,

I installed the CT_CB2_Debian_1.6_hdmi image on my CT (I have revision A) but it does not appear to detect the ethernet card as being Gb capable. It works fine, just limited to 100Mbit.

dmesg | grep gmac

shows me:

[    2.010698] gmac driver is disabled

And

lshw -class network

reports

*-network
       description: Ethernet interface
       physical id: 1
       logical name: eth0
       serial: 00:01:43:be:98:ac
       size: 100Mbit/s
       capacity: 100Mbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=sunxi_emac driverversion=1.01 duplex=full ip=192.168.178.47 link=yes multicast=yes port=MII speed=100Mbit/s


It is connected to a GBit port on my router and other devices have Gb speed. Any ideas?

Thanks

Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: FanM on February 18, 2014, 12:11:55 pm
Dear friends, hi there!

First of all big thanks to the Slovenia, who providing all that great work.

I have some problem with mounting the SATA hard drive. Hope someone can help, maybe someone had the same problem.

When i am trying to mount my SDA1 disk, it is mounting with next problem:
root@cubie:/# mount /dev/sda1 /mnt
mount: warning: /mnt seems to be mounted read-only.

I am trying that on clean system, right after first starting.

I do not have the same problem in Debian that is from cubueboard.org web-site (nand flash version).

That is fdisk -l results:
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x93a867c6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63  1250258624   625129281    7  HPFS/NTFS/exFAT

Please help me to solve that thing.

P.S.: ver 1.6 HDMI installed.

Hi there!

I have found the solution. Maybe it will be useful for someone.
Need to install libfuse2 and ntfs-3g
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: slovenia on February 18, 2014, 12:38:58 pm
Quote
Hi there!

I have found the solution. Maybe it will be useful for someone.
Need to install libfuse2 and ntfs-3g

Thanks. NTFS support might be generally useful. I added those packages to the build script / next release.
Title: Re: Wheezy server SD / NAND / Hotspot - update 9.2.2014
Post by: slovenia on February 18, 2014, 12:55:01 pm
Hi,

I installed the CT_CB2_Debian_1.6_hdmi image on my CT (I have revision A) but it does not appear to detect the ethernet card as being Gb capable. It works fine, just limited to 100Mbit.

dmesg | grep gmac

shows me:

[    2.010698] gmac driver is disabled

And

lshw -class network

reports

*-network
       description: Ethernet interface
       physical id: 1
       logical name: eth0
       serial: 00:01:43:be:98:ac
       size: 100Mbit/s
       capacity: 100Mbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=sunxi_emac driverversion=1.01 duplex=full ip=192.168.178.47 link=yes multicast=yes port=MII speed=100Mbit/s


It is connected to a GBit port on my router and other devices have Gb speed. Any ideas?

Thanks

There are changes regarding boot scripts, which is also related to ethernet in v1.6 so I suggest to grab v1.5 and see if that works. It will also help me to understand where the problem is.

But the lshw output looks like Cubieboard 2  ??? which is having sunxi_emac.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Madozu on March 01, 2014, 07:19:43 am
...
v1.7 / 26.2.2014
Download VGA (http://cubie.nobrainz.de/downloads/CTDebian_1.7_vga.zip) | HDMI (http://cubie.nobrainz.de/downloads/CTDebian_1.7_hdmi.zip) (400 Mb)

What's new:
  • Flash media performance tweaks, reduced writings, /tmp & /log = RAM, ramlog app saves logs on shut-down
You are mentioning flash performance tweaks for your version 1.7. This sounds very interresting and I wonder what you changed in addition to configuring ramlog for /var/log and putting /tmp onto a tmpfs. Slovenia, can you please comment on this?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 01, 2014, 12:29:28 pm
...
v1.7 / 26.2.2014
Download VGA (http://cubie.nobrainz.de/downloads/CTDebian_1.7_vga.zip) | HDMI (http://cubie.nobrainz.de/downloads/CTDebian_1.7_hdmi.zip) (400 Mb)

What's new:
  • Flash media performance tweaks, reduced writings, /tmp & /log = RAM, ramlog app saves logs on shut-down
You are mentioning flash performance tweaks for your version 1.7. This sounds very interresting and I wonder what you changed in addition to configuring ramlog for /var/log and putting /tmp onto a tmpfs. Slovenia, can you please comment on this?

Logging and /tmp is the main part, rest is more or less cosmetic - adjusting/lowering memory reserved for /run  /run/shm /run/lock ... You can gain some additional performance with disabling journal. (If you transfer rootfs to NAND my script does that by default). Probably this is all (useful) what can be done in this area  :-[

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ziaro on March 01, 2014, 07:55:55 pm
Hello,

My question is: how I can upgrade, on safe way, my CT installation from 1.6 to 1.7?
I made some changes to standard installation (moved rootfs to sata drive, installed postgresql, nginx, wordpress, mediawiki, etc.) so I'm not sure, how I can do this task without reinstalling all modificated configuration files and packages.

I read whole thread, but didn't found answer.

Thanks in advance
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 02, 2014, 05:33:10 am
Hello,

My question is: how I can upgrade, on safe way, my CT installation from 1.6 to 1.7?
I made some changes to standard installation (moved rootfs to sata drive, installed postgresql, nginx, wordpress, mediawiki, etc.) so I'm not sure, how I can do this task without reinstalling all modificated configuration files and packages.

I read whole thread, but didn't found answer.

Thanks in advance

Hello!

The functional/important part can be upgraded with:

a) download (https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/ramlog_2.0.0_all.deb) and install:

dpkg -i ramlog.deb

then reconfigure:

nano /etc/default/ramlog change TMPFS_RAMFS_SIZE=256m

then

nano /etc/init.d/rsyslog

and change this at the beginning of the file
# Required-Start:    $remote_fs $time ramlog
# Required-Stop:     umountnfs $time ramlog

b) change those parameters:

nano /etc/default/tmpfs

RAMTMP=yes
RUN_SIZE=128M
SHM_SIZE=128M
TMP_SIZE=1G

c) reboot

Answer to your question actually lies in build script and it's history. If you want to check/apply other, less important parts of upgrade, check:
https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/build.sh

I made one .bashrc login script (not included into release and you might need to install some additional packages):
https://raw.github.com/igorpecovnik/Cubietruck-Debian/master/scripts/bashrc
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Madozu on March 02, 2014, 07:30:50 am
Logging and /tmp is the main part, rest is more or less cosmetic - adjusting/lowering memory reserved for /run  /run/shm /run/lock ... You can gain some additional performance with disabling journal. (If you transfer rootfs to NAND my script does that by default). Probably this is all (useful) what can be done in this area  :-[

Thanks for the response and tips :) Up to now, I did not dare turning off journaling, just remounting /dev/root with "noatime,nodiratime,commit=300" to reduce the writes to the NAND.

NAND performance is really somewhat behind SDCard performance and I was wondering whether you found any options / kernel patches to speed that up a bit. I was looking for that, but was unable to find something useful. Also the 3.4.79 kernel from dl.cubieboard.org (http://dl.cubieboard.org/software/a20-cubietruck/lubuntu/ct-lubuntu-nand-v1.02/kernel-source.tar.gz) did not give more NAND read performance than 14.5 MByte/s.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ziaro on March 02, 2014, 03:25:15 pm
Hello slovenia,

thank you for fast answering on my question.
 
The functional/important part can be upgraded with:

a) download (https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/ramlog_2.0.0_all.deb) and install:

dpkg -i ramlog.deb

then reconfigure:

nano /etc/default/ramlog change TMPFS_RAMFS_SIZE=256m

then

nano /etc/init.d/rsyslog

and change this at the beginning of the file
# Required-Start:    $remote_fs $time ramlog
# Required-Stop:     umountnfs $time ramlog

b) change those parameters:

nano /etc/default/tmpfs

RAMTMP=yes
RUN_SIZE=128M
SHM_SIZE=128M
TMP_SIZE=1G

c) reboot

I'm not sure, but probably 2 weeks ago I did already something similar: reducing sata write activities thru moving system and applications logging activities into tempfs.
I used folowing solution:   A transient /var/log  (http://www.debian-administration.org/articles/661)
Now I have to check, which solution better match my needs.
   
Answer to your question actually lies in build script and it's history. If you want to check/apply other, less important parts of upgrade, check:
https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/build.sh
Looks like this is the way, which I should go every time :)

I made one .bashrc login script (not included into release and you might need to install some additional packages):
https://raw.github.com/igorpecovnik/Cubietruck-Debian/master/scripts/bashrc

My login script is a little more colourized then yours ;) and based on  this idea (http://www.cubieforums.com/index.php?topic=1250.msg7536#msg7536).
From your .bashrc script was for me interesting the detecting method of board temperature :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Thebigwave on March 03, 2014, 11:06:49 am
Hello together,
first of all Sorry for my English I'm not a Native Speaker.
I have a upgrade Question. At the moment I run V1.5. with Samba and FTP Services.
Is there a Safe Way to upgrade from 1.5 to 1.7 without restoring my system configuration?

Thanks for your help
TheBigWave
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Count Zero on March 03, 2014, 11:23:18 am
Hi all

I recently received my Cubietruck, and after some handwork to fit it on the ewel case I booted it from the Debian SD image which worked perfectly and I've been able to check for the hardware support and so on.

I had some issues when I tried to install it on NAND using the nand-install script found on /root on the Image. Something went wrong during the process (I think it had some problems reading the SD when making the rsync for rootfs) and NAND install failed. When tried to run it again found that the script itself removed some necessary files for the installation like the debian-boot.tar.gz image. (IMHO this shouldn't be done)

Well, that's not the problem. I burned again the SD image and modified the nand-install script to:
- don't redirect output to /dev/null (I like to see anything going on)
- don't remove any needed files (like the debian-root.tar.gz file)

After running it again and also running the comands by myself (nand-part, formating the filesystems, copying files, ...) The 'nand-install' process run correctly without any issues or problems, but when I removed the SD card and tried to boot from NAND the cubie stucks on boot and only shows a small green square on the left edge of a red-frame.

If insert the SD card I can boot from SD without issues.

What does this mean? Has the CT loaded u-boot? is stuck on u-boot, or loading kernel or....? is due some NAND partiationning not made correctly?

I know I can try to flash a new image on NAND using LiveSuit and try again, but I would like to fix it with 'standard' Linux tools if possible.

Thanks all.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 03, 2014, 12:29:47 pm
Hi all

I recently received my Cubietruck, and after some handwork to fit it on the ewel case I booted it from the Debian SD image which worked perfectly and I've been able to check for the hardware support and so on.

I had some issues when I tried to install it on NAND using the nand-install script found on /root on the Image. Something went wrong during the process (I think it had some problems reading the SD when making the rsync for rootfs) and NAND install failed. When tried to run it again found that the script itself removed some necessary files for the installation like the debian-boot.tar.gz image. (IMHO this shouldn't be done)

Well, that's not the problem. I burned again the SD image and modified the nand-install script to:
- don't redirect output to /dev/null (I like to see anything going on)
- don't remove any needed files (like the debian-root.tar.gz file)

After running it again and also running the comands by myself (nand-part, formating the filesystems, copying files, ...) The 'nand-install' process run correctly without any issues or problems, but when I removed the SD card and tried to boot from NAND the cubie stucks on boot and only shows a small green square on the left edge of a red-frame.

If insert the SD card I can boot from SD without issues.

What does this mean? Has the CT loaded u-boot? is stuck on u-boot, or loading kernel or....? is due some NAND partiationning not made correctly?

I know I can try to flash a new image on NAND using LiveSuit and try again, but I would like to fix it with 'standard' Linux tools if possible.

Thanks all.

I know. :-X The install scripts are very basic and are not able to deal with error if occur. I haven't find the will / time to polish them :-[

Quote
but when I removed the SD card and tried to boot from NAND the cubie stucks on boot and only shows a small green square on the left edge of a red-frame.

Without output from serial console is hard to tell what the problem is.

I also wanted to solve the NAND install part clearly but got stuck. Since there is no clean solution I search and found a workaround. I read on this forum that you can't access certain parts of NAND from Linux ...

I think that there is no better solution, in this case, yet.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 03, 2014, 12:48:23 pm
Hello together,
first of all Sorry for my English I'm not a Native Speaker.
I have a upgrade Question. At the moment I run V1.5. with Samba and FTP Services.
Is there a Safe Way to upgrade from 1.5 to 1.7 without restoring my system configuration?

Thanks for your help
TheBigWave

There is no option of automatic image update. :-[ New feature from 1.5 to 1.7 is using RAM for logging / tmp, ... other important changes are related to Cubieboard 2.

... it is safe for you to follow this manual (http://www.cubieforums.com/index.php?topic=1275.msg12023#msg12023) and you will have functional 1.7.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: MrDialUp on March 04, 2014, 02:16:48 pm
Igor, I have loaded 1.7 and transferred it so SATA and I have also followed the load up with installing your Debian home server script (https://github.com/igorpecovnik/Debian-micro-home-server).  I have actually done this 6 times now and it always results in a problem.  The Debian load is working fine, however, for some reason apache2 is failing to load at all when the home server script is completed.  This means that the ISPConfig3 web page is not accessible.  TV works, VPN server works and so do all the other things but for some reason apache2 fails to restart after a certain part of the script.  I have tried researching the issue but nothing I could find and attempted resolved it.  Is there a chance that something has changed within the multitude of programs that load as part of this script?  Any suggestions would be appreciated.

Also, you might want to look at including tightvncserver and lynx as part of the main Debian load or the home server script.  Both work well with the combo.

Edit:  I just read elsewhere that the intention of your images and scripts was to support CLI use only.    My bad  :-[ The issue I site above is with a GNOME GUI implementation on top of all the other server programs.  As a GUI front end was really not your intended use, I would think that the issues are due to my use of the GUI and not related to what you have put together.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 05, 2014, 01:39:57 am
Igor, I have loaded 1.7 and transferred it so SATA and I have also followed the load up with installing your Debian home server script (https://github.com/igorpecovnik/Debian-micro-home-server).  I have actually done this 6 times now and it always results in a problem.  The Debian load is working fine, however, for some reason apache2 is failing to load at all when the home server script is completed.  This means that the ISPConfig3 web page is not accessible.  TV works, VPN server works and so do all the other things but for some reason apache2 fails to restart after a certain part of the script.  I have tried researching the issue but nothing I could find and attempted resolved it.  Is there a chance that something has changed within the multitude of programs that load as part of this script?  Any suggestions would be appreciated.

Also, you might want to look at including tightvncserver and lynx as part of the main Debian load or the home server script.  Both work well with the combo.

Edit:  I just read elsewhere that the intention of your images and scripts was to support CLI use only.    My bad  :-[ The issue I site above is with a GNOME GUI implementation on top of all the other server programs.  As a GUI front end was really not your intended use, I would think that the issues are due to my use of the GUI and not related to what you have put together.

GUI is working with this image - check this post (http://www.cubieforums.com/index.php?topic=1275.msg9398#msg9398). I am afraid that Cubietruck is not powerful enough for Gnome but you can try for yourself. Currently there is also a poor (video) acceleration support and you won't be able to find a distribution that this works as expected.

Debian home server script

It was working not long time age - I will test install and report. One thing that came up on my mind is - did you set static IP? This might screw up with Apache.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: VonGriffin on March 05, 2014, 10:28:08 am
yeah apache2 fails to restart with this script
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 05, 2014, 02:14:35 pm
yeah apache2 fails to restart with this script

Yes.  :-[ There is a problem with ramlog + isp/apache logs.  :-\ Will work if you disable it and do the install again (or manual recreate missing logs):

Code: [Select]
service ramlog disable
reboot # to be safe

Working on permanent solution. Saving Apache logs to RAM is mandatory  :P

p.s.
I fixed some other bugs in the script on the way.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: MrDialUp on March 05, 2014, 02:45:49 pm
OK, I went ahead and did another reload, this time I installed the xfce gui desktop as outlined in your blog page.  And now everything is working except apache2.  Like you said, GNOME is too much for the CT to handle.   With xfce, all is good.

I've been able to load up the following with no issues: 

  1) GIMP
  2) Libreoffice
  3) Scribus
  4) Tightvncserver
  5) Gparted
  6) VLC
  7) Audacity
  8) Galculator
  9) File-roller
 10) Pidgin
 11) Linphone
 12) Mplayer
 13) Elinks
 14) Lynx
 15) Blueman (BT working with Belkin dongle)
 16) xpdf
 17) Printpdf
 18) Font-manager
 19) Xsane

All the above were available using sudo apt-get install or sudo aptitude install.  Not a bad mix if you ask me. :)

Edit:  After I posted this, I went and checked apache2 again.  Your command to shut down the log works, apache2 now is operational.
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: Count Zero on March 06, 2014, 08:09:44 am
Quote
I attached a nand-bootloader. Boot with SD, copy this file to CT, unzip and:

Hi

this may help in my issue, but I tried to download it but is gives me an error saying that the attachment cannot be found. ¿Can you upload it again?

Also I try to include a previous backup on nand-install script

Thanks in advance

Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: slovenia on March 06, 2014, 08:15:40 am
Quote
I attached a nand-bootloader. Boot with SD, copy this file to CT, unzip and:

Hi

this may help in my issue, but I tried to download it but is gives me an error saying that the attachment cannot be found. ¿Can you upload it again?

Also I try to include a previous backup on nand-install script

Thanks in advance


The file is here:
https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/bin/nand.mbr.img.tgz?raw=true

If this not work, do the workaround described in first post.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: dani on March 07, 2014, 08:57:25 am
Hi all,
I guess I must be doing a very obvious error but I can't seem to fix it. I have the image running from the sd. I log in by SSH as root. When in try to run nand-install.sh with:
"sudo ./nand-install.sh"

I get this error:
"sudo: unable to resolve host cubie
sudo: ./nand-install.sh: command not found"

I've tried without sudo and I get a "./nand-install.sh: Permission denied"

Thanks for your help!

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 07, 2014, 01:41:31 pm
Quote
I guess I must be doing a very obvious error but I can't seem to fix it.

The script was left non executable because it is not well designed / it is intended for expert use. It's basic and does not show all errors if occur.

But it's operational. Do:

Code: [Select]
chmod +x nand-install.sh
Run it again and follow instructions. Your NAND will be erased in this process. Usually there is some Android pre-installed or it is just empty.

If it won't boot after install, there is a workaround described in first post.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ikeeki on March 07, 2014, 02:30:53 pm
Hello Slovenia, I'm developing a flasher and I'd like to add your images to it, as I find them interesting, you do not mind, do you?  :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 08, 2014, 01:34:13 am
Hello Slovenia, I'm developing a flasher and I'd like to add your images to it, as I find them interesting, you do not mind, do you?  :)

No, just do it.  :)
& good luck with it.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ikeeki on March 08, 2014, 04:21:56 pm
Done

(http://dl.cubieboard.org/cubiuntux/docs/Captura%20de%20pantalla%20de%202014-03-08%2022:09:25.png)

I'll relink to this topic when people want info about your distro through a topic I have open for images supported by cubinet-boot and I'll add a warning, as I launched the image in my cubie and instaled axel on it  :-[ just for check that everything went well.

Thanks  :D
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: dziello on March 09, 2014, 06:57:54 am
Hi, please i cant login, someone tell me a login and password.  :o
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ikeeki on March 09, 2014, 06:59:07 am
root 1234
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: dziello on March 09, 2014, 07:04:37 am
Thanks  :)
Title: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -II
Post by: Ireng on March 09, 2014, 02:32:06 pm
Hi,

I tried for longtime to tweak  the network to reach the internet: set the address of the nameserver in resolv.conf to the address of my router, changed the settings in interfaces to static (address, gateway, nameserver).

Still does not work  for the net, but for the home net I can ping back and forth successfully!

What did I forget to change ?

Please advise quick!

Many thanks in advance!

Regards, Ireng
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -II
Post by: slovenia on March 09, 2014, 04:21:44 pm
Hi,

I tried for longtime to tweak  the network to reach the internet: set the address of the nameserver in resolv.conf to the address of my router, changed the settings in interfaces to static (address, gateway, nameserver).

Still does not work  for the net, but for the home net I can ping back and forth successfully!

What did I forget to change ?

Please advise quick!

Many thanks in advance!

Regards, Ireng

It would be helpful if you post the change / content of:

/etc/network/interfaces
/etc/resolv.conf


Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -II
Post by: Madozu on March 09, 2014, 04:50:10 pm

It would be helpful if you post the change / content of:

/etc/network/interfaces
/etc/resolv.conf

Also the output of

Code: [Select]
route -n
would be interresting ... it could be a missing default route as connections to your home network are fine.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -II
Post by: rose28357 on March 09, 2014, 06:14:47 pm
I tried for longtime to tweak  the network to reach the internet: set the address of the nameserver in resolv.conf to the address of my router, changed the settings in interfaces to static (address, gateway, nameserver).

Still does not work  for the net, but for the home net I can ping back and forth successfully!
Do you ping with a dns (for example google.com) to internet?
Do you ping with dns in your home network ? Or do you use ip adress (for example 192.168.1.20)?

It could be a configuration problem with your router or firewall.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Aotearoa on March 10, 2014, 03:46:17 am
Many thanks @slovenia for a great system.

I will have my Cubietruck remote from my wired router so I want it on wireless. After a learning curve getting my wifi working I just wanted to pass on a tip for configuring wifi.

After installing, the /etc/network/interfaces has the wifi (wlan0) section commented out:
Code: [Select]
#auto wlan0
#allow-hotplug wlan0
#iface wlan0 inet dhcp
#    wpa-ssid SSID
#    wpa-psk
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

You can uncomment this section by removing the # marks. This file is world readable,  if you would like to hide your SID & password you can move your definition to another file, and make this file only readable by root. I chose to call this file /etc/network/wlan0.conf, it contains
Code: [Select]
network={
ssid="MySSIDsName"
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=TKIP CCMP
group=TKIP CCMP
psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}
The psk could be plain text password in quotes "Xxxxx" or the output of wpa_passphrase. Once you've created the file as root, use "chmod 600 filename" to change its access rights to Owner read-write, others no access.

The wlan section of my network/interfaces file then became
Code: [Select]
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/network/wlan0.conf
Title: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -III
Post by: Ireng on March 10, 2014, 04:23:59 am
@slovenia Many thanks for a great system from me as well!

I can ping dns and IP from my desktop system (UBUNTU 13.04) to the net without any problems!

resolv.conf contains the IP address of my router,

the content of /etc/network/interfaces I will post later today.

Another obstacle is, that i can't connect to ssh, since the root password will be rejected during authentication.

regards, Ireng


Update: after reboot, everything works fine!  Only german keyboard after dpkg-reconfigure keyboard-configuration still not present!

Update2: in the first column of resolv.conf was a blank character. After I removed the blank chracter everythin worked fine.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: cu6apum on March 10, 2014, 08:12:55 am
Cubietruck here.
Downloaded, installed your distro. Due to lack of wiring, running it over wifi. The adapter sporadically disconnects and reconnects on its own. Used wpa_supplicant to connect.
Also noticed some strange "eth0: connected 10M/H" in syslog. There's no cable plugged!

Tried Fedora 20 before: stable, but I can't boot with custom kernel. Now am trying yours.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -III
Post by: Teetertank on March 10, 2014, 09:28:44 am
Another obstacle is, that i can't connect to ssh, since the root password will be rejected during authentication.

I know you have now resolved this, but since updating to v 1.7 I haven't been able to SSH in. Worked fine with v1.6. Now router no longer registers Cubie is on the network.

Not sure if it's something I am doing wrong of if any network settings are amended on the latest version.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 10, 2014, 09:34:57 am
Cubietruck here.
Downloaded, installed your distro. Due to lack of wiring, running it over wifi. The adapter sporadically disconnects and reconnects on its own. Used wpa_supplicant to connect.
Also noticed some strange "eth0: connected 10M/H" in syslog. There's no cable plugged!

Tried Fedora 20 before: stable, but I can't boot with custom kernel. Now am trying yours.

I haven't noticed or heard for this kind of troubles with current WI-FI firmware.  ??? I guess we are all using the same firmware ... or not?

If this can help you somehow: my router setup: DD-WRT @Atheros, WPA2 personal with AES, NG mixed
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -III
Post by: slovenia on March 10, 2014, 09:38:17 am
Another obstacle is, that i can't connect to ssh, since the root password will be rejected during authentication.

I know you have now resolved this, but since updating to v 1.7 I haven't been able to SSH in. Worked fine with v1.6. Now router no longer registers Cubie is on the network.

Not sure if it's something I am doing wrong of if any network settings are amended on the latest version.

You usually got new IP because MAC address is changed. If you got same IP you can't SSH in because your ssh keys are new/changed too. Usually your SSH client prompt that out and ask you to save new configuration.

There were no changes in or near network configuration in 1.7
Title: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -IV
Post by: Ireng on March 10, 2014, 09:39:47 am
The reason for the authetication problem with ssh was the mistyping in resolv.conf. Since then everything works so fa so good!
In ssh the german locale and keyboard are present. If I connect direktly to the Cubietruck in terminal mode, locale de is present, german keyboard after several (dpkg-reconfigutre keyoard-configuration) ist still nocht available.

i can live with that at the moment, since ssh is working fine!

Regards, Ireng
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: cu6apum on March 10, 2014, 10:22:44 am

I haven't noticed or heard for this kind of troubles with current WI-FI firmware.  ??? I guess we are all using the same firmware ... or not?

If this can help you somehow: my router setup: DD-WRT @Atheros, WPA2 personal with AES, NG mixed
Well, I use apple airport WPA2/TKIP, and under fedora it's not flickering for days...
Another bug: when you detach an USB keyboard, the system falls into endless error loop... unacceptable for server, huh?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -IV
Post by: rose28357 on March 10, 2014, 10:59:14 am
..... If I connect direktly to the Cubietruck in terminal mode, locale de is present, german keyboard after several (dpkg-reconfigutre keyoard-configuration) ist still nocht available.
Have installed the language pack befor doing reconfiguration  ?
Code: [Select]
$sudo apt-get install language-pack-de-base   
Title: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014 -V
Post by: Ireng on March 10, 2014, 04:02:24 pm
Hi rose28367,
thnaks for your advice. However th ecommand $sudo apt-get install language-pack-de-base
does not give any results. The package ist not available.

It seems, that everything is working now perfect in german language.

Regards, Ireng
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 10, 2014, 05:08:00 pm
Well, I use apple airport WPA2/TKIP, and under fedora it's not flickering for days...
Another bug: when you detach an USB keyboard, the system falls into endless error loop... unacceptable for server, huh?

Latest Fedora for NAND ... We both uses same kernel (version, not build) and probably same firmware for wifi ... configuration is more or less default. I have to dig in to find out what could be the problem. (I am using CT as access point and haven't detect any troubles)

There is no warranty for (all) external devices to work properly since there are too many of them but the Linux community is trying to fix things promptly - a keyboard bug is most likely a kernel related bug where is little I can do. It might help to pass issue to kernel developers.

But before that let's hear if someone else run into the USB KEYBOARD UNPLUG problem? It might be a power related issue.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: cu6apum on March 11, 2014, 02:29:19 am
slovenia, I'm not trying to claim for tech support, I know Pat's just a guy willing to share. I'm just reporting!

Power related - highly probable. The board audibly buzzes at ~15kHz when the kbd is in. The only diff is that Fe unplugs it correctly.
Yesterday I found out occassionally that the error loop is not infinite. It rolls for 10 min and ends up in de-hanging the cubie. Afterwards I can plug the kb back and it works again.
Maybe wifi is for the same reason?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 11, 2014, 03:42:09 am
slovenia, I'm not trying to claim for tech support, I know Pat's just a guy willing to share. I'm just reporting!

Power related - highly probable. The board audibly buzzes at ~15kHz when the kbd is in. The only diff is that Fe unplugs it correctly.
Yesterday I found out occassionally that the error loop is not infinite. It rolls for 10 min and ends up in de-hanging the cubie. Afterwards I can plug the kb back and it works again.
Maybe wifi is for the same reason?

This buzzing is somehow normal. USB plug / unplug troubles can be related to USB redirector module which is started by default. Disable it and report (i don't have any usb keyboard to test this scenario):

Code: [Select]
update-rc.d rc.usbsrvd remove
reboot
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 11, 2014, 07:25:00 am
Hello. I am a newbie who just ordered my first Cubietruck which I want attach a 2.5" hard disk (1TB) to. I am only experiences with Raspberry Pi's, so these are my first steps. As I am a Debian lover I would like to use of course a Debian based OS on my cubietruck.

But I don't understand what exactly differs to a Cubian image. I have heard of "Cubian" OS for the Cubietruck but now I read this topic here. What is special on this image and how should I decide if using this image or the "default" Cubian image? any help appreciated.

EDIT: I should add, that I want my cubietruck run as a server with packages like "samba4", "zarafa", "drbd", "nginx", "php5-fpm", "mysql", "openvpn-server", and so on ....
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 11, 2014, 09:46:13 am
Hello. I am a newbie who just ordered my first Cubietruck which I want attach a 2.5" hard disk (1TB) to. I am only experiences with Raspberry Pi's, so these are my first steps. As I am a Debian lover I would like to use of course a Debian based OS on my cubietruck.

But I don't understand what exactly differs to a Cubian image. I have heard of "Cubian" OS for the Cubietruck but now I read this topic here. What is special on this image and how should I decide if using this image or the "default" Cubian image? any help appreciated.

EDIT: I should add, that I want my cubietruck run as a server with packages like "samba4", "zarafa", "drbd", "nginx", "php5-fpm", "mysql", "openvpn-server", and so on ....

At the time I got Cubietruck there was no clean Debian for Cubietruck, Cubian for CT was not operational and Ubuntu based distro is not an option for me. That's the short story and one of the reasons for starting the project which core is actually a shell build script. My Debian tend to be clean, minimal and CLI only, while Cubian tends to be more. Both are community supported / tweaked.

I might be wrong but I think what's here and not else - working hostapd, performance tweaks: ramlog, ramtmp, ramlock, sharing USB ports over network, working install to NAND, one image for CT / Cubieboard 2, one SD card partition ...

I am successfully running the following services: Wifi AP with hostap, SSH, Pure FTP, Samba, TV headend, Transmission, BitTorrent Sync, SoftEther VPN server, CUPS, scan with scanner buttons + OCR, Postfix, Dovecot, Apache2, PHP, Mysql + phpMyAdmin, ISPConfig 3
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 11, 2014, 05:20:34 pm
Thanks for your quick reply.

Quote
hostapd, performance tweaks: ramlog, ramtmp, ramlock, sharing USB ports over network, working install to NAND, one image for CT / Cubieboard 2, one SD card partition ...

I am successfully running the following services: Wifi AP with hostap, SSH, Pure FTP, Samba, TV headend, Transmission, BitTorrent Sync, SoftEther VPN server, CUPS, scan with scanner buttons + OCR, Postfix, Dovecot, Apache2, PHP, Mysql + phpMyAdmin, ISPConfig 3

That means, that on that image offered here all these packages are installed by default? I would like to use a Debian-based Linux on the Cubietruck with packages like "samba4", "zarafa", "postfix", "mysql", "php5-fpm", "nginx", "owncloud", and so on... what would you sugest me to do? Install Cubian and fit it to my needs? Or take YOUR image and fit it to my needs?

The next question is: could you please give me more information what exactly you mean by
Quote
amlog, ramtmp, ramlock, sharing USB ports over network, working install to NAND, one image for CT / Cubieboard 2, one SD card partition ...
? what did you change, where can I find detailled information about that modifications?

And please tell me: will I be able to install Cubian on the 8GB NAND Flash on Cubietruck and boot from there?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Aotearoa on March 12, 2014, 01:18:04 am
That means, that on that image offered here all these packages are installed by default? I would like to use a Debian-based Linux on the Cubietruck with packages like "samba4", "zarafa", "postfix", "mysql", "php5-fpm", "nginx", "owncloud", and so on... what would you sugest me to do? Install Cubian and fit it to my needs? Or take YOUR image and fit it to my needs?

No, very few applications are installed by default. 
Code: [Select]
dpkg --get-selections|awk '$1!~/^lib/ { printf( "%s, ", $1);}' lists these applications:
adduser, apt, apt-utils, aptitude, aptitude-common, base-files, base-passwd, bash, bash-completion, bridge-utils, bsdmainutils, bsdutils, ca-certificates, console-data, console-setup, console-setup-linux, coreutils, cpio, cpufrequtils, cron, dash, debconf, debconf-i18n, debian-archive-keyring, debianutils, diffutils, dmsetup, dosfstools, dpkg, e2fslibs:armhf, e2fsprogs, figlet, findutils, fuse, gcc-4.7-base:armhf, git, git-man, gnupg, gpgv, grep, groff-base, gzip, hdparm, hostapd, hostname, htop, ifupdown, info, initscripts, insserv, install-info, iproute, iptables, iputils-ping, isc-dhcp-client, isc-dhcp-common, kbd, keyboard-configuration, kmod, locales, login, logrotate, lsb-base, lsof, man-db, manpages, mawk, module-init-tools, mount, multiarch-support, nano, ncurses-base, ncurses-bin, net-tools, netbase, netcat-traditional, ntfs-3g, ntp, ntpdate, openssh-client, openssh-server, openssl, parted, passwd, pciutils, perl, perl-base, perl-modules, procps, ramlog, readline-common, rsync, rsyslog, screen, sed, sensible-utils, sudo, sysv-rc, sysvinit, sysvinit-utils, tar, tasksel, tasksel-data, toilet, toilet-fonts, traceroute, tzdata, u-boot-tools, uboot-envtools, udev, unzip, usbutils, util-linux, vim-common, vim-tiny, wget, whiptail, wireless-tools, wpasupplicant, xkb-data, xz-utils, zlib1g:armhf, root

It is set up to use the standard Debian repositories to add additional packages. As it's my preferred tool for headless servers, I've also added the repository for webmin.  Everything behaved as expected.


Quote from: Sloop
And please tell me: will I be able to install Cubian on the 8GB NAND Flash on Cubietruck and boot from there?

According to the documentation you can. You need to copy it to a micro SD card first, boot that, and then run the nand-install.sh script in the home directory for root (/root). I've not used this myself, but reading through it it looks OK and the equivalent script in the same directory for installing on a SATA drive worked fine for me. Please note that it isn't flagged as executable as shipped, you need to either chmod or intern it to get it to run.

Hope that helps

Bruce

(Edited: Clarified that you need to boot the micro SD)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 12, 2014, 03:18:20 am
Quote
? what did you change, where can I find detailled information about that modifications?

You might look through the process in the image build script to see what and how is changed.

https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/build.sh

It's documented as is - for experts I guess. There is no documentation for package ramlog but basically what it does is copy & switch logs to RAM at boot time and saves them to HDD on shut-down.

All those tweaks just helps getting more juice out.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 12, 2014, 06:34:23 pm
The build script (link, you posted), is that the installation procedure for this image offered here on that topic? Or is it the installation script of official Cubian? Thanks for your kind reply. If you don't matter, could you -please- explain to me how one should choose between official "Cubian" which is offered through cubian.org and your image posted on this thread? what will be different, better, similar ? How should a user decide if one or other will fit to its needs?

thank you so much
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 13, 2014, 02:47:56 am
The build script (link, you posted), is that the installation procedure for this image offered here on that topic?

Yes.

Quote
If you don't matter, could you -please- explain to me how one should choose between official "Cubian" which is offered through cubian.org and your image posted on this thread? what will be different, better, similar ? How should a user decide if one or other will fit to its needs?

Since I am the creator of image in this threat my judgement is corrupted. Don't ask me which is better :P I already write what I believe is the general difference. Both works but I can't know how good are other images since I don't work with them. I just briefly test some.

CubieBoard is not officially supported by Debian (https://wiki.debian.org/CubieBoard) so there is no official build.

Quote
How should a user decide if one or other will fit to its needs?

Test by themselves, rely on other people opinion, popularity ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Aotearoa on March 13, 2014, 03:31:58 am
could you -please- explain to me how one should choose between official "Cubian" which is offered through cubian.org and your image posted on this thread?
Cubian isn't official. Cubian.org is a registered domain name but the registration data is hidden through a proxy registration service.

User slovenia on the other hand doesn't try to hide his identity. Github (where Wheezy server development is hosted) gives his name, photo and website and the registration data for his website matches.
what will be different, better, similar ?
I haven't tried Cubian yet, but at one level Debian is Debian.

The reason I chose to try Slovenia's version first is that my first intended use for my Cubietruck is a headless server and Slovenia tries hard to create a bare minimum OS turned to act as a headless server. Being tuned is an obvious plus and minimal is a plus as it means that I have to deal with less of someone else's preferences.

As I understand it, Cubian is aimed at being a more general operating system.

If you're wanting a desktop, one major difference is that Cubian has a "Minimal LXDE with hardware accelerated" while Slovenia's Wheezy disables the hardware accelerator to release more memory. Again this is a trade-off to improve the performance as a desktop vs performance as a headless server.

NB: You can still get a desktop in Slovenia's Wheezy, but without hardware acceleration.

How should a user decide if one or other will fit to its needs?

If your intended use is desktop intensive you'll probably find Cubian a better choice.

If your intended use is headless server you'll find Slovenia's Wheezy is well worth trying.

Otherwise try them both.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 13, 2014, 06:21:55 pm
Hello again. I tried your image. I flashed my µSD card and were able to boot. As I realize the boot time is very short, so my CT boots very quick, WoW. I did not look into further details (kernel/boot settings, ramfs/tmpfs, CPU governor settings, noop/elevator settings, and so on...) but I am stuck with following problem:

I did "apt-get update && apt-get upgrade && apt-get dist-upgrade". Then I did "chmod +x /root/nand-install.sh" and executed the script with "/root/nand-install.sh". The installation told me to reboot the CT and re-execute that script which I did exactly that way. It took some minutes until it finished, and then I was told by the installation that the CT turns off and I should remove the µSD card. I did it. But when I turn on the CT it doesn't do anything, that means: it does NEITHER boot, NORE show any output on my display. Also no LED lights up except of the red power LED. No reaction.

What is wrong here?

EDIT: another question: is there a reason why you didn't implement the line "sunxi_fb_mem_reserve=16" in /boot/uEnv.ct ? As I realized in uEnv.ct you don't load MALI, so I think you can restrict the framebuffer without any problems to 16MB ? I am referring to that manual (http://linux-sunxi.org/Kernel_arguments). I am asking because "free -h" shows me total RAM amount of 1,9G but I would expect 2,0G of total RAM. I tried also Cubian image, and when I used all these boot parameters I had 2,0G total RAM. So I tried to use this line also in /boot/uEnv.ct but as soon as I enter it correctly, save the file, and reboot, my CT won't boot any more. why?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: MrDialUp on March 14, 2014, 11:09:52 am
Anybody who has complaints about this image should just go somewhere else.  It's pretty obvious Igor has put in a lot of FREE time and effort into producing what my experience tells me has to be one of the top two images for CT that are and have been available.   Look at the new "official" Android image for CT....nobody can get that work properly and Android is more or less the official OS for CT.  Yet Igor's image works fine and if it weren't for it, I would have probably lost interest out of frustration in my CT along time ago. 

Like I said, if you wanna complain then go make your own image.  I can't make one as I don't know how and I am thankful for all the time and attention Igor has put into this project.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ua3prq on March 15, 2014, 03:00:33 pm
All right !   :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: rose28357 on March 15, 2014, 03:52:58 pm
Then I did "chmod +x /root/nand-install.sh" and executed the script with "/root/nand-install.sh". The installation told me to reboot the CT and re-execute that script which I did exactly that way. It took some minutes until it finished, and then I was told by the installation that the CT turns off and I should remove the µSD card. I did it. But when I turn on the CT it doesn't do anything, that means: it does NEITHER boot, NORE show any output on my display. Also no LED lights up except of the red power LED. No reaction.

What is wrong here?
We need some secret boot files on nand which have to be in a secret nand memory before the first nand partition. Most of these copy to nand scripts don't have these boot0/boot1 files and do not set the magic boot byte in nand.

Read here  http://linux-sunxi.org/Installing_to_NAND#First_MB (http://linux-sunxi.org/Installing_to_NAND#First_MB)

The simple solution is to install a valid lubuntu to nand via phoenix/livesuit. Check if it is bootable. That provides the boot files to nand. Then execute the copy to nand script from your sdcard distro.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 17, 2014, 01:35:08 pm
@slovenia:

- I have tried what "rose28357" have answered relating to the non-working "nand-install.sh" script. I have installed PhoenixSuit, flashed Lubuntu Server Image into NAND, and afterwards I was able to boot Lubuntu from my NAND. That means it worked. Afterwards I executed your script under /root/nand-install.sh two times (with one reboot between as required) and it worked like a charm. The content of my µSD-card were copied successfully to NAND and I am able to boot without the µSD-card. Maybe you can implement this feauture into your next image release ?

- do you know why "free -h" shows me total RAM amount of 1,9G but I would expect 2,0G of total RAM? See my last posting I wrote with the exact explanation how I tried to adjust /boot/uEnv.ct and how it results that the Cubietruck is not booting any more. Is this a known issue or am I doing something wrong? Do I have to insert "sunxi_fb_mem_reserve=16" in front of "sunxi_no_mali_mem_reserve" ?? The original /boot/uEnv.ct looks like that:
Code: [Select]
root=/dev/mmcblk0p1
extraargs=console=tty0,115200 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
script=/boot/ct-hdmi.bin
kernel=/boot/uImage

Maybe you could give us some hints.

- The default disk scheduler is cfq. It implements Completely Fair Queuing and is a non optimal choice for flash based block devices. I have checked that with command "cat /sys/block/mmcblk0/queue/scheduler" or "cat /sys/block/sda/queue/scheduler". Both show as result, that cfq is used (in brackets). The common choice is using the "noop" or "deadline" scheduler by adding the elevator parameter to the kernel command line (/boot/cmdline.txt). Is it possible to change the elevator in Cubietruck to "noop" ? If so, how? I cannot find a /boot/cmdline.txt or similar, as I know it from my RaspberryPi. Where do I have to change this queue elevator setting?

- When I enter "mount" or "cat /etc/mtab" I see that the mount option "relatime" is used. I don't need that and you can get more performance when using "noatime,nodiratime" as mount option. But I have realized there is no /etc/fstab file. Where is that and how should I intergrate these mount options?

Thanks a lot in advance
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 17, 2014, 04:06:32 pm
Quote
I have tried what "rose28357" have answered relating to the non-working "nand-install.sh" script. I have installed PhoenixSuit, flashed Lubuntu Server Image into NAND, and afterwards I was able to boot Lubuntu from my NAND. That means it worked. Afterwards I executed your script under /root/nand-install.sh two times (with one reboot between as required) and it worked like a charm. The content of my µSD-card were copied successfully to NAND and I am able to boot without the µSD-card. Maybe you can implement this feauture into your next image release ?

This (workaround) way is currently the only way. We haven't found a better solution ... yet.

Quote
do you know why "free -h" shows me total RAM amount of 1,9G but I would expect 2,0G of total RAM? See my last posting I wrote with the exact explanation how I tried to adjust /boot/uEnv.ct and how it results that the Cubietruck is not booting any more. Is this a known issue or am I doing something wrong? Maybe you could give us some hints.

It's resolved in latest build (not published yet). Since I changed kernel version (to 3.4.79) and config I am not sure that just changing uEnv.ct (https://github.com/igorpecovnik/Cubietruck-Debian/tree/master/output) helps to solve this.

Quote
In your image you have implemented a script which will disable the LEDs at each system boot. This script is called /etc/init.d/disable_leds.sh and is integrated in update-rc.d to start automatically in runlevel 2. Just for testing purposes I have disabled this automatic start by executing this command "update-rc.d disable_led.sh remove". This will prevent the Cubietruck to put the LED brightness to zero. All LEDs lit now again. But I would like to know: Why does the blue LED blink every second two times? Where is a description for LED configuration? I'd like to configure the LEDs so I can see, if there is a network link available, if something is read/written to the µSD-card, and stuff like that. Any clues how to do that?

There is some default LED behaviour - search on the forum for info. For example: you can enable disk (sda) activity with:

Code: [Select]
echo disk-activity > /sys/devices/platform/leds-sunxi/leds/blue:ph21:led1/trigger

Quote
- The default disk scheduler is cfq. It implements Completely Fair Queuing and is a non optimal choice for flash based block devices. The common choice is using the noop or deadline scheduler by adding the elevator parameter to the kernel command line (/boot/cmdline.txt). Is it possible to change the elevator in Cubietruck to "noop" ? If so, how? I cannot find a /boot/cmdline.txt or similar, as I know it from my RaspberryPi.

- When I enter "mount" or "cat /etc/mtab" I see that the mount option "relatime" is used. I don't need that and you can get more performance when using "noatime,nodiratime" as mount option. But I have realized there is no /etc/fstab file. Where is that and how should I intergrate these options?

- I would also like to add some performance tweaks, like used on my RaspberryPi in file /etc/sysctl.conf:

Performance tuning should come when the rest is done. :P

Certain things are under testing and some tweaks are already in. Cubietruck is enough different from Raspberry that you can't just grab their numbers. I use ramlog, ramtmp, ram ...  and use "noatime,commit=300" in current test build, even without journaling (just for test).

Quote
vm.swappiness=10
vm.min_free_kbytes = 32768
vm.vfs_cache_pressure=50

We run the system without swap. Changing this does not make any difference.

Current I/O activity is very low and there is probably not much to be done.

Quote
If so, how? I cannot find a /boot/cmdline.txt or similar, as I know it from my RaspberryPi. Where do I have to change this queue elevator setting?

uEnv.txt is the file where you put in kernel parameters. But no necessary that those parameters are being accepted.

It's working! Just add elevator=noop to the and of the extraargs in uEnv.txt

Quote
default disk scheduler

I have to dig in to see If we can gain some.

I also applied over-clocking up to 1.2G - processor is on 480Mhz most of the time and when needed it boost to 1.2G. I am now running my production system on a decent SD card (3 x NAND speed) and the overall server response with all those tweaks is much better than few builds back! My wordpress blog (http://www.igorpecovnik.com/) (+some other webs and services) is running on it / tuned nginx + tuned mysql + WP super cache.

Thanks for sharing this.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 17, 2014, 04:39:23 pm
For example: you can enable disk (sda) activity with:
Code: [Select]
echo disk-activity > /sys/devices/platform/leds-sunxi/leds/blue:ph21:led1/trigger
Yes, I have found the necessary information. The command you explained will only be active for the current boot session. If you reboot the Cubietruck this change will not be persistent. So I converted /boot/ct-hdmi.bin to /boot/ct-hdmi.fex, adjusted this .fex file on the appropriate line, saved it and converted it back to .bin. So it is included after each system boot.

- When I enter "mount" or "cat /etc/mtab" I see that the mount option "relatime" is used. I don't need that and you can get more performance when using "noatime,nodiratime" as mount option. But I have realized there is no /etc/fstab file. Where is that and how should I intergrate these options?

Quote from: slovenia
I use ramlog, ramtmp, ram ...  and use "noatime,commit=300" in current test build, even without journaling (just for test).
ok. In my opinion no journaling would not be an option, but as you said you are just testing. But I really am interested, on how to implement "nodiratime,noatime" for my mounted µicroSD-card and my mounted /dev/sda". I am missing /etc/fstab. Where is it? How is that handled? Please provide us some more information about that scheme.

Quote from: slovenia
Just add elevator=noop to the and of the extraargs in uEnv.txt
I would like to test that. I would also like to use the updated uEnv.ct settings you posted (https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/) but I am afraid that my Cubietruck won't boot when something goes wrong. How can I protect myself? Can I do a backup of /boot/uEnv.ct and in case my CT doesn't boot, how can I debug and boot into emergency mode to revert the uEnv.ct ? Just in case something goes wrong.

Thank you.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 17, 2014, 05:06:33 pm
Quote
I am missing /etc/fstab. Where is it?

It should be there but empty file by default. Just create /etc/fstab:

Code: [Select]
/dev/sda1       /ext        ext4    defaults,noatime,commit=600,errors=remount-ro        0      1
/dev/mmcblk0p1  /           ext4    defaults,noatime,commit=600,errors=remount-ro        0       0

and reboot. Next time will be mounted as written in fstab.

Quote
I am afraid that my Cubietruck won't boot when something goes wrong. How can I protect myself?

You can mount SD card on some linux if something goes wrong or preserve a working linux on NAND.

If you want to test latest build:
http://cubie.nobrainz.de/downloads/CTDebian_1.8_hdmi.zip

It will be changed before release but there is 2000MB and elevator is working.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 17, 2014, 05:24:47 pm
Well, you're updated uEnv.ct settings  (https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/output/uEnv.ct) worked fine. I did "cd /boot && cp uEnv.ct uEnv.bak" and deleted all the previous content of my uEnv.ct and inserted the new one from your updated link you posted. I rebootet my cubietrcuk and it seemed to work fine. 'free -h' showed me 2.0Gigs of total RAM.

Then I re-edited /boot/uEnv.ct and added the text "elevator=noop" to the end of the extraargs line. The complete /boot/uEnv.ct looked like that:
Code: [Select]
console=tty0
root=/dev/mmcblk0p1 rootwait
extraargs=console=ttyS0,115200 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0 elevator=noop
script=/boot/ct-hdmi.bin
kernel=/boot/uImage

I saved and rebooted and now I have the problem that my cubietruck doesn't boot anymore :( damn it! What should I do know?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 17, 2014, 05:39:31 pm
Well, you're updated uEnv.ct settings  (https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/output/uEnv.ct) worked fine. I did "cd /boot && cp uEnv.ct uEnv.bak" and deleted all the previous content of my uEnv.ct and inserted the new one from your updated link you posted. I rebootet my cubietrcuk and it seemed to work fine. 'free -h' showed me 2.0Gigs of total RAM.

Then I re-edited /boot/uEnv.ct and added the text "elevator=noop" to the end of the extraargs line. The complete /boot/uEnv.ct looked like that:
Code: [Select]
console=tty0
root=/dev/mmcblk0p1 rootwait
extraargs=console=ttyS0,115200 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0 elevator=noop
script=/boot/ct-hdmi.bin
kernel=/boot/uImage

I saved and rebooted and now I have the problem that my cubietruck doesn't boot anymore :( damn it! What should I do know?

Maybe this feature is working just in latest 3.4.79 kernel.  ??? It's hard to say without any log / console output. Also editing uEnv.txt is tricky - file must be clean.

You need a working linux to correct (edit) txt file on sdcard. If you are doing this on NAND, boot from fresh / working SD system ... mound / edit / save / reboot.

For testing - download image in previous post. All this is working 100% ... but it's no-journal + over-clocked to 1.25, ... not recommended for production.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 17, 2014, 06:10:35 pm
Ok, I did boot another Linux and re-edited my uEnv.txt. Well, I cannot imagine that elevator=noop does not work with Kernel 3.4.75

Just tried to switch it manually while I am online with the system:
Code: [Select]
# cat /sys/block/mmcblk0/queue/scheduler
noop deadline [cfq]

# echo noop > /sys/block/mmcblk0/queue/scheduler

# cat /sys/block/mmcblk0/queue/scheduler
[noop] deadline cfq

You see, that it works. The question is, what is the correct syntax to insert this setting into the bootloader /boot/uEnv.ct ?

EDIT: I have found the right solution (for my needs). Listen, the elevator settings "noop" or "deadline" are quite good for SSD disks, flash disks, or even cached RAID systems. But for a normal hard-disk you should use "cfq" (=the default way). In my case, I use the µicroSD-card for boot+root system, but I also have attached a 2.5" harddisk at the SATA port. So in my case the best setting would be to use "noop" for the µicroSD card (/dev/mmcblk0), but "cfq" for the hard-disk (/dev/sda). That is done by:

- installing the package "sysfsutils" with "apt-get install sysfsutils"
- editing configuration file /etc/sysfs.conf and adding a new line on the bottom of the file looking like that:
Code: [Select]
block/mmcblk0/queue/scheduler = noop- save the file /etc/sysfs.conf and reboot

Now if you check ==> the µicroSD card uses "noop" and the hard-disk uses "cfq", just like it should ;)
Code: [Select]
# cat /sys/block/sda/queue/scheduler
noop deadline [cfq]

# cat /sys/block/mmcblk0/queue/scheduler
[noop] deadline cfq

HTH,
cheers...
Sloop
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: jedie on March 18, 2014, 06:01:33 am
First: good package here! Seems to work fine... But:
Gigabit ethernet transfer rate is around 50% of its theoretical max rate (hardware or firmware issue)
I have installed samba and test the data rate... It's very, very poor :(
The RAM usage, load average and the current system utilisation is very low. So it the samba data rate to low because of the ethernet bottleneck?

Any idea to fix that?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 18, 2014, 07:10:50 am
First: good package here! Seems to work fine... But:
Gigabit ethernet transfer rate is around 50% of its theoretical max rate (hardware or firmware issue)
I have installed samba and test the data rate... It's very, very poor :(
The RAM usage, load average and the current system utilisation is very low. So it the samba data rate to low because of the ethernet bottleneck?

Any idea to fix that?

Yes. The problem is either in driver or in hardware design. If I had an idea I would already fix this :P

C'mon. It's poor, yes! ... but very, very poor?  :P
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: jedie on March 18, 2014, 07:35:10 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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 18, 2014, 08:21:08 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%.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: Sloop on March 18, 2014, 08:33:27 am
@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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: jedie on March 18, 2014, 08:48:41 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!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: jedie on March 19, 2014, 05:15:18 am
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:
Code: [Select]
socket options = TCP_NODELAY SO_RCVBUF=65535 SO_SNDBUF=65535With 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%
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ua3prq on March 21, 2014, 01:25:46 pm
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!

Code: [Select]
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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 21, 2014, 01:51:02 pm
Quote
It 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  :-[
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ua3prq on March 21, 2014, 02:15:42 pm
Thanks!

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

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
# bcmdhd
# if you want access point mode, load wifi module this way: bcmdhd op_mode=2
I can not find WiFi  :-[
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 21, 2014, 03:43:54 pm
Thanks!

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

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
# 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 ...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ua3prq on March 22, 2014, 02:54:58 pm
Ye!
It's ok now!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: 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

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ua3prq on March 23, 2014, 03:18:36 am
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
Code: [Select]
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:~#
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 23, 2014, 03:30:21 am
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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: RobinS on March 23, 2014, 06:16:44 am
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
 1  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
 3  init7.nikhef.nl-ix.net (193.239.116.84)  17.938 ms  18.292 ms  18.210 ms
 4  r1nue2.core.init7.net (77.109.140.158)  41.509 ms  42.790 ms  42.631 ms
 5  r1nue1.core.init7.net (77.109.140.153)  42.853 ms  42.798 ms  42.716 ms
 6  gw-hetzner.init7.net (77.109.135.102)  42.626 ms  106.854 ms  40.000 ms
 7  core12.hetzner.de (213.239.245.25)  40.333 ms  40.530 ms  40.692 ms
 8  core22.hetzner.de (213.239.245.213)  42.924 ms  42.843 ms  42.604 ms
 9  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
 1  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
 3  amsix.sara.ams.spxs.net (195.69.145.99)  31.645 ms  31.646 ms  31.873 ms
 4  vl647.ffmxs11.ix.ffm.spxs.net (212.211.255.73)  163.689 ms  163.537 ms  163.
605 ms
 5  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:~#
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 23, 2014, 11:58:22 am
Quote
I 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:
Code: [Select]
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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: RobinS on March 23, 2014, 05:05:20 pm
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


Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: jedie on March 24, 2014, 09:50:45 am
Thanks!

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

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
# 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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: RobinS on March 24, 2014, 03:00:19 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

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 24, 2014, 04:51:26 pm
Quote
Its 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.

Quote
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.

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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: RobinS on March 24, 2014, 05:48:04 pm
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

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: MrDialUp on March 25, 2014, 12:46:31 am
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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: jademonkee on March 25, 2014, 02:21:24 am
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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 25, 2014, 03:20:40 am
Quote
I 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  (https://github.com/igorpecovnik/Debian-micro-home-server)what is my setup. I use latest ( test / unpublished / not much different) image even with some overclock, no swap needed.

Quote
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.

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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: jademonkee on March 25, 2014, 05:56:21 am
Fantastic news on all accounts - thanks for all the information.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: 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 (http://www.cubieforums.com/index.php?topic=1511.msg13995#msg13995)

does anybody know about kernel updates?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 26, 2014, 03:23:53 pm
Hello Board,

maybe on this thread I can get help with this:

http://www.cubieforums.com/index.php?topic=1511.msg13995#msg13995 (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)  (http://www.cubieforums.com/index.php?topic=1413.0)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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: ua3prq on March 26, 2014, 03:36:19 pm
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...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: edoline on March 26, 2014, 05:22:23 pm
Hello Board,

maybe on this thread I can get help with this:

http://www.cubieforums.com/index.php?topic=1511.msg13995#msg13995 (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)  (http://www.cubieforums.com/index.php?topic=1413.0)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!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: 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 (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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on March 27, 2014, 03:47:59 am
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 (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 :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: edoline on March 27, 2014, 03:40:02 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 (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.
Yes, but my root partition is there, so in my "uEnv.txt" file is nothing containing nanda. Therefore if the kernel uses nanda or nand1, it will not critical for the update. My boot partition is on the nand part, yes.

p.s.
My blog is running on my Cubie and when I test new image web page goes offline for some minutes :)
Nice. I use the cubietruck for an owncloud instance  :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: pee_bee on March 27, 2014, 03:44:36 pm
hi slovenia,

The /etc/apt/sources.list in the 1.8hdmi image is a shortened version of that in the 1.7hdmi image - the following command produces an error :- apt-get -y install xorg.
Is there any problem with using /etc/apt/sources.list from the 1.7hdmi image?

Thanks for your work and images. 
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: slovenia on March 27, 2014, 06:31:33 pm
hi slovenia,

The /etc/apt/sources.list in the 1.8hdmi image is a shortened version of that in the 1.7hdmi image - the following command produces an error :- apt-get -y install xorg.
Is there any problem with using /etc/apt/sources.list from the 1.7hdmi image?

Thanks for your work and images.

The list is now auto generated at first boot. It should point to your local Debian mirror and the script looks OK.

Can you post the content?

You can use the one from 1.7

Sent from my Dell Streak using Tapatalk 2

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: pee_bee on March 27, 2014, 07:51:00 pm
hi slovenia,
I have reverted to 1.7 for other reasons. What exactly do you use at first boot - hardware scan? [not detected location I hope! I hate google]

Thanks
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: slovenia on March 28, 2014, 01:04:02 am
hi slovenia,
I have reverted to 1.7 for other reasons. What exactly do you use at first boot - hardware scan? [not detected location I hope! I hate google]

Thanks

The command is this:

netselect-apt -s -n -o /etc/apt/sources.list

Default list (equal to all older images) remain intact under sources.list.1234 (just some random number). In case of failure (no network) it does not produce anything.

If this does not work good enough I rather remove it.  :-\ It's not that helpful.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: audioelements on March 28, 2014, 03:47:50 pm
Hi Slovenia,

I think you have heard enough praises for your package. Thanks so much for the knowledge and the efforts. I have tried Linux but never into it until I got a raspi and recently a CT. There are so much fun and potentials there.

I wanted to modify your script to make some small changes (leds, etc), more like to learn this. I copied the whole package to my local drive (Ubutu 12.4 desktop). In the console I followed the commends. The process went normal until after "loading the basic system". It showed me something like "the $DEST >sd>output> folder (I am not in front of my linux computer now, could not remember very well) for the led control program was not exist. Then it stopped. Would that be a "root" user problem? I did use "sudo". or was that because I used the desktop version and the terminal console? Thanks a lot!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: twist on March 29, 2014, 11:03:21 am
Can I update from 1.7 without new install?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: slovenia on March 29, 2014, 01:07:04 pm
Can I update from 1.7 without new install?

Not simple way. You can dl both images, mount them and create list and zip of updated files. Since we have kernel change there will be many of them. Then you unzip this on 1.7 install.

I can prepare this in a week or so.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: sinum on March 29, 2014, 06:39:23 pm
Hi and thanks for this nice clean Debian,

I get my Cubietruck today and use your 27.03. build as base for MPD-Server. I miss the sunxi S/PDIF modules. Is there a way to get them without compiling the Kernel? I only got basic Linux knowledge. ::)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: slovenia on March 30, 2014, 02:30:25 am
Hi and thanks for this nice clean Debian,

I get my Cubietruck today and use your 27.03. build as base for MPD-Server. I miss the sunxi S/PDIF modules. Is there a way to get them without compiling the Kernel? I only got basic Linux knowledge. ::)

Spdif module is enabled in kernel and it should work.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: rahuldel on March 30, 2014, 03:29:05 am
How can I re-enable the LED's?

Also I have installed to HDD using the Sata script and have lost the login option which shows the HDD Temp etc? If someone can please tell me how to re-enable that as well.

Thanks.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: sinum on March 30, 2014, 04:08:54 am
Nice, that's why I search the Modules. :D I add this to /etc/mpd.conf

audio_output {
        type            "alsa"
        name            "sunxi-sndspdif"
        device          "hw:1,0"       
        use_mmap        "yes"
        auto_resample   "no"
        auto_channels   "no"
}

and now it works, i get the the MPD-Server running. :)

My Setup sounds really great for its price. Cambridge DacMagic Plus, Amp s.m.s.l SA50+linear Power Supply, Speakers Cantare Spirit, Subwoofer Klipsch SW110 and CubieTruck+SSD.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: sinum on March 30, 2014, 04:20:45 am
How can I re-enable the LED's?
Comment the lines in etc/init.d/disable_led.sh should work, I use rcconf to enable LED's but you can't disable them again with rcconf, maybe a Bug?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: ba on March 30, 2014, 02:13:09 pm
Hello,

I got my second cubietruck with 1.000 GB SATA 2,5" HDD. Just downloaded the 1.8 und put it to SD-Card.

Reboot und connected Ethernet and installed to sata.

Everything works fine.

Great work. Much easier than the first cubietruck.

Ciao

Alexander
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: sinum on March 30, 2014, 07:40:39 pm
Is there a easy way to uninstall "USB redirector", I can't find the uninstall script?

It's usefull for Linux Clients but a Registration Fee of $70 for Windows Clients is a joke.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: pattinik on March 30, 2014, 10:43:03 pm
Hi guys, I'm running the version 1.7 on the nand. Now I want to upgrade to the 1.8. Should I just write the image on the sd card and restart the nand-install script? I will loose my actual configuration doing this?

Tnxxxx

Ciauz
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: slovenia on March 31, 2014, 02:17:30 am
Hi guys, I'm running the version 1.7 on the nand. Now I want to upgrade to the 1.8. Should I just write the image on the sd card and restart the nand-install script? I will loose my actual configuration doing this?

Tnxxxx

Ciauz

Yes, the install script nuke and overwrite NAND. You will need upgrade.zip which is not ready yet ... this file contain only changed files and it should be safe to unzip it on / ... backup is recommended.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: slovenia on March 31, 2014, 07:17:46 am
Is there a easy way to uninstall "USB redirector", I can't find the uninstall script?

It's usefull for Linux Clients but a Registration Fee of $70 for Windows Clients is a joke.

In latest images is not enabled by default. If you use 1.7 or older just do:

disable
Code: [Select]
update-rc.d rc.usbsrvd remove
enable it back
Code: [Select]
update-rc.d rc.usbsrvd defaults
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: Sloop on March 31, 2014, 10:13:32 am
Hi all. I was away for some days/weeks and now I am reading all the time about 1.8 version.

1) What exactly are the differences between version 1.7 and 1.8 and is there a Step-By-Step Manual for 1.7 users which will explain the upgrade procedure?

2) I'd like also know what the USB redirector stuff is good for.

3) what are the proa/cons in your opinion between booting from NAND or microSD card? in general the microSD has better disk i/o access speed, but I have also red about some benchmark results where booting from NAND was quite faster than from booting of microSD card. Maybe this is due to loading small files while boot process? what do you guys think about?

-sent from my Smartberry Piphone-

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.3.2014
Post by: slovenia on March 31, 2014, 03:02:54 pm
Quote
1) What exactly are the differences between version 1.7 and 1.8 and is there a Step-By-Step Manual for 1.7 users which will explain the upgrade procedure?

There is a detailed change history on my Github repository (https://github.com/igorpecovnik/Cubietruck-Debian) and a changes summary on the project blog post (http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/). Today I also made a changed files update package - read first post (http://www.cubieforums.com/index.php?topic=1275.0).

Quote
I'd like also know what the USB redirector stuff is good for.

"Various scenarios" ? One example: you can attach some (also from linux unsupported) USB device which needs to be at the location where your Cubie is but needs to be attached to another device. Anyway I removed service from start-up in latest image - but I left it inside and you can enable it if needed.

Quote
what are the proa/cons in your opinion between booting from NAND or microSD card? in general the microSD has better disk i/o access speed, but I have also red about some benchmark results where booting from NAND was quite faster than from booting of microSD card. Maybe this is due to loading small files while boot process? what do you guys think about?

I am using some solid class 10. I ran some quick benchmarks and it looks like it's 3x faster than NAND. In real-world this might not be that important since I/O operations were significantly brought down. I think booting from SD should be faster unless you find some old and scrappy card.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: Astrofreak85 on April 01, 2014, 06:56:51 am
Hi,

great image so far !!

Two things to ask:

1. in the MOTD I get a strange reading for HDD-Temp: the HDD-Type?!
2. Also "Free-RAM" seem to be very low?! Or am I misinterpreting something?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: slovenia on April 01, 2014, 07:20:49 am
Hi,

great image so far !!

Two things to ask:

1. in the MOTD I get a strange reading for HDD-Temp: the HDD-Type?!
2. Also "Free-RAM" seem to be very low?! Or am I misinterpreting something?

1.) What do you get if you do:
Code: [Select]
hddtemp /dev/sda
/dev/sda: ST3000DM001-1CH166: drive is sleeping

after wake:

hddtemp /dev/sda
/dev/sda: ST3000DM001-1CH166: 24°C

2.) What do you consider under very low?
I have "Free memory: 1444 kb" with bunch of services running ... you should have around 1900 kb.

What shows:
Code: [Select]
free -m
My readings:
Code: [Select]
free -m
             total       used       free     shared    buffers     cached
Mem:          2000        899       1100          0         10        334
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: Astrofreak85 on April 01, 2014, 07:33:58 am
1)

Code: [Select]
root@cubie:~# hddtemp /dev/sda
/dev/sda: WDC WD3200BEKT-60F3T1: 38°C

2)
Code: [Select]
root@cubie:~# free -m
             total       used       free     shared    buffers     cached
Mem:          2000        231       1768          0         16        146
-/+ buffers/cache:         68       1931
Swap:            0          0          0

So I assume it's not "kb" but "Mb"... ;)

This is what my MOTD says:

Code: [Select]
Load: 0,56, 0,25, 0,18 - Board temp: 31.4°C - Hard temp: WD3200BEKT-60F3T1: - Free memory: 1935 kb
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: slovenia on April 01, 2014, 08:02:36 am
@Astrofreak85

 :-[  :'( :P

Thanks! I will correct this ASAP.

fixed bashrc (https://raw.githubusercontent.com/igorpecovnik/Cubietruck-Debian/master/scripts/bashrc)

@ua3prq

Corrected. Tnx!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: MrDialUp on April 04, 2014, 07:34:59 am
For those of you with Logitech Squeezebox devices, I was able to successfully load Logitech Media Server on CT with Igor's 1.8 image by following the directions outlined for the Raspberry Pi here:  http://allthingspi.webspace.virginmedia.com/lms.php.

I have this working alongside Igor's Micro-Home server you can get here:  https://github.com/igorpecovnik/Debian-micro-home-server.

Also, if you want a Squeezebox compatible player for your Windows, Mac or Linux desktop, you can download "softsqueeze" here:  http://softsqueeze.sourceforge.net/
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: suchende on April 04, 2014, 01:00:48 pm
Is it possible to get an tar archive for the update? So it is possible to preserve the permissions.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: slovenia on April 04, 2014, 01:18:36 pm
Is it possible to get an tar archive for the update? So it is possible to preserve the permissions.

http://cubie.nobrainz.de/downloads/1.7-1.8.tgz

VGA version. Edit /boot/uEnv ... and change if you have HDMI out.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: david88 on April 06, 2014, 06:59:46 am
I've installed the update to 1.8, but have one question about the new kernel. I can see that the new files are in /lib/modules, but it seems my CT is still using the old one (I restarted several times):

uname -r
3.4.75-sun7i+

Do I have to do anything particular to enable the 3.4.79 kernel?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: slovenia on April 06, 2014, 09:25:06 am
I've installed the update to 1.8, but have one question about the new kernel. I can see that the new files are in /lib/modules, but it seems my CT is still using the old one (I restarted several times):

uname -r
3.4.75-sun7i+

Do I have to do anything particular to enable the 3.4.79 kernel?

If you already transferred the system to NAND than you need to copy kernel to the root of /dev/nand1

Maybe this is the case?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: david88 on April 07, 2014, 05:45:57 am
I've installed the update to 1.8, but have one question about the new kernel. I can see that the new files are in /lib/modules, but it seems my CT is still using the old one (I restarted several times):

uname -r
3.4.75-sun7i+

Do I have to do anything particular to enable the 3.4.79 kernel?

If you already transferred the system to NAND than you need to copy kernel to the root of /dev/nand1

Maybe this is the case?

No, it is installed on SD. But that's ok, no worries, I thought I might have missed something obvious. I will just do some Google research to find out how to switch Kernels (or leave the old one running).
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 31.3.2014
Post by: slovenia on April 08, 2014, 01:08:25 am
Quote
No, it is installed on SD. But that's ok, no worries, I thought I might have missed something obvious. I will just do some Google research to find out how to switch Kernels (or leave the old one running).

It was my fault. Somehow kernel binary was not included in the upgrade package  :-[

Files has been fixed. Try now.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: dziello on April 08, 2014, 05:07:23 am
Hi, I want use that image but I have problem with configuration. I need to ftp server and dlna server. I use on lubuntu minidlna and vsftpd when I configure it same as on lubuntu the minidlna and ftp dosn't work. I have a pleased for some tutorial how to configure dlna and ftp server to work with this image. Thanks for helpe  :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 08, 2014, 06:12:03 am
Hi, I want use that image but I have problem with configuration. I need to ftp server and dlna server. I use on lubuntu minidlna and vsftpd when I configure it same as on lubuntu the minidlna and ftp dosn't work. I have a pleased for some tutorial how to configure dlna and ftp server to work with this image. Thanks for helpe  :)

This image is similar to lubuntu, it's just more polished, stable and clean. Installation and configuration is similar / mostly equal.

To install you need to type only this:

sudo apt-get install minidlna vsftpd

... or/and check those two manuals:
http://bbrks.me/rpi-minidlna-media-server/
http://www.instructables.com/id/Raspberry-Pi-Web-Server/step9/Install-an-FTP-server/
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: dziello on April 08, 2014, 08:48:17 am
Thanks for help. I do like it is in tutorial and when I try connect to ftp server with login root and password 1234 then nothing happen. In lubuntu I connect with standard linaro/linaro and its ok. I don't know where I made mistake? :-[
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 08, 2014, 09:13:16 am
Root user is usually disabled by default. Add another user and try again.

Sent from my Dell Streak using Tapatalk 2

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: dziello on April 08, 2014, 09:32:12 am
Thanks for solved my problem everything working   :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: lafalken on April 12, 2014, 02:48:18 pm
Hi!

Must say that this was the best image I have been looking at so far and I have been searching for a while. Can't say that I'm much more than a newbie with hacking at the console, but I managed to move the rootfs to a sata disk  on 160GB where I made allmost everything to sda1 and about 400MB to sda2 and swap.

I had instruction for this made for the Raspberry Pi and where looking for where to write the settings for what filesystem it should load at boot but after some time I found that I could write it in /boot/uEnv.ct but where not sure of all settings and arguments in that file. I only use my CT over ssh and could imagine that I could have some more memory if the HDMI and graphics where totaly shut down?

I have a simple home page running at second.zegor.se with typical LAMP config on a Rasperrry Pi and when I copied most of over to the CT it feelt like it was a bit slow or I have thought that it should have been a bit more resposive. Is there some performance settings I should look for, some tips that some could point me too?

Thanks a lot for a very good work so far and I hope you continue to develop it and put up more great images :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: Heisenberg on April 13, 2014, 10:16:18 am
Why is the total RAM reported as 2000MiB instead of 2048MiB? Is 48MiB reserved by the system?

Using iperf I get the following results: 450Mbps TX and 1Mbps RX. Why is the inbound performance so bad? I performed the RX test by switching the client and server roles. The Cubietruck is connected directly to the desktop machine. I get a the same result when going through a GbE switch. — disregard this until I investigate further.

Great image by the way — this is the closest we have come to the Cubietruck's promised functionality!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: dziello on April 13, 2014, 01:40:34 pm
I need help with hostapd configuration. I active hot spot on my CT with hostapd. Everything seems to be ok ssid is visible for my device as cubie but I cant connect (use standard password 12345678) - Problem with authentication. I dont change anything on hostapd.conf I wonder what goes wrong ? Thanks for help !
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 13, 2014, 02:49:14 pm
I need help with hostapd configuration. I active hot spot on my CT with hostapd. Everything seems to be ok ssid is visible for my device as cubie but I cant connect (use standard password 12345678) - Problem with authentication. I dont change anything on hostapd.conf I wonder what goes wrong ? Thanks for help !

This is the "manual":

Code: [Select]
# 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

First two things are mandatory, last is optional - you can use default password. Have you done all?

For debugging hostapd read this topic (http://www.cubieforums.com/index.php?topic=963.0).
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 13, 2014, 03:18:21 pm
Why is the total RAM reported as 2000MiB instead of 2048MiB? Is 48MiB reserved by the system?

Huh. This is the furthest we/i came with disabling reservation for graphics functions. I assume yes.

Quote
Great image by the way — this is the closest we have come to the Cubietruck's promised functionality!

Thanks  8) I am afraid yes  :'( Development is small but alive so we can expect improvements in near future. Even with some limitations the board is usable in broad scenarios.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 13, 2014, 03:43:23 pm
Hi!

Must say that this was the best image I have been looking at so far and I have been searching for a while. Can't say that I'm much more than a newbie with hacking at the console, but I managed to move the rootfs to a sata disk  on 160GB where I made allmost everything to sda1 and about 400MB to sda2 and swap.

I had instruction for this made for the Raspberry Pi and where looking for where to write the settings for what filesystem it should load at boot but after some time I found that I could write it in /boot/uEnv.ct but where not sure of all settings and arguments in that file. I only use my CT over ssh and could imagine that I could have some more memory if the HDMI and graphics where totaly shut down?

I have a simple home page running at second.zegor.se with typical LAMP config on a Rasperrry Pi and when I copied most of over to the CT it feelt like it was a bit slow or I have thought that it should have been a bit more resposive. Is there some performance settings I should look for, some tips that some could point me too?

Thanks a lot for a very good work so far and I hope you continue to develop it and put up more great images :)

Thanks. :D

This image is already tuned for command prompt only - graphic memory has been disabled, there are many performance tweaks regarding disk read/write operations, log is writing to ram, CPU is slightly over-clocked,... On the system level there is no much else to do.

One thing regarding performance came to my mind - if you use SSD drive on SATA than edit /etc/sysfs.conf and change block/sda/queue/scheduler = cfq to block/sda/queue/scheduler = noop

Further you need to tune your apache / nginx , SQL and Wordpress. Cubie is a way faster than PI and if you switched from it there should be a vivid difference. Check my blog (http://www.igorpecovnik.com/) responsiveness  for reference. I am running a bunch of stuff (https://github.com/igorpecovnik/Debian-micro-home-server) on CT and there is always some activity on it.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: dziello on April 14, 2014, 03:14:45 am
I need help with hostapd configuration. I active hot spot on my CT with hostapd. Everything seems to be ok ssid is visible for my device as cubie but I cant connect (use standard password 12345678) - Problem with authentication. I dont change anything on hostapd.conf I wonder what goes wrong ? Thanks for help !

This is the "manual":

Code: [Select]
# 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

First two things are mandatory, last is optional - you can use default password. Have you done all?

For debugging hostapd read this topic (http://www.cubieforums.com/index.php?topic=963.0).

Hi, I do everything like in tutorial I don't change anything from hostapd.conf I see from my pc and phone cubie access point bbut i can not connect with default password i change password or even I config without password and problem with connect is still the same.   
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 14, 2014, 04:15:17 am
Quote
Hi, I do everything like in tutorial I don't change anything from hostapd.conf I see from my pc and phone cubie access point bbut i can not connect with default password i change password or even I config without password and problem with connect is still the same.

It might be the problem with your router? You need to have it. DHCP server on it must be enabled otherwise wireless client won't get an IP address ... and it's recommended to use same security settings.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: Laire on April 15, 2014, 03:13:28 pm
Hello,

I installed this Image on my Truck on a SSD, until yesterday it works everything.

Today I reboot and I looks not like yesterday.

Boot Screen:

https://www.dropbox.com/s/8fritu6h685b51p/2014-04-15%2021.03.34.jpg

Login Screen:

https://www.dropbox.com/s/7wvhc2ngatlphsu/2014-04-15%2021.03.55.jpg


This is not the login screen from the Wheezy Image or? Also I can't login with root and 1234

But my Apache Server is running and my samba sharings are also there
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 15, 2014, 04:05:28 pm
Hello,

I installed this Image on my Truck on a SSD, until yesterday it works everything.

Today I reboot and I looks not like yesterday.

Boot Screen:

https://www.dropbox.com/s/8fritu6h685b51p/2014-04-15%2021.03.34.jpg

Login Screen:

https://www.dropbox.com/s/7wvhc2ngatlphsu/2014-04-15%2021.03.55.jpg


This is not the login screen from the Wheezy Image or? Also I can't login with root and 1234

But my Apache Server is running and my samba sharings are also there

From your screenshot it looks O.K.

Installation to SATA or NAND is just mirroring (rsync-ing) the current state of the system from SD card - together with (changed?) root password. Boot remains on SD and one kernel parameter is changed - "where is new root filesystem".
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: supperzappy on April 17, 2014, 10:42:05 am
hey there,

i usually don't register at forums like these, but i did just to say thank you, slovenia, for this piece of great work. i got a cubietruck just the other day and got it running within less than 2 hours. i've had a raspi for a couple of months but i got tired especially of the slow network/usb interface. cubie looks a lot more promising.
and your tweaks to reduce the strain on the flash memory modules are an excellent addition.

THANKS AGAIN!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: marcelpo on April 18, 2014, 08:08:04 am
I would like to state a thanks for this image as well.

I am involved in building a large capacity Cubietruck based hosting platform, and to achieve the high capacity, we placed a great amount of Cubies in a cluster.
Slovenia's image proved to be by far the most stable and best performance aimed one around.

For the cluster we needed a few kernel patches to be able to use IPVS and Ldirectord on the loadbalancer and to fix ARP problems on the cluster nodes.   
Since this was pretty straight forward and does not harm anything else, it might be a good idea to include them in the image by default ?  I think a lot of people would like the idea of clustering, and I can tell you it works like a charm :)

The required kernel patches (combined package)  for the 3.4 kernel can be found here :

http://www.ssi.bg/~ja/patch-3.4-ja1.diff



Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: AndiBcool on April 18, 2014, 09:41:51 pm
Hello Igor,

many thanks for this nice image, its working great. I also did install your mini Home server went through with no problems.
However since im a Noob when it comes to Linux i have some questions.
How can i scan to images in console mode ?

TV Headend works well but i think the Kernel is missing drivers for TV USB devices.
In order to use USB Devices i need to add firmware and driver info to the kernel.
I found some instrucitions but it seems i need some kind of Linux headers.
http://git.linuxtv.org/cgit.cgi/media_build.git/log/

Code: [Select]
sudo apt-get install build-essential checkinstall git patchutils libproc-processtable-perl
sudo apt-get install linux-headers-$(uname -r)
mkdir ~/rtl2832u/
cd ~/rtl2832u/
git clone git://linuxtv.org/media_build.git
cd media_build
./build
sudo make install
sudo checkinstall -D --install=no --maintainer=user --pkgname=rtl2832u

Alternative for my USB Device i found this github https://github.com/valtri/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0

But i still need the headers somehow to compile.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 19, 2014, 03:05:58 am
Quote
How can i scan to images in console mode ?

With scanimage   ;)

Few examples that I am using, tweaked for my scanner hardware.

Code: [Select]
# color scan to file @ shared directory at 600 DPI and converted to JPG
scanimage -l 1 -t 1 -x 209 -y 296 --resolution 600 --mode Color --swcrop=yes --swdespeck=yes | convert - /tmp/image.jpg

# lineart scan to file @ shared directory at 600 DPI, some clearing and downsample to 300 DPI / because scanner is making troubles at 300 / than convert to PDF
scanimage -l 1 -t 1 -x 209 -y 296 --resolution 600 --format=tiff --mode Lineart --swcrop=yes --swdespeck=yes | convert  -threshold 65% -gravity center -resample 300  -extent 2480x3507 - $TMPFILE
tiff2pdf $TMPFILE -o $TMPPDF

Quote
In order to use USB Devices i need to add firmware and driver info to the kernel.
I found some instrucitions but it seems i need some kind of Linux headers.

... headers or kernel source. I forgot to include them in the image. Here they are, uncompress to default location /usr

headers-3.4.79.tgz (https://www.mediafire.com/?j72uuh8h9q1xw2n)

I hope you will manage to compile. Good luck.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 19, 2014, 03:40:04 am
I would like to state a thanks for this image as well.

I am involved in building a large capacity Cubietruck based hosting platform, and to achieve the high capacity, we placed a great amount of Cubies in a cluster.
Slovenia's image proved to be by far the most stable and best performance aimed one around.

For the cluster we needed a few kernel patches to be able to use IPVS and Ldirectord on the loadbalancer and to fix ARP problems on the cluster nodes.   
Since this was pretty straight forward and does not harm anything else, it might be a good idea to include them in the image by default ?  I think a lot of people would like the idea of clustering, and I can tell you it works like a charm :)

The required kernel patches (combined package)  for the 3.4 kernel can be found here :

http://www.ssi.bg/~ja/patch-3.4-ja1.diff

Thanks! :P :D Clustering Cubies must be an interesting experience ... happy to hear more about the project.

I found one enough for my usage but it is good to be prepared :P I will try to add this functionality to the next release.

Without help from the Cubie community it would be hard for me to get this far. Thanks goes to all who is involved! I am also satisfied & happy with the image and will continue to develop.

@supperzappy

Thanks! 8)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: marcelpo on April 19, 2014, 10:50:38 am

Thanks! :P :D Clustering Cubies must be an interesting experience ... happy to hear more about the project.


It is interesting.  Actually with a LVS-TUN based setup it is possible to reach 700Mbit+ output of each Cubie, while all requests are handled by the Load Balancer (another Cubie ofc.)

One thing however came up while building this, that is VLAN support of the Cubietruck Gbit Ethernet NIC is really poor.  It seems to work when you configure it, however once you measure the throughput it is about 5-10% of the throughput without VLAN tagging.
I found out that in fact the kernel is generating GMAC debug messages for every VLAN frame detected, so that makes sense with regards to performance.....  I'm not sure if that is a bug, but a kernel developer should be able to fix that. (Unfortunately I'm not one myself :( )
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: AndiBcool on April 19, 2014, 08:12:30 pm
Hmm im sorry i dont get it.
I did look into the file and it contains a folder named include.
I did extract it to root/usr it did also overwrite some files but added a lot more to the usr directory.

when i put in:
Code: [Select]
root@cubie:/#  apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.4.79-sun7i
E: Couldn't find any package by regex 'linux-headers-3.4.79-sun7i'
I get this.

If i try to compile i get:
Code: [Select]
root@cubie:~/rtl2832u/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0# make clean
rm -f  *.o  *.ko *.mod.c .*.o.cmd  .*.o.d  .*.ko.cmd Module.symvers Module.markers modules.order
rm -rf .tmp_versions
root@cubie:~/rtl2832u/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0# make
make -C /usr/src/linux-headers-`uname -r` SUBDIRS=/root/rtl2832u/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0 modules
make: *** /usr/src/linux-headers-3.4.79-sun7i+: No such file or directory.  Stop.
make: *** [default] Error 2

I would guess the linux headers need to be in usr/src/ or usr/src/linux-headers-3.4.79-sun7i+
i looked into the tar file but could not locate that folder.
On Cubie folder /usr/src is empty

a ls in /usr/include shows this now
Code: [Select]
root@cubie:/usr/include# ls
aio.h                features.h      math.h      pthread.h    sudo_plugin.h
aliases.h            fenv.h          mcheck.h    pty.h        syscall.h
alloca.h             fmtmsg.h        memcached   pwd.h        sysexits.h
argp.h               fnmatch.h       memory.h    python2.7    syslog.h
argz.h               fstab.h         mntent.h    rdma         tar.h
ar.h                 fts.h           monetary.h  re_comp.h    termio.h
arm-linux-gnueabihf  ftw.h           mqueue.h    regex.h      termios.h
arpa                 _G_config.h     mtd         regexp.h     tgmath.h
asm                  gconv.h         net         resolv.h     thread_db.h
asm-generic          getopt.h        netash      rpc          time.h
assert.h             glob.h          netatalk    rpcsvc       ttyent.h
byteswap.h           gnu-versions.h  netax25     sched.h      ucontext.h
c++                  grp.h           netdb.h     scsi         ulimit.h
clif.h               gshadow.h       neteconet   search.h     unistd.h
complex.h            iconv.h         netinet     semaphore.h  usb.h
cpio.h               ifaddrs.h       netipx      setjmp.h     ustat.h
crypt.h              initreq.h       netiucv     sgtty.h      utime.h
ctype.h              inttypes.h      netlink     shadow.h     utmp.h
dirent.h             langinfo.h      netpacket   signal.h     utmpx.h
dlfcn.h              lastlog.h       netrom      sound        values.h
drm                  libgen.h        netrose     spawn.h      video
elf.h                libintl.h       nfs         stab.h       wait.h
endian.h             libio.h         nl_types.h  stdint.h     wchar.h
envz.h               libudev.h       nss.h       stdio_ext.h  wctype.h
err.h                limits.h        obstack.h   stdio.h      wordexp.h
errno.h              link.h          paths.h     stdlib.h     X11
error.h              linux           poll.h      string.h     xen
execinfo.h           locale.h        printf.h    strings.h    xlocale.h
fcntl.h              malloc.h        protocols   stropts.h

Maybe this is basic knowlege for a linux pro but when i search for informations on the net i dont find much help.

i would guess i need to create a new folder  usr/src/ or usr/src/linux-headers-3.4.79-sun7i+ and place the needed files in there. Maybe the*.h files but i dont know.

For me its pretty hard to learn because i often find faulty instructions.


 
Title: Solved
Post by: Rik on April 20, 2014, 03:32:27 am
Hi, Igor

Thanks for image, it works perfect (I installed additionally mpd, samba and vsftpd; planned lirc - I'm going to create digital music player with i2s bus). But I have problem with I2S bus output (I tried to run i2s bus in Master mode):

PB08 - no Data
PB05 - no masterclock
PB06 - bitclock 12.288 MHz
PB07 - wordclock 192 kHz

Bit- and wordclock are exixts all the time even if mpd service is stopped and frequency doesn't changes when I change 44.1/48 audiofile bitrate. Did you checked i2s output? Maybe I'm doing something wrong.

SOLVED. I forgot to change default "hw:0,0" to 2,0 for i2s output in the mpd.conf. But MCLK appears on PB05 only in 44.1 and 48 kHz bitrates.




Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 20, 2014, 02:40:53 pm
Quote
For me its pretty hard to learn because i often find faulty instructions.

You need a kernel source with :
Code: [Select]
git clone https://github.com/patrickhwood/linux-sunxi
cd linux-sunxi
curl https://raw.githubusercontent.com/igorpecovnik/Cubietruck-Debian/master/config/kernel.config > .config
make prepare
make scripts

... than compilation works.

I manage to compile: "RTL2832U driver modded for Linux kernel 3.0.0" but when I try to load the module I got error.

It's probably not compatible with current kernel. The author says that the driver is in alpha state so ... you can't expect much.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: AndiBcool on April 20, 2014, 08:59:14 pm
Thank you Igor and happy easter to you.
I apreaceate your help.
I got some other driver i can try from linux tv.
Will try later today.

Edit:
Code: [Select]
root@cubie:/# curl https://raw.githubusercontent.com/igorpecovnik/Cubietruck-Debian/master/config/kernel.config > .config
-bash: curl: command not found

Did
Code: [Select]
root@cubie:~/linux-sunxi# apt-get clean && apt-get update && apt-get install php5-curl
...
php5-curl is already the newest version.
Seems installed but command is not known.

Sorry to bother u guys with newbie stuff.
Maybe i try a fresh install, then again did only the things you told me and copy & paste the code.
Im cursed its always like that. 
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 21, 2014, 01:46:34 am
Quote
Thank you Igor and happy easter to you.

Tnx ... too much food  ;D

Quote
Seems installed but command is not known.

you need CLI curl:
Code: [Select]
apt-get install curl
You should prepare kernel source right for other module compilation too.

In case of further troubles I suggest you to open a new topic in proper forum. It might bring more help.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: Sloop on April 21, 2014, 12:13:02 pm
Anyone in here already tried to use slovenia's great and light-weight server image for using as XBMC media center? If a light-weight desktop environment is installed, like LMDE, and then XBMC media center, wouldn't it work? What do you think? I am looking for a fast and stable XBMC variant for using it with one of my cubietrucks.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: Sloop on April 22, 2014, 05:39:14 pm
I have flashed my microSD card with your latest 1.8 HDMI image. After my CT booted, I logged-in via SSH. But I am getting this error which I cannot explain:

Quote
root@cubie's password:

  ____      _     _      _                   _
 / ___|   _| |__ (_) ___| |_ _ __ _   _  ___| | __
| |  | | | | '_ \| |/ _ \ __| '__| | | |/ __| |/ /
| |__| |_| | |_) | |  __/ |_| |  | |_| | (__|   <
 \____\__,_|_.__/|_|\___|\__|_|   \__,_|\___|_|\_\


df: `/dev/sda1': No such file or directory
df: no file systems processed

Load: 0.01, 0.08, 0.05 - Board temp: 47.4°C - Hard temp: 34°C - Free memory: 1977 Mb

root@cubie:~#

Where does this df error come from ??

EDIT: Oh I found it ==> It comes from /root/.bashrc. The particular line is:
Code: [Select]
HDDFREE=$(df -h /dev/sda1 | grep sda | awk '{ print $4 " free"}')
Maybe you should correct this script, so it doesn't output any error for Cubietruck users who are NOT using a harddisk (=/dev/sda). As I am examining this /root/.bashrc the variable HDDFREE is not used somewhere else, so you should comment or remove this line IMHO.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 23, 2014, 01:22:08 am
Thanks for reporting. Will be fixed in next release ...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 23, 2014, 11:38:21 am
One thing however came up while building this, that is VLAN support of the Cubietruck Gbit Ethernet NIC is really poor.  It seems to work when you configure it, however once you measure the throughput it is about 5-10% of the throughput without VLAN tagging.

There is some recent patch (disabling debug) and I recompiled kernel with it. No idea if it really helps but you are welcome to test if you like.

http://www.mediafire.com/download/nk665vs5on0ho3s/kernel-3.4.79.vlanpatch.tgz
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: Heisenberg on April 24, 2014, 06:47:46 am
I am testing your image with a 7800mAh li-ion battery now.

I have tried editing /sys/class/power_supply/battery/energy_full_design but it seems to be read-only.

Where do I set the battery capacity? Thank you!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 24, 2014, 07:29:27 am
I am testing your image with a 7800mAh li-ion battery now.

I have tried editing /sys/class/power_supply/battery/energy_full_design but it seems to be read-only.

Where do I set the battery capacity? Thank you!

Theory: you can set those parameters in script files ... /boot/ct-vga.fex or /boot/ct-hdmi.fex You need to convert bin2fex , edit and than fex2bin back.

Kernel support for batteries is very basic (non existing?) ... i don't have battery but already heard complains ... It's related to all images and might be better in new (currently development) kernel since there are some changes in those areas. I was unsuccessfully trying to brought (related) functionality to current kernel  :(
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: Heisenberg on April 24, 2014, 09:47:16 am
I found a setting called pmu_battery_cap in ct-hdmi.fex (aka ct-vga.fex or script.fex) and edited that to set the battery capacity (default 2100mAh).

I will report back on my findings relating to battery support for your image and Cubian.

Results so far:

Problems so far:
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: suchende on April 24, 2014, 01:25:35 pm
I have got a problem with the main system. After a while the system doesn't respond (over lan). It seems to be a time span over 6 days. Unfortainely i didn't check, if the system would work on the terminal.
I didn't find anything intersting in the logs. Anyone who has got this problem too?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: slovenia on April 25, 2014, 05:11:14 am
I have got a problem with the main system. After a while the system doesn't respond (over lan). It seems to be a time span over 6 days. Unfortainely i didn't check, if the system would work on the terminal.
I didn't find anything intersting in the logs. Anyone who has got this problem too?

I never experienced system hang. I remember once that one USB device hanged but have no ideas where is this related to since at that time I didn't have time to investigate. My longest uptime is 18 days because I check new image builds and have to shut-down.

What can be? Power supply unit? Cubitruck rev. B issue (http://docs.cubieboard.org/faq/faqs)? Some strange USB device? Overclock is default in latest image - set back to defaults. It's also important to know if whole system hangs or just Ethernet which driver is also not well polished yet.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: marcelpo on April 25, 2014, 07:13:12 am
One thing however came up while building this, that is VLAN support of the Cubietruck Gbit Ethernet NIC is really poor.  It seems to work when you configure it, however once you measure the throughput it is about 5-10% of the throughput without VLAN tagging.

There is some recent patch (disabling debug) and I recompiled kernel with it. No idea if it really helps but you are welcome to test if you like.

http://www.mediafire.com/download/nk665vs5on0ho3s/kernel-3.4.79.vlanpatch.tgz


Ah cool ! I will definitely give this a try, and will let you know !! 

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: marcelpo on April 26, 2014, 12:53:10 pm
One thing however came up while building this, that is VLAN support of the Cubietruck Gbit Ethernet NIC is really poor.  It seems to work when you configure it, however once you measure the throughput it is about 5-10% of the throughput without VLAN tagging.

There is some recent patch (disabling debug) and I recompiled kernel with it. No idea if it really helps but you are welcome to test if you like.

http://www.mediafire.com/download/nk665vs5on0ho3s/kernel-3.4.79.vlanpatch.tgz


Ah cool ! I will definitely give this a try, and will let you know !!

OK this is looking good !  First I tried the kernel you uploaded, but meanwhile I discovered that things were evolving quickly around this issue, and in the end I recompiled the kernel with a clone of your latest GIT

And the results are very promising.  Doing a multiple stream test with iperf I easily achieve 650-700 Mbits output with VLAN tagging active.  An unexpected surprise was also that the CPU temperature is about 5 degrees cooler in average than before this fix.

So, I decided to revert my cluster back to VLAN based setup because of this (I have to use both private and public addresses, so not to mess things up too much I'd like to keep them in separate VLAN's)
it looks like everything is just fine now :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: Sloop on April 27, 2014, 03:18:08 am
Hi marcelpo. Could you tell us what and how exactly you did? I would be also interested in achieving better NIC throughput,because I also run a cluster with DRBD. Which kernel are you using at the moment?

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: marcelpo on April 27, 2014, 04:32:15 am
Hi marcelpo. Could you tell us what and how exactly you did? I would be also interested in achieving better NIC throughput,because I also run a cluster with DRBD. Which kernel are you using at the moment?

The cluster is just based on IPVS, using IPIP tunnelling to the members (5 +1 Cubietrucks) and using ldirectord for keeping things healthy.
For this to work you can use the latest kernel that Slovenia makes available through his github (Just clone and compile the whole bunch and extract the kernel yourself)  This version already includes all the patches.
On the cluster members make sure to hide the tunnel interface using sysctl and the hidden function, and use arptables to make sure there is no leakage of ARP messages from the tunnel interface.

Using the cluster of 5+1 Cubietrucks, the total output per Cubietruck is about 650-700 Mbps.
But please realise this is just serving chunks of http traffic as a webserver and has nothing to do with the throughput of a single Cubie with any other application.




Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on April 27, 2014, 06:46:22 pm
I notice that the zip file contains a .raw file.

Do I simply write this to an SD card?   Is it the same as an .img file 

Ooops!  Read the install instructions and see how to install.

--------------------------

I note that there is a 20% overclock - how can I disable the overclocking?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 28, 2014, 01:19:47 am
I notice that the zip file contains a .raw file.

Do I simply write this to an SD card?   Is it the same as an .img file 

Ooops!  Read the install instructions and see how to install.

--------------------------

I note that there is a 20% overclock - how can I disable the overclocking?

20% overclock is safe but if you really don't want this just edit:

/etc/init.d/cpufrequtils

and change from:
MAX_SPEED="1200000"
to:
MAX_SPEED="1010000"

than execute:

/etc/init.d/cpufrequtils restart
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pako on April 28, 2014, 03:38:16 am
Hello. My cubietruck sometimes stops working. I caught a moment in time when this happens. CFINTERACTIVE process loading  100% CPU and my cubietruck stops responding. If I understand correctly it CPU frequency process. how can I disable this?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 28, 2014, 03:53:22 am
Hello. My cubietruck sometimes stops working. I caught a moment in time when this happens. CFINTERACTIVE process loading  100% CPU and my cubietruck stops responding. If I understand correctly it CPU frequency process. how can I disable this?

Try to down-clock to default frequency as described in previous post. I experienced instability only on higher over-clock (+1.2) which is expected.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pattinik on April 28, 2014, 07:42:07 am
Hey, I noticed that you released a new version. Will you release also the update file, like in 1.8 version?

If not, which is the procedure to backup my system configurations (users,services and etc) and put all in the new version 1.9?

Like always, thank you for your job and your regular updates! 8)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Sloop on April 28, 2014, 07:50:00 am
+1

an update file is really appreciated. I did fresh-install 1.8 because there was no update file from 1.7 to 1.8 available in the release period of 1.8. I had to reinstall completely from scratch(version 1.8) and it tooks me days to setup my new system. I am using lots of services and custom settings on my CT and I don't want to have doing this again. Never ever :)

so, I also would appreciate an update file. At least a detailled CHANGELOG with provided files, so one could the upgrade manually.

EDIT: I just checked your changelog for v1.9. You said:

Quote
v1.9 / 27.4.2014

    Kernel headers included
    Clustering support
    Advanced IR driver with RAW RX and TX
    Bluetooth ready (working only with supported USB devices)
    Bugfixes: VLAN, login script, build script
    New packages: lirc, bluetooth

- The kernel did not change, didn't it? it's still patwoods 3.4.79,right?

- when do you need kernel headers? couldn't we install the kernel headers in case we really need, simply by "apt-get install ..." ?

- is HDMI-CEC supported ? that means: if I connect my CT through HDMI cable to my TV which is capable of providing HDMI-CEC, will the commands of me TV remote control reach the CT and vice-versa?

- can you tell us which bugfixes exactly were done?

- you said, new packages lirc and bluetooth. Are these two packages installed by default? can we remove them without any problems (if not needed) ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: AndiBcool on April 28, 2014, 08:28:06 am
Hello Igor, thank you for the update ! I will try it out in a few.

@Sloop

I guess he did include em because i need them to compile a USB TV Dongle driver for TV Headend.
You cant get the kernel headers by apt-get because its a custom kernel.


 
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on April 28, 2014, 08:51:23 am
I notice that the zip file contains a .raw file.

Do I simply write this to an SD card?   Is it the same as an .img file 

Ooops!  Read the install instructions and see how to install.

--------------------------

I note that there is a 20% overclock - how can I disable the overclocking?

20% overclock is safe but if you really don't want this just edit:

/etc/init.d/cpufrequtils

and change from:
MAX_SPEED="1200000"
to:
MAX_SPEED="1010000"

than execute:

/etc/init.d/cpufrequtils restart

Thanks!   I'm looking forward to testing this out on my new IBOX device which should arrive soon.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 28, 2014, 09:27:20 am
+1

an update file is really appreciated. I did fresh-install 1.8 because there was no update file from 1.7 to 1.8 available in the release period of 1.8. I had to reinstall completely from scratch(version 1.8) and it tooks me days to setup my new system. I am using lots of services and custom settings on my CT and I don't want to have doing this again. Never ever :)

so, I also would appreciate an update file. At least a detailled CHANGELOG with provided files, so one could the upgrade manually.

EDIT: I just checked your changelog for v1.9. You said:

Quote
v1.9 / 27.4.2014

    Kernel headers included
    Clustering support
    Advanced IR driver with RAW RX and TX
    Bluetooth ready (working only with supported USB devices)
    Bugfixes: VLAN, login script, build script
    New packages: lirc, bluetooth

- The kernel did not change, didn't it? it's still patwoods 3.4.79,right?

- when do you need kernel headers? couldn't we install the kernel headers in case we really need, simply by "apt-get install ..." ?

- is HDMI-CEC supported ? that means: if I connect my CT through HDMI cable to my TV which is capable of providing HDMI-CEC, will the commands of me TV remote control reach the CT and vice-versa?

- can you tell us which bugfixes exactly were done?

- you said, new packages lirc and bluetooth. Are these two packages installed by default? can we remove them without any problems (if not needed) ?

Kernel is not exactly the same - it has been patched for described bugs/features but if you are not using VLAN or clustering, don't bother with upgrade.

LIRC is a bit different, custom installation due to extra driver, BT is default.

CEC / HDMI - don't know if it supported.

For most users this update won't bring much. I made a script for creating upgrade file but I have to check it manually ... and this requires attention :(

Quote
I am using lots of services and custom settings on my CT and I don't want to have doing this again. Never ever

Check this script
https://github.com/igorpecovnik/Debian-micro-home-server/tree/master/backup%20and%20restore

With something similar you can do this in no time  8)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 28, 2014, 09:34:45 am
Hey, I noticed that you released a new version. Will you release also the update file, like in 1.8 version?

If not, which is the procedure to backup my system configurations (users,services and etc) and put all in the new version 1.9?

Like always, thank you for your job and your regular updates! 8)

Thanks. I will create an update later today or latest in a day or two ...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pattinik on April 28, 2014, 03:30:23 pm
Thanks. I will create an update later today or latest in a day or two ...

You are the man!  ;D
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Rik on April 29, 2014, 12:44:13 pm
Can't run IR in 1.9 version: no event for IR device in /proc/bus/input/devices

Some lines from boot log are:
(filtered by 'sunxi_ir')


Code: [Select]
[   13.118056] sunxi_lirc sunxi_lirc.0: lirc_dev: driver sunxi_lirc registered at minor = 1
[   13.132234] sunxi_lirc: driver registered!
[   13.254928] [<c00922d4>] (request_threaded_irq+0xb0/0x140) from [<bf2d60ac>] (ir_init+0xac/0x2cc [sunxi_ir])
[   13.272835] [<bf2d60ac>] (ir_init+0xac/0x2cc [sunxi_ir]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[   25.679498] [<c00922d4>] (request_threaded_irq+0xb0/0x140) from [<bf2da0ac>] (ir_init+0xac/0x2cc [sunxi_ir])
[   25.697401] [<bf2da0ac>] (ir_init+0xac/0x2cc [sunxi_ir]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[  650.186978] [<c00922d4>] (request_threaded_irq+0xb0/0x140) from [<bf2ea0ac>] (ir_init+0xac/0x2cc [sunxi_ir])
[  650.204897] [<bf2ea0ac>] (ir_init+0xac/0x2cc [sunxi_ir]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[  974.348167] [<c00922d4>] (request_threaded_irq+0xb0/0x140) from [<bf2ee0ac>] (ir_init+0xac/0x2cc [sunxi_ir])
[  974.366084] [<bf2ee0ac>] (ir_init+0xac/0x2cc [sunxi_ir]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[  997.597179] [<c00922d4>] (request_threaded_irq+0xb0/0x140) from [<bf2f20ac>] (ir_init+0xac/0x2cc [sunxi_ir])
[  997.615111] [<bf2f20ac>] (ir_init+0xac/0x2cc [sunxi_ir]) from [<c00085b8>] (do_one_initcall+0x34/0x174)


and the end of log:


Code: [Select]
[  974.294982] IRQ handler type mismatch for IRQ 37
[  974.302223] current handler: RemoteIR
[  974.313474] [<c0014d94>] (unwind_backtrace+0x0/0x138) from [<c00921d8>] (__setup_irq+0x384/0x3d0)
[  974.330342] [<c00921d8>] (__setup_irq+0x384/0x3d0) from [<c00922d4>] (request_threaded_irq+0xb0/0x140)
[  974.348167] [<c00922d4>] (request_threaded_irq+0xb0/0x140) from [<bf2ee0ac>] (ir_init+0xac/0x2cc [sunxi_ir])
[  974.366084] [<bf2ee0ac>] (ir_init+0xac/0x2cc [sunxi_ir]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[  974.383469] [<c00085b8>] (do_one_initcall+0x34/0x174) from [<c007f3e4>] (sys_init_module+0xe18/0x1cd0)
[  974.400680] [<c007f3e4>] (sys_init_module+0xe18/0x1cd0) from [<c000e980>] (ret_fast_syscall+0x0/0x30)
[  983.382331] wlan0: IPv6 duplicate address fd75:1f74:fd55:0:9a3b:16ff:fe81:3967 detected!
[  988.702238] wlan0: IPv6 duplicate address fd75:1f74:fd55:0:9a3b:16ff:fe81:3967 detected!
[  997.543952] IRQ handler type mismatch for IRQ 37
[  997.551199] current handler: RemoteIR
[  997.562462] [<c0014d94>] (unwind_backtrace+0x0/0x138) from [<c00921d8>] (__setup_irq+0x384/0x3d0)
[  997.579342] [<c00921d8>] (__setup_irq+0x384/0x3d0) from [<c00922d4>] (request_threaded_irq+0xb0/0x140)
[  997.597179] [<c00922d4>] (request_threaded_irq+0xb0/0x140) from [<bf2f20ac>] (ir_init+0xac/0x2cc [sunxi_ir])
[  997.615111] [<bf2f20ac>] (ir_init+0xac/0x2cc [sunxi_ir]) from [<c00085b8>] (do_one_initcall+0x34/0x174)
[  997.632506] [<c00085b8>] (do_one_initcall+0x34/0x174) from [<c007f3e4>] (sys_init_module+0xe18/0x1cd0)
[  997.649726] [<c007f3e4>] (sys_init_module+0xe18/0x1cd0) from [<c000e980>] (ret_fast_syscall+0x0/0x30)
Looks like cause is interrupt 37, but I'm novice in linux world, maybe I'm wrong somewhere (1.8 version works well with IR remote)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 29, 2014, 12:45:25 pm
Thanks. I will create an update later today or latest in a day or two ...

You are the man!  ;D

 :P

http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 29, 2014, 12:49:44 pm
Quote
Can't run IR in 1.9 version: no event for IR device in /proc/bus/input/devices

Some lines from boot log are:
(filtered by 'sunxi_ir')

I made several tests with this new driver and got input from two different IR remotes ...

Make sure you don't load the old driver sunxi_ir together with new one.

I will look into.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pattinik on April 29, 2014, 10:47:49 pm
Quote

 :P

http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz

To use the update should I just boot with the microSD then copy the "update-1.8-1.9.tgz" directories to the nand?

I think not!  :-[

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 30, 2014, 02:22:41 am
Quote

 :P

http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz

To use the update should I just boot with the microSD then copy the "update-1.8-1.9.tgz" directories to the nand?

I think not!  :-[

Just download and uncompress this file to the root / of your live system where ever it is - on SD / NAND or SATA.

login as root than execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz
tar xvfz update-1.8-1.9.tgz
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pattinik on April 30, 2014, 07:52:29 am
login as root than execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz
tar xvfz update-1.8-1.9.tgz

Tnx! I did it, but now I'm having some issues with the autostart of openvpn service. In fact it stopped to start automatically at the reboot. I don't know why.   :-\

EDIT:
Solved with updating rc.d
Code: [Select]
update-rc.d openvpn enable
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on April 30, 2014, 08:04:39 am
I had used v1.7 in the past. Now is v1.9 out.

How to update? Is a update needed or comes all updates via apt ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pattinik on April 30, 2014, 08:22:09 am
I had used v1.7 in the past. Now is v1.9 out.

How to update? Is a update needed or comes all updates via apt ?

No you can't update via apt. If you want to update just use this commands:

Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz
tar xvfz update-1.8-1.9.tgz
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 30, 2014, 08:28:55 am
I had used v1.7 in the past. Now is v1.9 out.

How to update? Is a update needed or comes all updates via apt ?

Automatic update for my kernel and tweaks via apt is still on my 2do list :-[ ... but all other packages are updating trough usual apt-get update.  8)

There are updates from 1.7 to 1.8 and from 1.8 to 1.9 (check my blog) ... you can to that - but the best way is to update with kernel and install packages that you need on their usual way.

Read "what's changed" because you might not need any upgrade. I only recommend to use latest image for fresh install.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on April 30, 2014, 08:42:23 am
I downloaded 1.9 today and run it.

OpenSSL 1.0.1e-2+deb7u is installed. On http://heartbleed.com/ it's listed under "potentially vulnerable OpenSSL version"...

How to update?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on April 30, 2014, 10:08:23 am
now i have used the SATA install. SD-Card is inserting for booting. But didn't loop. it's in a boot-loop. But i didn't see anything on the Monitor (Maybe the TFT takes to mutch time for sync and display anything)

What can i do to get more information about what's going wrong?

Maybe change boot settings and increase verbosity?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 30, 2014, 10:16:01 am
I downloaded 1.9 today and run it.

OpenSSL 1.0.1e-2+deb7u is installed. On http://heartbleed.com/ it's listed under "potentially vulnerable OpenSSL version"...

How to update?

Execute this:

Code: [Select]
apt-get update
apt-get upgrade
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on April 30, 2014, 11:28:18 am
OpenSSL is now: 1.0.1e-2+deb7u7
Is it vulnerable or patched?

My SATA Problem: Don't know why, but the script hasn't created a useable HD...
I now just mount the SD-Card and the SATA HD on a other debian an clone the rootfs vom SD Card to HD and resize it (With GParted)...

Now booting from HD works. Great!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on April 30, 2014, 12:00:43 pm
Some questions:

* How to enable log output at boot?
* Is it possible to switch to debian jessie (Just edit source.list and dist-upgrade) for getting MATE desktop (see also: http://www.cubieforums.com/index.php?topic=2462 )


Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on April 30, 2014, 01:10:53 pm
Quote
OpenSSL is now: 1.0.1e-2+deb7u7

This version should be O.K. You can try out with some on-line tester.
https://www.debian.org/security/2014/dsa-2908

Quote
How to enable log output at boot?

edit /boot/uEnv.ct and change
console=ttyS0,115200
to
console=tty0

Quote
Is it possible to switch to debian jessie

yes. Don't know about MATE desktop ... probably it is possible.

Quote
Don't know why, but the script hasn't created a useable HD...

Install scripts just copy(rsync) root file-system from SD to SATA partition which has to be prepared and adjusts boot parameter. Gr8 that you manage on your own.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on April 30, 2014, 03:45:36 pm
Quote
OpenSSL is now: 1.0.1e-2+deb7u7

This version should be O.K. You can try out with some on-line tester.
https://www.debian.org/security/2014/dsa-2908
Thanks! On the debian page is this:
Quote
For the stable distribution (wheezy), these problems have been fixed in version 1.0.1e-2+deb7u7.
So it looks good ;)

Quote
How to enable log output at boot?

edit /boot/uEnv.ct and change
console=ttyS0,115200
to
console=tty0
Ah, ok. i will try...

Btw. is there a way to setup a netconsole to troubleshoot uBoot without a serial cable?
I know this from the doozan dockstart work, see: http://forum.doozan.com/read.php?3,14,14


Quote
Is it possible to switch to debian jessie

yes. Don't know about MATE desktop ... probably it is possible.
MATE desktop is available in jessie, if i have the time, i will try.

Quote
Don't know why, but the script hasn't created a useable HD...

Install scripts just copy(rsync) root file-system from SD to SATA partition which has to be prepared and adjusts boot parameter. Gr8 that you manage on your own.
Ah ok. Think that's it. I doesn't know that i have to partition the disk before ;)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: smotritel89 on May 01, 2014, 01:52:58 am
Hi!

Try compile ASIX module.   build-essential install.

make
make -C /lib/modules/3.4.79-sun7i+/build SUBDIRS=/root/asix modules
make: *** /lib/modules/3.4.79-sun7i+/build: No such file or directory.  Stop.
make: *** [default] Error 2

how can I solve this problem?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 01, 2014, 02:51:15 am
Hi!

Try compile ASIX module.   build-essential install.

make
make -C /lib/modules/3.4.79-sun7i+/build SUBDIRS=/root/asix modules
make: *** /lib/modules/3.4.79-sun7i+/build: No such file or directory.  Stop.
make: *** [default] Error 2

how can I solve this problem?

asix module is already compiled within kernel

Code: [Select]
modprobe asix
General instructions:
http://stackoverflow.com/questions/11771818/how-to-make-existing-linux-kernel-module-driver-after-modifying-the-driver-sou
http://www.google.com/search?q=how+to+compile+linux+kernel+modules
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 01, 2014, 02:55:44 am
Quote
Btw. is there a way to setup a netconsole to troubleshoot uBoot without a serial cable?

Not that I am aware of it.

Code: [Select]
Ah ok. Think that's it. I doesn't know that i have to partition the disk before
Scripts were initially meant for personal usage and are slowly developing towards "user friendly mode".  ::)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: quickpass on May 01, 2014, 06:21:51 pm
I have a few questions, can you please help answer?

1) Can I install Plex Media Server on this image?
2) The same image will work for both NAND and SD card?
3) If I want to flash to NAND, do you have an instruction to do that?

Thanks,
QP
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 02, 2014, 01:01:05 am
I have a few questions, can you please help answer?

1) Can I install Plex Media Server on this image?
2) The same image will work for both NAND and SD card?
3) If I want to flash to NAND, do you have an instruction to do that?

Thanks,
QP

1. I have no experience with Plex Media Server but if it works on RasPI than it is possible to be installed on Cubieboard. My image included. Beware that if you want to run a media center (XBMC or similar) you will have troubles playing HD videos since drivers are not fully developed yet.

2 and 3. You can't flash this image directly to NAND. You have to create SD card, boot and transfer/mirror/rsync the content to NAND. Utility (installer) is included ... workaround (if trouble occurred) is described in first post.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: exciter on May 02, 2014, 04:27:32 am
login as root than execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz
tar xvfz update-1.8-1.9.tgz

Tnx! I did it, but now I'm having some issues with the autostart of openvpn service. In fact it stopped to start automatically at the reboot. I don't know why.   :-\

EDIT:
Solved with updating rc.d
Code: [Select]
update-rc.d openvpn enable

Hello,

got problems with openvpn here too after update to 1.9 via:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/update-1.8-1.9.tgz
tar xvfz update-1.8-1.9.tgz

I can't restart the openvpn service, got the error that virtual adapter can't start...
Have reinstalled openvpn, and while configureing
Code: [Select]
“sudo iptables -t nat -A POSTROUTING -s 10.0.0.0/8 ! -d 10.0.0.0/8 -o eth0 -j MASQUERADE”I got this error:

Code: [Select]
Error:

“ERROR: could not insert ‘ip_tables’: Invalid argument
iptables v1.4.14: can’t initialize iptables table `nat’: Table does not exist (do you need to insmod?)”

Igor wrote already on his blog, that he have no problems with clean 1.9 image, but I can't test it atm, cause CT is not here, where I am atm;)

So some ideas to get this CT with upgraded 1.9 version get working?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: interrobang on May 02, 2014, 09:14:39 am
Hello,
is somebody able to compile this driver on cubietruck?

AX88179 -- USB3.0 to 10/100/1000M Gigabit Ethernet Controller
http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=131;71;112

If i extract and run "make" a message like in this post appear:
http://www.cubieforums.com/index.php?topic=1275.msg16005#msg16005

If i extract the missing (!?) kernel source to /home/cubie/image/linux-sunxi/ a message like this appear:

Code: [Select]
root@cubie:/home/AX88179_178A_LINUX_DRIVER_v1.10.0_SOURCE# make
make -C /lib/modules/3.4.79-sun7i+/build SUBDIRS=/home/AX88179_178A_LINUX_DRIVER_v1.10.0_SOURCE modules
make[1]: Entering directory `/home/cubie/image/linux-sunxi'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /home/cubie/image/linux-sunxi/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/AX88179_178A_LINUX_DRIVER_v1.10.0_SOURCE/ax88179_178a.o
In file included from <command-line>:0:0:
/home/cubie/image/linux-sunxi/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/home/AX88179_178A_LINUX_DRIVER_v1.10.0_SOURCE/ax88179_178a.o] Error 1
make[1]: *** [_module_/home/AX88179_178A_LINUX_DRIVER_v1.10.0_SOURCE] Error 2
make[1]: Leaving directory `/home/cubie/image/linux-sunxi'
make: *** [default] Error 2

Thank you!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: AndiBcool on May 02, 2014, 10:58:48 am
Yes this compiling is a science on its own i guess.
Someone tryed to help me in this Post:
http://www.cubieforums.com/index.php?topic=2427.msg15944

Havent had time to try but he said it works for him.

However he and slovenia said they did booth compile successfull,
but the driver ( in my case ) didnt work.
 
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: smotritel89 on May 03, 2014, 01:34:38 am
something which results:

Code: [Select]
cd /usr/src
git clone -b pat-3.4.79  https://github.com/patrickhwood/linux-sunxi   
cd /linux-sunxi
curl https://raw.githubusercontent.com/igorpecovnik/Cubietruck-Debian/master/config/kernel.config > .config
make prepare
make scripts
make modules

then try to test Compiling "Hello.c":

Code: [Select]
make -C /lib/modules/3.4.79-sun7i+/build M=/root/test modules
make[1]: Entering directory `/usr/src/linux-sunxi'
  CC [M]  /root/test/hello.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/test/hello.mod.o
  LD [M]  /root/test/hello.ko

try

Code: [Select]
insmod hello.ko
result:

Code: [Select]
Error: could not insert module hello.ko: Invalid module format
dmesg:  hello: no symbol version for module_layout

How to Fix ?





Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: quickpass on May 04, 2014, 12:56:46 am

1. I have no experience with Plex Media Server but if it works on RasPI than it is possible to be installed on Cubieboard. My image included. Beware that if you want to run a media center (XBMC or similar) you will have troubles playing HD videos since drivers are not fully developed yet.

2 and 3. You can't flash this image directly to NAND. You have to create SD card, boot and transfer/mirror/rsync the content to NAND. Utility (installer) is included ... workaround (if trouble occurred) is described in first post.

Thanks slovenia for your reply. I plan to use my CT as a headless home server (NAS, Plex Media Server, Cloud, etc.) I don't plan to run any media center or anything like that.

I tried to write this image version 1.9 using ImageWriter with success. My CT boots with no problem. I can ssh to it but can't see anything from my TV (connect via HDMI). I guess this is due to no memory reserve for video? I will try to install Plex Media Server to see if it works and will report back. I am new to Linux so not sure if I can get any luck.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 04, 2014, 01:02:35 am
Quote
Thanks slovenia for your reply. I plan to use my CT as a headless home server (NAS, Plex Media Server, Cloud, etc.) I don't plan to run any media center or anything like that.

This image is designed for such usage.

Quote
I tried to write this image version 1.9 using ImageWriter with success. My CT boots with no problem. I can ssh to it but can't see anything from my TV (connect via HDMI). I guess this is due to no memory reserve for video? I will try to install Plex Media Server to see if it works and will report back. I am new to Linux so not sure if I can get any luck.

Glad to hear that. No, memory reservation does not affect CLI. In this case you probably installed wrong version in term (VGA/HDMI) or I made some bug on the way :) ? You can change this in /boot/uEnv.ct 

Change:
script=/boot/ct-vga.bin
to
script=/boot/ct-hdmi.bin
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: shider on May 04, 2014, 06:00:37 am
@slovenia
First I wanted to thank You for a great image. It's really fast and stable.

Testing it on cubieboard2 and I discovered problems associated with LEDs. "disable_led.sh" script is prepared exclusively for Cubietruck. Cubieboard2 has only two LEDs: "/sys/class/leds/green:ph20:led1" and "/sys/class/leds/blue:ph21:led2". The script runs on four Cubietruck LEDs and on Cubieboard green still shines.
Generally, the script itself is not needed. A suitable modification can be done in a boot script. Example for Cubieboard2:

[leds_para]
leds_used = 1
leds_num = 2
leds_pin_1 = port:PH20<1><default><default><0>
leds_name_1 = "green:ph20:led1"
leds_default_1 = 0
leds_trigger_1 = "none"
leds_pin_2 = port:PH21<1><default><default><0>
leds_name_2 = "blue:ph21:led2"
leds_default_2 = 0
leds_trigger_2 = "none"


The second problem prevents the use of the blue LED. It is impossible to enable it. I do not know exactly which module is causing it, but after commenting modules: bcmdhd, rfcomm, hidp, lirc_gpio, sunxi_lirc the problem disappeared.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: twist on May 04, 2014, 12:55:23 pm
So after using 3 Versions of this image i am very satisfied with it  ;D
Very good work. I hope you will improve it for a long time.

I donated you a very big cup of coffee or tea to keep you awake for working hehe.

Greetings from a half Slovenian ^^
Have a nice summer :)

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: cgelan on May 04, 2014, 05:49:12 pm
Thank you for the great CT Wheezy  SD card image!
This allows me to use my favourite distribution on my Cubietruck. So far I'm fine, boot OK, install of additional packages OK. Now setting up a headless server.

There are, however three things I'd like to change and couldn't really figure out how to do it.
1) I'd like to have "ttyX" mentioned on my console in the login screen (e.g. "Debian GNU/Linux wheezy hostname ttyX")
2) I'd like to see boot messages on screen while booting. (dmesg is OK but only accessable if boot went through OK))
3) Is there a value between LEDs superbright and totally disabled?
Allright just Q No 3 is really Cubietruck related.

Thank you for your fine work
Eike (from Paraguay)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 05, 2014, 01:54:12 am
@shider
Thanks for using and for the feedback. 8) I am using "non fex method" because you can play with leds on the fly if you like. They are active during boot which I consider helpful. You can attach one to the drive activity ... search on the forum. I am aware that there are certain differences between CB2 and CT but since I only have Cubietruck I can't test all. The honest subtitle for this image should be: "it should work on CB2 but not tested by author". :-[ I was already thinking to get myself one CB2 for this purpose.

Quote
The second problem prevents the use of the blue LED.

This is a bit strange.  ??? It would be helpful to find out which module is causing problems.
If you have CB2 then remove wireless module for good anyway ...

@twist
Quote
Very good work. I hope you will improve it for a long time.
I donated you a very big cup of coffee or tea to keep you awake for working hehe.

Tnx. Cheers! ;)

@Eike
1. I don't understand exactly where you want this to be displayed - check those files /etc/issue /etc/motd /root/.bashrc and do some google to get the names for desired variables
2. Edit and change boot parameters in /boot/uEnv.ct or uEnv.cb (for CB2),"console="
3. No, it's digital.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 05, 2014, 05:04:41 am
I think there should be somewhere a community driven FAQ for this project.
Such a list with short tips like:

To enable boot output: Edit and change boot parameters in /boot/uEnv.ct or uEnv.cb (for CB2):
-"console=ttyS0,115200"
+"console="

Maybe a good point is: https://github.com/igorpecovnik/Cubietruck-Debian/wiki/FAQ ?

EDIT: I added some more information into the FAQ ;)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 05, 2014, 05:55:07 am
I try now the update to "jessie".

One "Problem" while dist-upgrade: ramlog is a own package and will be removes while updating.
What's about "busybox-syslogd" witch IMHO also write into RAM only.

EDIT: If i have a SATA SSD, then i should change /etc/sysfs.conf and set
block/sda/queue/scheduler from cfq to noop, isn't it?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 05, 2014, 06:25:05 am
I try now the update to "jessie".

One "Problem" while dist-upgrade: ramlog is a own package and will be removes while updating.
What's about "busybox-syslogd" witch IMHO also write into RAM only.

Thanks for adding to FAQ 8). Will add too.

Ramlog package was installed manually. It is for general usage - you can have any/all logs in ram and that's important when you add services.

If you do upgrade to jessy, ramlog fails? What if you install it manually? The package is here (https://github.com/igorpecovnik/Cubietruck-Debian/tree/master/bin).
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 05, 2014, 06:29:57 am
If you do upgrade to jessy, ramlog fails? What if you install it manually? The package is here (https://github.com/igorpecovnik/Cubietruck-Debian/tree/master/bin).
The dist-upgrade routine will remove the package.
Think i can reinstall it... But why a own package, if busybox-syslogd exists? OK, busybox will be installed, too. But what's are the avertage of the own package?

Btw. One point for the FAQ: How to disable WLAN ???
My old solution was: to add iwconfig wlan0 txpower off to /etc/rc.local
I add this to https://github.com/igorpecovnik/Cubietruck-Debian/wiki/FAQ#disable-wifi
But what's the best solution for this?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 05, 2014, 06:42:20 am
If you do upgrade to jessy, ramlog fails? What if you install it manually? The package is here (https://github.com/igorpecovnik/Cubietruck-Debian/tree/master/bin).
The dist-upgrade routine will remove the package.
Think i can reinstall it... But why a own package, if busybox-syslogd exists? OK, busybox will be installed, too. But what's are the avertage of the own package?

Btw. One point for the FAQ: How to disable WLAN ???
My old solution was: to add iwconfig wlan0 txpower off to /etc/rc.local
But what's the best solution for this?

I see "ramlog" more advanced. It's sad that it's not a part of a distro / developed any more ... it looks like a perfect solution for embedded system logging.

Yes, why not. It's working well. (on and off)

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 05, 2014, 06:54:09 am
The "load info" is in https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/scripts/bashrc and will be copied with:
Code: [Select]
# install custom bashrc
cp $SRC/scripts/bashrc $DEST/output/sdcard/root/.bashrc

Why not something like this:
Code: [Select]
cat Cubietruck-Debian/scripts/bashrc >> /etc/bash.bashrc
So that's its in the global bashrc so that normal logins also display the load info...?

EDIT: OK, i see a "error" in Drive temperature... But the other works for a normal user.

EDIT2: What's about this:
Put the Cubietruck-Debian/scripts/bashrc file somethere in the filesystem and call it e.g. with "source" in /etc/bash.bashrc
So it's callable for the user on prompt, too.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 05, 2014, 07:26:00 am
The problem is a normal user get a error for /usr/sbin/hddtemp /dev/sda I have create a bugfix and refactor the script: https://github.com/igorpecovnik/Cubietruck-Debian/pull/16
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 05, 2014, 08:31:52 am
Btw. One point for the FAQ: How to disable WLAN ???
My old solution was: to add iwconfig wlan0 txpower off to /etc/rc.local
I add this to https://github.com/igorpecovnik/Cubietruck-Debian/wiki/FAQ#disable-wifi
But there is also a p2p0 device. What is this?

So i have to also add iwconfig p2p0 txpower off for this.

EDIT: See also a thread about a backup script: http://www.cubieforums.com/index.php?topic=2490.0
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: shider on May 05, 2014, 12:06:12 pm
I am using "non fex method" because you can play with leds on the fly if you like.
I understand. Anyway it would be nice to see disable_led script working properly on cubieboard2.

This is a bit strange.  ??? It would be helpful to find out which module is causing problems.
If you have CB2 then remove wireless module for good anyway ...
I checked this problem once more and it is caused by bcmdhd module.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: quickpass on May 05, 2014, 12:20:13 pm
Glad to hear that. No, memory reservation does not affect CLI. In this case you probably installed wrong version in term (VGA/HDMI) or I made some bug on the way :) ? You can change this in /boot/uEnv.ct 

Change:
script=/boot/ct-vga.bin
to
script=/boot/ct-hdmi.bin

I double checked and I sure did get the correct image. uEnv.ct has "script=/boot/ct-hdmi.bin" enabled. It doesn't work maybe because I connect it to my TV instead of a monitor? Well, that's not important so I don't worry about it for now.

I spent hours past weekend trying to install Plex Media Server on my CT running this image but failed (I am new to Linux and this kind of stuff so probably I don't know what I was doing). It doesn't seem anybody has done this for ARM Debian yet. I am surprised not many people in the community are interested in this project.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 05, 2014, 01:12:55 pm
If i have a SATA SSD, then i should change /etc/sysfs.conf and set
block/sda/queue/scheduler from cfq to noop, isn't it?

yes

@quickpass
Quote
I double checked and I sure did get the correct image. uEnv.ct has "script=/boot/ct-hdmi.bin" enabled. It doesn't work maybe because I connect it to my TV instead of a monitor? Well, that's not important so I don't worry about it for now.

Hmm. It could be some compatibility / hardware problem? It should work.

Quote
I spent hours past weekend trying to install Plex Media Server

No debian ARM  build, yes ...
http://www.raspberrypi.org/forums/viewtopic.php?t=23753&p=224963
no open source no fun :(
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Chris0706 on May 05, 2014, 05:36:34 pm
Is there an easy way to manually install a desktop enviornment afterwards ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 06, 2014, 02:50:39 am
Is there an easy way to manually install a desktop enviornment afterwards ?
We should add instrution into the Wiki: https://github.com/igorpecovnik/Cubietruck-Debian/wiki

I'm trying to install a MATE desktop, see: http://www.cubieforums.com/index.php?topic=2462.0


Other question:
Is it possible to create a multi boot?
e.g.: copy /dev/sda1 to /dev/sda2 or create a other rootfs into /dev/sda2
Then mount the sdcard and change in uEnv the part root=/dev/sda1 rootwait to root=/dev/sda2 rootwait

Is it possible?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: tstorr on May 06, 2014, 03:32:53 am
Hi Igor,

first thanks for making available a near ideal image and for describing the build process.  You have saved me a great deal of work!

I'm building my own from you github reopos using the build.sh script and have run into a small problem.  I'm building on ubuntu 12.04 64bit.  I get the "can't delete device /dev/loop0: Device or resource busy root@..." error somewhere around lines 318-328 when the modules are being loaded.

Has anyone any idea what is causing this?

Many thanks in advance,

====
Update just checking that having nautilus open when doing this causes the loop0 deleting error.

====

I've just checked and this does not fix the problem.  More poking around and I think it is failing at line 411-413

lib/firmware/emi62/spdif.fw
lib/firmware/emi62/midi.fw
loop: can't delete device /dev/loop0: Device or resource busy

# sunxi-tools
cd $DEST/sunxi-tools
make clean && make $CTHREADS 'fex2bin' CC=arm-linux-gnueabihf-gcc && make $CTHREADS 'bin2fex' CC=arm-linux-gnueabihf-gcc && make $CTHREADS 'nand-part' CC=arm-linux-gnueabihf-gcc

Trevor
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Fuzzlix on May 06, 2014, 04:19:51 am
Hi Slovenia.

First: Thanks for the great Image. It works well for my Cubietruck.

Only one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.

Fuzzlix.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 06, 2014, 04:49:03 am
I would like to have a list of all really needed packages, in a clean install.

I saw the two apt-get line here: https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/build.sh#L260-L266 :
Code: [Select]
chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install locales"
...
chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install bluetooth lirc alsa-utils netselect-apt sysfsutils hddtemp bc figlet toilet screen hdparm libfuse2 ntfs-3g bash-completion lsof console-data sudo git hostapd dosfstools htop openssh-server ca-certificates module-init-tools dhcp3-client udev ifupdown iproute iputils-ping ntpdate ntp rsync usbutils uboot-envtools pciutils wireless-tools wpasupplicant procps libnl-dev parted cpufrequtils console-setup unzip bridge-utils"
But it seems that cron and iptables are also installed. Isn't it?



The chmod -x /etc/init.d/disable_led.sh from the FAQ is not the best solution. It will be create a error messages while booting.
Other solution than just delete the file?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: tstorr on May 06, 2014, 05:36:39 am
@ Jedie,

to list the installed packages:

dpkg-query -l

my vanilla install had these:

https://docs.google.com/document/d/1ef7qIvrcRU3Ern3dwsg0J40692gQoEs7j8oaxORohJI/pub (https://docs.google.com/document/d/1ef7qIvrcRU3Ern3dwsg0J40692gQoEs7j8oaxORohJI/pub)

LEDs can be controlled using using a boot script as outlined here - I have not tested this though.

http://www.cubieforums.com/index.php?topic=1275.msg16074;topicseen#msg16074 (http://www.cubieforums.com/index.php?topic=1275.msg16074;topicseen#msg16074)

trevor
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 06, 2014, 06:04:57 am
Quote
Is there an easy way to manually install a desktop enviornment afterwards ?

One simple/basic one.

Code: [Select]
apt-get -y install xorg
apt-get -y install lightdm
apt-get -y install xfce4 xfce4-goodies tango-icon-theme gnome-icon-theme
reboot

Quote
Other question:
Is it possible to create a multi boot?
e.g.: copy /dev/sda1 to /dev/sda2 or create a other rootfs into /dev/sda2
Then mount the sdcard and change in uEnv the part root=/dev/sda1 rootwait to root=/dev/sda2 rootwait

Is it possible?

Yes ... ("copy" = rsync)

@tstorr
Quote
I get the "can't delete device /dev/loop0: Device or resource busy root@..."

It's a known bug and it occurs randomly. I think some proper IF sentence should do the fix - obvious solution was not o.k., no alternatives tested yet.

@Fuzzlix
Quote
Only one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.
@jedie
Quote
I would like to have a list of all really needed packages, in a clean install.

I am adding packages carefully but when I added IR, BT and audio support than we distant from minimal bare bone. We can separate images or better only in the build script to "basic" and "featured" server image?

Quote
But it seems that cron and iptables are also installed. Isn't it?

Yes. In Debian the cron package is installed as part of the base system, and will be running by default and so some other packages. I was manually adding what was needed. Some packages are automatic installed because they are needed by some other package (dependencies).

Quote
It will be create a error messages while booting.

What kind of error? Do you mean the one on Cubieboard2 only?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jedie on May 06, 2014, 07:26:31 am
How to change the xserver resolution???

I know the line disp.screen0_output_mode=EDID:1280x720p60 in uEnv, but it seems that is doesn't change the resolution :(



btw. What's about to move some filesystem parts into a RAM-Disk? e.g. /etc/fstab:
tmpfs   /tmp   tmpfs   nosuid   0   0
tmpfs   /var/log   tmpfs   noexec,nodev,nosuid   0   0

Maybe add something like "size=15%", too?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Fuzzlix on May 06, 2014, 07:36:44 am
@Fuzzlix
Quote
Only one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.
I am adding packages carefully but when I added IR, BT and audio support than we distant from minimal bare bone. We can separate images or better only in the build script to "basic" and "featured" server image?
I see it with the eyes of a bloody beginner. May be, i never understood the saying "bare bone" before hitting your image  ;)
Yeah, keep it like it is.

Fuzzlix
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: tstorr on May 06, 2014, 04:51:06 pm
@Fuzzlix
Quote
Only one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.
I am adding packages carefully but when I added IR, BT and audio support than we distant from minimal bare bone. We can separate images or better only in the build script to "basic" and "featured" server image?
I see it with the eyes of a bloody beginner. May be, i never understood the saying "bare bone" before hitting your image  ;)
Yeah, keep it like it is.

Fuzzlix

Exactly...  a really small barebones image for others to customise as they need  :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: tstorr on May 07, 2014, 03:32:09 am


@tstorr
Quote
I get the "can't delete device /dev/loop0: Device or resource busy root@..."

It's a known bug and it occurs randomly. I think some proper IF sentence should do the fix - obvious solution was not o.k., no alternatives tested yet.


I thought about this today - some process must still be using /dev/loop - that is not detected by fuser losetup - probably a process initiated by the build environment.  So...  I installed vanilla ubuntu 12.04 server inside virtialbox, installed the packages required by the install script after changing to a faster repository and ran ./build.sh.  It built the images!

So while I can't categorically say what was locking /dev/loop0, if others have this problem it may be worth firing up a vm and doing a vanilla install of the development environment.

trevor
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Cubieklaus on May 07, 2014, 04:05:55 am
Hello,

it seems that something wrong in the new release.

I tried to compile a specific driver and got some errors:

Code: [Select]
Datei oder Verzeichnis nicht gefunden.
Fehlercode: 2
Fehlernachricht vom Server : No such file

when make calls build there a two broken links in /lib/modules/3.4.79-sun7i+

115    0 lrwxrwxrwx 1 root root      29 Apr 27 12:42 build -> /home/cubie/image/linux-sunxi

116    0 lrwxrwxrwx 1 root root      29 Apr 27 12:42 source -> /home/cubie/image/linux-sunxi

The folder /home is empty therefore when build is called the call will fail
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 07, 2014, 07:27:07 am
Hello,

it seems that something wrong in the new release.

I tried to compile a specific driver and got some errors:

Code: [Select]
Datei oder Verzeichnis nicht gefunden.
Fehlercode: 2
Fehlernachricht vom Server : No such file

when make calls build there a two broken links in /lib/modules/3.4.79-sun7i+

115    0 lrwxrwxrwx 1 root root      29 Apr 27 12:42 build -> /home/cubie/image/linux-sunxi

116    0 lrwxrwxrwx 1 root root      29 Apr 27 12:42 source -> /home/cubie/image/linux-sunxi

The folder /home is empty therefore when build is called the call will fail

Actually there is nothing wrong :) Source files are not included into release. If you need them:

Code: [Select]
git clone https://github.com/patrickhwood/linux-sunxi
If you need only headers, they are under /usr/include
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Cubieklaus on May 08, 2014, 05:16:38 am
Code: [Select]
If you need only headers, they are under /usr/include
if I try to execute the .install.cmd to install the headers there is the following error message:

Code: [Select]
./..install.cmd: line 1: cmd_output/include/.install: No such file or directory
Can't open perl script "scripts/headers_install.pl": No such file or directory
Can't open perl script "scripts/headers_install.pl": No such file or directory
touch: cannot touch `output/include/.install': No such file or directory

Whats wrong ?

There is no folder scripts
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: macduck on May 09, 2014, 01:08:03 am

v1.9 / 27.4.2014 Cubietruck and Cubieboard 2
Download VGA (http://cubie.nobrainz.de/downloads/CTDebian_1.9_vga.zip) | HDMI (http://cubie.nobrainz.de/downloads/CTDebian_1.9_hdmi.zip) (400 Mb) | Kernel only (http://cubie.nobrainz.de/downloads/CTDebian_1.9_kernel_mod_head_fw.tgz) (160Mb)


Mate, first of thanks for CTDebian. Nice job.

Is it possible to update existing installation (1.8 in my case) to current, most recent one? Re-Imaging is not an option as I use it as my home web/mail/file/torrents/fidonet/etc server.

Thanks
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: exciter on May 09, 2014, 11:30:41 am
read from here:

http://www.cubieforums.com/index.php?topic=1275.msg15941#msg15941
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Fuzzlix on May 09, 2014, 01:35:05 pm
Hi Slovenia.

Is it posible to compile your kernel on the Cubietruck (noc cross compile)?
I have my root on a sata disk and installed build-essentials and so on. (All what i found in your build.sh to install, but gcc-arm-linux-gnueabi and gcc-arm-linux-gnueabihf) is it possible to compile your kernel using the onboard gcc tool chain v4.6 ?
your script seems to be fixed on crosscompiling. Any hints how to change this?

thanks in advance.
Fuzzlix.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 09, 2014, 02:37:17 pm
Hi Slovenia.

Is it posible to compile your kernel on the Cubietruck (noc cross compile)?
I have my root on a sata disk and installed build-essentials and so on. (All what i found in your build.sh to install, but gcc-arm-linux-gnueabi and gcc-arm-linux-gnueabihf) is it possible to compile your kernel using the onboard gcc tool chain v4.6 ?
your script seems to be fixed on crosscompiling. Any hints how to change this?

thanks in advance.
Fuzzlix.

Never done that - I try once with Wheezy on x86 but (cross compile) failed. Before you start - read this:
http://www.cubieforums.com/index.php?topic=472.0

You can predict where the troubles might show-up.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 10, 2014, 11:35:58 am
Just a big thanks to Slovenia for this image!   Using it on a new IBOX device (A20).   
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Sloop on May 10, 2014, 02:07:32 pm
Hi Slovenia.

I know that your image is generally for a headless use, without any monitor attached. Nevertheless I hope you can help.

Actually I have installed X + lightdm + MATE desktop environment on my Cubietruck on which I use your image according this tutorial (http://lauri.võsandi.com/posts/debian-jessie-sunxi-packages.html). I am trying to figure out how to get a picture on my TV which is attached through HDMI cable to my Cubietruck. HDMI output worked fine before MATE install, I did see the login prompt when the image was loaded at system boot. But after I installed X and my MATE desktop environment I am not getting any output any more on my TV.

I thought I have to remove the optimization lines within /boot/uEnv.ct to allow my Cubietruck to load all the stuff it needs and not to reserve the memory only for console use. My /boot/uEnc.ct actually looks like this:

Code: [Select]
console=ttyS0,115200
root=/dev/mmcblk0p1 rootwait
extraargs=rootfstype=ext4 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0
script=/boot/ct-hdmi.bin
kernel=/boot/uImage

I also tried to set a forced resolution in /boot/uEnv.ct like "disp.screen0_output_mode=1920x1080p60" or even "disp.screen0_output_mode=1280x720p60" or
"disp.screen0_output_mode=1280x720p30"

It didn't help. Then I did bin2fex for my ct-hdmi.bin and adjusted the settings, the corresponding config is:
Code: [Select]
[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 3
screen0_output_mode = 10
screen1_output_type = 0
screen1_output_mode = 4
fb0_width = 1920
fb0_height = 1080
fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 1

I cannot see any output. My /etc/xorg.conf looks like that:
Code: [Select]
Section "Screen"
    Identifier  "VGA-0"
    Device      "/dev/fb0"
    Monitor     "BenQ
    Option      "DPMS" "false"
EndSection

Section "Screen"
    Identifier  "HDMI-0"
    Device      "/dev/fb1"
    Monitor     "BenQ"
    Option      "DPMS" "false"
EndSection

Section "Device"
    Identifier  "/dev/fb0"
    Driver      "fbturbo"
    Option      "fbdev" "/dev/fb0"
    Option      "SwapBuffersWait" "true"
EndSection

Section "Device"
    Identifier  "/dev/fb1"
    Driver      "fbturbo"
    Option      "fbdev" "/dev/fb1"
    Option      "SwapBuffersWait" "true"
EndSection

I deleted /var/log/Xorg*.log and rebooted. The generated /var/log/Xorg.0.log looks like that (http://paste.debian.net/98698/). It's normal, that hw acceleration cannot be used and fallback to sw rendering did occur. I don't understand what exactly the problem is, because at the end of Xorg.0.log I don't see any error specific to my display problem.

Anyone can tell me where the problem is and point me to the right direction, please?

==> SOLVED: I just did see the warning message in Xorg.0.log which said:
Quote
...
[    19.198] (II) FBTURBO(0): using backing store heuristics
[    19.267] (II) FBTURBO(0): enabled G2D acceleration
[    19.267] (==) FBTURBO(0): Backing store enabled
[    19.273] (II) FBTURBO(0): using sunxi disp layers for X video extension
[    19.273] (II) FBTURBO(0): using hardware cursor
[    20.085] (II) Loading sub module "dri2"
[    20.095] (II) LoadModule: "dri2"
[    20.095] (II) Module "dri2" already built-in
[    20.139] (II) FBTURBO(0): tear-free zero-copy double buffering needs more video memory
[    20.140] (II) FBTURBO(0): please set fb0_framebuffer_num >= 3 in the fex file
[    20.140] (II) FBTURBO(0): and sunxi_fb_mem_reserve >= 24 in the kernel cmdline
[    20.140] (II) FBTURBO(0): enabled display controller hardware overlays for DRI2
[    20.140] (II) FBTURBO(0): Wait on SwapBuffers? enabled
[    20.140] (II) FBTURBO(0): [DRI2] Setup complete
[    20.140] (II) FBTURBO(0): [DRI2]   DRI driver: lima
[    20.140] (II) FBTURBO(0): [DRI2]   VDPAU driver: sunxi
[    20.140] (II) FBTURBO(0): using DRI2 integration for Mali GPU (UMP buffers)
[    20.140] (II) FBTURBO(0): Mali binary drivers can only accelerate EGL/GLES
[    20.140] (II) FBTURBO(0): so AIGLX/GLX is expected to fail or fallback to software
[    20.141] (==) RandR enabled
...

So I re-edited my boot-image /boot/ct-hdmi.bin (bin2fex before and then fex2bin) and used the suggested setting
Code: [Select]
fb0_framebuffer_num = 3
Then I re-edited /boot/uEnv.ct and inserted the setting:
Code: [Select]
sunxi_fb_mem_reserve=64in my extraargs line. I deleted Xorg.0.log, rebooted, and ...

I GOT X DISPLAY :) The /var/log/Xorg.0.log now is showing:
Quote
...
[    18.779] (II) FBTURBO(0): using backing store heuristics
[    18.858] (II) FBTURBO(0): enabled G2D acceleration
[    18.859] (==) FBTURBO(0): Backing store enabled
[    18.869] (**) FBTURBO(0): DPMS enabled
[    18.869] (II) FBTURBO(0): using sunxi disp layers for X video extension
[    18.869] (II) FBTURBO(0): using hardware cursor
[    19.774] (II) Loading sub module "dri2"
[    19.774] (II) LoadModule: "dri2"
[    19.774] (II) Module "dri2" already built-in
[    19.821] (II) FBTURBO(0): enabled display controller hardware overlays for DRI2
[    19.821] (II) FBTURBO(0): Wait on SwapBuffers? enabled
[    19.821] (II) FBTURBO(0): [DRI2] Setup complete
[    19.821] (II) FBTURBO(0): [DRI2]   DRI driver: lima
[    19.821] (II) FBTURBO(0): [DRI2]   VDPAU driver: sunxi
[    19.821] (II) FBTURBO(0): using DRI2 integration for Mali GPU (UMP buffers)
[    19.822] (II) FBTURBO(0): Mali binary drivers can only accelerate EGL/GLES
[    19.822] (II) FBTURBO(0): so AIGLX/GLX is expected to fail or fallback to software
...
[/quote

So this problem is solved :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pezi on May 11, 2014, 03:49:10 am
Hi!

I use your server image for SAMBA and as a LXC container pool. The LXC containers are used for autoamted DB tests (MySQL, MariaDB & Postgres)  for an ongoing Java server application.

But for LXC I need the Veth pair device enabled
http://www.cubieforums.com/index.php?topic=1413.msg14971#msg14971

Can you please enable this flag for your build to simpify my life?

with best regards
Peter
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Fuzzlix on May 11, 2014, 04:00:33 am
Hi all.
I use my Cubitruck with a WD 500gB Harddisk.
Since 2 days i have a 6000mAh Li-Po accumulator installed. Board runs 8,5 hours on battery, most ideling around and draining up to 700mA out of my battery. So far, so good.
1st issue: halt did not shut off but reboots. Solution: instead calling halt to power of, do:
Code: [Select]
init 0so i wrote a little script named "off" and placed it into /sbin. using this new "off" command my board powers down corectly.
I suggest to add this little script in your barebone image. It doesnt eat much space. And please mention this power-off-method in your opening post. Many people running on battery running into the same trouble as you can see in other threads in this forum.

This was the easy part. Now comes the trouble:
1st: the [pmu_para] section in script.bin/fex needs to be set up properly.
i changed "pmu_battery_cap = 6000" and checked all the other parameters. Problem: The pmu parameter description at sunxi (http://linux-sunxi.org/Fex_Guide#pmu_configuration) doesnt help much. The chinese AX209 Datasheet doesnt help ether. Usefull would be a AX209 application guide but i cant find some and so i dont know how to set up the [pmu_para] entries properly. And somthing is still wrong with those parameters: The capacity (%) shows wrong readings. With a full charged battery, disconnecting the ac power shortly, the AX209 starts charging again, the accu voltage raises quickly from 3.7V up to 4.3V!!! whats too much voltage for the battery. (it should shut of charging at 4,2V.) I am afraid this way i am able to charge my new battery to death.

I would like to find some application notes for the AX209.
I could need some help to find the AXP209 code in the kernel sources to investigate.
I would like to know, how to check the powerbutton signal on a running Debian. ( i want to start my tiny off-script.)

Any help apreciated.
Fuzzlix.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Cubieklaus on May 11, 2014, 05:43:09 am
Hello,

i want to install a citrix client on my cubietruck. Citrix offer different images for arm and debian:

ARMHF and ARMEL

does someone know which package is the right one for the A20 ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: ruleof72 on May 11, 2014, 11:44:48 am
Hi,

Simple question but I'm brand new here. I just loaded this on the Cubietruck and can't find anywhere the login. What is it?

Thanks!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 11, 2014, 11:52:38 am
Hi,

Simple question but I'm brand new here. I just loaded this on the Cubietruck and can't find anywhere the login. What is it?

Thanks!

If you don't have screen you probably choose wrong version (VGA/HDMI)? SSH server is working - try to SSH to the Cubie, root / 1234
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: ruleof72 on May 11, 2014, 12:04:41 pm
I used root for login and 1234 for password and got to the root@cubie:~#

I'm assuming that's where I need to be, right? What's the next step to get the image on NAND?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pattinik on May 11, 2014, 02:33:28 pm
I used root for login and 1234 for password and got to the root@cubie:~#

I'm assuming that's where I need to be, right? What's the next step to get the image on NAND?

Follow this instructions.  8)

Quote
The only way to get this to NAND is to write it to SD card (with this tool for example) and than transfer it to the NAND with a script which is included in the image. It's located in the root's home directory, default when you log-in. It's not executable so you should do: chmod +x nand-install.sh before executing it. There might be troubles while transfering image to NAND but we have a workaround - read first post and check the thread.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: cubiezomb on May 13, 2014, 05:02:55 am
Hi,
I try to run a composite output on cubietruck (CN8 pin27 with 75 Ohm resistor to ground).
How can I activate or switch from VGA to this output ?

EDIT:
I modified now ct-vga.bin:
screen0_output_type = 2
screen0_output_mode = 11
screen1_output_type = 4
screen1_output_mode = 4

Now CVBS OUT is working but have no vga anymore. What I need to write to uEnv.ct to activate vga and cvbs ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: ua3prq on May 14, 2014, 01:31:37 am
Hi Igor!

I want to raise the topic of stability distribution on CB2. There are opinions that CT3 has a more good board layout and is more stable in terms of overclocking.
I personally currently use CB2, your version 1.6/1.7 and have problems with stability in the week 24/7. Periodically observe similar statements from others users.
We already have the groundwork for the problems identified are confirmed in practice. Details here: http://www.cubieforums.com/index.php?topic=952.msg12301#msg12301 (http://www.cubieforums.com/index.php?topic=952.msg12301#msg12301)

At the moment I have the following condition (v1.8 on SD)
Code: [Select]
dram_clk          = 480
dram_type         = 3
dram_rank_num     = 1
dram_chip_density = 4096
dram_io_width     = 16
dram_bus_width    = 32
dram_cas          = 9
dram_zq           = 0x7f
dram_odt_en       = 0
dram_tpr0         = 0x42d899b7
dram_tpr1         = 0xa090
dram_tpr2         = 0x22a00
dram_tpr3         = 0x0
dram_emr1         = 0x4
dram_emr2         = 0x10
dram_emr3         = 0x0

This topic is widely discussed on Google groups and two main critical parameter should be selected individually: cas-9 (agree with this softer value) and clock-480MHz.
Passport frequency modules overstated and I have data from colleagues (in RUS branch) that are already on the 432MHz (other distributions) system hang completely disappear.
I'll try to replace the recently modules SPL+uBoot and gain statistics stability.

What do you think about this issue? And can you ask for in future versions to provide separate assembly for CB2 sparing parameters to identify a complete solution.

I checked the values ​​on my CT3 (Cubieez/Debieez both SD/NAND, neighbor distribution) and watch it 432. Employment for many months is not a problem at all.

Thanks!
Serg.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 14, 2014, 11:33:14 am
Serg,

Thanks for bringing this up. I implemented a patch for future releases and it is solved for SD card. The problem remains on NAND u-boot. It's strange that CT has lower number by default. Probably someone forgot to correct those settings?

One fix is better than none  8)

 
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: ua3prq on May 14, 2014, 01:33:53 pm
Igor,
It's strange that CT has lower number by default. Probably someone forgot to correct those settings?
I remind you- this is another assembly. Apparently still on the run in CB1/2 (maybe they knew about this problem for some boards). Unfortunately, the authors left the community and have not answer any questions in the subject.
Оkay. I will be glad if help others.

Up1:
I now install the patch on your old system configured with 1.7 and see how it will work, be sure to tell about the results of uptime  8)

Code: [Select]
dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk0 bs=1024 seek=8

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 15, 2014, 09:47:57 am
@slovenia

Can you explain how to get the board temp (as displayed in the login page)?

I can't find the appropriate command
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 15, 2014, 12:45:57 pm
@slovenia

Can you explain how to get the board temp (as displayed in the login page)?

I can't find the appropriate command

Check /root/.bashrc
=
https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/scripts/bashrc

direct reading:
cat /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/temp1_input
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 15, 2014, 01:15:54 pm
Thanks!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 15, 2014, 02:16:11 pm
One issue I have noticed (compared to other distros) is that the terminal prompt can become unresponsive after time.  This requires several key pushes before it comes back to life.

Any ideas?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 15, 2014, 03:47:04 pm
One issue I have noticed (compared to other distros) is that the terminal prompt can become unresponsive after time.  This requires several key pushes before it comes back to life.

Any ideas?

On console? Do you use a wireless keyboard?

Never noticed - using on daily basis via ssh.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 15, 2014, 03:52:47 pm
One issue I have noticed (compared to other distros) is that the terminal prompt can become unresponsive after time.  This requires several key pushes before it comes back to life.

Any ideas?

On console? Do you use a wireless keyboard?

Never noticed - using on daily basis via ssh.

No keyboard - using ssh
Title: Re: Wheezy server SD / NAND - update 12.1.2014
Post by: bigcircle on May 16, 2014, 12:49:56 am
Hi Solvenia, maxx,
Your image can be solved the NAND boot up issue, really thanks all of your help... This image is very great... I am using as my CAS device and connect to my DAC thru USB... using MPD to control it.... ;D

Hi fatman,
   I want to use my cubieboard2 as CAS device and using this image, after I install mpd server, I can't play music and can't run GMPC to connect the mpd server! Can you tell me how to set up and configure the mpd server. And I also want to setup hostapd wifi and use my phone to control the mpd.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: cubiezomb on May 16, 2014, 03:24:43 am
Hi,
I try to run a composite output on cubietruck (CN8 pin27 with 75 Ohm resistor to ground).
How can I activate or switch from VGA to this output ?

EDIT:
I modified now ct-vga.bin:
screen0_output_type = 2
screen0_output_mode = 11
screen1_output_type = 4
screen1_output_mode = 4

Now CVBS OUT is working but have no vga anymore. What I need to write to uEnv.ct to activate vga and cvbs ?
please answer
is it possible to multi video output ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 16, 2014, 04:57:13 am
One issue I have noticed (compared to other distros) is that the terminal prompt can become unresponsive after time.  This requires several key pushes before it comes back to life.

Any ideas?

On console? Do you use a wireless keyboard?

Never noticed - using on daily basis via ssh.

No keyboard - using ssh

Strange!

Left IBOX on overnight.  After 7 hours:

1. Unable to access using PuTTy - timeouts

2. Immediate access using WinSCP

3. Then able to login via PuTTy

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: cubiezomb on May 16, 2014, 06:43:40 am
One issue I have noticed (compared to other distros) is that the terminal prompt can become unresponsive after time.  This requires several key pushes before it comes back to life.

Any ideas?
oh yes, me too.
after install and remove network-manager, ssh sessions are very slow and disconnecting after 10-20 sec.

Edit: Platform is Cubietruck !!!!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 16, 2014, 07:27:16 am
One issue I have noticed (compared to other distros) is that the terminal prompt can become unresponsive after time.  This requires several key pushes before it comes back to life.

Any ideas?

On console? Do you use a wireless keyboard?

Never noticed - using on daily basis via ssh.

No keyboard - using ssh

Strange!

Left IBOX on overnight.  After 7 hours:

1. Unable to access using PuTTy - timeouts

2. Immediate access using WinSCP

3. Then able to login via PuTTy

This image (and all other on this forum) is designed / tested only with Cubietruck / Cubieboard 2. It's a luck that you can operate this on Ibox A20. Check / find for specific settings / configuration and than maybe we can work this out.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 16, 2014, 08:09:09 am
Understood.

BUT:  there's no problem with other C2 images .... suggests something specific to this image?

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 16, 2014, 09:38:58 am
Understood.

BUT:  there's no problem with other C2 images .... suggests something specific to this image?

Of course there are differences but it's hard to tell where is the problem. Try with an image few versions back specially without latest IR/VLAN/Audio features. This can help to understand.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 16, 2014, 10:21:37 am
Understood.

BUT:  there's no problem with other C2 images .... suggests something specific to this image?

Of course there are differences but it's hard to tell where is the problem. Try with an image few versions back specially without latest IR/VLAN/Audio features. This can help to understand.

I don't have a spare card at the moment!

However, I commented out

Code: [Select]
HostKey /etc/ssh/ssh_host_ecdsa_key

in sshd_config

This has significantly reduced the number of freezes.

---------------

Is there an easy way to disable the IR feature ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: quickpass on May 16, 2014, 12:43:23 pm
Thanks slovenia for your reply. Still no luck with Plex Media Server. Hopefully someone with experiences can make it work with Cubietruck (just like Qui did it here: http://blog.qnology.com/2013/03/tutorial-pogoplug-e02-with-arch-linux.html). I have my CT running this image for a few weeks now and things looking good. Actually I don't have much stuff running yet :-) I still have a few questions:

1. I want to see the LED's, so I comment everything in /etc/init.d/disable_led.sh. It works but I don't know if that's the right place?
2. How do I turn on the message log while booting?
3. You overclocked the CT to 1200Mhz. This is the maximum and the CT runs at 1200Mhz only when it needs to, correct? Sorry I am a newbie.
4. I really appreciate you take the time and reply to every message asking for questions/suggestions. I want to buy you a coffee. Does your paypal accept payment from a bank? or just credit card? I try to avoid any fees on your end.

QP


@quickpass
Quote
I double checked and I sure did get the correct image. uEnv.ct has "script=/boot/ct-hdmi.bin" enabled. It doesn't work maybe because I connect it to my TV instead of a monitor? Well, that's not important so I don't worry about it for now.

Hmm. It could be some compatibility / hardware problem? It should work.

Quote
I spent hours past weekend trying to install Plex Media Server

No debian ARM  build, yes ...
http://www.raspberrypi.org/forums/viewtopic.php?t=23753&p=224963
no open source no fun :(
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 16, 2014, 03:01:46 pm

However, I commented out

Code: [Select]
HostKey /etc/ssh/ssh_host_ecdsa_key

in sshd_config

This has significantly reduced the number of freezes.


Spoke too soon!  Still freezing randomly.

Seems unsolvable.

edit:

Might have a solution:

  In PuTTY Connection settings - enable TCP Keepalives and enter 15 in Seconds between keepalives
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Longahr on May 16, 2014, 05:35:50 pm
Hi,

first I'd like to thank slovenia and all contributors for the work done on this great image.

I'm trying to build the image on my own but the build script fails on detaching the loop device with following error:

Code: [Select]
loop: can't delete device /dev/loop1: Device or resource busy

I already tried using umount -d to automatically detach the loop device after unmounting but umount also fails because the mount seems to be in use.

Has anyone else had this problem? Any ideas?

Longahr
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: tstorr on May 16, 2014, 09:10:31 pm
Hi,

first I'd like to thank slovenia and all contributors for the work done on this great image.

I'm trying to build the image on my own but the build script fails on detaching the loop device with following error:

Code: [Select]
loop: can't delete device /dev/loop1: Device or resource busy

I already tried using umount -d to automatically detach the loop device after unmounting but umount also fails because the mount seems to be in use.

Has anyone else had this problem? Any ideas?

Longahr

Is this on a vanilla 12.04 64bit in a VM?  I had this problem on my standard ubuntu desktop.  I then installed  ubuntu server 12.04 LTS 64 bit into a virtualbox vm and it now works fine.  I did not manage to find what was using the loopback process when it failed.

Trevor
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: qiozas on May 17, 2014, 11:18:28 am
Just got my CT.
I have installed this Wheezy image (VGA) very easy and is working like a charm.
Thanks "slovenia" (patwood and all others) for this image and for your time.

More details for my installation here:
http://www.cubieforums.com/index.php?topic=2557.0

My only issue is that I create one partition 3TB with gdisk, but df thinks that it is 2 TB. I do not know if df is problematic, neither if I can write more than 2TB in my partition. I do not even know how to easy test it.
Any help?

Regards,
Adrianos Dadis
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 17, 2014, 01:35:11 pm
1. I want to see the LED's, so I comment everything in /etc/init.d/disable_led.sh. It works but I don't know if that's the right place?
2. How do I turn on the message log while booting?
3. You overclocked the CT to 1200Mhz. This is the maximum and the CT runs at 1200Mhz only when it needs to, correct? Sorry I am a newbie.
4. I really appreciate you take the time and reply to every message asking for questions/suggestions. I want to buy you a coffee. Does your paypal accept payment from a bank? or just credit card? I try to avoid any fees on your end.

1. Yes, that's o.k. If you want to change led behaviour check this post (http://www.cubieforums.com/index.php?topic=2200.0).
2. Edit /boot/uEnv.ct (https://github.com/igorpecovnik/Cubietruck-Debian/wiki/FAQ) and alter/remove console parameter.
3. Yes, in my case more than 93% of time is on the lowest frequency (480Mhz). Check with:
Code: [Select]
cpufreq-info
4. To avoid fees you/we need to do it with hard cash :) Paypal accept many options but I never do any research on this.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 17, 2014, 01:51:12 pm
Just got my CT.
I have installed this Wheezy image (VGA) very easy and is working like a charm.
Thanks "slovenia" (patwood and all others) for this image and for your time.

More details for my installation here:
http://www.cubieforums.com/index.php?topic=2557.0

My only issue is that I create one partition 3TB with gdisk, but df thinks that it is 2 TB. I do not know if df is problematic, neither if I can write more than 2TB in my partition. I do not even know how to easy test it.
Any help?

Regards,
Adrianos Dadis

This way:
http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html

P.S.
Free software is closer to anarchism (http://en.wikipedia.org/wiki/Anarchism) than democracy ... what's that anyway? ;)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Longahr on May 17, 2014, 02:51:32 pm
I installed Ubuntu Server into a VM and it worked. I assume that KDE had his hands on all the created loop devices.

If I run the build script twice without deleting the downloaded files, I get several messages like this:

Code: [Select]
Reversed (or previously applied) patch detected! Assume -R? [n]
If I just press enter on each prompt, the script quits due to returned error code, I guess (because of "set -e"). I don't know anything about patching and therefore I don't know which answer is the correct one.  ;) The help page of patch command shows following options:

Code: [Select]
-t  --batch  Ask no questions; skip bad-Prereq patches; assume reversed.
-f  --force  Like -t, but ignore bad-Prereq patches, and assume unreversed.

Does it make sense to use one of these options?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 17, 2014, 02:59:41 pm
I, and other IBOX users, have problems getting ethernet to work.

How is the ethernet driver loaded (suxi_emac or sunxi_gmac ) ?

Is it compiled in the kernel?  or is there a module (where located?)

Hope you can help.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: aleale97 on May 17, 2014, 03:36:24 pm
Hi guys,

as first thank you slovenia, i wanted to do this myself but with my knowledge it would have taken a life! I still does not understand the boot process of my cubietruck, what does it do when i power it on? What the boot sequence?

And again: if i put your image on the microSD while having lubuntu installed on the nand, from which one will it boot?

Don't bother correcting me if i'm wrong in something, i'm just a newbie  ;D
Alessandro, Italy!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 17, 2014, 03:46:32 pm
I installed Ubuntu Server into a VM and it worked. I assume that KDE had his hands on all the created loop devices.

If I run the build script twice without deleting the downloaded files, I get several messages like this:

Code: [Select]
Reversed (or previously applied) patch detected! Assume -R? [n]
If I just press enter on each prompt, the script quits due to returned error code, I guess (because of "set -e"). I don't know anything about patching and therefore I don't know which answer is the correct one.  ;) The help page of patch command shows following options:

Code: [Select]
-t  --batch  Ask no questions; skip bad-Prereq patches; assume reversed.
-f  --force  Like -t, but ignore bad-Prereq patches, and assume unreversed.

Does it make sense to use one of these options?

That "loop problem" occurred randomly ... not properly fixed yet.

Patching should be processed only once. That would be safest way ...

@castalla
Quote
I, and other IBOX users, have problems getting ethernet to work.
How is the ethernet driver loaded (suxi_emac or sunxi_gmac ) ?

Both drivers are build into kernel and definitions are in sunxi system configuration scripts aka "fex files". They are located in /boot ... you have to de-bin them with bin2fex name.bin name.fex

For a start you need a IBOX fex files with proper parameters.
https://github.com/linux-sunxi/sunxi-boards/tree/master/sys_config/a20

... there might be a relation with a u-boot loader. (not my field of knowing)

Search on the forum for details. There are some general sources about this.

@Alessandro

First boot choice is SD card if present.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: aleale97 on May 17, 2014, 04:00:51 pm
What about USB key? And just another one: can your image be uploaded directly through phoenix to the nand?  Will it be risky?

Thank you very much again for the help and the work you've done! :D
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: 3bs on May 17, 2014, 08:11:03 pm
Is there way to increase samba performance? 20-25Mbits/sec ugly :(
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Mike Lowrey on May 18, 2014, 08:12:08 am
Hey,

thanks for this great image! Unfortunately i have the same problem like bbs with the latest version.

Before i updated i had around 60mb/s and now only 25 mb/s max. Any idea what could cause that?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: qiozas on May 18, 2014, 12:20:10 pm
Just got my CT.
I have installed this Wheezy image (VGA) very easy and is working like a charm.
Thanks "slovenia" (patwood and all others) for this image and for your time.

More details for my installation here:
http://www.cubieforums.com/index.php?topic=2557.0

My only issue is that I create one partition 3TB with gdisk, but df thinks that it is 2 TB. I do not know if df is problematic, neither if I can write more than 2TB in my partition. I do not even know how to easy test it.
Any help?

Regards,
Adrianos Dadis

This way:
http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html

P.S.
Free software is closer to anarchism (http://en.wikipedia.org/wiki/Anarchism) than democracy ... what's that anyway? ;)

Thanks for the link about GPT. I has created partition with gdisk. I will try again with parted to check if df recognize it as 3TB.

P.S. (reply to previous P.S.)
About democracy, anarchism and Free Software:
- "Democracy": I mean real Democracy and not Liberal/Bourgeoisie Democracy (as is 99% of modern "democratic" countries)
- "Free Software": Includes ideas from anarchism and democracy. Democracy is not even an ideology, it is a form of government that can be applied by a number of people to work as society. An applied/real anarchism society will need a kind of democracy in order to operate (it is a prerequisite).
- "Democracy requires Free Software" (my quote): As software is in our lives, a real democracy cannot exist if FS absents. With this quote I just mean that I want a society with FS and operates at least with a real democracy. Now, if such a society will be an anarchism society, this will be defined by the people  of this society.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Sloop on May 19, 2014, 04:32:47 am
Since a few days I am connecting often to my CT and while I work through SSH I realize connection being dropped. It's the first time I realize because before I did manage my CT locally through console. What is happening? I log-in through SSH, and after some seconds or minutes my SSH conneciton is dropped. I get no pings any more to the CT but it's definitely NOT a LAN problem. I double-checked and everything on the LAN works fine. I have pings to all my other hosts, and all the other hosts can ping me while the CT is still offline (no pings). It's only the CT which sometimes looses its connection and I cannot ping the CT from none of my hosts on my LAN. After about a minute the CT is reachable and send ping replies, so I can login again to it. I can continue my from through SSH, but it may happen that after uncertained time the same happens again.

Anyone else did make this experience?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Fuzzlix on May 19, 2014, 04:38:26 am
Since a few days I am connecting often to my CT and while I work through SSH I realize connection being dropped. It's the first time I realize because before I did manage my CT locally through console. What is happening? I log-in through SSH, and after some seconds or minutes my SSH conneciton is dropped. I get no pings any more to the CT but it's definitely NOT a LAN problem. I double-checked and everything on the LAN works fine. I have pings to all my other hosts, and all the other hosts can ping me while the CT is still offline (no pings). It's only the CT which sometimes looses its connection and I cannot ping the CT from none of my hosts on my LAN. After about a minute the CT is reachable and send ping replies, so I can login again to it. I can continue my from through SSH, but it may happen that after uncertained time the same happens again.

Anyone else did make this experience?
Ethernet runs fine on this image. For me it sounds like a loose/broken ethernet cable. I set up my ethernet to static ip. It speeds up erternet startup and no dhcp server can change my ip adress. ( makes it easier to set up puTTY.)
I suggest: check your hardware/cables.

Fuzzlix.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 19, 2014, 04:49:35 am
Since a few days I am connecting often to my CT and while I work through SSH I realize connection being dropped. It's the first time I realize because before I did manage my CT locally through console. What is happening? I log-in through SSH, and after some seconds or minutes my SSH conneciton is dropped. I get no pings any more to the CT but it's definitely NOT a LAN problem. I double-checked and everything on the LAN works fine. I have pings to all my other hosts, and all the other hosts can ping me while the CT is still offline (no pings). It's only the CT which sometimes looses its connection and I cannot ping the CT from none of my hosts on my LAN. After about a minute the CT is reachable and send ping replies, so I can login again to it. I can continue my from through SSH, but it may happen that after uncertained time the same happens again.

Anyone else did make this experience?

Try this:

In PuTTY Connection settings - enable TCP Keepalives and enter 15 in Seconds between keepalives
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: qiozas on May 19, 2014, 04:25:21 pm
Just got my CT.
I have installed this Wheezy image (VGA) very easy and is working like a charm.
Thanks "slovenia" (patwood and all others) for this image and for your time.

More details for my installation here:
http://www.cubieforums.com/index.php?topic=2557.0

My only issue is that I create one partition 3TB with gdisk, but df thinks that it is 2 TB. I do not know if df is problematic, neither if I can write more than 2TB in my partition. I do not even know how to easy test it.
Any help?

Regards,
Adrianos Dadis

This way:
http://www.cyberciti.biz/tips/fdisk-unable-to-create-partition-greater-2tb.html

P.S.
Free software is closer to anarchism (http://en.wikipedia.org/wiki/Anarchism) than democracy ... what's that anyway? ;)

Thanks for the link about GPT. I has created partition with gdisk. I will try again with parted to check if df recognize it as 3TB.

P.S. (reply to previous P.S.)
About democracy, anarchism and Free Software:
- "Democracy": I mean real Democracy and not Liberal/Bourgeoisie Democracy (as is 99% of modern "democratic" countries)
- "Free Software": Includes ideas from anarchism and democracy. Democracy is not even an ideology, it is a form of government that can be applied by a number of people to work as society. An applied/real anarchism society will need a kind of democracy in order to operate (it is a prerequisite).
- "Democracy requires Free Software" (my quote): As software is in our lives, a real democracy cannot exist if FS absents. With this quote I just mean that I want a society with FS and operates at least with a real democracy. Now, if such a society will be an anarchism society, this will be defined by the people  of this society.

Using parted instead of gdisk, now df recognizes my partition as 3TB.

root@cthome:~# df -H
Filesystem      Size  Used Avail Use% Mounted on
rootfs           16G  1.2G   14G   8% /
/dev/root        16G  1.2G   14G   8% /
devtmpfs        1.1G     0  1.1G   0% /dev
tmpfs           135M  177k  135M   1% /run
tmpfs           5.3M     0  5.3M   0% /run/lock
tmpfs           135M     0  135M   0% /run/shm
tmpfs           1.1G     0  1.1G   0% /tmp
/dev/root        16G  1.2G   14G   8% /var/log.hdd
ramlog-tmpfs    269M  3.1M  266M   2% /var/log
/dev/sda1       3.0T  211M  2.9T   1% /opt/wdred

Regards,
Adrianos.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Laire on May 20, 2014, 03:27:19 pm
I don't find the uEnv.txt for changing the resolution, the is no file wit .txt in the boot folder
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Fuzzlix on May 20, 2014, 04:24:11 pm
I don't find the uEnv.txt for changing the resolution, the is no file wit .txt in the boot folder
try:
 
Code: [Select]
bin2fex <your-bin-file> uEnv.fex.. to create. later use fex2bin to convert back.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 21, 2014, 10:49:36 am
Just a quick report:

Bluetooth works fine with this image!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: MrDialUp on May 21, 2014, 11:59:29 am
yeah apache2 fails to restart with this script

Yes.  :-[ There is a problem with ramlog + isp/apache logs.  :-\ Will work if you disable it and do the install again (or manual recreate missing logs):

Code: [Select]
service ramlog disable
reboot # to be safe

Working on permanent solution. Saving Apache logs to RAM is mandatory  :P

p.s.
I fixed some other bugs in the script on the way.

Igor, did you have a chance to investigate this issue further?  I just did another reinstall (to 1.9) and I cannot get the ISPCONFIG3 webpage to load. 
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: AndiBcool on May 21, 2014, 05:53:08 pm
Hello Igor,

since you did compile the whole kernel with modules, do you happen to have the File Module.symvers ?
This file is needed to compile drivers.

Same problem on Raspberry pi:

"The main problem with that, is the absence of a file named Module.symvers, that contains the symbol versions of the running kernel and all of its modules. That file would normally come in the linux-headers package. To get that file, and be able to build ‘good’ modules for the kernel, you would need to build the entire kernel and all its modules yourself. At the end of the build, the file will be created. "
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: slovenia on May 22, 2014, 06:07:42 am
yeah apache2 fails to restart with this script

Yes.  :-[ There is a problem with ramlog + isp/apache logs.  :-\ Will work if you disable it and do the install again (or manual recreate missing logs):

Code: [Select]
service ramlog disable
reboot # to be safe

Working on permanent solution. Saving Apache logs to RAM is mandatory  :P

p.s.
I fixed some other bugs in the script on the way.

Igor, did you have a chance to investigate this issue further?  I just did another reinstall (to 1.9) and I cannot get the ISPCONFIG3 webpage to load.

Disabling ramlog (+reboot) before starting install is probably only solution in a combination with my Cubie Debian image. Install finished o.k. ... checked today with latest image. Than enable ramlog back. The only thing that I altered is fixed IP address. I think it's also mandatory.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: lampra on May 22, 2014, 06:12:20 am
Just a quick report:

Bluetooth works fine with this image!
Do you mean bt dongles or Cubitruck internal bluetooth?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 22, 2014, 06:30:30 am
Hello Igor,

since you did compile the whole kernel with modules, do you happen to have the File Module.symvers ?
This file is needed to compile drivers.

Sure. It will be added to next release:
http://cubie.nobrainz.de/downloads/Module.symvers.zip
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 22, 2014, 11:23:48 am
Just a quick report:

Bluetooth works fine with this image!
Do you mean bt dongles or Cubitruck internal bluetooth?

BT dongles
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: M_fl on May 22, 2014, 03:35:03 pm
Thanks for this image - like it. 

However it took me a couple of days to figure out that my CT doesn't like the overclocking to 1.2 GHz.  It did freeze on heavy loads e.g. on a .configure run for a package that I wanted to compile no matter if I did it on the hard disk or on the SD. So the power supply (2.5A) was sorted out.

Tried several things but finally I limited the max CPU freq. to 1 GHz and CT compiled the package without any hickups  :D :D

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: MrDialUp on May 22, 2014, 04:07:28 pm
yeah apache2 fails to restart with this script

Yes.  :-[ There is a problem with ramlog + isp/apache logs.  :-\ Will work if you disable it and do the install again (or manual recreate missing logs):

Code: [Select]
service ramlog disable
reboot # to be safe

Working on permanent solution. Saving Apache logs to RAM is mandatory  :P

p.s.
I fixed some other bugs in the script on the way.

Igor, did you have a chance to investigate this issue further?  I just did another reinstall (to 1.9) and I cannot get the ISPCONFIG3 webpage to load.

Disabling ramlog (+reboot) before starting install is probably only solution in a combination with my Cubie Debian image. Install finished o.k. ... checked today with latest image. Than enable ramlog back. The only thing that I altered is fixed IP address. I think it's also mandatory.

OK, so I need to disable ramlog before I start the install.  Wasn't doing that, I was disabling it after the install.  I'll try it and report back.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Longahr on May 23, 2014, 04:03:36 pm
Patching should be processed only once. That would be safest way ...

So do you download the sources from github each time you build the image? For me, this takes about 45 minutes due to my slow internet connection.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 23, 2014, 04:17:54 pm
Patching should be processed only once. That would be safest way ...

So do you download the sources from github each time you build the image? For me, this takes about 45 minutes due to my slow internet connection.

No, if sources are locally we don't download them.

Just the patching part of the script needs to be redesigned/fixed.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: ThunderBRZ on May 24, 2014, 06:50:15 pm
I use USB 16 and 8 ports hub, to connect my 3g´s modem (6), after 10 min, modens no works and recevie this kern message:

May 24 19:43:32 cubie kernel: [55861.190275] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:32 cubie kernel: [55861.450278] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:33 cubie kernel: [55861.710262] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:33 cubie kernel: [55861.960261] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:33 cubie kernel: [55862.220271] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:33 cubie kernel: [55862.470270] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:34 cubie kernel: [55862.730271] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:34 cubie kernel: [55862.990266] hub 4-1.2:1.0: unable to enumerate USB device on port 2
May 24 19:43:34 cubie kernel: [55863.019811] option: option_instat_callback: error -2



root@cubie:/var/log# lsusb
Bus 004 Device 086: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 087: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 004 Device 088: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 004 Device 091: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 004 Device 092: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 004 Device 093: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 004 Device 089: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 004 Device 098: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem



In my cb2/cubian works fine !!!

any help??
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: jersonjunior on May 24, 2014, 09:12:36 pm
I Solved with Fedora 20 on Cubietruck using Hub 16 and 20 ports. Now Works fine with 16/20 active calls. Dmesg show: unable to enumerate USB device on ports, but works fine.

gsm0         0     Free       27   0    0       BRA BrTCelular E1750      11.126.13.00.00   
gsm1         0     Free       27   0    0       BRA BrTCelular E1550      11.609.18.00.00   
gsm2         0     Free       26   0    0       BRA BrTCelular E1552      11.609.20.00.00   
gsm3         0     Free       19   0    0       TIM            E1750      11.126.13.00.00   
gsm4         0     Free       23   0    0       CLARO BR       E1750      11.126.13.00.00   
gsm5         0     Free       23   0    0       CLARO BR       E1750      11.126.13.00.00   
gsm6         0     Free       24   0    0       CLARO BR       E1750      11.126.13.00.00   
gsm7         0     Free       18   0    0       TIM            E1550      11.609.20.00.00   
gsm8         0     Free       18   0    0       CLARO BR       E1553      11.609.18.00.00 
gsm9         0     Free       14   0    0       CLARO BR       E1552      11.609.18.00.00   
gsm10        0     Free       14   0    0       Claro BR       E1750      11.126.13.00.00   
gsm11        0     Free       17   0    0       CLARO BR       E1750      11.126.13.00.00   
gsm12        0     Free       14   0    0       CLARO BR       E1750      11.126.13.00.00   
gsm13        0     Free       19   0    0       CLARO BR       E1750      11.126.13.00.00   
gsm14        0     Free       23   0    0       CLARO BR       E1750      11.126.13.00.00   
gsm15        1     Free       18   0    0       Claro BR       E1552      11.609.20.00.00


[REMOVED PAGES OF UNECESSARY INLINE LOG]
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: samholton on May 25, 2014, 06:23:54 pm
Has anyone been able to compile the DVBHDHOMERUN driver (http://sourceforge.net/apps/trac/dvbhdhomerun/) on this image? I'm still running the 3.4.75 kernel for my main installation but currently trying on a fresh install of the latest image (Linux cubie 3.4.79-sun7i+) as its supposed to include the header files.

This is my first time trying to compile anything related to the kernel or drivers so any help would be appreciated. The issues I'm having are:

1. Finding the correct source (from the build manual: apt-get source linux-2.6)

2. Finding the config file - I don't see any config files under /boot

I've tried to build this image from source before on a Debian laptop (cross compile) but had issues. It's a learning experience right? :) I'm going to look through the script again to see if I can answer some of my own questions.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: AndiBcool on May 25, 2014, 07:34:00 pm
You can look in this thread maybe you find some helpfull information:
http://www.cubieforums.com/index.php?topic=2427.0

Actually compiling on this Image or Kernel is not easy.
You cant install headers you have to point em out in the directory and you miss the Module.symvers
file but Igor did upload it and will include it in next release.
There is also a naming problem with the LOCAL Version linux-headers- 3.4.79-sun7i+ while headers are without+.
I did try 3 different versions to compile a driver but all failed for some other reason.
I did also manage to compile the driver file but does nothing.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: dmonkey on May 26, 2014, 06:19:15 am
Hello,
I like your image very much! It's the best pre-configured server image I could find for CT.
So I edited some things and added some soft and wrote a card image to my harddisc for future as recover.

For now a friend of mine bought a CT and he want to get my Image because he likes my changes but still want to install XBMC and connect the CT to his TV. The question is, how to edit the changes youve done and give graphics some ram? I tried to edit /boot/uEnv.ct but still nothink happens. Can someone give me a hint?

Thanks
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: qiozas on May 26, 2014, 08:35:22 am
When try to copy directories of 10GB from USB disk to SATA disk, then CT auto restart and might also throw this error in logs:
Code: [Select]
Unable to handle kernel paging request at virtual address
Extra details are described here: http://www.cubieforums.com/index.php/topic,2591.0.html (http://www.cubieforums.com/index.php/topic,2591.0.html)

Any ideas?

Regards,
Adrianos.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 27, 2014, 03:13:36 pm
I have an early A10 CUBIEBOARD.

Is there any way to install this image on a CB 1 ???
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: samholton on May 27, 2014, 04:22:15 pm
I have setup a VM (using Ubuntu 12.04 Server) and was able to build the 1.9 image using the build script. However, when I try to boot, the CT just keeps rebooting itself. If I download the prebuilt image (hdmi) it works find (using the same SD card). I can mount the SD card in another computer. What logs should I look at to track down my issue? It looks like 1.9 is using ramlog.

Edit: It seems there may be some differences between the compiled image and the current git code. Maybe something is causing an issue? Has anyone tried building an image with the current code?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 28, 2014, 01:28:59 am
I have setup a VM (using Ubuntu 12.04 Server) and was able to build the 1.9 image using the build script. However, when I try to boot, the CT just keeps rebooting itself. If I download the prebuilt image (hdmi) it works find (using the same SD card). I can mount the SD card in another computer. What logs should I look at to track down my issue? It looks like 1.9 is using ramlog.

Edit: It seems there may be some differences between the compiled image and the current git code. Maybe something is causing an issue? Has anyone tried building an image with the current code?

Yes, I did some debug & figured out that there is a bug in creating the file-system. Compiling kernel is fine, u-boot is fine ... I thought I will find & repair before anyone notice :) ... but was(am) unable to spend much time @computer those days.

Quote
It seems there may be some differences between the compiled image and the current git code.

Yes, there are some changes / fixes which are not implemented yet.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: samholton on May 28, 2014, 08:25:23 am
Yes, I did some debug & figured out that there is a bug in creating the file-system. Compiling kernel is fine, u-boot is fine ... I thought I will find & repair before anyone notice :) ... but was(am) unable to spend much time @computer those days.

I guess the good news is maybe I'm not doing something wrong :) If there is anything I can do to help, let me know.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: richardcheng on May 28, 2014, 09:50:10 am
Yes, I did some debug & figured out that there is a bug in creating the file-system. Compiling kernel is fine, u-boot is fine ... I thought I will find & repair before anyone notice :) ... but was(am) unable to spend much time @computer those days.


Seems that something wrong in the line number 397 (that deleted some lib symbolic links) in build.sh

# remove false links to the kernel source
find $DEST/output/sdcard/lib -type l -exec rm -f {} \;

comment this line will work!


Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: samholton on May 28, 2014, 10:02:08 am
I had the same guess and am currently building an image with that line removed also. Will report back later today. Unfortunately my build machine is slow...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: samholton on May 28, 2014, 12:03:42 pm
# remove false links to the kernel source
find $DEST/output/sdcard/lib -type l -exec rm -f {} \;

comment this line will work!

My image worked removing that line. It looks like there are quite a few links in /lib

Code: [Select]
/lib/ld-linux-armhf.so.3
/lib/libiptc.so.0
/lib/libip4tc.so.0
/lib/terminfo/r/rxvt-m
/lib/terminfo/E/Eterm-color
/lib/terminfo/x/xterm-debian
/lib/libip6tc.so.0
/lib/systemd/system/sockets.target.wants/dbus.socket
/lib/systemd/system/sockets.target.wants/udev-control.socket
/lib/systemd/system/sockets.target.wants/udev-kernel.socket
/lib/systemd/system/basic.target.wants/udev-trigger.service
/lib/systemd/system/basic.target.wants/udev.service
/lib/systemd/system/dbus.target.wants/dbus.socket
/lib/systemd/system/multi-user.target.wants/dbus.service
/lib/arm-linux-gnueabihf/libreadline.so.5
/lib/arm-linux-gnueabihf/libcidn.so.1
/lib/arm-linux-gnueabihf/libpcre.so.3
/lib/arm-linux-gnueabihf/libthread_db.so.1
/lib/arm-linux-gnueabihf/libsysfs.so.2
/lib/arm-linux-gnueabihf/libtinfo.so.5
/lib/arm-linux-gnueabihf/libext2fs.so.2
/lib/arm-linux-gnueabihf/libpamc.so.0
/lib/arm-linux-gnueabihf/libacl.so.1
/lib/arm-linux-gnueabihf/ld-linux-armhf.so.3
/lib/arm-linux-gnueabihf/libnss_nis.so.2
/lib/arm-linux-gnueabihf/libnss_nisplus.so.2
/lib/arm-linux-gnueabihf/libbz2.so.1.0
/lib/arm-linux-gnueabihf/libpopt.so.0
/lib/arm-linux-gnueabihf/libglib-2.0.so.0
/lib/arm-linux-gnueabihf/libcom_err.so.2
/lib/arm-linux-gnueabihf/libprocps.so.0
/lib/arm-linux-gnueabihf/libc.so.6
/lib/arm-linux-gnueabihf/libncurses.so.5
/lib/arm-linux-gnueabihf/librt.so.1
/lib/arm-linux-gnueabihf/libnss_files.so.2
/lib/arm-linux-gnueabihf/libblkid.so.1
/lib/arm-linux-gnueabihf/libnss_compat.so.2
/lib/arm-linux-gnueabihf/libpci.so.3
/lib/arm-linux-gnueabihf/liblzma.so.5
/lib/arm-linux-gnueabihf/libusb-0.1.so.4
/lib/arm-linux-gnueabihf/libhistory.so.5
/lib/arm-linux-gnueabihf/libattr.so.1
/lib/arm-linux-gnueabihf/libdl.so.2
/lib/arm-linux-gnueabihf/libnl-3.so.200
/lib/arm-linux-gnueabihf/libe2p.so.2
/lib/arm-linux-gnueabihf/libnss_hesiod.so.2
/lib/arm-linux-gnueabihf/libfuse.so.2
/lib/arm-linux-gnueabihf/libm.so.6
/lib/arm-linux-gnueabihf/libnl-genl-3.so.200
/lib/arm-linux-gnueabihf/libcap.so.2
/lib/arm-linux-gnueabihf/libbsd.so.0
/lib/arm-linux-gnueabihf/libgcrypt.so.11
/lib/arm-linux-gnueabihf/libresolv.so.2
/lib/arm-linux-gnueabihf/libanl.so.1
/lib/arm-linux-gnueabihf/libz.so.1
/lib/arm-linux-gnueabihf/libntfs-3g.so.835
/lib/arm-linux-gnueabihf/libutil.so.1
/lib/arm-linux-gnueabihf/libgpg-error.so.0
/lib/arm-linux-gnueabihf/libmount.so.1
/lib/arm-linux-gnueabihf/libuuid.so.1
/lib/arm-linux-gnueabihf/ld-linux.so.3
/lib/arm-linux-gnueabihf/libpam.so.0
/lib/arm-linux-gnueabihf/libkmod.so.2
/lib/arm-linux-gnueabihf/libexpat.so.1
/lib/arm-linux-gnueabihf/libwrap.so.0
/lib/arm-linux-gnueabihf/libslang.so.2
/lib/arm-linux-gnueabihf/libnss_dns.so.2
/lib/arm-linux-gnueabihf/libnsl.so.1
/lib/arm-linux-gnueabihf/libulockmgr.so.1
/lib/arm-linux-gnueabihf/libBrokenLocale.so.1
/lib/arm-linux-gnueabihf/libudev.so.0
/lib/arm-linux-gnueabihf/libkeyutils.so.1
/lib/arm-linux-gnueabihf/libdbus-1.so.3
/lib/arm-linux-gnueabihf/libsystemd-login.so.0
/lib/arm-linux-gnueabihf/libusb-1.0.so.0
/lib/arm-linux-gnueabihf/libncursesw.so.5
/lib/arm-linux-gnueabihf/libpthread.so.0
/lib/arm-linux-gnueabihf/libhistory.so.6
/lib/arm-linux-gnueabihf/libpam_misc.so.0
/lib/arm-linux-gnueabihf/libcrypt.so.1
/lib/arm-linux-gnueabihf/libreadline.so.6
/lib/arm-linux-gnueabihf/libparted.so.0
/lib/arm-linux-gnueabihf/libbz2.so.1
/lib/arm-linux-gnueabihf/libss.so.2
/lib/modules/3.4.79-sun7i+/build
/lib/modules/3.4.79-sun7i+/source
/lib/libxtables.so.7
/lib/libipq.so.0
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 28, 2014, 02:23:56 pm
Thanks for help. 8) Main script has been updated ... & it should work now.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on May 28, 2014, 07:24:57 pm
I have an early A10 CUBIEBOARD.

Is there any way to install this image on a CB 1 ???

Bump!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: samholton on May 28, 2014, 10:37:36 pm
Good news! I was able to compile DVBHDHOMERUN on the CT and have TVHEADEND working. Still have some configuration to do but much better performance than running on the PI. I am able to record two HD streams no problem to an external USB drive.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: soundcheck on May 31, 2014, 06:42:12 am
Hi there.

Does anybody sees a way of getting gcc-4.8 introduced to the image?


Thx
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: smotritel89 on May 31, 2014, 01:31:34 pm
iproute2 with tc is not working this kernel?

example:

Code: [Select]
tc qdisc show
RTNETLINK answers: Operation not supported
Dump terminated
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 31, 2014, 01:54:12 pm
Hi there.

Does anybody sees a way of getting gcc-4.8 introduced to the image?


Thx

With upgrade to Jessie?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: soundcheck on May 31, 2014, 02:02:04 pm
Is there a Jessie image for the CT?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on May 31, 2014, 02:14:10 pm
Not sure, but you can upgrade. You will find a how-to in this thread.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: david88 on June 01, 2014, 12:50:05 am
Hi,

just performed the latest upgrade, but unfortunately have troubles with Lirc. One of the modules does not seem to load properly.

I get the following error when entering "sudo /etc/init.d/lirc restart"
cannot access /sys/devices/platform/sunxi_lirc.0/lirc/: No such file or directory
-> I checked and the file is really not there, but I have the sunxi-lirc.ko in /lib/modules/.../lirc

Output of lsmod is:
Module                  Size  Used by
cpufreq_userspace       3294  0
disp_ump                 861  0
mali_drm                2608  1
drm                   207738  2 mali_drm
mali                  110323  0
ump                    50975  4 mali,disp_ump
lirc_gpio              10557  0
lirc_dev               13034  1 lirc_gpio
wifi_gpio               5861  0

I cant load either sunxi-lirc or sunxi_lirc with modprobe.

Thanks for any help!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: soundcheck on June 01, 2014, 10:36:22 am
Hi.

The image is meant to run as server as far as I understand. May I suggest something.


cat /proc/interrupts shows that all IRQs run on processor 0.

For a server it is a good idea to have eth0 running on a dedicated processor.

All what needs to be done is:

echo 2 > /proc/irq/117/smp_affinity

or

echo 2 > /proc/irq/$(cat /proc/interrupts | grep eth0 | cut -f 1 -d ":" )/smp_affinity


###

Can somebody point me to the Jessie upgrade instructions please. I scanned numerous pages, I couldn't find it.

THX

Cheers

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: soundcheck on June 02, 2014, 03:32:57 am
Ok.

I managed to run the jessie upgrade.
Just used the original /etc/apt/sources.list.xxxx as sources.list, swapped "wheezy" with "jessie" inside and ran a dist-upgrade.

And...

Code: [Select]
gcc --version
gcc (Debian 4.8.3-2) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



@slovenia: why don't u use the jessie release for the image ??
There'd be slight performance advantages to use gcc-4.8.3 over 4.6  also for the kernel.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: david88 on June 06, 2014, 07:18:02 am
Hi,

just performed the latest upgrade, but unfortunately have troubles with Lirc. One of the modules does not seem to load properly.

I get the following error when entering "sudo /etc/init.d/lirc restart"
cannot access /sys/devices/platform/sunxi_lirc.0/lirc/: No such file or directory
-> I checked and the file is really not there, but I have the sunxi-lirc.ko in /lib/modules/.../lirc

Output of lsmod is:
Module                  Size  Used by
cpufreq_userspace       3294  0
disp_ump                 861  0
mali_drm                2608  1
drm                   207738  2 mali_drm
mali                  110323  0
ump                    50975  4 mali,disp_ump
lirc_gpio              10557  0
lirc_dev               13034  1 lirc_gpio
wifi_gpio               5861  0

I cant load either sunxi-lirc or sunxi_lirc with modprobe.

Thanks for any help!

Solved it. Because I only updated, the sunxi_lirc module was "not known" to the kernel even though it was in the kernel directory.
depmod -a did fix this (in case anyone else runs into this problem)

Only thing left now is to find out how to send IR commands with the cubietruck, not sure if I need to buy an emitter and connect to GPIO pins?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Longahr on June 07, 2014, 05:59:45 am
Hi slovenia,

I am interested in updating from 1.9 to 2.0. For past updates you have provided update packages for manual updating to the newer version. Would this also be possible for the newest version?

Would be very grateful!

Longahr
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: soundcheck on June 07, 2014, 11:13:22 am
Slovenia.

Just downloaded the git version.

I saw that you have the ethernet-on-proc2 tweak I mentioned earlier in build.sh. Cool.

I was wondering if the I2S patch is no longer needed with kernel 3.4.91+ , since you commented it out in build.sh?

BTW. If I build the image on my Ubuntu machine, my current gcc, which is 4.8.2, will be used. Correct??
What's your gcc version on your host environment ??

I'd also suggest to have the DEST directory refering /usr/src instead of /tmp.
Many of us have  /tmp as tmpfs. That'll be causing issues. Just happend to me.

Have you tried my 300Hz timer patch that I mentioned in the ArchImage or patwood kernel thread?

Code: [Select]


--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100
+++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100
@@ -1698,7 +1698,7 @@
  default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
  default AT91_TIMER_HZ if ARCH_AT91
  default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
- default 100
+ default 300
 
 config THUMB2_KERNEL
  bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"



This should make the system more responsive in case multiple tasks are running.

Cheers



Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on June 09, 2014, 06:16:29 am
I was wondering if the I2S patch is no longer needed with kernel 3.4.91+ , since you commented it out in build.sh?

BTW. If I build the image on my Ubuntu machine, my current gcc, which is 4.8.2, will be used. Correct??
What's your gcc version on your host environment ??

I'd also suggest to have the DEST directory refering /usr/src instead of /tmp.
Many of us have  /tmp as tmpfs. That'll be causing issues. Just happend to me.

Have you tried my 300Hz timer patch that I mentioned in the ArchImage or patwood kernel thread?

Code: [Select]


--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100
+++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100
@@ -1698,7 +1698,7 @@
  default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
  default AT91_TIMER_HZ if ARCH_AT91
  default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
- default 100
+ default 300
 
 config THUMB2_KERNEL
  bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"



This should make the system more responsive in case multiple tasks are running.

Cheers

No patches are needed if you use default (my) kernel source. I am using gcc 4.6 but I have also successfully compiled with 4.8 on Debian Jessie.

Added.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: pattinik on June 09, 2014, 06:39:25 am
Hi slovenia,

I am interested in updating from 1.9 to 2.0. For past updates you have provided update packages for manual updating to the newer version. Would this also be possible for the newest version?

Would be very grateful!

Longahr

I'm interest too. But is this a critical update? Tnx
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on June 09, 2014, 07:53:09 am
Hi slovenia,

I am interested in updating from 1.9 to 2.0. For past updates you have provided update packages for manual updating to the newer version. Would this also be possible for the newest version?

Would be very grateful!

Longahr

I'm interest too. But is this a critical update? Tnx

Just do a kernel upgrade which is available for download. The rest is not that important / critical.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: MrDialUp on June 09, 2014, 08:39:18 am
Hi slovenia,

I am interested in updating from 1.9 to 2.0. For past updates you have provided update packages for manual updating to the newer version. Would this also be possible for the newest version?

Would be very grateful!

Longahr

I'm interest too. But is this a critical update? Tnx

Just do a kernel upgrade which is available for download. The rest is not that important / critical.

Start here:  https://wiki.debian.org/HowToUpgradeKernel
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on June 09, 2014, 09:51:19 am
Hi slovenia,

I am interested in updating from 1.9 to 2.0. For past updates you have provided update packages for manual updating to the newer version. Would this also be possible for the newest version?

Would be very grateful!

Longahr

I'm interest too. But is this a critical update? Tnx

Just do a kernel upgrade which is available for download. The rest is not that important / critical.

Start here:  https://wiki.debian.org/HowToUpgradeKernel

Sorry, but for noobs that link is not very instructive!

How about somebody giving the code steps here?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on June 09, 2014, 01:51:37 pm
1. Login as root
2. Execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz
tar pxvfz CTDebian_2.0_kernel_mod_head_fw.tgz
reboot

@MrDialUp

Default way yes. I am not bothering to pack a kernel as it should be for normal apt-get update. I don't have energy to bother with that :P
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: castalla on June 09, 2014, 02:50:39 pm
1. Login as root
2. Execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz
tar pxvfz CTDebian_2.0_kernel_mod_head_fw.tgz
reboot

@MrDialUp

Default way yes. I am not bothering to pack a kernel as it should be for normal apt-get update. I don't have energy to bother with that :P

Thanks
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: mno on June 09, 2014, 06:18:55 pm
this Debian Image often connects to these domains:

belgarath.bunkus.org/bunkus.org/www.bunkus.org
ridcully.episode-iv.de
gollum.webersheim.de
solsocog.de

can anyone tell me why?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Sloop on June 09, 2014, 06:25:18 pm
I would like to install a module which requires the kernel headers. Can you explain how to install the kernel header for the used kernel 3.4.79-sun7i+ please?

I tried to git pull your source slovenia, but as I already upgraded my /etc/apt/sources.list to "jessie" the build.sh fails because it cannot find some packages to install. Any help appreciated.

Thanks in advance.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on June 10, 2014, 01:19:18 am
this Debian Image often connects to these domains:

belgarath.bunkus.org/bunkus.org/www.bunkus.org
ridcully.episode-iv.de
gollum.webersheim.de
solsocog.de

can anyone tell me why?

 ??? This Debian is quite clean. There are some non-standard enhancements but can't be related to this. I could not find any of mentioned in my logs. What did you install on the top of it?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on June 10, 2014, 01:28:20 am
I would like to install a module which requires the kernel headers. Can you explain how to install the kernel header for the used kernel 3.4.79-sun7i+ please?

I tried to git pull your source slovenia, but as I already upgraded my /etc/apt/sources.list to "jessie" the build.sh fails because it cannot find some packages to install. Any help appreciated.

Thanks in advance.

The simplest option is to download my latest kernel package which already have proper headers with it. But it's not .79 ... It's .91
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: macduck on June 10, 2014, 01:34:05 am
this Debian Image often connects to these domains:

belgarath.bunkus.org/bunkus.org/www.bunkus.org
ridcully.episode-iv.de
gollum.webersheim.de
solsocog.de

can anyone tell me why?

any more details on how often/ports/protocols? i don't see any of these...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: Sloop on June 10, 2014, 03:07:40 am
I downloaded your kernel package on the initial post (Link Kernel Package for CT 1.9). When I unpacked the file and changed into directory ./lib/modules I see a directory called 3.4.79 ?? Are you sure, this is the new .91 Kernel you talked about?

My next question is: where are the kernel header files located at, I need to know the exact path. And how do I install the new Kernel into my CT ?
Code: [Select]
# ls -l
insgesamt 12
drwxr-xr-x 2 root root 4096 Jun 10 08:52 boot
drwxr-xr-x 4 root root 4096 Jun 10 08:53 lib
drwxr-xr-x 3 root root 4096 Jun 10 08:52 usr
Should I copy&overwrite these three directories to my root filesystem?

The simplest option is to download my latest kernel package which already have proper headers with it. But it's not .79 ... It's .91
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: slovenia on June 10, 2014, 03:17:01 am
Could you tell me how I can do this best? I downloaded your kernel package on the initial post (Link Kernel Package). When I unpacked the file and changed into directory ./lib/modules I see it is still 3.4.79 ?? And where are the Kernel header files located at, I need to know the exact path. And how do I install the new Kernel into my CT ?

The simplest option is to download my latest kernel package which already have proper headers with it. But it's not .79 ... It's .91

Latest (.91) is on my blog - i forgot to update initial post (doing it right now):
http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz

After unpack you will find headers in /usr/include
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: Sloop on June 10, 2014, 03:31:27 am
1.) How can I have the complete kernel, not only the header files? I am asking because I am trying to run the command "module-assistant auto-install mymodulename -k /path/to/kernel/including/headerfiles". Now I have the kernel headers, but the command fails because it says it cannot find a valid Kernel source on this path.

2.)How can I install this newer .91 Kernel into my Cubietruck? Actually I am running 3.4.79+
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: slovenia on June 10, 2014, 03:37:11 am
1. If you need the whole source:

Code: [Select]
git clone https://github.com/igorpecovnik/linux-sunxi
2. If you use my image just do this:
http://www.cubieforums.com/index.php/topic,1275.msg17365.html#msg17365

on others it might me necessary to correct path to kernel in uEnv file, located in /boot or on the root of boot partition.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: Sloop on June 10, 2014, 07:07:35 am
why do I get this error, when I try to clone the complete kernel (incl. the header) ???

Code: [Select]
# git clone https://github.com/igorpecovnik/linux-sunxi
Quote
cloning to 'linux-sunxi'...
remote: Counting objects: 2746855, done.
remote: Compressing objects: 100% (468029/468029), done.
remote: Total 2746855 (delta 2251983), reused 2746854 (delta 2251982)
received objects: 100% (2746855/2746855), 813.98 MiB | 596.00 KiB/s, Done.
error: index-pack died of signal 111/2251983)
fatal: index-pack failed
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: slovenia on June 10, 2014, 08:37:22 am
I don't compile kernel on my Cubie so I never encounter this kind of error. After a quick search I found this:

http://www.raspberrypi.org/forums/viewtopic.php?p=128303

Memory related problems ... suggesting enabling swap.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: mno on June 10, 2014, 08:53:56 am
this Debian Image often connects to these domains:

belgarath.bunkus.org/bunkus.org/www.bunkus.org
ridcully.episode-iv.de
gollum.webersheim.de
solsocog.de

can anyone tell me why?

 ??? This Debian is quite clean. There are some non-standard enhancements but can't be related to this. I could not find any of mentioned in my logs. What did you install on the top of it?

A lot of software, mainly nginx, mysql, seafile, munin.
You can find a full list here: http://mno.pw/installed-packages.txt

But I don't think the list help. Do you have any tip on how I can log wich package connects to which domain?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 10, 2014, 10:20:48 am
Hi Slovenia.

Two comments

1.

In /etc/udev/rules.d/70-persistent-net.rules I find a configured wlan0 interface.

I think the file should not exist on maiden installations.


2.

I found a strange message in my dmesg:
Code: [Select]
[    1.503986] AHCI is disabled in script.bin

We use ct-hdmi/ct-vga.bin !?!? and not script.bin, which  is the typical default bin file though.

Perhaps not an issue.



Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: Sloop on June 10, 2014, 05:28:16 pm
1. If you need the whole source:

Code: [Select]
git clone https://github.com/igorpecovnik/linux-sunxi
2. If you use my image just do this:
http://www.cubieforums.com/index.php/topic,1275.msg17365.html#msg17365


Hi Slovenia,

I have upgraded my CT image to 3.4.91 as you explained in point 2. and rebooted. The kernel 3.4.91 seems to be active now. Thanks so far

But I still have problems in compiling one of my desired modules. My issue is: I installed DRBD 8.4.4 from Debian Jessie repository, but when I enter "modinfo drbd8" I get the result, that the DRBD8 block module in use is in version 8.3.x (!). See that screenshot: (http://abload.de/img/drbd_module_version_mxmcnt.jpg), where the left side shows Debian Jessie on an amd64 arch and the right side shows my Cubietruck running Debian Jessie on your image (on this screenshot I had the older kernel installed, but I am on 3.4.91 as I said before).

I cannot understand, why DRBD 8.4.4 package installed and used the older DRBD8 block device module?? So I tried to re-build the newer and suited DRBD 8.4.4 module for the Cubietruck accordingly that official DRBD8 HowTo (http://www.drbd.org/users-guide/s-build-deb.html)

Unfortunately, I am stuck at the stage where I enter "module-assistant auto-install drbd8". It tries to install the linux-headers through the Debian repository which of course will fail because the linux-headers don't exist on the official Debian repository. So I downloaded the kernel header files from your initial post (http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz) and afterwards I unpacked this archive into /some/dir. When I try to re-run my last command "module-assistant ..." but add the option to use a dir for the kernel dir (the command is "module-assistant auto-install drbd8 -k /some/dir") then I get the error, that no kernel source can be found. It seems to me, that this process is also expecting a valid kernel source on the specified dir.

So, how can I have the kernel source files, too? I tried to download the related and complete 3.4.91 Kernel (https://github.com/igorpecovnik/linux-sunxi/archive/dan-3.4.91.zip) but when I unzip this file, and use the extracted dir as kernel-base dir in my "module-assistant ..." command it says that the kernel is not configured and the command fails again.

How should I proceed here, any help really appreciated. I just need the correct DRBD8 module in version 8.4.4.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: macduck on June 10, 2014, 07:22:24 pm
Do you have any tip on how I can log wich package connects to which domain?

sudo tcpdump -Xi <YOUR-NETWORK-INTERFACE> tcp[13] == 2 and src host <YOUR-INTERFACE-IP>

Actually I world suggest you to use -n option so tcpdump will not do  reverse lookup before printing dump, but will just print IPs. Do reverse lookup yourself later.

what you'll see is all the outgoing syn packets created by your system (all the connections initiated by your system). Like in this example:

Quote
ctruck  andrew  ~  sudo tcpdump -Xi eth0 tcp[13] == 2 and src host 192.168.0.5
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
09:34:39.142509 IP ctruck.local.33209 > seagatestorage.microsoft-ds: Flags [ S ], seq 1563783514, win 14600, options [mss 1460,sackOK,TS val 305919693 ecr 0,nop,wscale 7], length 0
   0x0000:  4500 003c 8797 4000 4006 31c9 c0a8 0005  E..<..@.@.1.....
   0x0010:  c0a8 0006 81b9 01bd 5d35 715a 0000 0000  ........]5qZ....
   0x0020:  a002 3908 818a 0000 0204 05b4 0402 080a  ..9.............
   0x0030:  123b f6cd 0000 0000 0103 0307            .;..........
09:35:39.271915 IP ctruck.local.33210 > seagatestorage.microsoft-ds: Flags [ S ], seq 2134548069, win 14600, options [mss 1460,sackOK,TS val 305925706 ecr 0,nop,wscale 7], length 0
   0x0000:  4500 003c 902f 4000 4006 2931 c0a8 0005  E..<./@.@.)1....
   0x0010:  c0a8 0006 81ba 01bd 7f3a 9e65 0000 0000  .........:.e....
   0x0020:  a002 3908 818a 0000 0204 05b4 0402 080a  ..9.............
   0x0030:  123c 0e4a 0000 0000 0103 0307            .<.J........

here my Ctruck connects to seagatestorage (microsoft-ds service is NetBIOS over TCP/IP and SMB/CIFS traffic)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: tola5 on June 11, 2014, 03:05:58 am
Hi have use you Nice Worning for some time but suddenly it dont World so I take the opportunity for the update to the latest :D but nok my 30gb SD are not ben resize egen it boot so it are only 1gb some who have tried it ? Are it just to take it to a vm machine
 and do it
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 11, 2014, 03:35:39 am
I'd like to share a way of regenerating udev-net-rules.

Code: [Select]
sudo su
rm -f /etc/udev/rules.d/70-persistent-net.rules
export INTERFACE=eth0
export MATCHADDR=`ip addr show $INTERFACE | grep ether | awk '{print $2}'`
/lib/udev/write_net_rules

(Taken from here  (http://"http://kmadac.github.io/posts/18-Regenerate-net-udev-rules-in-ubuntu-12.04/"))

stuff like e.g. "udevadm trigger --action=add or similar" or just "removing net-rules and rebooting" usually doesn't work.

@ slovenia: Something like above should be run after initial bootup (/etc/init.d/cubian-firstrun) of the
                   image on a new CT.
                   You just need to figure out if eth0 or wlan0 is up.

Cheers

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: wiesi on June 11, 2014, 04:28:31 am
I´ve tried this, everything is in place ... bute uname -r still shows me kernel 3.4.79-sun7i+ ... any help? :)

1. Login as root
2. Execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz
tar pxvfz CTDebian_2.0_kernel_mod_head_fw.tgz
reboot

@MrDialUp

Default way yes. I am not bothering to pack a kernel as it should be for normal apt-get update. I don't have energy to bother with that :P
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: marcelpo on June 11, 2014, 04:32:43 am
1. Login as root
2. Execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz
tar pxvfz CTDebian_2.0_kernel_mod_head_fw.tgz
reboot

@MrDialUp

Default way yes. I am not bothering to pack a kernel as it should be for normal apt-get update. I don't have energy to bother with that :P


Maybe a good idea to note that to upgrade a NAND or SATA based installation you first need to make sure that /dev/nand1 is mounted to /boot otherwise it looks like everything went ok, but the kernel actually landed on the local drive instead of the NAND boot partition....  I learned this the hard way by doing the kernel upgrade to a remote cubietruck that as a result of this error didn't come back after reboot ;)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
Post by: wiesi on June 11, 2014, 05:03:33 am
I am a bit confused because of /dev/nand1 ... where is it mounted to? This is what it looks like at my cubietruck:

Quote
Filesystem     1K-blocks      Used Available Use% Mounted on
rootfs           7369792   2221076   4774344  32% /
/dev/root        7369792   2221076   4774344  32% /
devtmpfs         1023896         0   1023896   0% /dev
tmpfs             131072       196    130876   1% /run
tmpfs               5120         0      5120   0% /run/lock
tmpfs             131072         0    131072   0% /run/shm
/dev/sda1      961433632 400479780 512115776  44% /mnt/sata
tmpfs            1048576       152   1048424   1% /tmp
/dev/root        7369792   2221076   4774344  32% /var/log.hdd
ramlog-tmpfs      262144      4364    257780   2% /var/log

I have a SATA-disc (mounted to /mnt/sata) and no SD-CARD inside ...


1. Login as root
2. Execute:
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz
tar pxvfz CTDebian_2.0_kernel_mod_head_fw.tgz
reboot

@MrDialUp

Default way yes. I am not bothering to pack a kernel as it should be for normal apt-get update. I don't have energy to bother with that :P


Maybe a good idea to note that to upgrade a NAND or SATA based installation you first need to make sure that /dev/nand1 is mounted to /boot otherwise it looks like everything went ok, but the kernel actually landed on the local drive instead of the NAND boot partition....  I learned this the hard way by doing the kernel upgrade to a remote cubietruck that as a result of this error didn't come back after reboot ;)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: schmidtm on June 11, 2014, 06:10:38 am
Hi Igor,

i have a hard time getting the S/P DIF Interface on my Cubietruck up and running with your v2.0 / 2.6.2014 Image.

1) The cards show up in the proc filesystem:

schmidtm@cubie:~/prj/alsa-test$ cat /proc/asound/cards
 0 [sunxicodec     ]: sunxi-CODEC - sunxi-CODEC
                      sunxi-CODEC  Audio Codec
 1 [sunxisndspdif  ]: sunxi-sndspdif - sunxi-sndspdif
                      sunxi-sndspdif
 2 [sunxisndi2s    ]: sunxi-sndi2s - sunxi-sndi2s
                      sunxi-sndi2s

2) ... but are not recognized by ALSA:

schmidtm@cubie:~/prj/alsa-test$ aplay -l
aplay: device_list:252: no soundcards found...

schmidtm@cubie:~/prj/alsa-test$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)


although I have installed alsa-base and alsa-utils. Aplay on the hardware used to work *once* like this:

aplay -c 2 -f cd -t wav --device=hw:1 song.wav

But after using a ~/.asoundrc to set the default to hw:1 everything used to stop working.

Can anyone share some ideas how to track this down?

cheers,

Matthias




Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 11, 2014, 07:34:29 am

Take away the (any) .asoundrc first and reboot.

I have the newest kernel running:

Code: [Select]
root@cubie:~# aplay -l
**** Liste der Hardware-Geräte (PLAYBACK) ****
Karte 0: sunxisndspdif [sunxi-sndspdif], Gerät 0: SUNXI-SPDIF sndspdif-0 []
  Sub-Geräte: 1/1
  Sub-Gerät #0: subdevice #0
Karte 3: UCX23639700 [Fireface UCX (23639700)], Gerät 0: USB Audio [USB Audio]
  Sub-Geräte: 0/1
  Sub-Gerät #0: subdevice #0
root@cubie:~# uname -a
Linux cubie 3.4.91-sun7i+ #1 SMP PREEMPT Tue Jun 10 15:32:46 CEST 2014 armv7l GNU/Linux

Key is that aplay shows the device before you start trying to play anything over it.

Everything looks OK over here.



Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: schmidtm on June 11, 2014, 01:04:11 pm
Hi soundcheck and thanks for the super-fast reply. I did as you proposed (there were not alsa user-config files left) but to no avail:

schmidtm@cubie:~$ who
schmidtm pts/0        2014-06-11 16:58 (192.168.2.3)
schmidtm@cubie:~$ uptime
 16:59:24 up 2 min,  1 user,  load average: 0.03, 0.05, 0.03
schmidtm@cubie:~$ uname -a
Linux cubie 3.4.91-sun7i+ #1 SMP PREEMPT Fri May 30 12:11:04 CEST 2014 armv7l GNU/Linux
schmidtm@cubie:~$ aplay -l
aplay: device_list:252: no soundcards found...

Should i remove alsa-base and alsa-utils? Or should i start-over again by re-installing the image? I this case i loose all my compilers, libs, emacs configs and the like. Any ideas?

cheers,

Matthias
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 11, 2014, 03:52:24 pm
Hmmh.
Maybe try aplay -l as root with sudo su.
Or you could also try a different app such as ecasound or sox.

Never seen a mismatch between /proc/asound/cards and aplay -l

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: tola5 on June 11, 2014, 04:23:29 pm
Hi have use you Nice Worning for some time but suddenly it dont World so I take the opportunity for the update to the latest :D but nok my 30gb SD are not ben resize egen it boot so it are only 1gb some who have tried it ? Are it just to take it to a vm machine
 and do it
World now expant it on af vituel ubuntu on my PC
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: schmidtm on June 11, 2014, 06:16:40 pm
I can not believe this ... Aplay works fine running as root, see:

root@cubie:/home/schmidtm/prj/alsa-test# id
uid=0(root) gid=0(root) groups=0(root)

root@cubie:/home/schmidtm/prj/alsa-test# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sunxisndspdif [sunxi-sndspdif], device 0: SUNXI-SPDIF sndspdif-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: sunxisndi2s [sunxi-sndi2s], device 0: SUNXI-I2S sndi2s-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@cubie:/home/schmidtm/prj/alsa-test# aplay -c 2 -f cd -t wav --device=hw:1 icecream.wav
Playing WAVE 'icecream.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

How come? Packages with broken permissions? This gotta be addressed by somebody ...

Anyway: Thank you very much to lead me in the right direction!

cheers,

Matthias
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: slovenia on June 12, 2014, 01:16:42 am
I can not believe this ... Aplay works fine running as root, see:

root@cubie:/home/schmidtm/prj/alsa-test# id
uid=0(root) gid=0(root) groups=0(root)

root@cubie:/home/schmidtm/prj/alsa-test# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sunxicodec [sunxi-CODEC], device 0: M1 PCM [sunxi PCM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: sunxisndspdif [sunxi-sndspdif], device 0: SUNXI-SPDIF sndspdif-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: sunxisndi2s [sunxi-sndi2s], device 0: SUNXI-I2S sndi2s-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

root@cubie:/home/schmidtm/prj/alsa-test# aplay -c 2 -f cd -t wav --device=hw:1 icecream.wav
Playing WAVE 'icecream.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

How come? Packages with broken permissions? This gotta be addressed by somebody ...

Anyway: Thank you very much to lead me in the right direction!

cheers,

Matthias

Don't know why this happen.  :-[ Issue acknowledged.

I am not doing anything unusual regarding audio install:
https://github.com/igorpecovnik/Cubietruck-Debian

How is this issue on Jessie for example if someone can try out?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 12, 2014, 05:09:18 am
A question/remark to the kernel  .config in build.sh

Isn't below command obsolete:

Code: [Select]
make $CTHREADS make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig
You copy your own kernel.config to .config and that overwrites the result of above !?!?

I'd comment it out, remove it or introduce an "if", that if your "kernel.config" is not available the "make ... sun7i_defconfig" should be executed.

Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: jademonkee on June 12, 2014, 08:13:17 am
I just performed the 1.7 -> 1.8 upgrade (then a reboot), followed by the 1.8 > 1.9 upgrade (reboot), followed by the kernel upgrade (reboot).
However, most of my services no longer start automatically (eg samba, logitechmediaserver)
I have a backed up image of my working 1.7 install.
As far as I can tell, the:
/etc/init.d/.depend.boot
/etc/init.d/.depend.start
/etc/init.d/.depend.stop
Files in the 1.7 -> 1.8 upgrade have overwritten my versions.
Sure, I can extract the files from the image, then overwrite them again..
But is there a way to just have them re-generate automatically (so I don't risk missing anything)
Or is there a recommended way to merge the changes made during the upgrade?
Many thanks for your help (from an eager Linux beginner).
Regards,
Simon
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 12, 2014, 08:22:22 am

What does it take to get the Logitechmediaserver going on this Debian image??

Has somebody written up a brief HowTo by chance?

Thx
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: joaofl on June 12, 2014, 11:05:47 am
In the same direction, what about XBMC?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: castalla on June 12, 2014, 11:56:25 am

What does it take to get the Logitechmediaserver going on this Debian image??

Has somebody written up a brief HowTo by chance?

Thx

Easy!
Code: [Select]
1. wget http://downloads.slimdevices.com/nightly/7.8/sc/3871f55/logitechmediaserver_7.8.1~1402481566_all.deb

2. dpkg -i logitechmediaserver_7.8.1~1402481566_all.deb

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: slovenia on June 12, 2014, 02:00:46 pm
I just performed the 1.7 -> 1.8 upgrade (then a reboot), followed by the 1.8 > 1.9 upgrade (reboot), followed by the kernel upgrade (reboot).
However, most of my services no longer start automatically (eg samba, logitechmediaserver)
I have a backed up image of my working 1.7 install.
As far as I can tell, the:
/etc/init.d/.depend.boot
/etc/init.d/.depend.start
/etc/init.d/.depend.stop
Files in the 1.7 -> 1.8 upgrade have overwritten my versions.
Sure, I can extract the files from the image, then overwrite them again..
But is there a way to just have them re-generate automatically (so I don't risk missing anything)
Or is there a recommended way to merge the changes made during the upgrade?
Many thanks for your help (from an eager Linux beginner).
Regards,
Simon

It is possible to create proper automatic update system but this takes extra work/time which I can't find for various reasons :'(

My upgrade files are as is ...  more as a guidance. I know they are not properly prepared - It could be said: "for advanced users only / risky". ::)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 13, 2014, 07:00:06 am

Easy!
Code: [Select]
1. wget http://downloads.slimdevices.com/nightly/7.8/sc/3871f55/logitechmediaserver_7.8.1~1402481566_all.deb

2. dpkg -i logitechmediaserver_7.8.1~1402481566_all.deb


Easy!?!??  ::)

It's not working for me. LMS goes into cyclic restart. I also tried 7.9.1-nightly and the Raspberry Pi instructions you guys refered to in another thread over here.
No luck so far.

I'm running jessie btw.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: castalla on June 13, 2014, 07:37:08 am

Easy!
Code: [Select]
1. wget http://downloads.slimdevices.com/nightly/7.8/sc/3871f55/logitechmediaserver_7.8.1~1402481566_all.deb

2. dpkg -i logitechmediaserver_7.8.1~1402481566_all.deb


Easy!?!??  ::)

It's not working for me. LMS goes into cyclic restart. I also tried 7.9.1-nightly and the Raspberry Pi instructions you guys refered to in another thread over here.
No luck so far.

I'm running jessie btw.

Strange.   You need to look at the server log to see if there's a clue to why it's restarting. 

There's no longer any need to make the Pi changes as later 7.8.1 versions are self-contained.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 13, 2014, 10:06:40 am
@castalla

I think I have a perl issue. When running: /usr/sbin/squeezeboxserver

I'll get

Code: [Select]
The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS Sub::Name

On jessie I have perl 5.18.2

Code: [Select]
perl -version

This is perl 5, version 18, subversion 2 (v5.18.2) built for arm-linux-gnueabihf-thread-multi-64int
(with 41 registered patches, see perl -V for more detail)


What perl are you running?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: soundcheck on June 13, 2014, 10:25:47 am
Just found this in LMS 7.8 buildme.sh

Code: [Select]
# Supported OSes:
#
# Linux (Perl 5.8.8, 5.10.0, 5.12.4, 5.14.1, 5.16.3)

I guess I need to downgrade perl??  Any ideas how to do it?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 2.6.2014
Post by: castalla on June 13, 2014, 10:34:23 am
Just found this in LMS 7.8 buildme.sh

Code: [Select]
# Supported OSes:
#
# Linux (Perl 5.8.8, 5.10.0, 5.12.4, 5.14.1, 5.16.3)

I guess I need to downgrade perl??  Any ideas how to do it?

You might get some help on http://forums.slimdevices.com/index.php
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: david88 on June 13, 2014, 08:24:17 pm
After a number of updates, I realized I have about 800MB of old kernels on my CT. Is it safe to just delete the old directories?

3.4.75-igorpecovnik.com+
3.4.75-sun7i+
3.4.79-sun7i+
3.4.91-sun7i+ (this one is in use now based on uname)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 14, 2014, 01:49:52 am
After a number of updates, I realized I have about 800MB of old kernels on my CT. Is it safe to just delete the old directories?

3.4.75-igorpecovnik.com+
3.4.75-sun7i+
3.4.79-sun7i+
3.4.91-sun7i+ (this one is in use now based on uname)

Sure - remove inactive kernel files under /boot and inactive modules under /lib/modules
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: soundcheck on June 14, 2014, 04:25:20 am
@castalla

Last comment about my LMS subject


Regarding "EASY". What's your setup? Are you actually running slovenias image?

Wheezy comes with Perl 5.14 and Jessie with 5.18. And LMS <=7.9.0 just supports <= 5.14 on ARM.

The ways out:
* Either I use Wheezy, but that gets me back to rather crappy (for ARM)  gcc 4.6, or
* I manage to downgrade to Perl 5.14 on my Jessie image, or
* I manage to get an LMS with Perl 5.18 support for ARM.

Thx
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: BASKA on June 14, 2014, 01:48:28 pm
Hi everyone!  :)
Tell me please, who knows.
How can you make an update separately only the kernel?
At the moment I have installed and configured for my needs - CTDebian 2.0.
I can only update the kernel? If yes - please tell me how to do it.
Thank you in advance.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: castalla on June 14, 2014, 05:20:54 pm
@castalla

Last comment about my LMS subject


Regarding "EASY". What's your setup? Are you actually running slovenias image?

Wheezy comes with Perl 5.14 and Jessie with 5.18. And LMS <=7.9.0 just supports <= 5.14 on ARM.

The ways out:
* Either I use Wheezy, but that gets me back to rather crappy (for ARM)  gcc 4.6, or
* I manage to downgrade to Perl 5.14 on my Jessie image, or
* I manage to get an LMS with Perl 5.18 support for ARM.

Thx

Yes ... using the 2.0 version.  Works without any issues.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: soundcheck on June 16, 2014, 03:32:08 am
Hi everyone!  :)
Tell me please, who knows.
How can you make an update separately only the kernel?
At the moment I have installed and configured for my needs - CTDebian 2.0.
I can only update the kernel? If yes - please tell me how to do it.
Thank you in advance.

That's pretty easy. ;)  (If you know how)

If you ran slovenia's built script successfully, you'll have the base environment settings done.
The kernel sources can then be found under $DEST/Cubie/linux-sunxi

You then just configure the  new/updated/patched kernel, you compile it, and then you copy the uimage/modules/firmware over to the CT. (Have a look at the slovenia build script first and then
search in the forum)

Good luck.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: soundcheck on June 16, 2014, 04:56:55 am
Hi slovenia.


Two little improvement proposals.

You might update the default /etc/network/interfaces to introduce an option for static IP.

Enclosed my setup:

Code: [Select]
/etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

auto lo
iface lo inet loopback

###DHCP setting#################################################################
#######################
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

###STATIC IP setting############################################################
#######################
#auto eth0
#allow-hotplug eth0
#iface eth0 inet static
#address 192.168.X.YY
#netmask 255.255.255.0
#network 192.168.X.0
#broadcast 192.168.X.255
#gateway 192.168.X.1

###WLAN setting#################################################################
#######################
#auto wlan0
#allow-hotplug wlan0
#iface wlan0 inet dhcp
#    wpa-ssid SSID
#    wpa-psk xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# to generate proper encrypted key: wpa_passphrase yourSSID yourpassword



Beside that you could add "nfs-common" to the base image.

Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: cubiezomb on June 16, 2014, 06:14:27 am
CT has GPS on board ? If yes its running here ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: Jono on June 16, 2014, 06:57:54 am
CT has GPS on board ?
nope
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: soundcheck on June 16, 2014, 09:30:37 am
@castalla

To confirm:

Just installed the logitechmediaserver 7.9.0.-beta on a Wheezy image.

On the Wheezy image, with perl 5.14 in place it as easy as you suggested.

Thx
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: DEVIL on June 18, 2014, 05:58:19 am
V2.1 with Kernel 3.4.93 ---> kernel headers are broken!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 18, 2014, 06:25:02 am
V2.1 with Kernel 3.4.93 ---> kernel headers are broken!

How do you mean broken? They looks o.k. to me but It's true that I haven't done anything with them. I only created them in the compile process. Compilation was completed without any errors.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: playassoff on June 18, 2014, 02:19:13 pm
Hello everyone,

I have problem with Sunxi-IR module. Of course I'm using this image, current version 2.1.

My hardware.conf:
Code: [Select]
root@cubie:/etc/lirc# cat hardware.conf

#Chosen Remote Control
REMOTE="Custom"
REMOTE_MODULES="sunxi_lirc"
REMOTE_DRIVER="default"
# REMOTE_DEVICE=""
REMOTE_DEVICE="/dev/lirc1"
REMOTE_SOCKET="/dev/lircd"
#REMOTE_SOCKET="/var/run/lirc/lircd"

REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="Custom"
TRANSMITTER_MODULES="lirc_gpio"
TRANSMITTER_DRIVER="default"
TRANSMITTER_DEVICE="/dev/lirc0"
TRANSMITTER_SOCKET="/dev/lircd"
TRANSMITTER_LIRCD_CONF="/etc/lirc/lircd.conf"
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD="true"

0. First of all I'm trying to check if sunxi-ir (https://github.com/matzrh/sunxi-lirc/wiki) is working.

Code: [Select]
root@cubie:/etc/lirc# service lirc stop

root@cubie:/etc/lirc# cat /dev/lirc1 | hexdump
0000000 22aa 0100 1194 0000 022b 0100 0215 0000
0000010 0215 0100 0215 0000 022b 0100 0215 0000
0000040 0215 0100 022a 0000 0215 0100 066a 0000
0000050 022b 0100 067f 0000 0215 0100 067f 0000
0000060 0215 0100 067f 0000 01d5 0100 06bf 0000
0000070 0215 0100 067f 0000 022b 0100 066a 0000
..and so on
and
Code: [Select]
root@cubie:/etc/lirc# mode2 -d /dev/lirc1
pulse 8938
space 4436
pulse 533
space 533
pulse 555
space 533
...and so on

It looks that everything is OK.

1. I tried to record pilot config. And this is result:

Code: [Select]
root@cubie:/etc/lirc# irrecord -d /dev/lirc0 --disable-namespace test.conf
Press RETURN now to start recording.
................................................................................
Found gap: 16275
Please keep on pressing buttons like described above.
................................................................................
Space/pulse encoded remote control found.
Signal length is 67.
No header data.
Found trail pulse: 543
Found repeat code: 8919 2223
Found repeat gap: 16275
Signals are space encoded.
Signal length is 33
Now enter the names for the buttons.

Please enter the name for the next button (press <ENTER> to finish recording)
POWER

Now hold down button "POWER".
Something went wrong. Please try again. (9 retries left)
Something went wrong. Please try again. (8 retries left)
Something went wrong. Please try again. (7 retries left)
Something went wrong. Please try again. (6 retries left)
Something went wrong. Please try again. (5 retries left)
Something went wrong. Please try again. (4 retries left)
Something went wrong. Please try again. (3 retries left)
Something went wrong. Please try again. (2 retries left)
Something went wrong. Please try again. (1 retries left)
Something went wrong.
Try using the -f option.

With -f option or without --disable-namespace result is always the same. I have no idea what I'm doing wrong. Hardware.conf is not configured correctly?

Here is generated test.conf:
Code: [Select]
root@cubie:/etc/lirc# cat test.conf

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Wed Jun 18 18:07:27 2014
#
# contributed by
#
# brand:                       test.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  test.conf
  bits           33
  flags SPACE_ENC
  eps            30
  aeps          100

  one           537  1658
  zero          537   540
  ptrail        543
  repeat       8919  2223
  gap          16275
  repeat_gap   16275
  toggle_bit_mask 0x0

      begin codes
      end codes

end remote
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: castalla on June 19, 2014, 08:58:14 am
I have been running version 1.9 using a usb BT dongle with success. 

However, I suspect that the 2.1 update (which fixes onboard BT) creates problems for the BT dongle as it no longer plays audio.

I've reverted to 1.9 and BT sound is back.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 19, 2014, 01:40:29 pm
I have been running version 1.9 using a usb BT dongle with success. 

However, I suspect that the 2.1 update (which fixes onboard BT) creates problems for the BT dongle as it no longer plays audio.

I've reverted to 1.9 and BT sound is back.

Now you should have two bluetooth devices? Maybe you should only alter the configuration? I haven't change anything else regarding Bluetooth system, only loading the driver. "Only" means loading one module and loading firmware ...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: castalla on June 19, 2014, 01:56:30 pm
I have been running version 1.9 using a usb BT dongle with success. 

However, I suspect that the 2.1 update (which fixes onboard BT) creates problems for the BT dongle as it no longer plays audio.

I've reverted to 1.9 and BT sound is back.

Now you should have two bluetooth devices? Maybe you should only alter the configuration? I haven't change anything else regarding Bluetooth system, only loading the driver. "Only" means loading one module and loading firmware ...


Sorry - forgot to mention that tis is on the ibox which doesn't have onboard bt. 
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: sam.smith on June 20, 2014, 05:00:10 am
How can I install java?

I tried
Code: [Select]
apt-get install default-jre ffmpeg libavcodec-extra-53 libavformat-extra-53 dcraw unzip
but I get
Code: [Select]
Reading package lists... Done
Building dependency tree     
Reading state information... Done
unzip is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
default-jre : Depends: default-jre-headless (= 1:1.6-47) but it is not going to be installed
               Depends: openjdk-6-jre (>= 6b23~pre8-2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: twist on June 20, 2014, 09:49:35 am
Hallo,

i have a question about updating.

I unpack the update and overwrite the memory card on ct with it and reboot.
Must i do some thing else to complete the update?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: DEVIL on June 20, 2014, 10:57:33 am
Code: [Select]
tar xvfzp CTDebian_X.X_kernel_mod_head_fw.tgzreboot

Thats all.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: david88 on June 21, 2014, 02:55:14 am
Hello everyone,

I have problem with Sunxi-IR module. Of course I'm using this image, current version 2.1.

My hardware.conf:
Code: [Select]
root@cubie:/etc/lirc# cat hardware.conf

#Chosen Remote Control
REMOTE="Custom"
REMOTE_MODULES="sunxi_lirc"
REMOTE_DRIVER="default"
# REMOTE_DEVICE=""
REMOTE_DEVICE="/dev/lirc1"
REMOTE_SOCKET="/dev/lircd"
#REMOTE_SOCKET="/var/run/lirc/lircd"

REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="Custom"
TRANSMITTER_MODULES="lirc_gpio"
TRANSMITTER_DRIVER="default"
TRANSMITTER_DEVICE="/dev/lirc0"
TRANSMITTER_SOCKET="/dev/lircd"
TRANSMITTER_LIRCD_CONF="/etc/lirc/lircd.conf"
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD="true"

0. First of all I'm trying to check if sunxi-ir (https://github.com/matzrh/sunxi-lirc/wiki) is working.

Code: [Select]
root@cubie:/etc/lirc# service lirc stop

root@cubie:/etc/lirc# cat /dev/lirc1 | hexdump
0000000 22aa 0100 1194 0000 022b 0100 0215 0000
0000010 0215 0100 0215 0000 022b 0100 0215 0000
0000040 0215 0100 022a 0000 0215 0100 066a 0000
0000050 022b 0100 067f 0000 0215 0100 067f 0000
0000060 0215 0100 067f 0000 01d5 0100 06bf 0000
0000070 0215 0100 067f 0000 022b 0100 066a 0000
..and so on
and
Code: [Select]
root@cubie:/etc/lirc# mode2 -d /dev/lirc1
pulse 8938
space 4436
pulse 533
space 533
pulse 555
space 533
...and so on

It looks that everything is OK.

1. I tried to record pilot config. And this is result:

Code: [Select]
root@cubie:/etc/lirc# irrecord -d /dev/lirc0 --disable-namespace test.conf
Press RETURN now to start recording.
................................................................................
Found gap: 16275
Please keep on pressing buttons like described above.
................................................................................
Space/pulse encoded remote control found.
Signal length is 67.
No header data.
Found trail pulse: 543
Found repeat code: 8919 2223
Found repeat gap: 16275
Signals are space encoded.
Signal length is 33
Now enter the names for the buttons.

Please enter the name for the next button (press <ENTER> to finish recording)
POWER

Now hold down button "POWER".
Something went wrong. Please try again. (9 retries left)
Something went wrong. Please try again. (8 retries left)
Something went wrong. Please try again. (7 retries left)
Something went wrong. Please try again. (6 retries left)
Something went wrong. Please try again. (5 retries left)
Something went wrong. Please try again. (4 retries left)
Something went wrong. Please try again. (3 retries left)
Something went wrong. Please try again. (2 retries left)
Something went wrong. Please try again. (1 retries left)
Something went wrong.
Try using the -f option.

With -f option or without --disable-namespace result is always the same. I have no idea what I'm doing wrong. Hardware.conf is not configured correctly?

Here is generated test.conf:
Code: [Select]
root@cubie:/etc/lirc# cat test.conf

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Wed Jun 18 18:07:27 2014
#
# contributed by
#
# brand:                       test.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  test.conf
  bits           33
  flags SPACE_ENC
  eps            30
  aeps          100

  one           537  1658
  zero          537   540
  ptrail        543
  repeat       8919  2223
  gap          16275
  repeat_gap   16275
  toggle_bit_mask 0x0

      begin codes
      end codes

end remote

I also was not able to get the "sunxi_lirc" module, which is installed and configured per default, to work. It was not able to recognize any of my IR remotes, even though they worked with the older "sunxi_ir" module.

The only way to solve this for me was to remove the sunxi_lirc and gpio modules and use the plain old sunxi_ir with the old config files. With that it works perfect without any problems.

Not sure why the new modules seem to break it.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 21, 2014, 03:57:13 am
Quote
I also was not able to get the "sunxi_lirc" module, which is installed and configured per default, to work. It was not able to recognize any of my IR remotes, even though they worked with the older "sunxi_ir" module.

The only way to solve this for me was to remove the sunxi_lirc and gpio modules and use the plain old sunxi_ir with the old config files. With that it works perfect without any problems.

Not sure why the new modules seem to break it.

We found some bug  :( >:( in latest kernel build (2.1 / 3.4.93) which could be related to this issue. I advise to downgrade a kernel package to 3.4.91. Just untgz to /

http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz

Please report if this helps in this case too.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: sam.smith on June 21, 2014, 07:06:24 am
I have managed to install java now.
The solution was to add to file sources.list the proposed updates.
Code: [Select]
deb http://ftp.freenet.de/debian/ wheezy-proposed-updates main contrib non-free
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: reolee on June 22, 2014, 03:12:07 am
Used the version 2.1 hdmi
Couldn't get bluetooth work

Code: [Select]
# service bluetooth status
[ ok ] bluetooth is running.
# hcitool scan
Device is not available: No such device
# hcitool dev
Devices:
# service bluetooth restart
[ ok ] Stopping bluetooth: rfcomm /usr/sbin/bluetoothd.
[ ok ] Starting bluetooth: bluetoothd rfcomm.
# hcitool dev
Devices:
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 22, 2014, 06:11:44 am
Used the version 2.1 hdmi
Couldn't get bluetooth work

Code: [Select]
# service bluetooth status
[ ok ] bluetooth is running.
# hcitool scan
Device is not available: No such device
# hcitool dev
Devices:
# service bluetooth restart
[ ok ] Stopping bluetooth: rfcomm /usr/sbin/bluetoothd.
[ ok ] Starting bluetooth: bluetoothd rfcomm.
# hcitool dev
Devices:

Bluetooth Cubietruck way:
http://linux-sunxi.org/Cubietruck/Bluetooth

My script is doing that and it's the only but not a 100% bullet proof solution. Sometimes the firmware simply does not load and we haven't found any other solution that rebooting and hope the next time loads.

It's better than "not working at all" :) :P

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: vanfanel on June 22, 2014, 06:58:55 am
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!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: auxr00t on June 22, 2014, 09:30:57 pm
I just installed the 2.1 HDMI image on a 16 gigabyte uSD card.

For some reason, it did not auto resize the root partition. It is still just 1 gigabyte.

Suggestions?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: auxr00t on June 22, 2014, 09:33:38 pm
Wow, never mind! I guess it never did the initial reboot. I just rebooted it for what I thought was the second time, and the partition is resized. That must have been the first reboot.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: AndiBcool on June 22, 2014, 11:44:28 pm
I did try the latest version and used a cubietruck with ssd build in. The image did not resize or reboot.
I did try it 2 times also the LEDs didnt went out.
I did not try it before with a SSD attached at the Sata port.
I did plug the sd to my 2nd cubie without ssd and it did resize just fine.


On a side note i think linux headers are not in the right directory.

On a side not i wonder how you resize the SD while you use this image. Most guides tell me, i need some other PC with linux to do that.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: auxr00t on June 23, 2014, 12:54:23 am
I'm having another issue now.

/usr/local/bin/brcm_patchram_plus is using as close to 100% of my CPU as it can.

It hovers around 97% of CPU% depending on what else the machine is doing.

I think it's supposed to be patching the firmware for a bluetooth module, which my device (Cubieboard A20) does not even have!
https://github.com/kdeenkhoorn/cubietruck-scripts/tree/master/bluetooth

Based on this information, I just disabled the init script the hard way, prepending "K" to the runlevel symlinks. For some reason, I couldn't get insserv to work. After reboot, insserv saw the changes.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 23, 2014, 12:55:26 am
You have to wait several minutes until first run finish. Then it should reboot. If this process fails or if you reboot manually you end up witout partition resize, broken ssh keys, ...so its important to wait. You can do it manually too ... Script is in /etc/init.d named cubian-firstrun

Poslano z mojega Nexus 7 z uporabo Tapatalk

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: auxr00t on June 23, 2014, 12:55:49 am
Yeah, I think I rebooted twice before the partition resized, but I wasn't keeping track. It did work eventually.

I did try the latest version and used a cubietruck with ssd build in. The image did not resize or reboot.
I did try it 2 times also the LEDs didnt went out.
I did not try it before with a SSD attached at the Sata port.
I did plug the sd to my 2nd cubie without ssd and it did resize just fine.


On a side note i think linux headers are not in the right directory.

On a side not i wonder how you resize the SD while you use this image. Most guides tell me, i need some other PC with linux to do that.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 23, 2014, 01:13:50 am
I'm having another issue now.

/usr/local/bin/brcm_patchram_plus is using as close to 100% of my CPU as it can.

It hovers around 97% of CPU% depending on what else the machine is doing.

I think it's supposed to be patching the firmware for a bluetooth module, which my device (Cubieboard A20) does not even have!
https://github.com/kdeenkhoorn/cubietruck-scripts/tree/master/bluetooth

Based on this information, I just disabled the init script the hard way, prepending "K" to the runlevel symlinks. For some reason, I couldn't get insserv to work. After reboot, insserv saw the changes.

Thanks. I will fix this asap.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: auxr00t on June 23, 2014, 01:17:17 am
And thank you for your hard work!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: david88 on June 23, 2014, 05:38:52 am

We found some bug  :( >:( in latest kernel build (2.1 / 3.4.93) which could be related to this issue. I advise to downgrade a kernel package to 3.4.91. Just untgz to /

http://cubie.nobrainz.de/downloads/CTDebian_2.0_kernel_mod_head_fw.tgz

Please report if this helps in this case too.

I am actually still on .91, so I guess this was not related. The problem I had was that irrecord (even in raw mode) kept telling me "something went wrong" every time when asking to learn a new button (and after I pressed the button).

With the "standard" lirc version the same works without any troubles. Also I believe there is a bug with irexec in that version, as this program looks in /var/run/lirc/lircd.pid to get the lirc device - which in this version is not created. I was able to fix that with a symlink though.

In the end it might have been something related to my specific installation. If no one else has this problem it would probably not be worth investigating :)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: mno on June 23, 2014, 09:55:54 am
My cubietruck had a LAN disconnect tonight until I've reconnected the LAN cable.
A short look on ifconfig shows that about 2800 from about 28 Million Rx packets in total have been dropped but I'm not sure if that was this night and because there are not that importand things on it I can ignore these 2800 dropped packages. But the disconnect isn't nice so I would like to know why there was a disconnect (uptime: 25 days - before I had a Beagle Bone Black running without issues (for month) but having too little power).

A look in /var/log/messages shows the following:
dozens of lines with this content (one every five minutes): 
Code: [Select]
CFGP2P-ERROR) wl_cfgp2p_do_ioctl : wl_cfgp2p_do_ioctl: IOCTL req 0x8947 on p2p0 I/F. Ignoring.also this - I think that was at that moment where I've reconnected (dis and connected) the LAN cable:
Code: [Select]
PHY: sunxi_gmac-0:00 - Link is Down
PHY: sunxi_gmac-0:00 - Link is Up - 1000/Full

There are no more entries. If anyone has a tip in which log I can look it would be nice, thanks.

And by the way, great work slovenia - all in all a nice debian image which is well working.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: auxr00t on June 23, 2014, 01:39:20 pm
How does the default install put /tmp and /log into RAM?

There's nothing about it in /etc/fstab.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: auxr00t on June 23, 2014, 09:55:48 pm
Never mind, I found the ramlog init script. Interesting.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: marcelpo on June 24, 2014, 03:02:04 am
Just to give some general input on reliability of Cubietruck especially in combination with Slovenia's image :

I'm involved in building a video CDN based on Cubietrucks (reason: Small form factor, low power consumption) and I can assure everyone that we are running 25 Cubietrucks for 3 months now, devided over 2 datacenter locations without severe problems.  We are even using clustering and running VLAN tagging on the network interfaces. (We love by the way the fact that this is built in by default now a days :) )  I followed along all updates as well, and all units are now running the .93 kernel version.
The only issues we encountered were either due to our own setup or to hardware faillure.  To be more specific, one unit was hacked because of the heartblead bug in Openssl and one unit failed because of a defective harddrive.

All in all one can easily conclude that Cubietruck in combination with Slovenia's image is a perfect and stabile solution, once you have it all configured the right way.   

I thought it would be helpful to give this input, since for all people not running into known issues like the Bluetooth issues, Cubietruck proofs to be a great solution for all kinds of server-like projects.


And Slovenia, please keep up the good work, we owe a great deal of the success in this case to your almost perfectly assembled OS image for Cubietruck !
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 24, 2014, 04:03:01 am
Quote
I also was not able to get the "sunxi_lirc" module, which is installed and configured per default, to work. It was not able to recognize any of my IR remotes, even though they worked with the older "sunxi_ir" module.

The only way to solve this for me was to remove the sunxi_lirc and gpio modules and use the plain old sunxi_ir with the old config files. With that it works perfect without any problems.

Not sure why the new modules seem to break it.

I tested only basic functionality.

Check for additional info here:
https://github.com/matzrh/sunxi-lirc/wiki
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: Sloop on June 24, 2014, 03:48:25 pm
Is there any known bug when the NIC is fully utilized and the Cubietruck crashes? I experienced some times in the beginning of my Cubietruck with that image that this happened, but I was not sure what it was related to. Now I can reproduce that. The most times this issue occurs when I did heavy "netio" or "iperf" tests with the cubietruck. Now I installed BackupPC a few days ago, and when there is high utilization over the NIC the cubietruck seems to crash. I have no pings to my Cubietruck any more and have to hard reset it. I have configured the LEDs on my cubietruck to show the CPU utilization and at the moment I see both LEDs lit at full speed. It looks like the cubietruck is over-utilized and I don't get ping results any more. I am forced to hard reset it.

Anyone else made this experience?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 24, 2014, 04:45:55 pm
Is there any known bug when the NIC is fully utilized and the Cubietruck crashes? I experienced some times in the beginning of my Cubietruck with that image that this happened, but I was not sure what it was related to. Now I can reproduce that. The most times this issue occurs when I did heavy "netio" or "iperf" tests with the cubietruck. Now I installed BackupPC a few days ago, and when there is high utilization over the NIC the cubietruck seems to crash. I have no pings to my Cubietruck any more and have to hard reset it. I have configured the LEDs on my cubietruck to show the CPU utilization and at the moment I see both LEDs lit at full speed. It looks like the cubietruck is over-utilized and I don't get ping results any more. I am forced to hard reset it.

Anyone else made this experience?

I added to know bugs but we have to catch the bastard  >:( together. Maybe start looking to down-clock, change fex configuration, test other/older kernels ...

I never experienced this kind of error / crash.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: Sloop on June 24, 2014, 06:52:43 pm
Just found some time to try debugging what caused my image to crash. Unfortunately I have no log files which I could examine, because ramlog was not able to write the logs to log.hdd :( I will try some other day again ...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: slovenia on June 25, 2014, 12:54:34 am
update-rc.d ramlog disable or service ramlog disable .... Restart and try again.

Sent from my pad using Tapatalk

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 13.6.2014
Post by: Sloop 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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: greentown 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?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: slovenia 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 (http://www.cubieforums.com/index.php/topic,2590.msg17829.html). 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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: 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?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: opendream 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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: slovenia 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
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: JustACat 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!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: slovenia on June 30, 2014, 12:24:16 am
Edit /etc/modules and put a # in front of unwanted, reboot and they are gone.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: JustACat 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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: vanfanel 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!


Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: slovenia 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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 26.6.2014
Post by: Sloop 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 (http://www.cubieforums.com/index.php/topic,2590.msg17829.html). 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 (http://www.cubieforums.com/index.php/topic,2590.msg17942.html#msg17942) :D
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 1.7.2014
Post by: olouv 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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: mno 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/ (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.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: reolee on July 05, 2014, 12:17:33 am
want to set up bluetooth soundbar, but can't find asound.conf
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: castalla on July 05, 2014, 05:31:56 am
want to set up bluetooth soundbar, but can't find asound.conf

You can simply create an asound.conf in /etc

I have BT working using an external bt dongle.   Setting up pairing was a pain  I'd be interested to hear what procedure you are using to pair and trust the audio device.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: Jono on July 05, 2014, 05:40:30 am
Hi, I installed the CTDebian_2.3_wheezy_hdmi.zip image on my CubieTruck (I have revision A).
And interface eth0 does not work properly.

I tried setting and obtain the address automatically and installed manually.
Useless, the network does not work.
That portion of the log loading
Code: [Select]
[    0.000000] Linux version 3.4.96-sun7i+ (root@cubiedev) (gcc version 4.7.2 (Debian 4.7.2-5) ) #2 SMP PREEMPT Tue Jul 1 22:28:28 CEST 2014
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] sunxi: Allwinner A20 (AW1651/sun7i) detected.
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait loglevel=8 panic=10 rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0

Code: [Select]
[    1.728980] sunxi_emac Using mii phy on PortA
[    1.746768] sunxi_emac Using MAC from SID: 02:96:0a:02:f2:2a
[    1.758547] emac_init fetch emac using configuration failed
sunxi_emac ?
This driver seems to be designed for Cubieboard 2 100 mb lan?
Code: [Select]
[    1.766763] gmac driver is disabledWWWHAT? And why is that?
How to deal with it?
Thanks!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: reolee on July 05, 2014, 06:28:57 am
want to set up bluetooth soundbar, but can't find asound.conf

You can simply create an asound.conf in /etc

I have BT working using an external bt dongle.   Setting up pairing was a pain  I'd be interested to hear what procedure you are using to pair and trust the audio device.

Follow this article:
http://linuxcommando.blogspot.com/2013/11/how-to-connect-to-bluetooth.html

I use jabra solemate mini and mpd to play music,  It looks like paired and trusted, but I can't make any sound through bluetooth.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: castalla on July 05, 2014, 06:54:16 am
want to set up bluetooth soundbar, but can't find asound.conf

You can simply create an asound.conf in /etc

I have BT working using an external bt dongle.   Setting up pairing was a pain  I'd be interested to hear what procedure you are using to pair and trust the audio device.

Follow this article:
http://linuxcommando.blogspot.com/2013/11/how-to-connect-to-bluetooth.html

I use jabra solemate mini and mpd to play music,  It looks like paired and trusted, but I can't make any sound through bluetooth.

Thanks for the link

I use bt with squeezelite where you can specify the audio device (eg. BOOM).

Here's the asound.conf that I use - you will need to edit it:

Code: [Select]
pcm.!default {
type plug
slave.pcm "hw:0,0"
}

ctl.dmixer {
type hw
card 0
}

pcm.BOOM {
    type plug
    slave {
        pcm {
            type bluetooth
            device 10:B7:F6:00:46:40
            profile "auto"
        }   
    }   

    hint {
        show on
        description "Bluetooth BOOM audio output device"
    }   
 }

 ctl.BOOM {
   type bluetooth
 }

You also need audio.conf  which is located in /etc/bluetooth

Code: [Select]
# Configuration file for the audio service

# This section contains options which are not specific to any
# particular interface
[General]

Enable=Source,Sink,Media,Socket
Master=true
SCORouting=PCM
AutoConnect=true

# Switch to master role for incoming connections (defaults to true)
#Master=true

# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Control,Source

# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
#SCORouting=PCM

# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
#AutoConnect=true

# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
[Headset]

# Set to true to support HFP, false means only HSP is supported
# Defaults to true
HFP=true

# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
MaxConnected=1

# Set to true to enable use of fast connectable mode (faster page scanning)
# for HFP when incomming call starts. Default settings are restored after
# call is answered or rejected. Page scan interval is much shorter and page
# scan type changed to interlaced. Such allows faster connection initiated
# by a headset.
FastConnectable=false

# Just an example of potential config options for the other interfaces
#[A2DP]
#SBCSources=1
#MPEG12Sources=0
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: discopig on July 05, 2014, 01:21:40 pm
I love this image, it's much more stable than others out there and I love how minimalistic it is.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: vanfanel on July 06, 2014, 03:19:42 pm
SLOVENIA: can you please do this very simple thing I asked and update kernel?
Just uncomment line 1074 in https://github.com/dan-and/linux-sunxi/blob/dan-3.4.96/drivers/video/sunxi/disp/dev_fb.c

Will take you a second!

Can you do it, please? I've been asking this very very simple fix for a month now..  :'(

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: JustACat on July 06, 2014, 03:35:17 pm
SLOVENIA: can you please do this very simple thing I asked and update kernel?

It is done already in last update (v2.3 / 2.7.2014):
http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/#new
"disp_vsync kernel patch" is not it?
https://github.com/igorpecovnik/Cubietruck-Debian/commit/830a4d10a8ba18b4202f77798bd56969b3a7bb9b

PS: if I misunderstand something - sorry, I'm a newb...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: vanfanel on July 07, 2014, 06:19:58 am
JustACat: thanks for pointing it out! Yes, it seems to be done already!!! Thanks, Slovenia! :)
Is there a way to update the system (kernel, boot scripts) to the latest version from within the OS?
I spent some time finetunning the default system and I'd like to save some time...
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: slovenia on July 07, 2014, 11:17:21 am
JustACat: thanks for pointing it out! Yes, it seems to be done already!!! Thanks, Slovenia! :)
Is there a way to update the system (kernel, boot scripts) to the latest version from within the OS?
I spent some time finetunning the default system and I'd like to save some time...

Kernel upgrade is fairly simple - uncompress it to the / and you are done after reboot. If you use my system, otherwise some fine tuning might be necessary - editing uEnv.txt.

The rest only manual: down-clock (https://github.com/igorpecovnik/Cubietruck-Debian/wiki/FAQ#alterdownclock-cpu-frequency), Updated hostapd (https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/bin/hostapd23.tgz), bashrc (https://raw.githubusercontent.com/igorpecovnik/Cubietruck-Debian/master/scripts/bashrc), Onboard Bluetooth finally works - latest loading script file (https://raw.githubusercontent.com/igorpecovnik/Cubietruck-Debian/master/scripts/brcm40183-patch), ...

Build script and setup scripts are not important, since you already have running system.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.7.2014
Post by: vanfanel on July 07, 2014, 01:49:34 pm
Thanks, Slovenia!! Kernel updated!!
However, I need MALI kernel-space drivers updated. Your kernel is using r3p0 which is OLD.
Could you update to r3p2, please??

Here's a kernel three with r3p2-01rel2:

https://github.com/ssvb/linux-sunxi/tree/20140116-mali-r3p2-01rel2

can you update to that kernel's MALI kernel-space driver, please?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: konsul_by on July 11, 2014, 11:27:15 am
Hello everyone. Sorry for my english. Such problem: put this distribution. Put the script https://github.com/igorpecovnik/Debian-micro-home-server. Everything is OK. But after a reboot does not work ISPConfig 3 panel. Does not work IP any by http:// servername:8080. website which I put through the panel also does not work. All other services are working. What can be done? how to fix?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 11, 2014, 12:20:34 pm
Hello everyone. Sorry for my english. Such problem: put this distribution. Put the script https://github.com/igorpecovnik/Debian-micro-home-server. Everything is OK. But after a reboot does not work ISPConfig 3 panel. Does not work IP any by http:// servername:8080. website which I put through the panel also does not work. All other services are working. What can be done? how to fix?

Have you disabled ramlog before running the script?

disable Ramlog (service ramlog disable;reboot) before running install. Ramlog is default in my Cubieboard Debian.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: konsul_by on July 11, 2014, 12:42:13 pm
Hello everyone. Sorry for my english. Such problem: put this distribution. Put the script https://github.com/igorpecovnik/Debian-micro-home-server. Everything is OK. But after a reboot does not work ISPConfig 3 panel. Does not work IP any by http:// servername:8080. website which I put through the panel also does not work. All other services are working. What can be done? how to fix?

Have you disabled ramlog before running the script?

disable Ramlog (service ramlog disable;reboot) before running install. Ramlog is default in my Cubieboard Debian.
No, ramlog not blocked. Thanks for the tip, I will try with v2.4 / 11.7.2014
Title: Re: Build Script Questions
Post by: wkeith on July 12, 2014, 04:06:33 am
Thank you for your work on this image and particularly for making your build scripts available.  I have learned a lot from fiddling with them.  If you don't mind, I have a few questions:

The patches at lines 86 to 90 are commented out.  Does this mean that the upstream sources already have these patches?  Do I need to enable them the first time I run the build script?

What about the make command at line 130 which is also commented out?

I often get loop errors which I think you have said is a known problem.  I can get round this by restarting the script at the point it failed but have you found a better way? Or is this fixed in your 2.4 release?

And a couple of suggestions:

I suggest you remove the ntpdate package.  Ntpdate conflicts with ntpd as both try to bind the same port. Ntpdate usually wins.  Ntpdate is unnecessary because the debian ntpd resets time on every restart  (-g flag in /etc/default/ntp)

disable_led.sh does not work on CB2 because leds are configured differently.  The CB2 settings are:
        echo 0 > /sys/class/leds/green:ph20:led1/brightness
        echo 0 > /sys/class/leds/blue:ph21:led2/brightness
An if statement to detect the board version could be used to set the right config.

Finally. I'm keen to look at changes to your latest build script but version 2.4 changes are not yet showing on github.  Could you update the repo when you have a minute?

Thanks

Keith
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 12, 2014, 04:12:39 am
Hi there.

Perhaps I missed something.

Why has the the CPU freq been downgraded now from 1200 to 1010Mhz max?

I did figure out now that the hardwarelimit as reported by cpufreq-info is reported 1010Mhz. 1200 would have been a slight overclocking.



Thx.

Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: marcelpo on July 12, 2014, 05:02:22 am
Hi there.

Perhaps I missed something.

Why has the the CPU freq been downgraded now from 1200 to 1010Mhz max?

I did figure out now that the hardwarelimit as reported by cpufreq-info is reported 1010Mhz. 1200 would have been a slight overclocking.



Thx.

Cheers

I noticed that too, and I doubt whether it would be an issue.
I am myself running 22 Cubietrucks in 2 datacenter locations, and they are running on 1200MHz for 3,5 months now (continuously so without clocking down !)  without any stability issues. 

If needed I can provide more experiences, when tweaked the right way Cubietruck proofs perfectly stable, even for 24/7 operation

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: wkeith on July 12, 2014, 05:18:17 am
Overclocking was causing instability for some users on file transfers - see http://www.cubieforums.com/index.php/topic,2590.0.html (http://www.cubieforums.com/index.php/topic,2590.0.html).  You could always edit the file /etc/init.d/cpufrequtils and reboot to put it back to what you want.


Keith
Title: Re: Build Script Questions
Post by: slovenia on July 12, 2014, 05:59:57 am
Thank you for your work on this image and particularly for making your build scripts available.  I have learned a lot from fiddling with them.  If you don't mind, I have a few questions:

Thanks. Sure. I constantly seek a way to improve with what I and what people notice and suggests. I try to keep the script plain / simple. Maybe the code is not perfectly crafted but it can be better understandable.

Quote
The patches at lines 86 to 90 are commented out.  Does this mean that the upstream sources already have these patches?  Do I need to enable them the first time I run the build script?

Those patches are commented out because (my) source is usually patched. Current upstream sources are not. When the patches became a part of the upstream sources I remove them from the script but leave in the scripts directory to be manually used with some other source.

Quote
What about the make command at line 130 which is also commented out?

I use custom kernel configuration not the sunxi default. This make is deprecated.

Quote
I often get loop errors which I think you have said is a known problem.  I can get round this by restarting the script at the point it failed but have you found a better way? Or is this fixed in your 2.4 release?

I wasn't done any progress in this matter.

And a couple of suggestions:

Quote
I suggest you remove the ntpdate package.  Ntpdate conflicts with ntpd as both try to bind the same port. Ntpdate usually wins.  Ntpdate is unnecessary because the debian ntpd resets time on every restart  (-g flag in /etc/default/ntp)

disable_led.sh does not work on CB2 because leds are configured differently.  The CB2 settings are:
        echo 0 > /sys/class/leds/green:ph20:led1/brightness
        echo 0 > /sys/class/leds/blue:ph21:led2/brightness
An if statement to detect the board version could be used to set the right config.

Sure. I will check & fix. LED: I don't have CB2 so I can't see this :)

Quote
Finally. I'm keen to look at changes to your latest build script but version 2.4 changes are not yet showing on github.  Could you update the repo when you have a minute?

Thanks

Keith

Later today  / tomorrow. I am out of office.

Thanks for feedback!
Igor
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: wkeith on July 12, 2014, 06:41:04 am
Thanks Igor.  Much appreciated.

LED: I don't have CB2 so I can't see this :)

Not a problem.  I can easily change the file in my own version.

Keith
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: vanfanel on July 12, 2014, 06:47:18 am
Hi Slovenia!

Is it possible to update kernel-space MALI driver to r3p2 or not? I'm not asking to be done right now ;)
I just need to know because my usercase requires a better/newer MALI driver and I need the kernel-space driver updated to be able to install better/newer userspace MALI drivers.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 12, 2014, 12:06:12 pm
Hi Slovenia!

Is it possible to update kernel-space MALI driver to r3p2 or not? I'm not asking to be done right now ;)
I just need to know because my usercase requires a better/newer MALI driver and I need the kernel-space driver updated to be able to install better/newer userspace MALI drivers.

I took a quick look but haven't found time to do that yet. If you or someone else prepare a patch it would be helpful.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: konsul_by on July 12, 2014, 12:13:01 pm
Hi everyone! My service provider broadcasts IPTV. I decided to set up TVheadend for broadcast. Added Channels registered addresses and ports. But none of the clients under windows or android does not open video. When you try to open a channel writes: "No input detected". While clients connect to the server, see the list of channels and program schedules.
Help solve the problem
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 12, 2014, 12:19:48 pm
Hi everyone! My service provider broadcasts IPTV. I decided to set up TVheadend for broadcast. Added Channels registered addresses and ports. But none of the clients under windows or android does not open video. When you try to open a channel writes: "No input detected". While clients connect to the server, see the list of channels and program schedules.
Help solve the problem

First things to check:

Do you have a router in between? Does the router allow multicast? If you have configured a bridge, did you alter channel interfaces? Do you have a proper (100% working) playlist / IP and ports for channels?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: konsul_by on July 12, 2014, 01:38:48 pm
Yes I have a router. On the router configured multicast. To have the router connected NAS Synology 209 II+ on which the tvneanded with similar settings and channel list. When you connect to it from all devices to it no problem. All videos and channels open.
So it is possible to eliminate improper configuration of the router and the channel list. Settings and the channels are similar to NAS Synology and my cubieboard.
I read chno need nastraiivat multicast server with tvneanded?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 12, 2014, 04:07:44 pm
Yes I have a router. On the router configured multicast. To have the router connected NAS Synology 209 II+ on which the tvneanded with similar settings and channel list. When you connect to it from all devices to it no problem. All videos and channels open.
So it is possible to eliminate improper configuration of the router and the channel list. Settings and the channels are similar to NAS Synology and my cubieboard.
I read chno need nastraiivat multicast server with tvneanded?

 ???

I use HTS Tvheadend 3.4~wheezy - wheezy default package (https://github.com/igorpecovnik/Debian-micro-home-server/blob/master/install.sh#L34). If this helps somehow. Multicast filtering is usually enabled / disabled for all ports.

Check firewall if running. Is there anything strange in the log files? What does tvheadend system log outputs when connect with a client?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: konsul_by on July 12, 2014, 04:39:39 pm
I use tvheadend from your assembly. Nothing reinstalled. Firewall as I realized that he used in ispconfig 3? there from the disabled. Would be grateful for a hint where to look tvneadend logs. Looking for, but I do not see where the.
When you start tvneanded shows the following information:
Jul 14 01:14:59.698 [   INFO]:charset: 71 entries loaded
Jul 14 01:14:59.702 [   INFO]:CSA: Using 32bit parallel descrambling
Jul 14 01:14:59.704 [   INFO]:epggrab: module eit created
Jul 14 01:14:59.705 [   INFO]:epggrab: module uk_freesat created
Jul 14 01:14:59.706 [   INFO]:epggrab: module uk_freeview created
Jul 14 01:14:59.707 [   INFO]:epggrab: module viasat_baltic created
Jul 14 01:14:59.723 [   INFO]:epggrab: module opentv-skyuk created
Jul 14 01:14:59.724 [   INFO]:epggrab: module opentv-ausat created
Jul 14 01:14:59.726 [   INFO]:epggrab: module opentv-skyit created
Jul 14 01:14:59.731 [   INFO]:epggrab: module pyepg created
Jul 14 01:14:59.732 [   INFO]:epggrab: module xmltv created
Jul 14 01:14:59.752 [   INFO]:epggrab: module /usr/bin/tv_grab_ru created
Jul 14 01:14:59.759 [   INFO]:epgdb: loaded v2
Jul 14 01:14:59.759 [   INFO]:epgdb:   channels   0
Jul 14 01:14:59.759 [   INFO]:epgdb:   brands     0
Jul 14 01:14:59.759 [   INFO]:epgdb:   seasons    0
Jul 14 01:14:59.759 [   INFO]:epgdb:   episodes   0
Jul 14 01:14:59.759 [   INFO]:epgdb:   broadcasts 0
Jul 14 01:14:59.759 [   INFO]:dvr: Creating new configuration ''
Jul 14 01:14:59.759 [WARNING]:dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/root". This can be changed from the web user interface.
Jul 14 01:14:59.761 [ NOTICE]:START: HTS Tvheadend version 3.4~wheezy started, running as PID:6206 UID:0 GID:0, settings located in '/root/.hts/tvheadend'
This is how it may affect the viewing or opening channels?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: twist on July 14, 2014, 08:16:21 am
Hallo,

after every Update the space on the sd card are lesser.
How can i change this ore after a few more updates my card is full.
 
(http://s1.directupload.net/images/140714/33fbm5zg.jpg) (http://www.directupload.net)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: Sloop on July 14, 2014, 09:55:10 am
check /var/cache, /var/log, ... etc. ?

-sent from my Raspberry Smartphone-

Title: Re: Build Script Questions
Post by: wkeith on July 14, 2014, 03:35:25 pm
Just a couple of issues I came across with the 2.4 build scripts:

1.  The chip_id patch at line 100 fails with an error message about a malformed patch at line 15.  I tried to follow back to the source of the patch but it seems to have been moved.  More cosmetic than a real issue.

2.  The script seems to hang around line 331 until I pressed Enter - it could have been my fault for not waiting long enough.

 Thanks again for your efforts.

Keith
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: Querschlag on July 14, 2014, 04:57:25 pm
Hi, I just installed your latest build (2.4 Wheezy HDMI) without problems, but when I boot from sdcard it loops at user login.
I tried to login with root and password "1234". After that it requires me to set a new password - which I did. After that I expected a confirmation, but it canceled and brought me back to the login.

How can I set the root password properly?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 15, 2014, 01:37:22 am
Setting the passwords is/should be simple. When you log in, system asks you to enter current password and twice new one. That's all. It's debian default procedure. I haven't done anything else than setting password as expired by default. Please try again.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 15, 2014, 02:45:30 am
Hallo,

after every Update the space on the sd card are lesser.
How can i change this ore after a few more updates my card is full.
 
(http://s1.directupload.net/images/140714/33fbm5zg.jpg) (http://www.directupload.net)

It's safe to remove modules for older kernels. They are useless. Go to /lib/modules and you will find something like this:

Code: [Select]
drwxr-xr-x 3 root root 4096 May 22 07:21 3.4.79-sun7i+
drwxr-xr-x 3 root root 4096 Jun  2 21:22 3.4.91-sun7i+
drwxr-xr-x 3 root root 4096 Jun 20 14:45 3.4.92-sun7i+
drwxr-xr-x 3 root root 4096 Jul  2 09:02 3.4.96-sun7i+
drwxr-xr-x 3 root root 4096 Jul 10 21:29 3.4.98-sun7i+

Remove all expect current / latest. Check which is current (just to be safe) with:
Code: [Select]
uname -r
3.4.98-sun7i+ (in my case)

Code: [Select]
apt-get clean also helps a little. It's safe.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: nobby on July 15, 2014, 03:40:37 am
Hey,

I have a CB2. I don't need the bluetooth support. How can I disable it?


Nobby
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 15, 2014, 10:04:56 am
slovenia.

A stupid question.

Why do you use ".zip" ?

I do think a .gz archive "tar xvfz" would be a much more straight forward (Linux) way to handle the compression/archive/files and wouldn't require double unpack the archive and wouldn't require the zip binary.

Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: twist on July 15, 2014, 03:25:30 pm
Hi,

thank you for your help slovenia.
Now the space used is back to 850mb. Now i can install many more update from you ;)

Greetings
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: Querschlag on July 15, 2014, 05:36:32 pm
You were right slovenia, password set worked this time.

I want to boot my Debian image from microSD card. Do I still have to execute the nand_install.sh and after that move the root to sdcard or can I work with the image on sdcard too?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: auxr00t on July 16, 2014, 01:02:19 am
What does the green LED indicate? Mine is always on.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: wkeith on July 16, 2014, 06:18:03 am
I don't think there is a meaning to the LEDs.  They are available to be used by manipulating /sys/class/leds.

Igor includes a script in his image to turn the leds off completely at boot up (/etc/init.d/disable_led.sh).  However, it is configured for the CubieTruck and doesn't work completely on the cubieboard2 - which I am guessing is what you have. This is because the leds are set up slightly differently on the CB2.

I have replaced the disable-led.sh script with my own version which detects the board type and then turns off all leds using a board specific config.  See attached.  Feel free to try it out if you wish.  I'm not guaranteeing anything but it works for me on a CB2.

KeithK
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 16, 2014, 06:26:22 am
Why don't you guys just turn the LEDs off  in the fex >> "leds_used = 0" 

Code: [Select]
sed -i 's/leds_used = 1/leds_used = 0/g' script.bin.fex
fex2bin script.bin.fex script.bin

Replace "script" with "ct_hdmi" if you run from SD instead of NAND.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 16, 2014, 06:52:06 am
Why? Because it's good to have some visual sign of booting which ended later on with this script. We also have more control with custom script, you use leds interactive, without reboot, ... The script need to/will be fixed for CB2.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 16, 2014, 07:02:04 am
You were right slovenia, password set worked this time.

I want to boot my Debian image from microSD card. Do I still have to execute the nand_install.sh and after that move the root to sdcard or can I work with the image on sdcard too?
For example. If you sucessfully transfered system to NAND you can boot directly without having SD card.

Whenever you inserts a bootable/system SD, you will boot from it, your NAND content is intact and ignored. Sure you can manually access it and mount.

What my nandinstall script do? It erases/formats NAND and copy content of your SD card with all your modifications to it.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 16, 2014, 09:12:20 am
Why? Because it's good to have some visual sign of booting which ended later on with this script.

Hmmh. I'd agree if you're in a testing mode.

My experience is, the more stuff I turn off in the .fex the more responsive and smooth the CT performance gets.

Obviously the less you'll have in the init.d, the faster  the bootup will get. And that is also valid when stripping the fex config down.

I'd guess that many of the users, who run the CT headless, don't need LCD,HDMI,IR,LED,Bluetooth,DAC,SPDIF,WLAN.... to be turned on. Yep. It's all "on" by default.

I strongly recommend to other users:

Turn everything off that you don't need on your machine. On my headless server setup I turned the majority of HW features off and removed the corresponding modules from /etc/modules.

Enjoy.

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 16, 2014, 09:50:42 am
Slovenia and others.

I run your image (I actually heavily tailored build.sh and the image/kernel) for audio streaming purposes.

I'm using Logitechmediaserver and squeezelite. I know that many other people are doing or trying to do the same.

Note: Logitechmediaserver runs on Wheezy only. LMS won't support higher Perl revisions then 5.14.2 for ARM. To get it working on Jessie (comes with Perl 5.18) by using perlbrew is major hazzle. I have it working now. But it took me two days.

The LMS also won't work properly on Wheezy! I had to manually compile the LMS supplied binaries (faad,flac,sox). These doesn't seem to be compatible with arm7hf. You can't use the Debian supplied package/binaries.


I figured that you install some Alsa stuff, while I was reviewing/tailoring your build.sh script.

It's not sufficient what you do. You at least have to add the "alsa-base" package to your package list.

You might consider to introduce something like below line to cover a wide area of audio support with
your build.sh

Code: [Select]
[ "$RELEASE" == "jessie" ] && chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install alsa-base alsa-utils alsa-tools libasound2 libasound2-plugins sox flac faad squeezelite ecasound libavcodec-extra cmt swh-plugins"


Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 16, 2014, 09:59:36 am
Thanks for hint. My audio tweaking ended when I heard a sound on analog audio :) Only basic sound support by default was my goal. I added alsa-base package and should be there unless I made some typo error.

If I get it right.l ... LMS is working good on wheezy, but not on Jessie?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 16, 2014, 10:17:55 am
The best is to attach a small USB DAC to the CT. Such as a AQ Dragonfly, iFi Nano iDSD or HifiMeDiy Sabre 2.

The LMS is not working "good". It installs properly on Wheezy.

But then, you need to compile Logitech patched flac,faad,sox binaries manually.


I have the LMS running and a HDD attached via SATA.

It's much slower then my Intel based server. Database scan, AlbumArt updates and responsiveness
is kind of acceptable though.

Your high "commit" value in fstab seemed to cause some corruptions, when running LMS.
I had to take that out.

Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: castalla on July 16, 2014, 10:58:59 am
Why? Because it's good to have some visual sign of booting which ended later on with this script.

 

I'd guess that many of the users, who run the CT headless, don't need LCD,HDMI,IR,LED,Bluetooth,DAC,SPDIF,WLAN.... to be turned on. Yep. It's all "on" by default.

I strongly recommend to other users:

Turn everything off that you don't need on your machine. On my headless server setup I turned the majority of HW features off and removed the corresponding modules from /etc/modules.

Enjoy.

Okay - how do we turn off the hardware features, such as LCD, etc ????
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 16, 2014, 11:24:55 am
For SD:

I assume you know how to work with vi

Code: [Select]
cd /boot
cp ct-hdmi.bin ct-hdmi.bin.orig
bin2fex ct-hdmi.bin ct-hdmi.fex
vi ct-hdmi.fex

Now you'll find blocks for each HW feature
e.g.
"leds_used = 1"

The ones you want to disable you change to "0".

You save the file and exit.

Now you have to convert the fex back to bin .

Code: [Select]
fex2bin ct-hdmi.fex ct-hdmi.bin
shutdown -r 0

Here we go.

On Nand you have to mount /dev/nand1 first. There is no /boot !

Code: [Select]
mount /dev/nand1 /mnt
cd /mnt
....same as above (no cd /boot and use script.bin/fex instead of ct-hdmi.bin/fex)

To get a nice overview of enabled/disabled features type :

Code: [Select]
grep -i  "used =" /boot/ct-hdmi.fex


Good luck.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: castalla on July 16, 2014, 01:14:16 pm
For SD:

I assume you know how to work with vi

Code: [Select]
cd /boot
cp ct-hdmi.bin ct-hdmi.bin.orig
bin2fex ct-hdmi.bin ct-hdmi.fex
vi ct-hdmi.fex

Now you'll find blocks for each HW feature
e.g.
"leds_used = 1"

The ones you want to disable you change to "0".

You save the file and exit.

Now you have to convert the fex back to bin .

Code: [Select]
fex2bin ct-hdmi.fex ct-hdmi.bin
shutdown -r 0

Here we go.

On Nand you have to mount /dev/nand1 first. There is no /boot !

Code: [Select]
mount /dev/nand1 /mnt
cd /mnt
....same as above (no cd /boot and use script.bin/fex instead of ct-hdmi.bin/fex)

To get a nice overview of enabled/disabled features type :

Code: [Select]
grep -i  "used =" /boot/ct-hdmi.fex


Good luck.

Thanks.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: mno on July 16, 2014, 05:19:28 pm
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 17, 2014, 05:03:34 am
Quote
But then, you need to compile Logitech patched flac,faad,sox binaries manually.

well, this should not be a problem. Probably you need to do that on some other arm boards?

Quote
Your high "commit" value in fstab seemed to cause some corruptions, when running LMS.
I had to take that out.

 ??? Sure about this? We noticed corruptions and instability in various ways when the board was over clocked (https://github.com/igorpecovnik/Cubietruck-Debian/wiki/FAQ#alterdownclock-cpu-frequency). Have you checked that too?

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 17, 2014, 05:05:05 am
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/

uEnv files are in /boot

yes: deleting old kernel files (http://www.cubieforums.com/index.php/topic,1275.msg18348.html#msg18348)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: tija on July 17, 2014, 05:21:35 am
are there any chances to see an headless image from you with Kernel >= 3.14?

Because for my usecase DVB-S Streaming Server I don't need a display but working dvb-s2 drivers ;)

I don't want to bother someone just for me to know as I'm not good in self-compiling kernels ;)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: rose28357 on July 17, 2014, 05:50:23 am
Try this http://linux-sunxi.org/Mainline_Kernel_Howto
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: morsch9 on July 17, 2014, 06:16:04 am
thanks for the project  ;D

which files must remain on the SD card if I use a HDD?
"Install to sata" I do not want to use because all files are deleted.

Currently I have the SD completely mirrored to the HDD and modified the uEnv.txt on SD
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: rose28357 on July 17, 2014, 06:53:00 am
Currently I have the SD completely mirrored to the HDD and modified the uEnv.txt on SD
We simply copy rootfs to hhd. That means we copy the content of the 2. Partition. Just leave the 1. Partition on sdcard which is only used during boottime.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: soundcheck on July 17, 2014, 08:51:44 am
Slovenia.

You went even further down with the CPU clock?? Now it's 960000 instead of 1010000 ?

Any reason for that?

I tested the LMS several times. And the db always got corrupted. Not the image itself though!

Without the commit, everything worked fine. At that time I did not go down with the clock.
And I was also running the "performance" govenor by default.

I might try it with the lower CPU speed.

Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: morsch9 on July 17, 2014, 09:42:10 am
Currently I have the SD completely mirrored to the HDD and modified the uEnv.txt on SD
We simply copy rootfs to hhd. That means we copy the content of the 2. Partition. Just leave the 1. Partition on sdcard which is only used during boottime.

Thanks but i have only one parition  ::)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 17, 2014, 09:47:47 am
are there any chances to see an headless image from you with Kernel >= 3.14?

Because for my usecase DVB-S Streaming Server I don't need a display but working dvb-s2 drivers ;)

I don't want to bother someone just for me to know as I'm not good in self-compiling kernels ;)

I made few test compilations and that's about it. I hope I will manage to push out at least some test distro before going to vacations :)

@soundcheck

No, I went down to 1.010000 ...

Quote
I might try it with the lower CPU speed.

It's good to be sure about the reason. My Cubie system is also quite resilient and doesn't produce troubles if O.C. but people report them.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: mno on July 17, 2014, 02:22:33 pm
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/

uEnv files are in /boot

yes: deleting old kernel files (http://www.cubieforums.com/index.php/topic,1275.msg18348.html#msg18348)

thanks, problem is: in /boot the only file I could find was/is uImage. What can I do?

(http://mno.pw/0720)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 17, 2014, 02:26:39 pm
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/

uEnv files are in /boot

yes: deleting old kernel files (http://www.cubieforums.com/index.php/topic,1275.msg18348.html#msg18348)

thanks, problem is: in /boot the only file I could find was/is uImage. What can I do?

Are you using my image?

If yes. Have you transferred system to NAND maybe? In that case boot files are on the first NAND partition /dev/nand1

If no. There is an extra boot partition.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: mno on July 17, 2014, 02:40:42 pm
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/

uEnv files are in /boot

yes: deleting old kernel files (http://www.cubieforums.com/index.php/topic,1275.msg18348.html#msg18348)

thanks, problem is: in /boot the only file I could find was/is uImage. What can I do?

Are you using my image?

If yes. Have you transferred system to NAND maybe? In that case boot files are on the first NAND partition /dev/nand1

If no. There is an extra boot partition.
Yeah I use your Image and I moved files to nand (the nand seems to be little slow but thats enother "issue"). So I have to mount /dev/nand1 and there are uEnv files?
Edit: yes found the files there.

Thank you very much - great work!

edit2: I had to move the uImage file, that's it (from /boot to previously mounted /dev/nand1)
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: mno on July 25, 2014, 07:57:41 am
I'm not sure if it does already work but I don't think so.
I think it would be very nice if you could add bcache. It would allow us to use SSD's/fast HDDs to cache data.
For example a 60GB SSD (which isn't expensive anymore) on the SATA Port as cache and a 1TB USB HDD to save the data. Espacially in this usecase the ssd would increase performance because usb is very slow (SSD much I/O and AFAIK 100MB/s+ on Cubietruck - USB 20-30MB/s and very few IO compared to SSD).
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: richdotward on July 26, 2014, 02:57:48 pm
Hi all

I'm a cubietruck newie.  Thanks for this is all is going very nice .

Just wondering how stable is this build ?  Im in the process of replacing a raspberry pi that has been running 24/7 for almost 1 year with a reboot maybe once a month.

Is this Debian build as stable?

Thanks

Rich

Sent from my Nexus 4 using Tapatalk

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: mno on July 26, 2014, 03:34:38 pm
Hi all

I'm a cubietruck newie.  Thanks for this is all is going very nice .

Just wondering how stable is this build ?  Im in the process of replacing a raspberry pi that has been running 24/7 for almost 1 year with a reboot maybe once a month.

Is this Debian build as stable?

Thanks

Rich

Sent from my Nexus 4 using Tapatalk
It is very stable. I use it to host seafile and it works very well.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: mno on July 27, 2014, 08:21:41 am
I'm not sure if it does already work but I don't think so.
I think it would be very nice if you could add bcache. It would allow us to use SSD's/fast HDDs to cache data.
For example a 60GB SSD (which isn't expensive anymore) on the SATA Port as cache and a 1TB USB HDD to save the data. Espacially in this usecase the ssd would increase performance because usb is very slow (SSD much I/O and AFAIK 100MB/s+ on Cubietruck - USB 20-30MB/s and very few IO compared to SSD).
...
or dmcache, see https://github.com/mingzhao/dm-cache
and btw bcache can be found here: http://bcache.evilpiepirate.org/
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.2.2014
Post by: bug on July 27, 2014, 08:46:06 pm
Hi everybody!

First, thanks for your nice work slovenia - seems like a really clean image, and your scripts are great!

I've been trying a few images for a few days, and have the same problem as RobinS had:


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.

Tried different mirrors around the world, different days, protocols (http/ftp), new/clean image on a clean SD card...

No problem with debian in another machine (not arm though) - RobinS problem was probably network related, could there be another reason / as it been reported by someone else who did found a solution?

Thanks!

Cheers
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: onidaito on July 28, 2014, 02:52:32 pm
Hello there. Hopefully this is a quick question but what would be the easiest way for me to build the BTRFS module? I need to get access to a particular drive. Im guessing i'll need the kernel sources on my cubietruck for starters
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: onidaito on July 29, 2014, 10:22:25 am
Ok so I've checked out the latest source from git, altered the config files to include BTRFS and rebuilt the HDMI and VGA .raw files. Have burnt these with DD to a microsd card. Booting the cubietruck off this card results in a blank screen, a blue LED coming on, then a load of flashing LEDs, then a Yellow LED, then back to blue. Im guessing this means its rebooting or something? Anyone else had something like this?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 29, 2014, 01:01:50 pm
Ok so I've checked out the latest source from git, altered the config files to include BTRFS and rebuilt the HDMI and VGA .raw files. Have burnt these with DD to a microsd card. Booting the cubietruck off this card results in a blank screen, a blue LED coming on, then a load of flashing LEDs, then a Yellow LED, then back to blue. Im guessing this means its rebooting or something? Anyone else had something like this?

The screen/console needs few moments to show up.

Yes, first boot expands SD card, creates ssh keys, ... and reboots. Ethernet is DHCP. Read first post/blog/faq for details if you run into troubles.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: Thebigwave on July 29, 2014, 03:31:57 pm
Hello there i've got a problem while upgrading the Kernel from  3.4.79 to the current Version.
i proceed the following steps
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/sunxi_kernel_3.4.98_mod_head_fw.zip
unzip  sunxi_kernel_3.4.98_mod_head_fw.zip
tar -xvf sunxi_kernel_3.4.98_mod_head_fw.tar
shutdown -r

but uname -a gives me
Code: [Select]
Linux cubie 3.4.79-sun7i+ #1 SMP PREEMPT Wed Mar 26 19:32:57 CET 2014 armv7l GNU/Linux
Ideas ?

thanks
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: slovenia on July 29, 2014, 04:11:11 pm
Hello there i've got a problem while upgrading the Kernel from  3.4.79 to the current Version.
i proceed the following steps
Code: [Select]
cd /
wget http://cubie.nobrainz.de/downloads/sunxi_kernel_3.4.98_mod_head_fw.zip
unzip  sunxi_kernel_3.4.98_mod_head_fw.zip
tar -xvf sunxi_kernel_3.4.98_mod_head_fw.tar
shutdown -r

but uname -a gives me
Code: [Select]
Linux cubie 3.4.79-sun7i+ #1 SMP PREEMPT Wed Mar 26 19:32:57 CET 2014 armv7l GNU/Linux
Ideas ?

thanks

Do you boot the system from NAND? Than you should manually copy new kernel file from /boot to first nand partition.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: Thebigwave on July 29, 2014, 05:31:17 pm
Do you boot the system from NAND? Than you should manually copy new kernel file from /boot to first nand partition.
Jep that's it thanks for the Hint
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: vlotho on July 31, 2014, 04:26:40 am
hi,
Currently, I have a CT with a sd card that is installed with a version of mirage (oparating system with xen). sd starts without a problem but I want to copy the boot and system on nand. in my current boot directory on the sd, I have a directory "filesystem.dir" empty, and an executable "xen". How could I do?
I have only one partition ext4. In the "boot" I have a directory "filesystem.dir" which did not actually blank. In this directory, there is a hidden directory named .Disk, wherein there is a file casper.uuid. there is also an executable file named "xen-4.4-armhf" to the root of the boot folder. we do not have either, grub in the directory "etc".
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
Post by: mno on July 31, 2014, 08:28:38 am
Can anyone assist me on getting bcache or dm-cache working?
Title: Wheezy server for SD, SATA or NAND with hotspot & BT-update 2.8.2014 - CLUSTER
Post by: Ireng on August 02, 2014, 02:32:20 pm
HI Igor,

first of all I want to thank you very much for work and dedication to create and maintain the imgae for the headless server for the CT. I just installed the latest version 2.5 and after the usuall adjustments it is up and running fine.

Howerver i do have some question on how to use and activate the cluster support.

Could you give a detailed rundown on a suitable how to ???

I would like to thank you very much for your help and support.

Regards, IRENG
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT-update 2.8.2014 - CLUSTER
Post by: slovenia on August 03, 2014, 03:02:59 am
HI Igor,

first of all I want to thank you very much for work and dedication to create and maintain the imgae for the headless server for the CT. I just installed the latest version 2.5 and after the usuall adjustments it is up and running fine.

Howerver i do have some question on how to use and activate the cluster support.

Could you give a detailed rundown on a suitable how to ???

I would like to thank you very much for your help and support.

Regards, IRENG

Hi & thanks  8)

I would rather point you to the person behind - he is actually using clustering:
http://www.cubieforums.com/index.php/topic,1275.msg17768/topicseen.html#msg17768

My involvement regarding this was more or less pushing the patch to the kernel.

But I am playing with an idea of getting few boards and stuck them together. Since I actually don't need more power it probably won't happen ;D
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: marcelpo on August 03, 2014, 03:54:33 am
Clustering is actually not that complicated, there is a lot of good info on the web.  It just involves basic Linux knowledge, the only prerequisite is that the used kernel must be patched for some special functionality, and thanks to Igor this is already the case for the Cubies for a few months now. 

The best thing to start is with some reading about IPVS and Ldirectord. This is quite a good place to start :
http://www.austintek.com/LVS/LVS-HOWTO/mini-HOWTO/LVS-mini-HOWTO.html
but there is plenty more info around, just Google on 'ipvs' and you will have a bunch of howto's to start with.
All in all it is just plain Debian config, nothing special about that.  For my setup I used IPVS with IPIP tunnelling.

What I did with the clustering setup, is build a video hosting platform (for plain http pseudo streaming) with the idea to use Cubietrucks because of their small footprint (so not much datacenter space needed) while still having the advantage of spreading the whole thing over several systems, for redundancy and performance reasons.  For those really interested please send me a PM since, although it is no secret, I don't like the entire setup to be published somewhere on a public forum like this for obvious reasons. But no problem to help out if someone wants to build something similar.

Actually, a nice extra popped up while building the system, I found out that using IPVS and ldirectord to build a cluster (using IPVS ipip tunnelling) suddenly the individual Cubietrucks were able to output 700-800Mbps each instead of the "normal" limits of 400-500Mbps a single Cubietruck shows.   But please note to achieve this you have to sacrifice 1 Cubie as IPVS loadbalancer, so for setups with only 2-3 Cubietrucks it might not be worth the effort.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: rose28357 on August 03, 2014, 04:53:56 am
Known bugs or limitations:
  • Bluetooth firmware loading sometimes fails. Reboot = try again.
Hi Igor,
do you now this solution regarding BT firmware load ?
http://archlinuxarm.org/forum/viewtopic.php?t=7253
Ikeeki is going to us it in the next aruntu release.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: slovenia on August 03, 2014, 08:12:43 am
Known bugs or limitations:
  • Bluetooth firmware loading sometimes fails. Reboot = try again.
Hi Igor,
do you now this solution regarding BT firmware load ?
http://archlinuxarm.org/forum/viewtopic.php?t=7253
Ikeeki is going to us it in the next aruntu release.

No, not this one. Thanks. I have to test  ??? Well, I am just about going for vacations  8) so no testing for some time.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: rose28357 on August 03, 2014, 08:15:22 am
Have fun and enjoy your hollidays !!!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: richdotward on August 03, 2014, 04:12:05 pm
Hi, just wondering has anyone got 2 HD working?

I've a 750gb sata (bootable) and 750gb external, with a 2gb SD card in also. If I boot up from sata and then plug in the USB wire and mount all works fine.

If I leave the USB HD plugged in and reboot then the system hangs on boot.

I'd also ideally like to automount the system.

Any ideas.  Thanks

Rich

Sent from my Nexus 7 using Tapatalk

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: rose28357 on August 03, 2014, 05:06:18 pm
That is becaus  linux makes the usb drive to sda1. So bootcode can not fi d the right rootfilesysfem.
You need to compile the usb drive as module. So it will be probt after sata probing.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: mno on August 03, 2014, 05:08:49 pm
Try to use the uuid instead of /dev/device to mount devices properly
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: onidaito on August 04, 2014, 04:28:41 am
so it appears that it didnt burn to the SD Card correctly. BTRFS is now working fine. There are some different defaults between Wheezy and Ubuntu that can cause issues but having got past these, its now working fine.

Cheers!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: mno on August 04, 2014, 05:23:04 am
Just found this and thought I could post it here.
compile with Kernel Address Space Layout Randomization (KASLR) and without hibernate (only one option can be used on boot anyway and hibernate isn't needed on a server build.
And then use "kaslr" as one boot parameter to enable KASLR (to improve security).

Another thing is TCP Segementation Offload (TSO) emulation if the Cubietruck's LAN chip doesn't support it. It could increase throughput.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot - update 8.4.2014
Post by: allen on August 06, 2014, 03:10:07 am
I found a setting called pmu_battery_cap in ct-hdmi.fex (aka ct-vga.fex or script.fex) and edited that to set the battery capacity (default 2100mAh).

I will report back on my findings relating to battery support for your image and Cubian.

Results so far:
  • Battery capacity can be set correctly, in mAh.
    (see above)
  • Battery voltage reading is correct, in microvolts.
    /sys/class/power_supply/battery/voltage_now
  • Battery charge status is correct, either Discharging or Charging.
    /sys/class/power_supply/battery/status

Problems so far:
  • Poweroff fails when battery and dc power is connected. The board simply reboots — so the battery can not be charged while the board is off. I'm not sure if it's meant to work like that. Poweroff works fine when either power or battery is connected.


Hi Heisenberg,
have you solved the problem  Poweroff fails when battery and dc power is connected.
I am in the same problem. Thank you .
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: phelum on August 06, 2014, 05:56:28 am
Hi, just wondering has anyone got 2 HD working?

I've a 750gb sata (bootable) and 750gb external, with a 2gb SD card in also. If I boot up from sata and then plug in the USB wire and mount all works fine.

If I leave the USB HD plugged in and reboot then the system hangs on boot.

I'd also ideally like to automount the system.

Any ideas.  Thanks

Rich
Hi Rich,

In the kernel you can change CONFIG_USB_MASS_STORAGE from Y to M.  This makes the mass storage code a module and the system has to access the system drive (i.e. SATA HDD) first before it can mount your USB drive (because it has to get the USB module from the system drive).  So the SATA drive is always sda regardless of what USB devices are connected.  If the usb_mass_storage code is built-in the system scans the USB devices first and then the SATA HDD and the SATA HDD won't be sda if there are any USB storage devices attached.

Cheers,
Steven
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: exciter on August 07, 2014, 05:46:43 am
n00b question...

after upgrading to latest kernel, uname -a gives the right kernel version (3.4.101-sun7i+)

but cat /etc/issue gives me "Debian GNU/Linux 7 CTDebian 1.9" (was the fresh installed one)

so everything is ok or have I upgrade to v2.5 with other updates?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: wkeith on August 08, 2014, 03:42:29 pm
n00b question...

after upgrading to latest kernel, uname -a gives the right kernel version (3.4.101-sun7i+)

but cat /etc/issue gives me "Debian GNU/Linux 7 CTDebian 1.9" (was the fresh installed one)

so everything is ok or have I upgrade to v2.5 with other updates?

If you have upgraded all the way from 1.9 just by updating the kernel, then yes there are other changes.  You could either work through the git log at https://github.com/igorpecovnik/Cubietruck-Debian/commits/master (https://github.com/igorpecovnik/Cubietruck-Debian/commits/master) or just install the latest image to get a completely updated system.  Or if it works for you, just stay with what you have.

Keith
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: wkeith on August 08, 2014, 03:50:15 pm
Version 2.5 works fine on Cubieboard2 with the current kernel on both sdcard and nand.  The experimental kernel, however, fails to load with an ext4fs_devread error.  Not sure if this is CB2 or uboot related because I got similar errors when I was trying to boot a 3.4 kernel with the recent uboot.  I'm struggling to find out more on these errors.

Keith
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: jingx on August 08, 2014, 04:15:25 pm
I´ve written a installation script which downloads the specified image and dd´s it on the selected SD-Card, so the only thing you have to do is put your SD-Card in.
It´s written in python and works under OSX and Linux. You can find it here:
https://github.com/jingx23/CTDebian-Installer
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: buzzy84 on August 11, 2014, 06:39:10 am
Dear Cubie community,

first of all I would say Slovenia many thanks for this huge work: I've been using the image since it was created and I'm very satisfied.

I'm writing this post because I'm experiencing some stability problems: cubietruck is suddenly switching off all the times I try a transfer between two folders and quite often while I'm transferring many file with transmission.

Indeed, I'm using a 2.5'' hdd and a 2A power supply, I also tried a powerful power supply but without any significant improvement.

I cannot figure out the reason of this behavior ... I guess it's something hw related (CPU load or DRAM freq) ... has anyone else experienced the same problem?

Any advice how to find out the root cause and maybe a solution to this problem?

Thank you in advance

-M

p.s.
1) I found several post telling that it's something related to the SDRAM frequency
2) I found this http://cubian.org/2014/07/05/resolve-stability-issue-on-cb2/ (http://cubian.org/2014/07/05/resolve-stability-issue-on-cb2/) and even scripts are not working properly the first test cpuburn-sunxi lead to this behavior
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: rose28357 on August 11, 2014, 07:27:19 am
Wich release do you actually use ? The latest from 2.8.2014 ?

Can you provide the result of
Code: [Select]
cpufreq-info here ?
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: buzzy84 on August 11, 2014, 07:56:03 am
Hello rose,
I'm not currently using the latest version but a previous one (don't know which one) with the kernel 3.4.75-sun7i+
The result of cpufreq-info is
Code: [Select]
analyzing CPU 0:
  driver: sunxi
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 2.00 ms.
  hardware limits: 60.0 MHz - 1.01 GHz
  available cpufreq governors: userspace, interactive, performance
  current policy: frequency should be within 480 MHz and 1.01 GHz.
                  The governor "interactive" may decide which speed to use
                  within this range.
  current CPU frequency is 1.01 GHz (asserted by call to hardware).
  cpufreq stats: 30.0 MHz:0.00%, 48.0 MHz:0.00%, 60.0 MHz:0.00%, 72.0 MHz:0.00%, 84.0 MHz:0.00%, 96.0 MHz:0.00%, 120 MHz:0.00%, 132 MHz:0.00%, 144 MHz:0.00%, 156 MHz:0.00%, 168 MHz:0.00%, 180 MHz:0.00%, 192 MHz:0.00%, 204 MHz:0.00%, 216 MHz:0.00%, 240 MHz:0.00%, 264 MHz:0.00%, 288 MHz:0.00%, 336 MHz:0.00%, 360 MHz:0.00%, 384 MHz:0.00%, 408 MHz:0.00%, 480 MHz:57.66%, 528 MHz:1.47%, 600 MHz:0.09%, 648 MHz:0.05%, 672 MHz:0.00%, 696 MHz:0.05%, 720 MHz:0.00%, 744 MHz:0.00%, 768 MHz:0.01%, 816 MHz:0.00%, 864 MHz:0.00%, 912 MHz:16.79%, 960 MHz:0.00%, 1.01 GHz:23.88%, 1.06 GHz:0.00%, 1.10 GHz:0.00%, 1.15 GHz:0.00%, 1.20 GHz:0.00%, 1.25 GHz:0.00%, 1.30 GHz:0.00%, 1.34 GHz:0.00%, 1.39 GHz:0.00%, 1.44 GHz:0.00%, 1.49 GHz:0.00%  (715)
analyzing CPU 1:
  driver: sunxi
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0 1
  maximum transition latency: 2.00 ms.
  hardware limits: 60.0 MHz - 1.01 GHz
  available cpufreq governors: userspace, interactive, performance
  current policy: frequency should be within 480 MHz and 1.01 GHz.
                  The governor "interactive" may decide which speed to use
                  within this range.
  current CPU frequency is 1.01 GHz (asserted by call to hardware).
  cpufreq stats: 30.0 MHz:0.00%, 48.0 MHz:0.00%, 60.0 MHz:0.00%, 72.0 MHz:0.00%, 84.0 MHz:0.00%, 96.0 MHz:0.00%, 120 MHz:0.00%, 132 MHz:0.00%, 144 MHz:0.00%, 156 MHz:0.00%, 168 MHz:0.00%, 180 MHz:0.00%, 192 MHz:0.00%, 204 MHz:0.00%, 216 MHz:0.00%, 240 MHz:0.00%, 264 MHz:0.00%, 288 MHz:0.00%, 336 MHz:0.00%, 360 MHz:0.00%, 384 MHz:0.00%, 408 MHz:0.00%, 480 MHz:57.66%, 528 MHz:1.47%, 600 MHz:0.09%, 648 MHz:0.05%, 672 MHz:0.00%, 696 MHz:0.05%, 720 MHz:0.00%, 744 MHz:0.00%, 768 MHz:0.01%, 816 MHz:0.00%, 864 MHz:0.00%, 912 MHz:16.79%, 960 MHz:0.00%, 1.01 GHz:23.88%, 1.06 GHz:0.00%, 1.10 GHz:0.00%, 1.15 GHz:0.00%, 1.20 GHz:0.00%, 1.25 GHz:0.00%, 1.30 GHz:0.00%, 1.34 GHz:0.00%, 1.39 GHz:0.00%, 1.44 GHz:0.00%, 1.49 GHz:0.00%  (715)

Btw I performed a stress test at different CPU frequencies (cpufreq-stress-test-sunxi) and it worked well
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: rose28357 on August 11, 2014, 09:19:23 am
it is a little bit overclocked. Igor reduced clock speed to somewhat below 1000 MHz becaus of instabilities. It was in Release 2.1 or 2.2. We now have 2.5.

Search this thread.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: buzzy84 on August 11, 2014, 10:05:48 am
it is a little bit overclocked. Igor reduced clock speed to somewhat below 1000 MHz becaus of instabilities. It was in Release 2.1 or 2.2. We now have 2.5.

Search this thread.

Many thanks for your quick reply but I looked at the first post (latest version) and he says:

Quote
optimized CPU frequency scaling 480-1010Mhz with interactive governor and small 20% overclock (/etc/init.d/cpufrequtils)

which is quite close to what I currently have in my configuration.

I will try to switch to the latest version but in the meanwhile I have two questions:

Is there a way to check the CPU temperature?

Is there a way to temporary change the memory frequency? if so which is the correct procedure?

Thank you in advance

/MB
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: rose28357 on August 11, 2014, 10:12:22 am
I havnt done it by my self ...

read here: Setting CPU freq by script (and GUI)
http://www.cubieforums.com/index.php/topic,2686.msg17619.html#msg17619

i think that 960 MHz is a good choice.

this is a old thread that uses cupfreq-utils
http://www.cubieforums.com/index.php/topic,605.msg3155.html#msg3155
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: richdotward on August 11, 2014, 03:49:31 pm
Thanks for the comments on trying to fix my bootup freeze with another USB drive plugged in.

So far no joy.

/etc/fstab  contains the below :

UUID=21ef934d-fc2b-4e10-995c-f2f5d192ec67     /           ext4    defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro        0       0

System boots as expected but with USB flash drive or USB external drive / formatted and none formatted it stops the boot up sequence.

I have no idea what people mean by "compile the usb drive as module" or "kernel you can change CONFIG_USB_MASS_STORAGE from Y to M"

This is the only reason I don't like linux - simple things like this that shouldn't even be a problem.  Surely its not such a strange requirement ?

Any more information would be greatfully received.


Rich



Sent from my Nexus 7 using Tapatalk

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: buzzy84 on August 12, 2014, 04:00:47 am
I havnt done it by my self ...

read here: Setting CPU freq by script (and GUI)
http://www.cubieforums.com/index.php/topic,2686.msg17619.html#msg17619

i think that 960 MHz is a good choice.

this is a old thread that uses cupfreq-utils
http://www.cubieforums.com/index.php/topic,605.msg3155.html#msg3155

Hello again,
I tried to change the CPU freq by cpufreq-utils (double checked after that) and even with a lower cpu frequency the system is still unstable ... I also tried to reduce the dram speed but without any success  :-\
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: phelum on August 12, 2014, 08:01:16 am
/etc/fstab  contains the below :

UUID=21ef934d-fc2b-4e10-995c-f2f5d192ec67     /           ext4    defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro        0       0

System boots as expected but with USB flash drive or USB external drive / formatted and none formatted it stops the boot up sequence.

I have no idea what people mean by "compile the usb drive as module" or "kernel you can change CONFIG_USB_MASS_STORAGE from Y to M"

This is the only reason I don't like linux - simple things like this that shouldn't even be a problem.  Surely its not such a strange requirement ?

Any more information would be greatfully received.
Hi Rich,

I think I wrote the post about CONFIG_USB_MASS_STORAGE.  Reading your post here makes me think I misunderstood your problem.  I thought your CT starts okay (loads from the SATA drive) as long as you don't have a USB drive connected.  Is this correct ?

It's true that Linux is for people who don't have enough trouble with Windows.  It does offer extra flexibility but a lot of things sure aren't easy to get right.  My comments about changing the kernel configuration might be inapplicable here because the change involves downloading the kernel source, changing the configuration settings, and then compiling the kernel.

I'm using a different kernel and I did hit the problem described in your previous post.  Hopefully someone can change the kernel you're using here if that will solve your problem.  The UUID entry in your fstab file might correctly identify your system drive but I suspect your uEnv.txt file contains nand_root=/dev/sda1 and 'sda' refers to your USB drive rather than your SATA drive when a USB drive is connected.

Cheers,
Steven
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: buzzy84 on August 12, 2014, 02:03:33 pm
I havnt done it by my self ...

read here: Setting CPU freq by script (and GUI)
http://www.cubieforums.com/index.php/topic,2686.msg17619.html#msg17619

i think that 960 MHz is a good choice.

this is a old thread that uses cupfreq-utils
http://www.cubieforums.com/index.php/topic,605.msg3155.html#msg3155

Hello again,
I tried to change the CPU freq by cpufreq-utils (double checked after that) and even with a lower cpu frequency the system is still unstable ... I also tried to reduce the dram speed but without any success  :-\

I performed serveral test:
- at different CPU voltages also a little bit over range
- at different CPU speed
- at different memory speed

And In the end got the best result (with the stress test
Code: [Select]
stress --cpu 2 --io 2 --vm 2 --vm-bytes 128M -d 2
down to 880Mhz

I looked at the change log of this wheezy distro and Igor definitely moved to a lower working frequency I'm just wondering how many Mhz and which is the correct way to change it manually since I tried by mounting nand1 partition and changing the content of script.bin but there must be something wrong in the procedure since
Code: [Select]
cpufreq-info
returns that the CPUs are still limited to 1.01Ghz
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: richdotward on August 12, 2014, 02:43:03 pm
Hi

Yes system boots with just SATA and SDcard but with anything in the USB port it doesn't start.  Sure your right about the sda / sdb moving around.

I'm having trouble however now locating the file uEnv.txt

I can find a copy on the NAND but this is just the left over of an old install.  I'm now booting from an SDcard and sata.  I guess the SDcard holds the file as without the card in it stops on a green bar code screen.

sudo mount /dev/nand1 /home/richdotward/2nd_HD

sudo nano uEnv.txt

console=ttyS0,115200
nand_root=/dev/nand2 rootwait
extraargs=rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_$
script=ct-vga.bin
kernel=uImage

I think I mount the Sdcard by using the below but I can't find "uEnv.txt" anywhere.  Closest is uEnv.cb2 and uEnv.ct in the boot directory.  Both of these point to sda1.

sudo mount /dev/mmcblk0p1 /home/richdotward/2nd_HD

I dont really just want to change things I dont understand.

nano uEnv.cb2
=============

console=ttyS0,115200
root=/dev/sda1 rootwait
extraargs=rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_$
script=/boot/cb2-vga.bin
kernel=/boot/uImage

nano uEnv.ct
============

console=ttyS0,115200
root=/dev/sda1 rootwait
extraargs=rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_$
script=/boot/ct-vga.bin
kernel=/boot/uImage

Any ideas where the "uEnv.txt" is held for the HD / SDcard ?

Thanks

Rich

Sent from my Nexus 4 using Tapatalk
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: rose28357 on August 12, 2014, 04:47:42 pm
You already found them. Your linux does boot on cubieboard2 (cb2) as well as on Cubietruck (ct). So you have two uEnv. For each board one.

Guess what is the right one for you....

If you boot from nand the you have a damaged android installed. It showsnthe red bar with 10% and could not go further because bootcode is damaged on nand. Flash it again with livesuite/phoenix.
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: richdotward on August 12, 2014, 05:07:43 pm
You already found them. Your linux does boot on cubieboard2 (cb2) as well as on Cubietruck (ct). So you have two uEnv. For each board one.

Guess what is the right one for you....

Thanks thought as much.  Tried changing both uEnv.cb2 and uEnv.ct but no joy on my existing system setup.

Then used another sdcard, installed a new 2.4 image, booted up as a new install with sata and USB plugged and and it started no problems.

A simple sudo fdisk -l showed the sata as sdb1 and USB as sda1.  Changed the uEnv.cb2 and uEnv.ct again to sdb1 and it worked.

Yeah.  Then a quick change to /etc/fstab for auto mounting.

Thanks all for the tips.

Rich


Sent from my Nexus 4 using Tapatalk

Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: phelum on August 12, 2014, 05:14:57 pm
I dont really just want to change things I dont understand.

Wise words indeed.

Changing either/both of the uEnv files on uSD card won't really help anyway because if you set the system to boot when a USB drive is connected then it won't work when the drive isn't connected.

I'm downloading the kernel from github now.  The USB_MASS_STORAGE entry is already =M which surprises me.  I'll investigate further and reply when I get an answer.

I've just seen your updated reply.  If you're always gonig to have the USB drive connected then the change from sda to sdb will suffice.

Cheers,
Steven
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: jtaparicio on August 13, 2014, 06:41:23 am
Hi, I'm using 1.9 version and I want to update to last. What is the update procedure?

I remember that there was incremental zip files for the upgrades but I can't find then.

Thanks!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: jtaparicio on August 13, 2014, 06:55:46 am
Hi, there is a known bug about the network speed "Gigabit ethernet transfer rate is around 50% of its theoretical max rate (hardware or firmware issue)"

Then all the distributions for CT has the same bug, correct?

The maximun speed i achieve with version 1.9 is about 11,7 megabytes per second, below 50% of the máximun theorical speed

Thanks!
Title: Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 2.8.2014
Post by: slovenia on August 13, 2014, 08:56:28 am
If you don't need Bluetooth just do kernel update. How-to is on my blog or search this post.