| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 30,104
» Latest member: fantsaygem
» Forum threads: 16,360
» Forum posts: 117,528
Full Statistics
|
| Latest Threads |
PineNote v1.2 - Charges N...
Forum: General Discussion on Pinebook Pro
Last Post: ttsp
07-02-2026, 02:52 AM
» Replies: 0
» Views: 89
|
How to change the PineNot...
Forum: General Discussion on PineNote
Last Post: cameronharring
07-01-2026, 12:22 PM
» Replies: 0
» Views: 58
|
PinePhone Pro disable Vol...
Forum: PinePhone Pro Hardware
Last Post: FR_IV
07-01-2026, 10:53 AM
» Replies: 1
» Views: 1,537
|
Star64/Starpro64 kernel b...
Forum: General
Last Post: tgbgreen
06-30-2026, 12:17 PM
» Replies: 1
» Views: 2,151
|
Manjaro affected by Arch ...
Forum: General
Last Post: tantamount
06-28-2026, 10:45 AM
» Replies: 0
» Views: 223
|
Fix Bricked SPI Flash, Pi...
Forum: PinePhone Pro Hardware
Last Post: FR_IV
06-27-2026, 05:00 PM
» Replies: 0
» Views: 153
|
irradium (based on crux l...
Forum: Linux on RockPro64
Last Post: mara
06-27-2026, 04:09 PM
» Replies: 12
» Views: 19,627
|
irradium (based on crux l...
Forum: Linux on Rock64
Last Post: mara
06-27-2026, 02:43 PM
» Replies: 13
» Views: 18,813
|
Android Gaming Image
Forum: Game Station Emulation
Last Post: Jacobgilbert
06-26-2026, 07:06 AM
» Replies: 52
» Views: 111,217
|
rAudio for Rock64 V2/Pine...
Forum: Linux on Rock64
Last Post: shinzuka
06-25-2026, 03:16 PM
» Replies: 11
» Views: 1,980
|
|
|
| OpenBSD: GPIO with the I2C device PCF8574(A) |
|
Posted by: krjdev - 08-09-2018, 06:41 AM - Forum: BSD on Rock64
- No Replies
|
 |
Currently the ROCK64 GPIO cannot used in userland. (I currently working on it.)
So I have written a driver for the good old PCF8574 from NXP.
You can find the driver on my Github page:
Additional drivers for OpenBSD
To use the PCF8574, add this to the device trees (Example):
Code: /dts-v1/;
/include/ "rk3328-rock64.dts"
&i2c0 {
status = "okay";
pcf8574: gpio@20 {
compatible = "nxp,pcf8574";
status = "okay";
reg = <0x20>;
#gpio-cells = <2>;
gpio-controller;
};
};
Configuration of the Kernel (add the following):
Code: pcfgpio* at iic?
gpio* at pcfgpio?
Compile the kernel.
dmesg output from my driver:
Code: pcfgpio0 at iic0 addr 0x20
gpio0 at pcfgpio0: 8 pins
Use the driver with gpioctl:
Code: $ gpioctl /dev/gpio0 0 on
Turns pin 0 to on.
Use the driver with ioctls (simple running light example):
Code: #include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/gpio.h>
#include <sys/ioctl.h>
int main(int argc, char *argv[])
{
int i, fd;
int ret;
struct gpio_info ginfo;
struct gpio_pin_op gop;
if (argc < 2) {
printf("usage: gpio [DEV]\n");
return 1;
}
fd = open(argv[1], O_RDWR);
if (fd == -1) {
printf("error: couldn't open file (%s)\n", strerror(errno));
return 1;
}
ret = ioctl(fd, GPIOINFO, &ginfo);
if (ret == -1) {
printf("error: ioctl GPIOINFO failed (%s)\n", strerror(errno));
close(fd);
return 1;
}
printf("gpio: Number of pins: %d\n", ginfo.gpio_npins);
while (1) {
for (i = 0; i < ginfo.gpio_npins; i++) {
gop.gp_pin = i;
gop.gp_value = GPIO_PIN_HIGH;
ret = ioctl(fd, GPIOPINWRITE, &gop);
if (ret == -1) {
printf("error: ioctl GPIOPINWRITE failed (%s)\n", strerror(errno));
close(fd);
return 1;
}
sleep(1);
gop.gp_value = GPIO_PIN_LOW;
ret = ioctl(fd, GPIOPINWRITE, &gop);
if (ret == -1) {
printf("error: ioctl GPIOPINWRITE failed (%s)\n", strerror(errno));
close(fd);
return 1;
}
}
}
close(fd);
return 0;
}
|
|
|
|
| Wireless Module Driver Source code |
|
Posted by: mido2018 - 08-08-2018, 04:26 PM - Forum: Wifi/BT Module
- No Replies
|
 |
Hi,
I am trying to find the source code of the Wireless module's driver. I could find the driver's source code for the Bluetooth part but not for the WiFi part of the module. Can someone help me with that?
|
|
|
|
ARMBand an easily configured Home Media Server |
|
Posted by: gabrielsr - 08-08-2018, 06:47 AM - Forum: RockPro64 Projects, Ideas and Tutorials
- Replies (2)
|
 |
Hi all,
I'm working on a Home Media Server project for automate the process of downloading series and movies and organize your media library.
The project will easy the process of deployment a lot of great existing projects out there for a home server / personal cloud such as Plex, Emby, Radarr, CouchPotato, onwCLoud, ...
If you're interested in making a RockPro64 a Media Server, say hello to ARMBand. 
The underling Bits:
ARMBand is a fork of Cloudbox for the arm64 architecture. Cloudbox can configure a impressive list of services for home media server without much user work envolved but only supports amd64 architecture. Cloudbox uses Ansible to configure media server related services using Docker containers. Ansible is an infrastructure automation technology (like Puppet and Chef, but much more easily to start playing with).
Porting Cloudbox to arm64 basically envolves changing Ansible recipes to use arm64 based docker images, fork docker images and adapt scripts to download arm64 packages.
If anyone is interested in contributing in development or testing drop me a msg, ok?
Thanks.
Main Project:
https://github.com/dibrz/ARMBand
Cloudbox Wiki:
https://github.com/Cloudbox/Cloudbox/wiki
|
|
|
|
| How to do hardware decoding of video? |
|
Posted by: SuperSaiyanCaleb - 08-08-2018, 04:30 AM - Forum: Linux on Rock64
- Replies (9)
|
 |
So I have a Rock64 board and I want to leverage its hardware decoding and encoding abilities in an Emby server. But for a start I'd be happy just to get any sort of hardware decoding working. I tried out Armbian Stretch and wasn't able to get either of my HEVC test files to play smoothly out of the box. (vainfo returned an error when trying to get a driver name, so evidently something needs to be installed that's not, but I'm not sure what...) And there's very little instruction out there that I can find, so I'm not sure if this is an Armbian shortcoming or just a matter of me not knowing how to get all the pieces in place.
I'm interested in ayufan's images, but don't know if it's any easier to get hardware decoding working there than on Armbian... Has anyone gotten hardware decoding working on these boards? What OS works best and what needs to be installed/configured to get it working properly?
|
|
|
|
| EMMC not booting while SD does. |
|
Posted by: Apokalypz - 08-08-2018, 02:27 AM - Forum: General Discussion on ROCKPRO64
- Replies (29)
|
 |
Hello all,
I recently ordered a rockpro64 with a few accessories, one of which is an emmc module (https://ameridroid.com/collections/stora...dule-blank).
However, I am unable to get the rockpro64 to boot with just the emmc module plugged in. I used the usb->emmc adapter to dd the Debian stretch image (version 0.7.9) to it. When it wouldn't boot with that image, I tried an SD card and that worked perfectly. Not only that, but the emmc is visible in /dev/ when booted off the SD so the SBC does recognize the emmc....it just won't boot from it.
After that, I tried a plethora of things to try to get emmc to boot:
1. dd the image to the emmc while booted off the SD with the emmc plugged in to the rockpro64.
2. dd the android emmc image to the emmc.
3. Changed every combination of mmc boot partition enable/disable/ack along with the various boot bus options.
4. Plugged in a serial adapter to view the boot process. The attempted emmc boot showed nothing on serial while the SD boot showed the whole process as expected.
A few things to note:
1. Before flashing anything to the emmc, I noticed it was already loaded with an odroid XU3 image, despite the emmc module I ordered stating it's supposed to be empty. Could this be a problem? I know the Odroids use the boot0 boot partition and I guess rockchip doesnt, so I enabled rw on the boot parts and zero'd them out.
2. The Linux mmc tool and dmesg showes the emmc module as hs200 as opposed to the hs400 that the ameridroid site says. The mmc version is 5.1 as confirmed by the linux mmc tool.
3. The linux kernel reports the emmc model number as DG4032 if that helps.
Any help would be appreciated. Thanks.
|
|
|
|
| Two of our sopine's only register 1GB RAM |
|
Posted by: paradise - 08-07-2018, 06:56 PM - Forum: General Discussion on PINE A64-LTS / SOPINE
- Replies (3)
|
 |
Code: U-Boot SPL 2018.03 (Jul 23 2018 - 18:13:46 +0200)
DRAM: 1024 MiB
Trying to boot from sunxi SPI
U-Boot 2018.03 (Jul 23 2018 - 18:13:46 +0200) Allwinner Technology
CPU: Allwinner A64 (SUN50I)
Model: Pine64+
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Noticed 2 of the 42 sopines only sees 1GB DRAM instead of the 2GB. It's the same dram chip as the rest.. :-(
Anything I can test before I RMA these two?
Ps. Also the power led didn't work from start on these nodes but I didn't think much about that because some others have the same issue but they booted just fine. (Led is also to close to the plastic and stops working when you inserted them ~20 times)
|
|
|
|
| PCIe SSD drive still not working ?? |
|
Posted by: dr_ju_ju - 08-07-2018, 01:17 PM - Forum: General Discussion on ROCKPRO64
- Replies (7)
|
 |
Sorry if I'm being totally stupid and posted in wrong area, but...
I've just received a new production unit (Rockpro64 V2.1 2018-06-06) together with a PCIe 3.0 x4 to M.2 (NGFF) SSD Adaptor, to which I've added a WD blue SSD M.2 2280 drive.
I'm using Ayufan's latest builds, both minimal & full, but nothing I try allows access to the drive.
The boot logging shows an error connecting to the PCIe device(s), but I'm not sure what is going on (sorry but I'm unable to upload file).
The drive I've tested in a normal PC & can create\format partitions etc...
Reading other posts on the site, relate to a resistor that needs to be removed ? but I was under the impression that the board I purchased was one of the new 'fixed' ones, so should work ok ??
Any thoughts or suggestions gratefully received....
|
|
|
|
| Rock64 USB3 bugs |
|
Posted by: NitroDeath - 08-07-2018, 04:58 AM - Forum: Linux on Rock64
- Replies (4)
|
 |
Hi all,
I bought Rock64 and failed to use my hard disks with it (direct connection, no hub). It seems to work fine and then crashes randomly 
I did see similar post here : https://forum.pine64.org/showthread.php?tid=5137&page=3
But I Don't use the same Linux (commands unavailable), OpenMediaVault was quite easy to use for newbie.
I tried several Linux distributions (OpenElec, Debian, OMV,...), huge deception. HD Movies are very slow, USB crashes Linux, my RPI Always did run fine on everything without any expert tuning
Anyone could help for hard disk crashes : "Kernel panic - not syncing: hung_task: blocked tasks" and give me advice about a Linux image to choose with maximum compatibility ? I'm not dealing about performance anymore, just would like it to work.
A crying newbie
|
|
|
|
|