IRC log for #maemo-ssu on 20130610

00:36.33*** join/#maemo-ssu LaoLang_cool (~LaoLang_c@14.151.30.77)
02:50.47*** join/#maemo-ssu amiconn_ (amiconn@rockbox/developer/amiconn)
03:46.08*** join/#maemo-ssu lartza_ (~lartza@IP-62-216-127-116.telemail.fi)
03:47.29*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
04:51.49*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
04:52.32*** join/#maemo-ssu M13 (~Miranda@83.149.38.193)
05:09.18*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
05:19.33*** join/#maemo-ssu unclouded (~neil@2001:4428:200:80fc:185a:93da:b21b:928)
05:24.18*** join/#maemo-ssu b-r-a-i-n (~admin@188.168.202.135)
06:15.14*** join/#maemo-ssu Martix (~martix@static-84-242-103-180.net.upcbroadband.cz)
06:18.12*** join/#maemo-ssu futpib (~futpib@89.106.197.36)
07:20.07*** join/#maemo-ssu LauRoman (~LauRoman@5-14-91-235.residential.rdsnet.ro)
07:36.06*** join/#maemo-ssu Pali (~pali@Maemo/community/contributor/Pali)
08:02.33*** join/#maemo-ssu hardo (~sacko@p549AC83E.dip0.t-ipconnect.de)
08:02.44hardohi
08:02.50hardosomebody here
08:04.21freemangordon~ask
08:04.21infobotQuestions 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.
08:07.25*** join/#maemo-ssu unclouded (~neil@2001:4428:200:80fc:185a:93da:b21b:928)
08:13.37hardoare the problems with cssu testing fixed ?
08:14.17hardobecause yesterday I tried to install cssu testing and it didn't work
08:14.31freemangordonhardo: refresh in HAM
08:15.24hardothanks
08:40.35hardohey I got problems with the cssu
08:40.37hardotesting
08:41.03hardoafter installing the update I won't turn on
09:06.00*** join/#maemo-ssu retard (~tom@zak.radionova.no)
09:06.27Drathirfreemangordon: loop sloved?
09:06.30Drathirmornin
09:07.00hardosome people report positive
09:07.05hardoI have problems
09:12.37DrathirDocScrutinizer05: maybe is possibility include something that in php ?
09:13.27*** join/#maemo-ssu piscodig (~discopig@2001:5c0:1400:a::49)
09:13.27*** join/#maemo-ssu piscodig (~discopig@unaffiliated/discopig)
09:46.17*** join/#maemo-ssu BCMM (~BCMM@unaffiliated/bcmm)
09:55.40*** join/#maemo-ssu jon_y (~enforcer@2002:af91:e842::af91:e842)
10:03.12*** join/#maemo-ssu jon_y (~enforcer@2002:af91:e842::af91:e842)
10:08.56freemangordonDrathir: it should be
10:10.26hardoyes everthing is fine
10:10.39hardoi solved the problem ^
10:10.58hardobut i have the next problem
10:11.09hardoi want to update the kernel power
10:11.15hardoto 52
10:11.44hardodoes that mean I have to activate the cssu (devel) repositorie)
10:22.08Drathirhardo: how sloved?
10:22.38Drathirbotsnack
10:22.43hardo@drathir
10:22.53hardoI flashed my n900
10:23.04hardothen take out the sd card
10:23.13Drathiroh i seee
10:23.25hardoand go an webpage and install cssu testing from there
10:24.12Drathirany errors show when try to update KP 52?
10:24.30hardoi don t know how to update
10:24.36hardoi found in ham
10:24.51hardolinux kernel for cssu
10:24.55hardoand
10:25.05hardolinux kernel for power user
10:25.17hardoi don t know which one i need
10:26.22hardoi even don t know if i have to activate the repositories from community (devel)
10:26.47Drathiri have "harder" config because i have also u-boot on board...
10:27.33hardoi see...
10:27.37Drathirmenu settings about cssu
10:27.54hardowhat is there ?
10:28.25Drathirwhat flavor you have there?
10:28.43hardo21.2011.38-1Tmaemo8.1
10:28.52hardotesting
10:28.58Drathirthere only information about cssu installed
10:29.32hardomy cssu went fine
10:29.33DrathirVersion: 21.2011.38-1Tmaemo7.2
10:29.48Drathirlooks like updated sucessfull
10:29.53hardoyes
10:30.39hardouname -r shows
10:30.52hardo2.6.28-omap1
10:31.04hardothat means the kernel is not up to date
10:31.21hardoi got to find a way to update the kernel to 52
10:31.39DrathirLinux Nokia-N900 2.6.28.10-power52 #1 PREEMPT Sat Apr 6 11:59:23 UTC 2013 armv7l GNU/Linux
10:32.24hardoso
10:32.33Drathiridk if this is possible without u-boot...
10:32.38hardolinux kernel for power user should be right ?
10:32.47hardoin ham
10:33.35DrathirDocScrutinizer05 maybe can help more hardo...
10:35.24Drathiri dont really want to say you something cause boot loop and reflash again a phone...
10:40.23Drathirbut looks like dependencies works http://pastebin.com/Z5maHz9t
10:43.27*** join/#maemo-ssu kolp (~quassel@212.255.229.223)
11:20.07*** join/#maemo-ssu LauRoman (~LauRoman@5-14-91-235.residential.rdsnet.ro)
12:09.08merlin1991hardo: when you don't have u-boot then you should enable extras-deve and install kernel-power-flasher
12:26.15peetahmerlin1991: are there more users experiencing bootloop even with T8.1 or am I still the only one ?
12:27.27merlin1991so far only hardo had it but for him it went fine when he reflashed and then installed T8.1
12:29.29hardopeetah my fault was that I forgot about the sd card
12:31.08merlin1991hardo: well you can put it in now, it shouldn't affect it anymore
12:31.58peetahok 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
12:32.08peetahhardo: what about the sd card ?
12:32.35hardonothing special
12:32.42hardotoday i flashed my n900
12:33.05hardoand after installing cssu my n900 didn't reboot
12:33.22hardoi think for obvios reseon ^
12:33.34hardoreason
13:06.14Drathirhmm now /me thinkink about apply of cssu update ^^
13:10.22DocScrutinizer05peetah: check rcs-late, preinit, etc
13:10.41DocScrutinizer05peetah: particularly those that might have changed in T8
13:12.19DocScrutinizer05alas 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
13:13.06*** join/#maemo-ssu X-Fade (~xfade@d5152FFD8.static.telenet.be)
13:18.22peetahafter upgrade, and bootloop, I have a new /var/log/fsck_home.log that says fsck has been cancelled: is this normal ?
13:24.42DocScrutinizer05well, the T8 fstab hack also touched the already botched fsck mechanism
13:24.47DocScrutinizer05aiui
13:24.51peetahdmesg does not give any useful info
13:25.28peetahI installed sysklogd before upgrading, but it doesn't seems to fill in the /var/log/syslog during the bootloop
13:25.50DocScrutinizer05and caused fsck to check the wrong MMC since the name of eMMC changes depending on whether or not a uSD been inserted during boot
13:26.13peetahany other place where I could gather information about the boot process ?
13:26.39DocScrutinizer05debugging boot process is really hard
13:27.04peetahbut checking the wrong MMC should simply send a warning, not preventing boot no ?
13:28.38DocScrutinizer05I 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
13:28.48DocScrutinizer05or sth along that line
13:30.27DocScrutinizer05merlin1991 claimed he kicked out resp disabled fsck completely as a stopgap measure in T8.1
13:31.25DocScrutinizer05it's quite unfortunate that this whole fstab patch made it into CSSU at all, without proper testing and perr review
13:31.31DocScrutinizer05peer even
13:40.06merlin1991peetah: check /etc/default/mount-opts
13:40.42merlin1991and make sure the various _fsck options have a "0" settings
13:45.14peetahmerlin1991: no _fsck options in mount-opts, only home_opts and fat_opts
13:45.53merlin1991then check if you have any /etc/default/mount-opts.* file
13:46.13peetahyep dpkg-dist
13:46.42merlin1991cp yours into a backup mv that into place and merge changes
13:46.51peetahwow much more options there :)
13:46.54merlin1991also bitchslap ham for not overwriting it and thus ruining your day
13:49.27peetahwhat 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 ?
13:49.45merlin1991what are your own options?
13:50.30peetahhome_opts="rw,noatime,errors=continue,commit=1,data=writeback"
13:51.20DocScrutinizer05[2013-06-10 15:46:41] <merlin1991> [...] merge changes
13:51.25peetahfat_opts="noauto, nodev,noexec,nosuid,noatime,nodiratime,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0133,rodir"
13:52.33peetahok it seems that they are overwritten by rcS-late
13:52.37DocScrutinizer05bitchslap CSSU for overwriting config files instead of applying diff patches
13:52.52merlin1991eval home_opts=$common_opts,$root_opts,\$${home_type}_opts
13:52.57peetahat least for home_opts
13:53.02peetahmerlin1991: exactly
13:53.10peetahbut fat_opts is not used anywhere
13:53.19peetahat least in event.d directory
13:53.23merlin1991I think it's vfat_opts now
13:53.44merlin1991hm not used either
13:54.13peetahso so I have to put them in mount-opts-overwrite
13:54.14peetah?
13:54.17*** join/#maemo-ssu hardo (~sacko@p549AC83E.dip0.t-ipconnect.de)
13:54.40peetahor just ignore them, they do not seem to be very exotic
13:54.42merlin1991there is $mydocs_opts now though
13:55.11merlin1991and yes using mount-opts-overwrite is probably a better choice
13:55.57DocScrutinizer05md5sum 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
13:56.41DocScrutinizer05it's pretty silly to simply overwrite any existing files
13:57.05merlin1991well it doesn#t overwrite them at all
13:57.16merlin1991it places a new file $file.dpkg-dist
13:57.17DocScrutinizer05that's almost as silly
13:57.35DocScrutinizer05at least without a FAT WARNING
13:58.03DocScrutinizer05idealy a diff-patch should get applied
13:58.15DocScrutinizer05which would do the merges you suggested above
13:58.30DocScrutinizer05user still should check if the merge went ok
13:59.02DocScrutinizer05when the original file been different to what devel expected his patch gets applied to
13:59.27DocScrutinizer05also a backup of original file must get kept
14:00.03peetahstill looping
14:00.49merlin1991hm check if you have any other .dpkg-dist files on the system
14:01.19peetahalready did, but nothing except for openvpn which should not influence the boot process
14:01.58DocScrutinizer05maybe disabling watchdogs could help?
14:02.15merlin1991then 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
14:03.04peetahthat's what I start to do
14:03.55DocScrutinizer05tbh those diagnostic prints should be in every boot related script. Maybe even set -vx
14:05.26DocScrutinizer05exec >>/var/log/rcs.log
14:05.44DocScrutinizer05err
14:05.52DocScrutinizer05exec 2>>/var/log/rcs.log ?
14:09.58DocScrutinizer05the orthodox boot debug procedure is to attach a serial console, btw
14:10.29DocScrutinizer05that's what the UART-3(?) testpoints under battery are for
14:11.05merlin1991I bet the kernel  config doesn't have the serial console bootline on the shipped devices
14:11.25DocScrutinizer05on Freerunner, you got a debug board for that
14:11.55DocScrutinizer05flasher allows defining new boot kernel cmdline
14:12.05*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
14:12.09DocScrutinizer05so does uBoot
14:12.30DocScrutinizer05and setting boot options via flasher enables serial console too
14:13.41DocScrutinizer05http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Development_Environment/Maemo_Flasher-3.5
14:14.57DocScrutinizer05--set-rd-flags=serial-console
14:15.11DocScrutinizer05obvious, uh?
14:15.53DocScrutinizer05nfc zhough what's sti-console
14:32.03*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
14:43.28peetahok, so it seems line "initctl emit MOUNTS_OK" of rcS-late is not in love with my n900... does it ring a bell ?
14:45.50peetahclock_daemon, hildon-control-panel-personalisation, rc-clean-fail-thumbnail ans xsession start on MOUNTS_OK
14:46.35peetahwhich disable order would make more sense ?
15:02.09DocScrutinizer05diable order?
15:02.41DocScrutinizer05also, what means "is not in love with my n900"
15:03.02peetahit does not do anything past this line
15:03.48DocScrutinizer05does it execute that line? does it return from that line?
15:04.38Drathiri good understand that is possible install KP without u-boot?
15:04.50DocScrutinizer05sure
15:05.11Drathirin that case oryginal is only exchanged with KP one?
15:05.16DocScrutinizer05that's the usual way to do it
15:05.22peetahit does not print anything after that line
15:05.22DocScrutinizer05yes
15:06.37Drathirok thanks now i'll be know that if someone ask about that...
15:06.52DocScrutinizer05peetah: 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
15:07.32*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
15:08.16DocScrutinizer05peetah: check /etc/events.d for files with "start (on|after) MOUNTS_OK"
15:08.53peetahthat's why I asked which disable order of the started services cited above would make more sense in order to point the culprit
15:10.15DocScrutinizer05cd /etc/event.d/; grep MOUNTS_OK *
15:10.50DocScrutinizer05you won't gain anything by disabling those services
15:11.04DocScrutinizer05you need to check which one fails on getting started
15:12.25DocScrutinizer05a 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
15:12.52Drathirbut 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...
15:13.12DocScrutinizer05I also found >> hildon-control-panel-personalisation.dpkg-new:start on MOUNTS_OK<<
15:13.33DocScrutinizer05but that's on *my* (obsolete) system, not related to T8
15:19.38DocScrutinizer05peetah: 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
15:21.47peetahDocScrutinizer05: 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 !
15:22.07DocScrutinizer05yw
15:27.35*** join/#maemo-ssu arcean (~arcean@apn-77-114-14-171.dynamic.gprs.plus.pl)
15:32.18*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
15:40.22*** join/#maemo-ssu NIN101 (~NIN@p5DD28C9A.dip0.t-ipconnect.de)
15:49.11DocScrutinizer05Pali: freemangordon: Jun 10 17:47:14 IroN900 kernel: [85239.571258] OMAP3 ROM RNG: HW init failed: 1
15:49.28DocScrutinizer05on cat /dev/hwrng
15:49.34DocScrutinizer05:-S
15:49.56Palibad
15:50.34DocScrutinizer05is hwrng a feature of PK?
15:50.38*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
16:10.10Drathiri have the same [26386.323333] OMAP3 ROM RNG: HW init failed: 1
16:11.03*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
16:14.44*** join/#maemo-ssu xmlich02 (~imlich@2001:67c:1220:80c:21c:c0ff:fe18:9398)
16:40.06*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
16:45.03DocScrutinizer05I consider this a possible security threat
16:45.55freemangordonDocScrutinizer05: which kernel?
16:46.13DocScrutinizer05IroN900:~# uname -a
16:46.14DocScrutinizer05Linux IroN900 2.6.28-omap1 #1 PREEMPT Fri Aug 6 11:50:00 EEST 2010 armv7l GNU/Linux
16:47.36DocScrutinizer05grep PRNG -A6 /etc/event.d/rcS-late
16:49.06freemangordonno such error here
16:49.16freemangordonoh, wait
16:49.30DocScrutinizer05cat /dev/hwrng
16:49.32freemangordonDocScrutinizer05: do I need to cat /dev/?
16:49.33freemangordonok
16:49.52freemangordon[17999.453399] OMAP3 ROM RNG: HW init failed: 1
16:49.57freemangordonhmm, wtf?
16:50.04DocScrutinizer05and worse: no output of cat /dev/hwrng
16:50.20freemangordoncat: read error: Input/output error
16:50.39DocScrutinizer05that stderr
16:50.45DocScrutinizer05;-P
16:51.05freemangordonDocScrutinizer05: though cat /dev/random works
16:51.23DocScrutinizer05that doesn't matter
16:51.27DocScrutinizer05<PROTECTED>
16:51.28DocScrutinizer05<PROTECTED>
16:51.30freemangordonnot sure if cat /dev/hwrng is the correct thing to be done
16:51.35*** join/#maemo-ssu amiconn_ (amiconn@rockbox/developer/amiconn)
16:52.02DocScrutinizer05grep PRNG -A6 /etc/event.d/rcS-late
16:52.10freemangordonyep, saw it
16:52.24DocScrutinizer05wonders if that's genuine
16:52.29DocScrutinizer05or CSSU
16:52.44freemangordonchecks on gitorious
16:53.01DocScrutinizer05anyway it seeds entropy with ever-same null stuff
16:53.09DocScrutinizer05or not at all
16:53.50DocScrutinizer05which could result in all devices worldwide use same random sequences for tcp stack and whatnot
16:54.22DocScrutinizer05--> huge security vulnerability
16:55.48freemangordonDocScrutinizer05: nokia:
16:55.49freemangordonhttps://gitorious.org/community-ssu/upstart/blobs/14e703ee87703880d80bd14b574cbbc96bfe02fe/debian/event.d/system-services/rcS-late#line133
16:56.33DocScrutinizer05thought as much
16:56.41freemangordonDocScrutinizer05: though...
16:57.05freemangordonif the line in rcS-late fails, the device wotn boot
16:57.12freemangordonlemme try with dd
16:58.13freemangordonDocScrutinizer05: dd gives the same error
16:58.21freemangordoni'll assume that a false alarm
16:58.49freemangordonif we get the same error in rcS-late, we're in bootloop
17:05.42*** join/#maemo-ssu Vlad_on_the_road (~Vlad_on_t@ip-66.net-82-216-1.versailles2.rev.numericable.fr)
17:06.10kerioDocScrutinizer05: bitchslap HAM for not presenting the standard "config file changed, overwrite or keep?" dialog on package update
17:06.52keriodiff patches are kinda hard with the way we're doing config files throughout the whole of maemo
17:06.57DocScrutinizer05well, not everything is a config file
17:07.15kerioif it's not a config file, it's the user's fault for modifying it under dpkg's nose
17:07.26DocScrutinizer05meh
17:07.44kerio(or the package maintainer's fault for not marking it as a config file)
17:08.17DocScrutinizer05check who's maintainer and what's package of rcs-late
17:08.34DocScrutinizer05or of mount-opts
17:09.01DocScrutinizer05that's exactly why CSSU got _invented_
17:09.20DocScrutinizer05so we can't say we're CSSU and not our fault
17:09.32kerioanyway, before pali had finalized the latest system-services, i reported a bootloop that i couldn't properly investigate due to lack of time
17:09.51keriobut my config is way too nonstandard to be of much use :<
17:10.04*** join/#maemo-ssu sixwheeledbeast (~paul@cl-1547.lon-02.gb.sixxs.net)
17:11.38DocScrutinizer05actually CSSU should try to cope with as many config variations as reasonably feasible
17:12.20DocScrutinizer05and for sure we MUST NOT assume a completely standard system as granted
17:13.08DocScrutinizer05rather we MUST check if the system actually _is_ compatible with whatever we try to propagate to all users
17:13.56keriothis change, if it worked properly, kinda needed some user intervention, in case of a nonstandard config
17:14.07keriobut that's to be expected, a nonstandard config must modify rcS-late
17:14.07DocScrutinizer05so 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
17:14.28keriommh, you can't quite do it differently though
17:14.34kerionot with the current HAM at least
17:14.43freemangordonDocScrutinizer05: and what do you propose to do instead?
17:14.59keriofreemangordon: postinst scripts! :D
17:15.14DocScrutinizer05you can a) do a md5sum to check if system has unaltered files like rcs-late, and b) apply diffs rather than replace complete files
17:15.29kerioa diff here would still be catastrophical
17:15.45kerioit's quite a substantial change
17:16.06keriothe correct thing to do is to ask the user
17:16.11freemangordonand what if diff cannot be applied?
17:16.13keriowhich is what dpkg does
17:16.21freemangordonwell, but HAM does not
17:16.35freemangordonso file a bug against HAM
17:16.43keriois it a bug, though?
17:16.58keriofeature request
17:17.28freemangordonstill, I doubt it will be implementd
17:19.51DocScrutinizer05kerio: 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
17:20.45keriowait, apply patch? at that point you can just replace the file
17:21.16DocScrutinizer05so you want to ship a diff AND a full replacement file? why?
17:21.18kerioand 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
17:21.36keriocurrent as in the current config file
17:22.32DocScrutinizer05yes, dpkg should use diffmerge istead of diff
17:23.18freemangordonBTW is rcS-late really a config file?
17:23.23kerioit's in /etc
17:23.25DocScrutinizer05no
17:23.35DocScrutinizer05that's why it is no HAM bug
17:23.37freemangordonkerio: I don;t care where it is
17:24.15DocScrutinizer05ham and dpkg/apt work correctly
17:24.35DocScrutinizer05it's CSSU maintainers that *handle* it incorrectly
17:24.49freemangordonso, it is Nokia to blame for not doing it in the correct way initially
17:25.00freemangordonand we can fix it
17:25.06DocScrutinizer05we should make HAM/apt *think/ rcs-late was a config file
17:25.47keriomarking it as not a config file would allow it to be properly dpkg-diverted
17:25.51DocScrutinizer05(or any other of those scripts, for that topic)
17:25.59freemangordonDocScrutinizer05: wouldn't a correct fix be to move that script to /sbin and to replace rcS-late with a wrapper to it?
17:26.03kerioso user modifications will stay, and the user will be responsible for it
17:26.18keriootherwise dpkg will make rcS-late.dpkg-new in that directory, which fucks up the boot process
17:27.14DocScrutinizer05kerio: valid point. Yes we probably shouldn't use dpkg/apt at all for it, rather postinst scripts and handle that stuff manually
17:27.22kerio+1 for anything that removes responsibilities from upstart
17:28.00DocScrutinizer05freemangordon: ummm - I need to ponder your suggestion
17:29.00*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
17:30.17DocScrutinizer05we basically need sth similar to quilt/bitbake
17:30.32DocScrutinizer05by structure
17:31.11DocScrutinizer05the .deb dpkg is fubar on root, by Nokia abusing stuff with their mp-fremantle-pr
17:32.30DocScrutinizer05and 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
17:33.39DocScrutinizer05so all we could do via HAM/apt/dpkg is to deliver "empty" packages that apply a diff patch to system
17:35.19DocScrutinizer05since basically *any* user modification to any part included in mp-fremantle-pr is messing up the whole dpkg concept
17:35.45DocScrutinizer05or rather, CSSU would mess up user's system by installing a new mp-fremantle-pr
17:36.18DocScrutinizer05that's why I always said CSSU shall leave mp-*-pr behind
17:36.59DocScrutinizer05unpack it into as many independent pkgs as possible
17:38.29*** join/#maemo-ssu Pali_ (~pali@Maemo/community/contributor/Pali)
17:40.05*** join/#maemo-ssu b-r-a-i-n (~admin@188.168.202.135)
17:41.20*** join/#maemo-ssu kerio_ (~kerio@Maemo/community/contributor/kerio)
17:44.16sixwheeledbeastI have no issues with upstart, why the hate?
17:45.30kerioit's not sysv
17:48.37sixwheeledbeastget with the times :)
17:49.07sixwheeledbeastupstart was made as a better replacement for sysV
17:49.12DocScrutinizer05upstart as well as systemd have abysmal "UI"
17:49.28kerioyeah, so it can boot faster by using all the multiple cores the n900 has
17:49.31kerioOH WAIT
17:51.18DocScrutinizer05while 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
17:52.28DocScrutinizer05sysV:  for service in /etc/init.d/*; do $service status; done
17:52.38DocScrutinizer05upstart: ?????
17:53.25DocScrutinizer05and systemd even abandons runlevels
17:53.57keriobut runlevels are so unix, DocScrutinizer
17:54.14keriopeople don't use anything but desktops or tablets
17:54.15kerioyou should know that
17:54.22DocScrutinizer05yeah, so let's see if we find some concept that's more windozy
17:55.17DocScrutinizer05like systemd needing dbus(!!!) to even start up a system, and having his own shell to communicate with it
17:55.50DocScrutinizer05clearly an ideal proces#0
17:56.13DocScrutinizer05both by system architecture as well as by resource requirements
17:57.15DocScrutinizer05and here comes my killer argument why both upstart and systemd are hell spawn: upstart is canonical, systemd is poettering
17:57.44*** join/#maemo-ssu Martix (~martix@static-84-242-103-180.net.upcbroadband.cz)
17:58.20DocScrutinizer05both 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
18:00.06DocScrutinizer05generations of linux devels invested eternities of their worktime to make linux a unix-compatible system. Poettering considers this a major *flaw* of linux
18:00.54DocScrutinizer05plain hybris
18:03.06DocScrutinizer05"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"
18:22.29*** join/#maemo-ssu amiconn (amiconn@rockbox/developer/amiconn)
18:38.29DocScrutinizer05freemangordon: I don't think the line "" dd if=/dev/hwrng of=/dev/urandom bs=$URANDOM_POOLSZ count=1 "" throwing error would cause a bootloop
18:39.52DocScrutinizer05after 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
18:42.33DocScrutinizer05anyway I got 3 lines with RNG in my syslog:
18:42.35DocScrutinizer05May 31 15:39:58 IroN900 kernel: [    2.623168] OMAP3 ROM RNG: initializing
18:42.44DocScrutinizer05during regular boot
18:43.07DocScrutinizer05and then
18:43.09DocScrutinizer05Jun 10 17:47:14 IroN900 kernel: [85239.571258] OMAP3 ROM RNG: HW init failed: 1
18:43.10DocScrutinizer05Jun 10 17:48:17 IroN900 kernel: [85302.464813] OMAP3 ROM RNG: HW init failed: 1
18:43.18DocScrutinizer05during my former tests
18:44.55DocScrutinizer05freemangordon: Pali_: could you spot the line in kernel printing that error msg?
18:47.06DocScrutinizer05o.O https://lkml.org/lkml/2013/3/28/536
18:48.20*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
18:48.43*** join/#maemo-ssu wmarone_ (~wmarone@c-67-174-151-253.hsd1.ca.comcast.net)
18:49.21DocScrutinizer05I 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"
18:57.43Pali_DocScrutinizer05: I ported that driver to 3.9 kernel
19:01.32PaliDocScrutinizer05: http://mxr.maemo.org/fremantle/source/kernel/drivers/char/hw_random/omap3-rom-drv.c#81
19:02.49Paliit 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
19:03.16Paliit looks like your omap board is broken
19:04.00PaliDocScrutinizer05: try to turn device off and on. NOLO has some code which doing something with M-Shield, so maybe it can reset it
19:04.55DocScrutinizer05my omap board broken?? duh!
19:05.33Palisecure side of omap cpu returned error
19:05.38DocScrutinizer05maybe I used a cmd that "broke2 it
19:06.12DocScrutinizer05this could've been softupd only, for all I can tell
19:07.08DocScrutinizer05well, ok. I'll give my daily phone another reboot - way too early since it has an uptime of only 10 days
19:10.53*** join/#maemo-ssu Milhouse (~Milhouse@Maemo/community/contributor/Milhouse)
19:45.07Drathirhrhr updates knoking to me ^^
19:45.20Drathirknocking*
19:55.04merlin1991DocScrutinizer05: upstart has a status check
19:55.07merlin1991service $service status
19:56.17DocScrutinizer05uhu, and who tells me about content of $status?
19:56.24DocScrutinizer05err $service
19:57.25merlin1991<PROTECTED>
19:58.12merlin1991but since the upstart on maemo os more than old its not even service ... but "status $service"
20:02.32DocScrutinizer05hmm I wonder if files like ke-recv.dpkg-new and icd2.dpkg-new in /etc/event.d do any good
20:06.54DocScrutinizer05http://privatepaste.com/efeb0ad74f
20:11.57DocScrutinizer05http://privatepaste.com/a46c5d990c
20:12.42DocScrutinizer05http://privatepaste.com/910207db60
20:24.10freemangordonPali: it could be that hwrng cannot be initialized/called more than once
20:25.38PaliDocScrutinizer05: XYZ.dpkg-new files replacing XYZ after successfull installation/upgrade
20:25.50freemangordonif it is broken this https://gitorious.org/community-ssu/upstart/blobs/master/debian/event.d/system-services/rcS-late#line223 would fail on boot
20:26.12Paliif you edited XYZ file, then apt-get will ask you if you really want to update that files
20:26.21freemangordonPali: so I'd assume we have NFC how it works
20:26.55Palifreemangordon: original nokia code was "dd if=/dev/hwrng of=/dev/urandom bs=$URANDOM_POOLSZ count=1"
20:27.06Pali(or /dev/hw_random) I do not know now
20:27.25Palione is in vanilla kernel and one in maemo patched udev
20:27.30freemangordonPali: i looked into it, there is no difference
20:27.43freemangordonit is somewhere in the backscroll
20:27.59Paliyou can try to add "|| true" so it skip hwrand error
20:28.16freemangordonPali: there is no error
20:28.18freemangordonhttps://gitorious.org/community-ssu/upstart/blobs/14e703ee87703880d80bd14b574cbbc96bfe02fe/debian/event.d/system-services/rcS-late#line133
20:28.36Paliok
20:28.42freemangordonPali: if there was error (during bootup) the device will enter reboot loop
20:28.56Paliright
20:29.06freemangordonDocScrutinizer05 got this error while doing cat /dev/hwrng
20:29.41freemangordonand I am not sure adding || true is a good idea
20:29.58freemangordonas that would mean we'll continue to boot on a faulty HW
20:35.18*** join/#maemo-ssu texed (~user@ip-94-113-121-14.net.upcbroadband.cz)
20:58.43*** join/#maemo-ssu chem|st (~chemist@svn.unix-ag.uni-kl.de)
21:01.38*** join/#maemo-ssu DaRoDi (~DaRoDi@109.88.64.137)
21:29.38DocScrutinizer05rebooting on a faulty hw for sure is no alternative X-P
21:31.49DocScrutinizer05if that HWRNG can get initialized only once, then kernel shouldn't de-initialize it after usage, *OR* should immediately close and cleanout/remove /dev/hwrng after it got used
21:32.12DocScrutinizer05+ unload the kernel module
21:35.26*** join/#maemo-ssu RoDi (~DaRoDi@109.88.64.137)
21:37.36*** join/#maemo-ssu macmaN (~chezburge@138.167.190.90.dyn.estpak.ee)
21:47.13*** join/#maemo-ssu nox- (noident@freebsd/developer/nox)
22:10.42PaliDocScrutinizer05: if some application needs random data, then it will use hw random data instead pseudo random
22:11.54Paliin rcS-late maemo setting initial state of pseudo random generator from random data provided by hw
22:12.33keriohow fast is the hwrng?
22:13.04kerioalso, *.dpkg-new in /etc/event.d will screw things up, i think
22:19.51Palikerio: it is slow, but looks like it is faster than /dev/random
22:25.36DocScrutinizer05kerio: that's what I think as well
22:25.49*** join/#maemo-ssu peterpark (543e5811@gateway/web/freenode/ip.84.62.88.17)
22:25.50DocScrutinizer05a terribly bad idea to place those files there
22:27.59Palidpkg-new, dpkg-old files are only temporary when dpkg running
22:28.21Paliafter successfull upgrade those files are moved/removed
22:28.45Paliit looks like HAM broke something...
22:29.06Paliwho created that HAM????
22:30.56kerioPali: apt-get does that too
22:31.18Paliah...
22:31.39keriothat's why /etc/event.replace.d exists i think
22:32.07kerioput the file there, copy it and remove any extra cruft in postinst
22:34.17DocScrutinizer05anyway my dpkg is NOT running
22:38.17DocScrutinizer05I think event.replace.d is for recovering from terribly fuxored setup
22:53.43peterparkis the cssu/testing release still stuck in reboot loop?
22:53.57tadziknope
22:56.55peterparkthanks for the info! Keep up the good work!
22:56.59peterparkdouble thumbs up!!
22:57.09tadzikat least it works for me :)
22:57.57peterparkI will have a try then :)
23:11.26peterparkgreat! my nokia is alive again!
23:49.36*** join/#maemo-ssu acab (~acab@80.94.231.67)
23:49.57acabhello, i have last cssu, but i havent rtcom-messaging-ui-portait conversations in portrait

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