**** BEGIN LOGGING AT Fri Oct 23 02:59:57 2009 Oct 23 03:17:53 Hello folks. I am wondering, in the schematic, on page 10, what is the deal with resistor valued RR? Oct 23 03:57:43 URL? (not sure what schematic you refer to) Oct 23 04:27:41 bkinman: name of the document and the patch to it on the CD / zip file Oct 23 04:28:16 s/patch/path Oct 23 05:00:30 Evening all Oct 23 05:01:23 I'm trying to figure out the best way to automount an SD card when I plug it in, and make it possible to safely eject no more than a second or so after an application stops accessing it Oct 23 05:01:45 I found some stuff about how to mount it when it's plugged in via udev Oct 23 05:01:56 but that doesn't have any kind of safe unmount concept Oct 23 05:02:45 I'm using sqlite in synchronous mode, so it's not like I'm likely to actually ose data just by unplugging after a brief moment Oct 23 05:02:53 :s/ose/lose/ Oct 23 05:04:07 but that kinda offends my inner linux user Oct 23 05:20:35 Chunky_Ks: automount it using udev Oct 23 05:20:49 Chunky_Ks: and add "sync" to mount options Oct 23 05:22:07 I still feel kinda cheesy just unplugging a mounted device Oct 23 05:22:21 also, this is a flash device, so "sync" may actually be creating unnecessary wear Oct 23 05:22:36 I mean, sure, it's a 12 dollar flash device that I can buy more of and don't care about Oct 23 05:22:39 but... hrm Oct 23 05:22:49 OK, apologies, lemme explain the scenario Oct 23 05:22:58 I'm working on software that logs OBDII and GPS data in your car Oct 23 05:23:10 hm Oct 23 05:23:11 The ideal work flow is: Oct 23 05:23:21 1) plug in SD card, and GPS device Oct 23 05:23:24 2) plug in OBDII dongle Oct 23 05:23:42 so long as the SD card is already mounted, this works, and it logs to the sd card Oct 23 05:23:51 then when I get to where I'm going Oct 23 05:23:55 3) unplug OBDII dongle Oct 23 05:24:02 4) unplug SD card Oct 23 05:24:13 walk inside with SD card, do voodoo. Oct 23 05:24:26 so what you described was one thing I was pondering Oct 23 05:24:31 another was trying to use the automounter Oct 23 05:24:38 either way Oct 23 05:24:56 so that when the software ois launched when I plug in the obdii dongle [using udev, which works right now] Oct 23 05:25:25 it would open /media/sd/carlog.db, which would automount the sd card Oct 23 05:25:42 then some kind of, like, 1-second timeout after nothing's using the SD mounted area Oct 23 05:25:44 for being able to eject (relatively) safely the card without umounting it, you need the "sync" mount option Oct 23 05:26:09 and have the automounter automatically umount after one second or osmething Oct 23 05:26:21 Yeah, but it still offends my inner engineer Oct 23 05:26:23 :-) Oct 23 05:26:43 as for umounting when no data gets written... Oct 23 05:26:58 So those are the two ideas I had, but I'm totally open to other suggestions Oct 23 05:27:11 Last time I played with automounters was years ago Oct 23 05:27:32 so I don't know if it's even possible to just have an unmount-after-idle time of 1 second Oct 23 05:27:38 does the software you use for recording data from OBDII dongle use a single process for the entire run? Oct 23 05:27:44 yes Oct 23 05:27:52 it's launched via udev when you plug in the dongle Oct 23 05:27:56 and gets closed after the dongle gets unplugged? Oct 23 05:28:18 and it exits when it gets an error on a read or write to the dongle Oct 23 05:28:25 ie, when you unplug it Oct 23 05:28:42 http://icculus.org/obdgpslogger/ is my software Oct 23 05:29:40 The forum is here: http://www.mp3car.com/vbulletin/obdii-gps-logger/ - tthe two two threads that aren't sticked right now are my udev stuff, and a thread about making it run on the sheeva specifically Oct 23 05:29:47 if you'd record the pid it uses somewhere, you could do ``wait ${PID_OF_THAT_PROGRAM}; sleep 60; umount -l /media/sd'' Oct 23 05:30:12 I don't have a pidfile right now, but it's not like that'd be hard Oct 23 05:30:26 but that's an interesting idea Oct 23 05:30:45 i guess it's the cleanes way to do it Oct 23 05:30:59 other way could be... Oct 23 05:31:27 write a script that'd have something like this inside: Oct 23 05:31:28 I'm just digging for ideas and stuff right now :-) Oct 23 05:31:34 #!/bin/sh Oct 23 05:31:42 /path/to/your/program Oct 23 05:31:48 sleep 60 Oct 23 05:32:00 umount -l /media/sd Oct 23 05:32:11 that's a good idea Oct 23 05:32:22 Why have you put in sleep 60 both times so far? Oct 23 05:32:23 Chunky_Ks: why are you afraid of sync? Oct 23 05:32:42 it just flushes buffers to media Oct 23 05:32:57 Chunky_Ks: the "script" attempt is totally separate from the "wait" attempt Oct 23 05:33:02 Partially because it might create unnecessary wear on a flash device, although that's a bit moot when I'm using sqlite in synchronous mode Oct 23 05:33:23 a script to run my program and then umount the device when my program exits would be good Oct 23 05:33:38 072731 | Chunky_Ks | so I don't know if it's even possible to just have an unmount-after-idle time of 1 second Oct 23 05:33:39 Chunky_Ks: it only writes if there is something in a buffer Oct 23 05:33:41 oh Oct 23 05:33:49 Chunky_Ks: replace "60" by "1" then Oct 23 05:34:03 hrm Oct 23 05:34:27 that idle thing was just because sometimes my program will wait a second or so between device writes Oct 23 05:34:58 oh Oct 23 05:35:33 but if there's a mechanism to wait for my process to exit tand then umount, that's even begter Oct 23 05:35:39 Chunky_Ks: so put "sync" (usually /bin/sync) before ``umount -l'' Oct 23 05:35:50 yeah Oct 23 05:36:29 hrm Oct 23 05:36:58 so the highest potential idea so far is now 1) automount with udev, 2) run the program from a script and umount when it exits Oct 23 05:37:10 that feels like a good way to do it Oct 23 05:37:15 yeah Oct 23 05:39:11 I just .. I've been using unix for a long long time, and pulling a device without unmounting just doesn't seem like a good idea Oct 23 05:41:51 Chunky_Ks: it'll get umounted after the program exits which happens after you pull out the obdii dongle Oct 23 05:42:05 via the script, you mean? Oct 23 05:42:09 Yeah, that's ideal :-) Oct 23 05:42:09 yeah Oct 23 05:42:45 currently I have a little daemonise function in obdgpslogger, when I launch it using udev I daemonise, so that the original program can return Oct 23 05:43:06 I read somewhere that udev will start to misbehave if I run a program that doesn't return fairly fast Oct 23 05:43:13 is that accurate, or have I been imaginign things? Oct 23 05:43:26 Because even if it is accurate, I could fork in my shell script Oct 23 05:43:52 but I'm curious as to hearing if anyone knows about that Oct 23 05:44:07 [or if I'm just huffing paint - I mean, it's always a possibility :-)] Oct 23 05:44:19 Chunky_Ks: well, it is not a good idea to launch a long-running script/program with udev, without daemonizing it Oct 23 05:44:27 yeah Oct 23 05:44:36 obdii is long-running Oct 23 05:44:59 [and in this context, I consider long-running anything more than "almost insantaneous"] Oct 23 05:45:12 eg, it might be five hours if I'm driving to vegas from here or something :-) Oct 23 05:51:13 thank-you so much, arachnist, tinker-f595 Oct 23 05:51:25 That was just the guidance I needed:-) Oct 23 05:53:19 hey I did not help much Oct 23 05:54:38 well, you brought up the whole "just use sync" idea Oct 23 05:54:45 which hadn't occurred to me Oct 23 05:54:53 [since sqlite does something similar already] Oct 23 05:56:41 I think I'm gonna go with "automount with udev and umount from a script when my program exits" Oct 23 09:50:58 hi all Oct 23 09:51:25 I've got my brand new sheevaplug up and running with the mmc and the stock ubuntu imange Oct 23 09:51:43 I've a a strange problem, it won't boot until I issue boot from serial Oct 23 09:52:12 I saw googling a guy had the same problems, but he hadn't the sheevaplug available so it couldn't provide feedback. Oct 23 09:52:42 have you got any hints for this problem? I'm sure it's a u-boot bootargs issue, everything runs fine otherwise Oct 23 10:10:12 iapx8088: compare u-boot params with http://plugcomputer.org/plugwiki/index.php/Factory_Default_u-Boot_Environment Oct 23 10:10:45 zumbi, thanks I'll do right away Oct 23 10:12:25 actuallly I used the openplug sysinstaller so I expect them to be different Oct 23 10:13:23 and I'm starting from mmc, moreover Oct 23 10:16:41 iapx8088: i dunno the installer, but surely, start by checking u-boot env vars Oct 23 10:16:49 ok I'm on the way Oct 23 10:30:46 iapx8088: how do you boot manually? I thought u-boot would automatically execute what is in bootcmd env var (but not 100% suer) Oct 23 10:32:06 If I issue boot at marvell prompt it boots Oct 23 10:32:16 if i reset, reboot Oct 23 10:32:22 but won't do it alone Oct 23 10:32:45 unconnected (so no chance some terminal is sending a character) Oct 23 10:34:04 how do you boot? Oct 23 10:34:09 do you have an env var bootcmd Oct 23 10:35:35 yes Oct 23 10:36:30 I wounld boot issuing boot or run bootcmd Oct 23 10:36:39 if I do, it runs perfectly Oct 23 10:36:53 It just means I have to log on it by serial everytime. Oct 23 10:38:27 http://logs.nslu2-linux.org/livelogs/openplug/openplug.20090924.txt see this guy asked exactly the same question on september Oct 23 10:38:47 using mmc too, exactly same situazione Oct 23 10:39:06 the guy's name is yaayaa Oct 23 10:43:04 right now is reflashing on the mmc again Oct 23 10:43:28 maybe this should set things up, I gave a resetenv before Oct 23 10:43:54 I shall suppose I should align the u-boot parameters to the ones of the sysinstall mmc setup Oct 23 10:52:01 ok Oct 23 10:52:06 I reflashed Oct 23 10:52:09 gave an halt Oct 23 10:52:18 now I unpower and power it again Oct 23 10:52:25 with no serial attached Oct 23 10:52:50 will leave it alone for 3 mins Oct 23 10:53:04 I would expect to find linux ready Oct 23 10:56:50 ok Oct 23 10:56:59 at the poweron...nothing to do Oct 23 10:57:04 marvell>> Oct 23 10:57:13 if you reset thru the button Oct 23 10:57:43 Last was Fri Mar 24 04:31:45 2017 on ttyS0. Oct 23 10:57:43 root@ubuntu:~# Oct 23 10:58:06 why it won't come up after the poweron but going well after an hard reset o a reboot? Oct 23 11:07:48 mmh Oct 23 11:08:06 can someone tell me printenv autostart on his sheeva? Oct 23 11:13:27 mine autostarts Oct 23 11:13:35 printenv is at http://www.pastebin.ca/1639748 Oct 23 11:14:14 not sure if this is the stock one, it could be that I reflashed once a long time ago Oct 23 11:14:26 but even iniitally i did not have this problem Oct 23 11:15:15 if i recall correctly it is possible to tell uboot not to autoboot, but if i am correct this is only a compiletime option Oct 23 11:17:02 thanks a lot Oct 23 11:24:17 found something strange in mine Oct 23 11:24:19 console=a0000 Oct 23 11:24:19 e=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root) Oct 23 11:24:23 to me that is an error Oct 23 11:24:43 it was console=console Oct 23 11:32:26 this parameter... console=a0000 Oct 23 11:32:26 e=ttyS0,115200=mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root) Oct 23 11:32:30 iapx8088, http://pastebin.ca/1639767 is 'stock' eeprom values Oct 23 11:32:38 becomes corruptted after a poweroff Oct 23 11:32:53 even if I set correctly and do a saveenv Oct 23 11:33:09 like setenv console='console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)' Oct 23 11:33:12 saveenv Oct 23 11:33:19 at the next boot is corrupted. Oct 23 11:33:31 first of all, setenv doesn't use = Oct 23 11:33:35 setenv var value Oct 23 11:35:08 second, IIRC 'console' was not an important variable, it was just defined and later being used in something Oct 23 11:35:34 you should be interested in 'bootcmd' Oct 23 11:35:42 this is what uboot will do after it starts Oct 23 11:35:58 if it boots some kernel, it will pass value of 'bootargs' to it Oct 23 11:36:15 well, if I run boot or run bootcmd runs just fine, so I assume bootcmd is fine Oct 23 11:36:32 what bothers me is why isn't doing it at poweron Oct 23 11:36:48 but just after an hardreset or reboot Oct 23 11:37:18 you should get something before the prompt on the console Oct 23 11:38:59 http://pastebin.ca/1639770 Oct 23 11:39:00 yes Oct 23 11:39:03 got it Oct 23 11:39:19 sd is not ready or something like that Oct 23 11:39:30 # Oct 23 11:39:30 No MMC card found Oct 23 11:39:30 # Oct 23 11:39:30 ** Bad partition 1 ** Oct 23 11:39:30 # Oct 23 11:39:31 ## Booting image at 00800000 . Oct 23 11:39:58 http://www.denx.de/wiki/view/DULG/UBootEnvVariables has some description of variables Oct 23 11:40:55 i have no mmc card either, i'm booting from internal flash Oct 23 11:41:07 guess somehoe you're doing an mmc commadn in your boot sequence Oct 23 11:41:34 and when you reset the device is powered and mmc has come up Oct 23 11:44:31 thanks for all the help Oct 23 11:44:39 I wouldn't think of watching that Oct 23 11:46:21 now I have to go to work Oct 23 11:46:32 thanks again, I'll try to sort it out tonight Oct 23 11:46:38 bbye Oct 23 13:21:06 hi - somebody knows if globalscale sends now to .eu via .us (TPC fullfilment)? Oct 23 13:21:40 now, i paid lots of money for transportation and then border money Oct 23 13:22:07 it costs more to bring the sheeva home, than the sheeva itself Oct 23 13:24:50 What does TPC mean? Oct 23 13:25:55 no idea, a name of a company Oct 23 13:26:18 I received mine in July from the US via fedex Oct 23 13:26:45 a man is asking me for money (>80EUR) to give me the package, but i am unsure that's the sheeva Oct 23 13:27:04 this one comes via FEDEX from .us Oct 23 13:28:32 It was 22.25€ in VAT for me Oct 23 13:30:49 DHL once wanted to charge me 50E for the "service" of paying the customs fees Oct 23 13:31:05 but fedex didn't charge me any extra ontop of what customs wanted Oct 23 13:42:00 zumbi: "the package"? and you aren't sure it's the one you ordered? Oct 23 13:42:27 you know about the "you have a package, just send money" scams running about right now, no? Oct 23 13:45:58 * mwester mutters about the government ripoffs with VAT being just as evil as the scams. Oct 23 13:55:14 ron__: i have no idea on those kind of scams, they told me this money are customs Oct 23 13:55:50 They sent me an SMS asking me to call or email Oct 23 13:55:59 the email was @fedex.com Oct 23 13:56:25 ShadowJK: FEDEX sends it over to .eu and a local company takes car of it Oct 23 13:56:48 i have the phone number of the people but they do not know who sends it Oct 23 13:57:17 they told me there are some written letters TPC FULFILLMENT Oct 23 13:57:23 Oh, fedex has a facility in my country. Fedex receives it here, but end-recipient delivery is done by local companies Oct 23 13:57:31 i have no idea if this is related to globalscale or not Oct 23 13:57:32 zumbi: get a tracking number from globalscale and find out where yours really is right now Oct 23 13:58:28 ron__: did the people from globalscale start replying to emails? Oct 23 13:59:11 dunno. we never seemed to have the sort of delivery dramas other people did ... Oct 23 13:59:26 maybe we just picked the days there was stock ;) Oct 23 14:00:12 but I get lots of mail from people pretending to have parcels that need a clearing fee, that I _know_ are bogus ... YPMV Oct 23 14:00:53 so if it's weirding you out, call someone whose phone number wasn't in the mail requesting payment ;) Oct 23 14:01:53 I received an email from globalscale when they shipped my sheevaplug. The email contained a tracking number. Oct 23 14:07:09 ShadowJK: you are right, i just saw that Oct 23 14:07:20 It is my package ! Oct 23 14:07:33 How do you know? Oct 23 14:07:40 It is >80EUR more than expected. Oct 23 14:07:50 ShadowJK: I check the tracking number Oct 23 14:07:53 ah Oct 23 14:08:22 Well surely you expected to pay VAT? Oct 23 14:08:29 the first sheeva I got, 1) it was not that high in transportation, 2) i had not to pay any customs Oct 23 14:08:47 ShadowJK: customs + VAT (IVA here) Oct 23 14:08:53 ah Oct 23 14:09:03 did you get your first direct from china? Oct 23 14:09:07 yes Oct 23 14:09:14 Through hong kong post? Oct 23 14:09:16 or similar? Oct 23 14:09:19 i think so Oct 23 14:09:30 do not remember, but i had to wait over a month Oct 23 14:09:50 That's great about the mail system, packages are only randomly sampled by customs Oct 23 14:10:04 whereas with couriers all packages go through customs :( Oct 23 14:11:03 Do you get a specification on the chargers? Oct 23 14:11:16 X amount VAT, Y amount import duty, Z amount handling fee, etc? Oct 23 14:11:56 yes, they told me, i can't remeber very well, but, ~70EUR customs + 13 EUR tax Oct 23 14:12:08 hm Oct 23 14:12:24 the import duty was so insignificant for me that they didn't charge it Oct 23 14:12:25 tax is 16% of the customs charge Oct 23 14:12:44 well, i have 3 sheevas and an openrd Oct 23 14:13:00 in that package? Oct 23 14:13:05 next, i'll become a dealer in EU :) Oct 23 14:13:24 ShadowJK: yes, in the package I am waiting for Oct 23 14:13:28 ah Oct 23 14:14:21 btw, i found this webpage the other day, quite interesting to me, http://plug.noloop.net/ Oct 23 16:33:45 zumbi: so you are being charged customs and vat for 4 items Oct 23 21:55:11 ok why does openplug.org have a plug i dont recognize Oct 23 21:55:13 what is it Oct 23 22:17:08 night all Oct 23 22:18:13 I read a few articles, I'm temporarily reverting to nand os Oct 23 22:18:26 using the sd as storage and tmp maybe Oct 23 22:18:36 in time i'll see what's up with the sd. Oct 23 22:20:03 via nand it boots just fine Oct 23 22:20:11 it's up and running as we speak. **** ENDING LOGGING AT Sat Oct 24 02:59:56 2009