Allfifthstuning Posted September 26, 2016 Author Posted September 26, 2016 Transfered everything to emmc, from what I can see, there is not a big difference noticable. Hans
Allfifthstuning Posted September 27, 2016 Author Posted September 27, 2016 Would it be doable / advisable / useful to patch the kernel to make it realtime and tweak it from then on, as is described here?
Igor Posted September 27, 2016 Posted September 27, 2016 RT patch is a part of our patch set, just enable it and recompile kernel. Wrote on mobile phone 1
Allfifthstuning Posted September 27, 2016 Author Posted September 27, 2016 This may be an obvious question, but how do I do this? I can't seem to find the right instructions...
Igor Posted September 27, 2016 Posted September 27, 2016 Start here add / enable this patch: https://github.com/igorpecovnik/lib/blob/master/patch/kernel/sun8i-default/30-real-time143-full-plus-rt-fixes.patch.disabled To enable remove .disabled from file name.
Allfifthstuning Posted September 28, 2016 Author Posted September 28, 2016 I've build a new os. It runs, but the screen is a bit distorded, iit looks like a lot of pixels aren't "activeted" Further I try to install libgtk-3-dev which is needed to build guitarix, but I get this message: root@orangepipcplus:/home/broomy/Programs/guitarix-git/trunk# apt-get install libgtk-3-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libgtk-3-dev : Depends: libglib2.0-dev (>= 2.41.2) but it is not going to be installed Depends: libgdk-pixbuf2.0-dev (>= 2.27.1) but it is not going to be installed Depends: libpango1.0-dev (>= 1.36.7) but it is not going to be installed Depends: libatk1.0-dev (>= 2.7.5) but it is not going to be installed Depends: libatk-bridge2.0-dev but it is not going to be installed Depends: libcairo2-dev (>= 1.10.0) but it is not going to be installed E: Unable to correct problems, you have held broken packages. Hans
Allfifthstuning Posted October 5, 2016 Author Posted October 5, 2016 Phase one is finished for now: I've got Guitarix up and running. The developer made a "trimmed" version, with some CPU-consuming processes switched. There's a trade of in the sound qualitty, but in everyday use it won't be noticable. A 48k samplerate seem to be the maximum the Pi can handle, higher samplerates will result in hick ups, the so called Xruns. The package can be downloaded here. You have to install the dependencies, before you can build it. After going back and forth using a realtime kernel, i've settled to use the "standard" kernel for simplicity's sake, there was no real improvement using the rt-kernel. As mentioned earlier, I've added myself to the Audio group and tweaked some audio settings. One very important thing to do is to set the cpu governance on "performance", this really helps to lower the amount of xruns. I also isolated two out of four cores to direct the audio processes to. The improvement is small, so it can be done with. So long story short: OPi can be used with guitarix! Now: phase two, getting a small tft touchscreen to work on the Pi. It is a screen which is used on RPi-B's with succes. I've only connected it once and it lit. Although I've searched the internet / this forum, I still don't know route to take to get it working. Could someone advice me on this? Hans
Igor Posted October 5, 2016 Posted October 5, 2016 Regarding display check this. Manuals are for orientation since they are for previous Allwinner chip (A20). Almost same scenario works on iMx6 ... so it should work here. I haven't attach a display to those Oranges yet, but it's reported working. Just get a display that is supported by the drivers. I am not familiar with the one you suggested. Note that those SPI based displays are slow, only few fps. For normal speed (and size) you need to check some LVDS / HDMI version.
Allfifthstuning Posted October 10, 2016 Author Posted October 10, 2016 Thanks Igor. I'll probably rethink what I want. A regular small HDMI screen with a small keyboard will be fine for what I want and would be a lot less hassle to get it up and running. btw. Would it be a good idea / useful to add the tweaks I made to make Armbian suiteable for rt-audio somewhere in the documentation-section? Although I'm not an expert, I could type the text. Hans
Igor Posted October 10, 2016 Posted October 10, 2016 btw. Would it be a good idea / useful to add the tweaks I made to make Armbian suiteable for rt-audio somewhere in the documentation-section? Although I'm not an expert, I could type the text. HDMI screen would be less problematic to add / use. Sure, why not. Push it here: https://github.com/igorpecovnik/lib.docs/blob/master/docs/User-Guide_Advanced-Features.md Try to be concise as other topics.
starsail0r Posted October 11, 2016 Posted October 11, 2016 has anyone gone so far to compile preempt_rt or xenomai on h3?
Allfifthstuning Posted October 12, 2016 Author Posted October 12, 2016 I've tried the first but I don't think there's a real improvement. On my laptops I also stopped using rt-kernels, the standard kernel seems fine. The above mentioned tweaks are important though: - Adding yourself to the audio group - Setting RT audio settings - Setting CPU governance to performance Hans
hajime Posted November 1, 2016 Posted November 1, 2016 I have been trying to install Orange Pi Lite + qjackctl + guitarix for vocal . Just yesterday, I update FB for my installation How To in local language. I translate in English and paste here . My concept; - Cheapest Orange Pi = OP Lite - Cheap USB sound card - Very simple X Window installation with openbox - qjackctl and guitarix are controlled through VNC . - Power on to run qjackctl and guitarix automatic . = Power on to become a effector . . My installation procedure is ; -------------------------------- # 0. Buy Orange Pi Lite from manufacture by AliExpress with 8GB SD card, Acrylcase . At the same time, buy cpu heat sink for Raspberry Pi .# 0. Strictly use 2A or more current power adapter. If lower that, manyfrustrating problem would occur .# 1. OS installation- Download "Armbian_5.20_Orangepilite_Debian_jessie_3.4.112.img" from Armbian site .- sudo dd if=Armbian_5.20_Orangepilite_Debian_jessie_3.4.112.img of=/dev/XXXXbs=1M oflag=direct- Where XXXX is your SD card drive .- 1st time boot will do many auto setting by it self . Do not disturb untilsecond boot success .- This installer automatically create SWAP- First login should be 'root' with pasword '1234' . OS will ask you tochange password . Say 'hajime@123' .- When you log by root for the first time, OS will ask you a normal useraccount (sudo-able) . Say 'hajime' .- At the same time, OS will ask you whether you choose display type. JustENTER it .- Logout---------------------# 2. Wifi Setting (login by hajime)# Use "wpa_passphrase yourSSID yourpassword" to get 'psk' for the followingset up.# First setup interfaces and addresses .Just past the following by;hajime>sudo vi /etc/network/interfaces----# Local loopbackauto loiface lo inet loopback# Wireless adapter #1#allow-hotplug wlan0auto wlan0iface wlan0 inet dhcp# iface wlan0 inet static#address 192.168.1.128#network 255.255.255.0#netmask 255.255.255.0#broadcast 255.255.255.255#gateway 192.168.1.1#dns-nameservers 192.168.1.1wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf----# Next, setup for WIFI access points . Usually, there are more than 1 accesspoints . List out all and register here by;hajime>sudo vi /etc/wpa_supplicant/wpa_supplicant.conf----#ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevupdate_config=1network={ssid="FIRST ACCESS POINT SSID"psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}network={ssid="SECOND ACCESS POINT SSID"psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}----# Check this setting byhajime> sudo /sbin/ifup wlan0# If any errors, setting is wrong . Note this setting is WPA1/2 personalsetting which is very common .-----------------------# 3. Time related setting (login by hajime). This example is for my locale.Change if necessary .hajime>sudo cp /etc/localtime /etc/localtime.orghajime>sudo ln -sf /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtimeNext, Add to auto script when OS booted(login by hajime) . Up network and settime by;hajime>sudo vi /etc/rc.local/sbin/ifup wlan0/sbin/sntp --timeout=2 -s time-nw.nist.gov/sbin/sntp --timeout=2 -s ntp1.jst.mfeed.ad.jp/sbin/sntp --timeout=2 -s ntp.nc.u-tokyo.ac.jp/sbin/hwclock --systohc --localtime --directisa > /dev/null 2>&1----# Unregister autostart NTP for lighten CPU because the time is set at boot time. But do not remove it .sudo update-rc.d -f ntp removehajime>sudo reboot-------------------------------------# 4. Sound for USB sound card . I got '2' by command 'hajime>aplay -l' .sudo vi /etc/asound.confpcm.!default {type hwcard 2}ctl.!default {type hwcard 2}----------------------------------#5. Install Softwares# Update and Upgradesudo apt-get updatesudo apt-get upgrade# Install XWindow, VncServer, Jack, guitorix, firefox and other small things .If errors, try again few times .hajime>sudo apt-get install openbox xorg iceweasel x11vnc guitarix qjackctldbus-x11 python-rsvg alsamixerguisudo reboot----------------------------#6. Auto login as hajimehajime>sudo mkdir -pv /etc/systemd/system/getty@tty1.service.d/hajime>sudo vi /etc/systemd/system/getty@tty1.service.d/autologin.conf[service]ExecStart=ExecStart=-/sbin/agetty --autologin hajime --noclear %I 38400 linux----hajime>sudo systemctl enable getty@tty1.service# Password may be required 2 times .#7. Auto start XWindowsvi ~/.bash_profile#if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; thenstartxfi----#8. Set up VNC serverhajime>x11vnc -storepasswdhajime>mkdir -p .config/openboxvi ~/.config/openbox/autostartx11vnc -auth ~/.Xauthority -display :0 -usepw -forever----# After reboot, you can open this effector monitor remotely by 'gvncviewerIPADDRESS' .---------------------------#9. Auto start qjackctl and guitorix after X and Open box startedhajime>sudo vi /etc/xdg/openbox/autostart#qjackctl &guitorix &alsamixergui &-------------------------------------After this, you set up qjackctrl and guitorix then save. Once all done, thisOrange Pi Lite box becomes effector.# The following are just tips if you wish to set up some more .# Rotate screenhajime>sudo vi /etc/X11/xorg.conf.d/01-armbian-defaults.conf# AppendSection "Device"Identifier "default"Driver "fbdev"Option "Rotate" "CCW"EndSection---------------------------# Any case if you want to make qjuackctl run by normal userhajime>sudo vi /etc/security/limits.confhajime - rtprio 99hajime - memlock 500000hajime - nice -10hajime - rtprio 99hajime - memlock 500000hajime - nice -10-------------------------------
Recommended Posts