![]() |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
No, do not abort. You need the complete Cyanogenmod source not only the Nexus specific device bits.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
My 100GB /home ran out of space again. :mad:
I deleted everything from $ANDROID_ROOT, updated my local manifest to point to John's repos and re-run the repo init and the sync. The sync is running but I am going to get some sleep. Hopefully by the morning I will have everything is downloaded again and at the night I can try to compile the kernel again. (Unless I fall asleep. :o) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
(I am not sure why the disk has filled up though. Maybe when I changed the local manifest and re-run the sync it kept all the previous stuff.) I am just watching the console where the syn is running and seemingly it is downloading stuff for cm-11.0 and sony and other devices. Hmm. I think this happened when I used the cm-12.1 branch from the CM too. I will check in the morning. I use this in my local manifest now: Code:
<project path="device/lge/hammerhead" name="RealJohnGalt/android_device_lge_hammerhead" revision="cm-12.1" /> Code:
Checking out files: 100% (195/195), done. Edit2: The kernel compilation also is nicely done: Code:
#### make completed successfully (03:10 (mm:ss)) #### Now, I can step forward to try building the HAL! :cool: |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
That's what i call good news :)
But with this hammerhead.xml file, you downloaded the normal cm12.1 base and not the modified version from John ;) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I have a feeling that I have to iterate this step a few times. :o Before I started the compilation double checked the CONFIG_SECURITY_SELINUX_BOOTPARAM was unset and commented out and the CONFIG_AUDIT was not in there at all in the 'cyanogenmod_hammerhead_defconfig'. I also added the selinux=0 at the end of BOARD_KERNEL_CMDLINE in 'BoardConfig.mk'. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Although I think dealing with the HAL also will be a bumpy ride. :rolleyes: |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Did your kernel pass the mer-kernel-check?
Since cm12.1 is a relatively old base, i'll cross my fingers that ou'll don't run into heavy problems with the droid hal part! |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Hopefully I can continue this night. Yes, this is an old base so in theory the one I downloaded should also work. I am also not at all sure about the differences between the original cm-12.1 and John's version. Plus I don't know the benefits/disadvantages of using this or that. My current SFOS 2.0.4.13 installation is using cm-12.1-20160704-UNOFFICIAL-hammerhead-nocheck.zip base but honestly I don't have a clue whose fork is this. Plus what differences are (if there are any) between this base and the one I am about to build. By the way, I am also not sure whether I can use the cm-12.1-20160704-UNOFFICIAL-hammerhead-nocheck.zip base with my Sailfish.zip once that is done. So, I am totally :confused::confused: about these. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Well, there are a lots of warning but no error. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have done steps
When I ran 'rpm/dhd/helpers/build_packages.sh' got an error: Code:
Error building the cache: |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Well, I think it is easier to take John's defconfig and overwrite the one in the arch/arm/configs. Then recompile the kernel. and try this step again.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have taken John's defconfig and re-ran these:
Code:
source build/envsetup.sh Code:
:30:26: fatal error: mach/msm_rtb.h: No such file or directory |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
John added many commits to the normal cm12.1 kernel, that is why his defconfig does not work.
I would stay with stock cm12.1 kernel and see if everything works in Sailfish, because you do not know what and why John added some commits and maybe they are not necessary anymore... But if you want to try his kernel, kernel download is only around 300MB ;) Just go through the list of mer kernel check and make the changes to your defconfig. The necessary options can be found here: https://github.com/mer-hybris/mer-ke...el_config#L196 |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Okay. Rather than downloading the whole again, I only wanted to download John's kernel.
So, I changed the local manifest to point to John's kernel (into hybris-12.1 branch) and deleted the kernel folder in the android tree. Then I ran the 'repo sync --fetch-submodules' expecting it to download the kernel into the kernel subfolder. Instead of that, it gave me an error saying the branch 'hybris-12.1' doesn't exist. :mad: Finally, I manually created the kernel/lge/hammerhead folders and manually cloned (git clone) John's kernel into it. The kernel compiled fine with less warning. So far so good. :) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
But all of these were only warning, the error was somewhere else. So, I am going back to use the cm-12.1 kernel. Then trying to fix the error that I got during the rpm packaging. It looks like the problem is with the adaptation0 repo. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Now, I am back on kernel cm-12.1 and it compiled, passed the mer-chek. My scratchbox2 still works (compiles and runs the 'Hello World!' test program.) I re-ran the 'rpm/dhd/helpers/build_packages.sh' and got the same error. Now I am trying to fix this.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
You need to refresh the repositories in sb2.
Code:
sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper ref --force |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Thank you for the link to the defconfig mer-kernel-check! It helped a lot! :D Edit: It warned me when I re-compiled/ran the 'Hello world!' but it worked. But that time the kernel was the same. Now I changed some configs and recompiled so definitely need to refresh. ;) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Good work.
Sorry, i've misread the eror message, the packages do not need to be updated, there seems to be another problem. Try to ignore it and see if the build_packages script does its job. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Interesting. The 'rpm/dhd/helpers/build_packages.sh' has errorred again with CONFIG_IKCONFIG_PROC is invalid (unset) however it's value is y in the defconfig. Hmm. :eek:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Take a look at the .config file in the kernel folder. Is it still set to y in this file?
It is always a good idea to look at LinuxKernelDriverDatabase when you get such errors. https://cateee.net/lkddb/web-lkddb/IKCONFIG_PROC.html There you can see this options dependencies. Check if these are set to y too. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
But both (CONFIG_IKCONFIG_PROC and CONFIG_PROC_FS) are set to y in the defconfig. Yeah, I missed the doc says CONFIG_IKCONFIG && CONFIG_PROC_FS not CONFIG_IKCONFIG_PROC. :o I should have been doing this during the day when I am fresher. :D |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I have found it. However the error says:
Code:
ERROR: CONFIG_IKCONFIG_PROC is invalid Now, kernel config fixed, kernel recompiled and the 'rpm/dhd/helpers/build_packages.sh' is running. :D |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
It takes for ages. :( It currently is building the ngf-plugin-native-vibrator.spec.
I need some sleep. Will report tomorrow. Again big THANK YOU for @mautz!!! :D |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
It looks like the process stuck at building the ngfd-plugin-native-vibrator.spec. I has been doing that step for 4.5 hours.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Then you need to restart it, i think libhybris takes the most time to build.
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I have double checked the relevant section in hadk-faq. It suggests to change some values in 'patterns/templates/jolla-hw-adaptation-@DEVICE@.yaml' I have checked both and they are already set as Code:
ngfd-plugin-native-vibrator So, I did the 'sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper rm ngfd-plugin-droid-vibrator' what the hadk-faq suggested and restarted the 'rpm/dhd/helpers/build_packages.sh'. It will have about 8 hours to run while I get home, so I am very curious about the result. :) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
My other concern is the message
Code:
Repository 'adaptation0' is invalid. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
It is much much better! Now it already has passed the step 'ngfd-plugin-native-vibrator.spec' where it previously hang. How that wonderful would be if it completes in an hour and I can start building the image. In that case in this evening I might can flash it on the phone to try. :eek:
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
It has completed!
I guess this is not an error Code:
Pool started (with 5 workers) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
...and the step '8.5 Building the Image with MIC' has also started. :cool:
Edit1: "Info[11/14 08:50:07] : Finished." :cool: :D :D :D Edit2: Installed on the phone. :) Edit3: ... but it doesn't boot. :( and cannot be ssh to the phone either. :confused: Anyway, ...to be continued. :) |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
And does it work?
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
I have flashed with the cm-12.1-20160704-UNOFFICIAL-hammerhead-nocheck.zip base (mentioned here). That might can cause this behaviour? |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
I don't think so, looks like there are some things missing in the kernel. Can you telnet into the device via USB(192.168.2.25:23)?
|
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
The hadk says all errors can be ignored if the zip file is generated. Maybe it is not entirely true :). I have went through the kernel log file but there is no error just warnings. Plus I didn't get any error messages on the screen during the build or maybe they written out into files that I didn't check. :rolleyes: Now I am downloading an older cm-12.1 image (a snapshot from 2015) and trying that. I will report once downloaded, installed and tested. Edit: The cm-12.1 image (snapshot 2015) that I had didn't install. (The TWRP rebooted itself when tried to flash with the sailfish image.) Therefore I re-installed the cm-12.1 (20160704-UNOFFICIAL) with the new Sailfish image. Later I will try to telnet into it. |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
However I can ping the device, so it somehow is connected to the PC. (I tried IP 192.168.2.15 not 192.168.2.25.) The 'lsusb' sees the device: Code:
Bus 002 Device 010: ID 18d1:d001 Google Inc. Code:
T: Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 10 Spd=480 MxCh= 0 |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Code:
Mer Debug telnet on port 2323 on rndis0 192.168.2.15 - also running udhcpd |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
Quote:
Edit: Well, almost the same: Code:
could not resolve 192.168.2.15:2323/telnet: Name or service not known |
Re: SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview
adb devices shows nothing:
Code:
edp17@edp17-ubuntu:~$ adb devices |
All times are GMT. The time now is 13:52. |
vBulletin® Version 3.8.8