| [00:01] | * JoeyBorn goes to great pain to make no comment regarding vi. | |
| [00:01] | <sourcerror> | after you change the eth0 to eth1. Then you can write the file using... :wq (this will "write" and "quit" the editor) |
| [00:01] | <JoeyBorn> | ok, well I think I have it saved |
| [00:01] | <sourcerror> | cool. |
| [00:01] | <sourcerror> | now you can reboot and you should have it. |
| [00:01] | <crweb> | tom@tom-laptop:~$ minicom /dev/ttyUSB0 |
| [00:01] | <crweb> | minicom: cannot open /dev/ttyUSB0: Protocol error |
| [00:02] | <crweb> | Can anyone give me any clues as to why that happens? |
| [00:02] | <crweb> | it works very randomly. |
| [00:02] | <sourcerror> | crweb: that's weird. what did you change :) |
| [00:02] | <crweb> | well.. i changed to my laptop |
| [00:02] | <JoeyBorn> | hi crweb, I'm working on the vm stuff |
| [00:02] | <crweb> | has no serial ports, only the USB adaptor, which did work correctly on my desktop |
| [00:03] | <crweb> | JoeyBorn: cool, i am too |
| [00:03] | <sourcerror> | well, I haven't seen that error. |
| [00:03] | <crweb> | JoeyBorn: getting ready to release a qt4 dev pack |
| [00:03] | <sourcerror> | crweb: Joe ran into that eth0 vs. eth1 problem. |
| [00:03] | <crweb> | not much i can do about it. |
| [00:03] | <JoeyBorn> | crweb, yes, so I'm documenting as I go, and I have two questions |
| [00:03] | <crweb> | stupid vmware |
| [00:04] | <JoeyBorn> | 1. what should I say about that eth0 issue? just change it if you have trouble? |
| [00:04] | <sourcerror> | crweb: does it have something to do with first running the first VM and then doing the second VM you released? |
| [00:04] | <JoeyBorn> | that's what I did |
| [00:04] | <JoeyBorn> | the first vmware (the original) worked fine. |
| [00:04] | <JoeyBorn> | I could ping the OSD with no trouble. |
| [00:04] | <crweb> | the issue is that vmware can't decide what network device to link to |
| [00:04] | <sourcerror> | yep. same for me. |
| [00:05] | <crweb> | JoeyBorn: the next version I'll have a "sort of" fix |
| [00:05] | <sourcerror> | crweb: I actually just have the lines repeated for both eth0 and eth1, but I didn't know if that was recommended. |
| [00:06] | <crweb> | JoeyBorn: i'll config eth1 and eth0 automatically, but if vmware keeps this up one day you might end up with eth15 |
| [00:06] | <crweb> | i imagine its just a vmware bug and will probably be fixed soon |
| [00:06] | <sourcerror> | JoeyBorn: is it OK now, after reboot? |
| [00:07] | <crweb> | some how host networking is being put on eth0 and bridged on eht1 |
| [00:07] | <JoeyBorn> | sourcerror, yep, I can ping the OSD, FWIW |
| [00:10] | <sourcerror> | crweb: is there anything other than VI installed. I feel bad... I had Joe learn vi commands to fix it :D |
| [00:10] | <crweb> | nano |
| [00:10] | <crweb> | pico |
| [00:10] | <crweb> | its standard ubuntu |
| [00:10] | <sourcerror> | I don't touch that stuff so... |
| [00:10] | <sourcerror> | oh well. |
| [00:11] | <crweb> | nano is very nice |
| [00:11] | <sourcerror> | ah. OK. |
| [00:13] | <sourcerror> | OK. I remember pine. It's pine editor 2.0 |
| [00:16] | <JoeyBorn> | second question, is there any harm in running a diff version of the firmware on flash and nfs boot as long as the uboot is the same? |
| [00:19] | <crweb> | JoeyBorn: whats on nfs booting doesn't matter |
| [00:20] | <crweb> | JoeyBorn: no harm can come from the nfs booting |
| [00:20] | <crweb> | JoeyBorn: if you're to far out of sync, it might not boot, or work correctly, but simply flashing with latest firmware will fix |
| [00:20] | <sourcerror> | I was waiting for crweb to reply, but I don't see any problem. eventually there might be a problem if things get stored in /mnt/OSD and apps across firmware versions care about the difference. |
| [00:21] | <sourcerror> | ...not today. |
| [00:26] | <JoeyBorn> | 77 is available if anyone's interested |
| [00:26] | <JoeyBorn> | open.neurostechnology.com |
| [00:32] | <sourcerror-m> | damn something happened to my xwindows (while using openoffice writer!)... rebooooot neeeeeeded. argh. |
| [00:35] | <sourcerror-m> | exit |
| [01:02] | <crweb> | JoeyBorn: feel free to email me anything you need. |
| [01:03] | <crweb> | night |
| [02:35] | <sourcerror> | is there a hook in the firmware now to run a custom script not part of firmware at boot (e.g. from /mnt/OSD or removable media)? |
| [02:38] | <sourcerror> | hmm... I think I found the user hook: /tmp/media/OSD/rc.user |
| [02:39] | <nerochiaro> | sourcerror: i think that's it, however i'm not sure it's actually called. it used not to work back some versions ago |
| [02:39] | <sourcerror> | nerochiaro: yea. now I wonder if /tmp/media/OSD/rc.user is guaranteed to run after media is mounted. |
| [02:40] | <nerochiaro> | it should run during boot, but you've got to check, there was some fuctup in the script rc script that launched it (mainsetup, i think) |
| [02:41] | <sourcerror> | nerochiaro: I just debugged a very annoying memory corruption in my code. turned out I did a strcat into a pointer that was not initialized. needed a strdup. ... |
| [02:42] | <sourcerror> | eventually I had to make my code compile on the host by doing lots of conditional code so that I would be able to run valgrind on it. |
| [02:42] | <sourcerror> | what do people normally do for debugging? |
| [02:42] | <sourcerror> | ...embedded |
| [02:43] | <nerochiaro> | that's the C "we let you shoot your feet" philosophy ;) |
| [02:43] | <nerochiaro> | well, you can use gdbserver |
| [02:43] | <nerochiaro> | i wrote a page about it in wiki |
| [02:43] | <sourcerror> | ok. never tried it. I think I would not have found it for a long time without valgrind |
| [02:44] | <nerochiaro> | sourcerror: these bugs can be tricky, but i'm not very fond of valgrind. maybe i'm not just able to use it properly |
| [02:44] | <sourcerror> | now I'm convinced I have to make sure I can always run in some form on the host |
| [02:45] | <sourcerror> | I'm no expert at valgrind. it just has always pointed to my first sin of using uninitialized memory which usually is the culprit. |
| [02:46] | <nerochiaro> | sourcerror: often that is also spotted as early as gcc (at least i've been sometimes warned of using uninitialized pointers) |
| [02:46] | <nerochiaro> | plus just being careful ;) |
| [02:47] | <sourcerror> | yea, the trouble here was that I first malloc'd the space for the structure that I was writing into so compiler wouldn't help me. |
| [02:48] | <sourcerror> | I could have saved myself If I wrapped malloc with a debug mode that zeros the malloc'd memory. that's probably what I'll do now. |
| [02:49] | <nerochiaro> | good luck :) |
| [02:51] | <sourcerror> | I"m working on my plugin API as for an alternative 'osdmain'. my approach is to split osdmain into a base and top. the base provides an api to load plug-ins which register themselves into the top menu structures. |
| [02:52] | <nerochiaro> | at any point or just an "applications" menu ? |
| [02:53] | <sourcerror> | I'm working towards any point. each "screen" will have a symbolic name and you can register into "list screens". |
| [02:53] | <sourcerror> | for example the first menu will be something like "main" screen and you can register your entry into the list. |
| [02:54] | <sourcerror> | the idea is that much of osdmain functionality can even be a plugin |
| [02:55] | <sourcerror> | so far there are these types of screens... LIST, CONFIG, CUSTOM. list is the regular simple list where you either invoke an action or push another screen. I'm working on a meta screen format which can handle all kinds of configs so that we don't have to... |
| [02:56] | <sourcerror> | have all these custom config screens you see in the current osdmain. |
| [02:56] | <sourcerror> | then custom can be anything similar to what osdmain does for all screens now. |
| [02:59] | <nerochiaro> | config screen are a good idea, especially since the current ones are a mess |
| [03:00] | <nerochiaro> | just be sure to check that some have extra bits of checks or do stuff on the data before saving it, so be sure to allow that frexibility |
| [03:00] | <sourcerror> | yea. the idea is just create a structure of data types and pointers to where you want the data to go and the special config screen draws it, manages it and writes the data. |
| [03:01] | <nerochiaro> | although it's easy to go overboard and overengineer this stuff, so beware |
| [03:02] | <sourcerror> | yep. the config data types is an enum and the structure is a union so I'm starting with a few types and we can add more. |
| [03:02] | * TankC is away: Sleep | |
| [03:03] | <sourcerror> | well my next task is to implement one config screen, one plugin, and the list screen type so I can have something to show before moving on. |
| [03:03] | <sourcerror> | to more features. |
| [03:04] | <nerochiaro> | sourcerror: seems good stuff. just be sure to make it as little cooler-specific as you can. given all the recent talk about cooler we might end up replacing it after all sometimes down the road |
| [03:05] | <sourcerror> | I still have not resolved the i18n stuff but I now have copied the API exactly for a few functions and can read a *.po file at runtime (not the .mo binary format) |
| [03:06] | <nerochiaro> | hmm, maybe put the stuff you use to test the .mo up somewhere so someone else can try to figure it out |
| [03:06] | <nerochiaro> | if you can get hang of a server admin, you can ask for a hacker/sourcerror svn repo, so you can stash your code in there |
| [03:06] | <sourcerror> | yes. I haven't given up on it. |
| [03:07] | <sourcerror> | I was wondering about svn. unfortunately, I'm old school CVS and haven't learned svn. |
| [03:08] | <nerochiaro> | there's a guide on the svn tutorial for people coming from cvs. it's really really simple. at least for basic add, commit, update stuff it's pretty similar to cvs |
| [03:09] | <nerochiaro> | a couple hours at most and you get the hang of it |
| [03:10] | <sourcerror> | by the way, I think I have a good rewrite of the watchdog kicker code and I wrote some shutdown hook code so that parts of the app just register a shutdown hook. I think the current osdmain way of handling shtudown was flawed. |
| [03:11] | <nerochiaro> | what was wrong with current watchdog code (except the fact it's horribly annoying) ? |
| [03:12] | <sourcerror> | ...my shutdown hook code catches the signals and calls any registered shutdown hook. so for example, the watchdog kicker registers itself and osdmain registers a hook to disconnect from nms |
| [03:12] | <sourcerror> | so anyone that needs action at shutdown registers themselves and osdmain doesn't know anything about it as it should only care about what it is doing. |
| [03:13] | <sourcerror> | I don't think it was actually thread safe. I think you could actually exit before the watchdog kicker wrote the special 'V' to appease the watchdog |
| [03:13] | <nerochiaro> | oh, that is a good idea. making stuff more modular is always a good idea. but i thought there was some real problem, in the sense of bug, that's why i asked |
| [03:14] | <sourcerror> | yea. I should look at it again, now I don't remember the corner case that I thought of. |
| [03:14] | <sourcerror> | ...I just have my rewrite of it now :) |
| [03:15] | <nerochiaro> | well, when you have it, be sure to post a patch to the ML. it's a good thing, and we can try to make sure someone at neuros reviews and applies it |
| [03:16] | <sourcerror> | yea, the issue is now that the watchdog kicker calls into to register a shutdown hook if it is successful at starting so they have to accept the idea of a modular shutdown hook to take my patch too :) |
| [03:17] | <nerochiaro> | it's ok. unless it adds tons of code and is hard to maintain it should not be a problem to accept that, i think |
| [03:19] | <sourcerror> | it is not tons of code just 2 'pages' each. oh yea, one other thing... I wrote logging code too because the debug printouts they use were annoying. it has mutliple levels similar to log4j but very simplified. |
| [03:19] | <sourcerror> | ...also just 1 page of code. |
| [03:20] | <nerochiaro> | oh, good idea, even though many of the prints are from nano-x it seems |
| [03:21] | <sourcerror> | I'll do a pastebin on several of the files... brb |
| [03:25] | <nerochiaro> | sorry, be back in a while |
| [03:26] | <sourcerror> | here is logging: pastebin.ca |
| [03:31] | <sourcerror> | here is shutdown hooks: pastebin.ca |
| [03:36] | <sourcerror> | here is watchdog (kickdog) rewrite: pastebin.ca |
| [03:40] | <sourcerror> | nerochiaro: no problem. I have to go to sleep myself. if you get a chance to look at it let me know if you see any problems or I'm heading off course. |
| [03:46] | <sourcerror> | nerochiaro: ah, now I think I remember what was wrong with the kickdog code. because of the extra thread created by kickdog this interacts with the shutdown hook as written for current osdmain and you end up calling it twice from both threads which caused a race condition. |
| [03:48] | <sourcerror> | the race condition might not have mattered but in any case I didn't like hte idea that it was so messy. the code I wrote keeps track of its thread ID so that it only invokes the shutdown on a "primary" thread that owns shutting down. |
| [03:49] | <sourcerror> | also the kickdog thread I believe should have used mutexes so I added mutex around the critical section where it shares the file number. |
| [04:21] | <nerochiaro> | sourcerror: i have not looked at your code, but i recall the shutdown routines get called more than one time in current osmain. no errors, but yeah, not pretty either |
| [04:21] | <nerochiaro> | turran: were you looking for me ? |
| [04:50] | <turran> | yep =) |
| [04:52] | <turran> | the thing is that i need two things, build a web server (cross compile it) and install it. |
| [04:52] | <turran> | an the second thing build an application to record from a webcam |
| [04:52] | <turran> | at different frame rates, etc |
| [04:53] | <nerochiaro> | ok, the second thing can be more complicated, the first one shouldn't be hard. which web server do you have in mind ? |
| [04:54] | <turran> | anyone, (small of course), just need static web pages. |
| [04:54] | <turran> | so to crosscompile i need the neuros-osd toolchain |
| [04:54] | <nerochiaro> | turran: we already have a web server that works on the osd, it's written in lua so not even need to compile anything. to serve static pages should be perfectly fine |
| [04:54] | <nerochiaro> | brb |
| [04:55] | <turran> | ok :) |
| [04:57] | <nerochiaro> | turran: so let's say the web server is ok ? |
| [04:57] | <nerochiaro> | as for the webcam, i suppose it's an USB webcam ? |
| [04:57] | <turran> | yep, ok =) |
| [04:57] | <turran> | wait wait :) |
| [04:58] | <nerochiaro> | yes ? |
| [04:58] | <turran> | how do i upload files? i can do it over nfs, with a compact flash and through the ui, etc |
| [04:59] | <nerochiaro> | which files ? the web pages that the server should serve ? |
| [04:59] | <turran> | yes, for example, or my application, etc. |
| [04:59] | <turran> | but i can't connect to the telenet/nfs server, in fact when booting, the osd doesnt sets a correct ip |
| [04:59] | <turran> | 192.168.0.100 with gw 192.168.1.1, telnet/nfs server 192.168.0.64 |
| [05:00] | <turran> | or something like this |
| [05:00] | <nerochiaro> | well, the easiest way is to boot off of the flash and then have your apps on a media card or usb disk |
| [05:00] | <nerochiaro> | but if you want to fix tftp/nfs, let's see |
| [05:00] | <turran> | ok, so still use the ui (osdmain)? |
| [05:00] | <nerochiaro> | you need to stop uboot and setup some env variables |
| [05:01] | <turran> | indeed |
| [05:01] | <turran> | when doping a printenv i saw them |
| [05:01] | <turran> | doping/doing |
| [05:01] | <turran> | :) |
| [05:01] | <nerochiaro> | it shouldn't be hard to go with nts/tftp if you want |
| [05:02] | <turran> | now, which values should the env variables should have? i mean, there are env variables like ip= and ntfs_server= , etc |
| [05:02] | <turran> | what variables are useful for the servers? ip configuration? |
| [05:04] | <nerochiaro> | the ones that matter for you are serverip, nfs_serverip, rootfs_nfs_loc and kernel_loc, i think |
| [05:04] | <turran> | ok, ill try to change them |
| [05:04] | <turran> | :) |
| [05:04] | <nerochiaro> | first is the ip of your PC, second is the same as first, and the others should be the path to the nfs shared rootfs, and kernel_loc is the path to get the kernel via tftp |
| [05:05] | <nerochiaro> | ok, let's say you get these right, or you choose to boot via flash and put your apps on a media card |
| [05:05] | <turran> | ok |
| [05:06] | <turran> | what about running my app? the osdmain enables a watchdog is it possible to stop it without rebooting? stopping the watchdog? |
| [05:06] | <nerochiaro> | you can setup the osd to never even start osdmain |
| [05:06] | <turran> | perfect =) |
| [05:07] | <turran> | how? |
| [05:07] | <nerochiaro> | 1 sec |
| [05:07] | <turran> | ok =) |
| [05:09] | <nerochiaro> | /etc/init.d/rcS, the last line in that file is the runlevel. 5 will start osdmain, 3 will not |
| [05:09] | <nerochiaro> | you need to boot via nfs to be able to change that, though (in the future i think it will also be made changeable without requiring nfs mount) |
| [05:10] | <turran> | ok, great |
| [05:10] | <turran> | now about the application itself |
| [05:11] | <nerochiaro> | or you can just let osdmain start and then shut it down with CTRL+C or the equivalent signal |
| [05:11] | <nerochiaro> | ok, on to the app |
| [05:11] | <turran> | yep, but it will reboot on a couple of seconds because of the watchdog, ill ttry the nfs mount |
| [05:11] | <turran> | i guess the apps needs the neuros api to do the work i want right? |
| [05:11] | <nerochiaro> | no, if you kill it with -9 the wdog won't stop, but with the graceful termination signal the wdog will get stopped |
| [05:12] | <turran> | ok |
| [05:12] | <turran> | i made the ^C and it didnt stop |
| [05:12] | <turran> | anyway the app |
| [05:13] | <turran> | :) |
| [05:13] | <turran> | brb |
| [05:13] | <nerochiaro> | strange, it stops ok here. maybe you're on a very old version of the firmware ? |
| [05:13] | <nerochiaro> | anyway |
| [05:13] | <nerochiaro> | you need the media API if you want to encode or decode video, yes |
| [05:14] | <nerochiaro> | however the problem here is also the source of such video, which is the web cam. how does that connect to the OSD ? USB or it has video out ? |
| [05:22] | <turran> | back |
| [05:22] | <turran> | it has a video out, is independent from the osd |
| [05:23] | <nerochiaro> | ah, great |
| [05:23] | <turran> | so in fact the cam isnt a problem, in the application just need to feed the video from "video in" |
| [05:24] | <turran> | now in case my firmware is old, is there a quick guide on how to do update it? |
| [05:24] | <turran> | i downloaded the neuros_osd.tar.bz |
| [05:24] | <turran> | and did a ./build-helper.sh all under neuros-bsp |
| [05:28] | <nerochiaro> | ok, one step back. "firmware" here can mean 2 things. one is the firmware that resides in flash, and includes uboot+kernel+rootfs. it comes in .upk packages that you get from official releases on the neuros site. then if you're a developer you can also do what you did and build from source, and that will allow you to create a new kernel and rootfs that you can customize and use with nfs+tftp. so the suggestion is: first update to the latest |
| [05:29] | <turran> | ok perfect |
| [05:29] | <turran> | yes, first the stable thing, then my custom |
| [05:29] | <nerochiaro> | to build from source, what you did is ok, but before running the build helper, use svn to update your source to a known good "TAG" |
| [05:30] | <turran> | ok |
| [05:30] | <nerochiaro> | yes, the stable thing is always useful, first because of uboot updates and second because if you want to use it only via flash for some reason, you're already ok |
| [05:30] | <nerochiaro> | brb |
| [05:33] | <turran> | ok, the next step to update it is? |
| [05:34] | <nerochiaro> | open.neurostechnology.com |
| [05:34] | <nerochiaro> | these are the official updates |
| [05:35] | <turran> | great, once i have an .upk file? |
| [05:37] | <nerochiaro> | there are instructions on that release pages. in a nutshell, there are 2 ways: if you just want the latest one, osdmain in the settings menu has an option that will download it. or you can put that upk in a media card under /newpackage/r3.up, plug in the media card and reboot, then follow upgrade on tv screen |
| [05:38] | <nerochiaro> | er, the osdmain option will download and install it |
| [05:38] | <turran> | great :) |
| [05:38] | <turran> | about the lua web server you told me |
| [05:38] | <turran> | is it already included on the rootfs? |
| [05:39] | <nerochiaro> | no. lua is included, the server is not, but it's pretty easy to use from media card, once you update the firmware in flash |
| [05:39] | <nerochiaro> | open.neurostechnology.com |
| [05:40] | <turran> | jejeje prefect man, thanks :) |
| [05:41] | <nerochiaro> | :) |
| [05:42] | <nerochiaro> | try updating the osd and try the web server first, then if all goes well we can move on the the capture app. simple things first :D |
| [05:42] | <turran> | indeed =) =) |
| [06:00] | * nerochiaro is out for luch, see you in an hour or so | |
| [06:19] | <Shadow12> | can anyone help me with crwebs VM? |
| [06:41] | <turran> | brb |
| [06:56] | <nerochiaro> | Shadow12: give me 20 mins an i try to help |
| [07:04] | <daurnimator> | uh |
| [07:04] | <daurnimator> | whats the command to restarting wntworking devices? |
| [07:05] | <nerochiaro> | depends on your distro i think. should be /etc/init.d/vmware restart on debian-like |
| [07:10] | <Shadow12> | its running on windos |
| [07:10] | <Shadow12> | its just when i try to sudo it asks for password and I dont know the admin password for the neuros vm |
| [07:11] | <turran> | its the same password you already use for your username |
| [07:11] | <nerochiaro> | "neuros2" |
| [07:12] | <turran> | indeed =) |
| [07:12] | <turran> | nerochiaro, ok i upgrade my firmware, it now works good when doing a ^C to osdmain, the watchdog no longer reboots |
| [07:13] | <turran> | the networking is also working great |
| [07:13] | <nerochiaro> | yeah, you probably had an ancient version on the device |
| [07:13] | <turran> | =) |
| [07:13] | <turran> | now i need to mount it over nfs, but i remember on the other firmware there was nfsstat, etc. on this there isnt |
| [07:14] | <Shadow12> | really I will try again |
| [07:14] | <nerochiaro> | turran: nfsstat ? what do you mean ? |
| [07:14] | <Shadow12> | thanks guys |
| [07:14] | <nerochiaro> | Shadow12: no problem |
| [07:14] | <turran> | nerochiaro, does this new firmware has a nfs daemon to export the fs? |
| [07:15] | <nerochiaro> | it's the other way around. you export the rootfs from an nfs server that is on your PC |
| [07:15] | <turran> | ahhh =) |
| [07:15] | <turran> | jejeje ok |
| [07:16] | <nerochiaro> | where did you download the tarball for the neuros dev environment that you mentioned above ? |
| [07:16] | <nerochiaro> | like, 2 hours ago |
| [07:17] | <turran> | mmm let me check the log |
| [07:17] | <turran> | from here: svn.neurostechnology.com |
| [07:21] | <nerochiaro> | i don't know how old is that,so for good measure do an svn update on that after you unpack it |
| [07:32] | <turran> | ok :) |
| [09:08] | <turran> | nerochiaro, ping |
| [09:08] | <nerochiaro> | oi |
| [09:08] | <turran> | :) |
| [09:09] | <turran> | i tried the nfs thing, but have problems mounting my nfs share from neuros |
| [09:09] | <turran> | looks like there is no portmap on the osd |
| [09:09] | <nerochiaro> | which problems do you have ? |
| [09:10] | <turran> | portmap: server localhost not responding, timed out |
| [09:10] | <turran> | RPC: failed to contact portmap (errno -5). |
| [09:10] | <turran> | on the osd there is no portmap |
| [09:10] | <turran> | the share on my pc is working ok, as i can mount it from other place |
| [09:11] | <nerochiaro> | are you trying to mount it manually or you talking about mounting as rootfs ? |
| [09:11] | <turran> | manually, with mount share_ip:share_dir dest_dir |
| [09:16] | <nerochiaro> | try using -o nolock,udp |
| [09:19] | <nerochiaro> | or even better -o nolock,tcp,nfsvers=3 |
| [09:22] | <turran> | well nfsvers=2 instead of 3 did the work =) |
| [09:23] | <nerochiaro> | depends on your nfs server probably |
| [09:23] | <nerochiaro> | what are you mounting with nfs ? |
| [09:24] | <turran> | my home dir, i want to copy the necessary files for the webserver |
| [09:24] | <nerochiaro> | ok |
| [09:28] | <nerochiaro> | um, wait, copy where ? |
| [09:29] | <turran> | jejeje i was to ask the same :) |
| [09:29] | <turran> | the / is ro (cramfs) |
| [09:30] | <turran> | i wanted to copy it under /usr/local/ as the install-kepler.sh does |
| [09:30] | <turran> | but i guess this isnt the way |
| [09:30] | <turran> | so i should make my own .upk with the kepler thing inside, and then upgrade the firmware again, right? |
| [09:39] | <nerochiaro> | ok, wait. step back. you have 2 choices here. one is to have the rootfs on you PC and mount it during boot via NFS. that means you have a rw / instead of a ro / and you can go crazy and do whatever you want with it. the other option is using a media card and unionfs. basically when hotplug mounts the card, if you have on the card a dir called osdroot, that dir will be mounted rw over /usr/local |
| [09:42] | <turran> | ok, interesting thing |
| [09:43] | <nerochiaro> | 2nd is quicker to try |
| [09:43] | <turran> | this should be on the wiki right? =) |
| [09:43] | <turran> | so what is the quickest way to test the webserver? |
| [09:43] | <nerochiaro> | tup |
| [09:44] | <nerochiaro> | er, yup |
| [09:44] | <nerochiaro> | the 2nd way is the quickest |
| [09:44] | <nerochiaro> | the one using a media card and unionfs |
| [09:44] | <turran> | ok, i'll try it out |
| [09:45] | <nerochiaro> | and i the nfs method is surely on the wiki, the unionfs, i'm not sure. i made them add it, but no one basically used it besides me, so i don't think anyone has ever documented it on wiki. |
| [11:08] | <turran> | nerochiaro, everything worked ok |
| [11:08] | <nerochiaro> | cool, so the web server is ok ? |
| [11:08] | <turran> | yeah but looking on the cgilua looks they don't support shell scripts, only lua based ones |
| [11:08] | <turran> | :/ |
| [11:09] | <nerochiaro> | well, obviously |
| [11:09] | <nerochiaro> | what web server allows you to have bash scripts ? |
| [11:09] | <turran> | boa/apache/etc etc |
| [11:09] | <turran> | =) |
| [11:10] | <turran> | i just need to do: "echo something > /tmp/mypipe" on the script |
| [11:10] | <turran> | ill figure it out with lua |
| [11:10] | <turran> | at least i didnt have to crosscompile :) |
| [11:10] | <nerochiaro> | yeah, i mean, i've never seen these used in any real-life situation. they either go with php or perl, never bash. anyway, i'm sure there's a way in lua to call shell stuff |
| [11:10] | <turran> | now the application =) |
| [11:11] | <nerochiaro> | i need to run away for half an hour, right now |
| [11:11] | <turran> | ok, np man! |
| [11:11] | <turran> | =) |
| [11:11] | <nerochiaro> | when i'm back we can see to that |
| [11:11] | <nerochiaro> | later |
| [11:11] | <turran> | later :) |
| [11:41] | <turran> | nerochiaro, got to go home, we'll talk tomorrow, thanks for your help :) |
| [12:18] | <keRa> | hello |
| [12:18] | <keRa> | there is any way to use .srt subtitles with OSD ? |
| [12:49] | <nerochiaro> | keRa: not at the moment i think |
| [13:09] | <shaunm> | so will scratchbox allow me to run the osd's user interface on my computer? |
| [13:42] | <nerochiaro> | shaunm: nope |
| [14:52] | <JoeBorn> | I guess you'd typically use svn through the vm if needed? |
| [14:59] | <nerochiaro> | svn to do what ? |
| [15:00] | <JoeBorn> | well, I guess I'm thinking about two scenarios |
| [15:00] | <JoeBorn> | svn to download new code, branches whatever and build |
| [15:00] | <JoeBorn> | and two I'm thinking about svn for docs like this user manual we discussed. |
| [15:03] | <nerochiaro> | the vm is used to build 3rd part apps on top of pre-built neuros libraries. it's not geneally meant to be used to build the code that is in neuros main svn (bsp, cooler etc). |
| [15:04] | <sourcerror-m> | but JoeyBorn can still put hte docs under version control |
| [15:04] | <sourcerror-m> | just not necessary to check out inside VM |
| [15:04] | <nerochiaro> | yeah, that was a separate question though |
| [15:04] | <nerochiaro> | that is correct |
| [15:07] | <JoeBorn> | it looks like there are windows clients for svn too, for folks like Tim that will just be editing docs, etc |
| [15:08] | <nerochiaro> | tortoise svn is very nice for windows. totally integrated in the windows file manager |
| [15:11] | <JoeBorn> | ok. |
| [15:56] | <GuestN871> | how to do an "emergency upgrade"? |
| [16:00] | <nerochiaro> | GuestN871: use a media card |
| [16:00] | <nerochiaro> | put the firmware in /newpackage/r3.upk |
| [16:00] | <nerochiaro> | and reboot |
| [16:23] | <GuestN871> | alright--that didn't quite solve the problem i'm having then |
| [16:23] | <GuestN871> | got osd, first thing was install new firmware |
| [16:24] | <GuestN871> | plug in network cable....and like the post in the forums i have the reboot issue |
| [16:24] | <GuestN871> | but where my issue differs from the forum's, is that when i unplug network cable the unit works as advertised |
| [16:24] | <crweb> | GuestN871: how long ago did you get your osd? |
| [16:25] | <GuestN871> | about 1 week ago |
| [16:25] | <crweb> | what is the serial number? |
| [16:25] | <JoeBorn> | you're having a reboot problem, GuestN871 ? |
| [16:26] | <GuestN871> | only when i plug in a network cable...otherwise it works great |
| [16:26] | <crweb> | GuestN871: theres your man |
| [16:26] | <GuestN871> | i haven't done too much to troubleshoot other than try different network cables and diffent ports on the switch |
| [16:27] | <GuestN871> | but what i have noticed is that with cable plugged in, it takes on average 15-20 minutes to boot up |
| [16:28] | <GuestN871> | main menu is unresponsive from remote, after a few minutes it will reboot and re |