Friday, 2013-04-05

--- Day changed Fri Apr 05 2013
Jonnijuiceme: ping00:08
@juicemejonni, pong00:08
Jonnifinally had time to test your new release :)00:08
@juicemehow did it work for you?00:09
@juicemebeen looking at some problems I found in my init :(00:09
Jonniubiboot boots to Sailfish OS quite nicely without any problems :)00:09
@juicemey00:09
@juicemeHave trouble with Harmattan?00:09
Jonnisomehow didnt boot on harmattan on 1st attempt, but I might have messed up with paths00:10
Jonnihave to look into that one00:10
@juicemeso did you replace the nemo boot with SF boot?00:10
Jonniyep00:10
@juicemethere is still something hazy about the Harmattan bit...00:10
@juicemecoderus ran into some problems and when I repeated what he did I had same things...00:11
JonniI'll put it under serial connection in weekend if I have time.00:11
Jonnito figure out whats the problem00:11
@juicemeThat'd be nice00:11
Jonniand I'll tweak boot menu to have sailfish logoes if I have time :)00:12
@juicemeI ordered a simtray and usb/serial-ttl adapter from ebay, will do some tinkering when I get the goods00:12
@juiceme:)00:12
@juicemebtw, the serial adapter, the 2 rightmost pins are rx&tx, but where do you get GND?00:13
@juicemethat was not marked on any schematics I could find..00:13
Jonniwell its marked on that leaked schematics, there are multiple places to get the ground00:14
@juicemeI guess its the next pins, cos they are not numbered at all in the schema...00:14
@juiceme...00:33
@juicemedamned if there is not a problem with the log file saving :(00:34
@juicemeI am quite sure this problem has something to do with not umounting the system cleanly... have to look int it but now am too tired :(00:34
@juicemegnite.00:35
Jonniwell atlast I have typed the paths correctly, so most likely p2 was not mounted as /boot/Harmattan00:35
Jonnior I have missread the documentation :)00:36
Jonnibut too tired to debug today... lets see00:37
@juicemeok, now i found the problem.01:08
@juicemethere's a race condition in init!01:08
@juicemeit's touch and go if it bites you... the last log file saving operation in init umounts /mnt/2 when menu selection is still on progress.01:11
@juicemethis also explains why nemo/sailfish boots okay, as it affects only selection on /mnt/201:12
@juicemewell... Ill fix it tomorrow... (am already gone to sleep...)01:13
-!- TMavica [~TMavica@1-36-128-002.static.netvigator.com] has quit []01:49
@juicemenow compiling the new release, hopefully release soon :)07:25
thedead1440yay!07:25
@juicememorning :)07:26
thedead1440morning :)07:26
thedead1440read the backlog; good i didn't try it so fast :D07:27
@juicemeyes :)07:28
@juicemeI made a really really stupid mistake there.... see at the end of init the menu is launched in separate thread.07:28
@juiceme(it used to be run in init's context before but that caused some problems)07:29
thedead1440ah07:29
@juicemebut, when I changed that, I forgot that init still runs, to the end07:29
@juicemeand there is last logging statement there, and then the log is saved07:30
@juicemebut when the log is saved, the partition that contains the log is umounted :(07:30
thedead1440oh oh07:30
@juicemeand it's your luck whether this happens in the middle of selection, where it needs to read the kernel from the partition...07:31
@juicemetypical race condition07:31
thedead1440ah07:31
@juicemebut. I'll have 0.3.1 out soon07:31
thedead1440that's nice :D07:32
Jonninice that you found the race condition08:06
JonniI can test when you get new version out.08:07
@juicemesoon. 08:29
@juicemejust booting it now for the 1st time08:29
@juicemetesting thru the different boot options now08:32
-!- Hurrian [~Hurrian@121.54.2.104] has quit [Ping timeout: 264 seconds]08:48
@juicemeokay, now it's uploaded to swagman.09:21
@juicemeversion 0.3.1 available for download :)09:21
Jonnijuiceme: is it enough just to update cpio, or is there changes in kernel aswell?09:28
@juicemethen changes are in both cpio and kernel09:31
@juicemeactually the real correction is in the kernel, in cpio there are logging corrections09:32
@juicemetime to get some breakfast now....09:32
coderusJonni: SailfishOS on device?..09:34
@juicemecoderus, morning09:34
@juicemethanks for helping to debug the problem last night09:34
coderusjuiceme: :D09:35
@juicemeI got the root cause just when going to bed.. race conditions are ugly...09:36
Jonnicoderus: well you can guess where I work nowadays ;-)09:40
Jonnifinally got my serial cable attached... and ofcourse now it boots to harmattan just fine. so 0.3.1 seems to work09:44
coderusjuiceme: only kernel changed? cpoi same?09:47
Jonniif I run df from teminal while beeing in selection menu only the mnt/4 is mounted09:47
Jonnidf09:47
Jonniand if I dont do anything for a while seems that some watchdog or something triggers and I need to reboot09:49
coderusJonni: well, the only thing interesting for me is why no daily images for harmattan? you can reach +thousands testers09:49
coderusjuiceme: ping?09:55
coderusjuiceme: it working now. harmattan booting :)09:55
Jonnijuiceme: you might want to do somekind of anti watchdog thingie, as bootmenu dies after a while, but most users its not a broblem since you choose the kernel to boot before the timeout10:03
-!- TMavica [~TMavica@m121-202-132-185.smartone.com] has joined #ubiboot10:13
@juicemecoderus, the bug correction is in the kernel, but you should update the cpio as well, it's got better logging now.10:17
@juicemeJonni, at what point do you mean /mnt/2 is unmounted? during the menu?10:18
@juicemewhen the menu is active it sure should be mounted (with the newest kernel, that is)10:18
@juicemeJonni, how long does it take for it to timeout boot when in menu? I have to confess maybe the longest I have let the menu on screen is maybe minute or so...10:20
TMavicahi10:28
@juicemehi10:38
Jonniah I only tried with latest cpio.. guess I need to flash the kernel also11:15
Jonniah yes, both dirs are mounted with latest kernel11:21
Jonnijuiceme: and timeout happens around 20-30 seconds or so11:21
Jonniwell anyways its just a small issue, booting to harmattan and other OSes works great.11:26
@juicemeJonni, thanks :)11:33
@juicemeI was a bit worried at first :)11:33
@juicemethe correction to the mounting/umounting race is indeed in the kernel, zImage_2.6.32.54-ubiboot-02_05041311:34
TMavicado i need try again new version?11:37
@juicemeTMavica, I am afraid that still does not work with rev.1603, if you had previously the "connect charger problem" that most propably is still there :(11:38
TMavicaok11:44
coderusjuiceme: for ubiboot-02 mtd location, conf file should be placed to /boot folder?11:46
@juicemeif you use mmcblk0p1, then yes; the correct location is MyDocs/boot/11:47
@juicemeif you use mtd4 or mtd5, the correct location is /11:48
@juicemeand the ubiboot.conf tells what is the cpio filename, and it must be in the same directory as the conf file.11:49
coderusokay, /11:49
@juicemeWhy I did it like this, it might be confusing but there is a reason;11:50
@juicemesince you might already have old installation of ubiboot-01 on your mtd partition, and that already has /boot/ directory there.11:51
@juicemeso in order not to confuse between old/new ubiboot revisions, decided to use / as the place to put the conf and the cpio.11:52
TMavicajuiceme here?13:08
TMavicai hv mtd5 ubiboot install before, but as u know, it cant bootup for me, then uninstalled. do i need format the mtd5 also? seem the 2nd version will search mtd4 5 first , then.MyDocs/boot/13:11
coderusTMavica: ubiboot-02 not interfere with ubiboot-0113:21
TMavicaok13:24
-!- TMavica [~TMavica@m121-202-132-185.smartone.com] has quit [Remote host closed the connection]13:37
Jonnijuiceme: if I want custom animations do I need to put them inside the cpio?13:39
-!- TMavica [~TMavica@m121-202-251-49.smartone.com] has joined #ubiboot13:42
@juicemeTMavica, no need to do anything to mtd partitions, just as coderus said. it's safest not to erase or format mtd, just leave them as is.14:03
@juicemeJonni, custom animations go to /boot/menu/ animations inside the cpio. in the source directory on swagman you can find the tools and scripts to create animations.14:05
Jonnijuiceme: just made me a cpio and it fails to load it.... luckily I had serial terminal otherwise I would have been screwed14:23
Jonnialways have 20 seconds time to cp old backup cpio back in place before watchdog reboots14:23
Jonniso how did you create the cpio?  I did find . -print | cpio -ov14:24
Jonni(or first I extracted the current one with cpio -idv < filename) and copied menu dir over it.14:25
Jonnimight be that I didnt sync before rebooting too quickly14:28
Jonninaah, sama problem even on sync, it just gives boot menu script not found!.....14:29
@juicemejonni, I just unpack the cpio to a dir with "cpio -id --no-absolute-filenames < ../ubiboot-02.menus.cpio" then edit the things needed and repack it with "find . | cpio -H newc -o > ../ubiboot-02.menus.cpio"14:32
@juicemeFor convenience I chown root.root the files in the cpio, but ti should work whoever the owner is as it's executed as root...14:33
@juicemeJonni, did you rename the cpio or anything? the name of the archive to extract is defined in the ubiboot.conf.14:35
Jonniexactly the same name etc... but I didnt do chown -R root. *14:36
JonniI'll test that next14:36
@juicemeI'll have to see about the timeout thingy.. does anything get written in logs when it boots?14:36
@juicemetry extracting the cpio you made and diff the content to the original...14:37
Jonninope, nothing gets written, and I can just disable watchdogs with flasher if it bothers me too much14:37
@juicemeactually I think it's just the mnormal watchdog now that I think of it..14:37
@juicemeI just remember that I have in the init the doggy commented out:14:38
@juiceme# Kick the watch dog14:38
@juiceme#exec 3>/dev/$WD_NAME14:38
@juiceme#echo "30" >&314:38
@juicemecan't remember though why I did that :D14:39
Jonnithat might explain the watchdog problems14:39
@juicemeshould propably just re-enable that and test it thoroughly in the next bugfix release.14:40
@juicemehowever 20s is fairly long time, most people do not notice it...14:40
Jonni20s is short time in emergency boot when you telnet in to fix stuff :)14:41
Jonnihad to manually mount the p1 partition and copy the fixed cpio in all under 20 seconds :)14:42
Jonniblaah Im still failing even when using your commands14:43
JonniBoot OS/kernel selection failed! is the error message on screen14:44
@juicemeodd.. did you compare the results14:44
@juicemeand what kind of modification did you do?14:44
@juicemebtw, when it fails with "Boot OS/kernel selection failed" it should also print out the code kexec_load() failed with, what does it show?14:46
Jonniah now I know,  select_os_animated.sh differs, seems that animatrics create_animations create older version of scritps14:46
Jonniand when I copied the menu dir it overwritten the scripts with old ones14:47
@juicemeah true, the scripts are for ubiboot-01...14:49
@juicemeI should update them also but anyway, the scripts are pretty self-explanatory :)14:51
Jonnicopied select_os script back in place and now it works, nice ubiboot with animated sailfish logo :)14:55
@juicemewonderful :p Care to share a video?15:09
Jonniheh lets see, I have to ask our PR guys first :), but it might appear on blog some day :)15:15
JonniI added anti-watchdogs to cpio and now it doesnt timeout.16:22
@juicemeJonni, do ask for permission and make a high quality video :)17:55
@juicemeIt would be good advertisment for ubiboot also :)17:55
-!- TMavica [~TMavica@m121-202-251-49.smartone.com] has quit [Read error: Connection reset by peer]18:03
-!- TMavica [~TMavica@1-36-128-002.static.netvigator.com] has joined #ubiboot18:23
-!- coderus [~coderus@94.181.21.235] has quit [Remote host closed the connection]18:25
-!- coderus [~coderus@94.181.21.235] has joined #ubiboot18:27
-!- coderus [~coderus@94.181.21.235] has quit [Remote host closed the connection]18:50
-!- coderus [~coderus@94.181.21.235] has joined #ubiboot18:52
-!- TMavica [~TMavica@1-36-128-002.static.netvigator.com] has quit []19:51
coderusjuiceme: ping20:30
coderusApr  5 11:07:28 (none) user.notice root: Mounting /mnt/4^M20:30
coderus...20:30
coderusApr  5 11:12:22 (none) user.notice 0: Copied archive ubiboot-02.menus.cpio^M from mmcblk0p1/boot20:30
coderusand error20:30
coderus "Boot menu script not found!Please run a maintanance boot"20:30
coderusas i understand problem in .conf?20:35

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