libera/#maemo-leste/ Monday, 2021-07-19

mighty17[m]buZz the thing is mer was based on different sources and halium can't use those06:48
inetdragonWizzup, regarding the fixed wifi issue on N900, where will be the kernel fix? In which repository?08:31
sicelobeowulf-devel, I believe08:46
buZzwhats halium?09:25
mighty17[m]https://halium.org/ but that's offtopic here :P09:55
buZzmighty17[m]: i dont really understand the charm of keeping android running10:04
mighty17[m]Got bored of mainline so tried this, tbh no reason :P10:08
buZz:)10:09
buZzbored of native performance , lets add more layers!10:27
buZzlol10:27
mighty17[m]ahaha12:15
mighty17[m]halium is very slow tbh12:15
Wizzuplooks like I need to pull this into pulse-core https://git.sailfishos.org/mer-core/pulseaudio/commit/d572b6f66922f032b1d0fd432ba54f1a8a82e4a116:06
Wizzuplol16:06
Wizzuppulseaudio-modules-nemo will be in repos momentarily16:20
Wizzup(of course, useful without proper config, but we're getting there)16:20
Wizzups/useful/useless/16:20
Wizzupah, of course, armhf needs more work...16:25
Wizzuphttps://github.com/maemo-leste/pulseaudio-modules-nemo/commit/17da5bd985de3b8f63857f2dff0cbe93f95b3c1516:30
Wizzuphum16:30
Wizzupso is this binary-only or what?16:31
lelMerlijnWajer opened an issue: https://github.com/maemo-leste/bugtracker/issues/560 (pulseaudio-modules-nemo includes binary .a file for neon optimised code)16:43
Wizzupuvos: for bionic reflashing, did you create a script like tmlind's flash-droid-4-fw.sh for the bionc?17:26
bencohWizzup: neon-optimized code is usually ASM anyway17:42
bencoh(unless you're happy with intrinsics SIMD, but heh ... circa 2010 those were buggy as hell afaiu)17:43
Wizzupbencoh: sure, I suppose, but it's not ideal17:44
Wizzup(also it breaks the build, but that's probably fixable without too muhc work) https://phoenix.maemo.org/job/pulseaudio-modules-nemo-binaries/architecture=armhf,label=armhf/6/console17:45
bencohWizzup: the .a just ships a neon-optimized binary version of the .c17:45
bencohwe could probably disass it and dump into a .S file17:46
Wizzupbencoh: so it's a compiled version of the .c file, with some gcc flag that enables neon?17:46
WizzupI mean, yes, I got that17:46
WizzupI just don't know if it's all assembly or not17:46
Wizzupand if the assembly is ommented at all17:46
bencohI wouldn't be surprised if they edited the resulting assembly17:46
bencohbecause as I said, ~2010 intrinsics were buggy17:47
bencohso I doubt nokia used it17:47
bencohhmm actually maybe they just compiled it in some hacky way17:48
bencohbecause the C code has SIMD stuff17:48
bencohhttps://github.com/maemo-leste/pulseaudio-modules-nemo/blob/leste/src/common/optimized.c17:48
bencohmaybe they struggled with armcc and decided to include the result in git17:49
Wizzupyeah, I am wondering if we should just use the C files17:49
Wizzuppls add the above (from irc) to the ticket if you don't mind, btw17:49
bencohlooks like I'll have to click that 'forgot password' link on github again :D17:50
Wizzup:-)17:51
bencohhmpf, looks like the 'insert code' thing in github isn't great ...17:55
bencoheither that, or I missed something17:55
bencohit messes the formatting17:55
Wizzupuse ```17:56
Wizzup```17:56
Wizzupfoo17:56
Wizzup```17:56
Wizzupit's a bit like <pre> :-)17:56
bencohOhwell, I used >17:59
bencohbut thanks17:59
Wizzuptmlind: do you know what the difference is between cdt.bin_patch and cdt.bin ? (looking at the dorid 4 flashing script)18:40
Wizzupdon't particularly care about the real/exact difference btw, just wondering if I need to worry about the d3 not having a cdt.bin_patch18:41
inkywhat is the default lock code?18:53
inkyi am trying to enable device lock and it asks for current code. there is no code now18:53
inkythe leste image is the latest18:54
inkyhad to change sdcard.18:54
inky(found out that my drone has no card inside, when i was near the mountain lake, so i sacrificed droids sdcard, now flashed  anew.18:57
inky)18:57
Wizzupinky: iirc 123456, but I think the wiki mentions it19:13
tmlindWizzup: not sure but i think cdt.bin_patch might have some more relaxed permissions to update partition table or something like that19:13
inkythanks! didn't think of wiki, sorry.19:13
Wizzuptmlind: ok, check19:14
uvosWizzup: no i dident @ bionic20:04
uvosim also not a fan of using tmlinds script as a general flash tool20:04
uvosthis has you updateing mbm mbmloader and cdt etc every time20:05
uvoswhich is needlesly dangerous20:05
uvosif your just reinstalling android20:05
Wizzupuvos: hmm ok20:05
uvosmbm is totaly chill with booting older boot.imgs20:06
Wizzupuvos: well the net mostly just seems to recommend weird windows tools that I don't really want to install20:06
uvosso just update it and -loader and cdt, modem once20:06
uvosetc20:06
Wizzup(or can, really, no windows here)20:06
uvosif your just reinstalling android just flash boot system preinstall and wipe cache and data20:07
uvosleave out the rest of the script20:07
Wizzupaha20:07
Wizzupwell, I will do that next time20:07
Wizzup(it's running atm)20:08
Wizzupbtw, n900 kernel and wifi fixes are in -stable20:09
uvosgreat20:10
Wizzupok, looks like the flashing worked, lets retry the root and safestrap then20:11
Wizzupandroid fs layout is so confusing to me always20:11
WizzupI ended up using the browser to download safestrap from my website because I could not find a suitable place to adb push to20:11
uvossdcard20:11
uvos /sdcard20:12
Wizzupthere is no sd card in this phone yet20:12
uvosdosent matter20:12
Wizzuphm20:12
Wizzupand then the file manager can access it?20:12
uvosfor legacy reasons the fat32 partition of the emmc is mounted at /sdcard20:12
uvosor rather /emstorage/0 or something and linked to /sdcard20:13
uvosyeah ofc20:13
uvos@ file manager20:14
Wizzup"touch the android to begin" (touches it... nothing happens)20:14
uvossafestrap app?20:14
Wizzupnah, just new install20:14
Wizzupit also auto switched to cdma since it didn't find a sim card20:15
uvosoh the wizzard20:15
uvosyeah you need a sim20:15
Wizzupjust to continue?20:15
uvosverizon are idiots20:15
Wizzup(np if I need one, I do have them)20:15
uvosif thats a possibilty20:15
Wizzupok20:15
uvoson bonic you just need a sim20:15
Wizzupshutting down my d4 ;)20:15
Wizzupso technically, with the right dts, I could re-use my bionic rootfs, right?20:16
uvospvr immidatly is ambitious20:16
uvosbut jeah20:16
Wizzupheh ok20:17
Wizzuplol, rebooted, but still can't get past the android that wants me to touch it20:18
uvosthe touchscreen worked before right?20:19
Wizzupoh the ts works still20:19
uvosok20:19
uvoshm20:19
uvosthats wierd20:19
uvosmaybe try the four coners thing20:19
uvosbut afaik that wos introduced by moto at the same time as android 4.120:20
uvos*was20:20
Wizzuploading a youtube video that shows how to bypass it, but internet is slow atm :(20:20
uvosright so pess the top left corner20:20
uvosthen top right etc clockwise20:20
uvosdo a couple of rotations20:20
uvosthis dosent work on bionic android 4.020:20
uvosbut dose on 4.120:20
Wizzupthis is 2.3.x20:21
uvosi know20:21
uvostry it but i suspect this isent implmentet yet20:21
Wizzupwell, if my internet was responding at all, I'd be able to figure this out ;-)20:24
uvosWizzup: so acording to yt20:25
uvosthe top-left top-tight bottom-right bottom-left thing20:26
uvosis what works here20:26
uvosthe corners being the corners of the black field with the android figure20:26
uvosnot the screen20:26
uvosthe bottom "corners" are in the black field below the line20:26
uvosbelow the text20:27
Wizzuplet me reboot my machine, maybe that will help somehow20:27
Wizzupbrb20:27
Wizzuprehi20:29
WizzupI managed to that trick20:29
Wizzupalso internet is fine now20:30
Wizzupweird stuff20:30
Wizzup(it's some weird out of tree modem driver)20:30
uvosyou could use a d4 and motomodem ko20:31
uvosin the mode where cpcap passes the modem directly to the usb port :P20:31
Wizzupyeah, but it's not LTE :-)20:31
WizzupI need it (kinda) for my work meetings20:31
Wizzupotherwise I could just use d4 in ap mode20:31
Wizzupuvos: hm, doesn't seem like /sdcard is a good place: adb: error: failed to copy 'Droid3Safestrap-3.05.apk' to '/sdcard/Droid3Safestrap-3.05.apk': remote Permission denied20:40
uvoshmm wierd20:41
WizzupI did root it, and from adb shell I can type: /system/xbin/su20:41
uvostry /emstroage/020:41
Wizzupand then I am root20:41
uvosor something like that20:42
Wizzup# ls /emstroage/020:42
Wizzup/emstroage/0: No such file or directory20:42
uvoslook with adb shell20:42
uvosYeah name is aproximate20:42
uvosemtstorage maybe20:42
uvossomething like that20:42
Wizzuphttps://pastebin.com/YKHyZGrt20:43
uvosso d3 has no built in media sorgage20:44
uvosstorage20:44
uvosinteresting20:44
uvoswell tough luck then20:44
Wizzupthe root script just does this: $adb push Superuser.apk /system/app/Superuser.apk20:45
Wizzupcould try to do that with safestrap20:45
uvosyes20:45
uvosthat should work20:45
uvosikd if safestrap will be ok with being a system app tho20:46
uvos(this makes it run in a sighly different envirnment)20:46
Wizzupwell let me try something else then20:46
Wizzupdoh20:46
Wizzupthere's mass storage20:46
uvoso right that was dropped with andoird 5 or soemthing20:48
Wizzupok, safestrap launched this time20:49
WizzupI guess I need to find the guides I was reading now20:49
Wizzupok, safestrap showed and I'm in the safestrap recovery menu20:51
Wizzupso now I need to assemble something with aboot and have the bionic sd card ready?20:52
uvosif safestrap works20:53
uvosyou need to create a slot20:53
uvosand then use mkbootimg (part of android-tools) to make a bootimg with the kernel and dts you need20:53
Wizzupok, so for the dts I need to take the latest bionic one but change the ram20:53
uvosyes20:54
uvosso the stock kernel gets passed 512mb starting at 0x800000020:55
uvosbut you might want to back off a couple of mb if mbm wants to shadow itself there like it dose on d420:55
uvos*in case20:55
Wizzupcouple of mb = ?20:56
uvos220:56
Wizzupmy android-tools has only adb and fastboot20:59
Wizzupno mkbootimg20:59
uvoslet me check20:59
uvoson arch its its own package21:00
Wizzupwhat is the package called?21:00
uvosmkbootimg21:00
Wizzupnot in gentoo, sigh21:02
Wizzupnothing ever works in computers :-D21:02
buZzlol21:03
buZzsue the CEO21:03
buZzWizzup: its in 'android-tools' it seems21:04
Wizzuplet's see what insane build system will required now21:04
Wizzupoh, bazel21:04
Wizzupof course21:04
uvossuddenly he wishes it was at least cmake instead :P21:05
Wizzuphttps://github.com/osm0sis/mkbootimg this seems ok21:05
uvossure21:05
Wizzupand compiled21:05
uvosto be fair i think safestrap was a bit wierd21:05
uvoscompeard to a real andorid bootloader21:05
uvoswith regards to boot.mg21:06
uvos*img21:06
uvosbut i dont remember what it was21:06
uvosits been so long since i used it...21:06
uvostmlind: do you remember ^^^21:06
WizzupI can also try to do the kexec thing later, assuming I can find the right compiler(s)21:10
WizzupI assume actually it's the same compilers you used for bionic, or very similar21:11
uvosyou can just lift the modules from the safestrap apk21:11
uvosthey are in there21:11
uvosand its just a zip21:11
Wizzupok21:11
uvosthe d3 kernel is older than the bionic one21:12
Wizzupok, I think I will continue later tonight or tomorrow21:13
Wizzupuvos: hm mapphone-common has memory in there atm23:48
Wizzupuvos: that might need to be moved to individual dts?23:48
Wizzupuvos: btw you wrote 0x8000000, did you mean 0x8000000023:49
Wizzupuvos: so this:23:52
Wizzup-               reg = <0x80000000 0x3fd00000>;  /* 1021 MB */23:52
Wizzup+               reg = <0x80000000 0x1fd00000>;  /* 509 MB */23:52

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!