Porting Sailfish OS to Samsung Galaxy S10 Plus in Mageia 8

Here wizards, magicians, sorcerers and everybody can rest a bit and talk about anything they like.

Just remember to respect the rules.

Porting Sailfish OS to Samsung Galaxy S10 Plus in Mageia 8

Postby Umeaboy » Jun 9th, '22, 04:12

I have downloaded the Sailfish OS HADK and I've ran it to a minor issue when adding the repo binary in the HABUILD_SDK chroot.
If you open page 15 in that pdf and the line/row that says You also need to install the repo command from the AOSP source code repositories, see Installing repo
and click to open the instructions to add the repo binary the export REPO + curl command underneath to download the repo binary works, but as soon as you try to add the said gpg key it fails because there's an s missing in --recv-keys, but it still fails to add the key.

Code: Select all
export REPO=$(mktemp /tmp/repo.XXXXXXXXX)
curl -o ${REPO} https://storage.googleapis.com/git-repo-downloads/repo
gpg --recv-key 8BB9AD793E8E6153AF0F9A4416530D5E920F5C65
curl -s https://storage.googleapis.com/git-repo-downloads/repo.asc | gpg --verify - ${REPO} && install -m 755 ${REPO} ~/bin/repo


I got a suggestion in the discuss ML to add the key with this command:

Code: Select all
gpg --keyserver keyserver.escomposlinux.org --recv-key 8BB9AD793E8E6153AF0F9A4416530D5E920F5C65


which seemed to work according to this output:

Code: Select all
gpg: key 16530D5E920F5C65: 2 duplicate signatures removed
gpg: /home/kristoffer/.gnupg/trustdb.gpg: trustdb created
gpg: key 16530D5E920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1


After creating the bin directory in ~ I run:

Code: Select all
curl -s https://storage.googleapis.com/git-repo-downloads/repo.asc | gpg --verify - ${REPO} && install -m 755 ${REPO} ~/bin/repo

which returns this:

Code: Select all
gpg: Signature made Thu Feb  3 21:59:53 2022 UTC
gpg:                using DSA key 8BB9AD793E8E6153AF0F9A4416530D5E920F5C65
gpg: Can't check signature: No public key
gpg: Signature made Thu Feb  3 21:59:53 2022 UTC
gpg:                using RSA key A34A13BE8E76BFF46A0C022DA2E75A824AAB9624
gpg: Can't check signature: No public key
gpg: Signature made Thu Feb  3 21:59:54 2022 UTC
gpg:                using EDDSA key E1F9040D7A3F6DAFAC897CD3D3B95DA243E48A39
gpg: Can't check signature: No public key


and if I'm not mistaken by the output the signature works for ~/bin/repo

Now the binary should work, right?

Wrong!

To see if the repo command is seen I type re and press Tab to complete and this is everything that starts with re.
I must be blind, because I fail to see the name repo even though I followed the instructions by the book:

re
read readelf readonly realpath remove-shell renice resize2fs resizepart return
readarray readlink readprofile reboot rename.ul reset resizecons resolvectl rev

echo $PATH gives me:

Code: Select all
echo $PATH
/home/kristoffer/bin:/home/kristoffer/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin


As you can see in the code box above /home/kristoffer/bin can be seen in the PATH so now to the question, what have I done wrong?

I have added the device and kernel repo to the $DEVICE.xml so that's correct.
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28

Re: Porting Sailfish OS to Samsung Galaxy S10 Plus in Mageia

Postby doktor5000 » Jun 9th, '22, 17:05

Umeaboy wrote:curl -s https://storage.googleapis.com/git-repo ... s/repo.asc | gpg --verify - ${REPO} && install -m 755 ${REPO} ~/bin/repo


Please actually try to understand the command you're running. This will only run "install -m 755 ${REPO} ~/bin/repo" if the previous command "gpg --verify - ${REPO}" completes successfully, denoted by the &&.
From your output it doesn't look it it runs successfully. Also pressing tab to see if a local file is present does not make much sense. Simply run ls -al ~/bin/repo to see if the file was written and then check the contents.

What do you get if you run
Code: Select all
curl -s https://storage.googleapis.com/git-repo-downloads/repo.asc | gpg --verify - ; echo $?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Porting Sailfish OS to Samsung Galaxy S10 Plus in Mageia

Postby Umeaboy » Jun 10th, '22, 01:14

There is no repo binary to be found when trying

Code: Select all
ls -al ~/bin/repo


because the reply was:

