April 09, 2020, 07:20:03 am


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

Recent posts

Pages1 2 3 ... 10
Привет народ! Форум еще живой? Ладно, ближе к делу.
Есть задача - считывать данные с ноутбучных батарей. В принципе я нагуглил один интересный проект на ардуинке, но вдруг уже кто-то видел или делал нечто похожее на cubieboard

Arduino Battery SMBus Reader

В идеале я хочу собрать прибор для тестирования батарей. Определить живая ли батарея, все ли банки в порядке, заряд-разряд, заряд-разряд малым током. Есть готовый прибор, но он зараза постоянно ломается. Я уже костылей на него навешал, но боюсь это не на долго.
About the forum / Board Upgrade
Last post by lawrence - September 18, 2019, 12:05:29 am
The forums software we use for CubieBoard Forums (SMF) was having some severe database issues.

This was causing intermittent heavy load, and crashes.
I decided dump the data, setup a new SMF install, and reconfigure.

Let me know if any issues post update.
Beginners / Re: sun7i spi does not work fo...
Last post by frd1995 - August 04, 2019, 03:19:35 pm
My bad. In the previous Kbuild file there was SPI_SUNXI_NDMA and I have been repalced SUNXI with SUN7I while I should write SUN7I_SPI_NDMA, not SPI_SUN7I_NDMA
Beginners / sun7i spi does not work for >=...
Last post by frd1995 - July 24, 2019, 02:19:06 am
My Cubieboard2 spi work for arrays less that 64  bytes but for greater than it, I get these errors:
Operation not permitted
dmesg output:

[spi-err] sun7i_spi_handler: spi0 ERR comes, irq status = 0x00003f01
[spi-err] sun7i_spi_handler: spi0 master mode error: txFIFO overflow/rxFIFO underrun or overflow
[spi-err] sun7i_spi_xfer: spi0 cpu transfer data time out
[spi-err] sun7i_spi_xfer: spi0 xfer failed

My guess is that some thing is wrong with DMA on SPI. I did nothing to Device Tree, arch/arm/boot/dts/ directory does not exist. I also checked irq status and I figured out that 13th bit of irq status is 1.
from arch/arm/mach-sun7i/include/mach/spi.h:

#define SPI_STAT_RO         (0x1 << 5)  /* rxFIFO overflow, 0: rxfifo is available;1:rxfifo has overflowed! */
#define SPI_STAT_RU         (0x1 << 6)  /* rxFIFO underrun,fectch data with no data available in FIFO */
#define SPI_STAT_TO         (0x1 << 13) /* txFIFO overflow 0:not overflow;1:overflow */

please help me how to fix this problem. I'm stuck on this for two weeks.
Added Buster images.
Wow, you are adventurous!  Or very skilled.

Hopefully someone here can help, but over on the Fedora ARM where they have lots of experience with ARM SOC with special wifi and BT that require custom kernels (this problem seems to be endemic in the arm community), they just go with a USB device.  And this is what I have done the few times I have needed this.
Hi there,
I am using a cubietruck for a project on which I need wifi and BT.

The use of bt 4.2 instead 4.0 would be great for my project.

So I have been looking at the AP6212 alternatives and found one module the AP6236 which is pin to pin compatible and support bt 4.2!

So my plan is to replace the AP6212 with the AP6236 module with hot air solder station.

Question is, will it work out of the boxe on the software end? Or does it need to modify some drivers?

Cubieboard v3 OS (Cubietruck) / Updated my CentOS instructions
Last post by rgmhtt - June 19, 2019, 03:51:20 pm
My Howto guides for CentOS on Cubieboards have been updated! You can get to them via:


I recently lost a drive and had to quickly rebuild a system (fortunately not a critical use one).  It went reasonably well using my own instructions, but just was challenging to do all the select and copy work.  So I learned some CSS and Javascript and made all the text areas directly selectable/copyable.

Note the mailserver is still a work in progress.  Maybe after this distraction I will get back to it.

Beginners / Re: What should I do to make 4...
Last post by bronxgg - June 15, 2019, 04:53:38 pm
Quote from: yakatao on October 03, 2016, 05:24:50 pm
I found this manual: http://linux-sunxi.org/Mainline_NAND_Howto but it seems outdated. "NAND detection/initialization patchset" cannot be applied to, say, https://git.kernel.org/cgit/linux/kernel/git/arm/arm-soc.git/ HEAD.
So I tried to fix dts and dtsi files and select  'Support for NAND on Allwinner SoCs' option in menuconfig, then got this:

# mtdinfo
Count of MTD devices:           0
# dmesg | tail
[    1.969324] EXT4-fs (mmcblk0): mounted filesystem with ordered data mode. Opts: (null)
[    1.977328] VFS: Mounted root (ext4 filesystem) readonly on device 179:0.
[    1.990871] devtmpfs: mounted
[    1.995363] Freeing unused kernel memory: 1024K (c0800000 - c0900000)
[    2.753005] systemd-udevd[163]: starting version 215
[    2.798861] random: udevd urandom read with 128 bits of entropy available
[    2.813133] random: nonblocking pool is initialized
[    5.326390] EXT4-fs (mmcblk0): re-mounted. Opts: (null)
[   11.839440] EXT4-fs (mmcblk0): re-mounted. Opts: commit=600,errors=remount-ro
[   13.521374] sunxi_nand 1c03000.nand: could not find pctldev for node /soc@01c00000/nand_base0@0, deferring probe

I have a problem with that too, thanks for the advice. I will try it
Pages1 2 3 ... 10