maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Porting Sailfish to N9 (https://talk.maemo.org/showthread.php?t=90761)

qole 2013-12-11 07:56

Re: Porting Sailfish to N9 (or other)
 
I managed to get Max's Vietnam image upgraded to the newest version (1.0.1.10), this time without the blank screen.

It is very important to remove the adaptationN repos and also the qualcomm repo, and put back the N9/950 repos. This seems to ensure a safe upgrade.

I will see if I can wipe the personalization and package it up, maybe tomorrow.

saleki 2013-12-11 08:44

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by qole (Post 1394804)
I get weird crackling randomly from the speakers.

Definitely odd.

Same here. Weird crackling from speakers apears...

milanjakob 2013-12-11 09:47

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1394803)
No need to install anything of those, you can choose what you want.

After you have installed ubiboot you do not need to flash kernels any more, you just load them with ubiboot. It is a boot loader, that is what it is used for :D

so i install ubiboot and where do i continue after that?

when i installed ubiboot i couldnt boot in to any os, even not harmattan.

thanks

juiceme 2013-12-11 09:53

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by milanjakob (Post 1394854)
so i install ubiboot and where do i continue after that?

when i installed ubiboot i couldnt boot in to any os, even not harmattan.

thanks

Have you read the ubiboot documentation?
Or read the relevant discussion thread about it?

yuzmemak 2013-12-11 10:40

Re: Porting Sailfish to N9 (or other)
 
Hi,

I followed tutorial (long) And jump to 6d without installing more ubiboot control.

when I try to mount after devel-su as root

mount /dev/mmcblk0p4 /sailfish

I get following error;

permission denied (are you root?)

I googled and find nothing.

Any help?

flip1199 2013-12-11 10:51

Re: Porting Sailfish to N9 (or other)
 
Step W - Install Sailfish using only Windows (thanks mikecomputing)
After installing the MOSLO kernel, allow it to repartition your device. Disconnect and boot into Harmattan.
Wa - Download Sailfish image of choice
Wb - In Harmattan, install developer mode if you haven't already. Connect the phone as "Mass Storage Device"
Wc - Copy vgrade-sailfish_proximity-workaround.tar.bz2 to the root of your MMC.
Wd - Disconnect the phone from the PC.
We - Launch Terminal on Harmattan (or SSH in)
devel-su
rootme #or your root pass
cd /home/user/MyDocs/
ls
# you should see all your MyDocs and vgrade-sailfish_proximity-workaround.tar.bz2

mkdir /sailfish
mount /dev/mmcblk0p4 /sailfish
time tar --numeric-owner -xvjf vgrade-sailfish_proximity-workaround.tar.bz2 -C /sailfish/
# this will take a while as its extracting on the handset
# now exit out or jump to Enable root SSH access on Sailfish, starting at "mount -o bind /proc /sailfish/proc"


So up until this point everything was ok. Now i'm stuck on " mount /dev/mmcblk0p4 /sailfish"

It error our saying " mount: permission denied (are you root?)"

when i opened terminal i did devel-su and rootme with no errors. Any ideas?

yuzmemak 2013-12-11 10:54

Re: Porting Sailfish to N9 (or other)
 
hi,

same as me, even after posting I tried step 6a and 6b but my n950 does not enter maintenance mode as mentioned.

juiceme 2013-12-11 11:10

Re: Porting Sailfish to N9 (or other)
 
@yuzmemak, @flip1199, Harmattan only ever asks "(are you root?)" if you are not root, meaning your "devel-su" command did not work.

What did you see after typing "devel-su" ?

flip1199 2013-12-11 11:16

Re: Porting Sailfish to N9 (or other)
 
After I typed in devel-su it asked me for password, I put in rootme hit enter then a couple of lines down it showed :

Busybox v1.20.0.git (Meego 3:1.20-0.2+0m8) built-in shell (ash) enter "help" for a list of built-in commands.

yuzmemak 2013-12-11 11:20

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1394891)
@yuzmemak, @flip1199, Harmattan only ever asks "(are you root?)" if you are not root, meaning your "devel-su" command did not work.

What did you see after typing "devel-su" ?

Hi,

As I did before, when installing nitdroid (now removed), I always see;

password: rootme I use

BusyBox v1.20.0 git ………..
Enter help ……..

#

waits my command

when I ask whoami

answer is root.

Is in it strange?

juiceme 2013-12-11 11:51

Re: Porting Sailfish to N9 (or other)
 
