Jump to content

Search the Community

Showing results for tags 'cubieboard2'.

  • 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)
    • News
    • Khadas VIM4
    • Radxa Zero 2
    • Odroid M1
    • NanoPi R5S
  • Maintained Hardware
    • Board does not start
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families
  • Unmaintained (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. Hi all, i am trying to enable UART4 on my Cubieboard2 via /boot/armbianEnv.txt: overlay_prefix=sun7i-a20 overlays=i2c1 uart4 param_uart4_pins=a but if it seems that my uart4 is not working. If i look at dmesg | grep tty there is no ttyS4-device - only ttyS0: [ 0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1 [ 0.000860] console [tty1] enabled [ 1.542600] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 47, base_baud = 1500000) is a U6_16550A am i doing something wrong or did i forget something? Thanks for your help! Michael
  2. I'am using Cubieboard2. Todays morning i've got mistery "rcu: INFO: rcu_sched detected stalls on CPUs/tasks" with a complete failure of the entire network subsystem. How it was: Jul 13 09:12:36 hassio kernel: rcu: INFO: rcu_sched detected stalls on CPUs/tasks: Jul 13 09:12:37 hassio kernel: rcu: 1-...0: (21 ticks this GP) idle=a56/1/0x40000000 softirq=4946049/4946050 fqs=2286 Jul 13 09:12:37 hassio kernel: (detected by 0, t=5252 jiffies, g=11125849, q=117) Jul 13 09:12:37 hassio kernel: Sending NMI from CPU 0 to CPUs 1: Jul 13 09:13:13 hassio systemd[1]: systemd-udevd.service: Watchdog timeout (limit 3min)! Jul 13 09:13:13 hassio systemd[1]: systemd-udevd.service: Killing process 308 (systemd-udevd) with signal SIGABRT. Jul 13 09:13:39 hassio kernel: rcu: INFO: rcu_sched detected stalls on CPUs/tasks: Jul 13 09:13:39 hassio kernel: rcu: 1-...0: (21 ticks this GP) idle=a56/1/0x40000000 softirq=4946049/4946050 fqs=8014 Jul 13 09:13:39 hassio kernel: (detected by 0, t=21007 jiffies, g=11125849, q=2391) Jul 13 09:13:40 hassio kernel: Sending NMI from CPU 0 to CPUs 1: Jul 13 09:13:40 hassio kernel: rcu: INFO: rcu_sched detected expedited stalls on CPUs/tasks: { 1-... } 6684 jiffies s: 13809 root: 0x2/. Jul 13 09:13:40 hassio kernel: rcu: blocking rcu_node structures: Jul 13 09:13:40 hassio kernel: Task dump for CPU 1: Jul 13 09:13:40 hassio kernel: kworker/1:0 R running task 0 25335 2 0x00000002 Jul 13 09:13:40 hassio kernel: Workqueue: events dbs_work_handler Jul 13 09:13:40 hassio kernel: [<c086fd9f>] (__schedule) from [<00000008>] (0x8) Jul 13 09:14:43 hassio kernel: rcu: INFO: rcu_sched detected stalls on CPUs/tasks: Jul 13 09:14:43 hassio kernel: rcu: 1-...0: (21 ticks this GP) idle=a56/1/0x40000000 softirq=4946049/4946050 fqs=13734 Jul 13 09:14:43 hassio kernel: (detected by 0, t=36762 jiffies, g=11125849, q=5496) Jul 13 09:14:43 hassio kernel: Sending NMI from CPU 0 to CPUs 1: Jul 13 09:14:42 hassio systemd[1]: snapd.service: Watchdog timeout (limit 5min)! Jul 13 09:14:42 hassio systemd[1]: snapd.service: Killing process 637 (snapd) with signal SIGABRT. Jul 13 09:14:43 hassio systemd[1]: systemd-udevd.service: State 'stop-watchdog' timed out. Terminating. ... Jul 13 09:15:47 hassio kernel: [<c086fd9f>] (__schedule) from [<00000008>] (0x8) Jul 13 09:15:48 hassio udevd[189]: worker [1659] /devices/virtual/block/loop1 is taking a long time Jul 13 09:15:48 hassio udevd[493]: worker [567] /devices/virtual/block/loop1 is taking a long time Jul 13 09:15:49 hassio udevd[182]: worker [31741] /devices/virtual/block/loop1 is taking a long time Jul 13 09:16:06 hassio kernel: ------------[ cut here ]------------ Jul 13 09:16:06 hassio kernel: WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:448 dev_watchdog+0x213/0x214 Jul 13 09:16:06 hassio kernel: NETDEV WATCHDOG: eth0 (sun7i-dwmac): transmit queue 0 timed out Jul 13 09:16:06 hassio kernel: Modules linked in: tcp_diag inet_diag xt_nat xt_tcpudp veth xt_conntrack nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter br_netfilter bridge stp llc aufs xt_MASQUERADE iptable_nat > Jul 13 09:16:06 hassio kernel: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G C 5.4.45-sunxi #20.05.4 Jul 13 09:16:06 hassio kernel: Hardware name: Allwinner sun7i (A20) Family Jul 13 09:16:06 hassio kernel: [<c010dc49>] (unwind_backtrace) from [<c010a245>] (show_stack+0x11/0x14) Jul 13 09:16:06 hassio kernel: [<c010a245>] (show_stack) from [<c085f97b>] (dump_stack+0x6f/0x7c) Jul 13 09:16:06 hassio kernel: [<c085f97b>] (dump_stack) from [<c011e3cb>] (__warn+0xb7/0xb8) Jul 13 09:16:06 hassio kernel: [<c011e3cb>] (__warn) from [<c011e65b>] (warn_slowpath_fmt+0x53/0x5c) Jul 13 09:16:06 hassio kernel: [<c011e65b>] (warn_slowpath_fmt) from [<c076eae3>] (dev_watchdog+0x213/0x214) Jul 13 09:16:06 hassio kernel: [<c076eae3>] (dev_watchdog) from [<c017299b>] (call_timer_fn+0x27/0x128) Jul 13 09:16:06 hassio kernel: [<c017299b>] (call_timer_fn) from [<c01733e5>] (run_timer_softirq+0x3f5/0x414) Jul 13 09:16:06 hassio kernel: [<c01733e5>] (run_timer_softirq) from [<c01022f7>] (__do_softirq+0xdf/0x288) Jul 13 09:16:06 hassio kernel: [<c01022f7>] (__do_softirq) from [<c0122f4b>] (irq_exit+0x7b/0x90) Jul 13 09:16:06 hassio kernel: [<c0122f4b>] (irq_exit) from [<c0161523>] (__handle_domain_irq+0x47/0x84) Jul 13 09:16:06 hassio kernel: [<c0161523>] (__handle_domain_irq) from [<c0517211>] (gic_handle_irq+0x39/0x6c) Jul 13 09:16:06 hassio kernel: [<c0517211>] (gic_handle_irq) from [<c0101ae5>] (__irq_svc+0x65/0x94) Jul 13 09:16:06 hassio kernel: Exception stack(0xc0e01f30 to 0xc0e01f78) Jul 13 09:16:06 hassio kernel: 1f20: 00000000 129145fc ef691034 c01164c1 Jul 13 09:16:06 hassio kernel: 1f40: ffffe000 c0e04fa4 c0e04fec 00000001 00000000 c0db99f0 c0ec4b25 00000000 Jul 13 09:16:06 hassio kernel: 1f60: c0f0cf98 c0e01f80 c0107c6f c0107c70 40000033 ffffffff Jul 13 09:16:06 hassio kernel: [<c0101ae5>] (__irq_svc) from [<c0107c70>] (arch_cpu_idle+0x28/0x2c) Jul 13 09:16:06 hassio kernel: [<c0107c70>] (arch_cpu_idle) from [<c014126b>] (do_idle+0x143/0x1b0) Jul 13 09:16:06 hassio kernel: [<c014126b>] (do_idle) from [<c01414b9>] (cpu_startup_entry+0x19/0x20) Jul 13 09:16:06 hassio kernel: [<c01414b9>] (cpu_startup_entry) from [<c0d00c81>] (start_kernel+0x3eb/0x3f8) Jul 13 09:16:06 hassio kernel: ---[ end trace 4f6c33f5bb7f39ba ]--- Jul 13 09:16:06 hassio kernel: sun7i-dwmac 1c50000.ethernet eth0: Reset adapter. Jul 13 09:16:13 hassio systemd[1]: systemd-udevd.service: State 'stop-sigterm' timed out. Killing. Jul 13 09:16:13 hassio systemd[1]: systemd-udevd.service: Killing process 308 (systemd-udevd) with signal SIGKILL. Jul 13 09:16:14 hassio systemd[1]: snapd.service: start operation timed out. Terminating. I've read https://www.kernel.org/doc/Documentation/RCU/stallwarn.txt and many similar posts on this forum. I will try to cut cpu frequency with cpufreq-set . My question is: How to detect magic string "rcu: INFO: rcu_sched detected stalls on CPUs/tasks" and reboot system instantly?
  3. Hello guys! I haven't found any helpful regarding to my problem, maybe you are more professional as me! (I'm not really!) I would like to set an ordered DHT22 temp & humidity sensor to work on this SBC. OS is : NAME="Ubuntu" VERSION="18.04.3 LTS (Bionic Beaver)" Kernel : Linux cubieboard2 5.3.9-sunxi #19.11.3 SMP Mon Nov 18 18:49:43 CET 2019 armv7l armv7l armv7l GNU/Linux I can export a pin as GPIO, and control a simple led. I've built a kernel module for DHT22 found on github : https://github.com/edwardlintw/DHT22 The main problem is, after successful GPIO export : echo 202 > /sys/class/gpio/export cat /sys/kernel/debug/gpio | grep 202 gpio-202 ( |sysfs ) in lo can't read a value! It's all the same, I load a kernel module, or not, I get the following message : gpioget gpiochip0 202 gpioget: error reading GPIO values: Device or resource busy And with the kernel module : insmod dht22.ko gpio=202 insmod: ERROR: could not insert module dht22.ko: Device or resource busy In kernel.log I see followings : [ 906.815645] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator [ 1224.340665] dht22: loading out-of-tree module taints kernel. [ 1224.342543] Loading dht22 module... [ 1224.359904] dht22 driver (major 241) installed [ 1224.377611] dht22 failed to request GPIO 202, unloaded If I don't create a pin for GPIO, result looks like : Invalid parameters! [ 97.922348] dht22: loading out-of-tree module taints kernel. [ 97.924030] Loading dht22 module... [ 97.942646] dht22 driver (major 241) installed [ 97.960523] sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator [ 97.961115] dht22 failed to get IRQ for GPIO 202, unloaded What do I wrong? Could somebody give me some hint?
  4. Hello, Since the kernel 5.3, used for ARMBIAN reached EOL: http://lkml.iu.edu/hypermail/linux/kernel/1912.2/04661.html Is there any movement to a new kernel version?
  5. Hello Armbian community. I have tried to start the latest image of Armbian Xenial Desktop on my cubieboard 2 and it does not work. I have exactly the same issue as this previous issue:
  6. Hi If i boot my cubieboard2, sometimes it's visible on network, and reachable, sometimes not at all. After that, it isn't changes. No problem with the LAN cable, i've tried two. Also the speedtest shows the maximum bandwidths in both directions (~92 mbit/sec). The system boots always, as i see from logs. Here is from the log: sudo cat /var/log/messages | grep ether Feb 23 09:14:43 localhost kernel: [ 2.059648] sun7i-dwmac 1c50000.ethernet: PTP uses main clock Feb 23 09:14:43 localhost kernel: [ 2.059661] sun7i-dwmac 1c50000.ethernet: no reset control found Feb 23 09:14:43 localhost kernel: [ 2.059690] sun7i-dwmac 1c50000.ethernet: no regulator found Feb 23 09:14:43 localhost kernel: [ 2.059979] sun7i-dwmac 1c50000.ethernet: Version ID not available Feb 23 09:14:43 localhost kernel: [ 2.059991] sun7i-dwmac 1c50000.ethernet: DWMAC1000 Feb 23 09:14:43 localhost kernel: [ 2.059999] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported Feb 23 09:14:43 localhost kernel: [ 2.060006] sun7i-dwmac 1c50000.ethernet: Normal descriptors Feb 23 09:14:43 localhost kernel: [ 2.060012] sun7i-dwmac 1c50000.ethernet: Ring mode enabled Feb 23 09:14:44 localhost kernel: [ 10.408311] sun7i-dwmac 1c50000.ethernet eth0: device MAC address 86:98:a8:6e:1b:69 Feb 23 09:14:44 localhost kernel: [ 10.431624] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found Feb 23 09:14:44 localhost kernel: [ 10.431638] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled Feb 23 09:14:44 localhost kernel: [ 10.431648] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available Feb 23 09:14:44 localhost kernel: [ 10.431657] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW Feb 23 09:14:45 localhost kernel: [ 11.456229] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off Feb 23 09:17:03 localhost kernel: [ 2.059659] sun7i-dwmac 1c50000.ethernet: PTP uses main clock Feb 23 09:17:03 localhost kernel: [ 2.059671] sun7i-dwmac 1c50000.ethernet: no reset control found Feb 23 09:17:03 localhost kernel: [ 2.059701] sun7i-dwmac 1c50000.ethernet: no regulator found Feb 23 09:17:03 localhost kernel: [ 2.059985] sun7i-dwmac 1c50000.ethernet: Version ID not available Feb 23 09:17:03 localhost kernel: [ 2.059999] sun7i-dwmac 1c50000.ethernet: DWMAC1000 Feb 23 09:17:03 localhost kernel: [ 2.060006] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported Feb 23 09:17:03 localhost kernel: [ 2.060013] sun7i-dwmac 1c50000.ethernet: Normal descriptors Feb 23 09:17:03 localhost kernel: [ 2.060019] sun7i-dwmac 1c50000.ethernet: Ring mode enabled Feb 23 09:17:05 localhost kernel: [ 11.008585] sun7i-dwmac 1c50000.ethernet eth0: device MAC address ca:33:74:13:5c:2b Feb 23 09:17:05 localhost kernel: [ 11.033583] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found Feb 23 09:17:05 localhost kernel: [ 11.033600] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled Feb 23 09:17:05 localhost kernel: [ 11.033611] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available Feb 23 09:17:05 localhost kernel: [ 11.033620] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW Feb 23 09:17:06 localhost kernel: [ 12.064089] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off Feb 23 09:17:03 localhost kernel: [ 2.060202] sun7i-dwmac 1c50000.ethernet: PTP uses main clock Feb 23 09:17:03 localhost kernel: [ 2.060213] sun7i-dwmac 1c50000.ethernet: no reset control found Feb 23 09:17:03 localhost kernel: [ 2.060260] sun7i-dwmac 1c50000.ethernet: no regulator found Feb 23 09:17:03 localhost kernel: [ 2.060547] sun7i-dwmac 1c50000.ethernet: Version ID not available Feb 23 09:17:03 localhost kernel: [ 2.060559] sun7i-dwmac 1c50000.ethernet: DWMAC1000 Feb 23 09:17:03 localhost kernel: [ 2.060567] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported Feb 23 09:17:03 localhost kernel: [ 2.060574] sun7i-dwmac 1c50000.ethernet: Normal descriptors Feb 23 09:17:03 localhost kernel: [ 2.060580] sun7i-dwmac 1c50000.ethernet: Ring mode enabled Feb 23 09:17:05 localhost kernel: [ 10.659666] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found Feb 23 09:17:05 localhost kernel: [ 10.659682] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled Feb 23 09:17:05 localhost kernel: [ 10.659692] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available Feb 23 09:17:05 localhost kernel: [ 10.659701] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW Feb 23 09:17:06 localhost kernel: [ 11.680327] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off Feb 23 09:41:44 localhost kernel: [ 2.059654] sun7i-dwmac 1c50000.ethernet: PTP uses main clock Feb 23 09:41:44 localhost kernel: [ 2.059666] sun7i-dwmac 1c50000.ethernet: no reset control found Feb 23 09:41:44 localhost kernel: [ 2.059712] sun7i-dwmac 1c50000.ethernet: no regulator found Feb 23 09:41:44 localhost kernel: [ 2.059995] sun7i-dwmac 1c50000.ethernet: Version ID not available Feb 23 09:41:44 localhost kernel: [ 2.060006] sun7i-dwmac 1c50000.ethernet: DWMAC1000 Feb 23 09:41:44 localhost kernel: [ 2.060014] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported Feb 23 09:41:44 localhost kernel: [ 2.060021] sun7i-dwmac 1c50000.ethernet: Normal descriptors Feb 23 09:41:44 localhost kernel: [ 2.060027] sun7i-dwmac 1c50000.ethernet: Ring mode enabled Feb 23 09:41:47 localhost kernel: [ 10.794927] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found Feb 23 09:41:47 localhost kernel: [ 10.794943] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled Feb 23 09:41:47 localhost kernel: [ 10.794953] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available Feb 23 09:41:47 localhost kernel: [ 10.794961] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW Feb 23 09:41:48 localhost kernel: [ 11.808501] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off Feb 23 10:06:08 localhost kernel: [ 1472.004740] sun7i-dwmac 1c50000.ethernet eth0: Link is Down Feb 23 10:06:45 localhost kernel: [ 1508.868185] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off Feb 23 10:17:03 localhost kernel: [ 2.059849] sun7i-dwmac 1c50000.ethernet: PTP uses main clock Feb 23 10:17:03 localhost kernel: [ 2.059860] sun7i-dwmac 1c50000.ethernet: no reset control found Feb 23 10:17:03 localhost kernel: [ 2.059889] sun7i-dwmac 1c50000.ethernet: no regulator found Feb 23 10:17:03 localhost kernel: [ 2.060183] sun7i-dwmac 1c50000.ethernet: Version ID not available Feb 23 10:17:03 localhost kernel: [ 2.060195] sun7i-dwmac 1c50000.ethernet: DWMAC1000 Feb 23 10:17:03 localhost kernel: [ 2.060203] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported Feb 23 10:17:03 localhost kernel: [ 2.060210] sun7i-dwmac 1c50000.ethernet: Normal descriptors Feb 23 10:17:03 localhost kernel: [ 2.060216] sun7i-dwmac 1c50000.ethernet: Ring mode enabled Feb 23 10:17:05 localhost kernel: [ 10.606215] sun7i-dwmac 1c50000.ethernet eth0: No Safety Features support found Feb 23 10:17:05 localhost kernel: [ 10.606228] sun7i-dwmac 1c50000.ethernet eth0: RX IPC Checksum Offload disabled Feb 23 10:17:05 localhost kernel: [ 10.606238] sun7i-dwmac 1c50000.ethernet eth0: No MAC Management Counters available Feb 23 10:17:05 localhost kernel: [ 10.606247] sun7i-dwmac 1c50000.ethernet eth0: PTP not supported by HW Feb 23 10:17:06 localhost kernel: [ 11.616350] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off 2 times it was reachable from network (2nd, and 4th boot), 2 times not. Anyone sees something?
  7. I installed ARMBIAN in a cubieboard2, then i insert a microSD card with 3 partitions and 1 of them cant be accesed directly from desktop... i receive the msg PERMISION DENIED. please i need help in that partition there is a program that i need to transfer to ARMBIAN to make my ARMIGA SYSTEM live again. How can i access it ?
  8. Hello Maybe it will help someone. I lost a lot of time trying to connect 1-wire to Cubieboard2 via DVK 522 (it has DS18B20 connection on PB10 /gpio 66/ with external pullup). I've done steps in http://linux-sunxi.org/1-Wire with different combination and it doesn't work. In /sys/bus/w1/devices i had only sth like 00-80... 00-40... 00-c00.. without w1_slave file (i was 100% sure of hardware - it works on waveshare debian image) SOLUTION: In /boot/armbianEnv.txt lines needs to be without comments: and that's it ( overlays are created automatically by config so it will be sth like for example this: overlays=mmc2 nand uart2 uart3 uart4 uart5 uart6 uart7 w1-gpio ) other interesting behaviour cat /sys/kernel/debug/gpio gpio-42 ( |w1 ) in hi I don't know why pin 66 ( https://github.com/cubieplayer/Cubian/wiki/GPIO-Introduction ) has number 42 now I've tried to use PC02 http://linux-sunxi.org/A20/PIO#PC02_.2866.29 and also "(position of letter in alphabet - 1) * 32 + pin number" dmesg output [ 18.227575] sun4i-pinctrl 1c20800.pinctrl: unknown pin PB10 # desired pin finally helped INFO: Cubieboard2, DVK522 image: Armbian Stretch mainline kernel 4.14.y (legacy kernel doesn't boot) on SATA drive cat /proc/version Linux version 4.14.84-sunxi (root@armbian.com) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #3 SMP Sat Dec 1 07:18:41 CET 2018
  9. My Cubieboard 2 absolutely refuses to boot from microSD. It will boot into Android from flash when there is no microSD card inserted, but with a card in, it just produces a single red LED and no video output. Eventually it will respond by flashing green and powering down when the power button is depressed, so I feel like it's getting somewhere, but those are the only signs of life. I don't know how to look at serial output from this machine. I've tried two different power supplies, and two different monitors because one had I think been dodgy with this machine before. Same problem on all permutations. I also tested the SD card with F3 and wrote it with Etcher, and I've used it before and it was known good, so I'm 90% confident that the SD card is good. Ideally I would like to install the system to a SATA or USB hard drive, if there's any way I can skip microSD and just do that from the start, that would also work for me. I'm attempting to boot Armbian with the mainline kernel, BTW, not the legacy one.
  10. Hi all! Kinda "mayday-mayday" I recently upgraded Armbian to 5.35 and after reboot it gone. After long investigation i figured out, that it boots ONLY when HDMI cable connected to even standby tv. This is my home server and it works nonstop in headless mode.. I am on kernel 4.13.16-sunxi, rootfs on sata SSD. I guess something cannot be detected with uboot. How can I fix this ?
  11. Hello all, Firstly, a huge thank you to Igor and team for Armbian, I love it and appreciate you for the effort and time you have dedicated to this amazing project, thank you. I have used Armbian on Cubieboard II for a number of years now, running my main server with QuadlogSCADA for my off-grid renewable system at my home. Now, I have had an Olimex LIME-2 eMMC4GB board sitting idle for a while on the corner of my desk and over the past few weeks have been inspired to do some programming with it. So, on this LIME2 board, I have the latest nightly builds, installed to eMMC, all working fine so far. Then, I though to connect a standard 20x4 character LCD to this board using I2C, by setting in armbian-config the overlay for I2C1. I wrote some C code to output data to this display over I2C at address 0x3f and, again, all works wonderfully well, great. Next, I thought, as part of my development toward a larger project, I want to be able to work with discrete GPIO pins, and this is where I have hit a solid rock wall. I have read all the documentation, over and over many times. I have looked at much to do with Armbian on Github in relation to using GPIO for A20 devices, both with legacy kernel and mainline. I have read so much, but have not found the answer that enables me to progress, so, I write this post. Again, I use an Olimex LIME-2 with 4GB of eMMC. I have, in armbian-config, set it to use the nightly builds, as well as installed the kernel headers. I have read this post: Armbain add overlay can not fine headers (solved) I have read this post from March 2018 to do with GPIO problems by user 24Lines: A20-LIME2 can not use GPIO on PG port From that post, if I try to test with PC23, by the following command to export: echo 87 > /sys/class/gpio/export I get the following (using sudo of course) -bash: /sys/class/gpio/export: No such file or directory Then, maybe I need to play around with overlays, so, I try. I pick up a simple overlay from zandor-blood-stained github, the GPIO-button.dts file, from: gpio-button.dts I thought, yes, I could use this as the overlay mentions GPIO by polling or by interrupt and it looks fairly simple in principle to use. So, I copy this file across to my home location on the LIME board and then, following the documentation on compiling dts to dtc I give the command: armbian-add-overlay gpio-button.dts To which I get the following: Error: dtc does not support compiling overlays I check the version of dtc and it tells me it is DTC 1.4.2 So, my question is, do I specifically need to provide an overlay to use gpio as simple bit based I/O in Armbian ? If yes, then where did I miss the correct instruction on how to do this ? Also, I have looked at the C++ code for A20 GPIO which is based on gpio_lib at Olimex site: A20-GPIO It throws an exception on the first Init() function, so, is this code applicable to mainline kernel and if so, how can it then be used ? If not, then can I still use gpio_lib in some way, I guess after setting up in some way to use GPIO ? Igor, I am really grateful for your time and have just watched your video at BalCCon2K17 conference presentation, very good I have uploaded the board config as of right now, after all updates : armbianmonitor config I hope you or Zandor or Thomas or others may be able to help me in getting GPIO working so I may use it in my C/C++ applications. From the little island down under under - Paul Alting van Geusau (aka Von Baron)
  12. Hello! For the Cubieboard 2 on the SD card I use the image Armbian_5.25_Cubieboard2_Debian_jessie_default_3.4.113.img. It is only loaded with U-boot v2015.10.rar. But this U-boot v2015.10 480 MHz DRAM. At this frequency, my Cubieboard 2 freezes. Can anyone build U-boot v2015.10 to 432 MHz DRAM? I will be very grateful. I'm not very good at Linux. I apologize for the bad english.
  13. Cubieboard2 becomes unreachable on ethernet if the switch to which the CB2 connected to is rebooted/powered off then on. Every other devices communicate after the restart, except CB2, it needs an on/off to make its networking work again. Why? It has fixed IP, and also set fixed mac address, but no luck. It runs the latest armbian (5.38), with mainline kernel
  14. Hey folks, I'm trying to play back a couple test files, H.264, 720p. These play without dropping frames on the stock Android ROM for a little while but then freeze, seemingly on certain keyframes? It's always in the same place. Anyway, I tried playing them with mpv on Armbian 5.38 desktop install and it drops frames like crazy. I know the stock Android ROM can play back Youtube content (in the app) without dropping frames - it seems like this should be doable based on what I understand about the capabilities of the A20 and on hardware support in the legacy kernel in the Armbian image ... is there tuning I should be doing? Or options for mpv that I can try? I've used VLC for years and am not really used to other players. I'm hoping to use this box to watch 720p content, youtube, and run quod libet to listen to music. Any tuning tips would be appreciated. So far I'm just running off SD card but I have a disk I might be able to throw on it.
  15. I've been using a Cubieboard2 and I have been struggling to get the SPI to work. I've edited the armbianEnv.txt and added the spi0 and spi-spidev to the overlay line. I see the overlays being loaded and I get (only when I've got the spi-spidev overlay on) a /dev/spi0.0 In the dmesg I see a line like "scanning for SPI0 on DT" (paraphrasing as I don't have the screen in front of me ATM.) I don't see any other diagnostic about the SPI though. I haven't jumpered the MOSI to the MISO yet (for a "loopback" test) The kernel is compiled with the sun7i-SPI driver as well as the usermode spi driver. Is this allowed? Thanks Mark
  16. Hello, I Just installed armbian in my cubieboard and dmesg is showing an annoying message: [ 70.366543] rc rc0: IR event FIFO is full! [ 70.382773] rc rc0: IR event FIFO is full! [ 70.398930] rc rc0: IR event FIFO is full! [ 70.414907] rc rc0: IR event FIFO is full! [ 70.430890] rc rc0: IR event FIFO is full! [ 70.446706] rc rc0: IR event FIFO is full! [ 70.462248] rc rc0: IR event FIFO is full! [ 70.477582] rc rc0: IR event FIFO is full! [ 70.492758] rc rc0: IR event FIFO is full! [ 70.507816] rc rc0: IR event FIFO is full! [ 70.522829] rc rc0: IR event FIFO is full! [ 70.537806] rc rc0: IR event FIFO is full! [ 70.552683] rc rc0: IR event FIFO is full! I did a search on forum and havent find anything related to this error: This is some usefull info: root@cubieboard2:~# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=cubieboard2 BOARD_NAME="Cubieboard 2" VERSION=5.20 LINUXFAMILY=sunxi BRANCH=next ARCH=arm root@cubieboard2:~# And finally here is a link for armhwinfo.log: http://sprunge.us/eGhd
  17. I have cubieboard2 nand chinese usb-modbus stik with ch340 chip. when I connet ch340 chip to usb cubieboard is freezed, ttyS0 is blocked. cubieboard is work but is very very slow, ssh is not disconnected but don't answer by my command. when I disconnect ch340 chip cubieboard will bee unfrozen but ttyS0 is blocked until I don't make hard (power) reset. Software reset is not unfroze ttyS0. I cannot found src for ch340 chip diver. Driver from china web is not compiling. uname -a Linux cubieboard2 4.14.18-sunxi #31 SMP Fri Feb 9 11:11:15 CET 2018 armv7l GNU/Linux dmesg [ 1129.203974] usb 4-1: new full-speed USB device number 4 using ohci-platform [ 1129.478105] usb 4-1: New USB device found, idVendor=1a86, idProduct=7523 [ 1129.478120] usb 4-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 1129.478126] usb 4-1: Product: USB2.0-Serial [ 1129.480407] ch341 4-1:1.0: ch341-uart converter detected [ 1129.493385] usb 4-1: ch341-uart converter now attached to ttyUSB0 [ 1210.401005] usb 4-1: USB disconnect, device number 4 [ 1210.402338] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0 [ 1210.402462] ch341 4-1:1.0: device disconnected lsmod odule Size Used by cfg80211 376832 0 rfkill 20480 2 cfg80211 sun4i_gpadc_iio 16384 0 8188eu 589824 0 sun4i_ts 16384 0 sun4i_codec 32768 3 ch341 16384 0 snd_soc_core 118784 1 sun4i_codec usbserial 24576 1 ch341 ir_lirc_codec 16384 0 evdev 20480 1 lirc_dev 16384 1 ir_lirc_codec snd_pcm_dmaengine 16384 1 snd_soc_core snd_pcm 65536 2 snd_pcm_dmaengine,snd_soc_core snd_timer 24576 1 snd_pcm snd 45056 3 snd_timer,snd_soc_core,snd_pcm soundcore 16384 1 snd sun4i_gpadc 16384 0 nvmem_sunxi_sid 16384 0 sunxi_cir 16384 0 sun4i_ss 24576 0 uio_pdrv_genirq 16384 0 uio 16384 1 uio_pdrv_genirq bonding 94208 0 fuse 73728 1 Any help or suggestion? Thanks, Vlad
  18. Hello, i have cubieboard2. This board boots and runs successfully with Armbian-5.xx-Cubieboard-Debian(Ubuntu)-xx-4.xx.xx image, but i have NO success to boot and run any Armbian_5.xx_Cubieboard2_Ubuntu_xenial_default_3.4.xxx_desktop.img image. Except, that i was able to boot and run Armbian_5.38_Cubieboard2_Ubuntu_xenial_default_3.4.113 image once and it worked for few hours, i was able to install some SW. After power up in the morning cb2 boots until kernel starts, show some flickering colorfull screen and in a second red power led is off and board is not showing any progress. HDMI display says no signal. Maybe someone has the same problem ? So to make it short: any 4.xx.xxx kernel is loading and board is alive, any 3.4.xxx kernel hangs after Starting kernel. regards Oleg K. P.S. added log file, will try to get some info kernel log.zip P.P.S. found same problem in
  19. Hi friends. I need get information about input voltage. When I start armbianmonitor -m, so I see this information. Any idea, how to get this information in python? Or I need only one command to read this value. My board is: cubieboard2 with armbian. Thank you.
  20. I've got a Cubieboard2 with a serial interface hardwired to PI10 and PI11 (uart5). The default Cubieboard2 DT overlay connects uart5 to PH6 and PH7, so I made a new dts, called "sun7i-a20-uart5b" with the pins like I need them: /dts-v1/; /plugin/; / { compatible = "allwinner,sun7i-a20"; fragment@0 { target-path = "/aliases"; __overlay__ { serial5 = "/soc@01c00000/serial@01c29400"; }; }; fragment@1 { target = <&pio>; __overlay__ { uart5_pins_a_2: uart5@1 { pins = "PI10", "PI11"; function = "uart5"; }; }; }; fragment@2 { target = <&uart5>; __overlay__ { pinctrl-names = "default"; pinctrl-0 = <&uart5_pins_a_2>; status = "okay"; }; }; }; According to the instructions I need to excute: armbian-add-overlay sun7i-a20-uart5b But this results in an error: Kernel headers are not installed properly. Please install the kernel headers package root@cubieboard2:/boot/dtb# armbian-add-overlay sun7i-a20-uart5b.dts Kernel headers are not installed properly. Please install the kernel headers package if I execute as root the following: apt-get install linux-headers-$(uname -r) I get the following errors: root@cubieboard2:/boot/dtb# sudo apt-get install linux-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-4.13.16-sunxi E: Couldn't find any package by glob 'linux-headers-4.13.16-sunxi' E: Couldn't find any package by regex 'linux-headers-4.13.16-sunxi' I'm stuck now: My basic question is: how do I enable uart5 on PI10,PI11 ? If I've proceeded in the correct way, how do I install the kernel header package?
  21. Hi, in the last weeks I'been trying to use the serial ports 5 and 6 (tty5, tty6) of the cubieboard2 using DTB but still not working. First of all, I must said that i'm not a linux expert, only a linux user with some experience and all the information below is the result of multiple weeks of internet research. for the moment i'm able to get the cubieboard2 to recognize the ports, and using a c++ program I write on all serial ports, i get a response from tty0 but can't get the gio pins of the serial ports 5 and 6 to work. here is what I have done so far: first, I downloaded the device tree compiler sudo apt-get install device-tree-compiler then, navigate to /boot/dtb and execute this command dtc -I dtb -O dts sun7i-a20-cubieboard2.dtb > sun7i-a20-cubieboard2.dts after that, modified to file using: sudo nano sun7i-a20-cubieboard2.dts and in this file, first I have to find the address of the serial ports navigating almost to the end of the file in this part: __symbols__ { …. uart0 = "/soc@01c00000/serial@01c28000"; uart1 = "/soc@01c00000/serial@01c28400"; uart2 = "/soc@01c00000/serial@01c28800"; uart3 = "/soc@01c00000/serial@01c28c00"; uart4 = "/soc@01c00000/serial@01c29000"; uart5 = "/soc@01c00000/serial@01c29400"; uart6 = "/soc@01c00000/serial@01c29800"; uart7 = "/soc@01c00000/serial@01c29c00"; …… } then, copied the data about the ports I need (Uart5 and Uart6). after copying the address of the ports, navigate to the beginning of the file and find the part named aliases and then copy the information from above. aliases { ethernet0 = "/soc@01c00000/ethernet@01c50000"; serial0 = "/soc@01c00000/serial@01c28000"; serial5 = "/soc@01c00000/serial@01c29400"; serial6 = "/soc@01c00000/serial@01c29800"; }; then, going down in the file, find the part where each serial port is defined and then copy the linux,phandle direction, it is needed later. uart5@0 { allwinner,pins = "PI10", "PI11"; allwinner,function = "uart5"; allwinner,drive = <0x0>; allwinner,pull = <0x0>; linux,phandle = <0x6c>; phandle = <0x6c>; }; uart6@0 { allwinner,pins = "PI12", "PI13"; allwinner,function = "uart6"; allwinner,drive = <0x0>; allwinner,pull = <0x0>; linux,phandle = <0x6d>; phandle = <0x6d>; }; after that, keep looking for the part where all the serial ports status are declared using the address copied in the aliases part of the file, and change the status of the ports to enable from "disable" to "okay" and also, put the line pinctrl-0 = <linux,phandle> serial@01c29400 { compatible = "snps,dw-apb-uart"; reg = <0x1c29400 0x400>; interrupts = <0x0 0x12 0x4>; reg-shift = <0x2>; reg-io-width = <0x4>; clocks = <0x38 0x15>; status = "okay"; pinctrl-0 = <0x6c>; linux,phandle = <0x93>; phandle = <0x93>; }; serial@01c29800 { compatible = "snps,dw-apb-uart"; reg = <0x1c29800 0x400>; interrupts = <0x0 0x13 0x4>; reg-shift = <0x2>; reg-io-width = <0x4>; clocks = <0x38 0x16>; status = "okay"; pinctrl-0 = <0x6d>; linux,phandle = <0x94>; phandle = <0x94>; }; then save the file, and compiled back using dtc -O dtb -o sun7i-a20-cubieboard2.dtb -b 0 sun7i-a20-cubieboard2.dts then reboot and to find out if the ports are now enable, i used cat /proc/tty/driver/serial and dmesg | grep tty in both cases I can see the new ports, but the pins associated to them don't seem to work According to the information about the board, the pins for rx and tx for the serial ports 5 and 6 are: U14 (Next to SATA Connector) SPIO0 48 PI13 (SPI0-MISO/UART6-RX/EINT25) 47 PI11 (SPI0-CLK/UART5-RX/EINT23) 46 PI12 (SPI0-MOSI/UART6-TX/EINT24) 45 PI10 (SPI0-CS/UART5-TX/EINT22) a very good graphic with the cubieboard pinput can be found here: https://drive.google.com/folderview?id=0B5XXSsXE3JTbdURaMFRQa0s0cTg&usp=sharing but I can't see any signal coming from them. I have also tried to check the pins directly using the formula: Pin Number in linux = (Position of the letter in the alphabet -1)*32 + Board pin Number tested this for PG0 G -> 7 (7-1)*32 +0 = 192 Using 192 chek the pin with: echo 192 > /sys/class/gpio/export after this, a new folder must appear on /sys/class/gpio/ called gpio192 then I assigned the direction of the pin with echo out > /sys/class/gpio/gpio192/direction and to change the status of the pin, I used the following commands to turn on the pin with echo 1 > /sys/class/gpio/gpio192/value and to turn off with: echo 0 > /sys/class/gpio/gpio192/value this works like a charm with PG0 and PG2, but it doesn't work with PI13 and PI12 PI13 I ->9th letter of the alphabet Pin Number in Linux= (9-1)*32 + 13 Pin Number in Linux=269 can anyone help me to get the serials ports to work? can you tell me what I'm doing wrong?? Thanks
  22. Hi, I'm trying to run a DHT22 Temperature & Humidity sensor on my Cubieboard2 but I seem to fail at the beginning on how to use the GPIO Pins correctly What I have: Cubieboard2 Armbian Linux version 4.11.6-sunxi (root@devel) (gcc version 7.1.1 20170510 (Linaro GCC 7.1-2017.05) DHT22 (worked on a Raspberry Pi3 before) What I've done so far: According to this Overview (http://docs.cubieboard.org/cubieboard1_and_cubieboard2_gpio_pin) I connected the sensor on 3v3, GND and on PD25 (LCDDE). As far as I understood the LCD pins can be also used for other things. Followed "Accessing the GPIO pins through sysfs with mainline kernel" (http://linux-sunxi.org/GPIO) => (position of letter in alphabet - 1) * 32 + pin number (4 - 1)*32 + 25 = 121 The example says I have to add again +25 to the example "E.g for PH18 this would be ( 8 - 1) * 32 + 18 = 224 + 18 = 242 (since 'h' is the 8th letter)." => So 121+25 = 146 should be my correct value Since it's a sensor I guess I've to use "in" as direction. root@cubieboard2:/sys/class/gpio# echo 146 > /sys/class/gpio/export root@cubieboard2:/sys/class/gpio# echo "in" > /sys/class/gpio/gpio146/direction bash: echo: write error: Unknown error 517 Tried it also with the 121 value as the formula mentioned it (no error), expected here another value than 1 root@cubieboard2:/sys/class/gpio# echo 121 > /sys/class/gpio/export root@cubieboard2:/sys/class/gpio# echo "in" > /sys/class/gpio/gpio121/direction root@cubieboard2:/sys/class/gpio# cat /sys/class/gpio/gpio121/value 1 Besides this I've seen that there are a lot of posts about attach DHT22 to Orange Pi or to BananaPi. Tried some of those but I'm completly lost to adapt those instructions with 1-wire or wiringpi to the cubieboard2. I know that on Raspberri Pi it's necessary to load the library for the Adafruit modules which where supported for BeagleBone black & RasPi. Does someone have some clues how to get this working or tried this by himself? Thanks in advance.
  23. Hello! The Cubieboard2 with mainline kernel support LCD through DVK522 board (LVDS connection)? The mainkernel support SPI?
  24. Hi. Is there any way to download armbian mainline kernel 4.11.6 source? (I want to compile small kernel module) There is only 4.9 source package available...
  25. Hi I need to execute some command when system is going down for halt/poweroff. I need to know this inside my script /etc/init.d/myScript which is called when system is going down. I used to do it by checking $runlevel variable and if it is set to 0, then system was going down for halt, it was working for instance in Raspbian a few years ago. However, in my Linux cubieboard2 4.9.12-sunxi Armbian this variable is not set, and when I execute "runlevel" command inside "STOP" case in myScript it says it is in N 5 runlevel which is not true because I have executed poweroff All tips are welcome Best Regards Marek
×
×
  • Create New...