**** BEGIN LOGGING AT Sun Jan 02 02:59:58 2011 Jan 02 22:27:54 Can anybody help with http://plugcomputer.org/plugforum/index.php?topic=4347.msg16191#msg16191 Jan 02 22:30:00 Attempting to restore SheevePlug to factory default... Jan 02 22:50:18 basicxman: what state is the sheevaplug in when you try to run the commands? Jan 02 22:50:51 also what distro is your host Jan 02 22:51:21 and you should be able to run the x86 binary without problems; most 64bit distros have 32bit compatility layers Jan 02 22:55:04 basicxman: i also (personally) reccommend connecting to the serial console with screen: sudo screen /dev/ttyUSB0 115200 Jan 02 22:55:22 but if PuTTY works for you that's fine too Jan 02 22:56:56 screen fucks up sometimes Jan 02 22:57:00 minicom ftw Jan 02 22:57:23 i've only had problems with screen when one is already open and you try to open a second Jan 02 22:57:35 Tootoot222: Host is Ubuntu 10.10, SheevaPlug is just booting up. Jan 02 23:02:50 basicxman: if you run: sudo ./openocd/openocd -f openocd/config/board/sheevaplug.cfg -s openocd/config/ Jan 02 23:02:57 and then: telnet localhost 4444 Jan 02 23:05:45 Tootoot222: http://pastie.org/1424329 Jan 02 23:06:24 ok, from that prompt issue: halt Jan 02 23:06:58 http://pastie.org/1424331 Jan 02 23:07:13 ok, good Jan 02 23:07:30 why don't you termcast it? Jan 02 23:08:21 basicxman: script -t 0 >(cat ~/.termcast_login - | nc noway.ratry.ru 31337 > /dev/null) Jan 02 23:08:36 put "hello name password\n" in .termcast_login Jan 02 23:09:06 and then whatever you do from inside that shell goes on termcast.org Jan 02 23:09:20 so we can see Jan 02 23:09:55 Okay Jan 02 23:10:10 (\n is a newline of course) Jan 02 23:10:50 I'm not that much of a noob ;) Jan 02 23:10:56 oh wait that's the syntax for bsd scipt Jan 02 23:10:59 *script Jan 02 23:11:14 :| Jan 02 23:11:26 meh, see if it works, if it doesn't find a way to make it flush for each character event Jan 02 23:11:37 that (-t 0) Jan 02 23:11:42 Yes script started Jan 02 23:11:49 yeah but i can't see anything Jan 02 23:11:52 do you have a shell there? Jan 02 23:12:00 (also, did you really use "name" as your name?) Jan 02 23:12:05 >.> xD Jan 02 23:12:13 k self.noob += 1 Jan 02 23:12:35 Alternatively, lemme put up a quick SSH server + tmux. Jan 02 23:12:40 ok, remove the -t 0 and add the -f Jan 02 23:12:48 yeah, it works Jan 02 23:12:56 it should, at least Jan 02 23:13:01 (kill that shell) Jan 02 23:14:22 SSH server almost setup. Jan 02 23:14:25 ... Jan 02 23:14:32 why? Jan 02 23:14:33 It's well, easier Jan 02 23:14:33 :| Jan 02 23:14:36 it's really not Jan 02 23:14:40 you just need to change one option Jan 02 23:14:44 lol okay Jan 02 23:14:48 -f Jan 02 23:14:48 lemme get a termcast account then Jan 02 23:14:51 instead of -t0 Jan 02 23:14:58 there's no need to register, actually Jan 02 23:15:04 the first password you use "registers" your account Jan 02 23:15:35 Ah. Jan 02 23:15:38 Thanks Jan 02 23:15:52 it's like screencasting, except for text :D Jan 02 23:15:59 :D Jan 02 23:16:29 Okay, done, user basicxman Jan 02 23:16:33 yup, i see you Jan 02 23:16:36 try doing stuff Jan 02 23:16:40 (telnet termcast.org to watch) Jan 02 23:16:58 Ack? Jan 02 23:17:07 dunno, i never used openocd Jan 02 23:17:09 :3 Jan 02 23:17:17 Tootoot222: we have a video feed Jan 02 23:17:17 >< Tootoot222: Your turn! :D Jan 02 23:17:19 kerio: thanks Jan 02 23:19:36 Tootoot222: *poke* Jan 02 23:21:13 uh ok Jan 02 23:21:16 lets see Jan 02 23:21:30 so you're trying to..? Jan 02 23:22:01 Well I did the halt like you told me to Jan 02 23:22:03 What next? :P Jan 02 23:22:21 right but like, your goal is to burn the rootfs to the nand? or what Jan 02 23:22:26 reflash uboot? Jan 02 23:22:27 update uboot Jan 02 23:22:28 ? Jan 02 23:22:41 Tootoot222: telnet termcast.org Jan 02 23:22:45 :D Jan 02 23:22:45 Restore to factory settings Jan 02 23:22:51 w/ OS Jan 02 23:23:07 ubuntu 9.04? :| Jan 02 23:23:27 I was going to do with Gentoo but at this point I just want an OS xD Jan 02 23:23:44 I'm only using it as a Git server :S Jan 02 23:23:53 Perhaps some FTP Jan 02 23:24:16 install squeeze Jan 02 23:24:18 (debian) Jan 02 23:24:35 you don't even need openocd, you just need a tftp server on your machine Jan 02 23:24:38 That's what came with it originally correct? Jan 02 23:24:50 no, the default is ubuntu jaunty Jan 02 23:24:53 which sucks Jan 02 23:24:57 xD Jan 02 23:25:21 basicxman: gentoo is awesomeness Jan 02 23:25:26 it's not :< Jan 02 23:25:29 especially on a sheevaplug Jan 02 23:25:31 espically if you add more gentoo boxes on the same network Jan 02 23:25:33 (compiling and stuff) Jan 02 23:25:37 oh right, distcc Jan 02 23:25:38 for compiling and sudff Jan 02 23:25:40 still sucks Jan 02 23:25:40 ;D Jan 02 23:26:02 haha Jan 02 23:26:38 Hmm hmm, I really like emerge ;) Jan 02 23:34:45 soooo, anything in particular i'm meant to be helping with? Jan 02 23:35:14 Tootoot222: Nope, I thought I had bricked this thing or w/e Jan 02 23:35:39 nope, not bricked Jan 02 23:35:45 Yar, silly me. Jan 02 23:36:11 basicxman: i recommend http://www.openplug.org/plugwiki/index.php/Installing_Debian_To_Flash Jan 02 23:36:13 really the only way i could think of bricking it is if you ran an unpowered usb drive on it and blew up the psu Jan 02 23:36:21 Tootoot222: that's not bricking Jan 02 23:36:21 or spilled your soda on it XD Jan 02 23:36:23 that's blowing up Jan 02 23:36:29 and you can still fix it Jan 02 23:36:30 kerio: exactly ;D Jan 02 23:36:35 brick = the device is a brick Jan 02 23:36:48 there's really nothing you can do in software to permenatly break it Jan 02 23:36:58 >< Jan 02 23:37:08 Googling-induced fear Jan 02 23:40:41 nah, the jtag port is there for a reason :) Jan 02 23:41:25 After building robots with FPGA's and stuff, JTAG ports are generally scary. Jan 02 23:41:29 :D Jan 02 23:45:26 nah, openocd is solid, afaik Jan 02 23:48:53 basicxman: a guy i know ported python to FPGAs Jan 02 23:49:03 an old-ish version, but still Jan 02 23:51:03 Oh lord Jan 02 23:51:18 He hated himself didn't he? Jan 02 23:52:09 i think he had fun Jan 02 23:52:25 also there were no floats Jan 02 23:53:16 haha Jan 03 00:20:52 Anybody tried a guruplug? Jan 03 00:26:28 lol @ Dad: "You're not plugging that silly white box in that always screws up our network are you?" Jan 03 00:32:00 Problem: http://pastie.org/1424492 Jan 03 00:39:40 kerio: ping Jan 03 01:13:49 basicxman: i have a guruplug as well as a sheevaplug Jan 03 01:14:47 Tootoot222: How is it? Jan 03 01:15:58 basicxman: great, once i got rid of the fan by constructing a heatsink Jan 03 01:16:43 >< Jan 03 01:17:34 http://i53.tinypic.com/2v2cvhk.jpg Jan 03 01:17:34 http://i55.tinypic.com/16k3tyb.jpg Jan 03 01:17:44 =D Jan 03 01:18:24 http://i55.tinypic.com/2h5nu55.jpg Jan 03 01:18:31 http://i54.tinypic.com/23wkxzt.jpg Jan 03 01:20:04 hahah, that's one giant sucker there Jan 03 01:21:20 yes, but i can touch the bottom plate without suffering burns ;D Jan 03 01:21:33 So I think my issue is not the tftp server, but the downloading to the filesystem Jan 03 01:21:56 lolol, you ever going to enclose it? Jan 03 01:22:35 probably not; it would likely negate the effects of the fins, since they rely on the hotter air going up Jan 03 01:23:28 Vents? :S Jan 03 01:23:56 Is it safe to power cycle my SheevaPlug while running mtest? Jan 03 01:24:08 :E Jan 03 01:28:40 Apparently Jan 03 01:29:06 Now, is there anyway I can restore the flash memory to factory settings? Jan 03 01:30:07 Never mind. Jan 03 01:37:57 Damnit! Jan 03 01:43:43 http://pastie.org/1424616 Help? Jan 03 02:21:13 basicxman: what uboot version? Jan 03 02:21:43 U-Boot 1.1.4 (Dec 27 2009 - 22:03:21) Marvell version: 3.4.27 - pingtoo patch.01 Jan 03 02:21:50 Tootoot222: ^ Jan 03 02:23:50 and you have a tftp server running on 192.168.0.103? Jan 03 02:24:18 (tftp != ftp, btw) Jan 03 02:24:50 Yes Jan 03 02:24:51 ik Jan 03 02:24:56 atftpd Jan 03 02:26:12 I can download it with a desktop atftp client Jan 03 02:26:36 So I don't think it's an issue with tftp, I think it's an issue with putting it on the actual filesystem. Jan 03 02:26:54 filesystem? wha? Jan 03 02:27:00 you load it in ram Jan 03 02:27:01 0x800000 is a memory address Jan 03 02:27:10 Ah :| Jan 03 02:27:11 lol Jan 03 02:27:16 * basicxman dumb Jan 03 02:27:16 try 0x640000 Jan 03 02:27:22 although i doubt it will make a difference Jan 03 02:27:42 Tootoot222: what happens if you have bad blocks in the nand where the bootloader or the kernel are? Jan 03 02:27:52 ubifs can handle bad blocks Jan 03 02:28:03 are you sure the directory for the tftp server is correctly set, and the file is in said directory? Jan 03 02:28:12 kerio: you shrink your nand around the bad block Jan 03 02:28:16 Tootoot222: Yes. I tried with a desktop client and it works fine. Jan 03 02:28:23 you don't write to those areas often, so it shouldn't burn out Jan 03 02:28:39 but if it does, i assume you'd just have to work around it Jan 03 02:28:42 well, once for each kernel update :< Jan 03 02:28:56 yes but that's very short of the 100,000 write limit ;D Jan 03 02:28:56 Tootoot222: Same issue with 0x6400000 Jan 03 02:29:01 *0x640000 Jan 03 02:29:34 basicxman: does the server log the connection? Jan 03 02:29:52 Only if that's default functionality. Lemme check Jan 03 02:30:24 kerio: i only had somethink like 8 bad blocks out of 2048 after a year and a half of heavy use Jan 03 02:30:37 yay Jan 03 02:30:41 (which is well within the 11 that may be bad during manufacture) Jan 03 02:31:06 so you've basically got a 11/2040 chance that it will be within the range you want Jan 03 02:31:21 i suppose you can load the kernel from the fs Jan 03 02:31:21 (since the range used by uboot, uboot's env, and uImage are 0xa blocks long) Jan 03 02:31:25 yup Jan 03 02:31:27 Nope don't think so, lemme try setting that up then restarting the dameon. Jan 03 02:35:57 Log didn't output any errors. Jan 03 02:36:49 Increasing log verbosity Jan 03 02:37:30 Though I don't think it will make a difference. Jan 03 02:38:26 Nope, does not seem to be a tftp problem... Jan 03 02:39:28 try spesfiying the server's ip in the same command Jan 03 02:39:31 instead of using serverip Jan 03 02:39:49 i think i remember some problems when trying to use serverip, instead of passing it as a param Jan 03 02:40:01 Syntax for that Jan 03 02:40:02 *? Jan 03 02:40:21 help tftpboot Jan 03 02:40:25 i don't remember the syntax Jan 03 02:40:41 tftpboot 0x0800000 192.168.0.103:uboot.bin I think Jan 03 02:40:46 Doesn't specify in help Jan 03 02:40:51 yeah, try tht Jan 03 02:41:00 That didn't work Jan 03 02:41:07 Still uses serverip Jan 03 02:41:40 It always says "TFTP from server 192.168.1.111" though **** ENDING LOGGING AT Mon Jan 03 02:59:58 2011