IRC log for #maemo-ssu on 20131010

00:06.39*** join/#maemo-ssu trx (~ns-team@212.200.199.46)
00:06.39*** join/#maemo-ssu trx (~ns-team@devbin/founder/trx)
00:29.09*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
01:09.04*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
02:41.44*** join/#maemo-ssu amiconn_ (amiconn@rockbox/developer/amiconn)
05:34.06*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
05:56.21*** join/#maemo-ssu luf (~luf@80.188.29.62)
06:01.35*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
06:07.45*** join/#maemo-ssu freemangordon_ (~freemango@46.249.74.23)
06:39.55*** join/#maemo-ssu tom (~tom@66.172.11.27)
06:42.04*** join/#maemo-ssu DrCode (~DrCode@gateway/tor-sasl/drcode)
07:02.54*** join/#maemo-ssu LauRoman (~LauRoman@5-14-91-21.residential.rdsnet.ro)
07:17.41*** join/#maemo-ssu tom (~tom@66.172.11.27)
07:38.27*** join/#maemo-ssu Martix (~martix@static-84-242-103-180.net.upcbroadband.cz)
07:49.11*** join/#maemo-ssu Pali (~Pali@Maemo/community/contributor/Pali)
07:52.26DocScrutinizer05http://talk.maemo.org/showthread.php?p=1372710#post1372710
08:03.14*** join/#maemo-ssu MohammadAG (~MohammadA@Maemo/community/contributor/MohammadAG)
08:22.27FatPhilDamn, a second of my n900s has a broken USB :(
08:24.25*** join/#maemo-ssu X-Fade (~xfade@d5152FFD8.static.telenet.be)
08:30.05FatPhil"What we need for infra are volunteers, raw manpower" - such as?
08:43.33*** join/#maemo-ssu dhbiker (~dhbiker@95.87.145.172)
08:43.40*** join/#maemo-ssu joshgillies (~josh@ppp108-14.static.internode.on.net)
08:44.54joshgilliesanyone in here developing on an ARM chromebook?
08:45.10joshgillieslooking for pointers toward getting the sdk up and running
08:48.13Palino chromebook here
08:48.33freemangordon_Pali: we have a problem with omapfb :(
08:48.39freemangordon_and dss driver too
08:48.57Paliwhich problem?
08:49.08Palicma not working?
08:49.22freemangordon_CMA actually doesn;t seem to work reliably, so it can't allocate framebuffer memory
08:49.44freemangordonPali: yes
08:50.13Paliand why preallocate without cma not working?
08:50.24freemangordonPali: it is removed ;)
08:50.34freemangordonno more vram= boot parameter
08:50.37Paliah...
08:50.48freemangordonand dss:
08:50.50freemangordonJan  1 06:35:24 Nokia-N900 kernel: [ 2172.539093] omapdss DISPC error: horizontal timing too tight
08:50.50freemangordonJan  1 06:35:24 Nokia-N900 kernel: [ 2172.545074] omapdss APPLY error: dispc_ovl_setup failed for ovl 1
08:51.45freemangordonthis happens for both 720p and lower res videos
08:51.59freemangordon(in case CMA succeeds :D )
08:52.15freemangordonPali: but on the bright side, seems DSP is tock stable
08:52.19freemangordon*rock
08:55.00Paliok, so if you disable cma low res videos working?
08:55.45freemangordonPali: makes no difference, as then memory cannot be allocated because of the fragmentation
08:56.14freemangordonso CMA is the way, but it seems broken
09:00.26Paliand reverting preallocate?
09:02.25freemangordondidn't try it, but I guess it will fix the problem
09:26.41*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@218.107.16.197)
09:43.11*** join/#maemo-ssu kolp (~quassel@212.255.30.22)
10:28.49DocScrutinizer05FatPhil: such as somebody looking into tmo karma and fixing it
10:31.41kolpI wonder if the size of the current active community really necessitates the existence of a community-voted council. Wouldn't it be enough to have an admin team appointed by HiFo org? Just musing... :)
10:32.13kolpHm, wrong channel..
10:37.23*** join/#maemo-ssu lizardo (lizardo@nat/indt/x-crlgqczyrubvzhou)
10:53.32*** join/#maemo-ssu joshgillies (~josh@ppp108-14.static.internode.on.net)
12:25.34*** join/#maemo-ssu Pali (~Pali@Maemo/community/contributor/Pali)
12:39.16*** join/#maemo-ssu LauRoman (~LauRoman@5-14-91-21.residential.rdsnet.ro)
13:13.30freemangordon~ping
13:13.30infobot~pong
13:26.47freemangordonPali: how am I supposed to report that omapfb problem on lkml?
13:34.59jonwilok, so at this point for audio, there are 4 things I dont know and want to know, firstly is how the audio system (PulseAudio specifically) knows the difference between e.g. music playback and VoIP audio, second is how the Bluetooth audio is fed into PulseAudio (or fed out of PulseAudio), the third is how the FMTX/FMRX audio is fed into/out of PulseAudio and the last is whether there exists a...
13:35.01jonwil...nice "Pulseaudio for Dummies" type book out there :)
13:42.18Palifreemangordon: run ./scripts/get_maintainers.pl -f /path/to/omapfb and check who is maintainer
13:42.34Paliand send email to maintainers plus maybe cc lkml
13:42.42freemangordonPali: ok, thanks
13:43.20Palijonwil: first: it using library libplayback
13:43.41Paliin this library you can tell type (voice call, music, other...)
13:44.26Palilibplayback using dbus to inform ohmd about type and also set some PA property on used PA stream
13:44.54freemangordonPali: hmm, do we have anything major but cameras that doesn't work in 3.12?
13:45.05Palijonwil: second: via native bluetooth PA plugin
13:45.30PaliPA somehow connect to bluetoothd (dbus/socket)
13:45.54jonwilso libplayback specifically talks to pulseaudio?
13:45.58Palithis is fully documented somewhere and it is standard solution on linux desktop
13:46.00jonwilor does ohmd talk to pulseaudio somewhere?
13:46.06Palijonwil: probably yes
13:46.10jonwilok
13:46.17Paliohmd can talk to PA
13:46.26Paliand also libplayback can talk too
13:46.57Palifreemangordon: camera, sound, maybe jack
13:47.04jonwilwhat about FM?
13:47.12Paliand fmtx/fmrx is not tested
13:47.17jonwilok
13:47.25Palibut drivers are there
13:47.42freemangordonPali: I was able to get sound through BT :) some days ago
13:47.43Palifmrx driver is same as in fremantle kernel
13:47.54Pali(I checked it)
13:48.02jonwilI mean how does FMTX/FMRX end up in PulseAudio?
13:48.07Paliand bluetooth driver was tested by skry and it worked
13:48.32freemangordonPali: though I see lots of "unrecognized HCI packet)
13:48.38Palijonwil: fm and PA on n900 is totally unknown for me
13:48.44jonwilok
13:48.56jonwilFMTX goes though fmtx-middleware
13:49.00jonwilso I should probably start there
13:49.14freemangordonjonwil: RE fmtxd :)
13:49.18Palibut I do not understand why middleware is needed
13:49.33Palifmtx should be /dev/radio device
13:49.38freemangordonPali: it controls stuff like USB cable connected, etc
13:49.44Paliand alsa has radio plugin
13:49.47freemangordonalso regional frequencies
13:50.03Paliso PA can use normal alsa interface for radio support
13:50.13Paliand it should act as sound card...
13:50.29Palifreemangordon: only that? or it also routing audio?
13:50.58Palifreemangordon: also need to test bluetooth if working
13:51.05freemangordonnot sure, but I *think* it is not fmtxd to route. might be wrong, didn;t look at it
13:51.23Paliand need to test if wifi adhoc mode working
13:51.42Paliall audio on maemo is big mess
13:51.59jonwilbtw, I have thought a bit and have realized that the idea to pretend that the Option modem audio is voip and not cellular audio (at least to Pulseaudio) is a good idea.
13:53.08Palialsa, PA, PA modules, alsa policy, PA policy, alsaped, pasr, ohmd, ohm plugins, libplayback, swi-prolog, prolog code, dresd, dres daemon...
13:53.16Paliand other stuff which I forgot
13:55.19jonwilbtw pali are you 100% sure that your decompile of the policy-settings-rx51 prolog code is functionally identical to the stock compiled prolog code?
13:55.40PaliI'm 99% sure
13:56.10jonwilok, in that case all we need to do is to write a decompiler for policy.dresc :)
13:56.30freemangordonhttp://talk.maemo.org/showpost.php?p=1379819&postcount=72
13:56.33Palithere is 1% chance that I forgot something (some non predicate prolog code)
13:56.52Palijonwil: do we need it?
13:56.56freemangordonfeel free to correct me if I've write something which is not correct
13:57.25freemangordon*written
13:57.33Palijonwil: one nokia dev wrote on TMO some info about dres and dres compiler
13:57.39jonwilyes he did
13:57.44jonwilI remember it
14:01.03Palijonwil: you can try contact him again, if he does not have any usefull stuff (e.g. decompiler :-))
14:01.19kolpGetting rid of prolog sounds like a worthwile goal :)
14:01.37jonwilI doubt he would have a decompiler as there would be no reason to write one
14:01.55FatPhilfreemangordon: where can I pull your kernel?
14:02.53Palijonwil: instead writing decompiler it should be easier to load that dres binary file into dres VM and dump factoid info into debug console
14:03.30Palijonwil: if I remember correctly in dres file are only some functions and lot of static data...
14:04.25Paliand that debug dump command doing some "disassembling" of current memory state
14:04.54Paliand dres VM is stack based - this could help you
14:06.15Palifreemangordon: what is needed is to patch all maemo daemons to work without that kernel patch for sysfs
14:06.36freemangordonPali: which patch?
14:06.41freemangordongpio?
14:06.48freemangordonooh
14:06.57Palino select syscall
14:07.00freemangordonyeah
14:07.09freemangordonFatPhil: a second
14:07.20Palibut that omap platform gpio driver too
14:07.26Palineeds to be rewritten
14:07.42Palior removing using it from maemo apps...
14:07.43freemangordonFatPhil: this is upstream (Pali :P ) https://gitorious.org/linux-n900/linux-n900/source/683cc15ed3e6bceb51472a530244f72fa8d40b52:
14:08.22freemangordonFatPhil: this is mine tree ( a little bit ahead) https://gitorious.org/linux-n900/freemangordons-linux-n900/source/777f4ace4c58799575391833db48050ceefe6fd6:
14:08.23jonwilWhich maemo apps are using this particular driver?
14:08.39jonwilthe GPIO one
14:08.41Palijonwil: sscd :-(
14:08.47jonwilugh
14:08.50Palimce
14:08.58Palipreinit
14:09.00freemangordonPali: sscd is small binary
14:09.12freemangordonand we know what it does
14:09.32Palisscd is using it for cmt_ gpios for init
14:09.36freemangordonmce... well... :)
14:09.40freemangordonPali: :nod:
14:09.49jonwilI wouldn't call 100k a small binary in my book
14:09.58freemangordonjonwil: sscd is 100K?
14:10.03Paliand every app which using any gpio directly
14:10.10jonwilyes its 108,836 bytes
14:10.19freemangordonomg, my bad
14:10.23Pali(do not know which other)
14:10.44freemangordonPali: well, I guess we can live with that gpio
14:10.53Palijust call grep /sys/something on maemo
14:10.56Paliok
14:11.06freemangordonfor the select thingie, we can LD_PRELOAD
14:11.37Paliok
14:12.36Palifreemangordon: what is problem with front camera?
14:12.52Palistill green rectangle?
14:13.01freemangordonyep
14:13.10Palior something changed after fixing IRQ?
14:13.22freemangordonnothing
14:13.30freemangordonISP irqs are just fine
14:13.56freemangordonit is something in the ISP driver, I hope sailus ti help us find it
14:13.56Palifreemangordon: I remember that somebody wrote that camera worked on meego with meego 37+ kernel
14:14.18Palimaybe looking into meego n900 kernel tree...
14:14.29freemangordonPali: there is a long way between 2.6.37 and 3.12 as you probably know :P
14:14.35Paliyes
14:14.48freemangordonPali: looked, the driver is the same
14:14.54Palibut checking if we not miss some patch which is not in upstream...
14:14.59Paliok
14:15.16freemangordonPali: well, it is possible I've missed something
14:17.24freemangordonPali: BTW 3.12 boots the screen in 32bpp by default :)
14:17.52*** join/#maemo-ssu dos1 (~dos@unaffiliated/dos1)
14:17.55freemangordonI have fix, still not pushed
14:17.56Paliand what should be correct?
14:17.59freemangordon16
14:18.26freemangordonor even 15, not sure
14:18.30Pali~seen pavelm
14:18.34infobotpavelm <~pavel@199.214.broadband13.iol.cz> was last seen on IRC in channel #maemo, 246d 1h 59m 41s ago, saying: 'Wow. Thanks a lot, it is installing now,'.
14:18.57freemangordonPali: we need omapfb.mode=lcd:848x480-16 in cmdline
14:19.31Palicannot be mode passed from board data?
14:19.41freemangordonwhat about DT? :P
14:19.49Palior DT?
14:19.58freemangordonnot sure about DT
14:20.10PaliI think resolution is already in board file
14:21.23freemangordonI dont see it https://gitorious.org/linux-n900/freemangordons-linux-n900/source/777f4ace4c58799575391833db48050ceefe6fd6:arch/arm/mach-omap2/board-rx51-video.c
14:24.19freemangordonPali: BTW leds still doesn't work
14:24.26freemangordonwell, RGB led
14:26.10freemangordonPali: and we have a problem that after rebooting from 2.6.28 to 3.12 it seems one of the i2c busses doesn't work, at least cameras and audio drivers refuse to load
14:30.50jonwilok, I think my next target is to figure out whats going on inside libplayback. Which might not be that hard since its got x86 binaries plus a -dev package that contains a libplayback.a static librariy
14:30.59jonwillibplayback-1.a that is
14:31.18jonwiland the x86 binary .so file is only 21k
14:31.42jonwilall I have to figure out now is if there is any useful debugging info in that .a file
14:34.56Palijonwil: if you RE libplayback please write some documentation...
14:35.14Palisee maemo wiki, there are already some links for libplayback
14:35.39Palifreemangordon: I will look on led driver
14:45.08freemangordonFatPhil: but in order to boot maemo you need some userspace packages installed from cssu-devel and some help from Pali :)
14:45.27freemangordonand maybe from me
14:46.01Palis/some/all/
14:46.10freemangordon:D
14:46.43freemangordonPali: well, clock-ui is not needed I guess.
14:48.01jonwilgod I hate when libraries have an internal data structure and just pass around pointers to it.
14:49.04Paliwelcome to OOP world :-)
14:50.08jonwilinteresting, libplayback says call and voip audio are the same thing. So how does pulseaudio know whether to route audio to the cellular modem or through the voip logic?
14:51.18Paliapplication name...
14:51.57jonwilwhat handles that though? pulseaudio? ohm/policy/prolog? something else?
14:52.01Paliwe already know that application with name "mediaplayer" can something do what other cannot
14:52.16Paliif I remember it is alsaped together with prolog and dres
14:52.40Paliand there also is some config ini file where is mediaplayer written
14:52.46freemangordonhmm, there is a huge plicy file somewhere in /etc
14:52.46freemangordon*policy
14:53.17Palijonwil: and maybe really voip and gsm calls are same for PA
14:53.52jonwilno they are not, PA needs to know the difference to know whether to feed the audio to libcmtspeech or not
14:54.00jonwilaha, Policy-application-detector relates to this
14:54.23Paliright that detector is other audio application
14:54.24jonwilits what grabs the name and feeds it to the policy ststem
14:54.26jonwilsystem
14:54.50Palijonwil: if I remember correctly it talk to some udp port on localhost to ohmd
14:54.59Paliand it is small daemon
14:55.08Palican you look if you can RE it?
14:55.22jonwilI will look
14:55.31jonwilaha, the big conf file you mentioned looks like xpolicy.conf
14:55.40Paliit sending something like "pop up" or "pop down" via udp
14:56.18Paliand it checking for X window number...
14:56.55Palithat config file is maybe in git repo where is decompiled prolog file
14:57.08Paliand I think I already modified it
14:59.08jonwilok, yeah the file is definatly xpolicy.conf
15:00.34jonwilgoing to look at policty-application-detector
15:01.46jonwilok, app-detect seems to be looking for rtcom-call-ui and systemui by name
15:04.26jonwilits sending to port 3001 and 3002
15:06.04Paliyou can download ohms sources (+ plugins)
15:06.17Palilook at fremantle closed packages for correct git commit
15:06.28Paliand you can see what ohmd doing with it
15:09.17jonwilyes I know
15:19.27jonwilok, looks like I will need to find a good tutorial or guide on sources and sinks in pulseaudio
15:29.59FatPhilPali: I'm going to reserve one of my "junker" n900s for kernel hacking. I'll nuke it before I do anything - what FIASCOs should I start with?
15:31.22FatPhilis unhappy that 2 of his n900s are "junker"s :-( But at least one is fine for dev work presently.
15:31.37freemangordonFatPhil: flash it with stock pr1.3, install cssu-testing(or -thumb) and use Pali's script to copy maemo to /home/maemo5
15:31.38*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@218.107.16.197)
15:32.05FatPhilfreemangordon: OK, I'll get back to you in a few hours...
15:32.25FatPhilWhat's the week/release number of "stock" pr1.3?
15:32.26freemangordonFatPhil: oh, and before executing Pali's copy script, enable cssu-devel repo and do apt-get update/upgrade
15:32.33freemangordon2-36 iirc
15:32.46freemangordonor was it 36-2?!?
15:33.48freemangordonFatPhil: keep in mind that both trees (mine and Pali's) lack an et8ek8 patch, i'll provide it to you via pastebin
15:33.53kolp36-2
15:34.53freemangordonFatPhil: http://pastebin.com/Xw71qprL
15:35.42*** join/#maemo-ssu lenoch (~lenoch@152.198.broadband11.iol.cz)
15:36.20FatPhilI swear I did that on my daily device, but can't find the fiascos now
15:36.35FatPhilbrain (or filesystem) like a sieve
15:38.16freemangordonflashing
15:38.16freemangordon~flashing
15:38.16infobotit has been said that maemo-flashing is http://wiki.maemo.org/Updating_the_tablet_firmware
15:38.27Palitablets-dev.nokia.com
15:38.32FatPhilwhich would you prefer I do, -thumb, or non-thumb?
15:38.45freemangordonFatPhil: -thumb is faster
15:38.48FatPhilI'd rather be at the cutting edge, so -thumb
15:38.53freemangordonotherwise it doesn;t really matter
15:39.49*** join/#maemo-ssu NIN101 (~NIN@p5DD2875D.dip0.t-ipconnect.de)
15:39.56FatPhilIT would be good to test on both thumb and non-thumb, I'll try to find (or solder together) another dev device so I can do both
15:40.15freemangordonFatPhil: test what?
15:40.39freemangordonit is not even in alpha stage (kernel)
15:50.42FatPhiltest the kernel, test it boots to /init, after that, the kernel's job is over ;-)
15:50.56FatPhilUserspace is evil and should be killed!
15:52.09freemangordonwith fire :D
15:56.10FatPhilwith signal number 9, why give it any warning!?
15:59.53FatPhilThis is going to sound silly - how do you flash a device that's got uboot on it? Flasher never sees the USB device, it just boots to userspace
16:00.28freemangordonFatPhil: hmm, u-boot is after nolo so it shouldn't make any difference
16:01.54freemangordonFatPhil: do as I say:
16:02.03freemangordon1. remove the battery
16:02.11freemangordon2: plug the USB cable
16:02.23freemangordonpress'n'hold U
16:02.24FatPhilI'm on the jig, so battery removal is a switch
16:02.29FatPhilooooh
16:02.46freemangordon4. insert the batteru
16:02.59freemangordonmissing the 'U' step?
16:04.14FatPhilwhat R&D flag state should I be in?
16:04.28freemangordondoesn;t matter iirc
16:05.22FatPhilU's not making any difference
16:05.30FatPhilAH - cold flash!
16:05.34FatPhilI'd forgotten about thayt
16:05.44freemangordonwhy cold flash?
16:05.49freemangordonyour NOLO is broken?
16:06.20FatPhilHmm, I don't have a signed second
16:06.38FatPhilNot sure, but flashing ain't working
16:06.48freemangordonFatPhil: if flasher can;t see it, try another USB port or even USB hub
16:07.06FatPhilflasher can read the R&D flags
16:07.22freemangordonbut,but... then it sees it, what is the problem?
16:07.34FatPhilit doesn't see it when I try to flash
16:07.51freemangordonwrong flasher parameters?
16:08.05freemangordonflasher -F fiasko -f -R
16:08.09freemangordon(iirc)
16:08.14FatPhilyeah
16:08.24freemangordondoesn;t make any sense
16:08.44Palinolo checking for BSI of battery
16:08.55freemangordonoh :)
16:09.04Paliand if BSI or charge level is loo low refuse flashing
16:09.24freemangordonthinks Pali is a smart guy
16:09.27freemangordon:D
16:09.29Palis/charge level/voltage level/
16:10.04PaliI wrote new version of 0xFFFF flasher :-)
16:10.33freemangordonPali: hmm, IMO those checks are sane
16:10.57Palibut if you load NOLO from cold flash, then it disable these checks
16:11.06freemangordonwe don;t know what will happen if you run out of juice in the middle of cmt FW flashing
16:11.30freemangordonbroken BB5 I guess
16:13.47FatPhilyeah, I it doesn't always do the query-rd-mode either
16:14.50FatPhil[   0.145] Battery voltage 4.104 V, BSI: 1021
16:15.11FatPhilhmm, well, that's a jig
16:15.46FatPhilANyone got a copy of secondary for a cold flash?
16:16.11kolpWhen flashing the N9 the flasher waits and charges the battery for a while if it doesn't have enough juice. Is there any chance something like that can be done for the N(eo)900 in the future?
16:17.14freemangordonFatPhil: secondary is in fiasko, you can extract it
16:18.06dos1kolp: NOLO is propertary, so "nope" for N900
16:18.37dos1but in Neo900, whole stack will be open as in GTA04, so it will be there if someone implements it
16:18.51kolpOh, it's a nolo thing
16:18.57kolpOk, thx :)
16:27.55FatPhilI think it's dodgy USB connector :-(
16:32.05kerio:(
16:33.57FatPhilNP, I never gave my g/f her replacement device - I've just made it my dev device!
16:34.40FatPhilI've promised to do surgery to her device to put a new screen and frame on it, as otherwise her device is fine
16:35.46FatPhilI'd like to dedicate this flashing to my ex-boss, Timo Jokiaho, who sold me this device for 8 (rather good) beers!
16:36.06FatPhilHe doesn't have to worry about any of his personal information still being on it anywhere, put it that way
16:36.29merlin1991well for that you'll have to flash emmc aswell
16:37.40freemangordonmerlin1991: hi!
16:37.56freemangordonmerlin1991: nuw cssu soon?
16:37.58freemangordon*new
16:38.06Palimerlin1991 are you alive? :-)
16:38.22freemangordonPali: that could be bot
16:38.32merlin1991Pali: I've been reading this channel regulary since a week or so
16:38.36FatPhilmerlin1991: did that first
16:38.42merlin1991never had a point though where I could jump in :D
16:39.11merlin1991for new cssu I'll start gathering stuff this weekend
16:39.12freemangordonPali: lets use turing test on him :)
16:39.28merlin1991my storage unit isn't endless
16:39.57Palituring test has nothing with storage size :-)
16:40.03freemangordon:nod:
16:40.23freemangordon~turing
16:40.23infobot...but I *AM* Turing complete!!!!
16:40.44merlin1991iirc If a machine is turing complete you still need storage for instructions relative to the complexity of your problem
16:40.47freemangordoninfobot: no, you are not
16:40.47infobotfreemangordon: I think you lost me on that one
16:41.17freemangordonmerlin1991: turing test doesn;t mean turing complete (iirc)
16:41.36freemangordonhttp://en.wikipedia.org/wiki/Turing_test
16:41.43Paliin turing test you have to decide if you are talking with robot or real peron
16:41.45merlin1991was turing test then the one with humans?
16:41.49merlin1991ah yep :)
16:41.50freemangordonyep
16:45.26merlin1991btw all this kernel hacking, do you plan on bringing our userspace running on upstream+patches, or what is the ultimate goal
16:45.39freemangordonI guess
16:46.24freemangordonmerlin1991: *if* we had to support neo900, I don;t see why we shouldn't support n900 as well
16:46.38freemangordonnot to say it will be much easier
16:47.10freemangordonmerlin1991: does it make sense to you?
16:47.21merlin1991in a way
16:48.13freemangordonmerlin1991: I really hope neo900 will bring some developers back to fremantle
16:48.40merlin1991heh, I'd happily go back to a n900 that is faster
16:48.59merlin1991I'd finally have my openvpn relay again, proper ssh with a keyboard, ...
16:49.15freemangordonmerlin1991: whaaat? n900 is not your primary device ?!?
16:49.27merlin1991nope I'm on the dark side (n9)
16:50.00freemangordonhmm, this isn't dark side IMO, this is grey side
16:50.11merlin1991it's almost black hat xD
16:50.21freemangordonyou have the worst from the both worlds :D
16:50.52merlin1991my main reason for using the n9 is, that the modem in there still works properly :D
16:51.08merlin1991with my n950, and all 3 n900s I loose connection all the time
16:51.30freemangordonmerlin1991: but wy don;t buy another n900, those are cheap these days, I heard of people getting one fo a couple of beers :D
16:51.52freemangordonmerlin1991: hmm, tried to change the SIM?
16:52.29merlin1991I have 2 sims, both work fine in the n9 but fail in all the others
16:52.39freemangordonweird
16:53.04FatPhilMy daily device was bought for 7 beers, the development device was bought for 8. ~30e each in real money
16:53.49freemangordonwhat?!? 4 euros a beer
16:55.39FatPhilYEah, I bought them in Estonia rather than Finland.
16:56.07FatPhilspent 120e on beer on thursday night (last but one day at work in Finland)
16:56.43FatPhilstill got to work bright and early on my last day, clearly didn't drink enough
16:56.54freemangordon:D
16:57.55merlin1991hm 120€ in beer
16:58.04merlin1991I'd be dead if I try that here
16:58.17freemangordonwell, what are friends for?
16:58.17merlin1991that would be like 40 beers
16:58.54freemangordon(about 120 here :P)
16:59.02freemangordonina abar
16:59.03FatPhilFancy imported beers, up to 25e a bottle
16:59.09freemangordonOMG
17:00.29FatPhilWelcome to Finland
17:00.43merlin1991been there, saw the prices :D
17:02.32FatPhilAre devices with broken USB of use to any developers? How do you flash if not over USB? (there ought to be a SSD boot!)
17:04.25dos1µsd boot works with u-boot
17:04.39dos1(but probably not with fremantle :))
17:05.55merlin1991I still need to fix my sisters usb port, so I can get my only functioning n900 back xD
17:06.06merlin1991I have the parts, but not the soldering equipment :/
17:08.17FatPhilme too. now have 1 broken, and 1 very dodgy usb device
17:17.03Palithere should be way to flash device via serial console
17:17.17Paliat least flasher-3.5 has support for it
17:17.49Paliflasher-3.5 can cold flash device via serial console
17:19.10Palibut it maybe needs some (unreleased) 2nd x-loader image which can load secondary (nolo) image via serial port too (and not via usb which doing normal cold flashing)
17:30.50FatPhilWell, in order to dick with package repo's easily, I'm gonna need wifi, and that means a pub!
17:32.57FatPhilPali: gonna have to look into that. Not sure how to control flasher, it asks for USB ids.
17:33.12*** join/#maemo-ssu XDS2010 (uid1218@gateway/web/irccloud.com/x-dmpzzuohfsbneaqm)
17:33.27sixwheeledbeastdid someone say pub? :P
17:35.08Paliyou need to use cold flashing (-c param)
17:52.36DocScrutinizer05Pali: I guess xloader is capable of serial, but I dunno for NOLO
17:53.47DocScrutinizer05ooh wait, freemangordon told me it's a combo-xloader-nolo image that gets simply extended on loading
17:54.06DocScrutinizer05or was it jacekowski?
17:55.07Palicold flashing: omap bootrom will do handshake via usb with computer and then computer send signed bootable image (2nd) and boot it
17:55.43Pali2nd will read from usb secondary image which will flash to nand
17:56.00Paliand then also boot it and do not check voltage and bsi
17:56.45Paliand immediately enter to flashing mode (no need for U key)
17:57.35Paliomap bootrom support more boot methods (nand, mmc, usb) and one is also serial console
17:57.58Palithis is written somewhere in public trm
17:58.27freemangordonat the end :D
17:58.30PaliI used all this info when I was implementing cold flasher in 0xFFFF flasher
17:58.57Paliand if I remember it is possible to change order of booting
17:59.28Paliso maybe we can boot (signed) xloader from eMMC/SD
18:00.08DocScrutinizer05you can't change boot order. it's "hardwired"
18:00.10Palibut due to that there is no doc for HS devices we do not know format in which xloader needs to be stored (and where)
18:00.43Palifor GP devices you *can* configure boot orde
18:00.49Paliit is written in trm
18:00.55DocScrutinizer05and we know that xloader needs to be signed, so any docs on format are useless
18:01.02Palibut do not know if this also work for HS
18:01.22Palino we need docs where and how to store signed xloader
18:01.35DocScrutinizer05afaik "bootorder" is a few bits in EFUSE
18:01.46DocScrutinizer05only relecant for BOOTROM
18:02.00Palifor example for GP devices, bootloader needs to be stored on mmc first fat partion under name MLO
18:02.24DocScrutinizer05yes, that will be same I guess
18:02.45Palibut I think for HS devices it will be another name...
18:02.51DocScrutinizer05and not mmc, but uSD
18:03.06Paliin trm was any mmc device
18:03.21DocScrutinizer05no, it only checks mmc1
18:03.35Palimmc1 is eMMC
18:03.43DocScrutinizer05which happens to be uSD, for exactly this reason
18:03.53DocScrutinizer05no, mmc1 is uSD
18:03.55Palimmc0 is SD
18:04.02DocScrutinizer05it gets renamed later
18:04.03Palionly maemo has swapped it
18:04.19DocScrutinizer05hw its mmc1 and mmc2
18:04.22DocScrutinizer05iirc
18:04.48Paliok, maybe numbering starts from 1 (and not 0)
18:04.54DocScrutinizer05anyway bootrom looks on FIRST mmc jw interface for a file called MLO
18:04.56Palibut first is SD card
18:05.24Paliin trm is written that it can load also from raw partition
18:05.39DocScrutinizer05maybe
18:06.01DocScrutinizer05the EE design rationale been that you can boot from uSD
18:06.24DocScrutinizer05that's why first mmc hw interface is uSD and not eMMC
18:06.51Palivia usb you can tell omap bootrom to load/boot from mmc
18:07.01Palilike to load image via usb
18:07.24DocScrutinizer05via USB you can't tell anything, you just can load xloader from USB
18:07.33Palimaybe we can try to dd xloader to mmc as raw partition if it work...
18:07.40Paliyou can do it!
18:07.56*** join/#maemo-ssu X-Fade (~xfade@d5152FFD8.static.telenet.be)
18:07.56Palilook at my cold flasher source code and comments
18:08.01Paliand trm
18:08.12DocScrutinizer05BOOTROM simply checks the "hardwired" (by EFUSE) devices for xloader, and loads the fist it finds
18:08.18DocScrutinizer05first*
18:08.49DocScrutinizer05everything beyond that is a matter of xloader you load, afaik
18:08.53Palibut before that it waits some time for usb commands
18:09.11DocScrutinizer05sure you can load an xloader that tries to load NOLO via WIFI
18:09.13freemangordonand that is how coldflashing works
18:09.20Palino no
18:09.23DocScrutinizer05basically, if xloader wasn't that tiny
18:09.50Paliyou can tell bootrom before booting xloader to change boot order
18:09.56Paliand boot from other device
18:09.58freemangordonPali: no? in coldfalshing mode n900 appears like some strange USB device
18:09.59DocScrutinizer05I had an extensive look at TRM
18:10.21Paliand if you want to load image via usb, you send command via usb thay you want to boot from usb
18:10.43PaliI written that code in 0xFFFF, so I know it
18:10.44DocScrutinizer05and at http://www.omappedia.org/wiki/Bootloader_Project
18:11.03Paliand know how cold flashing work
18:11.12freemangordonok :)
18:11.56DocScrutinizer05SYSBOOT Pins
18:12.11freemangordonI was under impression that coldflashing is doen with the help of bootrom, obviously wrongly :)
18:12.19DocScrutinizer05The internal ROM Code can attempt to boot from several different peripheral and memory devices, including, but not limited to: Serial (UART3), SD Card, eMMC, NAND, and USB. The order in which these devices are searched for a valid first-stage booting image (x-loader) is determine by a set of GPIO configuration pins referred to as SYSBOOT.
18:12.25DocScrutinizer05so not even EFUSE
18:12.31DocScrutinizer05actually hardwired
18:12.51Palibut before that is used usb!
18:12.59DocScrutinizer05nothing you can 2tell it2 via USB
18:13.09Paliand if you send usb command it can overwrite that is in sysboot
18:13.11DocScrutinizer05no
18:13.15Paliyes
18:13.33freemangordonPali: wait, it could be hardwired to try USB first
18:13.38Palidid you programmed already that?
18:13.41DocScrutinizer05[citation needed]
18:13.50PaliI yes
18:14.16freemangordonor there is a backdoor which is not in publick TRM
18:14.16Paliit was written in version of trm which I read when I worked on 0xFFFF
18:14.19DocScrutinizer05I never heard of such command, nowhere
18:14.34Palidownload 0xFFFF sources
18:14.38freemangordonPali: which TRM is that?
18:14.42Paligo to src/cold-flash.c
18:14.52DocScrutinizer05and I read the TRM as well as pages like http://www.omappedia.org/wiki/Bootloader_Project
18:14.54Palithere should be written version of TRM
18:15.01Paliand also all commands for usb!!!
18:15.18DocScrutinizer05ROMBOOT doesn't take commands
18:15.26Palias #define
18:15.49DocScrutinizer05that's maybe xloader, or more likely even NOLO
18:15.54Palitry to find in trm something like peripheral booting
18:16.03Paliit is not xloader/nolo
18:16.11DocScrutinizer05I *READ* peripheral booting in TRM
18:16.18Paliit is bootrom and how coldflash working
18:16.44Palifind something like "boot next"
18:16.45DocScrutinizer05it has a weird device table
18:17.12Palithere is "boot next" command which skip entry from device table
18:17.39DocScrutinizer05so what for? our first entry is uSD anyway
18:18.04Palifind big diagram in trm
18:18.09DocScrutinizer05see our particular wiring of SYSBOOT pins
18:18.21Palithere was also written how sysboot pin cn be skipped
18:18.30DocScrutinizer05WHAT FOR???
18:18.39Paliand start booting from device specified by usb command
18:19.14DocScrutinizer05even if such thing exists, it's vastly useless
18:19.37DocScrutinizer05since we already have boot sequence USB,MMC1,NAND
18:19.59DocScrutinizer05but that's for xloader only
18:20.19DocScrutinizer05and it's hardwired
18:21.34DocScrutinizer05oops
18:21.37DocScrutinizer05sys_boot[5:0]: 0x10
18:21.39DocScrutinizer05Boot order: OneNAND USB UART3 MMC1 --
18:21.43Pali<PROTECTED>
18:21.51DocScrutinizer05IroN900:~# omap34xx-boot-order
18:21.53DocScrutinizer05sys_boot[5:0]: 0x10
18:21.54DocScrutinizer05Boot order: OneNAND USB UART3 MMC1 --
18:23.56Pali<PROTECTED>
18:24.11Palihere are two usb commands for omap bootrom
18:24.21Paliusb commands exists!!!!
18:25.53PaliOmap Boot Messages: spruf98v.pdf (page 3444): OMAP35x Technical Reference Manual - 25.4.5 Periheral Booting
18:26.08Palithis is in 0xFFFF comments
18:27.10DocScrutinizer05gosub @gc; POP; POP; print " anyway my original statement that you can boot a device with broken USB from uSD been incorrect, as far as xloader goes "
18:27.45DocScrutinizer05Pali: I stand corrected
18:28.09DocScrutinizer05spruf98v? W*T*F??
18:28.20DocScrutinizer05I know rev F maybe, not V
18:28.42Palithis is what I found and used when worked on 0xFFFF
18:29.27Paliand USB in bootorder is probably usb flash disk connected in usb host mode
18:29.47Palinot usb in peripheral mode...
18:29.52Palibut do not remember
18:30.27FatPhil[in pub] hmmm, cant' connect to any of the default repos (e.g. nokia and extras)
18:30.49FatPhilhowever, I'm doin the CSSU installation without them
18:30.53Palichange time back to year 2010
18:31.01DocScrutinizer05Pali: do you know which version of ROMBL this refers to? and which version N900 has?
18:31.03Paliotherwise nokia repo will not work
18:31.18FatPhilsome SSL negotiation issue
18:31.25PaliDocScrutinizer05: do not know version
18:31.43Paliand I cannot opat that big pdf on n900...
18:32.03FatPhilPali: can you add that to the wiki if it's not there
18:32.11PaliFatPhil: maybe you need to activate internet via web browser?
18:33.10PaliFatPhil: I'm on n900 and copy/paste lot of parts of text is hard here...
18:33.15DocScrutinizer05Pali: I still think I haven't noticed those commands in SPRUF98D
18:33.36DocScrutinizer05they *might* be a feature of later ROMBL versions
18:33.50PaliDocScrutinizer05: I tested that peripheral command and it worked and also next command worked
18:33.53DocScrutinizer05or I ignored them since I thought they're useless
18:34.03DocScrutinizer05ooooh :-D
18:34.19Paliperipheral command is used for cold flashing
18:34.31Paliand next to skip cold flashing
18:35.01Palihttps://gitorious.org/0xffff/0xffff/source/master:src/cold-flash.c
18:35.04DocScrutinizer05hah. awesome
18:35.21Palilook at cold flash source code
18:35.40Paliand you can see what is handled by omap bootrom and what by xloader
18:36.52DocScrutinizer05/note to self: don't mess with Pali ;-)
18:36.58FatPhilPali: internet's flakey, but I managed to browse to the wiki, install the repo installer, and download 50MB of CSSU, which is happily installing currently
18:39.28Palido you know if it is possible to detect from asis id (sent by omap bootrom) if device is n900 or not?
18:39.56DocScrutinizer05Pali: is result of omap34xx-boot-order binary correct?
18:40.20DocScrutinizer05or is that somehow covered/obfuscated when system got booted up?
18:40.25Palion GP device should be
18:40.49Palibut I think it could be correct also on HS
18:41.11PaliI think that obfucation does not make sense
18:41.22Palistill it allow booting only signed image...
18:44.04*** join/#maemo-ssu LauRoman (~LauRoman@5-14-91-21.residential.rdsnet.ro)
18:47.02DocScrutinizer05ah, maybe some memory re-mapping kicks in after some crap in HS been set
18:47.09DocScrutinizer05who knows, I don't
18:47.34DocScrutinizer05Boot order: OneNAND USB UART3 MMC1 --    makes no sense to me
18:47.48*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
18:48.17DocScrutinizer05lemme check the damn schematics
18:49.11Paliwhy?
18:49.14Paliits ok
18:49.22Paliit booting from onenand
18:49.29DocScrutinizer05sys_boot4:1  6:1  5:BOOTMODE
18:50.17Paliusb peripheral boot for cold flash is started by special usb command before that boot order
18:50.37DocScrutinizer05hmm, makes sense then
18:51.25Paliand usb in that boot order is probably booting from usb flash disk in host mode
18:51.42DocScrutinizer05LOL, 5:BOOTMODE is determined by CHRG_IND
18:51.54Paliwhich cannot work on n900 where is no usb host mode port
18:52.11DocScrutinizer05:nod:
18:54.12kolpWill anything break if I switch on host mode while wall-charging, without having anything else connected to the usb port?
18:54.28DocScrutinizer05IOW CPU cant boot "normal" as long as steady yellow emergency chage indicator. It's not CPU bootup that stops emergency chaging, it's emergency charging end that boots CPU
18:55.03FatPhilDocScrutinizer05: you understand correctly
18:55.41FatPhilyellow = NOLO charging, and it won't exit that till it's happy
18:57.20Paliwhere you found that? "DocScrutinizer05: LOL, 5:BOOTMODE is determined by CHRG_IND"
18:58.43DocScrutinizer05schem p. 4 & 6 &
18:59.31DocScrutinizer05SoC sys_boot:5 -> (BOOT_MODE) -> N1302
19:00.14DocScrutinizer05-> (CHRG_IND) -> N1140 bq24150
19:00.55DocScrutinizer05CHRG_IND also directly drives red and green (=yellow) indicator LED
19:01.28DocScrutinizer05as long as BQ24150 is in emergency charge mode, CPU can't boot "normally"
19:02.46Paliand when bq2415x is in emergency mode?
19:02.58Paliwhen timer is not resetted in 30s?
19:05.24DocScrutinizer05yes, and when battery voltage below 3.7V or sth
19:05.45DocScrutinizer05and for max 30min
19:07.54DocScrutinizer05FatPhil: I wouldn't call that NOLO charging, since it's an autonomous mode of BQ24150 charger chip, CPU not involved
19:08.28DocScrutinizer05maybe "NOLO tolerated autonomous hw charging"
19:08.58FatPhilthere's a bq24150 driver in it, I presume nolo sets it up, and lets it run
19:09.43FatPhilhas anyone decompiled nolo?
19:11.09Palijacekowski only some small parts
19:12.05Paliits funny that nolo cannot change battery when you want to enter flash mode...
19:12.15Palibut has charging driver...
19:12.35Paliso driver is either useless or not used
19:12.45Palior not working
19:13.03Palior need to send some special command to start it?
19:18.20DocScrutinizer05~bootloop
19:18.21infoboti heard bootloop is when your device has broken rootfilesystem, so during reboot it fails on some service startup or kernel module load and thus reboots. This *drains* battery! And you can't reflash to stop bootloop when battery is drained. Recharge your battery by other means before reflashing.
19:18.51DocScrutinizer05~flatbatrecover
19:18.51infobotRemove battery for 1 minute. Insert battery. Plug powered ***NOKIA WALLCHARGER*** to device. Watch steady amber. Let sit and charge. Do NOT try to boot. After 30 min, you got either a) a booted up N900, b) flashing amber which means you can boot, c) steady amber going off - in this case start over again with ~flatbatrecover. CAVEAT! Only works when ~rootfs is OK (no ~bootloop)!.
19:20.52kolpDocScrutinizer05: in Neo900, would it be possible to export the root fs via USB when powered down?
19:21.01kolpHm, prolly not because of nand or whatever
19:21.21DocScrutinizer05that's a fptf question and issue
19:21.35kolpA software thing only?
19:21.36DocScrutinizer05no hw can export anything when "powered down"
19:21.44Paliif you use uboot, then yes
19:21.49kolpAh, well, wrong terminology then
19:22.03Paliuboot can support "reverse flash"
19:22.42Palibut uboot does not have working support for n900 onenand yet...
19:22.58DocScrutinizer05Pali: are you sure N900 NOLO has anything to do with bq24150?
19:23.17kolpWould be useful for fixing bootloops if you could access the root fs without booting to UI
19:23.22kolpAnd a security issue...
19:23.24PaliI know that n900 NOLO cannot fix dead battery
19:23.43Paliand cause bootloops instead charging enough for flashing
19:24.17PaliDocScrutinizer05: this is why i wrote that nolo bq support is useless...
19:24.41FatPhilPali, I may be thinking of nolo-h, not nolo-r
19:25.09DocScrutinizer05Pali: I doubt there *is* *any* bq24150 support in N900 NOLO
19:26.25DocScrutinizer05kolp: rescueOS can be booted from USB to RAM, and access maemo rootfs
19:26.59DocScrutinizer05allegedly rescueOS even can charge a battery
19:27.29DocScrutinizer05and also allegedly it can get ram-loaded even when nolo refuses to enter normal flashing mode
19:27.41DocScrutinizer05I don't see that
19:28.37DocScrutinizer05FatPhil: bq24150 doesn't need setup for emergency charging
19:29.01DocScrutinizer05that's the whole point of that mode
19:29.32DocScrutinizer05as soon as anything talks to bq24150 via i2c, emergency charging is stopped
19:30.03DocScrutinizer05and will resume only on chip reset, due to reset command or i2c watchdog (32s) timeout
19:30.07FatPhil~bootloop
19:30.08infobotbootloop is, like, when your device has broken rootfilesystem, so during reboot it fails on some service startup or kernel module load and thus reboots. This *drains* battery! And you can't reflash to stop bootloop when battery is drained. Recharge your battery by other means before reflashing.
19:30.16DocScrutinizer05~factinfo bootloop
19:30.16infobotDocScrutinizer05: there's no such factoid as bootloop
19:30.38DocScrutinizer05sucker??!
19:30.47DocScrutinizer05~bootloop
19:30.47infoboti heard bootloop is when your device has broken rootfilesystem, so during reboot it fails on some service startup or kernel module load and thus reboots. This *drains* battery! And you can't reflash to stop bootloop when battery is drained. Recharge your battery by other means before reflashing.
19:30.55DocScrutinizer05~literal bootloop
19:30.55infobot"#maemo bootloop" is "when your device has broken rootfilesystem, so during reboot it fails on some service startup or kernel module load and thus reboots. This *drains* battery! And you can't reflash to stop bootloop when battery is drained. Recharge your battery by other means before reflashing."
19:31.04DocScrutinizer05~factinfo #maemo bootloop
19:31.04infobot#maemo bootloop -- created by DocScrutinizer05 <~saturn@openmoko/engineers/joerg> at Thu Oct  3 14:52:17 2013 (7 days); last modified at Thu Oct  3 15:06:02 2013 by DocScrutinizer05!~saturn@openmoko/engineers/joerg; it has been requested 4 times, last by DocScrutinizer05, 17s ago.
19:32.47DocScrutinizer05FatPhil: ok, it's a bit fuzzy - actually emergency charging *will* work even with broken rootfs, but it will not result in NOLO allowing you to flash
19:33.24DocScrutinizer05since NOLO threshold to allow flashing > bq24150 threshold to stop emergency charging
19:34.21DocScrutinizer05iirc!
19:34.51Palinolo is not signed... so maybe we can try to find hex number of that value and change it?
19:35.14DocScrutinizer05yes, I suggested that several times
19:35.28Palibut there is another problem which I tested:
19:36.04Palinolo loaded by cold flashing (it always enter to flash mode!!) has unstable usb when battery is too empty
19:36.19Paliwhich caused that I was not able to flash
19:36.20DocScrutinizer05quite possible
19:36.38Palibecause usb transfer was not possible
19:36.44DocScrutinizer05:nod:
19:36.55Paliso hexchaning it will not help
19:37.30Paliwe need either proper charning in nolo or increase bq treshold
19:37.35DocScrutinizer05NOLO should learn my dirt-simple bq24150-charging
19:37.51*** join/#maemo-ssu xes (~xes@unaffiliated/xes)
19:38.10DocScrutinizer055 i2c commands to configure, one timer plus one i2c infinite loop to tickle WD
19:38.33Palibut omap bootrom was still able to transfer 2nd and secondary image and boot it!
19:38.40DocScrutinizer05bq24150 is sane and safe
19:38.51DocScrutinizer05weird
19:39.02Paliso if we are able to write ASM code for charning we can send 2nd and that asm code instead nolo
19:39.09DocScrutinizer05maybe because ROMBL doesn't initialize RAM and stuff
19:39.10Paliand 2nd image can boot it
19:39.23Palibecause nolo is not signed
19:39.38DocScrutinizer05:nod:
19:39.42Palibut somebody must write that pure ASM code for bq charging
19:39.45DocScrutinizer05sounds feasible
19:39.58DocScrutinizer05that isn't hard
19:40.02Paliplus in this state lot of hw parts are not initialized
19:40.06DocScrutinizer05i2c is a hw interface
19:40.15Paliand need to stop twl watchdog
19:40.23DocScrutinizer05:nod:
19:40.35PaliDocScrutinizer05: are you able to do it?
19:40.40DocScrutinizer05and possible even BB5 WD
19:40.58DocScrutinizer05I'm _able_ to do that, but no time atm
19:41.16Paliin uboot I turned off only twl
19:41.23Paliand no reset anymore
19:41.25DocScrutinizer05ok
19:41.40DocScrutinizer05then BB5 only gets upset after it got initialized
19:41.59DocScrutinizer05sounds ane
19:42.02DocScrutinizer05sane even
19:42.16Paliand thanks to bq24150 support in qemu we can debug code :-)
19:42.27DocScrutinizer05there's a reset wire from cpu to bb5, and one line the opposite direction
19:42.38Palicheck and dump bq registers from qemu
19:43.12DocScrutinizer05you already have all that in my charge draft, which ShadowJK based his charge21.sh on
19:43.25DocScrutinizer05it's dirt simple
19:44.03DocScrutinizer05main obstacle is talking to I2C IP lowlevel
19:44.07Palibut my low level hw programming skills are not good...
19:44.09DocScrutinizer05on register level
19:44.21PaliI never wrote any i2c driver in asm
19:44.28DocScrutinizer05I guess you first need to initialize it
19:44.43DocScrutinizer05speed and power
19:44.57DocScrutinizer05then simply read buffer, or write buffer
19:45.10DocScrutinizer05rest is hw
19:45.32DocScrutinizer05I never looked into ABI/API of I2C IP
19:46.05DocScrutinizer05but I'm EE for knowing how it must look like
19:46.16DocScrutinizer05some 2..5 registers
19:46.22Palianybody who is able to do that and has time?
19:46.52DocScrutinizer05btw you wouldn't need asm, use C and get the asm intermediate
19:47.11DocScrutinizer05or use C straight away
19:47.22DocScrutinizer05C obj code
19:47.52DocScrutinizer05C is (and always been) a glorified macro assembler
19:48.04Paliyou also need linker scripts/hacks to generate noloscnd header plus start code at specific address
19:48.33DocScrutinizer05no clue about that
19:48.39Palior code must be position independent
19:48.45DocScrutinizer05it is
19:49.15Paliin asm you can add .ascii "noloscnd"
19:49.17DocScrutinizer05some 50 ARM opcodes
19:49.31DocScrutinizer05you can use ASM in C
19:49.39DocScrutinizer05inline
19:50.12DocScrutinizer05don't ask me how, last I did this been 1990
19:50.58DocScrutinizer05last I seen this must be 2 years ago
19:52.17DocScrutinizer05you frequently see this stuff in highly optimized low level hw drivers
19:53.17DocScrutinizer05but nowadays you almost don't need it anymore, with all that new smart stuff that C allows, like defining absolute addr or register for variables
19:54.35DocScrutinizer05Pali: check SPRUF98 for I2C hw block (IP), if any questions how to handle it, ask me
19:55.31DocScrutinizer05I can tell you what to do with it once you found out (with a little help from my side) _how_ to talk to I2C
19:55.42PaliDocScrutinizer05: I cannot look now (opening that pdf on n900 is impossible) and also Impossible) I do not have time for writing that code...
19:58.30DocScrutinizer05the "code" is dirt simpla. I2C is dirt simple. You send chip addr, then send register addr<<1&(read?0:1), then write or read the register value
19:59.13DocScrutinizer05or was it chipaddr<<1&(read?0:1), then register addr
20:00.23Paliand for charging you need to enable some gpio
20:00.40DocScrutinizer05anyway a register write are three atomic elementary writes to the i2c hw interface, a register read are two writes and one read
20:00.47Palitx reset or something...
20:01.05DocScrutinizer05huh?
20:01.25Palisome gpio, freemangordon already wrote it here...
20:01.31Palilook into log
20:01.38Palisome #define
20:02.05DocScrutinizer05sorry, I didn't get it when fmg asked you about that
20:02.12DocScrutinizer05and I don't get it now
20:02.38DocScrutinizer05there is no GPIO I know of that needs to get set for charging
20:03.15DocScrutinizer05there is some nasty foo for detecting charger
20:04.17DocScrutinizer05charging is only bq24150, and that is only attached to CPU via I2C
20:04.40DocScrutinizer05and it needs only I2C commands to this chip to keep it charging
20:05.27DocScrutinizer05~5 for setting up max voltage, max USB current, trickle charge, etc, and one recurring register access for tickling WD, every 15s
20:05.37DocScrutinizer05that's all it needs
20:05.46DocScrutinizer05~50 ARM opcodes
20:06.13DocScrutinizer05incl setup of the I2C hw interface in SoC
20:06.46DocScrutinizer05more if you want to do this in a multitasking way, allowing other tasks while tickling WD
20:45.39FatPhilDoes the bot have a way of remembering messages for people who've left the channel...
20:45.48FatPhilhe says glaring at Pali...
20:46.18FatPhiloi, silly bot, tell Pali about this: http://www.spinics.net/lists/linux-omap/msg11786.html
20:55.40FatPhilANyone know what http://elinux.org/N900 and https://gitorious.org/linux-n900/linux-n900 are ?
21:09.24FatPhilAh, that looks like Pali's tree, and freemangordon's is a fork from it
21:33.25*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
21:44.58*** join/#maemo-ssu Martix (~martix@static-84-242-103-180.net.upcbroadband.cz)
22:49.06*** join/#maemo-ssu amiconn (amiconn@rockbox/developer/amiconn)
23:30.56*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@218.107.16.197)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.