kerio | yay | 00:00 |
---|---|---|
kerio | did you downgrade system-services? | 00:00 |
merlin1991 | why should I? | 00:00 |
Pali | merlin1991: Skry got bootloop after updating to last cssuT | 00:01 |
Pali | I wrote him to join #maemo-ssu | 00:02 |
merlin1991 | just when I thought we fixed it | 00:02 |
Pali | merlin1991, ask more Skry, I do not have time now for solving problems... | 00:04 |
Pali | Skry will contact you | 00:04 |
tadzik | update went flawless here too, cssu-thumb | 00:07 |
*** _rd has joined #maemo-ssu | 00:07 | |
merlin1991 | hm I've got a bug for arcean | 00:08 |
*** _rd has quit IRC | 00:08 | |
merlin1991 | a silly looking one | 00:08 |
*** NIN101 has quit IRC | 00:09 | |
merlin1991 | http://cdnm.at/~christian/maemo/cssu/Screenshot-20130609-230706.png | 00:12 |
*** eddyb has quit IRC | 00:13 | |
*** futpib__ has quit IRC | 00:20 | |
*** peterpark has joined #maemo-ssu | 00:35 | |
peetah | bootloop again for me with upgrade from CSSU testing thumb to T8.1 | 00:50 |
merlin1991 | sd in or out, if it boots without sd check if you're relly on 8.1 | 00:50 |
peetah | I tried both, and both whent bootlooping | 00:51 |
peetah | s/whent/went/ | 00:51 |
infobot | peetah meant: I tried both, and both went bootlooping | 00:51 |
merlin1991 | now this is a bad one | 00:51 |
*** nox- has joined #maemo-ssu | 00:52 | |
merlin1991 | so it doesn't boot at all? | 00:52 |
peetah | I'll try again a few times from clean powered off device via bootmenu and then I'll report | 00:52 |
peetah | it boots but does not get the dots | 00:53 |
peetah | nope, it really doesnot want to go futher than the "before dots" screen, sd in or out | 00:57 |
merlin1991 | we'll need Pali/freemangordon for this I fear | 00:58 |
peetah | restoring backup then ... | 00:59 |
merlin1991 | can you boot into rescueos first? | 01:00 |
peetah | too late sorry | 01:00 |
peetah | I'll try tomorrow: what do you need ? | 01:01 |
merlin1991 | check if you really got the latest version :) | 01:03 |
merlin1991 | if you boot rescueos, mnt maemo root and "grep -A8 mp-fremantle-community-pr /mnt/maemo/var/lib/dpkg/status" | 01:03 |
merlin1991 | then you should see the version | 01:04 |
peetah | is there more than one repository on maemo.org for cssu testing, like load balancing or something ? because I fail to see how I could have downloaded T8 instead of T8.1 | 01:04 |
peetah | but I'll do that and will report here | 01:05 |
*** Martix has quit IRC | 01:05 | |
*** BCMM has joined #maemo-ssu | 01:05 | |
*** kolp has quit IRC | 01:05 | |
merlin1991 | peetah: ham doesn't always dl the distribution files, so you might not get the lates stuff unless you refresh the catalogues | 01:06 |
peetah | ok | 01:06 |
merlin1991 | for example Skry had the very same problem today | 01:07 |
*** Pali has quit IRC | 01:08 | |
peetah | so I first try to update as usual, then if it bootloops, check version with rescueos, then restore backup, then refresh catalog, then update and ... pray :) | 01:08 |
merlin1991 | yep | 01:09 |
*** peterpark_ has joined #maemo-ssu | 01:21 | |
*** peterpark has quit IRC | 01:24 | |
*** XDS2010_ has joined #maemo-ssu | 01:56 | |
peetah | could'nt resist ... it is 8.1 and it is bootlooping with and without sd in. Led color is varying though before rebooting: sometimes white, sometimes yellow, sometimes redish, without a specific pattern | 02:04 |
peetah | now restoring backup, then sleep! bye | 02:06 |
DocScrutinizer05 | LED? merlin1991, you added my suggestion to give progress indicator - particularly for fsck - during boot via indicator LED? | 02:09 |
merlin1991 | nope fsck is disabled now it shouldn't even run | 02:09 |
DocScrutinizer05 | mhm | 02:10 |
DocScrutinizer05 | probably still better than running it against wrong partition, but... .oO(hmmmm) | 02:10 |
peetah | when I say varying, I mean between reboot, not during the same boot | 02:10 |
DocScrutinizer05 | yep, got that | 02:11 |
DocScrutinizer05 | thanks for disambiguation nevertheless | 02:11 |
DocScrutinizer05 | I really wonder if that fstab hack been worth it | 02:12 |
merlin1991 | I really wonder if it is that fstab hack that is causing peetahs bootloop | 02:17 |
peetah | which hack ? | 02:18 |
merlin1991 | the genfstab.awk is replace with code in rcS-late | 02:18 |
merlin1991 | basically from one ugly hack transformed to a less ugly hack | 02:19 |
peetah | I should have checked what was in fstab before restoring then ... | 02:19 |
DocScrutinizer05 | btw (OT) is there a way to have (globally defined) $var in apache .html/.php? E:G like var OWNDOMAIN=maemo.org and <a href=http://wiki.${OWNDOMAIN}/flashing> | 02:20 |
peetah | mod_include | 02:20 |
DocScrutinizer05 | merlin1991: ^^^ :-) | 02:21 |
DocScrutinizer05 | I'm sure I could figure sth to deliver the "right" html content to the right IP ranges then :-D | 02:22 |
peetah | something like <!--#set owndomain=maemo.org --> in your .html | 02:22 |
DocScrutinizer05 | peetah: that would still mean I had to change every single foobar.htm file | 02:22 |
DocScrutinizer05 | as soon as the domain name changes | 02:23 |
peetah | that's what sed is usually used for | 02:24 |
DocScrutinizer05 | how would I run sed inside apache? | 02:26 |
peetah | sorry I did'nt get it right: I thought you had | 02:27 |
DocScrutinizer05 | think of same page getting delivered under two different domains | 02:27 |
peetah | sorry I did'nt get it right: I thought you wanted to have painless way to change your htmls for various domains | 02:27 |
DocScrutinizer05 | yes | 02:27 |
DocScrutinizer05 | but realtime | 02:27 |
peetah | then I don't know, but I'm not an apache expert .. | 02:28 |
peetah | backup restored now, so I'll wish you a nice whatever time of the day ! bye | 02:29 |
*** BCMM has quit IRC | 02:41 | |
*** LaoLang_cool has joined #maemo-ssu | 03:36 | |
*** LaoLang_cool has quit IRC | 03:43 | |
*** peterpark_ has quit IRC | 04:16 | |
*** LauRoman has quit IRC | 04:18 | |
*** nox- has quit IRC | 05:26 | |
*** amiconn_ has joined #maemo-ssu | 05:50 | |
*** amiconn has quit IRC | 05:50 | |
*** amiconn_ is now known as amiconn | 05:50 | |
*** Milhouse has quit IRC | 06:00 | |
*** lartza_ has quit IRC | 06:39 | |
*** lartza_ has joined #maemo-ssu | 06:46 | |
*** Milhouse has joined #maemo-ssu | 06:47 | |
*** Milhouse has quit IRC | 06:53 | |
*** Milhouse has joined #maemo-ssu | 07:51 | |
*** M13 has joined #maemo-ssu | 07:52 | |
*** Milhouse has quit IRC | 07:56 | |
*** Milhouse has joined #maemo-ssu | 08:09 | |
*** jon_y has quit IRC | 08:11 | |
*** unclouded has joined #maemo-ssu | 08:19 | |
*** b-r-a-i-n has joined #maemo-ssu | 08:24 | |
*** Martix has joined #maemo-ssu | 09:15 | |
*** futpib has joined #maemo-ssu | 09:18 | |
*** LauRoman has joined #maemo-ssu | 10:20 | |
*** Pali has joined #maemo-ssu | 10:36 | |
*** hardo has joined #maemo-ssu | 11:02 | |
hardo | hi | 11:02 |
hardo | somebody here | 11:02 |
freemangordon | ~ask | 11:04 |
infobot | Questions in the channel should be specific, informative, complete, concise, and on-topic. Don't ask if you can ask a question first. Don't ask if a person is there; just ask what you intended to ask them. Better questions more frequently yield better answers. We are all here voluntarily or against our will. | 11:04 |
*** unclouded has quit IRC | 11:04 | |
*** unclouded has joined #maemo-ssu | 11:07 | |
hardo | are the problems with cssu testing fixed ? | 11:13 |
hardo | because yesterday I tried to install cssu testing and it didn't work | 11:14 |
freemangordon | hardo: refresh in HAM | 11:14 |
hardo | thanks | 11:15 |
hardo | hey I got problems with the cssu | 11:40 |
hardo | testing | 11:40 |
hardo | after installing the update I won't turn on | 11:41 |
*** retard has joined #maemo-ssu | 12:06 | |
Drathir | freemangordon: loop sloved? | 12:06 |
Drathir | mornin | 12:06 |
hardo | some people report positive | 12:07 |
hardo | I have problems | 12:07 |
Drathir | DocScrutinizer05: maybe is possibility include something that in php ? | 12:12 |
*** piscodig has joined #maemo-ssu | 12:13 | |
*** piscodig has joined #maemo-ssu | 12:13 | |
*** discopig has quit IRC | 12:14 | |
*** piscodig is now known as discopig | 12:32 | |
*** LauRoman has quit IRC | 12:42 | |
*** BCMM has joined #maemo-ssu | 12:46 | |
*** jon_y has joined #maemo-ssu | 12:55 | |
*** jon_y has quit IRC | 13:01 | |
*** jon_y has joined #maemo-ssu | 13:03 | |
freemangordon | Drathir: it should be | 13:08 |
hardo | yes everthing is fine | 13:10 |
hardo | i solved the problem ^ | 13:10 |
hardo | but i have the next problem | 13:10 |
hardo | i want to update the kernel power | 13:11 |
hardo | to 52 | 13:11 |
hardo | does that mean I have to activate the cssu (devel) repositorie) | 13:11 |
Drathir | hardo: how sloved? | 13:22 |
Drathir | botsnack | 13:22 |
hardo | @drathir | 13:22 |
hardo | I flashed my n900 | 13:22 |
hardo | then take out the sd card | 13:23 |
Drathir | oh i seee | 13:23 |
hardo | and go an webpage and install cssu testing from there | 13:23 |
Drathir | any errors show when try to update KP 52? | 13:24 |
hardo | i don t know how to update | 13:24 |
hardo | i found in ham | 13:24 |
hardo | linux kernel for cssu | 13:24 |
hardo | and | 13:24 |
hardo | linux kernel for power user | 13:25 |
hardo | i don t know which one i need | 13:25 |
hardo | i even don t know if i have to activate the repositories from community (devel) | 13:26 |
Drathir | i have "harder" config because i have also u-boot on board... | 13:26 |
hardo | i see... | 13:27 |
Drathir | menu settings about cssu | 13:27 |
hardo | what is there ? | 13:27 |
Drathir | what flavor you have there? | 13:28 |
hardo | 21.2011.38-1Tmaemo8.1 | 13:28 |
hardo | testing | 13:28 |
Drathir | there only information about cssu installed | 13:28 |
hardo | my cssu went fine | 13:29 |
Drathir | Version: 21.2011.38-1Tmaemo7.2 | 13:29 |
Drathir | looks like updated sucessfull | 13:29 |
hardo | yes | 13:29 |
hardo | uname -r shows | 13:30 |
hardo | 2.6.28-omap1 | 13:30 |
hardo | that means the kernel is not up to date | 13:31 |
hardo | i got to find a way to update the kernel to 52 | 13:31 |
Drathir | Linux Nokia-N900 2.6.28.10-power52 #1 PREEMPT Sat Apr 6 11:59:23 UTC 2013 armv7l GNU/Linux | 13:31 |
hardo | so | 13:32 |
Drathir | idk if this is possible without u-boot... | 13:32 |
hardo | linux kernel for power user should be right ? | 13:32 |
hardo | in ham | 13:32 |
Drathir | DocScrutinizer05 maybe can help more hardo... | 13:33 |
Drathir | i dont really want to say you something cause boot loop and reflash again a phone... | 13:35 |
Drathir | but looks like dependencies works http://pastebin.com/Z5maHz9t | 13:40 |
*** kolp has joined #maemo-ssu | 13:43 | |
*** discopig is now known as piscodig | 14:01 | |
*** LauRoman has joined #maemo-ssu | 14:20 | |
*** M13 has quit IRC | 14:26 | |
*** unclouded has quit IRC | 14:38 | |
merlin1991 | hardo: when you don't have u-boot then you should enable extras-deve and install kernel-power-flasher | 15:09 |
peetah | merlin1991: are there more users experiencing bootloop even with T8.1 or am I still the only one ? | 15:26 |
merlin1991 | so far only hardo had it but for him it went fine when he reflashed and then installed T8.1 | 15:27 |
hardo | peetah my fault was that I forgot about the sd card | 15:29 |
merlin1991 | hardo: well you can put it in now, it shouldn't affect it anymore | 15:31 |
peetah | ok so odds are high that my problem could come from whatever change I could have made in critical files in the past... now which one , I don't know and I really don't want to reflash, so I'll have to postpone this upgrade and dig a little more in my /etc | 15:31 |
peetah | hardo: what about the sd card ? | 15:32 |
hardo | nothing special | 15:32 |
hardo | today i flashed my n900 | 15:32 |
hardo | and after installing cssu my n900 didn't reboot | 15:33 |
hardo | i think for obvios reseon ^ | 15:33 |
hardo | reason | 15:33 |
*** hardo has quit IRC | 15:56 | |
Drathir | hmm now /me thinkink about apply of cssu update ^^ | 16:06 |
DocScrutinizer05 | peetah: check rcs-late, preinit, etc | 16:10 |
DocScrutinizer05 | peetah: particularly those that might have changed in T8 | 16:10 |
DocScrutinizer05 | alas it seems CSSU doesn't (try to) apply patches to those files, but rather ruthlessly replaces them no matter if they are original or customized | 16:12 |
*** X-Fade has quit IRC | 16:12 | |
*** X-Fade has joined #maemo-ssu | 16:13 | |
peetah | after upgrade, and bootloop, I have a new /var/log/fsck_home.log that says fsck has been cancelled: is this normal ? | 16:18 |
DocScrutinizer05 | well, the T8 fstab hack also touched the already botched fsck mechanism | 16:24 |
DocScrutinizer05 | aiui | 16:24 |
peetah | dmesg does not give any useful info | 16:24 |
peetah | I installed sysklogd before upgrading, but it doesn't seems to fill in the /var/log/syslog during the bootloop | 16:25 |
DocScrutinizer05 | and caused fsck to check the wrong MMC since the name of eMMC changes depending on whether or not a uSD been inserted during boot | 16:25 |
peetah | any other place where I could gather information about the boot process ? | 16:26 |
DocScrutinizer05 | debugging boot process is really hard | 16:26 |
peetah | but checking the wrong MMC should simply send a warning, not preventing boot no ? | 16:27 |
DocScrutinizer05 | I think the schema been: do fsck to /home, if it succeeds continue booting; if it had to fix errors try to reboot after fsck exited, to make home remount cleanly | 16:28 |
DocScrutinizer05 | or sth along that line | 16:28 |
DocScrutinizer05 | merlin1991 claimed he kicked out resp disabled fsck completely as a stopgap measure in T8.1 | 16:30 |
DocScrutinizer05 | it's quite unfortunate that this whole fstab patch made it into CSSU at all, without proper testing and perr review | 16:31 |
DocScrutinizer05 | peer even | 16:31 |
merlin1991 | peetah: check /etc/default/mount-opts | 16:40 |
merlin1991 | and make sure the various _fsck options have a "0" settings | 16:40 |
*** piscodig is now known as discopig | 16:43 | |
peetah | merlin1991: no _fsck options in mount-opts, only home_opts and fat_opts | 16:45 |
merlin1991 | then check if you have any /etc/default/mount-opts.* file | 16:45 |
peetah | yep dpkg-dist | 16:46 |
merlin1991 | cp yours into a backup mv that into place and merge changes | 16:46 |
peetah | wow much more options there :) | 16:46 |
merlin1991 | also bitchslap ham for not overwriting it and thus ruining your day | 16:46 |
peetah | what about my own options which do not seem to appear in .dpkg-dist file ? do I copy them there or are they now not used by any scripts ? | 16:49 |
merlin1991 | what are your own options? | 16:49 |
peetah | home_opts="rw,noatime,errors=continue,commit=1,data=writeback" | 16:50 |
DocScrutinizer05 | [2013-06-10 15:46:41] <merlin1991> [...] merge changes | 16:51 |
peetah | fat_opts="noauto, nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir" | 16:51 |
peetah | ok it seems that they are overwritten by rcS-late | 16:52 |
DocScrutinizer05 | bitchslap CSSU for overwriting config files instead of applying diff patches | 16:52 |
merlin1991 | eval home_opts=$common_opts,$root_opts,\$${home_type}_opts | 16:52 |
peetah | at least for home_opts | 16:52 |
peetah | merlin1991: exactly | 16:53 |
peetah | but fat_opts is not used anywhere | 16:53 |
peetah | at least in event.d directory | 16:53 |
merlin1991 | I think it's vfat_opts now | 16:53 |
merlin1991 | hm not used either | 16:53 |
peetah | so so I have to put them in mount-opts-overwrite | 16:54 |
peetah | ? | 16:54 |
*** hardo has joined #maemo-ssu | 16:54 | |
peetah | or just ignore them, they do not seem to be very exotic | 16:54 |
merlin1991 | there is $mydocs_opts now though | 16:54 |
merlin1991 | and yes using mount-opts-overwrite is probably a better choice | 16:55 |
DocScrutinizer05 | md5sum original "obsolete" files, compare md5sums to the master list that comes with "the update", warn if any of the original files been changed wrt what patch developer expected to see, the apply / not apply diff-patches to user's system | 16:55 |
DocScrutinizer05 | it's pretty silly to simply overwrite any existing files | 16:56 |
merlin1991 | well it doesn#t overwrite them at all | 16:57 |
merlin1991 | it places a new file $file.dpkg-dist | 16:57 |
DocScrutinizer05 | that's almost as silly | 16:57 |
DocScrutinizer05 | at least without a FAT WARNING | 16:57 |
DocScrutinizer05 | idealy a diff-patch should get applied | 16:58 |
DocScrutinizer05 | which would do the merges you suggested above | 16:58 |
DocScrutinizer05 | user still should check if the merge went ok | 16:58 |
DocScrutinizer05 | when the original file been different to what devel expected his patch gets applied to | 16:59 |
DocScrutinizer05 | also a backup of original file must get kept | 16:59 |
*** Milhouse has quit IRC | 17:00 | |
peetah | still looping | 17:00 |
merlin1991 | hm check if you have any other .dpkg-dist files on the system | 17:00 |
peetah | already did, but nothing except for openvpn which should not influence the boot process | 17:01 |
DocScrutinizer05 | maybe disabling watchdogs could help? | 17:01 |
merlin1991 | then there's nothing left but to add various echo "got past section x" >> /var/log/rcs.log lines into /etc/event.d/rcS-late and see where it stops | 17:02 |
peetah | that's what I start to do | 17:03 |
DocScrutinizer05 | tbh those diagnostic prints should be in every boot related script. Maybe even set -vx | 17:03 |
DocScrutinizer05 | exec >>/var/log/rcs.log | 17:05 |
DocScrutinizer05 | err | 17:05 |
DocScrutinizer05 | exec 2>>/var/log/rcs.log ? | 17:05 |
DocScrutinizer05 | the orthodox boot debug procedure is to attach a serial console, btw | 17:09 |
DocScrutinizer05 | that's what the UART-3(?) testpoints under battery are for | 17:10 |
merlin1991 | I bet the kernel config doesn't have the serial console bootline on the shipped devices | 17:11 |
DocScrutinizer05 | on Freerunner, you got a debug board for that | 17:11 |
DocScrutinizer05 | flasher allows defining new boot kernel cmdline | 17:11 |
*** Milhouse has joined #maemo-ssu | 17:12 | |
DocScrutinizer05 | so does uBoot | 17:12 |
DocScrutinizer05 | and setting boot options via flasher enables serial console too | 17:12 |
DocScrutinizer05 | http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Development_Environment/Maemo_Flasher-3.5 | 17:13 |
DocScrutinizer05 | --set-rd-flags=serial-console | 17:14 |
DocScrutinizer05 | obvious, uh? | 17:15 |
DocScrutinizer05 | nfc zhough what's sti-console | 17:15 |
*** Milhouse has quit IRC | 17:20 | |
*** Milhouse has joined #maemo-ssu | 17:32 | |
*** Milhouse has quit IRC | 17:38 | |
peetah | ok, so it seems line "initctl emit MOUNTS_OK" of rcS-late is not in love with my n900... does it ring a bell ? | 17:43 |
peetah | clock_daemon, hildon-control-panel-personalisation, rc-clean-fail-thumbnail ans xsession start on MOUNTS_OK | 17:45 |
peetah | which disable order would make more sense ? | 17:46 |
DocScrutinizer05 | diable order? | 18:02 |
DocScrutinizer05 | also, what means "is not in love with my n900" | 18:02 |
peetah | it does not do anything past this line | 18:03 |
DocScrutinizer05 | does it execute that line? does it return from that line? | 18:03 |
Drathir | i good understand that is possible install KP without u-boot? | 18:04 |
DocScrutinizer05 | sure | 18:04 |
Drathir | in that case oryginal is only exchanged with KP one? | 18:05 |
DocScrutinizer05 | that's the usual way to do it | 18:05 |
peetah | it does not print anything after that line | 18:05 |
DocScrutinizer05 | yes | 18:05 |
Drathir | ok thanks now i'll be know that if someone ask about that... | 18:06 |
DocScrutinizer05 | peetah: initctl emit MOUNTS_OK sends a signal to initctl/upstart, which in turn makes upstart start all scripts that are defined as waiting for that signal. any of the jobs/services started could cause reboot | 18:06 |
*** Milhouse has joined #maemo-ssu | 18:07 | |
DocScrutinizer05 | peetah: check /etc/events.d for files with "start (on|after) MOUNTS_OK" | 18:08 |
peetah | that's why I asked which disable order of the started services cited above would make more sense in order to point the culprit | 18:08 |
DocScrutinizer05 | cd /etc/event.d/; grep MOUNTS_OK * | 18:10 |
DocScrutinizer05 | you won't gain anything by disabling those services | 18:10 |
DocScrutinizer05 | you need to check which one fails on getting started | 18:11 |
DocScrutinizer05 | a cascaded "sleep N" at beginning in any of the services, plus a few echo lines (or logger lines) should help to serialize the jobs and see which one gets started but never finishes | 18:12 |
Drathir | but anyway i little scary to helping ppl with kernel questions is too important and critical thing in the system... and too responsible to my knowledge... | 18:12 |
DocScrutinizer05 | I also found >> hildon-control-panel-personalisation.dpkg-new:start on MOUNTS_OK<< | 18:13 |
DocScrutinizer05 | but that's on *my* (obsolete) system, not related to T8 | 18:13 |
DocScrutinizer05 | peetah: I'd figure e.g. xsession or hildon-control-panel-personalisation or rc-clean-fail-thumbnail might have startjobs that use dsmetool to monitor the process and when the service fails and segfaults for some reason (not unseen for e.g. H-D-widgets when config got messed up) the dsme reboots system after 3 failed respawns in 60s | 18:19 |
*** Milhouse has quit IRC | 18:19 | |
peetah | DocScrutinizer05: pfiouuuuu spent too much time on it already ...restoring backup and will look at this sometimes later in the week. thanks for all advices and help ! | 18:21 |
DocScrutinizer05 | yw | 18:22 |
*** arcean has joined #maemo-ssu | 18:27 | |
*** Milhouse has joined #maemo-ssu | 18:32 | |
*** Milhouse has quit IRC | 18:38 | |
*** NIN101 has joined #maemo-ssu | 18:40 | |
*** LauRoman has quit IRC | 18:47 | |
DocScrutinizer05 | Pali: freemangordon: Jun 10 17:47:14 IroN900 kernel: [85239.571258] OMAP3 ROM RNG: HW init failed: 1 | 18:49 |
DocScrutinizer05 | on cat /dev/hwrng | 18:49 |
DocScrutinizer05 | :-S | 18:49 |
Pali | bad | 18:49 |
DocScrutinizer05 | is hwrng a feature of PK? | 18:50 |
*** Milhouse has joined #maemo-ssu | 18:50 | |
*** Milhouse has quit IRC | 18:58 | |
Drathir | i have the same [26386.323333] OMAP3 ROM RNG: HW init failed: 1 | 19:10 |
*** Milhouse has joined #maemo-ssu | 19:11 | |
*** xmlich02 has quit IRC | 19:11 | |
*** xmlich02 has joined #maemo-ssu | 19:14 | |
*** Milhouse has quit IRC | 19:28 | |
*** Milhouse has joined #maemo-ssu | 19:40 | |
DocScrutinizer05 | I consider this a possible security threat | 19:45 |
freemangordon | DocScrutinizer05: which kernel? | 19:45 |
DocScrutinizer05 | IroN900:~# uname -a | 19:46 |
DocScrutinizer05 | Linux IroN900 2.6.28-omap1 #1 PREEMPT Fri Aug 6 11:50:00 EEST 2010 armv7l GNU/Linux | 19:46 |
DocScrutinizer05 | grep PRNG -A6 /etc/event.d/rcS-late | 19:47 |
freemangordon | no such error here | 19:49 |
freemangordon | oh, wait | 19:49 |
DocScrutinizer05 | cat /dev/hwrng | 19:49 |
freemangordon | DocScrutinizer05: do I need to cat /dev/? | 19:49 |
freemangordon | ok | 19:49 |
freemangordon | [17999.453399] OMAP3 ROM RNG: HW init failed: 1 | 19:49 |
freemangordon | hmm, wtf? | 19:49 |
DocScrutinizer05 | and worse: no output of cat /dev/hwrng | 19:50 |
freemangordon | cat: read error: Input/output error | 19:50 |
DocScrutinizer05 | that stderr | 19:50 |
DocScrutinizer05 | ;-P | 19:50 |
freemangordon | DocScrutinizer05: though cat /dev/random works | 19:51 |
DocScrutinizer05 | that doesn't matter | 19:51 |
DocScrutinizer05 | echo "Seeding entropy pool" | 19:51 |
DocScrutinizer05 | dd if=/dev/hwrng of=/dev/urandom bs=$URANDOM_POOLSZ count=1 | 19:51 |
freemangordon | not sure if cat /dev/hwrng is the correct thing to be done | 19:51 |
*** amiconn_ has joined #maemo-ssu | 19:51 | |
*** amiconn has quit IRC | 19:51 | |
*** amiconn_ is now known as amiconn | 19:51 | |
DocScrutinizer05 | grep PRNG -A6 /etc/event.d/rcS-late | 19:52 |
freemangordon | yep, saw it | 19:52 |
* DocScrutinizer05 wonders if that's genuine | 19:52 | |
DocScrutinizer05 | or CSSU | 19:52 |
* freemangordon checks on gitorious | 19:52 | |
DocScrutinizer05 | anyway it seeds entropy with ever-same null stuff | 19:53 |
DocScrutinizer05 | or not at all | 19:53 |
DocScrutinizer05 | which could result in all devices worldwide use same random sequences for tcp stack and whatnot | 19:53 |
DocScrutinizer05 | --> huge security vulnerability | 19:54 |
freemangordon | DocScrutinizer05: nokia: | 19:55 |
freemangordon | https://gitorious.org/community-ssu/upstart/blobs/14e703ee87703880d80bd14b574cbbc96bfe02fe/debian/event.d/system-services/rcS-late#line133 | 19:55 |
DocScrutinizer05 | thought as much | 19:56 |
freemangordon | DocScrutinizer05: though... | 19:56 |
freemangordon | if the line in rcS-late fails, the device wotn boot | 19:57 |
freemangordon | lemme try with dd | 19:57 |
freemangordon | DocScrutinizer05: dd gives the same error | 19:58 |
freemangordon | i'll assume that a false alarm | 19:58 |
freemangordon | if we get the same error in rcS-late, we're in bootloop | 19:58 |
*** Vlad_on_the_road has joined #maemo-ssu | 20:05 | |
kerio | DocScrutinizer05: bitchslap HAM for not presenting the standard "config file changed, overwrite or keep?" dialog on package update | 20:06 |
kerio | diff patches are kinda hard with the way we're doing config files throughout the whole of maemo | 20:06 |
DocScrutinizer05 | well, not everything is a config file | 20:06 |
kerio | if it's not a config file, it's the user's fault for modifying it under dpkg's nose | 20:07 |
DocScrutinizer05 | meh | 20:07 |
kerio | (or the package maintainer's fault for not marking it as a config file) | 20:07 |
DocScrutinizer05 | check who's maintainer and what's package of rcs-late | 20:08 |
DocScrutinizer05 | or of mount-opts | 20:08 |
DocScrutinizer05 | that's exactly why CSSU got _invented_ | 20:09 |
DocScrutinizer05 | so we can't say we're CSSU and not our fault | 20:09 |
kerio | anyway, before pali had finalized the latest system-services, i reported a bootloop that i couldn't properly investigate due to lack of time | 20:09 |
kerio | but my config is way too nonstandard to be of much use :< | 20:09 |
*** sixwheeledbeast has joined #maemo-ssu | 20:10 | |
DocScrutinizer05 | actually CSSU should try to cope with as many config variations as reasonably feasible | 20:11 |
DocScrutinizer05 | and for sure we MUST NOT assume a completely standard system as granted | 20:12 |
DocScrutinizer05 | rather we MUST check if the system actually _is_ compatible with whatever we try to propagate to all users | 20:13 |
kerio | this change, if it worked properly, kinda needed some user intervention, in case of a nonstandard config | 20:13 |
kerio | but that's to be expected, a nonstandard config must modify rcS-late | 20:14 |
DocScrutinizer05 | so indiscriminately replacing whatever rcs-late we find on user's system for sure is a extremely silly and stupid thing, not in line with best practice | 20:14 |
kerio | mmh, you can't quite do it differently though | 20:14 |
kerio | not with the current HAM at least | 20:14 |
freemangordon | DocScrutinizer05: and what do you propose to do instead? | 20:14 |
kerio | freemangordon: postinst scripts! :D | 20:14 |
DocScrutinizer05 | you can a) do a md5sum to check if system has unaltered files like rcs-late, and b) apply diffs rather than replace complete files | 20:15 |
kerio | a diff here would still be catastrophical | 20:15 |
kerio | it's quite a substantial change | 20:15 |
kerio | the correct thing to do is to ask the user | 20:16 |
freemangordon | and what if diff cannot be applied? | 20:16 |
kerio | which is what dpkg does | 20:16 |
freemangordon | well, but HAM does not | 20:16 |
freemangordon | so file a bug against HAM | 20:16 |
kerio | is it a bug, though? | 20:16 |
kerio | feature request | 20:16 |
freemangordon | still, I doubt it will be implementd | 20:17 |
*** Milhouse has quit IRC | 20:17 | |
DocScrutinizer05 | kerio: see what I suggested before: check md5sum, ifequ: (apply patch, exit), warn user, create backup, apply patch, present to user and ask him if that's OK, exit to editor | 20:19 |
kerio | wait, apply patch? at that point you can just replace the file | 20:20 |
DocScrutinizer05 | so you want to ship a diff AND a full replacement file? why? | 20:21 |
kerio | and yeah, that's pretty much what dpkg does, except that there's no diff between old and new so your choices are to replace, keep or view a diff between current and new | 20:21 |
*** hardo has quit IRC | 20:21 | |
kerio | current as in the current config file | 20:21 |
DocScrutinizer05 | yes, dpkg should use diffmerge istead of diff | 20:22 |
freemangordon | BTW is rcS-late really a config file? | 20:23 |
kerio | it's in /etc | 20:23 |
DocScrutinizer05 | no | 20:23 |
DocScrutinizer05 | that's why it is no HAM bug | 20:23 |
freemangordon | kerio: I don;t care where it is | 20:23 |
DocScrutinizer05 | ham and dpkg/apt work correctly | 20:24 |
DocScrutinizer05 | it's CSSU maintainers that *handle* it incorrectly | 20:24 |
freemangordon | so, it is Nokia to blame for not doing it in the correct way initially | 20:24 |
freemangordon | and we can fix it | 20:25 |
DocScrutinizer05 | we should make HAM/apt *think/ rcs-late was a config file | 20:25 |
kerio | marking it as not a config file would allow it to be properly dpkg-diverted | 20:25 |
DocScrutinizer05 | (or any other of those scripts, for that topic) | 20:25 |
freemangordon | DocScrutinizer05: wouldn't a correct fix be to move that script to /sbin and to replace rcS-late with a wrapper to it? | 20:25 |
kerio | so user modifications will stay, and the user will be responsible for it | 20:26 |
kerio | otherwise dpkg will make rcS-late.dpkg-new in that directory, which fucks up the boot process | 20:26 |
DocScrutinizer05 | kerio: valid point. Yes we probably shouldn't use dpkg/apt at all for it, rather postinst scripts and handle that stuff manually | 20:27 |
kerio | +1 for anything that removes responsibilities from upstart | 20:27 |
DocScrutinizer05 | freemangordon: ummm - I need to ponder your suggestion | 20:28 |
*** Milhouse has joined #maemo-ssu | 20:29 | |
DocScrutinizer05 | we basically need sth similar to quilt/bitbake | 20:30 |
DocScrutinizer05 | by structure | 20:30 |
DocScrutinizer05 | the .deb dpkg is fubar on root, by Nokia abusing stuff with their mp-fremantle-pr | 20:31 |
DocScrutinizer05 | and since everybody has mp-fremantle-pr, we can't assume everybody did any modifications s/he needed in e.g. initscripts in a way that's compatible with .deb/dpkg | 20:32 |
DocScrutinizer05 | so all we could do via HAM/apt/dpkg is to deliver "empty" packages that apply a diff patch to system | 20:33 |
DocScrutinizer05 | since basically *any* user modification to any part included in mp-fremantle-pr is messing up the whole dpkg concept | 20:35 |
DocScrutinizer05 | or rather, CSSU would mess up user's system by installing a new mp-fremantle-pr | 20:35 |
DocScrutinizer05 | that's why I always said CSSU shall leave mp-*-pr behind | 20:36 |
DocScrutinizer05 | unpack it into as many independent pkgs as possible | 20:36 |
*** Pali_ has joined #maemo-ssu | 20:38 | |
*** Milhouse has quit IRC | 20:38 | |
*** b-r-a-i-n has quit IRC | 20:39 | |
*** b-r-a-i-n has joined #maemo-ssu | 20:40 | |
*** kerio_ has joined #maemo-ssu | 20:41 | |
*** BCMM has quit IRC | 20:42 | |
*** Pali has quit IRC | 20:42 | |
*** wmarone_ has quit IRC | 20:42 | |
*** kerio has quit IRC | 20:42 | |
*** kerio_ is now known as kerio | 20:42 | |
sixwheeledbeast | I have no issues with upstart, why the hate? | 20:44 |
kerio | it's not sysv | 20:45 |
sixwheeledbeast | get with the times :) | 20:48 |
sixwheeledbeast | upstart was made as a better replacement for sysV | 20:49 |
DocScrutinizer05 | upstart as well as systemd have abysmal "UI" | 20:49 |
kerio | yeah, so it can boot faster by using all the multiple cores the n900 has | 20:49 |
kerio | OH WAIT | 20:49 |
DocScrutinizer05 | while sysV has a clear "API" by ls /etc/init.d/*, upstart and particularly systemd offer no clean API/UI to find out what's going on and what are the sysop's options to do now | 20:51 |
DocScrutinizer05 | sysV: for service in /etc/init.d/*; do $service status; done | 20:52 |
DocScrutinizer05 | upstart: ????? | 20:52 |
DocScrutinizer05 | and systemd even abandons runlevels | 20:53 |
kerio | but runlevels are so unix, DocScrutinizer | 20:53 |
kerio | people don't use anything but desktops or tablets | 20:54 |
kerio | you should know that | 20:54 |
DocScrutinizer05 | yeah, so let's see if we find some concept that's more windozy | 20:54 |
DocScrutinizer05 | like systemd needing dbus(!!!) to even start up a system, and having his own shell to communicate with it | 20:55 |
DocScrutinizer05 | clearly an ideal proces#0 | 20:55 |
DocScrutinizer05 | both by system architecture as well as by resource requirements | 20:56 |
*** Martix has quit IRC | 20:56 | |
DocScrutinizer05 | and here comes my killer argument why both upstart and systemd are hell spawn: upstart is canonical, systemd is poettering | 20:57 |
*** Martix has joined #maemo-ssu | 20:57 | |
DocScrutinizer05 | both entities are notorious for evil attitude to take unix hostage and turn it into sth that meets their very own design goals and _nothing_ else | 20:58 |
DocScrutinizer05 | generations of linux devels invested eternities of their worktime to make linux a unix-compatible system. Poettering considers this a major *flaw* of linux | 21:00 |
DocScrutinizer05 | plain hybris | 21:00 |
DocScrutinizer05 | "we don't need (easy porting of) *any* of the tools or libs or toolkits or filesystems or drivers of any of the UNIX systems. We are linux, we have everything we need and staying compatible with UNIX blocks our oh-so-devine creativity to have networked audio during user login" | 21:03 |
*** amiconn has quit IRC | 21:22 | |
*** amiconn has joined #maemo-ssu | 21:22 | |
DocScrutinizer05 | freemangordon: I don't think the line "" dd if=/dev/hwrng of=/dev/urandom bs=$URANDOM_POOLSZ count=1 "" throwing error would cause a bootloop | 21:38 |
DocScrutinizer05 | after all rcs-late is a upstart script, and there's not much essential after that line in the script section of /etc/event.d/rcS-late | 21:39 |
DocScrutinizer05 | anyway I got 3 lines with RNG in my syslog: | 21:42 |
DocScrutinizer05 | May 31 15:39:58 IroN900 kernel: [ 2.623168] OMAP3 ROM RNG: initializing | 21:42 |
DocScrutinizer05 | during regular boot | 21:42 |
DocScrutinizer05 | and then | 21:43 |
DocScrutinizer05 | Jun 10 17:47:14 IroN900 kernel: [85239.571258] OMAP3 ROM RNG: HW init failed: 1 | 21:43 |
DocScrutinizer05 | Jun 10 17:48:17 IroN900 kernel: [85302.464813] OMAP3 ROM RNG: HW init failed: 1 | 21:43 |
DocScrutinizer05 | during my former tests | 21:43 |
DocScrutinizer05 | freemangordon: Pali_: could you spot the line in kernel printing that error msg? | 21:44 |
DocScrutinizer05 | o.O https://lkml.org/lkml/2013/3/28/536 | 21:47 |
*** Milhouse has joined #maemo-ssu | 21:48 | |
*** wmarone_ has joined #maemo-ssu | 21:48 | |
DocScrutinizer05 | I wonder if that's a coincidence that Pali is looking into it recently. I stay with L.J.Gibbs: "I don't believe in coincidences" | 21:49 |
Pali_ | DocScrutinizer05: I ported that driver to 3.9 kernel | 21:57 |
*** Pali_ is now known as Pali | 21:58 | |
*** Milhouse has quit IRC | 21:58 | |
Pali | DocScrutinizer05: http://mxr.maemo.org/fremantle/source/kernel/drivers/char/hw_random/omap3-rom-drv.c#81 | 22:01 |
Pali | it failing call_sec_rom function which is wrapper around smc instruction: http://mxr.maemo.org/fremantle/source/kernel/drivers/char/hw_random/omap3-rom-asm.S | 22:02 |
Pali | it looks like your omap board is broken | 22:03 |
Pali | DocScrutinizer05: try to turn device off and on. NOLO has some code which doing something with M-Shield, so maybe it can reset it | 22:04 |
DocScrutinizer05 | my omap board broken?? duh! | 22:04 |
Pali | secure side of omap cpu returned error | 22:05 |
DocScrutinizer05 | maybe I used a cmd that "broke2 it | 22:05 |
DocScrutinizer05 | this could've been softupd only, for all I can tell | 22:06 |
DocScrutinizer05 | well, ok. I'll give my daily phone another reboot - way too early since it has an uptime of only 10 days | 22:07 |
*** Milhouse has joined #maemo-ssu | 22:10 | |
Drathir | hrhr updates knoking to me ^^ | 22:45 |
Drathir | knocking* | 22:45 |
*** futpib has quit IRC | 22:51 | |
merlin1991 | DocScrutinizer05: upstart has a status check | 22:55 |
merlin1991 | service $service status | 22:55 |
DocScrutinizer05 | uhu, and who tells me about content of $status? | 22:56 |
DocScrutinizer05 | err $service | 22:56 |
merlin1991 | /etc/event.d | 22:57 |
merlin1991 | but since the upstart on maemo os more than old its not even service ... but "status $service" | 22:58 |
DocScrutinizer05 | hmm I wonder if files like ke-recv.dpkg-new and icd2.dpkg-new in /etc/event.d do any good | 23:02 |
DocScrutinizer05 | http://privatepaste.com/efeb0ad74f | 23:06 |
*** macmaN has quit IRC | 23:10 | |
DocScrutinizer05 | http://privatepaste.com/a46c5d990c | 23:11 |
DocScrutinizer05 | http://privatepaste.com/910207db60 | 23:12 |
freemangordon | Pali: it could be that hwrng cannot be initialized/called more than once | 23:24 |
Pali | DocScrutinizer05: XYZ.dpkg-new files replacing XYZ after successfull installation/upgrade | 23:25 |
freemangordon | if it is broken this https://gitorious.org/community-ssu/upstart/blobs/master/debian/event.d/system-services/rcS-late#line223 would fail on boot | 23:25 |
Pali | if you edited XYZ file, then apt-get will ask you if you really want to update that files | 23:26 |
freemangordon | Pali: so I'd assume we have NFC how it works | 23:26 |
Pali | freemangordon: original nokia code was "dd if=/dev/hwrng of=/dev/urandom bs=$URANDOM_POOLSZ count=1" | 23:26 |
Pali | (or /dev/hw_random) I do not know now | 23:27 |
Pali | one is in vanilla kernel and one in maemo patched udev | 23:27 |
freemangordon | Pali: i looked into it, there is no difference | 23:27 |
freemangordon | it is somewhere in the backscroll | 23:27 |
Pali | you can try to add "|| true" so it skip hwrand error | 23:27 |
freemangordon | Pali: there is no error | 23:28 |
freemangordon | https://gitorious.org/community-ssu/upstart/blobs/14e703ee87703880d80bd14b574cbbc96bfe02fe/debian/event.d/system-services/rcS-late#line133 | 23:28 |
Pali | ok | 23:28 |
freemangordon | Pali: if there was error (during bootup) the device will enter reboot loop | 23:28 |
Pali | right | 23:28 |
freemangordon | DocScrutinizer05 got this error while doing cat /dev/hwrng | 23:29 |
freemangordon | and I am not sure adding || true is a good idea | 23:29 |
freemangordon | as that would mean we'll continue to boot on a faulty HW | 23:29 |
*** Vlad_on_the_road has quit IRC | 23:33 | |
*** texed has joined #maemo-ssu | 23:35 | |
*** arcean has quit IRC | 23:35 | |
*** texed has quit IRC | 23:46 | |
*** chem|st has quit IRC | 23:58 | |
*** chem|st has joined #maemo-ssu | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!