Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,412
» Latest member: cheezmeister
» Forum threads: 2,650
» Forum posts: 24,149

Full Statistics

Latest Threads
Gentoo Linux test image
Forum: Linux
Last Post: xalius
2 minutes ago
» Replies: 18
» Views: 2,139
LCD touchscreen
Forum: Hardware, Accessories and POT
Last Post: maya.b
1 hour ago
» Replies: 2
» Views: 44
Pine64 cannot boot
Forum: Linux
Last Post: jamiechang917
2 hours ago
» Replies: 4
» Views: 65
EMMC cards in Pine64 stor...
Forum: General Discussion on PINE A64(+)
Last Post: tllim
4 hours ago
» Replies: 5
» Views: 263
PINE A64(+) and PINEBOOK ...
Forum: General Discussion on PINEBOOK
Last Post: pineadmin
6 hours ago
» Replies: 0
» Views: 35
Android 6.0.1 Image (LCD ...
Forum: Android
Last Post: tllim
6 hours ago
» Replies: 9
» Views: 945
Turn your Pine64 into a m...
Forum: Ubuntu
Last Post: tllim
7 hours ago
» Replies: 2
» Views: 177
HDMI and LCD
Forum: Newbie and Startup
Last Post: tllim
7 hours ago
» Replies: 19
» Views: 1,228
External DAC
Forum: POT modules
Last Post: Luke
Yesterday, 01:47 PM
» Replies: 114
» Views: 12,302
The 6 most common reasons...
Forum: Newbie and Startup
Last Post: Luke
03-22-2017, 05:58 PM
» Replies: 106
» Views: 35,078

 
  PINE A64(+) and PINEBOOK related topic
Posted by: pineadmin - 6 hours ago - Forum: General Discussion on PINEBOOK - No Replies

For PINE A64(+) and PINEBOOK related topic, please post it under PINE A64(+) forum and use the +PINEBOOK thread subject prefix to indicate that the thread/topic is also related to PINEBOOK.

Print this item

  LCD touchscreen
Posted by: stephen fleming - Yesterday, 03:26 PM - Forum: Hardware, Accessories and POT - Replies (2)

Is it possible to use the LCD touchscreen with the SOPINE board using Linux? The reason why I ask, is that I was looking at a recent thread:
https://forum.pine64.org/showthread.php?tid=1183&page=7
Jessica Spongekipper posted

Code:
/boot/uEnv.txt looking like:    

   console=ttyS0,115200n8
   selinux=permissive
   optargs=enforcing=0 cma=384M no_console_suspend
   kernel_filename=kernel
   initrd_filename=ramdisk.img
   hardware=sun50iw1p1

   # Uncomment to enable LCD screen
   fdt_filename_prefix=pine64/sun50i-a64-lcd-
When i opened the same file running the version of Ubuntu for the SOPINE, this is what I saw:
Code:
console=tty0 console=ttyS0,115200n8 no_console_suspend
kernel_filename=pine64/Image
initrd_filename=initrd.img
ethaddr=ba:88:8e:64:aa:78 fsck.repair=yes
pine64_model=pine64-so
The line to enable the LCD was not there. Is it located in another file?

Print this item

Question Pine64 cannot boot
Posted by: jamiechang917 - Yesterday, 08:30 AM - Forum: Linux - Replies (4)

My Pine64+(2GB) cannot boot with any linux image,but it can boot with android image,I use 5V2.5A power supply unit and 30 cm usb cable.

Print this item

  PINE A64(+) and SOPINE related topic
Posted by: pineadmin - 03-22-2017, 10:28 AM - Forum: General Discussion on SOPINE - No Replies

For PINE A64(+) and SOPINE related topic, please post it under PINE A64(+) forum and use the +SOPINE thread subject prefix to indicate that the thread/topic is also related to SOPINE.

Print this item

  Turn your Pine64 into a music server with mpd
Posted by: JulianM - 03-22-2017, 06:47 AM - Forum: Ubuntu - Replies (2)

Hi together!

This topic is structured into a few categories.
• Prepare your Pine64
• Installing und setup MPD
• Fix sound problems with alsamixer
• Installing und setup Samba
• Control your MPD via IR remote control
• My own setup





» Prepare your Pine64

What do you need?
- Pine64 board.
- Speakers via audiojack.
- Install the latest Ubuntu image by longsleep.

What you'll get?
- A music server which can be controlled via Windows, Linux and Android.


First of all:
Download the latest Ubuntu image by longsleep.
Overview of all Ubuntu images powered by longsleep

I downloaded the following image:
xenial-pine64-bspkernel-20161218-1

After you have downloaded and burned the image on your micro sdcard you need to apply some pre requirements.



If you just downloaded the Ubuntu image you have to resize the partitions of your microsd card.
Just enter this command:
Code:
resize_rootfs.sh



Next step: Update the software of Pine64.
Code:
pine64_fix_whatever.sh
pine64_update_kernel.sh
pine64_update_uboot.sh
apt-get update
apt-get upgrade



Ok, all pre requirements are given now.




» Installing und setup MPD

Let's install mpd!
Code:
apt-get install mpc mpd
mpc (Music Player Command, client) is a command line program to manage mpd (Music Player Daemon, server).



Fix permissions of mpd directories:
Code:
chmod 770 /var/lib/mpd/music/ /var/lib/mpd/playlists/
chown -R mpd:audio /var/lib/mpd/music/ /var/lib/mpd/playlists/



Apply my config for mpd:
Code:
cat <<EOF >/etc/mpd.conf
music_directory      "/var/lib/mpd/music"
playlist_directory   "/var/lib/mpd/playlists"
db_file              "/var/lib/mpd/tag_cache"
log_file             "/var/log/mpd/mpd.log"
pid_file             "/run/mpd/pid"
state_file           "/var/lib/mpd/state"
sticker_file         "/var/lib/mpd/sticker.sql"
user                 "mpd"
port                 "6600"
log_level            "verbose"
restore_paused       "yes"
auto_update          "yes"
auto_update_depth    "3"
filesystem_charset   "UTF-8"
id3v1_encoding       "UTF-8"

input {
    plugin          "curl"
}

audio_output {
    type            "alsa"
    name            "My ALSA Device"
    mixer_type      "software"
}
EOF
The configuration of mpd is done.



Now activate audio output via 3.5 audiojack!
But please note:
The 3.5 audiojack will be the default device for all audio output with these configs!
Code:
cat <<EOF >/etc/modules-load.d/pine64-audiojack.conf
sunxi_codec
sunxi_i2s
sunxi_sndcodec
EOF
Code:
cat <<EOF >/etc/asound.conf
pcm.!default {
       type plug slave {
               pcm "hw:1,0"
               }
}

ctl.!default {
       type hw
       card 1
}
EOF



Reboot your Pine64 to apply changes of sound cards.
Code:
reboot



Just copy all your music files into the following directory:
Code:
/var/lib/mpd/music
I'll explain how to copy files from your Windows machine easily to your mpd server at the end of this post!



Take note that ownerships are correct!
If not, apply them.
Code:
chown -R mpd:audio /var/lib/mpd/music/



Update the music database of mpd with mpc.
Code:
mpc update



Alright, you're done!

Feel free to manage your mpd server with different mpd clients!
These are my favourites:
• Linux & Windows: Gnome Music Player Client
• Android: MPD ControlDroid MPD Client





» Fix sound problems with alsamixer

Normally there should be no problems with sound if you are using the latest Ubuntu image by longsleep.
So, you are advised to check the following settings in alsamixer.
Code:
alsamixer
Code:
Unmute "Headphone" with toogling "m"
Set "ADCL Mux" to "DMIC".
Set "ADCR Mux" to "DMIC".
Set "AIF1 DAC timeslot 0 volume" to 85.
Set "AIF1IN0L Mux" to "AIF1_DA0L".
Set "AIFIN0R Mux" to "AIF1_DA0R".
Unmute "DACL Mixer ADCL" with toogling "m"
Unmute "DACL Mixer AIF1DA0L" with toogling "m"
Unmute "DARC Micer ADCR" with toogling "m"
Unmute "DACR Mixer AIFDA0R" with toogling "m"
Set "digital volume" to "0".
Set "headphone volume" to "75".





» Installing und setup Samba

How to copy your files from your Windows machine to your Pine64 - Use SFTP or... Let's install Samba!

Code:
apt-get install samba-common samba



Create a Samba user to manage your files:
Code:
smbpasswd -a mpd
Just set a password for mpd user.



Apply my config to login via Samba with mpd user:
Code:
cat <<EOF >/etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server %v
security = user
dns proxy = no

[mpd]
path = /var/lib/mpd
valid users = mpd
force user = mpd
force group = audio
create mask = 0660
directory mask = 0770
browsable = yes
writable = yes
EOF



Restart Samba.
Code:
/etc/init.d/samba restart
Now you are able to copy your music very easily from Windows to your Pine64.



Just add a "Network ressource" on Windows with the following path:
Code:
\\ip-address-of-pine64\mpd
Username: mpd
Password: You have choosen it with "smbpasswd -a mpd"



[Image: mpdbsufd.png]




» Control your MPD via IR remote control

Control your MPD server with the official IR remote control by Pine64!


You need to install "keybinder", to re-mapping the keys of your IR remote control to execute commands.
Code:
apt-get install unzip gcc make
cd ~
mkdir keybinder
cd keybinder
wget https://github.com/elopez/keybinder/archive/master.zip
unzip master.zip
cd keybinder-master/
make
make install
cd ~
rm -r ~/keybinder



Use "evtest" to determine the event input of IR receiver:
Code:
apt-get install evtest
evtest
Choose the event number with "sunxi_ir_recv".
The event number depends of the plugged in usb devices!!!



Code:
root@pine64:~# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:      sunxi-keyboard
/dev/input/event1:      axp81x-supplyer
/dev/input/event2:      sunxi-ths
/dev/input/event3:      audiocodec sunxi Audio Jack
/dev/input/event4:      sunxi_ir_recv
/dev/input/event5:      MCE IR Keyboard/Mouse (sunxi-rc-recv)



Now press a few buttons on your IR remote control.
You should see some entries like...
Code:
Testing ... (interrupt to exit)
Event: time 1490184760.781095, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40400d
Event: time 1490184760.781095, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 1
Event: time 1490184760.781095, -------------- SYN_REPORT ------------
Event: time 1490184761.023186, type 1 (EV_KEY), code 13 (KEY_EQUAL), value 0
Event: time 1490184761.023186, -------------- SYN_REPORT ------------
Event: time 1490184761.793386, type 4 (EV_MSC), code 4 (MSC_SCAN), value 404010
Event: time 1490184761.793386, type 1 (EV_KEY), code 16 (KEY_Q), value 1
Event: time 1490184761.793386, -------------- SYN_REPORT ------------
Event: time 1490184762.043188, type 1 (EV_KEY), code 16 (KEY_Q), value 0
Event: time 1490184762.043188, -------------- SYN_REPORT ------------
Event: time 1490184762.734733, type 4 (EV_MSC), code 4 (MSC_SCAN), value 404011
Event: time 1490184762.734733, type 1 (EV_KEY), code 17 (KEY_W), value 1
Event: time 1490184762.734733, -------------- SYN_REPORT ------------
Event: time 1490184762.983185, type 1 (EV_KEY), code 17 (KEY_W), value 0
Event: time 1490184762.983185, -------------- SYN_REPORT ------------
Event: time 1490184763.508206, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40400e
Event: time 1490184763.508206, type 1 (EV_KEY), code 14 (KEY_BACKSPACE), value 1
Event: time 1490184763.508206, -------------- SYN_REPORT ------------
Event: time 1490184763.753183, type 1 (EV_KEY), code 14 (KEY_BACKSPACE), value 0
Event: time 1490184763.753183, -------------- SYN_REPORT ------------
Event: time 1490184764.026059, type 4 (EV_MSC), code 4 (MSC_SCAN), value 40400b
Event: time 1490184764.026059, type 1 (EV_KEY), code 11 (KEY_0), value 1
Event: time 1490184764.026059, -------------- SYN_REPORT ------------
Event: time 1490184764.273206, type 1 (EV_KEY), code 11 (KEY_0), value 0
Event: time 1490184764.273206, -------------- SYN_REPORT ------------



Now we can work with keybinder
Code:
keybinder /dev/input/eventX
X depends on the event number of your IR receiver!!!
You got the number by evtest.



Feel free to apply my config or create your own.
Code:
cat <<EOF >/etc/keybinder.conf
24,mpc volume +10   # Set the volume +10
23,mpc volume -10   # Reduce the volume -10
16,mpc prev         # Play previous track
17,mpc next         # Play next track
13,mpc toggle       # Play/Pause playback
69,mpc random       # De-/Activate random playback
77,shutdown -h now  # Shutdown the Pine64
EOF

[Image: ir_remote_controlwkus1.png]



Start keybinder automatically on boot.
Code:
(crontab -l ; echo "@reboot /usr/bin/screen -dmS keybinder /usr/local/bin/keybinder /dev/input/eventX")| crontab -
X depends on the event number of your IR receiver!!!




» My own setup

[Image: img_20170312_101912a4uj7.jpg] [Image: img_20170311_1211430aubd.jpg]  [Image: img_20170311_164216hwux7.jpg] [Image: img_20170311_212653b3uyo.jpg] [Image: img_20170311_212802wauce.jpg]
[Image: img_20170311_192506etu6v.jpg] [Image: img_20170312_1337249cu2d.jpg]


Have fun with it Smile


Best regards
Julian

Print this item

  MicroSD, Which one should I buy?
Posted by: ronaldolcc - 03-20-2017, 04:34 PM - Forum: General Discussion on PINE A64(+) - Replies (1)

Will I feel difference between Samsung Evo Plus and Samsung Pro?
And Pro Plus?

[Image: samsung%20microsdhc%20evo%20plus%20card%...arison.png]

Evo Plus 64gb or Pro 32gb?

Print this item

  Forum Restructuring
Posted by: pineadmin - 03-20-2017, 09:33 AM - Forum: News - No Replies

We will restructure this forum within this 1 to 2 weeks time after we had finalized the new forums structure with the moderators. Example of changes discussed are:
- Software and Hardware/Accessories main forums will be merged under a new main forum named "PINE A64(+)".
- All OS related forums will be moved into a new forum called "Software and OS".
- A new main SOPINE forum will be created.
- Some unpopular sub-forums' threads will be moved into their parent forum.

Existing Threads under the old forums will be moved to their new forums accordingly.

Print this item

  use uvc as primary camera
Posted by: mathiraj - 03-19-2017, 08:27 PM - Forum: Android - Replies (11)

I'm using Android 6.1 image with pine64 board. I have UVC webcam and don't have the pine64 camera.

I installed open camera app from play store and the app could use the webcam as the secondary camera.

But other apps like hangout, skype, etc., don't detect this camera. It appears that they look for the primary camera and then report that the camera is missing.

Is there a way to setup the UVC webcam as the primary camera so that the android apps use it?

Print this item

  Create a WiFi hotspot on Debian 8
Posted by: JulianM - 03-19-2017, 04:36 PM - Forum: Linux - No Replies

Hello together!

I tried something to create a WiFi hotspot with officially WiFi/bluetooth module by pine64 via ethernet and this is my solution.
Feel free to discuss about this topic Smile

Note: The WiFi hotspot is using the internet connection via ethernet. I wasn't able to bridge the internet connection from wlan0 to wlan1!
Note 2: I haven't installed NetworkManager on my system. NetworkManager can be responsible for problems with these instructions.



Install hostapd (create a hotspot), dnsmasq (dhcp server) and iptables-persistent (firewall settings)

Code:
apt-get install hostapd dnsmasq iptables-persistent



Change the config of hostapd
/etc/hostapd/hostapd.conf
Code:
interface=wlan0
driver=nl80211
ssid=MyPrivateHotspot
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=MyVeryStrongPassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP



Change the config of dnsmasq
/etc/dnsmasq.conf
Code:
no-resolv
interface=wlan0
dhcp-range=10.0.0.3,10.0.0.20,12h
server=8.8.8.8
server=8.8.4.4
Restart dnsmasq to apply the new config
Code:
/etc/init.d/dnsmasq restart



Activate forwarding of IPv4
/etc/sysctl.conf
Code:
Just uncomment the following line:
net.ipv4.ip_forward=1
Apply it without reboot with the following command:
Code:
sysctl -w net.ipv4.ip_forward=1



Setup the network configuration
/etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
        pre-up iptables-restore < /etc/network/iptables.rules

iface wlan1 inet manual

auto wlan0
iface wlan0 inet static
        address 10.0.0.1
        broadcast 10.0.0.255
        netmask 255.255.255.0
And restart the network:
Code:
/etc/init.d/networking restart



Apply iptables rules
Code:
iptables -A FORWARD -o eth0 -i wlan0 -s 10.0.0.1/24 -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 



Save the iptables rules
Code:
iptables-save > /etc/network/iptables.rules



Create the WiFi hotspot
Code:
hostapd /etc/hostapd/hostapd.conf



You're done!


Best regards
Julian

Print this item

  USB HUB 214b:7000 Not recognized
Posted by: victagayun - 03-18-2017, 07:30 PM - Forum: Accessories - No Replies

Hello 

Any device I plug in this USB is not recognized, Any help?

Code:
victor@pine64:~$ lsusb
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 004: ID 17ef:6032 Lenovo
Bus 002 Device 006: ID 214b:7000  
Bus 002 Device 003: ID 214b:7000  
Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 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 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Print this item