@yuzmemak, @flip1199, well if you're root as it looks like, then there cannot be much else hindering you than aegis I guess.
Are you 100% ceratin that you are running in Open Mode?

coderus 2013-12-11 11:57

Re: Porting Sailfish to N9 (or other)
 
check with [/usr/bin/aegis-constrain mode open]

flip1199 2013-12-11 12:02

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by coderus (Post 1394919)
check with [/usr/bin/aegis-constrain mode open]


ran that and got "mode=open: Yes"

yuzmemak 2013-12-11 12:04

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by coderus (Post 1394919)
check with [/usr/bin/aegis-constrain mode open]

hi,

mode=open: Yes

yuzmemak 2013-12-11 12:16

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1394915)
@yuzmemak, @flip1199, well if you're root as it looks like, then there cannot be much else hindering you than aegis I guess.
Are you 100% ceratin that you are running in Open Mode?

Hi,

What I am suspecting

This is my second try. Actually I tried after removing nitdroid without new harmattan image porting. And this try ended with no success. But what I don't remember is, did I got same error (permission denied) May be that try was not successful due to same error. But I don't remember did I get.

and I flash harmattan again.

Could be a change this ***0p4 folder was created on my first try and owner is different than root?

Is this quest ridiculous?

juiceme 2013-12-11 12:22

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by yuzmemak (Post 1394927)
Hi,

What I am suspecting

This is my second try. Actually I tried after removing nitdroid without new harmattan image porting. And this try ended with no success. But what I don't remember is, did I got same error (permission denied) May be that try was not successful due to same error. But I don't remember did I get.

and I flash harmattan again.

Could be a change this ***0p4 folder was created on my first try and owner is different than root?

Is this quest ridiculous?

whatever the owner of /sailfish be, root should be able to mount a partition on top of it...

What you could do, of course is to make another folder, whatever name as it is called sailfish on the document just for your convenience.

So, try to:
mkdir /secondtry
mount /dev/mmcblk0p4 /secondtry

qu3 2013-12-11 13:09

Re: Porting Sailfish to N9 (or other)
 
Hello everyone.

I need all the help I can get from you guys. I am not so sure if there is already a thread about this or not. I am new here. :)

After the thread on "Porting Sailfish to N9 (or other)" is out, I have decided to go and try it out.
It was going really well until I was stuck at Step 6 "Ubiboot and Sailfish". It is the Ubiboot that has I am having problems with.

The instruction said, "Leave the cable plugged in and allow ubiboot to enter maintenance mode." And that is what I did. I am not so sure what happens but this is the output,

Welcome to N9 Ubiboot ver. 0.3.4
(Boot loader is based on MOSLO ver. 0.0.13.1)

Try 1 (0)
Partitions exported successifully via USB
Configured 192.168.2.15 on USB
Starting DHCP server, offering 192.168.2.100

Starting TELNET server

And that's just about it...I haven't unplugged the cable up till now and I don't know what to do next? Should I pull the cable? What is maintenance mode? :confused:

I apologize for all the questions. As I have said it earlier I am new and trying to get Sailfish onto my N9. Please help me! :(

yuzmemak 2013-12-11 13:30

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1394929)
whatever the owner of /sailfish be, root should be able to mount a partition on top of it...

What you could do, of course is to make another folder, whatever name as it is called sailfish on the document just for your convenience.

So, try to:
mkdir /secondtry
mount /dev/mmcblk0p4 /secondtry

Hi,

I did second folder and try to mount and same error again

permission denied

RXShorty 2013-12-11 13:47

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by qu3 (Post 1394956)
Hello everyone.

I need all the help I can get from you guys. I am not so sure if there is already a thread about this or not. I am new here. :)

After the thread on "Porting Sailfish to N9 (or other)" is out, I have decided to go and try it out.
It was going really well until I was stuck at Step 6 "Ubiboot and Sailfish". It is the Ubiboot that has I am having problems with.

The instruction said, "Leave the cable plugged in and allow ubiboot to enter maintenance mode." And that is what I did. I am not so sure what happens but this is the output,

Welcome to N9 Ubiboot ver. 0.3.4
(Boot loader is based on MOSLO ver. 0.0.13.1)

Try 1 (0)
Partitions exported successifully via USB
Configured 192.168.2.15 on USB
Starting DHCP server, offering 192.168.2.100

Starting TELNET server

And that's just about it...I haven't unplugged the cable up till now and I don't know what to do next? Should I pull the cable? What is maintenance mode? :confused:

