IRC log of #maemo-ssu for Saturday, 2014-02-15

*** NishanthMenon has quit IRC00:25
*** arcean has quit IRC00:38
*** nox- has quit IRC02:00
*** trx has quit IRC02:27
*** trx has joined #maemo-ssu02:31
*** dos1 has quit IRC03:45
*** okias_ has quit IRC04:23
*** silviof1 has joined #maemo-ssu05:01
*** silviof has quit IRC05:04
*** amiconn_ has joined #maemo-ssu05:28
*** amiconn has quit IRC05:28
*** amiconn_ is now known as amiconn05:28
*** LauRoman has quit IRC07:39
*** ototo is now known as zz_ototo07:53
*** LauRoman has joined #maemo-ssu09:07
*** NIN101 has joined #maemo-ssu09:43
*** joshgillies has joined #maemo-ssu11:01
*** silviof1 is now known as silviof11:27
*** joshgillies has quit IRC11:41
*** LauRoman has quit IRC12:22
*** sunny_s has joined #maemo-ssu12:49
*** arcean has joined #maemo-ssu13:33
silvioffreemangordon: I have changed the merge-request like we have talked ... https://www.gitorious.org/community-ssu/hildon-desktop/merge_requests/2913:54
*** okias has joined #maemo-ssu13:58
*** BCMM has joined #maemo-ssu14:18
*** dos1 has joined #maemo-ssu14:30
*** joshgillies has joined #maemo-ssu14:37
*** joshgillies has quit IRC14:41
*** arcean_ has joined #maemo-ssu15:08
*** arcean has quit IRC15:10
*** sunny_s has quit IRC15:13
*** sunny_s has joined #maemo-ssu15:19
*** sunny_s has quit IRC15:29
*** arcean_ has quit IRC15:33
*** arcean_ has joined #maemo-ssu15:35
*** sunny_s has joined #maemo-ssu15:47
*** sunny_s has quit IRC15:51
*** sunny_s has joined #maemo-ssu15:51
freemangordonsilviof: commented on gitorious17:34
*** javispedro has joined #maemo-ssu17:44
silvioffreemangordon: its seems to me i should programm more glib thingies ^^18:05
*** sunny_s has quit IRC18:09
silviofre18:43
silvioffreemangordon: okay, i change the take_screenshot function to use the gconf setting and not the MYDOCSDIR env variable. If gconf is not set (default is empty)) we have talked that we have a fallback to $MYDOCSDIR. Should I fail the complete function if this is not set? No, or?18:46
freemangordonsilviof: IMO it should fail only if both are not set ($MYDOCSDIR and gconf key)18:50
silvioffreemangordon: yes okay, its my IMO too.18:52
*** arcean_ has quit IRC19:12
*** arcean has joined #maemo-ssu19:17
*** arcean has quit IRC19:33
*** Vrm has joined #maemo-ssu19:38
silvioffreemangordon: if you have time v4 of little ugly patch of little small programmer silvio is online ^^ https://www.gitorious.org/community-ssu/hildon-desktop/commit/21febc4497c432167f1ef4f52b4c4e5e81fc157c19:43
silviofTHX by the way.19:43
*** javispedro has quit IRC19:53
*** M4rtinK has joined #maemo-ssu20:16
silviofCan I test a bootloader without installing ist. I know the imx6 has the ability to boot from a sdcard. Is this able on a n900?20:31
silviofs.ist/it/20:31
silviofs/ist/it/20:31
infobotsilviof meant: s.it/it/20:31
silviof:-)20:32
merlin1991what do you mean by bootloader?20:37
merlin1991u-boot can boot a different kernel (and rootfs) from sd but u-boot itsself is already a bootloader20:37
silviofmerlin1991: I know, i dont know the bootstrategies by the prozessor. Like the imx6 has a room-boot code which search some places to boot a bootloader.20:51
silviofmerlin1991: how can i test a compiled bootloader on a n900?20:51
merlin1991hm you can load a kernel for a run once operation, maybe the flag is valid for the bootloader too?20:54
silviofhmm, okay, thats may can I test.20:55
DocScrutinizer05sure you can load whatever to RAM and execute it20:59
silviofDocScrutinizer05: but the bootloader initialize the ram ^^20:59
DocScrutinizer05just like NOLO loads uBoot "kernel" to RAM from NAND20:59
DocScrutinizer05yes, NOLO does20:59
silviofah20:59
silviofokay thats information i dont know20:59
DocScrutinizer05the boot sequence is ROMBL->NOLO-><kernel>21:00
merlin1991isn't x-loader somewhere in there?21:00
DocScrutinizer05with coldflash you make ROMBL load NOLO ro RAM21:00
DocScrutinizer05xloader is the little sibling of NOLO21:00
DocScrutinizer05basically xloader and NOLO are joined, like uBoot and kernel21:01
DocScrutinizer05afaik21:01
DocScrutinizer05anyway when I said NOLO above, I actually meant xloader21:02
DocScrutinizer05the boot sequence is ROMBL->(xloader--->NOLO)-><kernel>21:02
silviofwhat does the flasher in here? i can set a flag that he should execute from a ram position?21:03
silviofI need to read the flash sources.21:03
silviofs/flash/flasher/21:03
DocScrutinizer05though actually xloader gets loaded to SoC's humble 64k of RAM, while NOLO gets loaded to true RAM21:03
infobotsilviof meant: I need to read the flasher sources.21:03
silviofDocScrutinizer05: you mean sram/dram?21:04
DocScrutinizer05flasher talks to USB, ROMBL, cloader, and NOLO listen to USB21:04
DocScrutinizer05yes21:04
DocScrutinizer05xloader executes in SoC's SRAM and loads NOLO to LPDDR DRAM21:05
DocScrutinizer05http://www.omappedia.org/wiki/Bootloader_Project21:06
DocScrutinizer05pretty useful info there ^^^21:07
DocScrutinizer05our 2NOLO" is their uBoot21:07
DocScrutinizer05s/2/"/21:07
infobotDocScrutinizer05 meant: our "NOLO" is their uBoot21:07
DocScrutinizer05our uBoot is actually what they'd call kernel21:08
silviofyes i understood.21:10
DocScrutinizer05silviof: watching your PC linux' syslog while attaching a powered down N900 gives away quite some insigt into what's going on21:10
silviofgood to know21:11
DocScrutinizer05first to say "hello there" is ROMBL21:11
DocScrutinizer05then xloader/NOLO21:11
DocScrutinizer05then linux kernel21:11
DocScrutinizer05ROMBL lives in SoC's ROM21:14
DocScrutinizer05xloader & NOLO live in NAND, (partition 0?)21:14
DocScrutinizer05yup21:15
DocScrutinizer05IroN900:~# cat /proc/mtd21:15
DocScrutinizer05dev:    size   erasesize  name21:15
DocScrutinizer05mtd0: 00020000 00020000 "bootloader"21:15
DocScrutinizer05(our uBoot &) kernel live in mtd3: 00200000 00020000 "kernel"21:15
DocScrutinizer05the last factoid explains why you need to take kare about kernel stuff when installing uBoot21:17
DocScrutinizer05in fact you're also installing a new kernel when you install uBoot21:17
DocScrutinizer05s/kare/care/21:17
DocScrutinizer05maybe useful or at least interesting sidenote: mtd4: 00200000 00020000 "initfs" is *unused* on N90021:19
DocScrutinizer05you may do with it whatever you like21:19
DocScrutinizer05those wo use it to store stealth info will not complain when it gets overwritten ;-)21:20
silviof:-)21:20
silviofWhy we have a bootloader+kernel combination?21:21
silviofis easyer to update?21:21
DocScrutinizer05that's the only way to implement uBoot21:21
silviofnaa, uboot can load external images21:21
DocScrutinizer05stock fremantle doesn't have such thing21:22
silviofwhat have fremantle todo with this?21:22
DocScrutinizer05err, what does bootloader+kernel have to do with fremantle?21:22
DocScrutinizer05are you talking about uBoot? then that's written to work on N900 running fremantle21:23
DocScrutinizer05not in stock system21:23
DocScrutinizer05stock maemo has xloader+NOLO in mtd0, and a plain kernel in mtd321:24
DocScrutinizer05some cute guy figured we could cram a uBoot into mtd3, just in front of kernel21:24
DocScrutinizer05to allow true bootloader menu and true multiboot21:25
DocScrutinizer05since nobody been able to RE and replace NOLO21:25
DocScrutinizer05so depending on what your homegrown bootloader is actually supposed to do, you want to make sure it gets invoked by correct predecessor bootloader stage21:26
DocScrutinizer05for uBoot replacements that would be NOLO as predecessor, for NOLO replacements (something really awesome when you could make that fly) you want to patch the bootloader image to attach your newNOLO at end of xloader21:28
DocScrutinizer05so xloader can do what it always did: start at own tail's end to read content from NAND and load it to DDR SDRAM21:29
*** arcean has joined #maemo-ssu21:29
DocScrutinizer05you can't replace xloader, due to signature. See URL I pisted above21:29
DocScrutinizer05dang, nothing about HS devices in http://www.omappedia.org/wiki/Bootloader_Project21:33
silviofHS?21:34
silviofanyway, thx for the answers.21:34
DocScrutinizer05so, lemme share it here, in simplified form: afaik ROMBL checks for valid signature of xloader, akainst a hidden public key in SoC's ROM21:35
DocScrutinizer05HighSecurity21:35
DocScrutinizer05freemangordon knows more about it, but basically it's all about "trusted computing", tivoization, and signed kernels. For N900 afaik xloader is still signed and that signature needed by ROMBL to make xloader execute, but xloader already drops the secure state and loads NOLO into a "tainted2 system where signature doesn't matter anymore21:37
DocScrutinizer05evidence (at least fro NOLO not needing signature): you can ninary-patch NOLO, people did that to get rif of the "NOKIA" screen21:38
DocScrutinizer05rid*21:39
DocScrutinizer05ROMBL however afaik refuses to start an incorrectly signed xloader21:39
*** arcean has quit IRC21:40
DocScrutinizer05ooh, another maybe helpful sidenote: though ROMBL would be able in theory to load xloader (then called "MLO") from eMMC or uSD, on N900 the SYSBOOT pins don't support that21:43
silviofhey thanks21:45
* silviof is reading http://www.omappedia.org/wiki/Bootloader_Project21:45
DocScrutinizer05IroN900:~# omap34xx-boot-order21:47
DocScrutinizer05sys_boot[5:0]: 0x1021:47
DocScrutinizer05Boot order: OneNAND USB UART3 MMC1 --21:47
*** Vrm has quit IRC21:47
DocScrutinizer05so, aiui you even *could* boot from mmc1 (which probably is eMMC) *IF* you had nuked your xloader in /dev/mtd021:48
DocScrutinizer05s/boot/load stage1 xloader (by stage0 ROMBL)/21:50
infobotDocScrutinizer05 meant: so, aiui you even *could* load stage1 xloader (by stage0 ROMBL) from mmc1 (which probably is eMMC) *IF* you had nuked your xloader in /dev/mtd021:50
silviofWhat is uart3? serial bootloader with xz-protocol and so on?21:50
DocScrutinizer05err, same as USB basically, but via UART3 which seems to be the console testpoints under battery21:50
freemangordonsilviof: hmm why is there only one commit? in the MR that is21:53
DocScrutinizer05I guess the protocol will be basically same as for flasher-3.5 coldflash via USB21:53
*** nox- has joined #maemo-ssu21:54
freemangordonsilviof: how did you do the merge request? vie git or via gitorious?21:56
freemangordonsilviof: and did you push to your repo, according to gitorious your last commit is on 9 of Feb21:57
silvioffreemangordon: i work only with git. But push to the merge-request/29-branch21:57
silviofnot good?21:57
freemangordonsilviof: dunno, I am using gitorious to review, and there is only one commit21:58
freemangordonsee https://www.gitorious.org/community-ssu/hildon-desktop/merge_requests/2921:58
freemangordonsilviof: I've never used git to do MRs, always did it by using gitorious web iface :)22:00
silvioffreemangordon: its right thats only one commit. I have rewritten and now looks simpler and plainer the patch ^^22:01
DocScrutinizer05one issue, one ticket, one patch, one MR ;-)22:03
*** aap has quit IRC22:03
DocScrutinizer05no two issues in one ticket etc22:04
DocScrutinizer05no two tickets for one issue22:04
*** aap has joined #maemo-ssu22:04
silviofDocScrutinizer05: whats wrong?22:05
freemangordonsilviof: you're missing g_free(mydocsdir) and g_object_unref(cleant) in some "if (time (NULL) - secs < 5)" return path22:05
DocScrutinizer05nothing :-)22:05
freemangordon*client22:05
DocScrutinizer05at least I hope so22:05
silvioffreemangordon: uh - i see :-P Never ending story for such a simple task. I'm not in love with glib22:06
*** BCMM_ has joined #maemo-ssu22:06
freemangordonnothing to do with glib IMO :P22:06
freemangordonsilviof: BTW, you'd better call gconf_client_get_default (); after that if()22:06
DocScrutinizer05sorry, what's "if (time (NULL) - secs < 5)" ?22:07
*** BCMM has quit IRC22:07
*** BCMM_ is now known as BCMM22:07
freemangordonDocScrutinizer05: secs is a static variable22:07
freemangordonand it keeps the last function call time22:07
freemangordonit is used to limit screenshots rate to 1/5 secs22:07
DocScrutinizer05looks totally fishy22:07
freemangordonwell, not the prettiest code but could be way worse22:08
DocScrutinizer05ok, maybe when time(NULL) is actually meant to be some reasonable call22:09
freemangordonsilviof: that way you'll save one g_object_unref and also will not call gconf_client_get_default (); in a row when the key is pressed all the time22:09
freemangordonsilviof: you can do the same for mydocsdir22:09
freemangordoncall g_strdup(getenv("MYDOCSDIR")); after that time check22:10
*** BCMM has quit IRC22:10
DocScrutinizer05still I'd rather do a "secs = time(NULL)+5; if [while??] (time(NULL) < secs)"22:10
freemangordonDocScrutinizer05: ^^^ this is not the same22:11
DocScrutinizer05yeah, obviously. It doesn't do useless computations several times22:12
DocScrutinizer05time() - secs < 5   :==:  time() < 5 + secs22:13
freemangordona more readable way IMO is to name that secs variable "last_screenshot_time" and change it to if(time(NULL) < last_screenshot_time + 5)22:14
freemangordonyep, my point exactly22:14
DocScrutinizer05and no, you don't do the calculation at test time. You call the var "next_screenshot_allowd_at" and do =time(NULL)+delay22:15
DocScrutinizer05thus doing the calculation only once22:16
freemangordonyeah22:16
DocScrutinizer05I understand it's not a busy wait but only rejects events that are triggered somewhere else, right?22:24
DocScrutinizer05you shouldn't do busy waits like this, ever22:24
freemangordonyep22:24
freemangordonthe event is "ctr-shift-P" :)22:25
DocScrutinizer05:nod:22:25
DocScrutinizer05keyrepeat could kick in22:25
DocScrutinizer05makes sense22:25
silvioffreemangordon: we have under hildon-desktop not the programming-style "variable declaration on start of a function"?22:27
silviofthen I can use goto (kernel style) too?22:27
silviofIs there a style guide for cssu-thingies?22:29
silviofprogramming style I mean ^^22:29
*** zz_ototo is now known as ototo22:39
*** LauRoman has joined #maemo-ssu22:43
freemangordonsilviof: you can (and should) declare the variables in the start of the function, but assign values to them after the "if" in question22:48
freemangordonre programming style - you should fillow the programming style of the code you're dealing with, as there are lots of different styles used in packages in CSSU22:49
freemangordon*follow22:50
silviof:-) allright22:50
freemangordonBTW I think there are a couple of places in h-d where goto is used :)22:51
freemangordoncould you do "git grep goto"?22:51
freemangordonin h-d source dir that is22:51
silvioffreemangordon: I'm not on my devputer. It was comming into my brain and i think i ask.22:53
freemangordonnp22:54
*** arcean has joined #maemo-ssu23:21
*** arcean has quit IRC23:47

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!