libera/#maemo-leste/ Sunday, 2024-01-14

Wizzupuvos: I pushed untested changes to builddeb to maemo-6.6-buildeb00:16
WizzupI'll try for an experimental build00:19
Wizzupuvos: did you also include all the config changes that we have in our maemo branches?00:20
Wizzuplooks like we didn't have them anymore (?)00:23
Wizzupin any case, let's see if/where this experimental build fails00:23
Wizzupuvos:00:53
Wizzuparch/arm/boot/dts/ti/omap/motorola-mapphone-common.dtsi:237.30-250.4: ERROR (phandle_references): /ocp/interconnect@48000000/segment@0/target-module@72000/i2c@0/touchscreen@4a: Reference to non-existent node or label "touchscreen_pins"00:53
Wizzuparch/arm/boot/dts/ti/omap/motorola-mapphone-common.dtsi:252.14-261.4: ERROR (phandle_references): /ocp/interconnect@48000000/segment@0/target-module@72000/i2c@0/isl29030@44: Reference to non-existent node or label "als_proximity_pins"00:53
Wizzupenough for today :)00:57
Wizzuptmlind: I briefly measured the ground of the microsd solder points on the mz617 and it does seem to be hooked up at least01:14
Wizzupuvos: hm, did you include powervr stuff in this kernel?11:46
Wizzuphm, I think I see what happened11:47
Wizzuptmlind: ok, I'm in :)12:19
Wizzuptmlind: amazing work12:20
Wizzuptmlind: somehow the sd card was just picked up with default mz617 dts12:20
Wizzupso with the right dts it boots12:21
Wizzupscree nworks12:21
Wizzuptouchscreen doesn't yet, but wifi works, serial works, usb otg works12:21
Wizzupnow I can't help but wonder if it's just hooked up on the mz617 without us knowing12:21
Wizzupit being the microsd card12:24
arno11Wizzup: hi, i need your advice/help to find those bloody ret/off mode blockers: i have a basic sdcard to try to load a very minimal config on the n900 and to try to add one by one every modules. But i don't know what's the trick to load a minimal config :P13:15
Wizzuptmlind: looks like ts works actually13:18
Wizzuparno11: give me 5-10 mins13:18
Wizzuptmlind: but some leste config or xorg config messes it up13:18
uvosts worked, so thats a regession13:20
uvosthe micro sdcard holder is not simply not installed, tmlind solderd one on his and that dident work13:20
uvospvr works fine13:21
uvosd4 leste ofc stopes ts working13:21
uvosbecause the ts is blaklisted in libinput13:21
uvossince we use the filtered touchscreen device instead (from ts-buttons)13:21
Wizzupuvos: hi, just a few mins13:34
arno11Wizzup: finally i have to go, let's see pm stuff later  ;)13:39
Wizzupuvos: hi13:53
Wizzuparno11: ok, I'll write here anyway13:53
Wizzupuvos: so it looks like there is a ts, but there are some probe errors13:53
Wizzuphttps://paste.debian.net/plain/130407313:54
Wizzupso there is a 004a and 005b13:54
Wizzupuvos it looks like X saw the ts but then dropped it13:55
Wizzup[   451.889] (EE) libinput: Atmel maXTouch Touchscreen: Failed to create a device for /dev/input/event313:55
Wizzup[   451.889] (EE) PreInit returned 2 for "Atmel maXTouch Touchscreen"13:55
Wizzupuvos and of course there is still the droid4 calibration file in udev13:55
Wizzupuvos: so the mz609 and mz617 dts do not build, otherwise I might be able to try another kernel build for experimental13:56
Wizzupuvos: worth noting is that it seems like the cache partition containing kexecboot somehow gets messed up by android, so it's not just android getting buggy13:57
Wizzupuvos: I have some hack fixes for the dtses, shall I just push those to a test branch to debug the rest of the process?13:59
Wizzupuvos: so this time on boot both atmel_mxt_ts probes failed14:18
Wizzup[    7.488616] atmel_mxt_ts: probe of 1-004a failed with error -12114:18
Wizzup[    8.142578] atmel_mxt_ts: probe of 1-005b failed with error -12114:18
Wizzupwell, this time the ts works14:21
Wizzuphttps://wizzup.org/MVI_1083.MP4 <- not promotional material14:35
uvosno idea about the ts not probeing14:35
uvoshavent seen that14:36
Wizzupuvos: I suppose I could take the part from mz616 and put it on my mz617 and see if it seems a microsd14:36
uvosi never tried building the mz6xx dts's in that branch14:36
uvosso them being broken in the merge is not compleatly suprising14:36
Wizzupcheck14:36
uvosas i say14:37
WizzupI would like to see if my changes to builddeb worked, so for that purpose I might commit a change that just kludge fixes them for building, not for using purposes14:37
uvosi presume you removed the blacklist of the ts14:37
uvosok14:37
Wizzupyes I removed the blacklist and blacklisted ts buttons14:38
uvosts-buttons should not load at all14:38
uvosas it should not be in the dts14:38
Wizzupnot sure, I just flashed a d4 image, never booted it, then changed boot.cfg, added dtb and kernel and modules14:38
uvosok14:39
freemangordonwow, that's fast14:39
freemangordonwhy it seems smoother than d4?14:39
uvossame as bionic14:39
uvosit lacs the pannel refesh bug of d414:39
freemangordonah14:39
Wizzupuvos: btw you said the display doesn't turn off yet, or idle correct, if I recall correctly?14:45
uvosno that used to be the case14:45
uvosit should now14:45
Wizzupah, okay14:45
uvosit also sleeps fine14:45
uvosand has very low power cosumption when it dose14:45
uvosi can run weeks if you dont touch it14:46
Wizzuphmm14:46
Wizzupon leste?14:46
uvosno just minimal debian14:46
WizzupI see14:46
uvosbut leste too really14:46
Wizzupright now it uses about 0.180A at 3.85V on my lab psu14:46
Wizzupwith the screen off, but wifi on14:46
uvoshmm14:47
WizzupI suppose we might need some idling scripts14:47
uvosret?14:47
WizzupRET is 0 atm14:47
uvoshmm ok something is blocking14:47
Wizzuproot@devuan-xt616:~# /etc/init.d/droid4-powermanagement status14:47
Wizzupd=2024-01-14|t=13:47:26|i=OFF:0,RET:0|p=673|c=NA|b=none14:47
uvosthe b= dosent work on leste anymore14:47
uvosomapconf time14:47
Wizzupis that because of kernel changes, or?14:47
uvosno14:48
Wizzup(the b=not working anymore)14:48
uvosbecasue the version of a utility used to parse the bits changed14:48
Wizzupso droid4-powermanagement says:14:48
Wizzup * Module omap_hdq blocks idle: Seems to poll devices, blacklist?14:48
Wizzup * Module atmel_mxt_ts blocks idle: Should be unloaded when screen is blanked14:48
uvosthats old/wrong14:48
Wizzupboth are loaded14:48
Wizzupok, we should maybe update those eventually14:49
uvosits wrong14:49
uvosatmel_mxt_ts got idle support since then14:49
WizzupI mean we should update the script :)14:49
uvosomap_hdq we tamed by changing the parameters14:49
Wizzupright14:49
uvosanyhow omapconf will tell you14:49
uvosjust compeare it with the d4 output14:50
Wizzupunderstood14:50
WizzupI think I want to try to build the chimaera-experimental kernel first atm, many things happening at once14:50
Wizzupit's on a lab psu anyway so I don't mind the power usage14:50
uvossure14:50
uvosworking is at all is more important14:50
uvosthan ret14:50
uvosanyhow even at 0.5w it should last quite a while14:50
uvosthe battery is huge14:50
Wizzupyes, but if we can get it to idle then it should be able to charge while in RET14:51
Wizzup(that would be my main motivation atm)14:51
uvosif you upp cpcap to 2A in sysfs it will charge fine14:51
uvosstill takes a long time since the battery is huge14:51
Wizzupoh, so what I read in the logs a while ago, wrt charging being a problem is no longer relevant?14:53
uvosits less of a problem14:54
Wizzupok14:55
uvosback when the bridge chip dident work14:55
uvoswe could not turn off the display at all14:55
uvoswhich drew like 1.5A or so14:55
uvosits sill hillariously slow to charge via cpacp ofc14:55
Wizzup2A doesn't seem to be that slow, or?14:57
uvosi mean its a 7Ah battery14:58
uvosso takes like 4h14:58
uvosyou also going to have an extreamly hard time to charge it its empty14:59
uvossince the power draw of the display on boot is intense14:59
Wizzupright14:59
Wizzupuvos: I think kexecboot has a charging mode now15:00
uvosso it has the d4s low power boot problem on sterioids15:00
uvosright15:00
Wizzupuvos, not important now, but I think speaker audio doesn't probe either at mfor me15:03
uvoshmh15:03
uvosstrange15:03
uvosshould be the same as d415:03
Wizzupin any case, I'm super surprised by how well this works now already15:03
Wizzup[   39.769256] mot-mdm6600-codec 4806a000.serial:modem:audio-codec@2: ASoC: error at snd_soc_component_probe on 4806a000.serial:modem:audio-codec@2: -11015:04
Wizzup[   39.797454] asoc-audio-graph-card soundcard: ASoC: failed to instantiate card -11015:04
Wizzup[   39.812561] asoc-audio-graph-card soundcard: error -ETIMEDOUT: parse error15:04
uvosyeah i mean once tmlind figured out whats wrong with the bridge driver15:04
Wizzup[   39.827178] asoc-audio-graph-card: probe of soundcard failed with error -11015:04
uvosits just a big d415:04
Wizzupstill :)15:04
Wizzupwhich reminds me, does razr still have this screen issue?15:07
uvosyou have some mz604 right15:09
uvosjust mentioning: according to xda some of those have unlocked bootloaders15:09
uvosnot that its super revelant to us15:09
uvosits not like we are going to use a different boot procedure for some random mz60415:10
Wizzupare those omap?15:11
Wizzuphm yeah so this time to atmel probe failed again15:11
Wizzups/ to / the /15:12
uvosi ment 607 sry15:12
Wizzupok15:12
uvosall 604s are unlocked15:12
uvosbut thats nvidia powered xoom115:12
Wizzuplet me check @ mz60715:13
WizzupI have something labelled mz608 here as that is what the firmware says, but it doesn't have a microsd card slot exposed15:13
WizzupI *think* the rest are mz60915:13
uvosok15:13
uvosno15:13
uvosmz607 european wifi only version15:13
uvossame story as xt912/xt910  some european examples have unlocked bootloaders15:15
uvosdepends on where they where sold exactly15:15
Wizzupwe have the luxury to get one on ebay in any case, or if you find specific xt91x es15:15
Wizzupif it helps with the devel we can use funding money to acquire them15:15
uvosi have one allready15:16
Wizzupmz607?15:16
uvosxt910 (or 12 i dont remember) with a unlocked bootloader15:16
Wizzupright15:16
uvosi have no mz60x variant at all15:16
WizzupI know there's a lot of different chat threads, but do you recall if the razr still had this refresh bug?15:16
uvosyes it dose15:17
uvosi never got to that either15:17
Wizzupok15:17
uvosi was going to ajust the timeings slightly to see if it goes away15:17
Wizzupok15:20
Wizzuponce the conversations/telepathy settles down a little I would like to retry droid3/razr/atrix 215:21
uvosworking droid3 would probubly be most usefull15:26
uvosrazr has a nice display, atrix 2 is kinda just a bionic (maybe it even boots the bionic image, would not suprise me at all, stock android dmseg output suggests its exatcly the same as bionic)15:26
uvosminus the lte modem ofc15:27
WizzupI think getting them all to work would be great and I agree d3 is most useful, in the sense that it is mostly d4, but just with less ram, but no modem restrictions in the us15:29
Wizzup(which is useful for me :))15:29
uvoswell it also has the older non-vunerable bootloader15:29
uvoswhich is booo15:30
uvosthats a benefit xt91x has over bionic too15:30
Wizzupright, clown boot15:31
tmlindgood to hear the micro-sd works with leste on some tablets :)15:52
Wizzupyes, it's amazing :D15:54
tmlindso which tablets are now confirmed to work for micro-sd?16:09
tmlindonly mz616?16:10
Wizzupso far, yes16:11
Wizzupthe mz608 that I have here (presumably) according to some websites has microsd, but it is not exposed, I had not pried it open yet16:11
tmlindoh interesting16:17
sicelohttps://www.cnx-software.com/2024/01/10/lichee-console-4a-portable-risc-v-development-terminal-review-unboxing-teardown-hands-on/16:21
Wizzupcute16:49
Wizzupsicelo: so we need to work on a risc-5 port? ;)16:51
Wizzupuvos: I have a mb865 here17:14
Wizzupyou're suggesting I try clown boot on it like it's bionic?17:14
WizzupInlineFlashing_Edison_67.21.125_CFC_P3_APBP.xml/allow-mbmloader-flashing-mbm.bin well that is helpful17:34
uvosWizzup: yeah, possibly you have to rebuild the kexec modules against the edison kernel17:53
uvosWizzup: and you have to use edison mbm ofc17:54
uvosotherwise it could just work17:54
Wizzuphm, right, I did do some of that for solana (I still have the clownboot fork of that)17:54
uvosiirc you treid but in the end i had to compile the modules :P17:55
uvosbut i can do that for edison too17:55
uvosanyhow possibly its the same kernel as bionic anyhow so it should17:55
uvoswork17:56
uvosjust try instmoding them in android17:56
uvosor just compeare uname17:56
uvosover all confidence my is high that it shal just boot the bionic image otherwise17:57
Wizzupok17:59
WizzupI'll root it first, then try the insmod\17:59
uvosneeds to be updated to android 4.0.4 first ofc18:00
uvosif its 4.1 you might have to flash 4.0.4's boot.img18:00
uvosyou do on bionic anyhow18:00
Wizzupfreemangordon: btw I removed iphdb and glib from experimental sicne I don't think we need them anymore18:01
Wizzupuvos: yeah it's 4.0.4 already18:01
Wizzupthe droid 3 was actually using android 2.3.4 iirc18:01
uvosyes droid 3 was the only mapphone device that never got the 4.0+ updates18:01
uvosthis is because /system is too small18:02
uvosbut all of them started with 2.3 besides the tablets that started at 3.118:02
Wizzupuvos: btw, the droid 3 dts that I made is not in your 6.6 kernel18:08
Wizzupthis is not a big problem but this is why the postinst fails on the experimental kernel ;)18:09
uvosyeah that dosent merge18:11
uvosand i havent rebased that yet18:11
uvosd3 branch that is18:12
Wizzupmakes sense18:13
Wizzuplet me try booting the experimental kernel18:13
Wizzupworked18:17
Wizzup(mz616)18:17
uvoshttps://github.com/IMbackK/droid4-linux/tree/droid3-6118:19
uvoshere be d3 branch18:19
Wizzupthanks18:20
Wizzupprobably won't get to it today, planning to try the atrix and then take a break, but good to have it around :)18:20
Wizzupuvos: well insmod uart.ko made me lose adb shell but the device is on18:35
Wizzupso I guess it's compatible18:35
uvosyeah best do this via local shell on device18:37
Wizzupdo you think I should try the other steps too?18:39
WizzupI figured I'd just assume it works18:39
uvosits probubly fine yeah18:39
* Wizzup prepares bionic mage18:41
Wizzupimage , not mage :)18:41
uvosno nead18:43
uvos*eed18:43
uvos*need18:43
uvosif it boots to kexecboot via clownboot obv its booting the mainline kernel as a bionic18:43
Wizzupyeah but I'm going to make a leap of faith and see if it just works18:45
Wizzupthe atrix has an extra button it seems18:55
Wizzuphm, I think there's some read-only mount stuff going on again, the install.sh script failed18:58
Wizzupthat really needs set -e I think18:58
Wizzuphm, it doesn't let me reflash, complains about preflash validation failure19:06
Wizzupso I guess somehow the bootloader is not unlocked even with the allow-mbm...19:06
uvoswhat partition?19:09
Wizzupcdt.bin19:13
uvosyou dont need to reflash that19:13
uvosalso cdt.bin needs to be from the exact version19:14
uvossince thats where the keys live19:14
uvosso thats not unusual19:14
Wizzupalso lbl19:14
uvosallow-mbm... only unlocks a couple of extra partions but def not cdt19:14
uvosyes all of those need to be signed with the right key19:14
uvosso what you are trying to flash is not signed with the same key as the device19:15
Wizzuphm19:15
Wizzupok, so I am able to flash mbm for sure19:15
Wizzupok, so I need to find another android zip to flash?19:15
uvosyes the signing keys for mbm never changed19:15
uvosyou can flash any mbm from the same device19:16
uvosyes19:16
uvosor even from different devices often (for mbm)19:16
Wizzupok19:16
Wizzupfrom this: https://firmware.center/firmware/Motorola/MB865%20Atrix%202%20%28Edison%2C%20Fuath%29/Stock/MB865/ I got the latest InlineFlashing, as well as the ASIAOPS, MEARET and SEARET19:16
uvosi would really just ignore all of this and only worry about it if you cant flash /system19:17
Wizzupfrom the InlineFlashing I can flash cdt.bin19:17
uvosor bpsw19:17
Wizzuphmm ok19:17
uvosand boot19:17
uvosthose are the only partitions you need to touch really19:17
uvosclownboot only touches system19:17
Wizzupok, but should system not be compatible with the rest?19:18
uvosand pds19:18
uvosi think19:18
uvossystem dosent care19:18
WizzupI am able to flash InlineFlashing files, so I'm planning to just flash those enirely19:18
Wizzupentirely*19:18
uvosyou can boot different /system19:18
Wizzupbut I can stop doing that if you think that doesn't make sense19:18
uvosit makes no sense to reflash all that stuff and its needless danger19:19
uvosjust reflash what you touched19:19
Wizzupwell I didn't flash the phone initially19:19
Wizzupthat's the thing, so I don't know what's flashed in particular19:19
uvosyeah but any system will do19:19
uvoseven 4.1 vs 4.0 dosent matter19:19
uvosas long as the bootloader eats it its fine19:20
Wizzuphm ok19:20
uvossame with boot19:20
Wizzupand preinstall?19:20
uvosah right preinstall is where we place some clownboot stuff19:20
uvosyes you need to reflash that19:20
uvosbut also dosent matter19:20
Wizzupok19:20
uvospreinstall just contains some application19:20
uvoss19:21
uvosthat are wait for it.. preinstalled19:21
WizzupI just want to boot it android again first and root it, and then run the install.sh one by one19:21
Wizzupok, will boot now and see19:21
Wizzupthanks for the help as usual :)19:22
uvosyw, i presume it booted19:23
Wizzupif it gets past the 'rethink possible' logo then it will, otherwise I am stuck at where I was before :)19:24
Wizzupsays 'preparing device', so looks like it'll get there eventually19:25
Wizzupok, rooting again19:27
Wizzupfreemangordon: it looks like chimaera-testing in extras has a newer openmediaplayer, maybe we can move that?19:30
Wizzupbrb dinner19:32
Wizzupwill let you know how atrix goes :)19:32
uvosif it gets stuck at prepearing device you have to erase cache and data19:41
uvos(you should do this when downgradeing android (even patch levels))19:41
uvosand that might be what you are doing, since we dont know what the old version was19:41
uvosdazu: guten appetit!19:42
Wizzupuvos: ok so /sdcard is not writeable20:24
WizzupI used /data/bionic20:27
Wizzupuvos: hm:20:29
Wizzup$ fastboot flash bpsw ~/maemo-leste/droid4-kexecboot/current/droid4-kexecboot.img20:29
WizzupSending 'bpsw' (4096 KB)                           OKAY [  0.202s]20:29
WizzupWriting 'bpsw'                                     (bootloader) Command restricted20:29
Wizzupalso can't override boot.img per the bionic's readme20:30
Wizzup $ fastboot flash boot boot.img20:30
WizzupWarning: skip copying boot image avb footer (boot partition size: 0, boot image size: 8388608).20:30
WizzupSending 'boot' (8192 KB)                           OKAY [  0.440s]20:30
WizzupWriting 'boot'                                     (bootloader) Preflash validation failure20:30
WizzupFAILED (remote: '')20:30
Wizzupfastboot: error: Command failed20:30
Wizzupinteresting, now it just shows 'ap fastboot flash mode (s) (flash failure)'20:31
Wizzupso it doesn't boot to android20:31
WizzupI guess I need to dd?20:33
uvosfor /sdcard you might need a fat32 sdcard there20:39
uvosWizzup: no maybe it dosent have bpsw at all20:39
uvoscould be that bpsw, altho never used, was intended for something todo with lcm2.020:40
uvoswhich we dont have20:40
uvosyou can check in android ofc for the partitions20:40
uvosif it isent there you might have to use cache20:40
Wizzupwill check20:40
uvos(and modify the clownboot scripts to suit20:40
uvos)20:40
uvosthats already annoying if true20:41
uvosbecause now we already have to support the atrix as another distinct device20:41
Wizzupit has more buttons anyway20:41
uvosthose are just on the button matrix20:41
uvosyou could add them to the bionic dts20:42
Wizzupso /proc/partitions doesn't show a bpsw20:42
uvosthe bionic wont care20:42
WizzupI don't know if it is normally labelled20:42
uvosnot sure20:42
uvosbut look at the partition20:42
uvosshould be 4mb20:42
WizzupI don't know how to resolve it to a partition20:42
Wizzupthe name20:42
uvosso some are listed in cmdline20:42
Wizzup<5>[    0.000000,0] Kernel command line: omap_wdt.timer_margin=60 oops=panic console=/dev/null rw mem=1024M@0x80000000 vram=10300K omapfb.vram=0:8256K,1:4K,2:2040K init=/init ip=off mmcparts=mmcblk1:p7(pds),p15(boot),p16(recovery),p17(cdrom),p18(misc),p19(cid),p20(kpanic),p21(system),p22(cache),p23(preinstall),p24(webtop),p25(userdata) androidboot.bootloader=0x0A7220:43
uvosthe bootloader lists them there20:43
uvos /dev/mmcblk1p1420:43
uvosif thats 4mb and empry20:44
uvos*empty20:44
uvosthen its bpsw20:44
Wizzup 179       14       4096 mmcblk1p1420:44
Wizzupit does not seem to be mounted20:44
uvosfs?20:45
Wizzuplet me root again so I can check the partition contents20:45
uvosthe mild danger here is that bpsw might be used for something on this device, in difference to all the others20:45
uvosmaybe because the modem is slighly different or something20:45
uvosi gues risking bricking one as an expirament isent so big a deal20:45
Wizzupthere is webtop20:45
Wizzupyou think it would be a hard brick?20:46
uvosyeah you could use that20:46
uvosWizzup: unless you can find a singed bpsw image, maybe20:46
Wizzupright20:46
uvosandroid might not boot if the modem freaks out20:46
Wizzupflashing a wrong boot.img should not brick anything though right?20:46
uvosno thats safe20:46
Wizzup(rather, dding yours)20:46
uvoswait20:46
uvoswhat boot.img are you dding?20:47
Wizzuphttps://github.com/IMbackK/bionic-clown-boot/blob/master/boot.img20:47
uvosno no20:47
uvosdont do that20:47
Wizzupok, it also didn't work20:47
uvosyeah its bionic signed20:47
uvosthats just a specific bionic kernel version20:47
Wizzupso just use a boot.img that I have?20:47
Wizzupok20:47
uvosthat i know works, since the one from 4.1 dosent20:47
Wizzuplet me double check that insmod still works since I reflashed system and such20:47
uvosjust use a  android 4.0.4 boot.img from atrix in its place20:48
Wizzupok20:48
uvosdding a bionic image here20:48
uvoswont brick your device, but it wont work either20:48
Wizzuphttps://github.com/IMbackK/bionic-clown-boot/blob/master/scripts/kexebootstart.sh#L18C159-L18C159 so I would change this to the webtop partition?20:48
uvossince the bootloader will reject it and force you into fastboot asking you to reflash20:48
Wizzupright20:49
WizzupI think this might be what happened earlier20:49
uvosyeah if you dont want to use mmcblk1p1420:49
uvosmight make sense if webtop flashable from fastboot20:50
Wizzupwill try that now20:50
Wizzupyes that works20:51
Wizzupok, let me install bionic again with a fixed script for the partition20:51
Wizzupbionic->clown boot20:52
Wizzupuvos: got to kexecboot20:58
uvosweee20:58
Wizzupalso see kernel console20:58
uvosthat basicly guarentees that the device is otherwise 100% bionic compatabile20:58
Wizzupit might get to h-d20:58
Wizzupgenerting ssh keys atm20:58
Wizzup(..)20:58
uvosneeds more random data :P20:58
Wizzuphttps://wizzup.org/dirlist/atrix2/21:01
uvossweet21:02
uvoslooks like Wizzup is having a pretty good sucess rate today21:03
Wizzupnah, this is just me aping my way through trying to use your knowledge and work as well as tmlind's knowledge and work :P21:03
uvoscould you grab p1421:07
uvosfor examination21:07
uvoswe also need the battery nvme21:07
uvosaltho i presume its the same21:07
uvossince it shares its battery form factor with bionic21:07
Wizzupyup, sec21:09
Wizzupseems to be ... just zeroes21:11
Wizzupfor p1421:11
Wizzuphow do I get you the battery data?21:12
uvos /sys/bus/1w/devices/21:14
Wizzupuvos: https://wizzup.org/dirlist/atrix2/dmesg.txt21:14
uvossome lower directory of that21:15
Wizzupthere are some differences it seems21:15
uvosmbm is setting higher voltages21:15
uvosthats harmless21:15
uvosand not really a relevant difference21:15
Wizzupno, but like21:15
Wizzup[    8.487579] kxcjk1013 3-000f: Error reading who_am_i21:16
Wizzup[    8.498779] kxcjk1013: probe of 3-000f failed with error -12121:16
Wizzupand21:16
Wizzup[    7.697601] cpcap_adc cpcap_adc.0: CPCAP ADC device probed21:16
Wizzup[    7.704803] lm75: probe of 0-0048 failed with error -12121:16
Wizzup[    7.712951] cpcap_battery cpcap_battery.0: failed to register power supply21:16
Wizzupthe emif_probe and omap-sham seems less relevant21:16
uvosthe emif error is on all our devices21:16
Wizzupright21:16
uvoswe dont setup emif correctly21:16
WizzupI also don't see the modem in lsusb21:16
Wizzupwhich is probably why there is no audio card either:21:17
uvosok so the cpcap battery thing is pretty wierd21:17
Wizzup[   38.398345] mot-mdm6600-codec 4806a000.serial:modem:audio-codec@2: ASoC: error at snd_soc_component_probe on 4806a000.serial:modem:audio-codec@2: -11021:17
Wizzup[   38.462890] asoc-audio-graph-card soundcard: ASoC: failed to instantiate card -11021:17
Wizzup[   38.483459] asoc-audio-graph-card soundcard: error -ETIMEDOUT: parse error21:17
Wizzup[   38.498901] asoc-audio-graph-card: probe of soundcard failed with error -11021:17
uvosok ok21:17
WizzupI am not trying to make a point :)21:17
uvosmaybe the modem isent on usb like bionic but on spi like razer21:17
WizzupI just enumerated all the things I could find21:17
uvosthat would be annoying21:17
Wizzupmaybe superflous but /sys/bus/1w/devices/ does not exist currently21:18
uvosno thats a problem21:18
uvosbut it exits on my d4 too21:18
uvoshmm21:18
uvosso previously unoticed bug21:18
Wizzupdo you mean that it doesn't exist on your d4?21:19
uvos*it DOSENT exist21:19
uvosyes21:19
Wizzupcheck21:19
Wizzuplet me reboot, see if -devel works ok, and then try to boot to android from kexecboot as well21:20
Wizzupjust to confirm that that still works21:20
uvos"android from kexecboot" er no21:22
uvosclowboot burns that bridge by hijaking androids boot process to start kexecboot21:22
Wizzupah ok21:22
Wizzupmy bad21:22
Wizzupin any case, I have a second atrix 221:22
Wizzupso we can use that for android debugging21:22
uvoswe cant get to android from kexecboot anyhow21:23
uvossince we are in mainline linux at that point21:23
Wizzupah, right, of course21:23
uvosand the motorola kernel has a bug that it dosent survive warm boots21:23
uvosso you cant kexec it21:23
uvosbuuut21:23
Wizzuphehe21:23
Wizzupin any case, -devel boots fine :)21:23
uvoswe could improve clownboot to disable itself and let android continue if vol-up is held or so21:24
Wizzupright21:24
uvosok21:25
uvosdo you have decoded stock dts and the signal map?21:26
Wizzupnot yet21:26
Wizzupscreen brightness doesn't work either fwiw21:26
uvosyeah21:26
Wizzupadjusting it I mean21:26
uvosthe led controller dient work21:26
uvos*probe21:26
uvosthats lm7521:26
uvosmaybe the backligt is connected to cpacap instead21:26
uvosor the lm75 has a different enable gpio21:27
uvos(which would be in the singal map21:27
uvos)21:27
Wizzupok21:27
Wizzupthe atrix2 dir as a device_tree.img now21:27
Wizzuphas a*21:28
uvosWizzup: ok ill decode the signal map and dt tomorrow21:29
uvosWizzup: should still have the scripts somewhere21:30
Wizzupcool ty21:30
WizzupI'll write up the steps I took on a gh issue21:30
uvosyou can check with evtest what the shutter button has, matrix address wise21:31
uvosbtw21:31
Wizzupok21:35
Wizzup2 mins21:36
WizzupI'm curious if the modem is on spi or not, if so that would be shame21:36
uvosshould be able to find out in android sysfs21:36
Wizzupyeah21:37
uvosbut if so then its a theme with gsm only mapphones21:37
Wizzupwhat bothers me mostly is that tmlind said it's unlikely we'll ever get that to work :P21:38
uvosyeah21:39
Wizzupwe'll never*21:39
Wizzupuvos: which input device do you want me to evtest?21:39
WizzupI thought: /dev/input/event2:cpcap-pwrbutton21:40
uvosomap keypad21:40
uvosno21:40
Wizzupok21:40
uvosthe volume buttons are only on cpcap on devices with no removeable battery21:40
uvos(for the reboot claw)21:40
uvosotherwise they are matrix keys21:40
WizzupTesting ... (interrupt to exit)21:40
WizzupEvent: time 1705264818.732375, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1021:40
WizzupEvent: time 1705264818.732375, -------------- SYN_REPORT ------------21:40
uvosgreat21:40
uvosok we can add that to dts21:40
Wizzupok, the other mb865 needs a bit of time to charge the battery21:44
* uvos is also charing several mb86521:45
Wizzupone thing that might need to be done is to network unlock these before installing leste21:46
WizzupI guess not for us in europe of course21:46
uvosare they generally locked?21:46
uvoseven outside the us?21:46
Wizzupnot sure regarding outside the us21:46
WizzupI still do have a sigma key dongle and license.... used it just once21:47
uvossomething to try i gues21:47
uvosanyoingly they use old school huge sims21:47
uvosproviders here dont even supply those anymore21:47
Wizzupyou don't have 20 pcs of those lying around?21:47
Wizzup:D21:48
uvosi need to source an adapter21:48
uvosno :P21:48
WizzupIf you still used nokia n900 you would :p21:48
uvosi gues so21:48
Wizzupbtw, the battery indication does give me 86%, so it looks like it might work21:48
uvosbut the n900's older is so over engeneerd you can place a micro sim in there, if its just for testing ;)21:48
uvos*holder21:49
Wizzuptrue21:49
Wizzupunfortunately I have a piece of paper folded about 5-6 times in between my battery and sim holder ;)21:49
uvoswhy that21:50
Wizzupclassic n900 problems where it will sometimes lose sim contact21:50
Wizzupor lose modem somehow21:50
Wizzupbtw I wrote some info here https://github.com/maemo-leste/bugtracker/issues/64921:50
uvosoh so its over-engeneerd and bad21:50
uvosgreat21:50
Wizzuphehe21:57
Wizzupah, mb865 is not supported by sigmakey https://forum.gsmhosting.com/vbb/f719/unlock-mb865-1629642/21:59
Wizzup./bus/spi/drivers/mdm6600_spi22:05
Wizzup:(22:05
uvos:(22:10
uvosnow its really not very interesting22:10
uvosa bionic with no modem.. pass :P22:11
Wizzupyou're looking at it all wrong, this is a challenge to make the modem work ;)22:12
uvosxD22:12
Wizzupdo you remember what made supporting mdm6600 over spi particularly hard?22:18
* Wizzup will try to grep irc logs22:18
uvosWizzup: kernel just dosent implement qmi over spi (just from what tmlind explained from memory)22:20
Wizzupright22:21
Wizzupthere must be non-omap phones using qmi over spi22:22
Wizzupbut maybe not mainlind :)22:22
Wizzupmainlined*22:22
uvosiirc on android the kernel just exposes the modem interfaces to userspace and some blob talks qmi22:23
uvosso the downstream implementations are not very usefull22:23
Wizzupoof that would be ugly22:23
uvosnow i wonder if mz608 is also mdm6600 over spi22:26
uvosthat would complete the theory that all gsm only devices are so22:26
Wizzupfrom what I found tmlind wrote that xyboards have modem on spi22:27
uvosnah22:27
Wizzup16:22 < tmlind> uvos: xt910, xt912 and xyboard all uses qmi over spi for the modem i think, so at least i'm not working on that stuff22:27
Wizzup18:46 < tmlind> uvos: i think also droid4 has spi2 wired to the modem but not in use in the phone firmware. maybe that's just a config option though who knows22:27
Wizzupbut this was many years ago22:27
uvospretty sure he is wrong for xt61722:27
Wizzupprobably 4+ years22:28
uvoshe is def wrong for xt91222:28
uvosonly xt910 has it over spi22:29
uvosand im pretty sure he is wrong too for mz61722:29
Wizzupright, I think he got the modem working on mz617 :)22:29
Wizzupjust data only22:29
Wizzupif the blob speaks qmi over spi, it might not be super complicated, but yeah, maybe cm or lineage can tell us a bit more22:30
Wizzupon the mz616, I also don't see the modem on usb, but the kernel reported the modem powered up ok22:31
Wizzupuvos: there seems to be /sys/bus/platform/drivers/qmi-over-spi and /sys/module/qmi_spi on the 3.0.8 kernel22:39
Wizzupany idea where the kernel tree for edison could be found?22:41
uvosprobubly its just the motorola_mapphone_common tree22:41
uvosotherwise motorola published the code on sourceforge22:42
uvos(we should really save all of that sourceforge gets iffier by the month)22:43
uvos(https://github.com/STS-Dev-Team/android_kernel_motorola_omap4-common) this one if you dont know where to find it22:45
Wizzupty22:46
uvosdrivers/net/spi/qmi_net.c22:46
Wizzupyeah, I was looking at that, looks like very little code22:48
Wizzupthere must be more22:48
uvossomething something 30mb userspace blob :P22:49
Wizzupso there is arch/arm/mach-omap2/board-mapphone.c22:49
uvossure thats just board source22:49
Wizzupoh this just refers to qmi over spi22:50
Wizzupyeah22:50
Wizzupare you sure about the userspace blob? I mean it's entirely possible of course22:50
WizzupI just did find / | grep qmi and all I found was some sysfs stuff22:50
Wizzup(on android)22:50
uvosyeah i mean there is a huge blob that just opens all the modem device files22:50
uvosanyhow tmlind surely knows why he thinks implementing qmi over spi would be very hard22:51
Wizzupmhm22:51
uvosprobubly best to just interrogate him22:51
Wizzupwell let's just get an image going at least for mb865 in any case22:52
uvosill bring the thumb screws22:52
WizzupI don't think that's necessary :P22:52
WizzupI'm curious about the blob, I always thought qmi was some protocol / standard thing, but I guess not22:53
* uvos sad trombone22:53
Wizzuphmm22:53
Wizzupwait22:53
Wizzuproot@edison:/ # dmesg|grep qmi22:53
Wizzup<6>[    0.259033,0] feature_qmi_over_spi=022:53
Wizzupwe should check the device_tree tomorrow22:54
uvosor lsusb22:54
uvosanyhow ill head out22:54
uvosttyl22:54
Wizzuphttps://wizzup.org/dirlist/atrix2/dmesg-android-3.0.8.txt22:54
Wizzupyeah lsusb says nothing but that could just mean the modem didn't power22:54
Wizzupok, ttyl22:54
uvoson android ofc22:54
Wizzuproot@edison:/ # lsusb22:55
WizzupBus 001 Device 001: ID 1d6b:000222:55
Wizzupthat's just some root hub I think22:55
Wizzup<6>[  113.538391,0] omap_hsi omap_hsi.0: Modem wakeup detected from HSI CAWAKE Pad port 123:01
Wizzuphm23:01
Wizzupisn't that what the n900 uses too? ssi/hsi?23:13
bencohit is indeed23:19

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