-
Posts
3892 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by martinayotte
-
-
SPI are enabled using "spi-spidev" overlay ...
-
Well ! you first need to figure out about pyA20 library, don't try the other libraries until you get the fist one done !
On my OLIMEX board (I don't have any Cubieboard ...) both include coming from the same kernel tree, so they should have the same timestamp. If your are not the same timestamp, you have done ugly kernel updates ... Maybe a fresh images could help !
root@micro:~# ll /usr/include/linux/i2c* -rw-r--r-- 1 root root 2427 Jun 26 16:14 /usr/include/linux/i2c-dev.h -rw-r--r-- 1 root root 6772 Jun 26 16:14 /usr/include/linux/i2c.h
-
CubieBoard2 is based on AllWinner A20 SoC, so it should work, although you maybe need to check/tweak the header pinout accordingly in pyA20/gpio/mapping.h, although the PD25 is already present.
So, simply grab a ZIP snapshot, unzip it, and install it using "cd pyA20-master ; sudo python setup.py install" ...
-
Looking more deeply to the library, I found that it is a bit more complex than I thought to make it run on a A20 board.
Doing a bit more search, I found out something easier :
https://github.com/AiratNig/DHT22-DHT11_Orange-Pi_Python
installed on top of the PyA20 library from :
https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/Python/pyA20/pyA20
EDIT : I found also that one, again on top of pyA20 : https://github.com/ionutpi/DHT22-Python-library-Orange-PI
-
Maybe using this library : https://github.com/adafruit/Adafruit_Python_DHT
-
4 minutes ago, chwe said:
Maybe someone like @martinayotte can give you more insights cause he owns more than one
Yes, The OPiPC+ is one of my favorite, one of the reason is price/feature ratio, having eMMC is really nice.
I'm also using those in my daily job.
But, all my boards are headless, so I can't give hint about 3D stuff.
-
According to A20_Bananapi_Schematic.pdf, Yes !
But as Zador mentioned, do you have a PullUp resistor on this GPIO ?
How your DTS looks like ?
-
1 hour ago, B3RN0UT said:
E.g for PD25 this would be ( 4 - 1) * 32 + 25 = 121 + 25 = 146 (since 'd' is the 4th letter).
Nope ! it should be read as :
PD25 this would be ( 4 - 1) * 32 + 25 = 96 + 25 = 121
1 hour ago, B3RN0UT said:I'm unsure what exactly is the mentioned Pin
No, it is not header pin number but GPIO name
-
2 hours ago, B3RN0UT said:
I have to add again +25
Why ? This is not true ... Rely only on the linux-sunxi formula ...
-
@Igor, is Steven planned to ship us Dev's samples ?
-
Zador is right, you don' t need SPIDEV overlay for ENC28J60, but you need that custom overlay ...
-
In Armbian Mainline, the SPI is enabled using an overlay. For that you need to add "overlays=spi-spidev" in /boot/armbianEnvt.txt and then reboot.
For longsleep images, I think you need to enable the SPI simply by changing 'status="disalbed"' to 'status="okay"' in its DT.
-
Effectively, CONFIG_USB_SERIAL is not set at all in linux-odroidc2-dev.config.
But that could be added easily ...
-
Yes, for PC, https://github.com/duxingkei33/orangepi_PC_gpio_pyH3
For Zero, there someone who forked it and adjusted the mapping.h for few Zero pins differences, but I can't remember the link.
EDIT : I've finally found it for Zero : https://github.com/nvl1109/orangepi_PC_gpio_pyH3
-
Good !
Now you should be able to place files into that partition ...
-
The output you've posted earlier :
root@pine64:~# fdisk -l /dev/sda Disk /dev/sda: 28.9 GiB, 31043616768 bytes, 60632064 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
It seems incomplete since it doesn't show any partition ...
With proper partitioning, it should look like :
root@pine64:~# fdisk -l /dev/sda Disk /dev/sdb: 29.8 GiB, 32026656768 bytes, 62552064 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x000c3d6a Device Boot Start End Sectors Size Id Type /dev/sda1 2048 61926527 61922432 29.5G 83 Linux
-
The output of "fdisk -l /dev/sda" doesn't show any partition ...
But strangely, the previous log mentioned you have /dev/sda1.
Are you sure you provided the complete output of fdisk ?
-
/dev/sda seems to be present !
Did you check its partitions with "fdisk -l /dev/sda" ?
-
The best place to find docs is always linux-sunxi :
https://linux-sunxi.org/Table_of_allwinner_based_boards
https://linux-sunxi.org/Xunlong_Orange_Pi_Zero
https://linux-sunxi.org/Xunlong_Orange_Pi_PC#Variants
-
OPiZero and OPiZeroPlus2 are not the same, therefore schematics are not the same and UART2 header pins neither...
http://linux-sunxi.org/Xunlong_Orange_Pi_Zero_Plus_2
UART1 is not exposed on header since it is connected to BlueTooth.
UART2 : TX=10, RX=12, CTS=15, RTS=22.
-
Obviously, I've missed the clearly visible 8198FTV, I was searching for the AP6212A
-
They remove the eMMC and the WiFi to leave room for the ETH, but they didn't care using a new name for the board ...
-
If you have an USB-TTL Serial dongle attached, it would be easier to figure out since you will see all the booting phase logs.
-
Orange Pi R1
in Allwinner sunxi
Posted