November 19, 2019, 04:43:52 am

News:

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


Buster, Xenial and Bionic - updated 6.7.2019

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

Previous topic - Next topic

jingx

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

buzzy84

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/ and even scripts are not working properly the first test cpuburn-sunxi lead to this behavior

rose28357

Wich release do you actually use ? The latest from 2.8.2014 ?

Can you provide the result of
cpufreq-info here ?

buzzy84

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

rose28357

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.

buzzy84

Quote from: 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.


Many thanks for your quick reply but I looked at the first post (latest version) and he says:

Quoteoptimized 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

rose28357

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

richdotward

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


buzzy84

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


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

phelum

Quote from: richdotward on August 11, 2014, 03:49:31 pm
/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

buzzy84

Quote from: buzzy84 on August 12, 2014, 04:00:47 am
Quote from: 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


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
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
cpufreq-info
returns that the CPUs are still limited to 1.01Ghz

richdotward

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

rose28357

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.

richdotward

Quote from: 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....


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


phelum

Quote from: richdotward on August 12, 2014, 02:43:03 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