libera/#maemo-leste/ Saturday, 2022-06-25

norayrmissMyN900: yeah your droid3 looks good. but right now a little bit expensive for me.00:01
missMyN900norayr: actually it is a Bionic ;)00:02
norayrand btw what i don't like (though i believe the seller) is that there are just generic photos of the device. not the photos of that exact device.00:02
norayroh.00:02
missMyN900better support but no hardware keyboard00:02
missMyN9001 GB also though00:02
dreamernorayr: I did not?00:02
missMyN900similar to D4 basically00:02
norayrwait let me look at it again.00:02
dreamernorayr: you said something about using modified GPL code in your company and then not needing to release those changes. that goes against the GPL00:02
norayrdreamer: i lost all our threads, sorry. i am so tired now. i was trying to concentrate on packaging something, but i also have two jobs and my brain00:02
norayrdoesn't work now.00:03
dreamerok, sure. I won't continue the conversation :)00:03
missMyN900dreamer: no, it doesn't00:03
missMyN900only the company distributes the software00:03
missMyN900*if00:03
norayrdreamer: so if it goes against gpl, i am glad. but i knew it differently for some reason.00:03
missMyN900as long as you do not distribute but only use it internally/for personal use there is no issue00:04
norayrmissMyN900: i knew it like that too.00:04
dreamermissMyN900: well that's what I said earlier too. but if you use it to run your company. it's not exactly "personal use"00:05
missMyN900I also said internally :)00:05
norayrok will try to install leste on droid3.00:05
missMyN900as long as you do not distribute it00:05
dreamerI don't see how the GPL allows that00:06
dreamerthere are different interpretations of "distribute"00:06
dreamersimply installing it on a remote machine can be considered "distributing" :)00:06
missMyN900if the company modifies it, they do not have to open source their changes00:06
missMyN900the company is one entity00:06
missMyN900the individual employees are working for the company00:07
missMyN900the IP they create at work is property of the company00:07
dreamerok, relevant part: https://www.gnu.org/licenses/gpl-faq.en.html#GPLRequireSourcePostedPublic00:07
dreamerand you are right00:07
dreamerjust using it (say you make patch to the code so it works on a specific system) is fine00:07
missMyN900if they want to distribute to customers then there is a problem00:08
dreameryeah00:08
dreamerand if unmodified but you statically bind it to your own code. then your code gets "infected" with GPL too00:08
missMyN900but if you want to run some hacked GPL licensed server software for internal use, you can do that00:08
dreamerwhich is why a lot of companies don't like GPL :#00:09
dreamerwe had a lot of internal discussions in our company in which way we could still use GPL licensed code00:09
dreamerwe don't exactly distribute anything. except for frontend code. but that's in the browser anyway so technically the code is already available :P00:09
dreamerbut actually the FE is only comprised of bsd/mit/apache based libs in the end00:10
missMyN900anyway, it is time for me to try to install Devuan Beowulf on the Atom tablet :)00:10
missMyN900and then hopefully ML/Hildon00:11
dreamerhmm. I still have an atom netbook that can't really run much of anything these dayss00:12
missMyN900install Alpine like I did on my dual core Richland laptop :)00:14
missMyN900I am running fluxbox on it00:14
missMyN900use w3m for limited web browsing (Netsurf is in edge/testing so eventually I will use that)00:15
missMyN900Alpine 3.16 is easier to install for desktop use than earlier versions00:16
missMyN900icewm is in edge/testing as well so eventually I will switch to that as I also use it on my desktop00:17
dreamerfluxbox <300:17
missMyN900or you could build a pmOS image for it ;)00:18
dreamerhas been my main WM for nearly 15 years now ..00:18
missMyN900I am only using it since it was available on Alpine tbh00:18
missMyN900I could not get JWM to work00:18
dreamerit has all the features I expect from a WM00:18
dreameralso, dockapps <300:18
missMyN900I have used spectrwm in recent past as well00:18
missMyN900but it is also not available in the Alpine repos00:19
norayrwhat is pushd? some android tool mentioned here https://leste.maemo.org/Motorola_Droid_4#Setting_up_kexecboot00:19
norayri don't remember how did i setup droid400:19
norayri think i never had pushd, but i had adb00:19
missMyN900https://www.howtogeek.com/659146/how-to-use-pushd-and-popd-on-linux/00:20
missMyN900I thought it looked like a stack00:20
norayrah i undersand, that's a shell thing. thank you00:20
missMyN900https://en.wikipedia.org/wiki/Pushd_and_popd00:20
missMyN900I wrote a stack machine in F# years ago00:21
norayrso the question is if i do that kind of flashing with the locked device00:23
norayrwill it erase the lock?00:23
missMyN900what kind of lock?00:23
missMyN900PIN code is related to the SIM00:24
norayri don't know. that seller on ebay sells droid3 without a battery and they said the phone has lock. probably user locked the device.00:24
missMyN900could also be carrier locked00:24
norayrwith operating system login pin.00:24
norayrwait00:24
missMyN900I think flashing it would remove that00:24
norayrhttps://www.ebay.com/itm/324651319779?epid=108653735&hash=item4b96ba01e3:g:WwsAAOSwCYZgs~yC00:25
norayrhow would you understand that?00:25
missMyN900there is no FDE with those old Android versions00:25
missMyN900"Phone may have more or less issues than what are listed in the item condition"00:26
missMyN900I wouldn't buy it00:26
missMyN900especially considering how much shipping it will cost you00:26
norayreh00:26
missMyN900for me it is only $4.45 shipping00:27
missMyN900but it would probably be $20-30 for you00:27
missMyN900if not more00:27
missMyN900this is why I prefer DB00:27
missMyN900there are some DBs in good condition available00:27
missMyN900instead of having to buy these sketchy devices00:27
missMyN900hardware keyboard is nice but I have learned to live without it00:28
norayroh no. i ship it for $4. but then i have a postal forwarder that forwards it from usa to armenia.00:28
norayrand i pay per kilogramm.00:28
missMyN900how much does that cost?00:28
norayr$8 per kg.00:28
missMyN900oh00:28
missMyN900still, I would not do it00:28
missMyN900shipping is more than the phone itself00:28
norayri can ask them to ship directly, but i'll wait for years maybe.00:28
norayryes. and battery often.00:29
norayr(:00:29
missMyN900unless, you really, really hate software keyboards, I would get a DB instead00:29
missMyN900as you already have D400:29
missMyN900if you can find an ASUS T100TA cheaply locally (or in a nearby country) you could consider that too00:31
norayrdroid4 install manual says00:31
missMyN900apparently it runs Linux well so you could have an ML tablet00:31
norayrsudo fastboot flash utags utags-mmcblk1p13.bin00:31
norayrnot sure if it is necessary with droid3. because droid3 download didn't list it.00:31
norayrhm.00:31
missMyN900probably not then00:31
missMyN900the partition layout is different very often with Android devices AFAIK00:32
missMyN900even with Sony Xperias from a pretty small time range00:32
missMyN900I really am going to work on the Atom now though :)00:33
missMyN900see you later00:34
norayrgood luck00:37
norayruvos, Wizzup, should i use00:38
norayrsudo fastboot flash utags utags-mmcblk1p13.bin00:38
norayron droid3?00:38
missMyN900this Atom tablet is very interesting02:20
missMyN900I am not sure the audio will work because it came with a 3.5 mm power adapter and I plugged it in thinking it was the OEM adapter...02:20
missMyN900but turns out it just charges like a regular Android phone/tablet with micro USB...02:20
missMyN900at least it was only 3.6V. Maybe the Realtek audio chip has some protection against that. Idk02:21
missMyN900after many tries I was able to access the UEFI by pressing esc02:21
missMyN900it has Insyde H20 UEFI/BIOS; there are *a lot* of options. It is amazing.02:22
missMyN900you can even change the power limit of the SoC02:22
missMyN900it even shows the full specification/component list right there in the UEFI!02:23
missMyN900it has an earlier version of the WiFi chip that is in the PP02:23
missMyN900RTL8723BS (PP is CS)02:23
missMyN900so it will probably need an out-of-tree driver02:23
norayrmissMyN900: are you trying to build maemo image? or pmos?02:24
missMyN900norayr: I was able to "boot" Devuan Beowulf02:24
norayroh cool02:24
missMyN900but it shut down because it ran out of power02:24
norayrand i maybe bricked droid302:24
norayrmeanwhile02:24
missMyN900you can access the "boot manager" when you press esc02:24
missMyN900and select the USB drive02:25
norayri think it boots to something like android 2 now. and i cannot even use it under that thing.02:25
missMyN900I am using a microUSB OTG adapter that I bought for another tablet years ago02:25
missMyN900so I cannot charge it at the same time02:25
missMyN900I think this is a very good dev device02:26
missMyN900I will provide the full specs tomorrow02:26
missMyN900it has been confirmed to have an Atom Z3735G, by the way02:26
missMyN900norayr: oh I forgot, I have some virtual gifts for you02:27
missMyN900I was browsing eBay while eating earlier02:27
missMyN900norayr: this could be good for your friends: https://www.ebay.com/itm/19453223075802:27
missMyN9003 DBs like new for $8202:28
missMyN900and free shipping to your freight forwarder02:28
missMyN900should be less than 1 kg in total so would only be $8 shipping then02:28
missMyN900so $90 total02:28
missMyN900so basically $30 per DB and they come accessories (and box even)!02:28
missMyN900norayr: and I found something else for you too: https://www.ebay.com/itm/39409847987002:30
missMyN900it is a high quality after market battery for the D3!02:30
missMyN900ships from Germany; Milestone III = European Droid 302:30
missMyN900https://www.gsmarena.com/motorola_milestone_3_xt860-4349.php02:31
missMyN900https://en.wikipedia.org/wiki/Droid_302:33
missMyN900I was searching for an aftermarket DB battery02:34
missMyN900from PolarCell and then I saw the Milestone III one02:34
missMyN900I did find this: https://www.ebay.com/itm/362621634385 should work in the DB02:35
missMyN900but it is expensive :(02:35
missMyN900https://github.com/anthonywong/rtl8723bs "Since Linux 4.12, rtl8723bs has been merged. Therefore, this repo is now obsolete." RTL8723BS driver has been mainlined already :D02:36
missMyN900https://www.realtek.com/en/press-room/news-releases/item/realtek-s-hi-fi-audio-single-chip-with-voice-sound-dsp-and-codec-alc5642-receives-innovative-product-award-2012 <-- audio chip in the 8.9" Ematic Atom tablet02:38
missMyN900it is not an HDA/Azalia chip02:38
missMyN900those probably are too expensive/use too much power for a small, cheap tablet02:38
missMyN900https://bugzilla.kernel.org/show_bug.cgi?id=98001 <-- apparently it is supported! (also used in MS Surface 3)02:39
missMyN900according to the Atom data sheet from Intel it uses a "Low Power Engine" (built around I2S) for audio02:51
missMyN900seems similar to what ARM SBCs and phones/tablets use02:51
missMyN900https://www.ebay.com/itm/114944440018 found one on eBay02:53
missMyN900hmm seems like the Surface 3 itself runs Linux pretty well too, although it is a bit larger (10.8"). May be a bit larger for a ML tablet, I don't know03:02
missMyN900*large03:02
norayri will need help installing maemo-leste on droid3, people, when you come.04:41
norayrbtw, for now i can tell:04:41
norayri ported live-wallpaper04:42
norayrand shermans aquarium04:42
norayrhttps://xn--y9azesw6bu.xn--y9a3aq/media/uploads/2022/06/25/51cdf9e3-66ec-4d6c-b809-52fd8d3f27c0.png05:08
norayrhttps://xn--y9azesw6bu.xn--y9a3aq/media/uploads/2022/06/25/2acd0221-85d0-47bc-ad37-aeb3d289b3ff.png05:08
norayrhttps://xn--y9azesw6bu.xn--y9a3aq/media/uploads/2022/06/25/0584021d-504f-4a4f-a70f-7e2ededd80ca.png05:08
norayrhttps://xn--y9azesw6bu.xn--y9a3aq/media/uploads/2022/06/25/a298c46b-863f-4c12-940e-5c4828c06ec0.png05:09
norayrWizzup: i will gonna need two more repos from you.05:09
norayrhttps://spyurk.am:5281/upload/TsfFYKRx16ooOJHp/20220625_071149_ad6d_komp.mp405:14
buZzeh ok, did i do something wrong on building kernel?08:38
buZzgit cloned, got the right branch08:38
buZzgrabbed /proc/config.gz, gunzip, mv config .config, make oldconfig08:38
buZzyet, on booting the build, screen remains black, no sign of life (chargeled doesnt turn on either)08:39
buZzoh, make modules/modules_install perhaps?08:40
* buZz tries08:40
Wizzupnorayr: cute08:50
buZzin drivers/....pvrsgx/ , maybe we dont need to build -all- versions?08:50
WizzupbuZz: what are you tryin to do?08:51
buZzjust rebuild d4 kernel08:51
Wizzupnorayr: I can try to help with the d3 today or tomorro08:51
buZzWizzup: i still need to test, but i think my mods on a EB41 battery should get me 10-20% more batterylife08:54
buZzkernelmods*08:54
buZzah, might have just been missing the modules09:06
buZzLinux devuan-droid4 5.15.2-g0fe205dd861a-dirty #3 SMP PREEMPT Fri Jun 24 03:39:53 CEST 2022 armv7l GNU/Linux09:15
buZzw00t09:15
buZz:) now to recalibrate this '1180 mAh' tested EB41 battery09:15
buZzehhh shouldnt power_supply/usb and power_supply/battery agree about charging voltage?13:18
buZzit seems the /usb one sticks to 4.2v and not the HV charge voltage i set in /battery13:19
buZzand cant see where thats set at all ... oo , let me check devicetree13:19
buZzhmmf, cant find where its from .. tempted to just replace all 4200000 with 435000013:28
buZzline 938 on cpcap_charger.c seems to override what cpcap_battery.c sets, perhaps13:36
* buZz tries13:36
buZzyez, indeed #93814:09
* buZz charging at/to 4.35v now14:10
rafael2kIn PP, we use Mobian 5.15 branch plus some patches ML patches we introduce, like that battery type one, for our battery changing applet work, some modules are built-in in order we can boot without initrd, a pinetab panel module, there are some differences indeed between our kernel and mobian 5.15 kernel14:20
rafael2kand last but not least, I installed mobian here just to test, and it was running their 5.10 kernel line, not really the 5.15 as we do14:21
rafael2kit was some time ago I tested mobian, so may be something changes already, I dunno14:22
rafael2kI'm tempted to try mainline 5.19 to check how upstreaming is going...14:25
rafael2kread that it might be that the cameras driver have implemented the minimal controls needed by libcamera... I'll see14:26
lelnorayr opened an issue: https://github.com/maemo-leste-extras/bugtracker/issues/29 ([REQ] live-wallpaper)20:46
lelnorayr opened an issue: https://github.com/maemo-leste-extras/bugtracker/issues/30 ([REQ] shermans aquarium)20:47
buZzrafael2k: would be supercool to get working cam on d421:06
buZzcams*21:06
rafael2kbuZz: Does it have any v4l driver working?21:09
rafael2kwith v4l in place, all the rest is much easier... I'm still struggling with the v4l drivers for proper PP cameras support21:09
rafael2kby proper I mean - having a "one-fits-all" low level camera library, which I think libcamera is the best fit21:10
rafael2kand not by using specific hardcoded low level user land to deal with v4l drivers poorly implemented, as it seems it is the case for PP cameras21:11
uvosno21:14
uvosthe d4 rear camera has no working drivers and no documentation of any kind (downstream driver or datasheet)21:15
uvosthe front camera is a pretty common chip and has various downstream implementations21:16
uvosomap4 iss also isent in mainline21:16
rafael2kso we have at least with something to start with21:16
rafael2k: )21:16
uvosbut there is a driver for that floating around too21:16
uvosrafael2k: sure, but rear camera would be pretty hard21:17
rafael2khow does android implementation works?21:17
rafael2kcould it's kernel be used as reference/21:17
uvosits implemented in binary firmware on one of the omap4  m3 cores21:17
uvosthe android kernel dosent do anything with the camera at all21:18
rafael2kow, did not know that, that is bad21:18
rafael2kdoing some rev. engineering would be some work...21:18
uvosright21:19
uvosi gues you could alos just use the android firmware, but thats pretty undesirable21:20
uvosit also dose all the image processing libcamera would do on the dsp21:20
uvosie debayering and color correction and so on21:21
uvos(the m3 cores have a dsp)21:21
rafael2kthat is that libhybris or something like this, no?21:23
uvosno21:23
uvosthe firmware runs on a different processor21:23
rafael2kshit21:23
uvosits not related to using libhybris21:23
uvosthe omap4 has 4 arm cores21:23
rafael2kand so there is just an API to talk to this processor and get the frames?21:23
uvosyes via dma21:24
rafael2kunderstood21:24
uvosthe android kernel just gets the compleated image via dma21:24
uvosthe other 2 (non linux) arm cores have access to the omap interconnect21:24
uvoslike the main ones21:24
uvosso the firmware gets to drive the omap spi and iss interfaces to talk to the cip21:25
uvosand then just push the final frame into ram21:25
uvosafter processing it in the dsp21:25
rafael2khum, so there is not need for "hardware" debugging, just really software digging with the android right?21:25
uvosif you want to use motorolas firmware sure21:26
uvosbut then you have binary firmware running21:26
uvosthat can access everything21:26
uvossince it sits on the same bus as the cortex a9 processors linux runs on21:26
rafael2kthat is not ideal... but it seems a good starting point21:26
rafael2kdo you have this blog? I mean, could we decompile it, or debug it in runtime?21:28
rafael2k*blob21:28
rafael2kif it is not thaaaaat big21:28
rafael2kit should be possible to use ida pro or something like this to have a grasp on what it does, right?21:29
bencohuvos: wait, the M3 handles the CSI part, or just the "ISP"/postprocessing?21:30
uvosbencoh: m3 dose everything, essentally android just asks the fw for an image and gets a compleatly processed image back in ram21:36
uvoswell not quite21:37
bencoh"not quite"?21:37
uvosit has to ask for the image to post processed in a seperate step21:37
uvosiirc the fw on the other m3 core dose this21:37
uvosit controles the dsp21:38
uvos(also for video decodeing etc)21:38
bencohso the a9 handles the mipi/csi?21:38
uvosno21:39
bencohah, I see what you mean by "not quite"21:39
bencohokay21:39
bencohwell then maybe the beagleboard/pandaboard projects would be more helpful than android here21:39
buZzi wouldnt mind a blob on m3 if we can use open shit behind it22:07
buZzlike baseband22:07

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