Code: Select all
ls: cannot access '/home/kristoffer/bin/repo': No such file or directory


I feel like the source.android.com guide is missing the part where the binary is supposed to be placed in the right directory.
Look at https://source.android.com/setup/develo ... lling-repo again.
I did follow the guide, but it didn't place the repo binary in the right place like the previous instructions said.

Here's the example I'm talking about:

Code: Select all
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo


I don't know why it was changed to tell the user different.

Your curl command gave me:

Code: Select all
gpg: no signed data
gpg: can't hash datafile: No data
$
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28

Re: Porting Sailfish OS to Samsung Galaxy S10 Plus in Mageia

Postby Umeaboy » Jun 10th, '22, 01:35

I try to run the commands seperately and here's what curl -s https://storage.googleapis.com/git-repo ... s/repo.asc gives me in return:

Code: Select all
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQSLua15Po5hU68PmkQWUw1ekg9cZQUCYfxQWQAKCRAWUw1ekg9c
ZSbkAKCJuv4LIRNxmCigtsxLqAddRNn9ZwCfWzue20FPI5zpnLWOENiBjzgLMOI=
=OVwh
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEo0oTvo52v/RqDAItoudagkqrliQFAmH8UFkACgkQoudagkqr
liR5ew/7B/Rwyvvb85jUN/GtSpCsuvc5KrbgErttZ9zRSEsWqsvYVmPxt5o7Nh0B
6O0zbO8S06b6FecfEOzfvKgIBQ6s5VbLTnp5L+xcqkdN45MjoDaz/YJTkUCEP5pS
TVwfA5IN5VxXTzeQa/HKEz/linpS9F42TmyjXf7FL7ocKvFVVSi4d6SvrrXA6SU4
NExY2EcgOR7dWyWcgOPhKQ2hJjNgJZTpD1dbuux0+QYD7O1BQxldm7YZZazaB8Ug
FeojNzpU0Qk8Ij96lja9b55ULYvaGs6o2A0I6aRuAdRplXkkO3Mh+U6+PlogDkbN
kYEltW9K/WhG8/YyMUvcIZ9PaIqrPbkY7nytf3nVcAhasQGu6iD0ShtPROGAnWzA
9oLXTTe8LJgDdqdV+mY48qBArzEklhfA3KBKN+VCciBsgexXavUAFvoLDLhM6nrz
57av26K5UfFUPSZDqpSAZZVep/JnYob22ei4cms+7QOzWqC6BQ/XVOj2n1cKiqMi
mK7iodgf3uML3WWAPTKMYUyVdE9E+zddqL5yMlebuFKPijclX97H+FEf5VT8uGVn
OZCqFE7JrG03TL0WmZvzj1FT4Y2lh/g4iFIdRr9U0EUXCzj2FO2RzMGx6/0ZMK71
MorhCO0lKQWn4+t+Mj3Q99oXoZ08ZNOAj3kDz14KrrwFl6iJ4wo=
=ECEc
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQTh+QQNej9tr6yJfNPTuV2iQ+SKOQUCYfxQWgAKCRDTuV2iQ+SK
OTAsAP9wuvopGU+26Qeoo+3k7ZtV2DR8blkb75CbjugSHJlTsgEAjv1Uzhxfdco4
fvRHlOFJlKa4hTW/gLrz+9AQES3ZIwo=
=yUjT
-----END PGP SIGNATURE-----


Next I run gpg --verify and it just blinks and never reaches a new prompt saying that it's finished verifying.

What's next?
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28

Re: Porting Sailfish OS to Samsung Galaxy S10 Plus in Mageia

Postby doktor5000 » Jun 10th, '22, 15:39

You still don't try to understand what those basic commands do, yet you want to port a complete operating system?
Maybe first try walking, before you start to run.

You repo binary that you download probably still sits where "mktemp /tmp/repo.XXXXXXXXX" created the temporary file.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18067
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Porting Sailfish OS to Samsung Galaxy S10 Plus in Mageia

Postby Umeaboy » Jun 11th, '22, 00:07

That's why the guide is confusing to me. With the previous instructions I've always downloaded the repo binary to ~/bin/ and that has worked fine.

The HADK is the way to port Sailfish OS to a new device.
There is no other way.
Last edited by doktor5000 on Jun 11th, '22, 18:21, edited 1 time in total.
Reason: removed fullquote
Umeaboy
 
Posts: 45
Joined: Nov 23rd, '11, 18:28


Return to The Wizards Lair

Who is online

Users browsing this forum: No registered users and 1 guest