OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

6 Pages V  « < 2 3 4 5 6 >  
Reply to this topicStart new topic
> Final call for TP3
Adam Boardman
post Feb 23 2019, 08:53 AM
Post #46





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



Yea the names are confusing, master is the generic branch just has the fixes so is for use by others eg sailfish (though they appear to have a mer branch too now), 'packaging' was my first debian-ized version using stretch cross compiler (gcc-aarch64-linux-gnu), when I got stuck getting that into the jenkins build system I made the 'native' branch which uses the slow qemu building so is the same as if you were building natively on the gemini ie arm64. I still use it locally though so fixes have to be applied to all three branches in the end.

So for 'debuild -b -uc -us' use branches as per:
amd64 - packaging
arm64 - native
Go to the top of the page
 
+Quote Post
Kiriririn
post Feb 24 2019, 12:51 PM
Post #47





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



QUOTE(TheKit @ Jan 30 2019, 07:04 PM) *
QUOTE(Kiriririn @ Jan 30 2019, 02:33 PM) *
QUOTE(Eric BF @ Jan 30 2019, 11:41 AM) *

How do you disable Glamor? I would like to try. Thanks.

I believe I rebuilt xf86-video-hwcomposer without --enable-glamor-hybris, cant remember if there was more to it than that

It can be disabled by setting Option "AccelMethod" "None" in the device section of /etc/X11/xorg.conf, for example:
QUOTE
Section "Device"
Identifier "MediaTek HWC"
Driver "hwcomposer"
Option "AccelMethod" "None"
EndSection

If you update to latest libhybris and xf86-video-hwcomposer from Gemian repos, chromium will still work, but with color channels flipped. Might be interesting to compare performance though. If it is really much better without glamor, we could look into dri3 support without glamor, which would allow EGL applications to still work, although a bit slower due to buffer copy involved.


An update on this: I've updated everything and reverted all packages (except for repowerd and gemian-lock) to unmodified versions - unfortunately it's still slow with glamor enabled. The effect is most noticeable in Firefox which literally goes from 15-30 fps to < 1 fps, but you can also feel the difference scrolling in terminals and other apps. I will say it is improved though compared to when I last tried

But thank you for that AccelMethod config tweak, saves me maintaining a modified xserver-xorg-video-hwcomposer package!
Go to the top of the page
 
+Quote Post
idc
post Mar 2 2019, 10:42 AM
Post #48





Group: Members
Posts: 29
Joined: 22-June 18
Member No.: 824,860



QUOTE(Adam Boardman @ Feb 19 2019, 09:52 PM) *
If you could do a 'sudo lvscan' to tell me the volume names that would be handy.


Hi Adam,
Sorry for the delay getting back to you.
The result of # lvscan from my sailfishOS gemini is as follows:
/dev/mmcblk0rpmb: read failed after 0 of 4096 at 0: Input/output error
ACTIVE '/dev/sailfish/root' [2.44 GiB] inherit
ACTIVE '/dev/sailfish/home' [37.00 GiB] inherit

A df shows that I'm using 60% of the root, but only 3% of home, so I should be able to shrink that and give Debian 20 GiB or so to play with. That should be enough, given I've an SD card which could be pressed into service for extra storage.
I hope that helps. Are there other commands you'd like me to run?

