TBone Posted August 3, 2016 Posted August 3, 2016 Hi Forum, My CT with "Armbian_5.14_Cubietruck_Debian_jessie_4.6.2" image fails to complete apt-get upgrade and dist-upgrade. I haven't installed or removed any package, simply used the original image as it is. It starts the process, gets the packages, unpacks, starts setting them up and hangs at compiling the new headers. I left it working a full night but found with doing nothing. No cpu or disk activity was seen. Has anyone seen this before? Any idea? Thanks, T
Igor Posted August 3, 2016 Posted August 3, 2016 http://docs.armbian.com/User-Guide_Fine-Tuning/#how-to-provide-boot-logs-for-inspection Without logs it's hard to say but bad / low quality SD card would be my first guess.
TBone Posted August 3, 2016 Author Posted August 3, 2016 Hi Igor, Thank you for the link. I'll update the post with the link as it gets ready. What "low quality SD card" means? What is the parameter that Linux counts on? Is it too slow? Endurance can't be seen by L only if the card fails. Regards, T
Igor Posted August 3, 2016 Posted August 3, 2016 http://docs.armbian.com/User-Guide_Getting-Started/#how-to-prepare-a-sd-card For system usage, random read / write, is at most important and SD Class doesn't tell that. For apt-get upgrade is essential I would say - you are getting lot's of new small files and a header compilation is done on the way. On normal (cca. 5 USD Samsung EVO) whole upgrade process takes several minutes, while on 100x slower cards ... do the math. If card is corrupted "slow" can become "never".
TBone Posted August 3, 2016 Author Posted August 3, 2016 Hi Igor, It's there http://sprunge.us/SNTU Regards, T
Igor Posted August 3, 2016 Posted August 3, 2016 Everything looks o.k. but I can't tell if SD card is quality enough. There is another test: Do a compare: http://forum.armbian.com/index.php/topic/954-sd-card-performance/ iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Fastest would be to try the same on some other SD card.
TBone Posted August 3, 2016 Author Posted August 3, 2016 I'm using a 16GB Samsung EVO, but I'll do the test.
TBone Posted August 3, 2016 Author Posted August 3, 2016 Here's what I got. Include fsync in write timing O_DIRECT feature enabled Auto Mode File size set to 102400 kB Record Size 4 kB Record Size 16 kB Record Size 512 kB Record Size 1024 kB Record Size 16384 kB Command line used: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 Output is in kBytes/sec Time Resolution = 0.000001 seconds. Processor cache size set to 1024 kBytes. Processor cache line size set to 32 bytes. File stride size set to 17 * record size. random random bkwd record stride kB reclen write rewrite read reread read write read rewrite read fwrite frewrite fread freread 102400 4 2016 2211 6269 6275 6116 862 102400 16 4561 5795 14194 14200 13750 3458 102400 512 9872 11975 21845 21843 21720 9308 102400 1024 10703 12388 22093 22085 21977 9878 102400 16384 11659 12136 22186 22182 22141 11377where here is reference result for the Samsung Evo 64G from the forum link, http://forum.armbian.com/index.php/topic/954-sd-card-performance/ . 102400 4 3233 3339 7547 7557 7561 3392102400 16 11326 12256 14628 14618 14636 12237102400 512 21248 21333 22682 22684 22680 21402102400 1024 21487 21640 22805 22806 22805 21688102400 16384 21747 21756 22938 22940 22939 21798 Despite I have the same brand and type it looks as mine were about at 2/3 performance or even less. Hmm... But this speed degradation doesn't proove me that it takes a whole night to upgrade the system and in the morning I can't see any progress. Even if the boot up speed is less then one minute from switching on to get a login prompt.
Sudosudores Posted August 8, 2016 Posted August 8, 2016 Hello! i have a big problem. I installed Armbian 5.14 (debian jessie 3.4.112, Vanilla Kernel) The firmware is good but, when i try to upgrade the distro the system crashes. i did: sudo apt-get update sudo apt-get upgrade the system download all packages, unpacks them, settings up them. After setting up all packages: ... ... ... Setting up linux-headers-sun7i (5,16) ... ...when it try to compile headers... Compiling headers - please wait ... the Cubietruck remains in "stasis" for hours and hours and hours.... like a loop. CPU Usage is ever swings from 56% to 58% Memory usage swings from 192 to 211 MB cyclically. Absolutely no active process. No SD card activities.The SD card is Good. the system is very rapid, aslo the booting time! But if i try to upgrade-it, this happens everytime. I am obliged to disconnect power supply and install the distro from scratch! I aslo tried the version of O.S. whit Legacy Kernel but.... same problem. I'm very, very sorry for my bad english, please excuse me!Please help me!
Igor Posted August 9, 2016 Posted August 9, 2016 This must be some other problem. Is Cubietruck under some (heavy) load during this upgrade? I made a simple test with one of my worse SD cards. random random kB reclen write rewrite read reread read write 102400 4 2730 3725 5775 4941 2410 502 102400 16 3006 5704 10181 10325 6854 2708 102400 512 5166 6037 16735 16586 16235 5379 102400 1024 5175 7034 17131 17281 16883 5455 102400 16384 6077 6491 17881 18138 18041 6621 Image was 5.14, from current download, Cubietruck, kernel 4.6.2 -> upgrading to 4.6.3 apt-get upgrade took exactly 9 minutes and 12 sec and was successful.Can you login to machine while doing upgrade / compiling headers or it stop responding? Edit: This is what's done after headers install: cd /usr/src/linux-headers-4.6.2-sunxi; echo "Compiling headers - please wait ..."; make -s scripts >/dev/null 2>&1 exit 0 Try execute it manually, without -s, and observe what's happening.
Sudosudores Posted August 11, 2016 Posted August 11, 2016 cd /usr/src/linux-headers-4.6.2-sunxi; echo "Compiling headers - please wait ..."; make -s scripts >/dev/null 2>&1 exit 0 Try execute it manually, without -s, and observe what's happening. Hello dear! Excuse me but i'm noob. The machine remain usable during the "stasis". I write this in the terminal? make scripts >/dev/null 2>&1 exit 0
Sudosudores Posted August 12, 2016 Posted August 12, 2016 I HAVE AN IDEA! If you want, i can send you the image of my SD card to run-it in your CT! Ok man?
Sudosudores Posted August 12, 2016 Posted August 12, 2016 IT WORKS!!!! DAMN IT WORKS!!!!!!!! I HAVE SUCCESFULLY UPGRADED ALL PACKET IN LESS OF 5 MINUTE!!! i have no idea why first was not working, but now as worked! I have upraded via remote terminal (ssh and Putty on windows) 1
Recommended Posts