Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,777
» Latest member: ChrisZZ
» Forum threads: 16,286
» Forum posts: 117,307

Full Statistics

Latest Threads
wifi password wont save
Forum: General Discussion on PineTab
Last Post: WEF
14 minutes ago
» Replies: 0
» Views: 2
curious iPhone user here
Forum: General Discussion of PinePhone Pro
Last Post: Mary_Davis
Today, 03:57 AM
» Replies: 10
» Views: 8,440
Pinephone + Keyboard for ...
Forum: PinePhone Hardware
Last Post: PinePhoneProUser
Yesterday, 02:13 PM
» Replies: 12
» Views: 6,320
Booting Issues
Forum: PineNote Software
Last Post: d2minik
12-26-2025, 12:44 PM
» Replies: 22
» Views: 16,191
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: vajak
12-24-2025, 06:00 AM
» Replies: 2
» Views: 410
Rrkisp issue with CSI cam...
Forum: Linux on Quartz64
Last Post: lystar
12-24-2025, 02:34 AM
» Replies: 1
» Views: 3,797
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: Kevin Kofler
12-24-2025, 12:11 AM
» Replies: 80
» Views: 45,773
Fedora + Phosh for PinePh...
Forum: PinePhone Software
Last Post: shanehill@mail.com
12-23-2025, 09:12 PM
» Replies: 75
» Views: 201,068
Trixie - bring up the On ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
12-23-2025, 04:34 AM
» Replies: 0
» Views: 107
On-Screen Keyboard Arrow ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
12-23-2025, 04:25 AM
» Replies: 11
» Views: 6,112

 
  various hardware for sale
Posted by: dkryder - 02-25-2018, 09:49 PM - Forum: Community and Events - Replies (3)

02/25/18 i'm selling some of my pine64 hardware. all of the hardware is in good working condition. none of it has been used on a continuous basis,

1 pine64 sopine baseboard/module combo $15.75 
1 pine64 POT I2C multiport board $8.10
1 pine64 POT development board $5.00
2 padi breakout w/padi $1.15ea


  UBOOT flash to SPI
Posted by: R@nchito - 02-25-2018, 08:54 AM - Forum: General Discussion on ROCK64 - No Replies

Hello,

I had my Rock64 working with the Stretch Mate image. Also the latest Android was booting fine.
Now  I tried flashing Uboot to the SPI which seemed to work, cause the white LED was blinking.
Unfortunately now nothing is booting anymore. I tried to use the Uboot erase SPI image but it did nothing.

Is there an alternative way to erase the SPI ?

Could it be that the Uboot image eis faulty ??  How to recover my Rock64 now ??

thanks for help

Stefan Huh Huh Huh Huh


  rtl8812au driver install..
Posted by: 11b2p508 - 02-24-2018, 09:43 PM - Forum: Linux on Rock64 - Replies (11)

So bear with me here got to get the fix.  I don't like re-inventing the wheel but was unable to find a driver that was built for the RTL8812AU adaper in the store, I bought one, mainly for 5GHz band as well as 2.4 it does not work out of the box on the artful build (ayufan's) since he is one of the main kernel grinders, I looked there first... did not see anything, for the RTL8812AU.  I was plenty of questions, but no working solutions... so.. did some digging, most driver code is a base, as drivers are added, and just functions are added or adapted, rarely is a whole driver written if a similar one exists.

As it happens, in my search, I ran across this: http://xhyumiracle.com/how-to-install-rt...-adapters/

So, I gave it a try..., ran into error(s), most were warnings, those are not uncommon, I like to get rid of them,but mostly at this level they are informative, rather than deadly... I like no warnings, but with any portable code shared among several builds, and probably at this age several compile versions, you will see them... So, most of the warning were simply generated from older 'C' coding..., the main thing to me in maintaining code is some notion to 'overcode' if it works on similar or elsewhere, it is probably not a complicated fix.

That was the case on this... it terminated with an error:

include/linux/sched.h:1198:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
                                          ^
