tcmichals
-
Posts
14 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Community Map
Posts posted by tcmichals
-
-
On 11/8/2017 at 2:04 PM, lvmc said:
I'm working on CSI/camera for 4.X
Is the work being done based on the code drop from Allwinner https://github.com/Allwinner-Homlet/H3-BSP4.4-linux?
-
Would it just easier to use serial over USB and use the DFU to upload firmware?
-
QuadCopter - 2 basic designs (1) is the flight controller connected to an I/O processor for PWM IN/OUT (2) Flight supervisor.
-
The SPI select is driven by software, ie. drivers/spi.c not hardware. Looking at spi.c
- spi_transfer_one_message
- assert CS
- setup/clear upper level call backs
- call into SPI driver sun6i_spi_transfer_one
- clear ISR callbacks etc
- setup SPI chip etc
- start the transfer.
So, even if the SPI transfer rate is increased, the about of time from CS is asserted to the first SPI data transfer should be constant (i.e the time it takes to execute the code)
- spi_transfer_one_message
-
this guy figured it out with PCA9685 but what do we have to change to drive servos
Here is a how-to for servos, yes it is for micro-python, but it provides info on how to set it up and values.
https://learn.adafruit.com/micropython-hardware-pca9685-pwm-and-servo-driver/software
-
Okay, I have the XR819 driver compiling against https://github.com/megous/linux/(this is the kernel source Armbian appears to have switched to).
Pull request submitted to megous/linux...
Might what to review the patches for the zero:
https://groups.google.com/forum/#!topic/linux-sunxi/mdrG_TVmzUE
I was doing the same thing:
- Used patches from SUNXI
- added Ethernet, and CPUX regulator support
For u-boot I'm using orangePI-ONE defconfig. IMHO, The Zero is more like the orangePI-ONE then the OrangePI-PC
FYI: I'm using buildroot.
-
I've updated sun8i-h2-plus-orangepi-zero.dts (4.9x Linux) to include cpu thermal trip points and included the THS driver. Able read the temp, /sys/class/thermal/thermal_zone0/temp reports around 33794.
How to test to see if CPU throttling is working?
-
EDIT : For SPI issue, I don't have it on OPiPlus2E neither than OPiPC, it is working properly. So, something probably went wrong with my OPiPCPlus, which I didn't found yet.
Well, I'm having issues as well with SPI, the first byte sent is "glitched" it is similar to was was posted before. he first byte should be 0x71
-
Yes, since the 4.8.x is completely broken under H3 (I still not understand why), I've switched to sun8i-emac-wip-v5 branch too.
Now, I'm struggling to make SPI work again, I've fixed the DT, but I get "SPI transfer failed" during tests. It was working fine in 4.7.6 ...
I'm using https://github.com/megous/linux/tree/orange-pi-4.9and applying the following patch https://lkml.org/lkml/2016/10/28/64
- Ethernet works
- I2C works
- Have not tested SPI, in progress.
I've added spi static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "rohm,dh2228fv" },
{ .compatible = "lineartechnology,ltc2488" },
{ .compatible = "spidev" }, //TCM:FIX
to spidev to get around creating a overlay. I'm still clueless why kernel developers have not made this modification.
-
Ok, thanks to @lvmc we fixed this ! Here is how :
apt-get install libusb-1.0-0-dev git clone https://github.com/linux-sunxi/sunxi-tools cd sunxi-tools make
==> NOTE : Here I had an error finding libusb, so I udpated the file fec.c
nano fec.c
And replaced
#include <libusb/libusb.h>
with
#include "/usr/include/libusb-1.0/libusb.h"
==> END NOTE
Keep a backup :
sudo mv /boot/script.bin /boot/script.bin.old
Run :
./bin2fex /boot/script.bin.old script.fex
Edit the file script.fex
nano script.fex
Look for this line (Ctrl+W to search in nano) :
vip_dev0_mname = "gc2035"
And replace it with :
vip_dev0_mname = "ov5640"
Now save and create the bin from the fex :
./fex2bin script.fex script.bin sudo mv script.bin /boot/script.bin sudo chmod 777 /boot/script.bin
reboot, and you're good to go !
Uses @lex fswebcam :
modprobe ov5640 modprobe v4l2_vfe fswebcam --Hflip 1 -r 640x480 -p YUV420P - > cam640x480_1.jpg
Thanks to @lvmc
Do you have to reverse the cable?
-
I finished all tests on hardware level and it's confirmed that both GC2035 and OV5640 are now fully working!
@lex has been doing an incredible job on Linux drivers, now focusing on frame grabbing compatibility.
What is required to get the OV5640 working on a orangePI PC? Is it possible to use the latest (sunxi) 4.8.x ?
-
Any success getting SPI to work with mainline i.e 4.7rc?
-
H5 orangePI zero plus2 pinout
in Allwinner sunxi
Posted
Looking at the pinout table Pin 7 and PIN26, also the schematic, PWM is PA6
For this board, the overlay, is saying PWM is PA5, is it PA5? (sun50i-h5=pwm.dts)
For SPI_1, CS_1 is PA10, but the table does not list a PA10, is that pin 26? (sun50i-h5-spi-add-cs1.dts)