Search the Community

Showing results for tags 'mainline'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community
    • Announcements
    • Feature Requests
  • Using Armbian
    • Beginners
    • Advanced users - Development
  • Upcoming Hardware (WIP)
    • Tech News
    • Khadas VIM4
    • Radxa Zero 2
    • Odroid M1
  • Supported boards
    • Board does not start
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families
  • Unsupported (CSC/EOL/TVB) / Other
    • TV boxes
    • Off-topic
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families
  • Old bug tracker - read only
    • Old bug tracker - read only
  • TV Boxes's General Chat
  • TV Boxes's Reviews/Tutorials
  • TV Boxes's FAQ
  • TV Boxes's TV Boxes running Armbian
  • TV Boxes's Rockchip CPU Boxes
  • TV Boxes's Amlogic CPU Boxes
  • TV Boxes's Allwinner CPU Boxes
  • Android's Forums
  • Gaming on ARM's Reviews
  • Gaming on ARM's Issues

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Matrix


Mastodon


IRC


Website URL


XMPP


Skype


Github


Location


Interests

  1. I'am running the latest Stretch server version on a PiOne (Linux 4.14.65-sunxi). I think that something is going wrong with the logrotate. The rotation is done in /var/log.hdd directory (see also the scripts in /etc/logrotate.d/). But the original file of each is in /var/log directory and is not "cleared" after the rename, because it is not renamed. So, if Zram copies /var/log directory to the /var/log.hdd directory, the original file in /var/log with old logging and included new logging is written to the /var/log.hdd directory. In the next logrotate this growing file is compressed. In this situation/in my case the compressed files contains all the loggings and not only the loggings of the last day or week or month, depending which file is compressed. And the file is still growing and growing. Is my conclusion right or is something wrong in my Stretch installation. In the latest case, I could not find it. Please give me a hint.
  2. Hello everyone. This happens on my OrangePi after a couple of hours of running. I don't think this happened before installing the kernel 4.14. I haven't changed my power supply, which should be working well - custom DC/DC converter connected to GPIO pins. Is anyone else experiencing this? Anything I can do? [19155.760977] INFO: rcu_sched self-detected stall on CPU [19155.760983] INFO: rcu_sched self-detected stall on CPU [19155.760997] INFO: rcu_sched detected stalls on CPUs/tasks: [19155.761010] 2-...: (1 ticks this GP) idle=18a/1/0 softirq=332295/332295 fqs=0 [19155.761017] 0-...: (0 ticks this GP) idle=dbe/1/0 softirq=475103/475103 fqs=0 [19155.761018] [19155.761025] 1-...: (1 GPs behind) idle=f36/1/0 softirq=422883/422884 fqs=0 [19155.761034] 2-...: (1 ticks this GP) idle=18a/1/0 softirq=332295/332295 fqs=0 [19155.761040] rcu_sched kthread starved for 91911 jiffies! g126395 c126394 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x402 ->cpu=3 [19155.761041] [19155.819568] 1-...: (1 GPs behind) idle=f36/1/0 softirq=422883/422884 fqs=0 [19155.826612] (t=91911 jiffies g=126395 c=126394 q=3) [19155.831672] rcu_sched kthread starved for 91911 jiffies! g126395 c126394 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x0 ->cpu=0 [19185.762182] rcu_sched kthread starved for 91911 jiffies! g126395 c126394 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x0 ->cpu=0 [19155.760977] INFO: rcu_sched self-detected stall on CPU [19155.760983] INFO: rcu_sched self-detected stall on CPU [19155.760997] INFO: rcu_sched detected stalls on CPUs/tasks: [19155.761010] 2-...: (1 ticks this GP) idle=18a/1/0 softirq=332295/332295 fqs=0 [19155.761017] 0-...: (0 ticks this GP) idle=dbe/1/0 softirq=475103/475103 fqs=0 [19155.761018] [19155.761025] 1-...: (1 GPs behind) idle=f36/1/0 softirq=422883/422884 fqs=0 [19155.761028] (t=91911 jiffies g=126395 c=126394 q=3) [19155.761034] 2-...: (1 ticks this GP) idle=18a/1/0 softirq=332295/332295 fqs=0 [19155.761040] rcu_sched kthread starved for 91911 jiffies! g126395 c126394 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x402 ->cpu=3 [19155.761041] [19155.761044] rcu_sched I [19155.761048] (detected by 3, t=91911 jiffies, g=126395, c=126394, q=3) [19155.761052] 0 8 2 0x00000000 [19155.761057] Sending NMI from CPU 3 to CPUs 0: [19155.761079] [<c08762b9>] (__schedule) from [<c087682b>] (schedule+0x2f/0x68) [19155.761093] [<c087682b>] (schedule) from [<c087909d>] (schedule_timeout+0x75/0x314) [19155.761108] [<c087909d>] (schedule_timeout) from [<c0164f95>] (rcu_gp_kthread+0x415/0x674) [19155.761123] [<c0164f95>] (rcu_gp_kthread) from [<c0131a9d>] (kthread+0xfd/0x104) [19155.761138] [<c0131a9d>] (kthread) from [<c0106719>] (ret_from_fork+0x11/0x38) [19155.819568] 1-...: (1 GPs behind) idle=f36/1/0 softirq=422883/422884 fqs=0 [19155.826612] (t=91911 jiffies g=126395 c=126394 q=3) [19155.831672] rcu_sched kthread starved for 91911 jiffies! g126395 c126394 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x0 ->cpu=0 [19155.842191] rcu_sched R running task 0 8 2 0x00000000 [19155.842210] [<c08762b9>] (__schedule) from [<c087682b>] (schedule+0x2f/0x68) [19155.842222] [<c087682b>] (schedule) from [<c087909d>] (schedule_timeout+0x75/0x314) [19155.842234] [<c087909d>] (schedule_timeout) from [<c0164f95>] (rcu_gp_kthread+0x415/0x674) [19155.842245] [<c0164f95>] (rcu_gp_kthread) from [<c0131a9d>] (kthread+0xfd/0x104) [19155.842256] [<c0131a9d>] (kthread) from [<c0106719>] (ret_from_fork+0x11/0x38) [19165.761432] Sending NMI from CPU 3 to CPUs 1: [19175.761806] Sending NMI from CPU 3 to CPUs 2: [19185.762182] rcu_sched kthread starved for 91911 jiffies! g126395 c126394 f0x0 RCU_GP_WAIT_FQS(3) ->state=0x0 ->cpu=0 [19185.762186] Sending NMI from CPU 2 to CPUs 0: [19185.772707] rcu_sched R running task 0 8 2 0x00000000 [19185.772726] [<c08762b9>] (__schedule) from [<c087682b>] (schedule+0x2f/0x68) [19185.772738] [<c087682b>] (schedule) from [<c087909d>] (schedule_timeout+0x75/0x314) [19185.772749] [<c087909d>] (schedule_timeout) from [<c0164f95>] (rcu_gp_kthread+0x415/0x674) [19185.772760] [<c0164f95>] (rcu_gp_kthread) from [<c0131a9d>] (kthread+0xfd/0x104) [19185.772772] [<c0131a9d>] (kthread) from [<c0106719>] (ret_from_fork+0x11/0x38) [19195.762559] Sending NMI from CPU 2 to CPUs 1: [19205.762933] NMI backtrace for cpu 2 [19205.762942] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.14.14-sunxi #38 [19205.762945] Hardware name: Allwinner sun8i Family [19205.762959] [<c010db15>] (unwind_backtrace) from [<c010a0d9>] (show_stack+0x11/0x14) [19205.762970] [<c010a0d9>] (show_stack) from [<c0867e29>] (dump_stack+0x69/0x78) [19205.762983] [<c0867e29>] (dump_stack) from [<c086bc37>] (nmi_cpu_backtrace+0xd3/0xd4) [19205.762996] [<c086bc37>] (nmi_cpu_backtrace) from [<c086bccf>] (nmi_trigger_cpumask_backtrace+0x97/0xd0) [19205.763008] [<c086bccf>] (nmi_trigger_cpumask_backtrace) from [<c01662a7>] (rcu_dump_cpu_stacks+0x77/0x94) [19205.763019] [<c01662a7>] (rcu_dump_cpu_stacks) from [<c0165a65>] (rcu_check_callbacks+0x4d5/0x690) [19205.763032] [<c0165a65>] (rcu_check_callbacks) from [<c0169f5f>] (update_process_times+0x2b/0x48) [19205.763046] [<c0169f5f>] (update_process_times) from [<c0177d11>] (tick_sched_timer+0x31/0x68) [19205.763057] [<c0177d11>] (tick_sched_timer) from [<c016ac85>] (__hrtimer_run_queues+0xf5/0x224) [19205.763066] [<c016ac85>] (__hrtimer_run_queues) from [<c016af81>] (hrtimer_interrupt+0x81/0x180) [19205.763079] [<c016af81>] (hrtimer_interrupt) from [<c07483a1>] (arch_timer_handler_phys+0x25/0x28) [19205.763093] [<c07483a1>] (arch_timer_handler_phys) from [<c015d52f>] (handle_percpu_devid_irq+0x57/0x19c) [19205.763107] [<c015d52f>] (handle_percpu_devid_irq) from [<c0159a49>] (generic_handle_irq+0x1d/0x28) [19205.763120] [<c0159a49>] (generic_handle_irq) from [<c0159e59>] (__handle_domain_irq+0x45/0x84) [19205.763131] [<c0159e59>] (__handle_domain_irq) from [<c01013b5>] (gic_handle_irq+0x39/0x68) [19205.763141] [<c01013b5>] (gic_handle_irq) from [<c010aa25>] (__irq_svc+0x65/0x94) [19205.763146] Exception stack(0xee523f78 to 0xee523fc0) [19205.763152] 3f60: 00000001 00000000 [19205.763161] 3f80: 00000000 c0116561 ffffe000 c0d03fcc c0d03f6c c0cb6438 c0ddd8eb 00000000 [19205.763170] 3fa0: 00000000 00000000 00087b5d ee523fc8 c01070e7 c01070e8 40000033 ffffffff [19205.763181] [<c010aa25>] (__irq_svc) from [<c01070e8>] (arch_cpu_idle+0x28/0x2c) [19205.763194] [<c01070e8>] (arch_cpu_idle) from [<c014c93d>] (do_idle+0x115/0x16c) [19205.763206] [<c014c93d>] (do_idle) from [<c014cb89>] (cpu_startup_entry+0x19/0x1c) [19205.763216] [<c014cb89>] (cpu_startup_entry) from [<401016f1>] (0x401016f1) [19205.763226] Sending NMI from CPU 1 to CPUs 0: [19215.763599] NMI backtrace for cpu 1 [19215.763605] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.14-sunxi #38 [19215.763608] Hardware name: Allwinner sun8i Family [19215.763618] [<c010db15>] (unwind_backtrace) from [<c010a0d9>] (show_stack+0x11/0x14) [19215.763627] [<c010a0d9>] (show_stack) from [<c0867e29>] (dump_stack+0x69/0x78) [19215.763638] [<c0867e29>] (dump_stack) from [<c086bc37>] (nmi_cpu_backtrace+0xd3/0xd4) [19215.763650] [<c086bc37>] (nmi_cpu_backtrace) from [<c086bccf>] (nmi_trigger_cpumask_backtrace+0x97/0xd0) [19215.763661] [<c086bccf>] (nmi_trigger_cpumask_backtrace) from [<c01662a7>] (rcu_dump_cpu_stacks+0x77/0x94) [19215.763672] [<c01662a7>] (rcu_dump_cpu_stacks) from [<c0165a65>] (rcu_check_callbacks+0x4d5/0x690) [19215.763683] [<c0165a65>] (rcu_check_callbacks) from [<c0169f5f>] (update_process_times+0x2b/0x48) [19215.763695] [<c0169f5f>] (update_process_times) from [<c0177d11>] (tick_sched_timer+0x31/0x68) [19215.763705] [<c0177d11>] (tick_sched_timer) from [<c016ac85>] (__hrtimer_run_queues+0xf5/0x224) [19215.763714] [<c016ac85>] (__hrtimer_run_queues) from [<c016af81>] (hrtimer_interrupt+0x81/0x180) [19215.763724] [<c016af81>] (hrtimer_interrupt) from [<c07483a1>] (arch_timer_handler_phys+0x25/0x28) [19215.763735] [<c07483a1>] (arch_timer_handler_phys) from [<c015d52f>] (handle_percpu_devid_irq+0x57/0x19c) [19215.763746] [<c015d52f>] (handle_percpu_devid_irq) from [<c0159a49>] (generic_handle_irq+0x1d/0x28) [19215.763758] [<c0159a49>] (generic_handle_irq) from [<c0159e59>] (__handle_domain_irq+0x45/0x84) [19215.763768] [<c0159e59>] (__handle_domain_irq) from [<c01013b5>] (gic_handle_irq+0x39/0x68) [19215.763777] [<c01013b5>] (gic_handle_irq) from [<c010aa25>] (__irq_svc+0x65/0x94) [19215.763781] Exception stack(0xee521f78 to 0xee521fc0) [19215.763787] 1f60: 00000001 00000000 [19215.763796] 1f80: 00000000 c0116561 ffffe000 c0d03fcc c0d03f6c c0cb6438 c0ddd8eb 00000000 [19215.763805] 1fa0: 00000000 00000000 00000018 ee521fc8 c01070e7 c01070e8 40000033 ffffffff [19215.763815] [<c010aa25>] (__irq_svc) from [<c01070e8>] (arch_cpu_idle+0x28/0x2c) [19215.763826] [<c01070e8>] (arch_cpu_idle) from [<c014c93d>] (do_idle+0x115/0x16c) [19215.763837] [<c014c93d>] (do_idle) from [<c014cb89>] (cpu_startup_entry+0x19/0x1c) [19215.763846] [<c014cb89>] (cpu_startup_entry) from [<401016f1>] (0x401016f1) [19215.763853] Sending NMI from CPU 1 to CPUs 2: [19225.764386] NMI backtrace for cpu 2 [19225.764393] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.14.14-sunxi #38 [19225.764395] Hardware name: Allwinner sun8i Family [19225.764399] task: ee4f8000 task.stack: ee522000 [19225.764404] PC is at __do_softirq+0x7a/0x25c [19225.764412] LR is at irq_exit+0x7f/0xc4 [19225.764416] pc : [<c0101462>] lr : [<c011ef33>] psr: 40000133 [19225.764419] sp : ee523ee8 ip : 7fffffff fp : 4000001f [19225.764422] r10: c0d02080 r9 : ee434000 r8 : 00000001 [19225.764426] r7 : ffffe000 r6 : 00000282 r5 : 00000000 r4 : ffffe000 [19225.764430] r3 : 00000080 r2 : 00000000 r1 : c0df6740 r0 : c0df6740 [19225.764435] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment none [19225.764439] Control: 50c5387d Table: 56ff006a DAC: 00000051 [19225.764444] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 4.14.14-sunxi #38 [19225.764446] Hardware name: Allwinner sun8i Family [19225.764456] [<c010db15>] (unwind_backtrace) from [<c010a0d9>] (show_stack+0x11/0x14) [19225.764465] [<c010a0d9>] (show_stack) from [<c0867e29>] (dump_stack+0x69/0x78) [19225.764475] [<c0867e29>] (dump_stack) from [<c086bbef>] (nmi_cpu_backtrace+0x8b/0xd4) [19225.764486] [<c086bbef>] (nmi_cpu_backtrace) from [<c010ca01>] (handle_IPI+0x75/0x278) [19225.764495] [<c010ca01>] (handle_IPI) from [<c01013e3>] (gic_handle_irq+0x67/0x68) [19225.764502] [<c01013e3>] (gic_handle_irq) from [<c010aa25>] (__irq_svc+0x65/0x94) [19225.764506] Exception stack(0xee523e98 to 0xee523ee0) [19225.764510] 3e80: c0df6740 c0df6740 [19225.764519] 3ea0: 00000000 00000080 ffffe000 00000000 00000282 ffffe000 00000001 ee434000 [19225.764527] 3ec0: c0d02080 4000001f 7fffffff ee523ee8 c011ef33 c0101462 40000133 ffffffff [19225.764535] [<c010aa25>] (__irq_svc) from [<c0101462>] (__do_softirq+0x7a/0x25c) [19225.764545] [<c0101462>] (__do_softirq) from [<c011ef33>] (irq_exit+0x7f/0xc4) [19225.764557] [<c011ef33>] (irq_exit) from [<c0159e5d>] (__handle_domain_irq+0x49/0x84) [19225.764567] [<c0159e5d>] (__handle_domain_irq) from [<c01013b5>] (gic_handle_irq+0x39/0x68) [19225.764575] [<c01013b5>] (gic_handle_irq) from [<c010aa25>] (__irq_svc+0x65/0x94) [19225.764578] Exception stack(0xee523f78 to 0xee523fc0) [19225.764582] 3f60: 00000001 00000000 [19225.764590] 3f80: 00000000 c0116561 ffffe000 c0d03fcc c0d03f6c c0cb6438 c0ddd8eb 00000000 [19225.764603] 3fa0: 00000000 00000000 00087b5d ee523fc8 c01070e7 c01070e8 40000033 ffffffff [19225.764613] [<c010aa25>] (__irq_svc) from [<c01070e8>] (arch_cpu_idle+0x28/0x2c) [19225.764624] [<c01070e8>] (arch_cpu_idle) from [<c014c93d>] (do_idle+0x115/0x16c) [19225.764642] [<c014c93d>] (do_idle) from [<c014cb89>] (cpu_startup_entry+0x19/0x1c) [19225.764656] [<c014cb89>] (cpu_startup_entry) from [<401016f1>] (0x401016f1)
  3. Well it took me longer than i hoped but i have managed to forward port icenowys code for TVE on the H2+/H3 to mainline armbian. It seems to work totally fine, with a few caveats. First: Sample images of it in action -> https://imgur.com/a/vXQEM Second: the patch itself -> https://github.com/stevenj/h3-tve/tree/v0.0.11 Third a prebuilt image for Orange Pi Zero: -> https://github.com/stevenj/h3-tve/releases/tag/v0.0.11 Howto: just put the patch into userpatches for the sunxi-next kernel, and build. it should apply cleanly. Its for H2+/H3. I have only tried it on a orange pi zero, but it should work on all H2+/H3 boards. You then need to edit /boot/armbianEnv.txt add tve to overlays to enable it. the driver will only run and enable tv out when the tv out devices are specifically enabled, so i created an overlay which does this. If you want to turn TV out off, just remove tve from the overlays line. My armbianEnv.txt overlays looks like this: overlays=usbhost2 usbhost3 tve If you want copious amounts of DRM debug info in your logs, add this as well: extraargs=drm.debug=0xF Its not needed, unless you really want the debug info. Notes: 1. The default mode is PAL, with 720x576 resolution. Thats outside of normal PAL displayable area, and so the screen overscans. I dont know how to correct this, although its mostly just annoying with terminals. I also don't know how to change the video mode to NTSC. 2. The standard font is a bit thin for composite video, and causes slight strobing and color impurity. Its because PAL needs pixels to be a certain MINIMUM width or color information can not be properly encoded. A way to resolve this is use : # apt-get install fbterm ... $ fbterm -s 20 This will run a terminal which is easy to change the font, and pick a bigger one. its much easier to read. Look at the help for fbterm to work out everything it can do. 3. I used the program "fim" to display the test images. there are others for doing stuff on the terminal. 4. I haven't tried X. I am not interested in running an X terminal on a TV, but it should probably work fine. Other than that it all seems good. I originally tested my hardware with the legacy kernel, and the image quality from this patch seems superior to what the legacy kernel produces. (legacy was noisy) The only other thing you need to know is Orange Pi Zero is missing filter circuity from its Composite Output, the most important thing you need to do is put a 50 ohm resistor between the signal and GND. i soldered one inside my RCA connector, it fits fine and isn't too difficult. IF you don't do this the image will bloom and look like total crap, so you have been warned. As this patch allows TVE to be enabled/disabled through use of the Device Tree overlays, i think it should be fine if the Armbian devs want to include it. I am happy to clean out some of the debug messages i added if they are interested in making a standard part of the build. If not, its easy enough to build your own image, just follow the guides on how to rebuild armbian. EDIT: I need to mention, all props go to Icenowy Zheng who wrote the original driver. I just tweaked the device tree stuff and got it in a state where it can apply cleanly to the armbian mainline kernel and build system. Original code is here: https://github.com/Icenowy/linux/tree/tve-v2
  4. I am using a orangepi win plus. I have attached a ssd1306 OLED display to the board, using i2c1 interface, using the luma.oled library as driver. import sys from PIL import Image from PIL import ImageDraw from PIL import ImageFont import subprocess from luma.core.interface.serial import i2c from luma.core.render import canvas from luma.oled.device import ssd1306, ssd1325, ssd1331, sh1106 from time import sleep serial = i2c(port=1, address=0x3C) device = ssd1306(serial, rotate=0) width=device.width height=device.height image = Image.new('1', (device.width, device.height)) # Get drawing object to draw on image. draw = ImageDraw.Draw(image) # Draw a black filled box to clear the image. draw.rectangle((0,0,device.width,device.height), outline=0, fill=0) padding = 2 top = padding bottom = device.height-padding # Move left to right keeping track of the current x position for drawing shapes. x = 0 while True: # Draw a black filled box to clear the image. draw.rectangle((0,0,width,height), outline=0, fill=0) # Shell scripts for system monitoring from here : https://unix.stackexchange.com/questions/119126/command-to-displa$ cmd = "hostname -I | cut -d\' \' -f1" IP = subprocess.check_output(cmd, shell = True ) cmd = "top -bn1 | grep load | awk '{printf \"CPU Load: %.2f\", $(NF-2)}'" CPU = subprocess.check_output(cmd, shell = True ) cmd = "free -m | awk 'NR==2{printf \"Mem: %s/%sMB %.2f%%\", $3,$2,$3*100/$2 }'" MemUsage = subprocess.check_output(cmd, shell = True ) cmd = "df -h | awk '$NF==\"/\"{printf \"Disk: %d/%dGB %s\", $3,$2,$5}'" Disk = subprocess.check_output(cmd, shell = True ) # Write two lines of text. draw.text((x, top),"IP:"+str(IP,encoding = "utf-8"), font=font, fill=255) draw.text((x, top+8),str(CPU,encoding = "utf-8"), font=font, fill=255) draw.text((x, top+16),str(MemUsage,encoding = "utf-8"), font=font, fill=255) draw.text((x, top+25),str(Disk,encoding = "utf-8"), font=font, fill=255) device.display(image) sleep(0.5) At the kernel version 5.3.9, the display worked perfectly, without any problem. But after updating the kernel version to above 5.4.20, the same code don't work at all. Traceback (most recent call last): File "./test_oled.py", line 12, in <module> device = ssd1306(serial, rotate=0) File "/usr/local/lib/python3.6/dist-packages/luma/oled/device/__init__.py", line 188, in __init__ self.clear() File "/usr/local/lib/python3.6/dist-packages/luma/core/mixin.py", line 46, in clear self.display(Image.new(self.mode, self.size)) File "/usr/local/lib/python3.6/dist-packages/luma/oled/device/__init__.py", line 220, in display self.data(list(buf)) File "/usr/local/lib/python3.6/dist-packages/luma/core/device.py", line 46, in data self._serial_interface.data(data) File "/usr/local/lib/python3.6/dist-packages/luma/core/interface/serial.py", line 119, in data write(list(data[i:i + block_size])) File "/usr/local/lib/python3.6/dist-packages/luma/core/interface/serial.py", line 128, in _write_large_block self._bus.i2c_rdwr(self._i2c_msg_write(self._addr, [self._data_mode] + data)) File "/usr/local/lib/python3.6/dist-packages/smbus2/smbus2.py", line 637, in i2c_rdwr ioctl(self.fd, I2C_RDWR, ioctl_data) TimeoutError: [Errno 110] Connection timed out Because the luma.oled library just uses the linux kernel i2c interface like the /dev/i2c-1, so it is more likely a bug related to kernel.
  5. Hello all I want to control some GPIO pins on my NanoPi Neo (H3) board and installed WiringNP. Executing commands results in the error piBoardRev: Unable to determine board revision from /proc/cpuinfo I've traced the source of the error down to this line, where WiringNP tries to open /sys/class/sunxi_info/sys_info to determine which board it is running on. This path is not present in my Armbian os. I'm using 4.11.12-sun8i #20 SMP armv7l armv7l armv7l GNU/Linux Am I missing something here? Or are there alternatives to using WiringNP?
  6. Today I swapped my old Neo2 against a Neo2 LTS 1GB in my NAS case - so I had a old Neo2 512MB free for the black Aluminum-OLED-case which I got in a drawer. Now I did try to activate the OLED in ARMBIAN 5.67 user-built Debian GNU/Linux 9 (stretch) 4.19.4-sunxi64 Linux npi-neo2-27 4.19.4-sunxi64 #6 SMP Fri Nov 30 14:02:43 +03 2018 aarch64 GNU/Linux First (like on a i2c-clock" I activated i2c0 in armbian-config: root@npi-neo2-27(192.168.6.27):~# armbian-config System --> Hardware --> [*] i2c0 After the reboot I checked for the i2c-OLED-device and got: root@npi-neo2-27(192.168.6.27):~# apt install i2c-tools root@npi-neo2-27(192.168.6.27):~# i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- After some trial and error(-messages) I did found the following dependencies for compiling/installing the software for the OLED-Board: apt-get install python-setuptools libjpeg-dev After that I did the normal "5 Enable NanoHat-OLED manually" from http://wiki.friendlyarm.com/wiki/index.php/NanoHat_OLED with root@npi-neo2-27(192.168.6.27):~# cd /home/guido root@npi-neo2-27(192.168.6.27):~# git clone https://github.com/friendlyarm/NanoHatOLED.git root@npi-neo2-27(192.168.6.27):~# cd NanoHatOLED root@npi-neo2-27(192.168.6.27):~# ./install.sh And after the next reboot the OLED-Display did work
  7. Hi, I am trying to interface I/O expander MCP23017 to Nano Pi Neo2(Hardware specs:1 GB RAM, Gigabit Ethernet . Software specs: Debian Buster with Armbian Linux 4.19.59-sunxi64 ) . The issue I am having is I am not able to see the device when I run sudo i2cdetect -y 0 . I have enabled i2c overlays in /boot/armbian.txt . I am using 10 K Ohm pull-ups on SDA and SCK . I get no activity while running i2cdetect on the oscilloscope on SCK and SDA lines . Is this an issue with the kernel ?
  8. Edit: Please see my second post in this thread. I think I've identified exactly what my problem is, please see my second post in the thread. I need to change the display mode to something that my own TV is able to display. But no matter what I've tried, I haven't been able to change the display mode. How do you do it? ---- Hello, I just got an Orange Pi PC. I installed using the Armbian_5.32.170629_Orangepipc_Ubuntu_xenial_dev_4.11.7.7z image. I'm able to log in through SSH, and I've installed all updates (apt-get update && apt-get upgrade) I have the Orange Pi PC connected to my HDMI television. The screen appears blank, nothing appears on it at any time. I tried experimenting with the disp_mode option in armbian-config -> System -> Bootenv. I tried "disp_mode=1280x720p60" and "disp_mode=640x480p60", neither have worked. The default didn't work either. edit: The screen is still blank. Since I posted, I've also tried putting these setenv video-mode sunxi:1280x720-24@60,monitor=dvi,hpd=1,edid=1 disp.screen0_output_mode=1280x720p60 in /boot/armbianEnv.txt, and then running "sudo mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr" and rebooting a few times. I also put 'saveenv' at the end of /boot/boot.cmd. None of this seems to have changed anything. What would you suggest I try doing next? ------- beyond this line, information taken from my Orange PI PC: ------- Kernel version: Linux orangepipc 4.11.12-sun8i #16 SMP Tue Nov 7 00:24:13 CET 2017 armv7l armv7l armv7l GNU/Linux dmesg: [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.11.12-sun8i (root@armbian) (gcc version 7.1.1 20170707 (Linaro GCC 7.1-2017.08) ) #16 SMP Tue Nov 7 00:24:13 CET 2017 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Xunlong Orange Pi PC [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 16 MiB at 0x7cc00000 [ 0.000000] On node 0 totalpages: 253952 [ 0.000000] free_area_init_node: node 0, pgdat c0b5fd80, node_mem_map ef740000 [ 0.000000] Normal zone: 1728 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 196608 pages, LIFO batch:31 [ 0.000000] HighMem zone: 57344 pages, LIFO batch:15 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: Using PSCI v0.1 Function IDs from DT [ 0.000000] percpu: Embedded 16 pages/cpu @ef6ec000 s34572 r8192 d22772 u65536 [ 0.000000] pcpu-alloc: s34572 r8192 d22772 u65536 alloc=16*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 252224 [ 0.000000] Kernel command line: root=UUID=37031002-c65e-4113-b451-f4b61a52ca54 rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=640x480p60 panic=10 consoleblank=0 loglevel=1 ubootpart=5fabfc8f-01 ubootsource=mmc sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_fb_mem_reserve=16 cgroup_enable=memory swapaccount=1 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] allocated 1015808 bytes of page_ext [ 0.000000] Memory: 971892K/1015808K available (6144K kernel code, 386K rwdata, 2392K rodata, 1024K init, 328K bss, 27532K reserved, 16384K cma-reserved, 212980K highmem) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xf0800000 - 0xff800000 ( 240 MB) lowmem : 0xc0000000 - 0xf0000000 ( 768 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf800000 - 0xbfe00000 ( 6 MB) .text : 0xc0008000 - 0xc0700000 (7136 kB) .init : 0xc0a00000 - 0xc0b00000 (1024 kB) .data : 0xc0b00000 - 0xc0b60980 ( 387 kB) .bss : 0xc0b62000 - 0xc0bb40b0 ( 329 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000013] Switching to timer-based delay loop, resolution 41ns [ 0.000176] Console: colour dummy device 80x30 [ 0.000188] console [tty1] enabled [ 0.000209] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000219] pid_max: default: 32768 minimum: 301 [ 0.000387] Security Framework initialized [ 0.000397] AppArmor: AppArmor disabled by boot time parameter [ 0.000442] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000449] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001095] CPU: Testing write buffer coherency: ok [ 0.001476] CPU0: update cpu_capacity 1024 [ 0.001483] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.001799] Setting up static identity map for 0x40100000 - 0x4010004c [ 0.002497] smp: Bringing up secondary CPUs ... [ 0.013099] CPU1: update cpu_capacity 1024 [ 0.013104] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.023742] CPU2: update cpu_capacity 1024 [ 0.023747] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.034355] CPU3: update cpu_capacity 1024 [ 0.034361] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.034424] smp: Brought up 1 node, 4 CPUs [ 0.034431] SMP: Total of 4 processors activated (192.00 BogoMIPS). [ 0.034434] CPU: All CPU(s) started in HYP mode. [ 0.034436] CPU: Virtualization extensions available. [ 0.035297] devtmpfs: initialized [ 0.041046] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.041277] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.041292] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.042083] xor: measuring software checksum speed [ 0.134194] arm4regs : 1261.600 MB/sec [ 0.234238] 8regs : 750.000 MB/sec [ 0.334290] 32regs : 768.000 MB/sec [ 0.434336] neon : 1282.400 MB/sec [ 0.434340] xor: using function: neon (1282.400 MB/sec) [ 0.434429] pinctrl core: initialized pinctrl subsystem [ 0.435275] NET: Registered protocol family 16 [ 0.437588] DMA: preallocated 2048 KiB pool for atomic coherent allocations [ 0.438792] cpuidle: using governor ladder [ 0.438918] cpuidle: using governor menu [ 0.439619] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.439623] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.624562] raid6: int32x1 gen() 189 MB/s [ 0.794585] raid6: int32x1 xor() 160 MB/s [ 0.964699] raid6: int32x2 gen() 255 MB/s [ 1.134879] raid6: int32x2 xor() 198 MB/s [ 1.304999] raid6: int32x4 gen() 258 MB/s [ 1.475036] raid6: int32x4 xor() 193 MB/s [ 1.645149] raid6: int32x8 gen() 247 MB/s [ 1.815145] raid6: int32x8 xor() 172 MB/s [ 1.985255] raid6: neonx1 gen() 494 MB/s [ 2.155299] raid6: neonx1 xor() 366 MB/s [ 2.325413] raid6: neonx2 gen() 663 MB/s [ 2.495416] raid6: neonx2 xor() 478 MB/s [ 2.665552] raid6: neonx4 gen() 796 MB/s [ 2.835623] raid6: neonx4 xor() 533 MB/s [ 3.005714] raid6: neonx8 gen() 703 MB/s [ 3.175760] raid6: neonx8 xor() 485 MB/s [ 3.175765] raid6: using algorithm neonx4 gen() 796 MB/s [ 3.175768] raid6: .... xor() 533 MB/s, rmw enabled [ 3.175771] raid6: using intx1 recovery algorithm [ 3.175984] reg-fixed-voltage usb0-vbus: could not find pctldev for node /soc/pinctrl@01f02c00/usb0_vbus_pin@0, deferring probe [ 3.177092] SCSI subsystem initialized [ 3.177252] libata version 3.00 loaded. [ 3.177484] usbcore: registered new interface driver usbfs [ 3.177538] usbcore: registered new interface driver hub [ 3.177614] usbcore: registered new device driver usb [ 3.177796] media: Linux media interface: v0.10 [ 3.177837] Linux video capture interface: v2.00 [ 3.177898] pps_core: LinuxPPS API ver. 1 registered [ 3.177902] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 3.177917] PTP clock support registered [ 3.178254] Advanced Linux Sound Architecture Driver Initialized. [ 3.179377] clocksource: Switched to clocksource arch_sys_counter [ 3.179523] VFS: Disk quotas dquot_6.6.0 [ 3.179578] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 3.180187] simple-framebuffer 7e000000.framebuffer: framebuffer at 0x7e000000, 0x3f4800 bytes, mapped to 0xf0a80000 [ 3.180196] simple-framebuffer 7e000000.framebuffer: format=x8r8g8b8, mode=1920x540x32, linelength=7680 [ 3.199053] Console: switching to colour frame buffer device 240x33 [ 3.217288] simple-framebuffer 7e000000.framebuffer: fb0: simplefb registered! [ 3.225112] NET: Registered protocol family 2 [ 3.225634] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 3.225720] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 3.225831] TCP: Hash tables configured (established 8192 bind 8192) [ 3.225919] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 3.225973] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 3.226178] NET: Registered protocol family 1 [ 3.226566] RPC: Registered named UNIX socket transport module. [ 3.226570] RPC: Registered udp transport module. [ 3.226573] RPC: Registered tcp transport module. [ 3.226576] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 3.226814] Trying to unpack rootfs image as initramfs... [ 3.520024] Freeing initrd memory: 5012K [ 3.521968] audit: initializing netlink subsys (disabled) [ 3.522100] audit: type=2000 audit(3.510:1): state=initialized audit_enabled=0 res=1 [ 3.522271] Initialise system trusted keyrings [ 3.522392] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 3.529716] zbud: loaded [ 3.532770] NFS: Registering the id_resolver key type [ 3.532797] Key type id_resolver registered [ 3.532800] Key type id_legacy registered [ 3.532811] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 3.532814] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 3.533811] JFS: nTxBlock = 7760, nTxLock = 62080 [ 3.542065] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 3.549335] Key type asymmetric registered [ 3.549443] bounce: pool size: 64 pages [ 3.549504] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 3.549633] io scheduler noop registered [ 3.549637] io scheduler deadline registered [ 3.550032] io scheduler cfq registered (default) [ 3.550037] io scheduler mq-deadline registered [ 3.554693] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver [ 3.556449] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver [ 3.608571] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 3.611159] console [ttyS0] disabled [ 3.631309] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 41, base_baud = 1500000) is a U6_16550A [ 3.631357] console [ttyS0] enabled [ 3.635226] brd: module loaded [ 3.641528] loop: module loaded [ 3.642817] libphy: Fixed MDIO Bus: probed [ 3.644268] usbcore: registered new interface driver catc [ 3.644313] usbcore: registered new interface driver kaweth [ 3.644317] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver [ 3.644360] usbcore: registered new interface driver pegasus [ 3.644414] usbcore: registered new interface driver rtl8150 [ 3.644476] usbcore: registered new interface driver r8152 [ 3.644519] usbcore: registered new interface driver lan78xx [ 3.644576] usbcore: registered new interface driver asix [ 3.644619] usbcore: registered new interface driver ax88179_178a [ 3.644661] usbcore: registered new interface driver cdc_ether [ 3.644703] usbcore: registered new interface driver cdc_eem [ 3.644752] usbcore: registered new interface driver dm9601 [ 3.644795] usbcore: registered new interface driver sr9700 [ 3.644853] usbcore: registered new interface driver CoreChips [ 3.644912] usbcore: registered new interface driver smsc75xx [ 3.644973] usbcore: registered new interface driver smsc95xx [ 3.645015] usbcore: registered new interface driver gl620a [ 3.645058] usbcore: registered new interface driver net1080 [ 3.645108] usbcore: registered new interface driver plusb [ 3.645152] usbcore: registered new interface driver rndis_host [ 3.645196] usbcore: registered new interface driver cdc_subset [ 3.645240] usbcore: registered new interface driver MOSCHIP usb-ethernet driver [ 3.645306] usbcore: registered new interface driver cdc_ncm [ 3.645351] usbcore: registered new interface driver huawei_cdc_ncm [ 3.645394] usbcore: registered new interface driver cdc_mbim [ 3.645403] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.645406] ehci-platform: EHCI generic platform driver [ 3.645555] ehci-platform 1c1a000.usb: EHCI Host Controller [ 3.645580] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1 [ 3.646196] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000 [ 3.669419] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00 [ 3.669690] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.669697] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.669702] usb usb1: Product: EHCI Host Controller [ 3.669708] usb usb1: Manufacturer: Linux 4.11.12-sun8i ehci_hcd [ 3.669713] usb usb1: SerialNumber: 1c1a000.usb [ 3.670252] hub 1-0:1.0: USB hub found [ 3.670294] hub 1-0:1.0: 1 port detected [ 3.670874] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 3.670892] ohci-platform: OHCI generic platform driver [ 3.671043] ohci-platform 1c1a400.usb: Generic Platform OHCI controller [ 3.671066] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2 [ 3.671199] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400 [ 3.743624] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001 [ 3.743631] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.743637] usb usb2: Product: Generic Platform OHCI controller [ 3.743642] usb usb2: Manufacturer: Linux 4.11.12-sun8i ohci_hcd [ 3.743647] usb usb2: SerialNumber: 1c1a400.usb [ 3.744117] hub 2-0:1.0: USB hub found [ 3.744153] hub 2-0:1.0: 1 port detected [ 3.744742] usbcore: registered new interface driver cdc_wdm [ 3.744826] usbcore: registered new interface driver usb-storage [ 3.745508] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0 [ 3.745514] sun6i-rtc 1f00000.rtc: RTC enabled [ 3.745561] i2c /dev entries driver [ 3.748895] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 3.750063] sunxi-mmc 1c0f000.mmc: Got CD GPIO [ 3.809405] sunxi-mmc 1c0f000.mmc: base:0xf13d2000 irq:25 [ 3.810305] ledtrig-cpu: registered to indicate activity on CPUs [ 3.810378] hidraw: raw HID events driver (C) Jiri Kosina [ 3.810534] usbcore: registered new interface driver usbhid [ 3.810537] usbhid: USB HID core driver [ 3.810989] Initializing XFRM netlink socket [ 3.811680] NET: Registered protocol family 10 [ 3.828718] Segment Routing with IPv6 [ 3.828797] NET: Registered protocol family 17 [ 3.828828] NET: Registered protocol family 15 [ 3.828876] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 3.828917] 8021q: 802.1Q VLAN Support v1.8 [ 3.828954] Key type dns_resolver registered [ 3.829318] Registering SWP/SWPB emulation handler [ 3.829956] registered taskstats version 1 [ 3.829960] Loading compiled-in X.509 certificates [ 3.830032] zswap: loaded using pool lzo/zbud [ 3.831494] Btrfs loaded, crc32c=crc32c-generic [ 3.839011] Key type encrypted registered [ 3.844868] ehci-platform 1c1b000.usb: EHCI Host Controller [ 3.844900] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3 [ 3.845118] ehci-platform 1c1b000.usb: irq 29, io mem 0x01c1b000 [ 3.856568] mmc0: host does not support reading read-only switch, assuming write-enable [ 3.858479] mmc0: new high speed SDHC card at address 59b4 [ 3.859081] mmcblk0: mmc0:59b4 00000 7.48 GiB [ 3.860321] mmcblk0: p1 [ 3.869434] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00 [ 3.869617] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.869624] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.869629] usb usb3: Product: EHCI Host Controller [ 3.869635] usb usb3: Manufacturer: Linux 4.11.12-sun8i ehci_hcd [ 3.869640] usb usb3: SerialNumber: 1c1b000.usb [ 3.870151] hub 3-0:1.0: USB hub found [ 3.870186] hub 3-0:1.0: 1 port detected [ 3.870791] ehci-platform 1c1c000.usb: EHCI Host Controller [ 3.870822] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4 [ 3.871037] ehci-platform 1c1c000.usb: irq 31, io mem 0x01c1c000 [ 3.899393] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00 [ 3.899569] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.899576] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.899581] usb usb4: Product: EHCI Host Controller [ 3.899586] usb usb4: Manufacturer: Linux 4.11.12-sun8i ehci_hcd [ 3.899591] usb usb4: SerialNumber: 1c1c000.usb [ 3.900093] hub 4-0:1.0: USB hub found [ 3.900126] hub 4-0:1.0: 1 port detected [ 3.900671] ehci-platform 1c1d000.usb: EHCI Host Controller [ 3.900694] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5 [ 3.900862] ehci-platform 1c1d000.usb: irq 33, io mem 0x01c1d000 [ 3.929388] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00 [ 3.929562] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002 [ 3.929568] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.929573] usb usb5: Product: EHCI Host Controller [ 3.929579] usb usb5: Manufacturer: Linux 4.11.12-sun8i ehci_hcd [ 3.929583] usb usb5: SerialNumber: 1c1d000.usb [ 3.930074] hub 5-0:1.0: USB hub found [ 3.930104] hub 5-0:1.0: 1 port detected [ 3.930628] ohci-platform 1c1b400.usb: Generic Platform OHCI controller [ 3.930649] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6 [ 3.930769] ohci-platform 1c1b400.usb: irq 30, io mem 0x01c1b400 [ 4.003536] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001 [ 4.003543] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.003548] usb usb6: Product: Generic Platform OHCI controller [ 4.003554] usb usb6: Manufacturer: Linux 4.11.12-sun8i ohci_hcd [ 4.003558] usb usb6: SerialNumber: 1c1b400.usb [ 4.004062] hub 6-0:1.0: USB hub found [ 4.004097] hub 6-0:1.0: 1 port detected [ 4.004640] ohci-platform 1c1c400.usb: Generic Platform OHCI controller [ 4.004661] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7 [ 4.004793] ohci-platform 1c1c400.usb: irq 32, io mem 0x01c1c400 [ 4.073536] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001 [ 4.073543] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.073548] usb usb7: Product: Generic Platform OHCI controller [ 4.073554] usb usb7: Manufacturer: Linux 4.11.12-sun8i ohci_hcd [ 4.073559] usb usb7: SerialNumber: 1c1c400.usb [ 4.074123] hub 7-0:1.0: USB hub found [ 4.074154] hub 7-0:1.0: 1 port detected [ 4.074704] ohci-platform 1c1d400.usb: Generic Platform OHCI controller [ 4.074727] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8 [ 4.074862] ohci-platform 1c1d400.usb: irq 34, io mem 0x01c1d400 [ 4.143539] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001 [ 4.143546] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.143551] usb usb8: Product: Generic Platform OHCI controller [ 4.143556] usb usb8: Manufacturer: Linux 4.11.12-sun8i ohci_hcd [ 4.143561] usb usb8: SerialNumber: 1c1d400.usb [ 4.144096] hub 8-0:1.0: USB hub found [ 4.144128] hub 8-0:1.0: 1 port detected [ 4.144752] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator [ 4.145084] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver [ 4.145093] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 9 [ 4.145291] usb usb9: New USB device found, idVendor=1d6b, idProduct=0002 [ 4.145298] usb usb9: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.145303] usb usb9: Product: MUSB HDRC host driver [ 4.145308] usb usb9: Manufacturer: Linux 4.11.12-sun8i musb-hcd [ 4.145313] usb usb9: SerialNumber: musb-hdrc.1.auto [ 4.145925] hub 9-0:1.0: USB hub found [ 4.145960] hub 9-0:1.0: 1 port detected [ 4.146729] of_cfs_init [ 4.146811] of_cfs_init: OK [ 4.146918] vcc3v0: disabling [ 4.146924] vcc5v0: disabling [ 4.146929] usb0-vbus: disabling [ 4.146932] ALSA device list: [ 4.146934] No soundcards found. [ 4.148452] Freeing unused kernel memory: 1024K [ 4.210247] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 4.210737] random: systemd-udevd: uninitialized urandom read (16 bytes read) [ 4.215005] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.259512] usb 4-1: new high-speed USB device number 2 using ehci-platform [ 4.275069] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.276706] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.277113] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.277527] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.277935] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.278380] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.278752] random: udevadm: uninitialized urandom read (16 bytes read) [ 4.477828] usb 4-1: New USB device found, idVendor=1737, idProduct=0078 [ 4.477838] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.477844] usb 4-1: Product: Linksys RangePlus Wireless Network USB Adapter [ 4.477849] usb 4-1: Manufacturer: Cisco-Linksys LLC [ 4.559432] usb 8-1: new low-speed USB device number 2 using ohci-platform [ 4.823449] usb 8-1: New USB device found, idVendor=045e, idProduct=00f9 [ 4.823460] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4.823466] usb 8-1: Product: Microsoft Wireless Desktop Receiver 3.1 [ 4.823471] usb 8-1: Manufacturer: Microsft [ 4.941559] input: Microsft Microsoft Wireless Desktop Receiver 3.1 as /devices/platform/soc/1c1d400.usb/usb8/8-1/8-1:1.0/0003:045E:00F9.0001/input/input0 [ 5.009720] microsoft 0003:045E:00F9.0001: input,hidraw0: USB HID v1.11 Keyboard [Microsft Microsoft Wireless Desktop Receiver 3.1] on usb-1c1d400.usb-1/input0 [ 5.009795] microsoft 0003:045E:00F9.0002: fixing up Microsoft Wireless Receiver Model 1028 report descriptor [ 5.025226] input: Microsft Microsoft Wireless Desktop Receiver 3.1 as /devices/platform/soc/1c1d400.usb/usb8/8-1/8-1:1.1/0003:045E:00F9.0002/input/input1 [ 5.089594] microsoft 0003:045E:00F9.0002: input,hidraw1: USB HID v1.11 Mouse [Microsft Microsoft Wireless Desktop Receiver 3.1] on usb-1c1d400.usb-1/input1 [ 5.517909] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DTO !! [ 5.517949] sunxi-mmc 1c0f000.mmc: data error, sending stop command [ 5.518010] mmcblk0: timed out sending r/w cmd command, card status 0x900 [ 5.838687] random: fast init done [ 6.008398] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null) [ 6.510902] systemd[1]: System time before build time, advancing clock. [ 6.541371] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) [ 6.541865] systemd[1]: Detected architecture arm. [ 6.610269] systemd[1]: Set hostname to <orangepipc>. [ 7.023974] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DTO !! [ 7.024020] sunxi-mmc 1c0f000.mmc: data error, sending stop command [ 7.024075] mmcblk0: timed out sending r/w cmd command, card status 0x900 [ 7.424401] systemd[1]: Listening on fsck to fsckd communication Socket. [ 7.449732] systemd[1]: Listening on Syslog Socket. [ 7.479508] systemd[1]: Reached target Remote File Systems (Pre). [ 7.509767] systemd[1]: Listening on Journal Audit Socket. [ 7.539933] systemd[1]: Created slice User and Session Slice. [ 7.569634] systemd[1]: Listening on udev Control Socket. [ 7.600216] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 8.285193] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro [ 9.469037] input: r_gpio_keys as /devices/platform/r_gpio_keys/input/input2 [ 9.533300] thermal thermal_zone0: failed to read out thermal zone (-16) [ 9.724525] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok [ 9.832307] rc rc0: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0 [ 9.837662] Registered IR keymap rc-empty [ 9.837989] input: sunxi-ir as /devices/platform/soc/1f02000.ir/rc/rc0/input3 [ 9.838129] sunxi-ir 1f02000.ir: initialized sunXi IR driver [ 9.880263] lirc_dev: IR Remote Control driver registered, major 244 [ 9.896406] mousedev: PS/2 mouse device common for all mice [ 9.911563] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0 [ 9.911576] IR LIRC bridge handler initialized [ 10.099477] usb 4-1: reset high-speed USB device number 2 using ehci-platform [ 10.299509] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3070, rev 0201 detected [ 10.354168] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected [ 10.355002] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' [ 10.356291] usbcore: registered new interface driver rt2800usb [ 10.369922] rt2800usb 4-1:1.0 wlx98fc11ca00b2: renamed from wlan0 [ 10.910102] systemd-journald[328]: Received request to flush runtime journal from PID 1 [ 10.960265] libphy: 1c30000.ethernet: probed [ 10.964606] Generic PHY 1c30000.ethernet-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1c30000.ethernet-0:01, irq=-1) [ 10.964618] sun8i-emac 1c30000.ethernet: device MAC address slot 0 02:81:31:1b:c3:da [ 10.965884] sun8i-emac 1c30000.ethernet: device MAC address slot 1 33:33:00:00:00:01 [ 10.965957] sun8i-emac 1c30000.ethernet: device MAC address slot 1 33:33:00:00:00:01 [ 10.965962] sun8i-emac 1c30000.ethernet: device MAC address slot 2 01:00:5e:00:00:01 [ 10.965975] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 11.131715] random: crng init done [ 12.673680] IPv6: ADDRCONF(NETDEV_UP): wlx98fc11ca00b2: link is not ready [ 12.673859] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin' [ 12.676617] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36 [ 13.039959] sun8i-emac 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off [ 13.194067] IPv6: ADDRCONF(NETDEV_UP): wlx98fc11ca00b2: link is not ready [ 13.194114] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 13.194260] sun8i-emac 1c30000.ethernet: device MAC address slot 1 33:33:00:00:00:01 [ 13.194266] sun8i-emac 1c30000.ethernet: device MAC address slot 2 01:00:5e:00:00:01 [ 13.194271] sun8i-emac 1c30000.ethernet: device MAC address slot 3 33:33:ff:1b:c3:da [ 13.529563] IPv6: ADDRCONF(NETDEV_UP): wlx98fc11ca00b2: link is not ready [ 16.368152] wlx98fc11ca00b2: authenticate with 08:bd:43:a5:ae:54 [ 16.407902] wlx98fc11ca00b2: send auth to 08:bd:43:a5:ae:54 (try 1/3) [ 16.410065] wlx98fc11ca00b2: authenticated [ 16.419501] wlx98fc11ca00b2: associate with 08:bd:43:a5:ae:54 (try 1/3) [ 16.422956] wlx98fc11ca00b2: RX AssocResp from 08:bd:43:a5:ae:54 (capab=0x411 status=0 aid=10) [ 16.431758] wlx98fc11ca00b2: associated [ 16.432149] IPv6: ADDRCONF(NETDEV_CHANGE): wlx98fc11ca00b2: link becomes ready [ 283.748868] sun8i-emac 1c30000.ethernet: device MAC address slot 1 33:33:00:00:00:01 [ 283.748911] sun8i-emac 1c30000.ethernet: device MAC address slot 2 01:00:5e:00:00:01 [ 283.748936] sun8i-emac 1c30000.ethernet: device MAC address slot 3 33:33:ff:1b:c3:da
  9. Hi, OPiPC with latest mainline (ARMBIAN 5.34 user-built Ubuntu 16.04.3 LTS 4.13.12-sunxi). Need to test the I2S0. From what I see in patches, the I2S driver code is already there so I just need an overlay to use it. Is there any DT overlay for using the H3 I2S0 with any codec ? Even as a generic simple-audio-codec ? Christos
  10. Hello, I have installed ARMBIAN 5.60 stable Debian GNU/Linux 9 (stretch) 4.14.70-sunxi on a Banana Pi M2+ and I need to read and write to the GPIO pins from a bash script, does anyone have a workable solution? I tried with an Orange Pi in the past and I compiled a binary to access the gpio values but it did not work and I cannot find that source any more. Thanks in advance.
  11. I have Orange PI PC Plus with GC2035 camera module. Upgraded to 4.13.6 sunxi-next mainline kernel and noticed that GC2035 camera driver is gone! Why is it so? Maybe someone forgot to include this driver to the kernel? People are still using these cameras and need them! If it was a conscious decision to remove the GC2035 camera from the sunxi-next tree - then, well, it was a horrible decision that should be reversed. Please return this driver. https://github.com/avafinger/gc2035 Earlier it was at ./drivers/media/video/sunxi-vfe/device/gc2035.c location, but now the directory structure could be very different...
  12. Trival endevour, though fun and easy to do. Text and diagram taken from zip file attached. Orange Pi Zero fan self adapting to temperature, inside Shenzhen Xunlong Software CO.,Limited manufacturered low profile (non-expansion board version) case. Probably can be used with other SBC's. FanDaemon source provided. Comes with no warranty of any sort. Use at your own risk. The software included works with Mainline Kernel 4.13 Armbian image. Run armbian-config - system - hardware, use arrow keys to highlight "pwm" and press spacebar to [*] enable it. Select save and reboot. Install the fan how you wish. I used a 5volt 3cm wide (bigger will not fit), 1cm thick blower fan from ebay (sucks air in from below, blows from side) glued to the ceiling of the case against the top vents. Could also cut holes into the roof and mount a regular fan to blow air out the top, or on top of the sbc and leave vents unaltered. Use sticky tape to cover the extra vent slits and round the blower fan if there is a gap, to stop leakage. I filed the power cable hole in the case wider, to allow more air flow. Mosfet I used was "FQP30N06L/FQP30N06" very common and cheap if you can wait several weeks for shipping from ebay. 10kohm resistor between outer pins using wires with 2.54 header plugs. Tight fit but doable. You can use either the +3.3v power rails (pin 1 or 9 on 26 pin header) or +5v for faster fan speed, or for fans that do not handle the lower voltage. For some reason when using +5v, I only got a very narrow range of operation or 2 effective speeds whereas with 3.3v, duty cycles 20% to 100% worked. For +5v, pin 1 on the 13 pin header can be used, however the wire tends to hand right on top of fan and risks it being sucked into the blades. Put the fand executable where ever you want and do... chown root fand chmod u+x fand (I used midnight commander and used in its File menu, set owner can execute and chown adding file to root user and root group) fand software needs root priviledges for manipulating the pwm interface in /sys folder. Maybe another user in wheel group would do? run sudo crontab -e and below "# m h dom mon dow command" add (#how to customise below) @reboot sleep 10 && nohup /root/fand/./fand 48000 5 1 65 10 100 & Remember to press enter after "&" as the crontab requires a new empty line after declaring the last cronjob. Sleep is added as I found if the daemon was started too early, there was a chance the fand would fail to start for whatever reason. * e.g. above for FanD executable located in /root/fand/ sets Duty Cycle freqency to 48000Hz (or something or rather), temperature check at 5 second intervals temperature/DT% 1c(10%DT) to 65c(100%DT) #fand command line is as below /(path to execultable)/./fand duty cycle (Duty Cycle (DT) frequency) (polling interval in seconds) (min temperature, lowest DT% => 1) (temp for max DT%) (& to fork into background) FanD shows Duty Cycle % in its process name when using the "top" command, scroll down using down arrow if you cannot see it at first. To compile included fand.c source, if you edit it or do not trust the included binary. gcc -std=gnu99 fand.c -o fand Daemon has negligible memory and cpu usage. You can also set a fixed speed with console commands in a script as root. You may need to experiment with values. echo 0 > /sys/class/pwm/pwmchip0/unexport echo 0 > /sys/class/pwm/pwmchip0/export echo normal > /sys/class/pwm/pwmchip0/pwm0/polarity # set the DT period to 30000 ns echo 30000 > /sys/class/pwm/pwmchip0/pwm0/period # e.g. set the duty cycle to 15000 ns (50%DT?) echo 15000 > /sys/class/pwm/pwmchip0/pwm0/duty_cycle echo 1 > /sys/class/pwm/pwmchip0/pwm0/enable to disable pwm (and the fan), as root enter... echo 0 > /sys/class/pwm/pwmchip0/pwm0/enable Longer DT periods/lower DT frequency, if used, produces a humming sound from the motor. Credits to FanD software to Andrea Cioni. Forked by me from github version for better compatibility with Orange Pi Zero. Did not comment changes I made, on account of being too lazy. DT polarity corrected and device in unready state (preventing daemon start) bug improved. I have ceramic heatsinks on both the ram and soc chip bonded using Artic Silver. Dries and cements the heatsinks to surface rather well. With cpu governor set to performance (constant 1200mhz), ambient air about 22celcius at idle the cpu temperature is 40-45celcius using the cronjob given above. OrangePiZero-FanDaemon-and-wiringdiagram-src&binary.zip
  13. Hello, I am trying to communicate with a mcp2515 breakout (8Mhz oscillator) on an Orange Pi Pc+ I have modified the breakout following info on Raspberry Pi: HowTo/Quickstart MCP2515 to keep logic level @3v I have two other nodes composed by two Arduinos, with same (not modified) breakout, one that transmits the other receives. I have successfully tested the first breakout (used on OPi) with an Arduino (powered by 3.3v and 5v on TJA1050). It lets me think that hardware is OK. Below photos of wiring (nb: orange wire becomes red, is wired near TJA1050 = 5v): It seems I have the same results with (edited) user_overlay and the compiled one provided in zador.blood.stained's post dmesg| grep 'can\|mcp\|spi' [ 6.701431] mcp251x spi0.0 can0: MCP2515 successfully initialized. [ 28.455699] can: controller area network core (rev 20170425 abi 9) [ 28.471752] can: raw protocol (rev 20170425) The controller seems well seen, I can bring up the can0 interface: sudo ip link set can0 type can bitrate 125000 triple-sampling on sudo ifconfig can0 up ifconfig can0 can0: flags=193<UP,RUNNING,NOARP> mtu 16 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 but candump is mute although the Arduino receiver displays messages from Arduino transmitter. And cansend do not give error but I could not see this messages on Arduino receiver. Does someone would have an idea of what I am missing ?
  14. i just upgrade from jessie to armbian stretch (5.65) i check aplay -l, why only shows audio codec? anybody help? root@bananapim2plus:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0
  15. Hi, I want to use g_ether on NanoPi Neo Plus2. For Neo Air, I have already figured out how to do this and I can see usb0 in config. But with armbian 5.85 (4.19.38-sunxi64), the same instructions fail at sudo ifconfig usb0 up with the message "usb0: ERROR while getting interface flags: No such device". Could somebody tell me how to activate USB OTG on NanoPi Neo Plus2 and then use g_ether. I think the same holds true for g_serial. This could be an alternative, but I would prever ethernet connection. My target: Connect NanoPi Neo Plus2 with NanoPi Neo Air via Ethernet Thank you for your help! Steps I followed for g_ether:
  16. Using Armbian_20.02.1 with 5.4 kernel on NEO2 board, I'm running into an issue trying to get the USB OTG working with the g_ether module. When I run modprobe g_ether I see the following in dmesg: [ 490.490582] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers I've also tried compiling my own img using the Armbian builder but it looks like all the correct OTG options are already selected by default. Any ideas what I'm doing wrong?
  17. Just wanted to note this - target NanoPi NEO2 - task at hand is Byte-UnixBench.... https://github.com/sfx2000/byte-unixbench more to follow...
  18. Enable in armbian-config USB and this no detect USB OTG and additional USB host on the board no working any usb device (microphone, usb storage, keyboard, etc.) that connects detects it Any help you can give me
  19. Device: Orange Pi +2e. Environment one 16GB SD Card and 16GB eMMC onboard. Output from Armbianmonitor attached. The eMMC device onboard is always detected as mmcblk2. Irrespective of whether SD Card is present or not or if you boot from SD Card or eMMC. This is observed only on 20.05 and 20.08 builds. It does not happen on 20.02 build. [ 3.769548] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator [ 3.781702] mmc0: host does not support reading read-only switch, assuming write-enable [ 3.784384] mmc0: new high speed SDHC card at address aaaa [ 3.785778] mmcblk0: mmc0:aaaa JULIE 14.8 GiB [ 3.790317] mmcblk0: p1 [ 3.790822] mmc1: new high speed SDIO card at address 0001 [ 3.795670] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB [ 3.915829] mmc2: new DDR MMC card at address 0001 [ 3.917341] mmcblk2: mmc2:0001 AJTD4R 14.6 GiB [ 3.918284] mmcblk2boot0: mmc2:0001 AJTD4R partition 1 4.00 MiB [ 3.919325] mmcblk2boot1: mmc2:0001 AJTD4R partition 2 4.00 MiB [ 3.922791] mmcblk2: p1 [ 4.143718] usb 6-1: new full-speed USB device number 2 using ohci-platform --Rajesh
  20. I've tried to compile libgpiod (my assumption is this is a user space lib) and it depends on gpio.h which is used by the kernel. According to https://github.com/brgl/libgpiod/issues/22 gpio.h should be installed with linux-libc-dev which is already installed and gpio.h is missing. I installed the kernel headers and tried (it ends up with typedef conflicts): ./autogen.sh --enable-tools=yes --prefix=/usr/local CFLAGS="-I/usr/src/linux-headers-4.14.14-sunxi/arch/arm/include -I/usr/src/linux-headers-4.14.14-sunxi/include" configure: error: linux/gpio.h header not found (needed to build the library) I've attached the config.log. Maybe I'm totally missing the boat, but there's not a lot of info out there build this for ARM and there are no deb packages for ARM I can find. config.log
  21. This topic has been discussed earlier but there is not concrete mechanism explained to achieve this. Ideally I would like to display a boot logo or boot splash during startup. The device is Orange Pi Plus 2e. As per experience and as mentioned on this forum earlier plymouth was not useful in this case. I tried to set logo="enabled" in /boot/armbianEnv.txt but this doesn't help. When Armbian loads for first time on the device from the image downloaded from this site, it displays 'Initializing Boot Loader' logo image. Pretty cool!!! Can we have something like this for a custom image displayed each time on reboot. I understand that this will be displayed only till kernel loads, but that is good enough of me. I can settle with this limited functionality, but am lost on how to do this. Any pointers or suggestion will be highly appreciated. Stay safe! Regards -R
  22. Hi, I'm here again, the quarantine is almost over (sadly 'cause here in italy we are a bunch of a****le) and I finally get rid of my kodi 17 on retrorangepi 4.2 (old) that give me a lot of problems (with wifi connection lost, scraper that didn't update, and freeze, not for sure a problem with retrorangepi itself). so... I have something in my mind now that I'm back to home with my new FTTH internet connection. I want to setup an armbian image with or withot desktop for octoprint Armbian with 5.4 kernel (xfce debian) is really slow and temperature (with heatsink) don't go under 60°C on idle, with retrorangepi based on Debian Jessie, temps go from 45°C to 50°C on idle. So maybe - MAYBE - the problem could be the kernel? If so, because I don't care about security in this particular case (I need OPI just to execute octoprint on local), Could downgrade kernel (by using a legacy version) bring to an improvement on performance/temp? and give me the possibility to install package like octoprint or deluge? or some dependancy are linked to the kernel version? I know that maybe it will be a stupid question, but I'm wasting a lot of time with this board, because I'm so stubborn (and broke). thank you
  23. Hello, Wish a good health everyone nowadays! I'm using Orange Pi PC Plus with small aluminium heatsink running Armbian Buster (mainline kernel 5.4.y). SD Card is Samsung EVO Plus 32gb. The CPU governor was set to 480 to 1200, conservative. The system are fresh, just after install. After ~5 minutes of idle uptime temperature comes to 85 and up. Is that heatsink are not good enough? And the second issue I've faced - too quiet sound output from AV-out. The most quiet is Chromium, it is nasty quiet. Sound from local video files in mpv player are bit(2 times) louder both from mp4 and webm, also mp3. Have not tested HDMI(because my display have only DVI). And when I tested it again before posting, Bluetooth A2DP audio stopped working with my phone. The sound from phone over BT was bit louder, than from Chromium, same as in mpv player. Thanks, Paul
  24. I am trying to get a DS18B20 working on an OrangePi zero running Armbian. The DS18B20 has a pull-up resistor and works on a Raspberry Pi, and is connected to PA10, +5V and Gnd. I have modified /etc/modules-load.d/modules.conf thus: g_serial w1-sunxi w1-gpio w1-therm I have modified /etc/default/cpufrequtils thus: ENABLE=true MIN_SPEED=480000 MAX_SPEED=1200000 GOVERNOR=interactive After a reboot, dmesg looks like this: [ 8.970765] g_serial gadget: Gadget Serial v2.4 [ 8.970777] g_serial gadget: g_serial ready [ 8.995601] Driver for 1-wire Dallas network protocol. [ 9.083869] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro Note the absence of anything like "[8.xxxxx] W1_SUNXI: Added w1-gpio on GPIO-10", and when I look in /sys/bus/w1/devices, there is nothing there. I ran armbianmonitor -u, and the output is at http://ix.io/1lNv. lsmod shows me this: w1_therm 16384 0 w1_gpio 16384 0 wire 20480 2 w1_gpio,w1_therm
  25. I recently purchased a number of Orange Pi and Nano Pi boards, and discovered the awesome work of the Armbian team :-) The Orange Pi Plus2 H5 is a rather nice board - built in eMMC, H5, etc. (I wish it had 1GB of RAM but that's a different subject.) I'd love to use these boards for a number of projects. As a test, I modified the DTS for the board (mainline kernel) to enable support for the 1.1v/1.3v switch for VDD-CPUX using the SY8113B on the board. I also enabled the allowed clock changes to 1.2GHz for cpufreq. All of this worked great, but the board was very unstable at anything over 1GHz, which seemed strange, given that the CPU voltage should be switching to 1.3v. I found that when measuring the voltage of the "1V2C" testpoint on the board that VDD-CPUX was always at 1.1v - it never switched to 1.3v. I did some further examination of the board, and I was surprised to find that the "Q5" BSN20 MOSFET was not populated on the board! I checked all of the other passives and they are present - it is like Xunlong simply decided not to stuff this part when they built the board. So, as a test, I desoldered this part from my Orange Pi Zero rev 1.4 board and soldered it in the missing "Q5" spot on my Orange Pi Zero Plus2 board. And now it works great! VDD-CPUX properly switches between 1.1v/1.3v (measured at the "1V2C" TP), and I can clock the board to 1.296GHz without any problems. Would anyone have an idea why Xunlong doesn't solder this part on the board by default? They include all the other parts in this part of the power circuit, just not this MOSFET. I was going to buy a few more of these boards, and I'd like to be able to clock them up. Perhaps I should just order a set of these BSN20 MOSFETs and solder them on myself when I receive the boards...? Or perhaps I should just forget Xunlong/Orange Pi and use Nano Pis? My Nano Pi Neo Plus2 has been working perfectly since I powered it up (I enabled clocking to 1.296GHz by default as well in the DTS). By the way, I did some extensive tests and it looks like with both of these boards DVFS and thermal throttling works fine - the clock throttles back properly at the different temperature thresholds. Thank you!