IRC log for #maemo-ssu on 20150711

00:45.36*** join/#maemo-ssu LauRoman (~LauRoman@5-14-95-239.residential.rdsnet.ro)
12:22.04*** join/#maemo-ssu infobot (ibot@69-58-76-73.ut.vivintwireless.net)
12:22.04*** topic/#maemo-ssu is Maemo Community Seamless Software Update "CSSU" channel, http://wiki.maemo.org/Community_SSU | Known bugs: http://j.mp/communityssu-bugs | Channel logs: http://mg.pov.lt/maemo-ssu-irclog/ | Sources: https://github.com/community-ssu | Latest version: Testing(2015-04-11): 21.2011.38-1Tmaemo11; Stable(2014-09-03): 21.2011.38-1Smaemo7
12:22.04*** mode/#maemo-ssu [+v infobot] by ChanServ
12:22.24Paligetboostate and preinit now should work even if they do not have special nokia /sys and /proc and /dev files
12:22.46Paliif raw file /proc/atags is provided, getboostate parse it and read information from that
12:23.11Paliif even if /proc/atags is not there, then default values are used (bootmode=normal, bootreason=powerkey, etc)
12:23.33Palisane default values instead MALF
12:24.18PaliMALF is when kernel provides interface to read data && data are bad
12:40.36keriodo i yolo upgrade
12:40.40kerioi don't think i yolo upgrade
12:40.51keriomeh whatever
12:40.52kerioYOLO
12:57.42Sicelothanks pali. will test :)
13:14.55kerioPali: how can i add an entry to the uboot menu to power off?
13:15.16Palikerio: uboot does not have code to power off rx51 board
13:15.24kerio...but i did "reset" and it powered it off
13:15.31Paliif you have time, you can implement power of function
13:15.42Palireset just reset board
13:16.01kerioi swear to god it's powered off
13:16.08kerioi can turn it on with the button
13:16.11kerioit does the light thing
13:16.20Palimaybe nolo decided to poweroff after reboot
13:16.46keriofucking magnets
13:16.49keriohow do they work
13:17.09kerioPali: haven't tested r&d mode but recovery console and backupmenu are both accessible
13:17.15Paliok
13:17.31keriofuck i lost the time
13:22.20Siceloloose battery?
13:23.29keriono, resetting uboot :>
13:23.58Sicelohas never happened to me .. with reset
13:27.01Paliso... who is going to implement power off in uboot? :-)
13:27.16Palijust need to reuse code from linux kernel...
13:27.33Paliit is some i2c call to twl4030 chip
13:39.07Sicelopoints at Pali :D
14:17.12drathirPali: nice gz...
14:39.51DocScrutinizer05Pali: uboot knows to do I2C, no? even from "commandline"
14:40.10Paliyes, uboot support i2c
14:40.18Palido not know if from cmdline
14:40.31DocScrutinizer05how's "charging" implemented?
14:40.38Palibut code from linux kernel should be easily to reused
14:40.45Palino charging is implemented
14:40.49DocScrutinizer05duh!
14:41.04Palijust I do not have time for it
14:41.11kerioi don't think we need charging in uboot
14:41.19keriobeyond the basic flatbat recovery
14:41.26Paliboth should be simple, just i2c_read i2c_write
14:41.31DocScrutinizer05flatbat recovery is in hw
14:41.36kerioexactly
14:41.54DocScrutinizer05it doesn't fix the no-flashing deadlock
14:42.06kerioyeah but if your uboot is working you can load rescueOS from a µsd
14:42.16DocScrutinizer05thus proper charging in uBoot would be extremely nice
14:42.30DocScrutinizer05yes, that's a comlicated but working method
14:42.50kerionow, ACT_DEAD fully implemented in uboot would be cool
14:43.52kerioPali: does your uboot load a script from microsd if the emmc is hosed?
14:43.54DocScrutinizer05uBoot already is 95% "ACT_DEAD"
14:44.12kerioDocScrutinizer05: no alarms, though
14:44.18DocScrutinizer05yep
14:45.01DocScrutinizer05an alarm elapsing durning uBoot active might go unnoticed
14:45.30kerioPali: also, can uboot do stuff in the background?
14:45.43kerioor would the charging thing be a separate boot entry
14:46.14DocScrutinizer05good point, does uBoot "OS" support multitasking?
14:46.32kerioDocScrutinizer05: it's kind of irrelevant, though
14:46.46kerioif you *are* booting something, you'll lose control over bq24k very quickly
14:46.53DocScrutinizer05yep
14:46.55kerioif you're not, you don't need the charging to be backgrounded
14:47.01DocScrutinizer05:nod:
14:47.34DocScrutinizer05anyway afaik uBoot *can* do "multitasking" at least to tickle watchdog
14:48.00kerionow... should the behaviour of uboot started in ACT_DEAD mode be to start charging, or to boot linux?
14:48.47DocScrutinizer05define >>uboot started in ACT_DEAD mode<<
14:48.55keriocharger plugged in
14:49.24kerioas opposed to pressing the power button
14:49.30DocScrutinizer05charger plug in should not invoke uBoot menu automatically
14:50.02kerioso still pretend that uboot doesn't exist and boot the default OS? alright
16:23.36Palikerio: bootmenu script is loaded only from MyDocs eMMC, but if there is no bootmenu script, uboot will pre-generate some menu entries to boot some uboot scripts or kernels from uSD and emmc
16:24.14kerioalright, close enough
16:24.24PaliDocScrutinizer05: do not know if uboot support normal multitasking, but there is something which "force" uboot to call watchdog function
16:24.32Paliwhich periodically kick watchdog
16:24.48kerioPali: how powerful is uboot scripting?
16:25.03Paliso for charging, this function can be extended to reset also bq timer
16:25.06keriocan it do a for loop?
16:25.31Palikerio: it is hush shell
16:26.01PaliIIRC there is while
16:32.53DocScrutinizer05Pali: similar "watchdog" function would suffice for charging
16:33.54DocScrutinizer05actually it's the watchdog timer in bq24150 that needs some handling, the rest is pretty simple
16:42.11keriodon't you need actual math
16:42.43DocScrutinizer05nope, zilch
16:43.52DocScrutinizer05http://talk.maemo.org/showthread.php?p=658278#post658278
16:45.53DocScrutinizer05while   sleep 15; do    i2cset -y -m 0x80 2 0x6b 0x00 0x80; done
16:46.23DocScrutinizer05plus a few lines init before that
16:46.42DocScrutinizer05init by const values
17:00.22keriooh, is that just a slowish charge up to not quite full battery
17:02.38*** join/#maemo-ssu RedW (~redw@89-73-179-171.dynamic.chello.pl)
17:57.28DocScrutinizer05that depends on init data
17:58.36DocScrutinizer05i'd recommend 500mA USB current limit and a 4.1V batt end voltage and no charge termination current threshold
18:01.54DocScrutinizer05unlress uBoot charging was a dedicated mode that can't accept any further commands, in which case I'd use the standard charge end threshold, and check for battery-full with "while [ $(i2cget -y 2 0x6b 0x00) = 0x90 ]..." then boot to linux after that, or shutdown
18:04.17DocScrutinizer05particularly smart: check statuscode with $(i2cget -y 2 0x6b 0x00) and boot to linux when battery-full, shut down when other "error" caused stop of charging
18:05.07DocScrutinizer05(other error) e.g. removal / unplug of charger
18:26.12*** join/#maemo-ssu sparetire_ (~sparetire@unaffiliated/sparetire)
19:51.03*** join/#maemo-ssu LauRoman|Alt (~LauRoman@5-14-95-239.residential.rdsnet.ro)
22:13.01*** join/#maemo-ssu APic (apic@apic.name)

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