*** amccarthy is now known as Guest335 | 01:49 | |
*** amccarthy_ is now known as amccarthy | 01:49 | |
def | hello guys | 15:23 |
---|---|---|
def | Im trying to adapt sailfish to old htc m7 (and maybe others devices). | 15:23 |
def | i'm trying to follow that one : | 15:23 |
def | https://docs.sailfishos.org/Develop/HADK/SailfishOS-HardwareAdaptationDevelopmentKit-4.5.0.19.pdf | 15:23 |
def | even if the "repo" installation wasn't easy, Im stuck on the 5.3 Configure Mountpoint Information: | 15:23 |
def | I dont know if rooting by adb/usb, providing me this : | 15:23 |
def | https://paste.debian.net/1289823/ | 15:23 |
def | but do I have to look after a kind of fstab (not present in /etc within the device), or the previous pastebin is enough? | 15:23 |
def | " To get the correct path you must find Android’s fstab in device repository or in device itself and get by-name path like: block/bootdevice/by-name/userdata, ls -l /dev/block/platform/*/*/by-name/ | 15:24 |
def | ``or ``block/platform/*/by-name/userdata from it" | 15:24 |
def | <= I dont understand that part, nor how should I process the fixup-mountpoints... | 15:24 |
T42 | <elros34> find fstab file in device repository: $ANDROID_ROOT/device/*/ | 15:44 |
def | T42: you mean it's in that? https://github.com/LineageOS/android_device_htc_m7/tree/cm-14.1 | 16:29 |
T42 | <elros34> more or less but check whole device/ including device/htc/m7-common and https://github.com/LineageOS/android_device_htc_m7-common/blob/cm-14.1/rootdir/etc/fstab.qcom | 16:31 |
def | T42: thank you | 16:33 |
T42 | <elros34> you can call me directly not via telegram bot name | 16:35 |
T42 | <elros34> btw there is something wrong in telegram channel because I can see only admins | 16:36 |
T42 | <TheVancedGamer> @elros34 no, thats for "security" | 16:36 |
T42 | <TheVancedGamer> I can disable it later if you wih | 16:36 |
T42 | <TheVancedGamer> wish* | 16:36 |
T42 | <TheVancedGamer> its so that spammer bots cant PM people randomly | 16:36 |
def | T42: Once you’ve patched fixup-mountpoints <= i guess it's the fstab needed to get the montpoints process working? | 16:37 |
def | (that starting this chapter where my linuxies skills reaches their limits :( ) | 16:37 |
T42 | <elros34> @TheVancedGamer oh me neither can't ping @<anybody> | 16:37 |
T42 | <TheVancedGamer> pings should work fine if you remember their handle | 16:37 |
T42 | <TheVancedGamer> it wont show up however | 16:37 |
def | how could i process the fixup-mountpoints? I dont understand that part.. | 16:46 |
def | (btw, do I have to come on a t.me channel? | 16:46 |
T42 | <elros34> def: is m7spr similar to m7? | 16:46 |
T42 | <elros34> you need something like this but with correct partitions for you phone: https://github.com/mer-hybris/hybris-boot/blob/master/fixup-mountpoints#L1372C6-L1399 | 16:49 |
def | T42: I have no idea, it's a pn07100 (htc m7 gsm) | 17:07 |
def | T42: thank you for that link, but how should I use it with fixup-mountpoints? it's the first time I port something... | 17:09 |
def | looks like its going to a kind of C part | 17:11 |
T42 | <elros34> use it as an example, add similar lines but for m7 instead m7spr to fixup-mountpoint file. Then adjust all partitions according to your pastebin so all partitions are included and have correct block device | 17:11 |
mal | do not highlight with T42 use @some_nick if people are using telegram | 17:12 |
def | he's using telegram through irc? | 17:14 |
def | ii knew it was possible with matrix.. | 17:14 |
mal | that T42 is a telegram tunnel bot or something like that | 17:16 |
mal | to highlight people from there use the @ and the nick which is after that T42 | 17:17 |
def | elros34, i guess that it's a mountpoint tool within the habuild tool? i just dont understand how it's managed | 17:18 |
T42 | <elros34> what tool are you talking about? just go to hybris-boot/ and edit file | 17:19 |
T42 | <elros34> you should have all of these already cloned to $ANDROID_ROOT | 17:20 |
T42 | <elros34> https://github.com/mer-hybris/android/blob/hybris-14.1/default.xml#L102 | 17:21 |
def | im there : HABUILD_SDK [m7] HABUILD_SDK [m7] HABUILD_SDK [m7] HABUILD_SDK [m7] hd@g50-70:~$ | 17:24 |
def | cd $ANDROID_ROOT/ | 17:25 |
def | HABUILD_SDK [m7] HABUILD_SDK [m7] HABUILD_SDK [m7] HABUILD_SDK [m7] hd@g50-70:~/hadk$ ls | 17:25 |
def | my hadk folder is empty | 17:25 |
T42 | <elros34> then you followed instruction incorrectly because you should have whole android tree cloned in $ANDROID_ROOT | 17:26 |
T42 | <elros34> od you have .repo directory? | 17:26 |
def | .repo$ ls | 17:26 |
def | TRACE_FILE copy-link-files.json manifest.xmlmanifests manifests.git project-objects project.list projects repo | 17:26 |
T42 | <elros34> did you finish chapter 5.2 pdf | 17:27 |
def | yes, i did a repo sync which took a long time | 17:28 |
T42 | <elros34> are you sure? you don't even have local_manifests which you create in 5.2 | 17:29 |
T42 | <elros34> did you run repo command in $ANDROID_ROOT directory? | 17:30 |
def | @elros34: https://pastebin.com/NzS6GQgC | 17:33 |
T42 | <elros34> "repo has been initialized in /home/hd" but according to chapter 5.1 you should do this in $ANDROID_ROOT. Is ANDROID_ROOT even set (4.1 chapter)? | 17:41 |
T42 | <elros34> 'echo $ANDROID_ROOT' should prints correct path both in platform sdk and habuild | 17:44 |
def | sry for delay | 18:20 |
def | @elros34 : echo $ANDROID_ROOT | 18:20 |
T42 | <elros34> so answer is no and you should check .hadk.env and other sdk related files | 18:21 |
T42 | <kreatowastaken> is there a13 support yet? | 18:27 |
T42 | <kreatowastaken> if there is, what does work/not work? | 18:27 |
T42 | <kreatowastaken> my device got aosp ported recently, want to take a shot at it | 18:27 |
def | @elros34: https://paste.debian.net/1289836/ | 18:29 |
def | i think i did something wong | 18:29 |
T42 | <elros34> yes it's because of repo init, see your previous pastebin. There is even info there like 'if that directory is wrong then do this' | 18:32 |
def | @elros34: what do you mean by repo init? | 18:33 |
def | oh i see | 18:33 |
def | @elros34: you mean repo init -u https://github.com/mer-hybris/android.git -b hybris-14.1 from the hadk folder? | 18:34 |
def | sorry for being so noob | 18:34 |
T42 | <elros34> you run repo init many times and probably in '~' instead in '$ANDROID_ROOT' so .repo directory is initialized wrongly in ~. I would show you this in your pastebin but you removed it or expired. | 18:39 |
T42 | <elros34> i don't know if you can simply just move .repo/ to correct directory and repo sync again but you may try | 18:41 |
def | elros34 : my .repo is in /home/hd because everything is in there | 18:48 |
def | elros34: where should i move .repo? | 18:50 |
T42 | <elros34> to $ANDROID_ROOT | 18:51 |
def | @elros34: i have this https://paste.debian.net/1289839/ but i dont know how to do the fixup-mountpoints | 18:58 |
T42 | <elros34> forget about it now. First of all you are missing some repositories. in android_device_htc_m7 there is cm/lineage.dependencies which should contains additional repositories which you need to local manifest | 19:05 |
T42 | <elros34> add* | 19:05 |
T42 | <elros34> btw shouldn't you use repos from lineageos instead cyanogenmod? | 19:07 |
def | elros34, repo from cm/los14 yes (for me it's the same project, just a different brand) | 19:12 |
def | that one might be the right one? https://paste.debian.net/1289839/ | 19:13 |
def | sry : repo init -u https://github.com/mer-hybris/android.git -b hybris-14.1 | 19:14 |
T42 | <elros34> it maybe same project but repositories are not same | 19:14 |
def | what i understood is that i need two urls : one from cm/los, the other is dedicated to hw specs | 19:15 |
T42 | <elros34> lineage one have more changes | 19:15 |
def | phone is running well lineageos14.1 | 19:15 |
T42 | <elros34> then use that in local manifest | 19:16 |
def | elros34: the maniest is well the xml file saying which brand/model? i modified it | 19:20 |
def | but the thing is still the fixup-mountpoints i dont understand | 19:21 |
T42 | <elros34> told you to forget about it now. You dont even have correct local manifest xml file. Did you add repo from cm/lineage.depenedencies file like I told you | 19:22 |
T42 | <elros34> ? | 19:22 |
def | elros34: the manifest file you're talking about, is it well in this? https://github.com/LineageOS/android_device_htc_m7-common/tree/cm-14.1 | 19:30 |
def | (or maybe im wrong) | 19:30 |
T42 | <elros34> the local manifest xml file is what you supposed to create according to hadk pdf 5.2 | 19:32 |
def | elros34: okay, I understand better, but what i was thinking was just to modify it with brand/model? | 19:32 |
T42 | <elros34> first you should add LineageOS/android_device_htc_m7 then you add other repositories which usuall are defined in lineage.dpendencies files so common and in common another lineage.dependencies file which contains another common and kernel repo | 19:35 |
def | elros34: so i need to do firstly repo init -u https://github.com/LineageOS/android_device_htc_m7-common/tree/cm-14.1 -b cm-14.1 ? | 19:39 |
T42 | <elros34> no, focus on 1 thing at a time so now correct local manifest: $DEVICE.xml | 19:43 |
T42 | <elros34> not any repo init or anything else, create file and show me it | 19:44 |
def | <?xml version="1.0" encoding="UTF-8"?> | 19:45 |
def | <manifest> | 19:45 |
def | <project path="device/htc/m7" | 19:45 |
def | name="CyanogenMod/android_device_htc_m7" | 19:45 |
def | revision="stable/cm-14.1" /> | 19:45 |
def | <project path="kernel/htc/m7" | 19:45 |
def | name="CyanogenMod/android_kernel_htc_m7" | 19:45 |
def | revision="stable/cm-14.1" /> | 19:45 |
def | </manifest> | 19:45 |
def | but i guess its a wrong one? | 19:45 |
mal | why not https://github.com/LineageOS/android_device_htc_m7 | 19:55 |
T42 | <elros34> here: https://paste.debian.net/1289844/ | 20:02 |
def | @elros34: did you wrote it yourself? or find out on the web? | 20:04 |
T42 | <elros34> I wrote it | 20:05 |
def | the thing is, the pdf asks for lot of resources, but sometimes it's a bit hard to understand how to look for them | 20:05 |
def | i know what is msm8960, a mainboard i guess ; the guy whom doesnt know much more how to port a device, would never had to guess that this file might have a such information.. | 20:06 |
def | (imho) | 20:06 |
def | @elros34 : thank you | 20:06 |
T42 | <elros34> porting is whole new experience, you need to learn a lot of different things like lineage.depndencies files which contains all these info I used to create this local manifest | 20:07 |
def | @elros34 : i never build/porter cm/los neither, so im going to discover a lot i guess.. | 20:11 |
def | @elros34: so if i want to port lineage or sailfish on others devices, maybe i need also to know how to parameter a such file? | 20:12 |
def | (im wondering how much work is still remaining :o i guess a lot more) | 20:13 |
def | @elros34, now could I repo init...? | 20:25 |
T42 | <elros34> like I said use https://github.com/LineageOS/android_device_htc_m7/blob/cm-14.1/lineage.dependencies. Did you open it? It's self explanatory. Re repo: just use commands from hadk pdf and make sure .repo/ is in correct place | 20:47 |
def | @elros34 : okay, but the url doesn provides information youadded in the manifest.xml.. so i dont know, what to do now.. | 21:35 |
T42 | <elros34> it does: "project path"->"target_path", "name" >"repository". The only missing is "revision" but this is easy because "cm-14.1" is default one | 21:39 |
T42 | <elros34> then you open lineage/cm.dependencies file lineageos/android_device_htc_m7-common and same thing | 21:40 |
def | okay | 21:40 |
def | @€lros34: so the lineage.dependencies must be found for each different device or model to be ported to? | 21:44 |
T42 | <elros34> yeah | 21:45 |
def | @elros34 : msm8960-common and common, i just dont get it ; it's not shown on the git page ; i think a nice draw..... | 21:50 |
def | @elros34 : but after that step, i guess there are dozen of steps like that one? | 21:50 |
def | i'd like so much compile the whole thing during the night, but it looks like im very far of it | 22:00 |
T42 | <elros34> it is https://github.com/LineageOS/android_device_htc_m7-common/blob/cm-14.1/lineage.dependencies | 22:03 |
T42 | <elros34> building image according to instruction is easy then you may start porting (solving real device specific issues) | 22:04 |
T42 | <elros34> m7 is quite old with 3.4 kernel so it will not work out of the box | 22:04 |
def | @elros34, i have heard that for lineage just the lineage git/repo plus the device tree was needed, but i never did it | 22:06 |
def | well, los14 (android 7.1) works well on that device | 22:06 |
T42 | <elros34> again some chinese guy breaks hadk-hot, can you please do not use translators directly whoever that is | 22:07 |
def | @elros34, i dont udnerstand | 22:07 |
T42 | <elros34> this is not for you, just for some unknown porter who breaks porting notes | 22:09 |
def | @elros34, oh okay | 22:09 |
def | @elros34, but that said, the pdf specifies to install repo using google documentation, well ; that one doesn't works quite well, i had to get some others methods on the internet | 22:10 |
def | just to understand better : does porting los or sailfish to a device, is the same process for htc/samsung/huawei/wiko/oppo/oneplus/sony/others brands? | 22:15 |
T42 | <elros34> I do not know how porting los looks like but for sure not like porting sailfish. Porting sailfish for different kind of devices is similar in basics but of course every device/platform or even kernel generates whole new set of challenges. | 22:21 |
T42 | <elros34> don't mixup porting sailfish with just building already working lineage port from existing repositories | 22:22 |
T42 | <elros34> I have added short info about creating local manifest file, feel free to imporve it: https://etherpad.wikimedia.org/p/hadk-hot#L119 | 22:23 |
def | ....wow | 22:28 |
def | i would dream of a "taken hand by hand" how to, to improve the port of various devices with sfos | 22:28 |
def | i took me two evennings to get a correct environnment of build for sfos, but the build itself would asks for days more I guess | 22:29 |
def | so now im totally lost in the process :( | 22:29 |
def | @elros34: how should i do with the manifest.xml to manage the repo part? | 22:46 |
T42 | <elros34> I don't get what you. just fillow pdf and do repo sync | 22:49 |
def | @elros34: fatal: include [/home/hd/.repo/manifests/]default.xml doesn't exist or isn't a file | 23:00 |
def | i think i wrongly named the xml file | 23:01 |
def | it's called m7.xml | 23:02 |
T42 | <elros34> default.xml != $DEVICE.xml | 23:10 |
T42 | <elros34> check that file with ls -al | 23:13 |
def | @elros34: -rw-rw-r-- 1 hd hd 478 Aug 23 20:12 m7.xml | 23:14 |
def | so I might rename it default.xml i guess? | 23:14 |
def | it's not precised in the pdf :( | 23:15 |
T42 | <elros34> file in error not m7.xml file | 23:19 |
def | @elros34, what do you mean? | 23:20 |
def | the error comes from another file? | 23:20 |
T42 | <elros34> read the error you posted | 23:27 |
def | @elros34: i guess i have to indicate within the repo command? | 23:34 |
def | but how? | 23:34 |
T42 | <elros34> what? error is "/home/hd/.repo/manifests/]default.xml doesn't exist or isn't a file" so just do ls -al /home/hd/.repo/manifests/default.xml | 23:36 |
def | ls -al /home/hd/.repo/manifests/default.xml | 23:39 |
def | ls: cannot access '/home/hd/.repo/manifests/default.xml': No such file or directory | 23:39 |
T42 | <elros34> what about .repo/ | 23:40 |
def | https://paste.debian.net/1289859/ | 23:42 |
def | @elros34: https://paste.debian.net/1289859/ | 23:42 |
T42 | <elros34> ah it's old path | 23:44 |
T42 | <elros34> remove that ~/.repo | 23:44 |
T42 | <elros34> leave it only in $ANDROID_ROOT/ | 23:45 |
def | @elros34: should i do then repo init -u https://github.com/LineageOS/android_device_htc_m7.git -b cm-14.1 | 23:47 |
def | or repo init -u https://github.com/LineageOS/android_device_htc_m7/blob/cm-14.1/lineage.dependencies -b cm-14.1 | 23:47 |
def | ? | 23:47 |
T42 | <elros34> neither, correct command is in hadk pdf | 23:48 |
def | just repo sync --fetch-submodules? | 23:48 |
def | it's the one after the xml part | 23:49 |
def | @elros34: is it the right command? | 23:55 |
def | @elros34: the repo sync asks for a firstly repo init one | 23:56 |
T42 | <elros34> whatever do both if you want | 23:59 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!