/root/rtl8812AU/core/rtw_br_ext.c: In function 'nat25_db_handle':
/root/rtl8812AU/core/rtw_br_ext.c:1444:28: error: implicit declaration of function 'csum_ipv6_magic' [-Werror=implicit-function-declaration]
         hdr->icmp6_cksum = csum_ipv6_magic(&iph->saddr, &iph->daddr,
                            ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '/root/rtl8812AU/core/rtw_br_ext.o' failed

The fatal error in the compile was this (if you are a coder)...:



/root/rtl8812AU/core/rtw_br_ext.c:1444:28: error: implicit declaration of function 'csum_ipv6_magic' [-Werror=implicit-function-declaration]
         hdr->icmp6_cksum = csum_ipv6_magic(&iph->saddr, &iph->daddr,


                            ^


Did some digging in header files...experience has taught me more often than not with 'development' be developed on these days, someone probably improved the code in some other place..., here is the fix:

in core/rtw_br_ext.c I added the following after digging...

 ******************************************************************************/
#define _RTW_BR_EXT_C_



#ifdef __KERNEL__

#include <linux/if_arp.h>

#include <net/ip.h>

#include <net/ipx.h>



/**********************************************/

/* added here                                                            */

#ifndef _CHECKSM_IPV6_H

#include <net/ip6_checksum.h>

#endif

/**********************************************/

#include <linux/atalk.h>

#include <linux/udp.h>
#include <linux/if_pppox.h>




(Actually I didn't put in the spaces and comments, I did here so others could see the surrounding code, but the fix was not at line 1444, it was the inclusion of a now independent header file that apparently did not exist on the building machine of the original code or it was in an included header file)

Earlier, I questioned about manifest defines, in actuality, the is a linux fix, but it is at the Linux level, not the actual low level code writing, and it works.  So if someone want to include it in a distributed, please help yourself, you can add other defines if necessary, I suppose you could tighten it up more, but the above put in the manifest define for the header, without changing the code generously, and this was for the 'artful' load, not previous loads... so since these are somewhat experimental boards, either way it was a good excercise, and it works on the rock64 under artful where it previously was unavailable with the build.

I saved the broken make (make.out), and I saved the one that worked..(make.good)

Following the instructions on the above URL do not work did not work out of the box, as my CROSS_COMPILE was set to aarch64, ayufan's is arm64 so, I made it simple, rather than digging reconfiguring, etc, etc by doing the simplest change at the shell:

export ARCH=arm64<enter>

That said - I don't care what your CROSS_COMPILE ARCH is, override it. (I am lazy... guess I should fix my cross compiler)..

using the gcc-5 that it prompted me to use, was easy as well (geeze been away from this along time, I am not on board with Tim Cook, everybodyisn't a coder, in fact most get too intimidated by very verbose error messages... too many coders create too many of everything..., about 4-5 different 'current' version of gcc these days. 8 years ago we were only using a couple).... I pulled gcc-5.

I compile with the following added on and go watch tv while it compiles..

make all (all is mostly) 2>&1 | tee <make.out>


With the correction, 

make CC=/usr/bin/gcc-5 2>&1 | tee make.good

ended with:

include/linux/sched.h:1198:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
                                          ^
  LD [M]  /root/rtl8812AU/8812au.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136'

The kernel module!!!!!



Followed by a:

make CC=/usr/bin/gcc-5 install <- this installs the kernel module...

So, I never hand setup a wireless on linux, that is another story, however I had to configure wpa_supplicant, I won't go into that here, but there is always a first time.

here is the end result (I am logged in on the wireless, it is connected... we will see how good the code is..., wearing it in now):

root@rock64:~/rtl8812AU# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 114  bytes 8427 (8.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 114  bytes 8427 (8.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.88.166  netmask 255.255.255.0  broadcast 192.168.88.255
        ether 08:10:7a:66:b5:4f  txqueuelen 1000  (Ethernet)
        RX packets 4827  bytes 592210 (592.2 KB)
        RX errors 0  dropped 15  overruns 0  frame 0
        TX packets 1467  bytes 365926 (365.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@rock64:~/rtl8812AU# 

root@rock64:~/rtl8812AU# lsusb
Bus 005 Device 003: ID 05e3:0617 Genesys Logic, Inc. 
Bus 005 Device 002: ID 05e3:0617 Genesys Logic, Inc. 
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 004: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter
Bus 004 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 004 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@rock64:~/rtl8812AU# 

oot@rock64:~/rtl8812AU# wpa_cli
wpa_cli v2.4
Copyright © 2004-2015, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wlan0'

Interactive mode

> list_networks
network id / ssid / bssid / flags
0 Puke_5GHz any [CURRENT]


AND the wired is disconnected, and it is running through usb3.0 7 port bus.


Now, I do know this works... (mine does Smile   )

If you want more info. please advise I will attempt to assist.

Maybe next attempt will be AP mode for this...
 



Attached Files
.zip   makes.zip (Size: 3.85 KB / Downloads: 557)

Question Installing the latest kernel (Debian Stretch) + configuring the bootloader?
Posted by: lightknight.rr@gmail.com - 02-24-2018, 06:38 PM - Forum: Linux on Rock64 - Replies (3)

Greetings,

Does anyone have any idea how exactly to go about this procedure? I mean, I managed to build kernel 4.15.5 from the vanilla sources, and I'm aware of what I'd do next on an x86-64 machine (make a .deb package, install it)...but, and this is the part that throws me for a loop, I'd normally just run update grub and reboot. I've looked in the /boot partition, and I'm feeling the process might be a little more complex here...I see a label for kernel-4.4 in extlinux.conf, but nothing immediately in the way of tools for adding to this file a new image...


Question OK to connect Rock64 to 5V/2.4A USB super charge?
Posted by: AkiraSensei - 02-24-2018, 01:00 PM - Forum: Rock64 Hardware and Accessories - No Replies

Is it all right to plug the Rock64 to a 5V/2.4A USB super charge socket? I should've gone with the prong version but I ordered the barrel to USB cable instead. The Rock64 boots up fine and I did some playing around (ran two x265, 1080p videos through Kodi on Android).

From what I've read on this forum, some have even gone as far as turn the board up on a 1 amp with success, so 2.4A seems good enough, right? What about this "super charge" thing? I know that's meant for phone charging, so I'm concerned if this could damage the board over time.


  Error when building kernel - realtek
Posted by: krystian - 02-24-2018, 12:11 PM - Forum: General Discussion on ROCK64 - Replies (1)

Hello

I had to make some changes to the hid-multitouch driver and I'm trying to build my kernel.
During the cross compile build, I get:

Quote: LD [M]  drivers/net/wireless/rockchip_wlan/rtl8188eu/8188eu.o
scripts/Makefile.build:455: recipe for target 'drivers/net/wireless' failed
make[2]: *** [drivers/net/wireless] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
Makefile:829: recipe for target 'drivers' failed
make: *** [drivers] Error 2

It's a bit over the head for me. I've cloned the rock64-android/kernel repository, changed the driver i wanted to changed and did:


Quote:export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
ARCH=arm64 make rockchip_smp_nougat_defconfig
ARCH=arm64 make -j5


and ended up with the error:

I have tried running make with V=1, but after compiling the rtl8822bs it just throws the above with nothing more to start on.

Any tips on what did I miss?

Thanks!


  Onboard LEDs connected to the RK805-1 out1 and out2 GPIO pins
Posted by: prof7bit - 02-24-2018, 05:15 AM - Forum: Linux on Rock64 - Replies (8)

Are the two LEDs (white and red) that are connected to the RK805-1 out1 and out2 pins (which seem to be general purpose IO pins according to the data sheet) controllable from user space somehow? I have noticed that at least the u-boot-spi flash tool can blink the red LED and also at least one of the available images I tried turned off the red LED after successful boot. The image I am currently running leaves both LEDs turned on all the time.


  When can we Order?
Posted by: frewind - 02-24-2018, 05:02 AM - Forum: General Discussion on ROCKPRO64 - Replies (27)

Hi,

I've been following the news on the RockPro64, have you a date yet when we will be able to order?

Thanks Dazz


Question Rock64 + DS1307 RTC - I2C
Posted by: lightknight.rr@gmail.com - 02-23-2018, 06:58 PM - Forum: General Discussion on ROCK64 - No Replies

Greetings,


So, I am trying to add a RTC to the ROCK64 using the below (DS1307 RTC - I2C):
https://www.amazon.com/Raspberry-Pi-HAT-...ds=rtc+rpi, and using these instructions: https://www.raspberrypi.org/forums/viewt...hp?t=85683.

I seem to be missing the rtc-ds1307 module (I'm on Debian Stretch Mate Community). Is there a way to get this module without downloading and recompiling a new kernel?


  How to u-boot to HDD?
Posted by: AkiraSensei - 02-23-2018, 06:50 PM - Forum: Android on Rock64 - Replies (4)

Well, there's this thread by the moderator called Luke instructing how to boot Linux and "some" Android images from a USB device. The link to it is this: https://forum.pine64.org/showthread.php?tid=5610

I followed the instructions. I downloaded and burned ayufan's u-boot-flash-spi.img.xz image to my SD, waited for the Rock64 to start blinking, and then turned off to take the SD out. I then tried Pine64's own Android image AND Ayufan's TV version but none will boot off an externally powered HDD OR USB flash drive. The screen on my monitor doesn't even turn black or anything (no signal).

According to Luke's guide, I have to go to this link here: https://github.com/ayufan-rock64/ to check which images can be booted from SPI but I do not understand these hub pages at all. I've no idea where to even find a list of Android images that mention SPI.

I found this hub page titled "u-boot Android" or something but I have no clue what this page is even about: https://github.com/rock64-android/u-boot . I'm not Linux savvy to understand at all.

BTW, running Android through SD runs perfectly fine. But as we all know, SDs wear out -- especially for what I'll want to use the Rock64 for.