I love the idea of trying out shrinking the Sailfish volumes and creating a Debian that can run. Happy to be a guinea pig, if you don't mind the fact that I'm an amateur not a professional and may need some hand-holding, if we start doing complicated stuff! (So I'd welcome recommendations for what commands to use from Sailfish—or Android—to backup the whole thing before I start, and then what commands to use from SailfishOS or Android to shrink the /dev/sailfish/home folder.)

I'm keen to try out Exagear's Eltech's Exagear desktop to run some Intel-only programmes and according to the manual it requires Debian, which if I've understood correctly precludes Sailfish, if it is based on Redhat Linux — I've not had much to do with non-Debian based Linuxes so a bit hazy as to the main differences beyond the fact that I can't apt-get stuff but have to pkcon.

Thanks again for all your work on all this.
All the best,
Ian
Go to the top of the page
 
+Quote Post
Adam Boardman
post Mar 3 2019, 02:36 PM
Post #49





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



Cool, thanks, currently thinking of a plan that would involve dd'ing a new boot image to one of your bootX spots, that will look for an MMC card with a stretch.img.gz and a stretch.config.txt file on it. The config would say what space to allocate, and do the resize, copy, etc. Will send you link when we have something to test.
Go to the top of the page
 
+Quote Post
idc
post Mar 4 2019, 12:53 AM
Post #50





Group: Members
Posts: 29
Joined: 22-June 18
Member No.: 824,860



Thanks, Adam. That sounds fantastic. I'll wait to hear more in due course!
(Currently I have Sailfish in boot 1, and Android in the 'hold esc and silver button' boot position—is that 3 or 4? In any case, that leaves space for Debian in the 'boot with silver button' position.)
Go to the top of the page
 
+Quote Post
gabs5807
post Mar 5 2019, 12:07 PM
Post #51





Group: Members
Posts: 14
Joined: 10-November 18
From: Germany
Member No.: 836,392



Hello Adam,
many thanks for the debian stuff. I'm also using a trible boot (debian, Sailfish and Android - only 4GB for that ;-)).
And so i'm also very interested in a solution which allow me to boot debian and Sailfish. So you can also count on me for testing proposes.
At the moment i did not update to the licenced Sailfish because of losing debian :-( which i did not want.
So if you have something please let me know. May be i cannot install it right now (i first have to order a Sailfish licence but i will order it if a solution is available).

Again many thanks

Gabriel

Btw. i think at tjc (together.jolla.com) you can also find some information about the Sailfish lvm configuration - and many more ..

QUOTE(Adam Boardman @ Mar 3 2019, 11:36 PM) *
Cool, thanks, currently thinking of a plan that would involve dd'ing a new boot image to one of your bootX spots, that will look for an MMC card with a stretch.img.gz and a stretch.config.txt file on it. The config would say what space to allocate, and do the resize, copy, etc. Will send you link when we have something to test.
Go to the top of the page
 
+Quote Post
mgfm99
post Mar 6 2019, 08:58 AM
Post #52





Group: Members
Posts: 12
Joined: 2-March 18
Member No.: 818,566



QUOTE(Adam Boardman @ Mar 3 2019, 10:36 PM) *
Cool, thanks, currently thinking of a plan that would involve dd'ing a new boot image to one of your bootX spots, that will look for an MMC card with a stretch.img.gz and a stretch.config.txt file on it. The config would say what space to allocate, and do the resize, copy, etc. Will send you link when we have something to test.


V slightly off topic: I don't know if you have seen this, but on the talk.maemo.org website there are instructions for running an xwayland image in a chroot on Sailfish. The relevant scripts are instructions are all stored on github at https://github.com/elros34/sailfish_ubu_chroot?files=1

This loads a xfce4 ubuntu image which works with the Gemini. The current script copies over the keyboard definition from Sailfish - and this works partially with the Gemini but has the same problems that running KDE with the old Debian TP2 image had - various keys are dead; and also the Fn key is not recognized.

Do you think there would be a way of linking Debian TP3 so one can use it as an image within Sailfish under xwayland, but with a working keyboard unlike the current XFCE4?
Go to the top of the page
 
+Quote Post
gabs5807
post Mar 7 2019, 12:09 PM
Post #53





Group: Members
Posts: 14
Joined: 10-November 18
From: Germany
Member No.: 836,392



QUOTE(Adam Boardman @ Mar 3 2019, 11:36 PM) *
Cool, thanks, currently thinking of a plan that would involve dd'ing a new boot image to one of your bootX spots, that will look for an MMC card with a stretch.img.gz and a stretch.config.txt file on it. The config would say what space to allocate, and do the resize, copy, etc. Will send you link when we have something to test.


Hello Adam,
using an own boot partition on the Sailfish LVM would also allow to use the same /home (if somebody wish) rolleyes.gif .
Sailfish use the user nemo with following IDs (i take it from my FP2 not from an original SailfishX, but it should be the same - may be @idc could check this?):

$ id
uid=100000(nemo) gid=100000(nemo) groups=39(video),100(users),990(ssu),991(timed),995(oneshot),1000(system),1002(b
uetooth),1003(graphics),1004(input),1005(audio),1006(camera),1013(media),1023(me
ia_rw),1024(mtp),100000(nemo)
$ id

Using the same /home would allow access the SailfishX nemo account from debian and vice versa with out splitting up the /home partition in two separate partitions.
May be some security reasons speak again this approach, but if the PDA is used as a single user system it should work (and if someone will split access rights it is possible to use an other id for the gemini account on the debian system).
Using the same ID for nemo and gemini require a symlink on home from /home/gemini (or an other account if required) to /home/nemo.

Only my thought - should be discussed wink.gif ..
Go to the top of the page
 
+Quote Post
idc
post Mar 7 2019, 02:31 PM
Post #54





Group: Members
Posts: 29
Joined: 22-June 18
Member No.: 824,860



QUOTE(gabs5807 @ Mar 7 2019, 08:09 PM) *
... may be @idc could check this?):

$ id
uid=100000(nemo) gid=100000(nemo) groups=39(video),100(users),990(ssu),991(timed),995(oneshot),1000(system),1002(b
uetooth),1003(graphics),1004(input),1005(audio),1006(camera),1013(media),1023(me
ia_rw),1024(mtp),100000(nemo)
$ id


Typing the same command on my gemini SFOS gives the result below (so some minor differences?):
uid=100000(nemo) gid=100000(nemo) groups=39(video),100(users),991(ssu),992(timed),993(oneshot),996(input),1000(sys
em),1002(bluetooth),1003(graphics),1005(audio),1006(camera),1013(media),1024(mtp
,3003(inet),100000(nemo)

Hope that helps
Ian
Go to the top of the page
 
+Quote Post
Adam Boardman
post Mar 9 2019, 06:28 AM
Post #55





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



A first bash at an (untested) LVM install.

You'll need an SD card with a ext4 partition containing: You may omit NEW_LV_SIZE from the config to allow the new volume to take the remaining space after the home partition is reduced in size. Though having both smaller and then online growing whichever happens to need extra space first might be a nice way to use the system.

You'll need to flash/dd a new boot image:The boot image only attempts an install if it fails to find the volume to mount, so no need to flash a different kernel if it works, reboots should take you back to the installed system.

Note: I've not tried this out, so only guinea pigs who are happy to go back to the flashing station should try it out... You may also like to pre-review the scripts geminipda
Go to the top of the page
 
+Quote Post
idc
post Mar 10 2019, 04:45 AM
Post #56





Group: Members
Posts: 29
Joined: 22-June 18
Member No.: 824,860



Thanks, Adam. I've ordered an SD card and will have a go when it arrives. Will let you know how it goes.
Go to the top of the page
 
+Quote Post
gabs5807
post Mar 10 2019, 10:32 AM
Post #57





Group: Members
Posts: 14
Joined: 10-November 18
From: Germany
Member No.: 836,392



QUOTE(Adam Boardman @ Mar 9 2019, 03:28 PM) *
A first bash at an (untested) LVM install.

You'll need an SD card with a ext4 partition containing: You may omit NEW_LV_SIZE from the config to allow the new volume to take the remaining space after the home partition is reduced in size. Though having both smaller and then online growing whichever happens to need extra space first might be a nice way to use the system.

You'll need to flash/dd a new boot image:The boot image only attempts an install if it fails to find the volume to mount, so no need to flash a different kernel if it works, reboots should take you back to the installed system.

Note: I've not tried this out, so only guinea pigs who are happy to go back to the flashing station should try it out... You may also like to pre-review the scripts geminipda


Hello Adam,
may thanks for files. I hope i can install it next weekend.
About the linux-boot-lvm-stretch.img, which boot (boot, boot2, or boot3) device i have to use for dd?
I created a Gemini_x27_A4GB_L52GB_Multi_Boot.txt with 'default boot' SailfishX, (second is recovery) and third is TWRP recovery and fourth is Android.

I think i can scaling down the SailfishX about 10GB.
If i'm able to set the German keyboard on SailfishX and debian without booting Android (last time i didn't work :-(), i also will delete the Android partition ;-).


Go to the top of the page
 
+Quote Post
Adam Boardman
post Mar 10 2019, 05:10 PM
Post #58





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



I messed up those images, so some new ones apologies if you downloaded them already.

You'll need an SD card/USB memory stick with a partition containing:You may omit NEW_LV_SIZE from the config to allow the new volume to take the remaining space after the home partition is reduced in size. Though having both smaller and then online growing whichever happens to need extra space first might be a nice way to use the system.

You may also omit LV_TO_REDUCE_NAME from the config if you already have enough space available in your volume group.

You'll need to flash/dd a new boot image:This time I have test it, granted on a slightly different setup, I put an SD card in, created a LVM VG of planetlinux (the scripts prefer this to sailfishos though should boot/install to whichever is available), I then inserted a USB memory stick with the config & img files (FAT32 commented out the TO_REDUCE lines as with a fresh VG there is nothing to reduce), flashed the boot image to my choice of bootX and rebooted into that with the appropriate key combination. It took just under an hour for the actual install to happen, uncertain if that is due to the XZ compression applied to the image or the slowness of my SD/USB cards. This does of course mean that you could create the LVM setup on a desktop with a SD card reader and just do the flash/dd of the boot image on the device. I could write either of these up in more detail if needed. Its also occurred to me that you don't need to name the new LV in the config file as that is set from the cmdline inside the boot image which was one of the issues I had before where the config was making a different LV to the one the boot image was going to try to boot.

gabs5807 - given your current selection of boots (your using all of them) you'll have to sacrifice one, I'd probably drop TWRP to start with myself... but whatever you use the least.

Something I've noticed with this fresh image is that the QTerminal console fonts seem to be lacking a bunch of characters, fn+y|u, shift+fn+y|u etc gave you arrow pictures in different directions, now they give nothing. Must be a package missing from the minimal desktop install.
Go to the top of the page
 
+Quote Post
idc
post Mar 17 2019, 01:40 PM
Post #59





Group: Members
Posts: 29
Joined: 22-June 18
Member No.: 824,860



QUOTE(Adam Boardman @ Mar 11 2019, 01:10 AM) *
<snip> I could write either of these up in more detail if needed. Its also occurred to me that you don't need to name the new LV in the config file as that is set from the cmdline inside the boot image which was one of the issues I had before where the config was making a different LV to the one the boot image was going to try to boot.

gabs5807 - given your current selection of boots (your using all of them) you'll have to sacrifice one, I'd probably drop TWRP to start with myself... but whatever you use the least.
</snip>


Hi Adam,
My new sd card is now arrived. And I realised (thanks to your mention) that I can of course use a USB stick to hold the files. The offer of a more detailed write up--a bit more hand-holding-- would therefore be of great help to me. (I haven't messed with LVM partitions before) I have sailfish on boot 1 (i.e. default), and Android at the last boot (holding esc and silver button together). Ideally, I would like to avoid having to reinstall the Android.
Available, then, I have 40GB devoted to 'Linux' (i.e. Sailfish at present--I'm sure this could be reduced to 16GB or less, leaving 24GB to Debian); and 16 GB to Android. I have 128GB sd card (currently in vfat or xfat--still in its packet--what's the best way to format this to make it available to Debian). And I've a 16GB USB stick, which sounds like the way to get the gemian-config.txt and .img onto the whole thing.
For the initial step, of resizing the Sailfish partition, I presume I need to be in something other than Sailfish?€”so presumably, as I only have SFOS and Android on my gemini as yet, that has to be done when I'm booted into Android, is that right? So I presumably need to install some sort of terminal? Or is there another route ...?
Gabriel, did you manage to find time this weekend? How did it go?
Looking forward to trying it out.
All the best,
Ian
Go to the top of the page
 
+Quote Post
Adam Boardman
post Mar 17 2019, 03:49 PM
Post #60





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



You have two options from where you are:

1. Ignore the SD card (or use it for the install source), and keep the android and sailfish on the primary eMMC but also add Gemian: This would involve dropping the previously mentioned install files on the USB or SD and plug it in, 'dd' from sailfish terminal* or use the flash tool to install the boot image to boot2 (leaving your android and sailfish on boot and boot3). Reboot and pick boot2 (silver button), the install process will do the LVM resize and install for you (probably take an hour, so make sure your fully charged or powered).

* - Kernel/boot image install from terminal, sailfish might hide terminal until you enable dev mode:
wget https://gemian.thinkglobally.org/system/lin...-lvm-gemian.img
sudo dd if=linux-boot-lvm-gemian.img of=/dev/disk/by-partlabel/boot2

2. Leave the primary eMMC with android and sailfish mostly untouched, place the SD card into the Gemini and install Gemian to that: Still needs the boot image 'dd' from sailfish terminal* then the following to setup the LVM:

Re-partition the full SD card to an LVM host (will clear the contents, could also delete and re-create the fat partition smaller if wanted):
sudo fdisk /dev/mmcblk1
d - delete the current partition
n - create a new one (selecting defaults will fill the disk)
t - change the type, pick 8e (LVM)
p - print the partition table (keep a note of the relevant /dev/...)
w - write table to disk and exit

Create the volume group (using name planetlinux will keep it entirely separate from sailfishos) on the SD card (replacing the LVM partition as above):
sudo lvm vgcreate planetlinux /dev/mmcblk1p1

Edit the config file as suggested (removing resize bits) and put the install files on the USB stick and reboot into boot2 (silver button only). This will do the lvm create and install (will similarly take ages).
Go to the top of the page
 
+Quote Post

6 Pages V  « < 2 3 4 5 6 >
Reply to this topicStart new topic
6 User(s) are reading this topic (6 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2019 - 09:34 AM