Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 28,527
» Latest member: kirimayne
» Forum threads: 15,853
» Forum posts: 115,339
Full Statistics
|
Latest Threads |
Some Suspense.... Camerra...
Forum: Mobian on PinePhone
Last Post: Kevin Kofler
Yesterday, 03:28 PM
» Replies: 2
» Views: 45
|
July 1 upgrade of Mobian ...
Forum: PinePhone Pro Software
Last Post: mburns
09-26-2024, 09:56 AM
» Replies: 3
» Views: 741
|
desktop and lockscreen
Forum: Mobian on PinePhone
Last Post: biketool
09-25-2024, 05:11 AM
» Replies: 0
» Views: 65
|
No HDMI Video - Anything ...
Forum: General Discussion on ROCKPRO64
Last Post: angrymallard
09-25-2024, 04:58 AM
» Replies: 0
» Views: 42
|
2024 Sep 21 - PinePhonePr...
Forum: General Discussion of PinePhone Pro
Last Post: biketool
09-25-2024, 04:16 AM
» Replies: 8
» Views: 2,331
|
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: zetabeta
09-25-2024, 12:41 AM
» Replies: 36
» Views: 6,646
|
Can't install some softwa...
Forum: General Discussion on PineTab
Last Post: mikehenson
09-24-2024, 07:49 AM
» Replies: 2
» Views: 147
|
Testing Some More Games o...
Forum: General Discussion on Pinebook Pro
Last Post: pigkang
09-24-2024, 01:43 AM
» Replies: 5
» Views: 3,441
|
Pinetab 2 Not Powering On...
Forum: General
Last Post: dachalife
09-23-2024, 12:00 PM
» Replies: 2
» Views: 155
|
Developing on Mac (M3)
Forum: Development Discussion on PineTime
Last Post: oksalahti
09-23-2024, 01:27 AM
» Replies: 1
» Views: 85
|
|
|
Boot Up Problem - Red LED goes Out |
Posted by: hay.barry - 05-05-2016, 02:12 AM - Forum: Getting Started
- Replies (6)
|
|
Hi,
Having problems with my first boot up.
Have tried Debian and Ubuntu boots on 8G and 16G SD Cards.
Monitoring the boot up on the serial port, I consistently get to the line
[ 13.858918] systemd[1]: Set hostname to <debianpine64>.
But at this point, the Red LED on the Power supply goes out and the boot process stops. It seems like the power supply is shutting down for some reason - I am guessing. I am using the same power supply that runs a Raspberry Pi 3, so the supply is pretty good.
Anybody else had this issue? or is there anything else I should be looking for in the boot log?
Barry
|
|
|
High-speed GPIOs |
Posted by: dsnyder - 05-05-2016, 12:35 AM - Forum: Pi2, Euler and Exp GPIO Ports
- Replies (3)
|
|
Is there support to directly control the GPIO pins with C or assembly, directly?
I'm looking to control the GPIOs at 10Mhz to 100Mhz and i assume that is not possible using the Python GPIO interface.
|
|
|
Xposed works! More or less. How To: Manually install Xposed Framework |
Posted by: hyperlogos - 05-04-2016, 09:46 PM - Forum: Android on Pine A64(+)
- Replies (6)
|
|
Xposed Framework lets you fiddle with Android and change how things work by installing modules. It requires that you install a framework. Normally you do this with CWM or TWRP recovery but you can also do it by hand. Doing it by hand requires a Linux machine. You could do it on your Pine running Linux, on a PC running Linux, with a virtual machine running Linux... but you're gonna need Linux. You might actually be able to just do it with Android, but I haven't tried.
This is how I just installed Xposed on my Pine running Android 20160428.
Step 0, READ ENTIRE POST BEFORE DOING ANYTHING PLEASE THANK YOU
Step 1, visit XDA forum thread http://forum.xda-developers.com/showthre...?t=3034811
Step 2, download XposedInstaller_3.0-alpha4.apk from the thread and also for Android 5.1.1 on pine64, the latest sdk from http://dl-xda.xposed.info/framework/sdk22/arm64/ (currently xposed-v84-sdk22-arm64.zip)
Step 3, put your microsd card into a Linux machine. Windows can't read ext4 so you need Linux. If you don't have a linux machine, use a linux livecd with vmware player and connect the card reader to the virtual machine. Doing this is outside the scope of this howto, but I am actually going to use a debian livecd for my examples. The short, SHORT form is that you download the livecd ISO and vmware player, install vmware player, then create a new virtual machine using the iso. You don't need to install, just run live.
Step 4, get a root shell. e.g. sudo bash
Step 5, mount the partitions if this hasn't happened already. you can either just try to mount every partition on the microsd card until you find some ext4 parts, or use this handy-dandy code snip to locate them. First do something like "dmesg|grep sd" to find your devices, it will look like this
[ 1690.123504] sdb: sdb1 sdb2 sdb3 < sdb5 sdb6 sdb7 sdb8 sdb9 sdb10 sdb11 sdb12 sdb13 >
[ 1690.158498] sd 4:0:0:0: [sdb] Attached SCSI removable disk
OK, so you want to look at /dev/sdb, so now do this:
( for i in /dev/sdb*; do echo -n "$i " ; head $i | file - ; done ) | grep ext
That will show you which partitions are formatted ext-something. now mount 'em.
for i in 1 10 13 7; do mkdir /mnt/sdb$i; mount /dev/sdb$i /mnt/sdb$i; done
Now you can see their contents. To figure out which is /system:
ls /mnt/sdb*/build.prop
which here returns /mnt/sdb7/build.prop, so sdb7 is /system. To simplify your life, make a symlink in the root
ln -sf /mnt/sdb7 /system
At this point you need the unpacked zip file for the framework. Just unzip it anywhere.
unzip xposed-v84-sdk22-arm64.zip
This will give you a META-INF and a system directory. Deep in the META-INF directory is a script, we will need to carve it up before we can use it. So we will make a copy.
cp META-INF/com/google/android/flash-script.sh .
Now we have to edit the script and make a change. I use vi, you might use nano, whatever. edit flash-script.sh
nano flash-script.sh
and remove these lines about halfway through:
echo "- Mounting /system and /vendor read-write"
mount /system >/dev/null 2>&1
mount /vendor >/dev/null 2>&1
mount -o remount,rw /system
mount -o remount,rw /vendor >/dev/null 2>&1
and these lines near the bottom:
if [ "$API" -ge "22" ]; then
find /system /vendor -type f -name '*.odex.gz' 2>/dev/null | while read f; do mv "$f" "$f.xposed"; done
fi
Now you can just run the script to install!
sh flash-script.sh
Here's what it spit out for me
******************************
Xposed framework installer zip
******************************
- Checking environment
Xposed version: 84
- Placing files
- Done
Now umount all the /dev/sdb stuff that you mounted:
for i in /mnt/sdb*; do umount $i; done
And you can take out the sd card, put it back in your pine, and reboot.
WHAT CAN GO WRONG
You could forget any step
You could get the wrong platform file
What happens next?
When you boot, Android will have to optimize all your apps all over again. It will do this automatically. There is no need to clear the cache. Android is smart enough to figure out that the old stuff in the cache is worthless.
The next thing you do is install the Xposed Installer APK. This is what actually lets you do stuff with the Xposed Framework. You can use the installer to get some modules. Then you have to reboot before you can use them.
My favorite modules are App Settings and GravityBox. iFont is also nifty. After downloading and installing modules under download, you must also activate them under modules.
I am using Reboot menu [no ads] by KitKelly for rebooting... good luck finding it. There's lots of similar apps though. The Xposed Installer should also offer to reboot for you.
If You Are Smart
You will do a test on a fresh install on a spare SD card before messing with an install you care about.
What You Should Know
Stuff may not work. I am having pretty mixed results. Still encouraged by getting it to install.
|
|
|
Battery backup and automatic shutdown and startup |
Posted by: caseih - 05-04-2016, 09:08 PM - Forum: General Discussion on PINE A64(+)
- Replies (9)
|
|
Hi,
I did a quick search of the forum but didn't find anything that touched directly on this topic, but if I missed it, point me to the existing posts.
I know the Pine64 has a built-in battery charging circuit and if I read the specs correctly, should be able to run off the battery, at least for a short amount of time. I'm looking at developing a system where occasionally the power will flicker, and I want to have battery backup to keep it running through the bumps but if the power shuts down for longer than a certain amount of time I'd like to shut the unit down cleanly, and then when power is restored boot back up again. For the Raspberry Pi, modmypi sells a little integrated UPS unit that about does what I want. Could something similar be set up for the Pine64? At the moment I'm just looking at the options and the Pine64 is a very attractive.
thanks.
Michael
|
|
|
|