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

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #465 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
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline Cubieklaus

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #466 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

Offline macduck

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #467 on: May 09, 2014, 01:08:03 am »

v1.9 / 27.4.2014 Cubietruck and Cubieboard 2
Download VGA | HDMI (400 Mb) | Kernel only (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

Offline exciter

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile

Offline Fuzzlix

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #469 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.

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #470 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.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline castalla

  • Developer
  • Full Member
  • ***
  • Posts: 106
  • Karma: +3/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #471 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).   

Offline Sloop

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +2/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #472 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. 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. 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 :)
« Last Edit: May 10, 2014, 03:14:54 pm by Sloop »

Offline pezi

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #473 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

Offline Fuzzlix

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #474 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 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.

Offline Cubieklaus

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #475 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 ?

Offline ruleof72

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #476 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!

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #477 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
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline ruleof72

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #478 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?

Offline pattinik

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot - update 27.4.2014
« Reply #479 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.