I apologize for all the questions. As I have said it earlier I am new and trying to get Sailfish onto my N9. Please help me! :(

Hello,

Are you using a linux system to do this on?
Or Windows?
Because if you have Ubuntu for example your screen will show you some extra mounted devices where you should copy some files.

Regards.

qu3 2013-12-11 13:55

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by RXShorty (Post 1394976)
Hello,

Are you using a linux system to do this on?
Or Windows?
Because if you have Ubuntu for example your screen will show you some extra mounted devices where you should copy some files.

Regards.

Nope. I am currently using Windows. Unfortunately, I have never used a Linux-based OS in my life before. :( How can I make the extra mounted devices visible in Windows?

ggabriel 2013-12-11 13:57

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by qu3 (Post 1394983)
Nope. I am currently using Windows. Unfortunately, I have never used a Linux-based OS in my life before. :( How can I make the extra mounted devices visible in Windows?

Oh, man, it would be so painful for you without any *nix experience... how about you install some Linux in a VM first and learn a few basics?

qu3 2013-12-11 14:08

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by ggabriel (Post 1394986)
Oh, man, it would be so painful for you without any *nix experience... how about you install some Linux in a VM first and learn a few basics?

Actually, I have thought about that. But I am not sure of which Linux OS should I use.

Thank you for your help. :)

RXShorty 2013-12-11 14:11

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by qu3 (Post 1394995)
Actually, I have thought about that. But I am not sure of which Linux OS should I use.

You should download Ubuntu 12.04 desktop.
And run it in a virtual box envoirment.

Windows is not going to fix your issue right now... :(

Tuoseli 2013-12-11 14:18

Re: Porting Sailfish to N9 (or other)
 
Been running Sailfish on my n9 for 2 days now and I have to say that I'm very impressed how well it already works. I'm looking forward for a fully working port! Good job!

Although I have one little problem I cant solve myself. I cant login to a Jolla account. I know I have one and it should be verified. But while I try to login to it through accounts or store, it gives just a login problem message telling me to skip or try again. Does anyone have any idea why is this happening? And is there any way to install apps yet?

qu3 2013-12-11 14:21

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by RXShorty (Post 1394999)
You should download Ubuntu 12.04 desktop.
And run it in a virtual box envoirment.

Windows is not going to fix your issue right now... :(

OK. I will try it out. Thanks for helping me. :D

RXShorty 2013-12-11 14:24

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by qu3 (Post 1395005)
OK. I will try it out. Thanks for helping me. :D

Not a problem... I have tried it from a Windows machine after I succesfully did it on my Ubuntu system.
Windows failed, couldn't fix all steps.

Good luck!

HELLASISGREECE 2013-12-11 14:50

Re: Porting Sailfish to N9
 
Quote:

Originally Posted by jklubi (Post 1360264)
Well i like both the N9 and the N900, but i think they have outlived their usefulness.
The target now should be on Nexus 4 and Nexus 7, even Ubuntu is using that as the basis.

Don't forget the GNexus as well : )

danielcbit 2013-12-11 15:05

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1394805)
All Sailfish images use Wayland, you cannot do it without :D

Thanks! I thought that some how it was still using X. Glad that it is not the case, although I thought that the speed would be better in N9 using wayland.

Also, is very body getting a correct reading of the battery levels? Mine is sitting in 87% forever. Yesterday I completely depleted my N9's battery and almost couldn't charge it. Had to use flasher and cold boot option to charge it to 10% to get it started. Plugging in the charger didn't work (i think it has something to do with ubiboot)

juiceme 2013-12-11 15:23

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by danielcbit (Post 1395026)
Also, is very body getting a correct reading of the battery levels? Mine is sitting in 87% forever. Yesterday I completely depleted my N9's battery and almost couldn't charge it. Had to use flasher and cold boot option to charge it to 10% to get it started. Plugging in the charger didn't work (i think it has something to do with ubiboot)

There are problems if you let your battery run dry, particulary with ubiboot since currently ubiboot 0.3.5 does not support BME that provides the charging algorithm. You need to boot past ubiboot to another OS, for example Harmattan that can charge the battery properly.

The same goes with Nemo/Sailfish, though, it has a working BME implementation so it should well be able to charge the device.
You propably have some configuration problem on your device if the battery meter does not read correctly and charging does not work.

danielcbit 2013-12-11 15:32

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by juiceme (Post 1395030)
There are problems if you let your battery run dry, particulary with ubiboot since currently ubiboot 0.3.5 does not support BME that provides the charging algorithm. You need to boot past ubiboot to another OS, for example Harmattan that can charge the battery properly.

The same goes with Nemo/Sailfish, though, it has a working BME implementation so it should well be able to charge the device.
You propably have some configuration problem on your device if the battery meter does not read correctly and charging does not work.

Ok, I'll take a look on that!

But first I need to get root access in Sailfish. I have vgrade-sailfish_r2.tar.bz2 installed right now. Which is the best way to get access? I enabled developer-mode but I can't get the usb0 interface to show up on my machine (Harmattan's developer mode works tough)
Also, which is the default password for logging in Sailfish's terminal?

Thanks!

Edit
------
su and then nemo or devel-su and nemo does not work under sailfish's terminal.

Edit 2
------

Isn't this missing in the .ks file? https://github.com/deztructor/contex...attery-n950-n9

coderus 2013-12-11 15:56

Re: Porting Sailfish to N9 (or other)
 
@danielcbit wayland using statefs, x11 using contexkit.

danielcbit 2013-12-11 16:21

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by coderus (Post 1395048)
@danielcbit wayland using statefs, x11 using contexkit.

Didn't know that. I'll look about it. Thanks!

juiceme 2013-12-11 16:29

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by danielcbit (Post 1395040)
su and then nemo or devel-su and nemo does not work under sailfish's terminal.

If it is like the real thing (Jolla device) then both the nemo and the root account have password locked out as default, which is A Good Thing, Really.

With the Jolla device you can set up the nemo-account password with GUI, but I have understood that you need to fix that in Sailfish/N9 by chrootingit in Harmattan and then using passwd to change the account passwords.
(actually it is enough just to change the nemo account password, and then use devel-su which effectively is same as sudo to gain root when in need...)

yuzmemak 2013-12-11 16:44

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by yuzmemak (Post 1394968)
Hi,

I did second folder and try to mount and same error again

permission denied

Hi,

Any idea why am I getting permission error, when trying mount sailfish?

what is the differences between devel-su and <ssh root@localhost>

Best Regards

billranton 2013-12-11 18:23

Re: Porting Sailfish to N9 (or other)
 
You'll get permission denied trying to use mount as root if you're not running the openmode kernel.

yuzmemak 2013-12-11 18:27

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by billranton (Post 1395092)
You'll get permission denied trying to use mount as root if you're not running the openmode kernel.

After

check with [/usr/bin/aegis-constrain mode open]

RESULT

mode=open: Yes

I think, I am in open mode.

Could be any other reason?

MAX9 2013-12-11 18:29

Re: Porting Sailfish to N9 (or other)
 
To get root on Sailfish:

/media/Alt_OS/etc/shadow #mount point

"remove all letters and numbers by name root between the first two :"

before:
root:$1$00Z6Bfjc$vlIKUOMHIavIABL1gNuy6/:16049:0:99999:7:::

after:
root::16049:0:99999:7:::

then you get root by typing su. Chance PW for root!

#passwd root

juiceme 2013-12-11 19:00

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by billranton (Post 1395092)
You'll get permission denied trying to use mount as root if you're not running the openmode kernel.

Actually, that might well be the reason.
I did not even think about this since I always run aegis-neutered kernels :D

So, @yuzmemak, @flip1199, the solution is that you flash the L2-fixed kernel to your device.

flip1199 2013-12-11 19:28

Re: Porting Sailfish to N9 (or other)
 
Well I think I found my issue. I redid everything and when I get to flashing openmode it goes to fast to read it so I print screened it and it errored out.

Error: SU_BEGIN_IMAGE_UPDATE_REQ terminated with error code 10: security failure

bb5_rdc_cert_read_failed
Devicelock ON: cannot flash unsigned image


Any idea how to remedy this?

flotron 2013-12-11 19:36

Re: Porting Sailfish to N9 (or other)
 
Quote:

Originally Posted by flip1199 (Post 1395127)
Well I think I found my issue. I redid everything and when I get to flashing openmode it goes to fast to read it so I print screened it and it errored out.

Error: SU_BEGIN_IMAGE_UPDATE_REQ terminated with error code 10: security failure

bb5_rdc_cert_read_failed
Devicelock ON: cannot flash unsigned image


Any idea how to remedy this?

http://talk.maemo.org/showpost.php?p...&postcount=512


All times are GMT. The time now is 23:36.

vBulletin® Version 3.8.8