maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview (https://talk.maemo.org/showthread.php?t=96932)

edp17 2019-11-15 00:57

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
How did you know what need to change in the base.c file? I would never find out or find it on the internet either because I have no idea what to look for.

edp17 2019-11-15 01:08

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
It crashed again:
Code:

Error <repo>[11/15 01:04:52] : Could not run transaction.
There is no error in the libhybris.log because the build completed fine. This error happens when it is creating the rootfs.
There are a loads of warning before the error. (like
Code:

Warning[11/15 01:04:51] : installing package libhybris-tests-0.0.5.33+master.20191115005151.f36f599+libhybris.7cde7df-1.armv7hl needs 344MB on the / filesystem
Warning[11/15 01:04:51] : installing package strace-5.2+git1-1.3.1.jolla.armv7hl needs 344MB on the / filesystem

)

What I have done was:
(in the sdk, not in chroot)
- changed the kernel config and base.c then:
cd $ANDROID_ROOT
source build/envsetup.sh
export USE_CCACHE=1
breakfast $DEVICE
make -j$(nproc --all) hybris-hal

- then: hybris/mer-kernel-check/mer_verify_kernel_config ./out/target/product/$DEVICE/obj/KERNEL_OBJ/.config

- then:
cd $ANDROID_ROOT
rpm/dhd/helpers/build_packages.sh

edp17 2019-11-15 01:16

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have run 'sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ref --force' and now re-running the 'build_packages.sh'

...and it has crashed again with the same message 'Error <repo>[11/15 01:29:18] : Could not run transaction.'
Hmm. it worked before and the changes I made in the kernel shouldn't cause an effect on the repos.

edp17 2019-11-15 01:53

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I may know. The environment variable RELEASE is set to 3.2.0.12 but at this point (building the HAL) it should be unset. I change it and give another go then go to sleep.

edp17 2019-11-15 01:56

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
By the way I looked for the file droid-hal-device.conf on the phone and replaced the 0 with 1. Now the touch screen works indeed but the wifi and mobile net do not. (Probably because of the cm13 kernel.) Anyway, at least I have something to play until the build is running. :)

Edit: Interesting, there is no /android folder :eek:

edp17 2019-11-15 02:51

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I was right, that RELEASE variable has caused the problem! Once I unset it, the HAL build is completed. :D
Then soon later the new image has also freshly baked. :cool:

Thanks both of you @mautz and @juiceme. (Probably I will need some more support to finalize the bits and bobs.;))

I have uploaded the second image for you. (I have not tested yet.) You can download it from here: --removed--

Good night everybody. :)

Edit: Latest info and image is available in my signature or here

edp17 2019-11-15 08:19

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have installed this with the cm12-1 2016 android base (It is available in the first post). Sailfish boots up and the touch screen also works but:
- the scale of icons (and text in the apps) is not right, everything is tiny on the screen
- there is no network (wifi doesn't find any network and mobile data cannot connect either)
- the file system structure is different (there is no /android folder, the /sdcard is not accessible even with root)
It seems there are a lot to fix but at least I see/can do something on the screen! ;)

mautz 2019-11-15 09:26

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Maybe this will fix the non working wifi.

https://github.com/mautz-kernel/andr...08e1c711f44b4a

Add
Code:

%define pixel_ratio 2.0
to droid-hal-hammerhead.spec. This could fix the wrong scaling.

EDIT:
Fixing the firmware path will indeed fix wifi.
AlienDalvik seems to work.

edp17 2019-11-15 10:23

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
Quote:

Originally Posted by mautz (Post 1562051)
Maybe this will fix the non working wifi.

https://github.com/mautz-kernel/andr...08e1c711f44b4a

Add
Code:

%define pixel_ratio 2.0
to droid-hal-hammerhead.spec. This could fix the wrong scaling.

EDIT:
Fixing the firmware path will indeed fix wifi.
AlienDalvik seems to work.


Thank you! The working AD is very good news. That was one of the main reasons I started this. :cool:
Can you double check whether the camera works on android apps, please?

edp17 2019-11-15 10:25

Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
 
I have compared the dmesg output from my sfos2.0.4.13 with ad and dmesg output of this new image. There is a hell of a lot difference but I cannot put them into pastebin because my access now is restricted.


All times are GMT. The time now is 21:52.

vBulletin® Version 3.8.8