-
Posts
3892 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by martinayotte
-
-
Well, as you discovered, Zador's discovery against previous version was important, not for the 4K limitation but for the FIFO size.
Yesterday, I've done only quick tests, so, I'm still apologized for having missed that one.
-
Folks, I apologize not having reviewed Icenowy's version properly about sun6i_spi_max_transfer_size().
I think I will ping her about this issue ...
-
Enjoy your new SPI !
Now you can build small SPI-NOR adaptor, upload U-Boot SPL to this Flash using flashcp, and enjoy booting from USB-Drive without any SDCard ...
-
Can you try with the one I've placed in attachment ?
-
@willmore, have you done "mkdir /sys/kernel/config/device-tree/overlays/spi" before doing the "cat" ?
Do you have a pseudo file /sys/kernel/config/device-tree/overlays/spi/status ?
Can you "cat" to see if it contains "applied" or "unapplied"
-
That would be great !
-
You've probably missed some steps about overlays.
Try manually the following steps, although not the same way as described in the above post :
mkdir /sys/kernel/config/device-tree/overlays/uart1 cat /boot/dtb/overlay/sun8i-h3-uart1.dtbo > /sys/kernel/config/device-tree/overlays/uart1/dtbo python import serial port = serial.Serial("/dev/ttyS1", 115200, timeout=1) while True: while serport.inWaiting() > 0: c = serport.read() print c
-
-
Quote
(I remember reading post by Martin where he explained there was a program to test SPI like that)
Yes, the spidev_test.c can be found on any kernel tree under tools/spi/spidev_test.c or on Linus mainline https://github.com/torvalds/linux/blob/master/tools/spi/spidev_test.c
-
-
15 hours ago, zador.blood.stained said:
Changing the default pin and enabling the internal pull-up are the most interesting things to test.
Since Dallas Semiconductor strongly suggest to use 4K7 Pull-Up for OneWire bus, I wouldn't rely on weak internal Pull-Ups which one some SoC are greater than 30K, especially if there are multiple sensor on the same bus or if those have long wires.
-
I have one of my OPiPC+ that has such trouble, it has a false contact with some of SDCard, which thickness could vary a bit, I simply added a piece of folded paper to make it thicker and false contact disappeared.
-
I doubt that OPi Lite is reacting differently than OPiPC/PC+/One, they are using the same SoC.
Since GPIOs are left floating until been initialized as output, your relay driver circuit must take care of that unknown state using pullup or pulldown.
-
U-Boot is not currently supporting that, although maybe with new FIT functionalities developed by APritzel could bring that possible in the future.
-
WiFi password must be between 8 and 32 characters. "True" has only 4 characters, your router should have refused that.
-
Is this firmware file present ?
-
The CONFIG_I2C_MUX is already present.
Maybe it requires something else ...
-
Since this SPI-NOR seems to be a SOICW package, not SOIC, it must be bigger than that.
-
No, there is no problem about using the whole space.
The issue will be present when cloning, except if the image is first backed-up on external disk bigger than the sdcard and then shrinked.
-
FDTI/CH341/PL2303 have been added for next mainline nightly build
-
You are probably using Legacy kernel, so, in such case, take a look at Fex Guide under SPI section :
http://linux-sunxi.org/Fex_Guide
-
You can try to edit the main DT instead and place "okay" on all I2C.
-
I've looked into driver/of/of_net.c, and all those 3 keywords are supported : address/mac-address/local-mac-address.
I've tried it myself, and effectively it doesn't work.
This means that some bug has been introduced in last few months.
I will have to dig further by adding traces into a custom kernel build.
-
Although I didn't verify by trying myself, in 4.10.x, it seems that the keyword is now "local-mac-address".
MCP3008 on OrangePi Zero
in Advanced users - Development
Posted
Having analog input pins floating act like antenna.
You should add some pull-down resistors to prevent that.