Jump to content

Search the Community

Showing results for tags 'hardware hack'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Armbian
    • Armbian project administration
  • Community
    • Announcements
    • SBC News
    • Framework and userspace feature requests
    • Off-topic
  • Using Armbian
    • Beginners
    • Software, Applications, Userspace
    • Advanced users - Development
  • Standard support
    • Amlogic meson
    • Allwinner sunxi
    • Rockchip
    • Other families
  • Community maintained / Staging
    • TV boxes
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families
  • Support

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Matrix


Mastodon


IRC


Website URL


XMPP/Jabber


Skype


Github


Discord


Location


Interests

  1. I think this qualifies as a hardware hack? Certainly amuses me. Hopefully others enjoy it as well. So never quite got my 3.5 mm audio jack working properly on my M4V2 (though others reportedly did). But did find a way to get audible tones from the PWM fan control by playing with the PWM period, so decided to see if I could get music out of my M4V2 in another way ... What follows is interesting exploration of: Finding interesting ways to repurpose NanoPi M4 Cases Loading MIDI files in python3 Brushing up on music theory Finding some free and appropriate Halloween Music $ sudo install pip3 $ sudo pip3 install MIDIFile $ sudo ./fanplay.py Bach.\ Johann\ Sebastian\ -\ Toccata\ And\ Fugue\ \(Bwv\ 565\)___WWW.MIDISFREE.COM.mid This little diversion brought to you by: Armbian FriendlyElec Python A few spare hours on a weekend Might try to play around with this a bit more at some point. Notably does not play Backstreet Boys (was asked to try). But does more or less work, at least on this one track. Enjoy fanplay.py
  2. A very hackish port exists of this Raspberry PI RGB LED Matrix Library which works for Allwinner H3 devices. This works by bit-banging 14 GPIO pins simultaneously to achieve about a 10Mhz throughput / 100fps refresh rate. Refer to here: https://github.com/mrfaptastic/opi-allwinner-h3-rgb-led-matrix I managed to easily get up and running using an Orange PI. Refer to the README of the github repository.
  3. I know the RPi is pretty limited on the GPIO pins. Now my question is how it looks on Le Potato, i.E. is it possible to power a fan directly from the GPIO pins? Powering it from the 3.3 V line seems to work just fine but I fear damaging hardware by trying to connect it to a GPIO instead.
  4. Hi, all! Is it possible to make micro usb otg connection through gpio pins on the orange pi zero? I'm asking because when OPi is located in the box, I need to use external USB type B socket to micro usb cable. So it will be really cool, if I will have opportunity to connect usb otg socket through gpios. Regards.
  5. Hello, I'm trying to use Armbian with a Nanopi NEO Core (Allwinner H3) mounted on its Mini Shield. I was able to use the CAN controller MCP2518FD through SPI1 and CS1. Now I need to use, always on the same SPI1, the demo board TPM SLB 9670 TPM2.0 that I have already verified on a Raspberry Pi. I found the tpm_tis_spi Kernel module by compiling Armbian Bionic 5.4.37, but I was unable to locate the DTB overlay needed to set-up the following pins: SPI1 MOSI SPI1 MISO SPI1 CLK SPI1 CS IRQ (from SLB9670's demo board to Nanopi NEO Core) RESET (from Nanopi NEO Core to SLB9670's demo board) Can anyone help me? Thanks in advance Regards P.S. I apologize, I have already created this topic in "General chit chat", but I think I didn't make the right choice...
  6. Hello Opi Community, I have an Orange Pi PC with the below HW Specs: Snippet of lshw output: description: ARMv7 Processor rev 5 (v7l) product: Xunlong Orange Pi PC width: 32 bits capabilities: smp 4 CPU Issue: Chromium locks up frequently while browsing the internet. Yes I'm running the ARMBIAN OS (Armbian Buster) Chromium Version 76.0.3809.100 (Developer Build) built on Debian 10.0, running on Debian 10.1 (32-bit) Not sure if it is an H2 or H3 board. How do I find it? It is an AllWinner Sun8i family H3 Board armbian-firmware 20.02.4 ArmbianMonitor dump is here: http://ix.io/2kMo I would like to know if I can upgrade the RAM from 1 GB to 2GB ? If yes which RAM chip do I purchase? I have a soldering kit with me to replace the RAM chip. Bonus Question: Not sure if the issue is with chromium itself, if anyone has experienced this, is there an alternate browser? Regards, OPi user
  7. Hi there. Trying to get SPIDEV working on my good old cubietruck aka cubieboard3 with an allwinner A20. Found some posts here and there dealing with A20 boards. But nothing of that did anything for me so far. Enabled it in armbian-config hardware settings and rebooted. No /dev/spi* at all. No mentioning of "spi" in dmesg. Step 1 gave a line "overlays=spi-spidev" in /boot/armbianEnv.txt. Read somewhere else that there should be another line "param_spidev_spi_bus=0", but that was not created by armbian-config. Added that ...bus=0 line myself and rebooted. Still no spi device and nothing in dmesg /proc/device-tree-model says "cubietech cubietruck" which is correct. Running 5.4.20-sunxi, fresh install a few days ago. Nothing special done to it yet. Anyone still playing with these old toys and done this? Thanks!
  8. I am releasing this patch in the hope of you may find it useful. I have also included a sample dts file. It seems to work in 48mhz quite well with very few SPI errors. (Note that the pieces of the driver has been around for some time but I have never seen it put together without further work. Hopefully this patch would make it readily usable. I have tested it on 5.5.18 and quite happy with it.) 0001-fbtft-fb_ili9488.patch 1_ili9488.dts Sample file is for nanopi neo. Driver also works with 4 inch LCD, MSP4020, MSP4021
  9. I am trying to use a Waveshare e-Paper (2.9") with an Orange Pi Zero LTS. To enable the SPI interface, I have added this to /boot/armbianEnv.txt: overlays=spi-add-cs1 spi-spidev param_spidev_spi_bus=1 param_spidev_max_freq=10000000 and installed WiringPI from Github. The e-Paper module is connected to the following GPIO pins: VCC: 3.3V GND: GND DIN: 19(phys)/11(wPi) CLK: 23(phys)/14(wPi) CS: 24(phys)/15(wPi) DC: 22(phys)/13(wPi) RST: 3(phys)/0(wPi) BUSY: 5(phys)/1(wPi) I have checked the connections by using the gpio command line tool to set all 6 ports above to low and to high, and verifying the output with a multimeter. Then I downloaded the e-Paper software from Github, and made it compatible with the Orange Pi via the following changes to lib/Config/DEV_Config.c: 1. In DEV_Equipment_Testing(void), comment out the code that checks if the file /etc/issue contains the string "Raspian" 2. Set EPD_RST_PIN=0, EPD_DC_PIN=13, EPD_CS_PIN=15, EPD_BUSY_PIN=1. 3. Uncomment "if(wiringPiSetup() < 0)", add a curly open brace, and comment out the line after. 4. Change "wiringPiSPISetup(0,10000000);" into "wiringPiSPISetup(1,10000000);" to use spidev1.0 When I run this e-Paper example, nothing happens on the e-Paper display, although I can detect voltage changes on the GPIO ports with a multimeter. The same software works on a Raspberry Pi without problems. Any hints are appreciated!
  10. Trying to figure out which NOR chip to buy for my ZeroPi is giving me a headache. FriendlyArm has very little info available on what works. The board has an empty spot to solder a NOR chip that I would like to populate. There are so many chips all with different voltages and clock frequencies. The wiki and schematic omit the connection all together so I really have no idea what would work. Can someone point me in the right direction?
  11. Hello, I'm new here and do not quite understand the sub-forums here but hopefully this is the right one. I got an Orange pi ONE running 4.19 RT kernel with Armbian buster. I was testing out the GPIO capabilities of the H3 SoC without any libraries and got only 1.67 Mhz at best(which is ironically the same as WiringPIOP) with some task interrupt issues. #define INP_GPIO(g) *(unsigned int *)(gpio+0x04) &= ~(7 << (((g) % 10) * 3)) //I did not thoroughly check if the mapping is okay #define OUT_GPIO(g){\ *(unsigned int *)(gpio+0x04) &= ~(6 << (((g) % 8) * 4));\ *(unsigned int *)(gpio+0x04) |= (1 << (((g) % 8) * 4));\ } #define GET_GPIO(g) (*(unsigned int *)(gpio+0x10) & (1<<g))// 0 if LOW, (1<<g) if HIGH #define GPIO_SET(g) if(!GET_GPIO(g)){*(unsigned int *)(gpio+0x10) |= (1 << g);} #define GPIO_CLR(g) if(GET_GPIO(g)){*(unsigned int *)(gpio+0x10) &= ~(1<< g);} //after accessing /dev/mem OUT_GPIO(12); for(;;) { GPIO_SET(12); GPIO_CLR(12); } The result is pretty inconsistent but at least works (any suggestions?). One could say remove the if statement(got 2Mhz) but that makes the output even more bizarre. At this point i am quite stuck and not sure how to get a faster result with correct timing when rising and falling. Any suggestions for this would be helpful. Thank you! test.cpp
  12. Hi, anybody knows what size of a heatsink can I put on an Orange Pi Zero? It is in the small cube enclosure (without additional addon board). Maybe a link to eBay or Aliexpress? Thanks!
  13. I do some tests on a new display from WaveShare : 5.5inch HDMI AMOLED, 1080x1920 https://www.waveshare.com/product/modules/oleds-lcds/oled/5.5inch-hdmi-amoled.htm On the wiki, it's wrote : To use it on RaspberryPi, you must change the config.txt file for to ajuste hdmi parameters : https://www.waveshare.com/wiki/5.5inch_HDMI_AMOLED max_framebuffer_height=1920 max_usb_current=1 config_hdmi_boost=10 hdmi_group=2 hdmi_force_hotplug=1 hdmi_mode=87 hdmi_timings=1080 1 26 4 50 1920 1 8 2 6 0 0 0 60 0 135580000 3 I do it and that working fine I add this to ajust resolution max_framebuffer_width=1080 max_framebuffer_height=1920 framebuffer_width=600 framebuffer_height=1080 But all that is on RasberryPI and i would like use it on BananaPI M1 on M2 zero I tried to write it in armbianEnv.txt but the resolution of display haven't changed How i can do that on BananaPi ?
  14. Hello, the Rock64 SBC can receive an add-on board with audio ports and an additional ethernet port. I have used it a lot before, with Debian Stretch. With the armbian image it does not work. The reason is simple, this board must be activated by a script which is missing. Ayufan has added a set of scripts in /usr/local/sbin, but they are not present in this build. They can be found here : https://github.com/ayufan-rock64/linux-package/blob/master/root/usr/local/sbin/enable_dtoverlay Then run the necessary command : enable_dtoverlay eth1 ethernet@ff550000 okay and the card is present in ifconfig. Once given an iP address, it works perfectly. Nevertheless, the log indicates a conflct with the ic2 interface. Jul 16 14:39:33 localhost systemd[1]: Started LSB: Advanced IEEE 802.11 management daemon. Jul 16 14:39:33 localhost rc.local[1312]: Applying... Jul 16 14:39:33 localhost rc.local[1312]: /dts-v1/; Jul 16 14:39:33 localhost rc.local[1312]: / { Jul 16 14:39:33 localhost rc.local[1312]: #011fragment@0 { Jul 16 14:39:33 localhost rc.local[1312]: #011#011target-path = "/ethernet@ff550000"; Jul 16 14:39:33 localhost kernel: [ 37.895961] rockchip-pinctrl pinctrl: pin gpio2-25 already requested by ff150000.i2c; cannot claim for ff550000.ethernet Jul 16 14:39:33 localhost kernel: [ 37.895967] rockchip-pinctrl pinctrl: pin-89 (ff550000.ethernet) status -22 Jul 16 14:39:33 localhost kernel: [ 37.895972] rockchip-pinctrl pinctrl: could not request pin 89 (gpio2-25) from group fephyled-rxm1 on device rockchip-pinctrl Jul 16 14:39:33 localhost kernel: [ 37.895976] rk_gmac-dwmac ff550000.ethernet: Error applying setting, reverse things back Jul 16 14:39:33 localhost kernel: [ 37.896167] rk_gmac-dwmac ff550000.ethernet: Looking up phy-supply from device tree Jul 16 14:39:33 localhost kernel: [ 37.896433] rk_gmac-dwmac ff550000.ethernet: clock input or output? (output). Jul 16 14:39:33 localhost kernel: [ 37.896440] rk_gmac-dwmac ff550000.ethernet: Can not read property: tx_delay. Jul 16 14:39:33 localhost kernel: [ 37.896446] rk_gmac-dwmac ff550000.ethernet: set tx_delay to 0x30 Jul 16 14:39:33 localhost kernel: [ 37.896451] rk_gmac-dwmac ff550000.ethernet: Can not read property: rx_delay. Jul 16 14:39:33 localhost kernel: [ 37.896454] rk_gmac-dwmac ff550000.ethernet: set rx_delay to 0x10 Jul 16 14:39:33 localhost kernel: [ 37.896509] rk_gmac-dwmac ff550000.ethernet: integrated PHY? (yes). Jul 16 14:39:33 localhost kernel: [ 37.896644] rk_gmac-dwmac ff550000.ethernet: cannot get clock clk_mac_refout Jul 16 14:39:33 localhost kernel: [ 37.896650] rk_gmac-dwmac ff550000.ethernet: cannot get clock clk_mac_speed Jul 16 14:39:33 localhost kernel: [ 37.901732] rk_gmac-dwmac ff550000.ethernet: init for RMII Jul 16 14:39:33 localhost rc.local[1312]: #011#011__overlay__ { Jul 16 14:39:33 localhost rc.local[1312]: #011#011#011status="okay"; Jul 16 14:39:33 localhost rc.local[1312]: #011#011}; Jul 16 14:39:33 localhost rc.local[1312]: #011}; Jul 16 14:39:33 localhost rc.local[1312]: }; Jul 16 14:39:34 localhost kernel: [ 37.936441] stmmac - user ID: 0x10, Synopsys ID: 0x35 Jul 16 14:39:34 localhost kernel: [ 37.936452] Ring mode enabled Jul 16 14:39:34 localhost kernel: [ 37.936457] DMA HW capability register supported Jul 16 14:39:34 localhost kernel: [ 37.936461] Normal descriptors Jul 16 14:39:34 localhost kernel: [ 37.936466] RX Checksum Offload Engine supported (type 2) Jul 16 14:39:34 localhost kernel: [ 37.936470] TX Checksum insertion supported Jul 16 14:39:34 localhost kernel: [ 37.936475] Enable RX Mitigation via HW Watchdog Timer Jul 16 14:39:34 localhost kernel: [ 37.936660] of_get_named_gpiod_flags: can't parse 'snps,reset-gpio' property of node '/ethernet@ff550000[0]' Nevertheless, the ethernet port is working. Is this a false alarm ? The Rock64 has two GPIO connectors, and the ethernet port is on the second. But the ic2 should be on the first. Whatever the reason, the port works fine.
  15. Some of the boards supported by Armbian have an mpcie slot. The only one that I know of that also has a sim slot is the celarfog pro. (Correct me if I missed something) I found this little add on board that supposedly adds a sim card to an mpcie modem. Think it might work on some or which of the boards? I looked at this but I get lost in figuring out how to form the udev rules. Anyone get 4g going on Armbian on any board in the US?
  16. Hello! Recently, Armbian Debian 10 was installed on my ODROID-C2 I can't configure lircd, but it worked on Odrobian Debian 9! Please, explain how they configure LIRC to 4.19 now without /dev/lirc*? WBR, WRA-RIPE
  17. I was able to read a DHT22 on PA10 with my Orange Pi Prime using https://github.com/Jeremie-C/OrangePi.GPIO Minimal documentation provided in readme https://github.com/lanefu/DHT22-Python-library-Orange-PI
  18. Hello, I am trying to connect an enc28j60 ethernet port to spi0.0 on an orange pi pc, running armbian (debian stretch 4.19.5). I have the jumpers all connected in what I believe is the correct pattern. I compiled a device tree (overlay?) for the enc28j60 on h3, the dtbo file now exists in /boot/overlay-user/spi-enc28j60.dtbo. /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; /* This fragment is required only if the IRQ pin requires internal pull-up */ fragment@0 { target = <&pio>; __overlay__ { enc28j60_pins: enc28j60_pins { pins = "PA7"; function = "irq"; bias-pull-up; }; }; }; fragment@1 { target = <&spi0>; __overlay__ { #address-cells = <1>; #size-cells = <0>; status = "okay"; enc28j60 { compatible = "microchip,enc28j60"; reg = <0>; interrupt-parent = <&pio>; interrupts = <0 7 2>; /* PA7 IRQ_TYPE_EDGE_FALLING */ spi-max-frequency = <12000000>; status = "okay"; /* These are required only if internal pull-up is used for the IRQ pin */ pinctrl-names = "default"; pinctrl-0 = <&enc28j60_pins>; }; }; }; }; and I configured the /boot/armbianEnv.txt. (I just recently added spi-jedec-nor/spi-add-cs1 just for the hell of it to test). verbosity=1 logo=disabled console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 rootdev=UUID=1b49372a-ea5b-42f6-9e60-036606066891 rootfstype=ext4 overlays=spi-add-cs1 spi-jedec-nor spi-spidev param_spidev_spi_bus=0 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u But the device still does not come up. I get a dmesg of "spidev spi0.0: probing from DT" and no errors anymore. And I configured the /etc/hosts/interfaces file, but ip a just shows an "unknown" state instead of up or down. All the tutorials (for raspberry pi's on raspbian... seriously only 2 people have ever tried this on orange pi/armbian?) I can find only show these few steps. And I can't even think of how to go about troubleshooting this. I am kind of new though so maybe I am missing something. What else should I try?
  19. I have orange pi pc with debian. Orange Pi is connected via mobile connection (Wifi AP). Every day I lose more than 500mb data to nothing. What I must disable to normal operations without any update?
  20. I'm not sure what will and won't be a worthy overlay to put directly into Armbian itself with the current script structure, I intend to document the ones I add here, @martinayotte may as well if he's bored. :-P I will be focusing on RPi GPIO compatibles, since those are nice pre-packaged devices in general. I have Tinker, RockPi 4, Le Potato/K2/C2, Tritium H2+/3/5, Rock64, Renegade, and some others. Everything here is a placeholder at the moment. Status Tinker Le Potato Meson64 Renegade Tritium Automation Hat Generic DAC (Pi) MCC 118 DAQ MicroDot PHAT Inky WHAT (e-ink) ENC28J60 for Pi
  21. Hi Im trying to use the Pine A64 for a robotics project but I cannot find any information about how to use the pins and peripherals. Im using Armbian Stretch and I have been looking for the information for like three days. Is there any tutorial, library or something to check how to use the pins on the board? I need to use I2C, SPI and I/O pins... Im even considering switching to RPi because of the lack of documentation... Any help is appreciated Thanks!
  22. I'm going to use an orange Pi zero to make a thermostat adjustable via lan; do you know how to point me to some easy to apply project? I tried several projects, with ds1820b sensors and relais card for raspberry, but I have problems for example with the libraries RPi.GPIO because they do not match those OPi.GPIO. I can currently turn the relays on and off with an android app or via terminal command.
  23. Hi everyone, I bought this Orange Pi PC with this OV5640 5MP camera module. I've been following the other threads online for directions on getting it to work, and I'm up to the point where there exists a /dev/video0 entry, but I'm unable to use it through avafinger's cap-v4l2 program, opencv, or fswebcam. The best I can get is a black image from it. What I've done so far: Editted the [twi2] and [csi0] sections of my script.fex file, converted it back to script.bin with fex2bin sudo modprobe ov5640 sudo modprobe vfe_v4l2 this is the output of dmesg following boot, and this is the output of v4l2-ctl --all. Here's a link to my current script.fex. I've tried many different variations of the [csi0] section to no avail so far. cap-v4l2 fails with the error message: v4l2: errno: 22 - check sensor, something wrong. v4l2: failed to retrieve frame. fswebcam gives me: Error setting pixel format. VIDIOC_S_FMT: Operation not permitted and opencv fails with: mmap: Invalid argument munmap: Invalid argument /dev/video0 does not support memory mapping VIDEOIO ERROR: V4L: can't open camera by index 0 munmap: Invalid argument /dev/video0 does not support memory mapping I've been trying for over a week now and I'm basically out of ideas. Does anyone have any suggestions? Thanks in advance.
  24. I pushed a template for the NanoPi NEO (2/Air/Core/Plus2) onto my github: https://github.com/Tonymac32/kicad-templates If you want to make add-ons, that's fully labelled and the header positions are as correct as I could get them without official reference. I have made a few boards with it, so can vouch that it will assemble. I'll add more as I have time and money to do so, since I don't want to push any that aren't verified in some manner.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines