*** NishanthMenon has quit IRC | 00:25 | |
*** arcean has quit IRC | 00:38 | |
*** nox- has quit IRC | 02:00 | |
*** trx has quit IRC | 02:27 | |
*** trx has joined #maemo-ssu | 02:31 | |
*** dos1 has quit IRC | 03:45 | |
*** okias_ has quit IRC | 04:23 | |
*** silviof1 has joined #maemo-ssu | 05:01 | |
*** silviof has quit IRC | 05:04 | |
*** amiconn_ has joined #maemo-ssu | 05:28 | |
*** amiconn has quit IRC | 05:28 | |
*** amiconn_ is now known as amiconn | 05:28 | |
*** LauRoman has quit IRC | 07:39 | |
*** ototo is now known as zz_ototo | 07:53 | |
*** LauRoman has joined #maemo-ssu | 09:07 | |
*** NIN101 has joined #maemo-ssu | 09:43 | |
*** joshgillies has joined #maemo-ssu | 11:01 | |
*** silviof1 is now known as silviof | 11:27 | |
*** joshgillies has quit IRC | 11:41 | |
*** LauRoman has quit IRC | 12:22 | |
*** sunny_s has joined #maemo-ssu | 12:49 | |
*** arcean has joined #maemo-ssu | 13:33 | |
silviof | freemangordon: I have changed the merge-request like we have talked ... https://www.gitorious.org/community-ssu/hildon-desktop/merge_requests/29 | 13:54 |
---|---|---|
*** okias has joined #maemo-ssu | 13:58 | |
*** BCMM has joined #maemo-ssu | 14:18 | |
*** dos1 has joined #maemo-ssu | 14:30 | |
*** joshgillies has joined #maemo-ssu | 14:37 | |
*** joshgillies has quit IRC | 14:41 | |
*** arcean_ has joined #maemo-ssu | 15:08 | |
*** arcean has quit IRC | 15:10 | |
*** sunny_s has quit IRC | 15:13 | |
*** sunny_s has joined #maemo-ssu | 15:19 | |
*** sunny_s has quit IRC | 15:29 | |
*** arcean_ has quit IRC | 15:33 | |
*** arcean_ has joined #maemo-ssu | 15:35 | |
*** sunny_s has joined #maemo-ssu | 15:47 | |
*** sunny_s has quit IRC | 15:51 | |
*** sunny_s has joined #maemo-ssu | 15:51 | |
freemangordon | silviof: commented on gitorious | 17:34 |
*** javispedro has joined #maemo-ssu | 17:44 | |
silviof | freemangordon: its seems to me i should programm more glib thingies ^^ | 18:05 |
*** sunny_s has quit IRC | 18:09 | |
silviof | re | 18:43 |
silviof | freemangordon: 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 |
freemangordon | silviof: IMO it should fail only if both are not set ($MYDOCSDIR and gconf key) | 18:50 |
silviof | freemangordon: yes okay, its my IMO too. | 18:52 |
*** arcean_ has quit IRC | 19:12 | |
*** arcean has joined #maemo-ssu | 19:17 | |
*** arcean has quit IRC | 19:33 | |
*** Vrm has joined #maemo-ssu | 19:38 | |
silviof | freemangordon: 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/21febc4497c432167f1ef4f52b4c4e5e81fc157c | 19:43 |
silviof | THX by the way. | 19:43 |
*** javispedro has quit IRC | 19:53 | |
*** M4rtinK has joined #maemo-ssu | 20:16 | |
silviof | Can 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 |
silviof | s.ist/it/ | 20:31 |
silviof | s/ist/it/ | 20:31 |
infobot | silviof meant: s.it/it/ | 20:31 |
silviof | :-) | 20:32 |
merlin1991 | what do you mean by bootloader? | 20:37 |
merlin1991 | u-boot can boot a different kernel (and rootfs) from sd but u-boot itsself is already a bootloader | 20:37 |
silviof | merlin1991: 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 |
silviof | merlin1991: how can i test a compiled bootloader on a n900? | 20:51 |
merlin1991 | hm you can load a kernel for a run once operation, maybe the flag is valid for the bootloader too? | 20:54 |
silviof | hmm, okay, thats may can I test. | 20:55 |
DocScrutinizer05 | sure you can load whatever to RAM and execute it | 20:59 |
silviof | DocScrutinizer05: but the bootloader initialize the ram ^^ | 20:59 |
DocScrutinizer05 | just like NOLO loads uBoot "kernel" to RAM from NAND | 20:59 |
DocScrutinizer05 | yes, NOLO does | 20:59 |
silviof | ah | 20:59 |
silviof | okay thats information i dont know | 20:59 |
DocScrutinizer05 | the boot sequence is ROMBL->NOLO-><kernel> | 21:00 |
merlin1991 | isn't x-loader somewhere in there? | 21:00 |
DocScrutinizer05 | with coldflash you make ROMBL load NOLO ro RAM | 21:00 |
DocScrutinizer05 | xloader is the little sibling of NOLO | 21:00 |
DocScrutinizer05 | basically xloader and NOLO are joined, like uBoot and kernel | 21:01 |
DocScrutinizer05 | afaik | 21:01 |
DocScrutinizer05 | anyway when I said NOLO above, I actually meant xloader | 21:02 |
DocScrutinizer05 | the boot sequence is ROMBL->(xloader--->NOLO)-><kernel> | 21:02 |
silviof | what does the flasher in here? i can set a flag that he should execute from a ram position? | 21:03 |
silviof | I need to read the flash sources. | 21:03 |
silviof | s/flash/flasher/ | 21:03 |
DocScrutinizer05 | though actually xloader gets loaded to SoC's humble 64k of RAM, while NOLO gets loaded to true RAM | 21:03 |
infobot | silviof meant: I need to read the flasher sources. | 21:03 |
silviof | DocScrutinizer05: you mean sram/dram? | 21:04 |
DocScrutinizer05 | flasher talks to USB, ROMBL, cloader, and NOLO listen to USB | 21:04 |
DocScrutinizer05 | yes | 21:04 |
DocScrutinizer05 | xloader executes in SoC's SRAM and loads NOLO to LPDDR DRAM | 21:05 |
DocScrutinizer05 | http://www.omappedia.org/wiki/Bootloader_Project | 21:06 |
DocScrutinizer05 | pretty useful info there ^^^ | 21:07 |
DocScrutinizer05 | our 2NOLO" is their uBoot | 21:07 |
DocScrutinizer05 | s/2/"/ | 21:07 |
infobot | DocScrutinizer05 meant: our "NOLO" is their uBoot | 21:07 |
DocScrutinizer05 | our uBoot is actually what they'd call kernel | 21:08 |
silviof | yes i understood. | 21:10 |
DocScrutinizer05 | silviof: watching your PC linux' syslog while attaching a powered down N900 gives away quite some insigt into what's going on | 21:10 |
silviof | good to know | 21:11 |
DocScrutinizer05 | first to say "hello there" is ROMBL | 21:11 |
DocScrutinizer05 | then xloader/NOLO | 21:11 |
DocScrutinizer05 | then linux kernel | 21:11 |
DocScrutinizer05 | ROMBL lives in SoC's ROM | 21:14 |
DocScrutinizer05 | xloader & NOLO live in NAND, (partition 0?) | 21:14 |
DocScrutinizer05 | yup | 21:15 |
DocScrutinizer05 | IroN900:~# cat /proc/mtd | 21:15 |
DocScrutinizer05 | dev: size erasesize name | 21:15 |
DocScrutinizer05 | mtd0: 00020000 00020000 "bootloader" | 21:15 |
DocScrutinizer05 | (our uBoot &) kernel live in mtd3: 00200000 00020000 "kernel" | 21:15 |
DocScrutinizer05 | the last factoid explains why you need to take kare about kernel stuff when installing uBoot | 21:17 |
DocScrutinizer05 | in fact you're also installing a new kernel when you install uBoot | 21:17 |
DocScrutinizer05 | s/kare/care/ | 21:17 |
DocScrutinizer05 | maybe useful or at least interesting sidenote: mtd4: 00200000 00020000 "initfs" is *unused* on N900 | 21:19 |
DocScrutinizer05 | you may do with it whatever you like | 21:19 |
DocScrutinizer05 | those wo use it to store stealth info will not complain when it gets overwritten ;-) | 21:20 |
silviof | :-) | 21:20 |
silviof | Why we have a bootloader+kernel combination? | 21:21 |
silviof | is easyer to update? | 21:21 |
DocScrutinizer05 | that's the only way to implement uBoot | 21:21 |
silviof | naa, uboot can load external images | 21:21 |
DocScrutinizer05 | stock fremantle doesn't have such thing | 21:22 |
silviof | what have fremantle todo with this? | 21:22 |
DocScrutinizer05 | err, what does bootloader+kernel have to do with fremantle? | 21:22 |
DocScrutinizer05 | are you talking about uBoot? then that's written to work on N900 running fremantle | 21:23 |
DocScrutinizer05 | not in stock system | 21:23 |
DocScrutinizer05 | stock maemo has xloader+NOLO in mtd0, and a plain kernel in mtd3 | 21:24 |
DocScrutinizer05 | some cute guy figured we could cram a uBoot into mtd3, just in front of kernel | 21:24 |
DocScrutinizer05 | to allow true bootloader menu and true multiboot | 21:25 |
DocScrutinizer05 | since nobody been able to RE and replace NOLO | 21:25 |
DocScrutinizer05 | so depending on what your homegrown bootloader is actually supposed to do, you want to make sure it gets invoked by correct predecessor bootloader stage | 21:26 |
DocScrutinizer05 | for 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 xloader | 21:28 |
DocScrutinizer05 | so xloader can do what it always did: start at own tail's end to read content from NAND and load it to DDR SDRAM | 21:29 |
*** arcean has joined #maemo-ssu | 21:29 | |
DocScrutinizer05 | you can't replace xloader, due to signature. See URL I pisted above | 21:29 |
DocScrutinizer05 | dang, nothing about HS devices in http://www.omappedia.org/wiki/Bootloader_Project | 21:33 |
silviof | HS? | 21:34 |
silviof | anyway, thx for the answers. | 21:34 |
DocScrutinizer05 | so, lemme share it here, in simplified form: afaik ROMBL checks for valid signature of xloader, akainst a hidden public key in SoC's ROM | 21:35 |
DocScrutinizer05 | HighSecurity | 21:35 |
DocScrutinizer05 | freemangordon 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 anymore | 21:37 |
DocScrutinizer05 | evidence (at least fro NOLO not needing signature): you can ninary-patch NOLO, people did that to get rif of the "NOKIA" screen | 21:38 |
DocScrutinizer05 | rid* | 21:39 |
DocScrutinizer05 | ROMBL however afaik refuses to start an incorrectly signed xloader | 21:39 |
*** arcean has quit IRC | 21:40 | |
DocScrutinizer05 | ooh, 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 that | 21:43 |
silviof | hey thanks | 21:45 |
* silviof is reading http://www.omappedia.org/wiki/Bootloader_Project | 21:45 | |
DocScrutinizer05 | IroN900:~# omap34xx-boot-order | 21:47 |
DocScrutinizer05 | sys_boot[5:0]: 0x10 | 21:47 |
DocScrutinizer05 | Boot order: OneNAND USB UART3 MMC1 -- | 21:47 |
*** Vrm has quit IRC | 21:47 | |
DocScrutinizer05 | so, aiui you even *could* boot from mmc1 (which probably is eMMC) *IF* you had nuked your xloader in /dev/mtd0 | 21:48 |
DocScrutinizer05 | s/boot/load stage1 xloader (by stage0 ROMBL)/ | 21:50 |
infobot | DocScrutinizer05 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/mtd0 | 21:50 |
silviof | What is uart3? serial bootloader with xz-protocol and so on? | 21:50 |
DocScrutinizer05 | err, same as USB basically, but via UART3 which seems to be the console testpoints under battery | 21:50 |
freemangordon | silviof: hmm why is there only one commit? in the MR that is | 21:53 |
DocScrutinizer05 | I guess the protocol will be basically same as for flasher-3.5 coldflash via USB | 21:53 |
*** nox- has joined #maemo-ssu | 21:54 | |
freemangordon | silviof: how did you do the merge request? vie git or via gitorious? | 21:56 |
freemangordon | silviof: and did you push to your repo, according to gitorious your last commit is on 9 of Feb | 21:57 |
silviof | freemangordon: i work only with git. But push to the merge-request/29-branch | 21:57 |
silviof | not good? | 21:57 |
freemangordon | silviof: dunno, I am using gitorious to review, and there is only one commit | 21:58 |
freemangordon | see https://www.gitorious.org/community-ssu/hildon-desktop/merge_requests/29 | 21:58 |
freemangordon | silviof: I've never used git to do MRs, always did it by using gitorious web iface :) | 22:00 |
silviof | freemangordon: its right thats only one commit. I have rewritten and now looks simpler and plainer the patch ^^ | 22:01 |
DocScrutinizer05 | one issue, one ticket, one patch, one MR ;-) | 22:03 |
*** aap has quit IRC | 22:03 | |
DocScrutinizer05 | no two issues in one ticket etc | 22:04 |
DocScrutinizer05 | no two tickets for one issue | 22:04 |
*** aap has joined #maemo-ssu | 22:04 | |
silviof | DocScrutinizer05: whats wrong? | 22:05 |
freemangordon | silviof: you're missing g_free(mydocsdir) and g_object_unref(cleant) in some "if (time (NULL) - secs < 5)" return path | 22:05 |
DocScrutinizer05 | nothing :-) | 22:05 |
freemangordon | *client | 22:05 |
DocScrutinizer05 | at least I hope so | 22:05 |
silviof | freemangordon: uh - i see :-P Never ending story for such a simple task. I'm not in love with glib | 22:06 |
*** BCMM_ has joined #maemo-ssu | 22:06 | |
freemangordon | nothing to do with glib IMO :P | 22:06 |
freemangordon | silviof: BTW, you'd better call gconf_client_get_default (); after that if() | 22:06 |
DocScrutinizer05 | sorry, what's "if (time (NULL) - secs < 5)" ? | 22:07 |
*** BCMM has quit IRC | 22:07 | |
*** BCMM_ is now known as BCMM | 22:07 | |
freemangordon | DocScrutinizer05: secs is a static variable | 22:07 |
freemangordon | and it keeps the last function call time | 22:07 |
freemangordon | it is used to limit screenshots rate to 1/5 secs | 22:07 |
DocScrutinizer05 | looks totally fishy | 22:07 |
freemangordon | well, not the prettiest code but could be way worse | 22:08 |
DocScrutinizer05 | ok, maybe when time(NULL) is actually meant to be some reasonable call | 22:09 |
freemangordon | silviof: 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 time | 22:09 |
freemangordon | silviof: you can do the same for mydocsdir | 22:09 |
freemangordon | call g_strdup(getenv("MYDOCSDIR")); after that time check | 22:10 |
*** BCMM has quit IRC | 22:10 | |
DocScrutinizer05 | still I'd rather do a "secs = time(NULL)+5; if [while??] (time(NULL) < secs)" | 22:10 |
freemangordon | DocScrutinizer05: ^^^ this is not the same | 22:11 |
DocScrutinizer05 | yeah, obviously. It doesn't do useless computations several times | 22:12 |
DocScrutinizer05 | time() - secs < 5 :==: time() < 5 + secs | 22:13 |
freemangordon | a 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 |
freemangordon | yep, my point exactly | 22:14 |
DocScrutinizer05 | and no, you don't do the calculation at test time. You call the var "next_screenshot_allowd_at" and do =time(NULL)+delay | 22:15 |
DocScrutinizer05 | thus doing the calculation only once | 22:16 |
freemangordon | yeah | 22:16 |
DocScrutinizer05 | I understand it's not a busy wait but only rejects events that are triggered somewhere else, right? | 22:24 |
DocScrutinizer05 | you shouldn't do busy waits like this, ever | 22:24 |
freemangordon | yep | 22:24 |
freemangordon | the event is "ctr-shift-P" :) | 22:25 |
DocScrutinizer05 | :nod: | 22:25 |
DocScrutinizer05 | keyrepeat could kick in | 22:25 |
DocScrutinizer05 | makes sense | 22:25 |
silviof | freemangordon: we have under hildon-desktop not the programming-style "variable declaration on start of a function"? | 22:27 |
silviof | then I can use goto (kernel style) too? | 22:27 |
silviof | Is there a style guide for cssu-thingies? | 22:29 |
silviof | programming style I mean ^^ | 22:29 |
*** zz_ototo is now known as ototo | 22:39 | |
*** LauRoman has joined #maemo-ssu | 22:43 | |
freemangordon | silviof: you can (and should) declare the variables in the start of the function, but assign values to them after the "if" in question | 22:48 |
freemangordon | re 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 CSSU | 22:49 |
freemangordon | *follow | 22:50 |
silviof | :-) allright | 22:50 |
freemangordon | BTW I think there are a couple of places in h-d where goto is used :) | 22:51 |
freemangordon | could you do "git grep goto"? | 22:51 |
freemangordon | in h-d source dir that is | 22:51 |
silviof | freemangordon: I'm not on my devputer. It was comming into my brain and i think i ask. | 22:53 |
freemangordon | np | 22:54 |
*** arcean has joined #maemo-ssu | 23:21 | |
*** arcean has quit IRC | 23:47 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!