January 16, 2021, 01:38:45 pm


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

Recent posts

Pages1 2 3 ... 10
General Discussion / CubieAIO-A20
Last post by fmcode - August 04, 2020, 01:16:04 pm
Has anyone iso image of modern Linux like Debian Buster for this product?

About the forum / Re: Board Upgrade
Last post by ua3prq - April 20, 2020, 04:56:44 am
Lawrence, good day!
Glad to see you in good health!
Let's hope that the crash of the forum is over and someday people will again find time to communicate on topics of interest to them ...
Начинающим / Re: Cubieboard7
Last post by ua3prq - April 20, 2020, 04:46:20 am
Маджик-блока нет?
Quote from: luminofor on January 23, 2020, 03:34:06 pmПривет народ! Форум еще живой?

Скорее жив, чем мертв )
Хотя сам форум периодически выпадает в осадок на доступе...
Ну вообщем- рад видеть в добром здравии!
Привет народ! Форум еще живой? Ладно, ближе к делу.
Есть задача - считывать данные с ноутбучных батарей. В принципе я нагуглил один интересный проект на ардуинке, но вдруг уже кто-то видел или делал нечто похожее на 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.
Pages1 2 3 ... 10