rinigus | @b100dian: I will have to read PR on proper screen again. Just a note that PinRequired and CardIdentifier both have to be set. Or does your sim lack pin code? | 03:54 |
---|---|---|
rinigus | From your logs looks like pinrequired prop is not updated for some reason | 03:55 |
T42_ | <b100dian> I dont have a pin code set | 06:47 |
T42_ | <Mister_Magister> yeah f the pin | 06:54 |
rinigus | @b100dian: OK, then your issue is understandable. I'll look into your PR tonight :) | 09:08 |
T42_ | <hjicks> hallo | 09:54 |
T42_ | <hjicks> where can i start to port sailfish to my device? | 09:54 |
T42_ | <elros34> start with HADK https://docs.sailfishos.org/Develop/HADK/ and hot, faq: https://irclogs.sailfishos.org/logs/%23sailfishos-porters/2025/%23sailfishos-porters.2025-09-17.log.html#t2025-09-17T15:41:32 | 12:44 |
T42_ | <hjicks> how long should a port take for a beginner? | 14:30 |
T42_ | <hjicks> well that might take forever, how long does it take for an experienced person to port to a new device? (re @hjicks: how long should a po...) | 14:31 |
T42_ | <DerRenard> Hi. I'm also a beginner. I found out that making a proper manifest is really hard and tedious task. Do anyone have a clue what should be in the manifest? And do anyone knows how to connect already downloaded sources to porting sdk? (re @hjicks: how long should a po...) | 14:37 |
T42_ | <morciatka> it took me around like 5 days in total for someone who had no previous experience to port it out. 5 days if I exclude the time used for troubleshooting problems which were mostly unrelated to the process and including the time it took me to mostly build own docs for the whole procedure (re @hjicks: well that might take...) | 14:39 |
T42_ | <DerRenard> Lets say i have 2 dirs. | 14:41 |
T42_ | <DerRenard> 1. `~/android/lineage/` | 14:41 |
T42_ | <DerRenard> 2. `~/hadk` | 14:41 |
T42_ | <DerRenard> | 14:41 |
T42_ | <DerRenard> In lineage folder, under the device/xiaomi folder i have Mi439 folder for my platform (snap 439). | 14:41 |
T42_ | <DerRenard> | 14:41 |
T42_ | <DerRenard> I also have build this sources before and have lineageos zip/img for flashing. Can this be helpful in general? | 14:41 |
T42_ | <hjicks> thanks, which android you ported to and how much resources did it took? (re @morciatka: it took me around li...) | 14:41 |
T42_ | <DerRenard> Can you share your docs, please? Maybe I'll figure out what am i doing wrong... After reading hadk i have no clue what to do nexy (re @morciatka: it took me around li...) | 14:43 |
T42_ | <DerRenard> Can you share your docs, please? Maybe I'll figure out what am i doing wrong... After reading hadk i have no clue what to do next (edited) (re @morciatka: it took me around li...) | 14:44 |
mal | not sure what you mean by issues with manifest, you use the manifest from https://github.com/mer-hybris/android with the correct hybris-branch, then add needed device repos to local_manifests | 14:45 |
T42_ | <DerRenard> > the correct hybris-branch, then add needed device repos to local_manifests | 14:49 |
T42_ | <DerRenard> | 14:49 |
T42_ | <DerRenard> I dont understand how and what I need to add to this manifest. And how should I specify path to this parts. Relative path like `~/android/lineage/... `, full path like `/home/../android/lineage/... ` or something else's way to do it | 14:49 |
T42_ | <morciatka> uhh, they are completely in slovak but you can find them on forum.370.network if you care as much haha (re @DerRenard: Can you share your d...) | 14:51 |
T42_ | <DerRenard> Haha. I think that thanks to my knowledge of Slavic languages and automatic translation, this can add to my understanding of what is the process in general. (re @morciatka: uhh, they are comple...) | 14:57 |
mal | what do you have in android/lineage? a bit confused what that is, you should have one folder with the android sources, usually called hadk or whatever you want to name it | 15:00 |
T42_ | <DerRenard> Before i begun process of downloading hadk, i have built lineage os 21.0 and have dealt with LOS documentation about my phone. In LOS docs for downloading sources used ~/android/lineage folder. (re @SailfishFreenodeIRCBridgeBot: <mal>what do you hav...) | 15:05 |
mal | in hadk pdf in chapter 4.1 you define which folder you use for ANDROID_ROOT, and in chapter 5.1 you then in that folder checkout the android sources | 15:06 |
T42_ | <DerRenard> Yes, but i need to specify the hybris, yes? Where and how should i do this if i already have android sources? (re @SailfishFreenodeIRCBridgeBot: <mal>in hadk pdf in ...) | 15:08 |
mal | in chapter 5.1 there is the repo init command to use | 15:08 |
mal | in which you then adjust the hybris-* to match your android version | 15:09 |
mal | it's possible to partially reuse the already existing sources, but you still need to reinit repo to get the extra repos there | 15:10 |
T42_ | <DerRenard> So, i may use of existing sources and in the root if this source i need only run | 15:13 |
T42_ | <DerRenard> ``` | 15:13 |
T42_ | <DerRenard> repo init -u https://github.com/mer-hybris/android.git -b hybris-21.0``` | 15:13 |
T42_ | <DerRenard> | 15:13 |
T42_ | <DerRenard> ? | 15:13 |
T42_ | <DerRenard> And after sync | 15:14 |
mal | yes, also 5.2 had the local_manifests part which you can do before repo sync | 15:14 |
T42_ | <DerRenard> I see but i don't understand what should i put here. It describes the older lg-hammerhead device. Mine is much newer and files do it need idk (re @SailfishFreenodeIRCBridgeBot: <mal>yes, also 5.2 h...) | 15:16 |
T42_ | <DerRenard> Ah, i see. Kernel and config. But where to get "path" and "name" I don't understand | 15:18 |
mal | you should find the device repo in github, then in there you have something like lineage.dependencies which describes what you need in local_manifests in addition to the main device repo | 15:18 |
T42_ | <DerRenard> here what it has | 15:21 |
T42_ | <DerRenard> ``` | 15:21 |
T42_ | <DerRenard> [ | 15:21 |
T42_ | <DerRenard> { | 15:21 |
T42_ | <DerRenard> "repository": "android_device_xiaomi_mithorium-common", | 15:21 |
T42_ | <DerRenard> "target_path": "device/xiaomi/mithorium-common" | 15:21 |
T42_ | <DerRenard> } | 15:21 |
T42_ | <DerRenard> ]``` | 15:21 |
T42_ | <DerRenard> what is what in local-manifest compare to that? | 15:21 |
mal | path is same as target_path and name and repository are the same | 15:23 |
T42_ | <DerRenard> Ah! Thanks. I'll try it out (re @SailfishFreenodeIRCBridgeBot: <mal>path is same as...) | 15:27 |
mal | also remember to add the main device repo in there | 15:32 |
mal | the path and name should be quite simple to determine | 15:32 |
mal | probably same as those but without the -common part | 15:32 |
T42_ | <DerRenard> Uhhh, what? If i initialize the repo in the sources folder, shouldn't it be fine with identifying devices repo? If they're persist in the $LOS/device/xiaomi/Mi439? (re @SailfishFreenodeIRCBridgeBot: <mal>also remember t...) | 16:21 |
T42_ | <DerRenard> Uhhh, I installed HABUILD_SDK and i can't access my sources directory... How can I access the directory if it lies on second drive (I installed system (ubuntu) on nvme drive, but for sources and building have 1TB Hard Drive (mounted at /media/user/drive/). To easily access to the sources directory I made a symlink to home (` ln -s /media/user/drive/android /home/user/android`. Android file in home persist, but it's red and i cannot cd into | 16:41 |
T42_ | <elros34> symlink is probably bad idea, you need bind mount probably like here https://piggz.co.uk/sailfishos-porters-archive/index.php?log=2024-05-10.txt#line6 | 16:53 |
T42_ | <DerRenard> like this one? | 16:59 |
T42_ | <DerRenard> `sudo mount --bind /media/files /srv/sailfishos/sdks/sfossdk/mnt/files` | 16:59 |
T42_ | <hjicks> yeah | 16:59 |
T42_ | <DerRenard> aha. okay | 16:59 |
T42_ | <DerRenard> thanks | 17:00 |
T42_ | <elros34> yeah no | 17:03 |
T42_ | <DerRenard> ah? why? (re @elros34: yeah no) | 17:14 |
T42_ | <elros34> just read the link | 17:18 |
T42_ | <elros34> explanation how to do this is properly is in 5th line | 17:19 |
T42_ | <elros34> maybe 10 | 17:19 |
T42_ | <DerRenard> I understand this like "just mount it somewhere in your home folder". Yeah? (re @elros34: explanation how to d...) | 17:44 |
T42_ | <elros34> IIRC in $ANDROID_ROOT | 17:50 |
T42_ | <elros34> which is "$HOME/hadk" | 17:51 |
T42_ | <DerRenard> It's fine. I have mounted it in "~/drive" folder and made this $ANDROID_ROOT. Now it's available in HABUILD | 17:52 |
T42_ | <DerRenard> I created manifest like this. Will (probably) this work? | 18:07 |
T42_ | <DerRenard> ``` | 18:07 |
T42_ | <DerRenard> <?xml version="1.0" encoding="UTF-8"?> | 18:07 |
T42_ | <DerRenard> <manifest> | 18:07 |
T42_ | <DerRenard> <project path="device/xiaomi/mithorium-common" | 18:07 |
T42_ | <DerRenard> name="android_device_xiaomi_mithorium-common" | 18:07 |
T42_ | <DerRenard> revision="stable/lineage-21.0" /> | 18:07 |
T42_ | <DerRenard> | 18:07 |
T42_ | <DerRenard> <project path="device/xiaomi/mithorium" | 18:07 |
T42_ | <DerRenard> name="android_device_xiaomi_mithorium" | 18:07 |
T42_ | <DerRenard> revision="stable/lineage-21.0" /> | 18:07 |
T42_ | <DerRenard> </manifest>``` | 18:07 |
T42_ | <DerRenard> | 18:07 |
T42_ | <DerRenard> | 18:07 |
T42_ | <DerRenard> Only I'm not sure, I did the right revision. 1stly - i built userdebug lineage, not release|stable, 2nd, I'm not sure about 2nd project. I hope this will work (I did same as <mal> told me | 18:07 |
T42_ | <DerRenard> > probably same as those but without the -common part | 18:07 |
T42_ | <DerRenard> ) | 18:07 |
T42_ | <DerRenard> And i got this error | 18:10 |
T42_ | <DerRenard> ``` | 18:10 |
T42_ | <DerRenard> error: in `sync --fetch-submodules`: duplicate path device/xiaomi/mithorium-common in /home/yan/drive/android/lineage/.repo/manifest.xml``` | 18:10 |
T42_ | <DerRenard> | 18:10 |
T42_ | <DerRenard> | 18:10 |
T42_ | <DerRenard> Maybe remove this one from local manifest? | 18:10 |
T42_ | <elros34> did you repo init mer-hybris repo or some android one? | 18:16 |
T42_ | <DerRenard> I did | 18:18 |
T42_ | <DerRenard> ``` | 18:18 |
T42_ | <DerRenard> repo init -u https://github.com/mer-hybris/android.git -b hybris-21.0``` | 18:18 |
T42_ | <DerRenard> | 18:18 |
T42_ | <DerRenard> inside of lineage 21.0 sources (re @elros34: did you repo init me...) | 18:18 |
T42_ | <elros34> what is your $ANDROID_ROOT ? | 18:18 |
T42_ | <elros34> why insidea linea sources? | 18:18 |
T42_ | <DerRenard> this one reply (re @SailfishFreenodeIRCBridgeBot: <mal>yes, also 5.2 h...) | 18:19 |
T42_ | <DerRenard> i asked "can i use exiting sources" to not download it again (i don't wanna spent 3-4 h again) | 18:20 |
T42_ | <elros34> ok, I am not sure what are exact steps to use existing sources | 18:21 |
T42_ | <DerRenard> i can try to delete this lines and see how it goes. Maybe it'll be fine tho (re @elros34: ok, I am not sure wh...) | 18:22 |
T42_ | <elros34> maybe it's enought to copy some .repo files from lineage | 18:22 |
T42_ | <DerRenard> oops.. | 18:36 |
T42_ | <DerRenard> ``` | 18:36 |
T42_ | <DerRenard> remote: Not Found | 18:36 |
T42_ | <DerRenard> fatal: repository 'https://github.com/android_device_xiaomi_mithorium/' | 18:36 |
T42_ | <DerRenard> not found | 18:36 |
T42_ | <DerRenard> android_device_xiaomi_mithorium: | 18:36 |
T42_ | <DerRenard> remote: Not Found | 18:36 |
T42_ | <DerRenard> fatal: repository 'https://github.com/android_device_xiaomi_mithorium/' | 18:36 |
T42_ | <DerRenard> not found | 18:36 |
T42_ | <DerRenard> android_device_xiaomi_mithorium: sleeping 4.0 seconds before retrying | 18:36 |
T42_ | <DerRenard> remote: Not Found | 18:36 |
T42_ | <DerRenard> fatal: repository 'https://github.com/android_device_xiaomi_mithorium/' | 18:37 |
T42_ | <DerRenard> not found``` | 18:37 |
T42_ | <DerRenard> | 18:37 |
T42_ | <DerRenard> what exactly should be here? i mean, what part of the system? Kernel? only existed line here taken from `lineage.dependencies` file from `$ANDROID_ROOT/device/xiaomi/Mi439/lineage.dependencies` with content | 18:37 |
T42_ | <DerRenard> ``` | 18:37 |
T42_ | <DerRenard> [ | 18:37 |
T42_ | <DerRenard> { | 18:37 |
T42_ | <DerRenard> "repository": "android_device_xiaomi_mithorium-common", | 18:37 |
T42_ | <DerRenard> "target_path": "device/xiaomi/mithorium-common" | 18:37 |
T42_ | <DerRenard> } | 18:37 |
T42_ | <DerRenard> ]``` | 18:37 |
T42_ | <elros34> local manifest part: https://sailfishos.wiki/books/hadk/page/hadk-hot#bkmrk-2023.05.28%3A-general- but I suggest reading everything | 18:39 |
T42_ | <elros34> you are missing lineageos part in repository | 18:41 |
T42_ | <elros34> url | 18:42 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!