--- Day changed Fri Apr 05 2013 | ||
Jonni | juiceme: ping | 00:08 |
---|---|---|
@juiceme | jonni, pong | 00:08 |
Jonni | finally had time to test your new release :) | 00:08 |
@juiceme | how did it work for you? | 00:09 |
@juiceme | been looking at some problems I found in my init :( | 00:09 |
Jonni | ubiboot boots to Sailfish OS quite nicely without any problems :) | 00:09 |
@juiceme | y | 00:09 |
@juiceme | Have trouble with Harmattan? | 00:09 |
Jonni | somehow didnt boot on harmattan on 1st attempt, but I might have messed up with paths | 00:10 |
Jonni | have to look into that one | 00:10 |
@juiceme | so did you replace the nemo boot with SF boot? | 00:10 |
Jonni | yep | 00:10 |
@juiceme | there is still something hazy about the Harmattan bit... | 00:10 |
@juiceme | coderus ran into some problems and when I repeated what he did I had same things... | 00:11 |
Jonni | I'll put it under serial connection in weekend if I have time. | 00:11 |
Jonni | to figure out whats the problem | 00:11 |
@juiceme | That'd be nice | 00:11 |
Jonni | and I'll tweak boot menu to have sailfish logoes if I have time :) | 00:12 |
@juiceme | I ordered a simtray and usb/serial-ttl adapter from ebay, will do some tinkering when I get the goods | 00:12 |
@juiceme | :) | 00:12 |
@juiceme | btw, the serial adapter, the 2 rightmost pins are rx&tx, but where do you get GND? | 00:13 |
@juiceme | that was not marked on any schematics I could find.. | 00:13 |
Jonni | well its marked on that leaked schematics, there are multiple places to get the ground | 00:14 |
@juiceme | I guess its the next pins, cos they are not numbered at all in the schema... | 00:14 |
@juiceme | ... | 00:33 |
@juiceme | damned if there is not a problem with the log file saving :( | 00:34 |
@juiceme | I 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 |
@juiceme | gnite. | 00:35 |
Jonni | well atlast I have typed the paths correctly, so most likely p2 was not mounted as /boot/Harmattan | 00:35 |
Jonni | or I have missread the documentation :) | 00:36 |
Jonni | but too tired to debug today... lets see | 00:37 |
@juiceme | ok, now i found the problem. | 01:08 |
@juiceme | there's a race condition in init! | 01:08 |
@juiceme | it'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 |
@juiceme | this also explains why nemo/sailfish boots okay, as it affects only selection on /mnt/2 | 01:12 |
@juiceme | well... Ill fix it tomorrow... (am already gone to sleep...) | 01:13 |
-!- TMavica [~TMavica@1-36-128-002.static.netvigator.com] has quit [] | 01:49 | |
@juiceme | now compiling the new release, hopefully release soon :) | 07:25 |
thedead1440 | yay! | 07:25 |
@juiceme | morning :) | 07:26 |
thedead1440 | morning :) | 07:26 |
thedead1440 | read the backlog; good i didn't try it so fast :D | 07:27 |
@juiceme | yes :) | 07:28 |
@juiceme | I 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 |
thedead1440 | ah | 07:29 |
@juiceme | but, when I changed that, I forgot that init still runs, to the end | 07:29 |
@juiceme | and there is last logging statement there, and then the log is saved | 07:30 |
@juiceme | but when the log is saved, the partition that contains the log is umounted :( | 07:30 |
thedead1440 | oh oh | 07:30 |
@juiceme | and it's your luck whether this happens in the middle of selection, where it needs to read the kernel from the partition... | 07:31 |
@juiceme | typical race condition | 07:31 |
thedead1440 | ah | 07:31 |
@juiceme | but. I'll have 0.3.1 out soon | 07:31 |
thedead1440 | that's nice :D | 07:32 |
Jonni | nice that you found the race condition | 08:06 |
Jonni | I can test when you get new version out. | 08:07 |
@juiceme | soon. | 08:29 |
@juiceme | just booting it now for the 1st time | 08:29 |
@juiceme | testing thru the different boot options now | 08:32 |
-!- Hurrian [~Hurrian@121.54.2.104] has quit [Ping timeout: 264 seconds] | 08:48 | |
@juiceme | okay, now it's uploaded to swagman. | 09:21 |
@juiceme | version 0.3.1 available for download :) | 09:21 |
Jonni | juiceme: is it enough just to update cpio, or is there changes in kernel aswell? | 09:28 |
@juiceme | then changes are in both cpio and kernel | 09:31 |
@juiceme | actually the real correction is in the kernel, in cpio there are logging corrections | 09:32 |
@juiceme | time to get some breakfast now.... | 09:32 |
coderus | Jonni: SailfishOS on device?.. | 09:34 |
@juiceme | coderus, morning | 09:34 |
@juiceme | thanks for helping to debug the problem last night | 09:34 |
coderus | juiceme: :D | 09:35 |
@juiceme | I got the root cause just when going to bed.. race conditions are ugly... | 09:36 |
Jonni | coderus: well you can guess where I work nowadays ;-) | 09:40 |
Jonni | finally got my serial cable attached... and ofcourse now it boots to harmattan just fine. so 0.3.1 seems to work | 09:44 |
coderus | juiceme: only kernel changed? cpoi same? | 09:47 |
Jonni | if I run df from teminal while beeing in selection menu only the mnt/4 is mounted | 09:47 |
Jonni | df | 09:47 |
Jonni | and if I dont do anything for a while seems that some watchdog or something triggers and I need to reboot | 09:49 |
coderus | Jonni: well, the only thing interesting for me is why no daily images for harmattan? you can reach +thousands testers | 09:49 |
coderus | juiceme: ping? | 09:55 |
coderus | juiceme: it working now. harmattan booting :) | 09:55 |
Jonni | juiceme: 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 timeout | 10:03 |
-!- TMavica [~TMavica@m121-202-132-185.smartone.com] has joined #ubiboot | 10:13 | |
@juiceme | coderus, the bug correction is in the kernel, but you should update the cpio as well, it's got better logging now. | 10:17 |
@juiceme | Jonni, at what point do you mean /mnt/2 is unmounted? during the menu? | 10:18 |
@juiceme | when the menu is active it sure should be mounted (with the newest kernel, that is) | 10:18 |
@juiceme | Jonni, 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 |
TMavica | hi | 10:28 |
@juiceme | hi | 10:38 |
Jonni | ah I only tried with latest cpio.. guess I need to flash the kernel also | 11:15 |
Jonni | ah yes, both dirs are mounted with latest kernel | 11:21 |
Jonni | juiceme: and timeout happens around 20-30 seconds or so | 11:21 |
Jonni | well anyways its just a small issue, booting to harmattan and other OSes works great. | 11:26 |
@juiceme | Jonni, thanks :) | 11:33 |
@juiceme | I was a bit worried at first :) | 11:33 |
@juiceme | the correction to the mounting/umounting race is indeed in the kernel, zImage_2.6.32.54-ubiboot-02_050413 | 11:34 |
TMavica | do i need try again new version? | 11:37 |
@juiceme | TMavica, 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 |
TMavica | ok | 11:44 |
coderus | juiceme: for ubiboot-02 mtd location, conf file should be placed to /boot folder? | 11:46 |
@juiceme | if you use mmcblk0p1, then yes; the correct location is MyDocs/boot/ | 11:47 |
@juiceme | if you use mtd4 or mtd5, the correct location is / | 11:48 |
@juiceme | and the ubiboot.conf tells what is the cpio filename, and it must be in the same directory as the conf file. | 11:49 |
coderus | okay, / | 11:49 |
@juiceme | Why I did it like this, it might be confusing but there is a reason; | 11:50 |
@juiceme | since you might already have old installation of ubiboot-01 on your mtd partition, and that already has /boot/ directory there. | 11:51 |
@juiceme | so 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 |
TMavica | juiceme here? | 13:08 |
TMavica | i 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 |
coderus | TMavica: ubiboot-02 not interfere with ubiboot-01 | 13:21 |
TMavica | ok | 13:24 |
-!- TMavica [~TMavica@m121-202-132-185.smartone.com] has quit [Remote host closed the connection] | 13:37 | |
Jonni | juiceme: 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 #ubiboot | 13:42 | |
@juiceme | TMavica, 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 |
@juiceme | Jonni, 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 |
Jonni | juiceme: just made me a cpio and it fails to load it.... luckily I had serial terminal otherwise I would have been screwed | 14:23 |
Jonni | always have 20 seconds time to cp old backup cpio back in place before watchdog reboots | 14:23 |
Jonni | so how did you create the cpio? I did find . -print | cpio -ov | 14:24 |
Jonni | (or first I extracted the current one with cpio -idv < filename) and copied menu dir over it. | 14:25 |
Jonni | might be that I didnt sync before rebooting too quickly | 14:28 |
Jonni | naah, sama problem even on sync, it just gives boot menu script not found!..... | 14:29 |
@juiceme | jonni, 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 |
@juiceme | For 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 |
@juiceme | Jonni, did you rename the cpio or anything? the name of the archive to extract is defined in the ubiboot.conf. | 14:35 |
Jonni | exactly the same name etc... but I didnt do chown -R root. * | 14:36 |
Jonni | I'll test that next | 14:36 |
@juiceme | I'll have to see about the timeout thingy.. does anything get written in logs when it boots? | 14:36 |
@juiceme | try extracting the cpio you made and diff the content to the original... | 14:37 |
Jonni | nope, nothing gets written, and I can just disable watchdogs with flasher if it bothers me too much | 14:37 |
@juiceme | actually I think it's just the mnormal watchdog now that I think of it.. | 14:37 |
@juiceme | I just remember that I have in the init the doggy commented out: | 14:38 |
@juiceme | # Kick the watch dog | 14:38 |
@juiceme | #exec 3>/dev/$WD_NAME | 14:38 |
@juiceme | #echo "30" >&3 | 14:38 |
@juiceme | can't remember though why I did that :D | 14:39 |
Jonni | that might explain the watchdog problems | 14:39 |
@juiceme | should propably just re-enable that and test it thoroughly in the next bugfix release. | 14:40 |
@juiceme | however 20s is fairly long time, most people do not notice it... | 14:40 |
Jonni | 20s is short time in emergency boot when you telnet in to fix stuff :) | 14:41 |
Jonni | had to manually mount the p1 partition and copy the fixed cpio in all under 20 seconds :) | 14:42 |
Jonni | blaah Im still failing even when using your commands | 14:43 |
Jonni | Boot OS/kernel selection failed! is the error message on screen | 14:44 |
@juiceme | odd.. did you compare the results | 14:44 |
@juiceme | and what kind of modification did you do? | 14:44 |
@juiceme | btw, 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 |
Jonni | ah now I know, select_os_animated.sh differs, seems that animatrics create_animations create older version of scritps | 14:46 |
Jonni | and when I copied the menu dir it overwritten the scripts with old ones | 14:47 |
@juiceme | ah true, the scripts are for ubiboot-01... | 14:49 |
@juiceme | I should update them also but anyway, the scripts are pretty self-explanatory :) | 14:51 |
Jonni | copied select_os script back in place and now it works, nice ubiboot with animated sailfish logo :) | 14:55 |
@juiceme | wonderful :p Care to share a video? | 15:09 |
Jonni | heh lets see, I have to ask our PR guys first :), but it might appear on blog some day :) | 15:15 |
Jonni | I added anti-watchdogs to cpio and now it doesnt timeout. | 16:22 |
@juiceme | Jonni, do ask for permission and make a high quality video :) | 17:55 |
@juiceme | It 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 #ubiboot | 18:23 | |
-!- coderus [~coderus@94.181.21.235] has quit [Remote host closed the connection] | 18:25 | |
-!- coderus [~coderus@94.181.21.235] has joined #ubiboot | 18:27 | |
-!- coderus [~coderus@94.181.21.235] has quit [Remote host closed the connection] | 18:50 | |
-!- coderus [~coderus@94.181.21.235] has joined #ubiboot | 18:52 | |
-!- TMavica [~TMavica@1-36-128-002.static.netvigator.com] has quit [] | 19:51 | |
coderus | juiceme: ping | 20:30 |
coderus | Apr 5 11:07:28 (none) user.notice root: Mounting /mnt/4^M | 20:30 |
coderus | ... | 20:30 |
coderus | Apr 5 11:12:22 (none) user.notice 0: Copied archive ubiboot-02.menus.cpio^M from mmcblk0p1/boot | 20:30 |
coderus | and error | 20:30 |
coderus | "Boot menu script not found!Please run a maintanance boot" | 20:30 |
coderus | as i understand problem in .conf? | 20:35 |
Generated by irclog2html.py 2.12.1 by Marius Gedminas - find it at mg.pov.lt!