Jump to content

technik007_cz

Members
  • Posts

    189
  • Joined

  • Last visited

Everything posted by technik007_cz

  1. I tried to find script called "create_swap.sh" but I cannot find it in my system. I know only about one swap file and it should be created only on first boot and it has no sense to create it again and again every reboot.
  2. Hi again, I found great article about swap folow link below. But I must mention something important. Swap file does not contain any valuable information. So it has not sense to move it. We just delete old, create new one and change path if it is a file somewhere on filesystem or UUID if it is partition in fstab. I do prefer to create swap partition on the end of sdcard or microsd because even value on label of card says it is 8GB every brand has different capacity. And this difference can be sometimes more than 100MB. So I decided to shrink root partition to 7.5GB and rest of capacity is swap partition. When I need to clone whole microsd I delete swap partition first, then I use simple dd command to clone it with bootloader and everything and for last I do create new swap partition. Somebody can say I can do same with simple script which can resize root and left swap like originally was inside root because we do not want to use swap at all on slow these cards and it is here for emergency. Answer is you have right. Swapfile on microsd card is for emergency cases only because it has low I/O bandwitch and I personally do prefer using swap partition if it is necessary on singleboard computers with sata port attached ssd's (even somebody can protest we do swaps on spindle drives because it do not lower it's lifetime). https://www.linux.com/news/all-about-linux-swap-space
  3. True. Between steps 4 and 5. Sent from my Redmi Note 2 using Tapatalk
  4. Hi mate, log in your system with terminal and do commands. 1) you need to be sure swap is not used swapoff -a 2) move swap to different location or create new one swap file or swap partition. Second is better, first simple to create. Here is example for 1G swap file: dd if=/dev/zero bs=1M count=1024 of=/var/swap.img 3)change path and filename if necessary in fstab nano /etc/fstab 4)run command "swapon -a" or reboot Sent from my Redmi Note 2 using Tapatalk
  5. This is what worked for adapter below: lsusb ... Bus 003 Device 002: ID 0bda:0179 Realtek Semiconductor Corp. ... nano /etc/modules-load.d/modules.conf and I added line: 8192cu Thank you @rodolfo !
  6. Wery well rodolfo, I was able to compile some of Wifi drivers from github I could not. I will test my wifi dongles and post results today evening or tomorrow. Sent from my Redmi Note 2 using Tapatalk
  7. And what about start using development version of kernel which is working? Does it have some issues preventing to use it on headless server? Sent from my Redmi Note 2 using Tapatalk
  8. Hi guys, I received 5pcs of Orange Pi PC recently. I prepared system for all of them based on 3.4.xxx kernel Jessie sever image. Every board with only wifi connection I cannot reach on network. I have started investigating problem and these Realtek dongles are showing up like 2 devices wlan0 wlan1. Wpa supplicant driver crashed during boot and there is some strange message in startup log about usb. I am at work now so I cannot post it but on development version I tested this morning is that wifi dongle working and successfully connected to network. Sent from my Redmi Note 2 using Tapatalk
  9. Hi guys, I happaned a few months ago when I discovered two problems which could cause some instability problems on my Cubietruck device. First problem had been caused by wrong power conector on 12V "Y" cable. And what was wrong? When I touched hardly it disconnected power. I know it is very stupid problem but I found it when I decided to put Cubietruck to out of service after some unknown unstability problems for me at this time. Second problem ? LAN cable. I found one end spoiled with some liquid. Not all pins but only three of them. And how did I discover it? I mounted nfs share on that device and started copying files but it was terribly slow. I stopped it and I was doing something else and I needed that lan cable. I turned on wifi client on Cubietruck and started copying files without LAN cable plugged in and whoala copying was faster than on LAN network what was strange for me. I tried ping on LAN ip of Cubietruck and it showed me about 25% lost packets. And it was point when I decided to replace LAN cable with another one and later check that cable. I learned from this mistake and I am using ping collectd plugin on my router to constantly check this problems partly caused by wrong delays set for different board design and wrong LAN cables.
  10. It can be something wrong with card reader or the card. It does not matter if it is genuine. Try different card or reader :-). PS: I use for example bs=1M and it has been working ages for me.
  11. I am trying Banana Pro now. I found root ssd drive connected in usb do not work. But I have been using power bank box with soldered wire to Banana Pro board. I tried plug root sata drive into power bank usb hole and yea it is working together. I found later on aliexpress powerbank for 18650 batteries with switch. So I will be able to easily power off Banana Pro and when I will not see power lights I can switch off safely root ssd drive.
  12. Hi guys, I am looking for cheap device alternatives capable running on battery. It must be low power consuming. Any ideas?
  13. Kingston 16GB Micro SDHC Card 90 MB/s UHS-I U3 + Adapter - Class 10 used card 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 kB reclen write rewrite read reread read write 102400 4 710 705 9292 9296 7777 685 102400 16 8510 8595 11731 12567 11787 72 102400 512 20311 19950 22217 22220 22144 2185 102400 1024 19277 20341 22538 22540 22497 4330 102400 16384 20925 20539 22575 22574 22572 15891 /var/log/armhwinfo.log has been uploaded to http://sprunge.us/Lihf EDIT: second run, same card random random kB reclen write rewrite read reread read write 102400 4 712 698 9286 9285 7804 686 102400 16 8444 8633 11652 12562 11775 72 102400 512 20264 19939 22124 22126 22040 2187 102400 1024 19252 20345 22474 22475 22433 4302 102400 16384 20934 20526 22566 22568 22564 15537
  14. Samsung Memory 32 GB EVO http://sprunge.us/NVTg brand new card, it should be 10th test (i cannot scroll it up) 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 kB reclen write rewrite read reread read write 102400 4 3365 3419 7577 7589 7588 3483 102400 16 11342 12297 14648 14640 14654 12303 102400 512 21408 21468 22814 22814 22814 21464 102400 1024 21654 21708 22871 22866 22869 21764 102400 16384 21703 21737 22950 22948 22949 21786
  15. Toshiba Memory Exceria M301 8GB MicroSDXC Class 10 48 Mbps http://sprunge.us/bSfN brand new card, result of 3rd test 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 637 629 7416 7420 6402 611 102400 16 6997 7375 10210 10654 10091 63 102400 512 16026 15845 22069 22070 21991 2022 102400 1024 16468 16261 22488 22488 22443 4027 102400 16384 16558 16217 22443 22442 22440 12880
  16. I am running Jessie Debian on BananaPro and Intel SSD drive powered from onboard cable. Sometimes helps me another trick when I did not see my sata drive in system after power up. I unpluged power adaptor entirely and it started working again. But do not forget to try different sata cable.
  17. I am running kernel patched by you Kaiser (3.4.111-sun7i) on the same BananaPro board. System uptime is 17h:38m now and I do not see "Division by zero in kernel." in dmesg log. I hope it is stable ;-). And if not I am back.
  18. I received this board few days ago and soldering points are so tiny. When you compare price Orange Pi One <> Orange Pi PC this article is pointless.
  19. Let me try... I extracted it from file linux-u-boot-bananapi_5.00_armhf.deb and used command below to write it to microsd. dd if=u-boot-sunxi-with-spl.bin of=/dev/sdx bs=1024 seek=8 It was not necessary to touch anything else ... and u-boot sucessfully started kernel. It was u-boot problem and it is sorted out now. Thank you Igor
  20. Is it normal when it says: ** Unrecognized filesystem type ** ?
  21. It uses U-Boot 2016.01. This is what I see on boot screen.
  22. Do we have different versions for legacy and vanilla kernel?
  23. Thank you for your effort but I converted kernel from legacy to vanilla in meantime and it ended in unbootable system. Even I extracted your patched kernel to microsd card last message is "Starting kernel ..." and system remains in this state and do not want to continue. Therefore I decided to use full backup of system (rdiff-backup). I formated another microsd, transfered all files from backup with mc and "Preserve attributes" turned on. At the end I copied u-boot loader for my bananapro. Result is same, last message is "Starting kernel ..." and nothing more is happening... I will try recovery procedure from Igor's help page. But if you have different ideas I will be very appreciated.
  24. I found this error 2x. [10616.244175] Division by zero in kernel. [10616.251020] [<c0015098>] (unwind_backtrace+0x0/0x134) from [<c03e7ab8>] (Ldiv0+0x8/0x10) [10616.267028] [<c03e7ab8>] (Ldiv0+0x8/0x10) from [<c00e8798>] (vmpressure_work_fn+0x6c/0x180) [10616.281004] [<c00e8798>] (vmpressure_work_fn+0x6c/0x180) from [<c004ca00>] (process_one_work+0x12c/0x3b0) [10616.301622] [<c004ca00>] (process_one_work+0x12c/0x3b0) from [<c004cfd8>] (worker_thread+0x158/0x394) [10616.315211] [<c004cfd8>] (worker_thread+0x158/0x394) from [<c00515d0>] (kthread+0x90/0x94) [10616.327663] [<c00515d0>] (kthread+0x90/0x94) from [<c000f498>] (kernel_thread_exit+0x0/0x8) [10616.330964] Division by zero in kernel. [10616.338198] [<c0015098>] (unwind_backtrace+0x0/0x134) from [<c03e7ab8>] (Ldiv0+0x8/0x10) [10616.350152] [<c03e7ab8>] (Ldiv0+0x8/0x10) from [<c00e87ac>] (vmpressure_work_fn+0x80/0x180) [10616.360314] [<c00e87ac>] (vmpressure_work_fn+0x80/0x180) from [<c004ca00>] (process_one_work+0x12c/0x3b0) [10616.370009] [<c004ca00>] (process_one_work+0x12c/0x3b0) from [<c004cfd8>] (worker_thread+0x158/0x394) [10616.378912] [<c004cfd8>] (worker_thread+0x158/0x394) from [<c00515d0>] (kthread+0x90/0x94) [10616.397707] [<c00515d0>] (kthread+0x90/0x94) from [<c000f498>] (kernel_thread_exit+0x0/0x8)
  25. Hi, I found problem below today. I have stability problems with services running on BananaPro and therefore this is second problem after "kswapd was killing some tasks" I decided revert back to older kernel 3.4.109. I am only letting you know... Division by zero in kernel. [10616.338198] [<c0015098>] (unwind_backtrace+0x0/0x134) from [<c03e7ab8>] (Ldiv0+0x8/0x10) [10616.350152] [<c03e7ab8>] (Ldiv0+0x8/0x10) from [<c00e87ac>] (vmpressure_work_fn+0x80/0x180) [10616.360314] [<c00e87ac>] (vmpressure_work_fn+0x80/0x180) from [<c004ca00>] (process_one_work+0x12c/0x3b0) [10616.370009] [<c004ca00>] (process_one_work+0x12c/0x3b0) from [<c004cfd8>] (worker_thread+0x158/0x394) [10616.378912] [<c004cfd8>] (worker_thread+0x158/0x394) from [<c00515d0>] (kthread+0x90/0x94) [10616.397707] [<c00515d0>] (kthread+0x90/0x94) from [<c000f498>] (kernel_thread_exit+0x0/0x8)
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines