**** BEGIN LOGGING AT Sun Mar 27 02:59:59 2011 Mar 27 14:53:58 has anyone been able to install minidlna on their Guruplug? Mar 27 14:54:33 I've tried to compile straight from sourceforge source and also downloading it from plugapps Mar 27 14:54:42 still can't get it to work Mar 27 15:36:50 mijk: I haven't but I think ushare is working Mar 27 15:37:18 i will probably have to peek into minidlna in the near future (on a sheeva/debian system) Mar 27 15:59:21 okay, I'll try out ushare Mar 27 15:59:34 I want to share music and movies to my PS3 Mar 27 16:23:10 Qucik question ('cause I'm not at my Sheevaplug right now to figure this out myself!) -- Where does the kernel get the flash partition information? U-Boot, or is there some sort of "partition table" in the flash somewhere? Mar 27 16:26:01 mwester: you pass it to the kernel on the boot line Mar 27 16:26:14 gimmie a sec i'll get you an example Mar 27 16:26:32 That's what I thought, but the boot log I'm looking at says otherwise. :( Mar 27 16:27:02 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) Mar 27 16:27:06 is the option Mar 27 16:27:53 2.6.37 kernel, no "mtdparts" on the cmdline according to the boot log, yet it correctly finds the u-boot partition, the original kernel space, and the rootfs partition. And the sizes of the latter don't agree with the old mtdparts variable in u-boot AFAIK. Hence I am confused. Mar 27 16:29:47 * mwester will wait till he gets his Sheevaplug back, and check /proc/cmdline to see what's going on. Mar 27 16:30:58 mwester: waht does 'sudo cat /proc/cmdline ' return? Mar 27 16:31:09 tinker-f595: he just said he doesn't have his sheeva Mar 27 16:31:15 ah Mar 27 16:31:33 Tootoot222: what does it return for you? Mar 27 16:31:50 console=ttyS0,115200 rootdelay=5 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs Mar 27 16:32:17 Tootoot222: and is that what you passed on the cmdline? Mar 27 16:32:28 no Mar 27 16:32:51 hm, do the SWL kernels need the "serial" parameter? Mar 27 16:32:53 i had mtdparts= on there too Mar 27 16:33:52 So it may be that the "mtdparts" is not reflected in the cmdline? (That would seem to break things like kexec, though) Mar 27 16:36:51 mwester: I have one device running 2.6.30 and it gives a truncated command line. The other runs 2.3.36 and gives a complete command line in /proc/cmdline. I suspect they increased the command line buffer size in the more recent kernels Mar 27 16:37:37 but I would have to look through the kernel source code to verify that Mar 27 16:38:27 I'll experiment a bit -- seems that'll be necessary anyway. Thanks Mar 27 16:57:53 what's the bare minimum of uboot env variables? Mar 27 16:58:23 root=x rootfstype=y Mar 27 16:58:31 but you won't get any output on the serial console Mar 27 16:58:39 no, env variables Mar 27 16:58:42 oh Mar 27 16:58:53 only what's required to boot Mar 27 16:58:56 bootcmd, bootargs, arcNumber and mainlineLinux? Mar 27 16:59:00 and bootdelay Mar 27 16:59:08 what if i don't put a bootdelay in? Mar 27 16:59:12 idk Mar 27 16:59:18 maybe it'll boot in 0 seconds Mar 27 16:59:33 I.E. lock you out from getting to the marvell>> prompt again Mar 27 16:59:47 oh, i thought it somehow made linux boot in no time Mar 27 16:59:48 * mwester thinks it might help to "clean house" of all the un-used vars in u-boot; quite complicated enough. Mar 27 17:00:20 mwester: in the sheevaplug they put a LOT of extra vars Mar 27 17:00:23 * kerio ponders about setting bootdelay to -60, to see if the system booted one minute before turning it on Mar 27 17:00:26 on the guruplug they have like 20-30 Mar 27 17:00:41 do i need nandEcc? Mar 27 17:00:47 or ethaddr? Mar 27 17:01:03 i think if you don't set ethaddr your hwaddr will be 00:00:00:00 when you boot Mar 27 17:01:12 D: that's bad Mar 27 17:01:24 nah you can set it back to whatever you like while it's running Mar 27 17:01:38 but you have to have serial console access, as you won't be able to use that port on the internet Mar 27 17:01:49 (until after you set its mac back) Mar 27 17:02:01 what's nandEcc? Mar 27 17:02:07 what is it set to? Mar 27 17:02:12 "1bit" Mar 27 17:02:35 idk, try boot without it Mar 27 17:02:49 i suppose i only need ethact if i want to boot from network from within uboot? Mar 27 17:02:56 right Mar 27 17:03:21 wtf are stdin, stdout and stderr? Mar 27 17:03:23 :| Mar 27 17:03:26 unused variables yay Mar 27 17:04:28 you might not get any output if you unset those Mar 27 17:04:32 or at least from uboot, anyway Mar 27 17:04:36 but try it and see Mar 27 17:04:53 might want to make a backup of your original settings before messing it all up Mar 27 17:07:03 http://www.denx.de/wiki/DULG/UBootEnvVariables doesn't talk about stdin/out/err Mar 27 17:08:01 do the SWL kernels need mainlineLinux and arcNumber? Mar 27 17:08:06 yes Mar 27 17:13:20 ...i'm an idiot Mar 27 17:13:39 wat Mar 27 17:13:46 i ran nandtest on all the 3 mtds Mar 27 17:13:53 ._. Mar 27 17:13:54 lolol Mar 27 17:13:57 that nukes the nand Mar 27 17:13:59 =p Mar 27 17:14:02 yeah, *i figured* Mar 27 17:14:37 jtag time Mar 27 17:16:31 was i here or in #sheevaplug? Mar 27 17:16:58 here Mar 27 17:17:04 Well, I dunno about *you* in particular, but somebody with your nick was here a bit ago. Mar 27 17:17:14 it's still me, check nickserv Mar 27 17:17:19 mwester: he's identified for his name lol Mar 27 17:17:20 anyway, yay for jtag Mar 27 17:17:44 holy fuck i have to compile tons of shit D: Mar 27 17:17:52 for what? Mar 27 17:17:54 Never actually had to use jtag on the Sheevaplug -- yet. Mar 27 17:17:55 for os x Mar 27 17:18:05 gah. Mar 27 17:18:41 yay, there's a brew formula Mar 27 17:18:49 ^_^ Mar 27 17:18:53 ^_^ ^_^ ^_^ ^_^ Mar 27 17:22:57 holy fuck compiling boost is boring Mar 27 17:27:04 wtf is bjam? Mar 27 17:27:36 it's when you have morning wood, and you want your girlfriend to help out.. Mar 27 17:27:49 (bj in the am) Mar 27 17:28:02 lol Mar 27 17:28:03 anyway Mar 27 17:28:13 why doesn't nandtest warn you about this kind of thing? Mar 27 17:28:14 :( Mar 27 17:28:23 help nandtest Mar 27 17:28:29 nou Mar 27 17:29:12 anyway, fdisk warns you like 20 times Mar 27 17:29:40 it's assumed that if you're messing about in the uboot command line, you know what you're doing=p Mar 27 17:29:50 not exactly a place where the end-user is going to be playing around often Mar 27 17:30:07 i'm talking about the userland program Mar 27 17:30:18 where user=root Mar 27 17:30:29 Which is exactly why I'm trying to figure out the nand partitioning origin... so that end users don't have to mess with uboot when installing SlugOS on the Sheeva. Mar 27 17:30:34 :) Mar 27 17:31:00 i should've let nandtest finish, i had 2 bad sectors already Mar 27 17:31:23 (in the root fs, the first two partitions were perfect) Mar 27 17:34:56 kerio: i think 11 are gaurenteed to be bad Mar 27 17:34:58 or something Mar 27 17:35:05 why? :( Mar 27 17:35:20 due to the manufacturing process, they'll ship anything with less than 11 bad sectors Mar 27 17:35:32 if they only shipped with 0 they wouldn't have nearly any to ship Mar 27 17:36:01 oh, you're not under warranty if you have less than 12 Mar 27 17:36:02 which, they reserve a portion of the sectors for remapping bad ones Mar 27 17:36:19 hm, do i need the ftdi drivers if i have libftdi installed? Mar 27 17:36:30 tias Mar 27 17:38:05 :( you suck! Mar 27 17:38:34 hmm, what's the best uboot for a newit/globalscale sheevaplug as of now? Mar 27 17:38:53 built from git? Mar 27 17:42:18 why do we have multiple sources for uboot? Mar 27 17:42:33 we do? Mar 27 17:44:13 there's the one from marvell and the one from denx.de Mar 27 17:47:58 haha i'd have to install a crosscompiler Mar 27 17:48:20 yup Mar 27 17:48:34 the code sourcery one works good Mar 27 17:49:10 Tootoot222: crosscompile it for me plskthx Mar 27 17:54:28 Tootoot222: no huh :( Mar 27 17:54:36 kerio: what Mar 27 17:55:00 kerio: for guruplug or sheevaplug? Mar 27 17:55:05 sheeva Mar 27 17:58:00 anyway, apparently openocd works without having to set up the actual ftdi kernel ext Mar 27 17:59:38 kerio: http://www.mediafire.com/?vfqjp99iizbye4d Mar 27 18:00:09 yay ty Mar 27 18:00:17 .kwb? what's that? Mar 27 18:00:42 kirkwood boot? Mar 27 18:00:43 kiwi binary Mar 27 18:00:56 oh, i see Mar 27 18:00:58 or kirkwood binary Mar 27 18:01:03 should i just rename it to u-boot.bin then? Mar 27 18:01:18 yeah, rename to whatever the script wants to flash Mar 27 18:03:10 alright, reflashing Mar 27 18:03:10 cool Mar 27 18:03:20 hmm, do i also get a serial console through openocd? Mar 27 18:03:39 or do i need to install the kernel drivers to get a real device file for that? Mar 27 18:03:43 you can get an openocd console through openocd Mar 27 18:03:48 but you need a different file than the .kwb Mar 27 18:05:46 what file? :o Mar 27 18:05:56 i have the sheevaplug.cfg from the openocd install Mar 27 18:06:32 actually that's not the same thing you're talking about Mar 27 18:06:42 you can load uboot into memory through openocd Mar 27 18:06:51 yeah but that sucks Mar 27 18:06:55 but you need a different file than the .kwb Mar 27 18:07:05 but you don't have serial drivers Mar 27 18:07:05 hmm, do i get some kind of message from openocd when it has finished flashing? Mar 27 18:07:15 it should give you the prompt back Mar 27 18:07:18 i can install serial drivers Mar 27 18:07:22 or quit, if you're using the flashing script Mar 27 18:07:34 i'm doing openocd -f /usr/local/lib/openocd/board/sheevaplug.cfg -c init -c sheevaplug_reflash_uboot Mar 27 18:07:39 i don't know if it's going to exit Mar 27 18:07:48 yeah you need -c exit at the end Mar 27 18:08:04 alright, restarting Mar 27 18:08:13 now look at me nuking at least one vital sector of the NAND Mar 27 18:08:48 Tootoot222: do you have an account on openplug.org/plugwiki? you could add "-c exit" to http://www.openplug.org/plugwiki/index.php/Setting_Up_OpenOCD_Under_Linux#Example_2:_Reflashing_a_Bricked_U-Boot_.28Method_1.29 Mar 27 18:08:52 yay, it has finished :D Mar 27 18:13:27 kerio: done Mar 27 18:19:31 yay, i has boot Mar 27 18:20:50 U-Boot 2010.09-02612-g27fb783-dirty (Mar 27 2011 - 12:54:05) Mar 27 18:20:56 that's the right one, right? Mar 27 18:24:21 hrmpf, i can't delete x_bootargs_root Mar 27 18:34:02 x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2 THE FUCK IS THIS WHY CAN'T I DELETE IT Mar 27 18:35:47 alright, after a reset i managed to delete that Mar 27 18:43:58 kerio: look at the time =p Mar 27 18:44:12 i built it 20 minutes from when you booted it lol Mar 27 18:44:16 ofc it's the right one ;D Mar 27 18:44:19 yay Mar 27 18:44:40 Tootoot222: A+++ would nuke my sheevaplug's NAND and ask for help again Mar 27 18:47:13 alright, partitioning my 4gb SD Mar 27 18:47:21 i still don't know why i'm not using it as the rootfs, but meh Mar 27 18:48:44 i use the nand as the rootfs Mar 27 18:51:44 yeah, me too Mar 27 18:51:46 but i have a 4gb sd Mar 27 18:52:27 where does linux get the mtd partitioning? Mar 27 18:52:59 you pass mtdparts on the kernel line Mar 27 18:54:21 i don't Mar 27 18:55:03 if you don't it'll probably just pass some default that's baked into uboto Mar 27 19:08:24 Verifying Checksum ... Bad Data CRC wtf Mar 27 19:11:56 where should i load the kernel in ram on boot? Mar 27 19:12:14 Tootoot222: *poke* Mar 27 19:13:02 0x400000? 0x800000? Mar 27 19:26:47 kerio: never below 0x800000 Mar 27 19:26:53 uboot uses all the memory below that Mar 27 19:27:31 hm, isn't it weird that i have no mmc command? Mar 27 19:27:51 the kernel hangs before the root Mar 27 19:28:03 you used the wrong device node then Mar 27 19:28:17 i used /dev/mmcblk0p1 Mar 27 19:28:54 bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(u-boot),0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) root=/dev/mmcblk0p1 rootwait rw Mar 27 19:28:59 bootcmd=nand read 0x800000 0x100000 0x400000; bootm 0x800000; Mar 27 19:29:19 take off the rootwait Mar 27 19:29:27 and see what it finds Mar 27 19:29:55 still stuck Mar 27 19:30:22 do i need a command to start the mmc on the uboot side? Mar 27 19:30:49 you took off the rootwait but it didn't boot still? Mar 27 19:30:54 paste the logs Mar 27 19:32:45 http://paste.pocoo.org/show/360604/ Mar 27 19:33:26 at this point there's the latest kernel from SWL at 0x100000, uboot on 0x0 and nothing onwards Mar 27 19:33:43 there's a fresh debian install on the mmc, in the first primary partition Mar 27 19:34:08 ooh, do i need to tell linux what's the filesystem on the mmc? Mar 27 19:34:10 it's ext4 Mar 27 19:34:30 no that doesn't matter yet Mar 27 19:34:31 it hasn't booted Mar 27 19:34:41 i think i might have been having this problem with my sheeva too Mar 27 19:34:50 i think i ended up just using the pingtoo binary Mar 27 19:35:03 idk why it doesn't boot when it's compiled from the git repo Mar 27 19:35:10 it works on the guruplug Mar 27 19:35:28 ._. Mar 27 19:35:31 i am disappoint Mar 27 19:36:09 alright, reflashing Mar 27 19:36:12 at least i don't need openocd now Mar 27 19:40:17 great, it doesn't even connect to my tftpd now Mar 27 19:40:19 :| Mar 27 19:41:04 lol Mar 27 19:41:44 why, oh why didn't i buy a real computer for my home server ;_; Mar 27 19:42:02 because they're larger and use more power Mar 27 19:42:07 oh, right! Mar 27 19:42:29 and you are building character this way Mar 27 19:42:40 lol^ Mar 27 19:43:59 i blame Tootoot222's uboot Mar 27 19:44:24 just use the pingtoo one Mar 27 19:44:36 yeah, reflashed it (with openocd - i'm beginning to like it) Mar 27 19:45:51 incidentally there do seem to be some important differences between guruplug uboots and sheevaplug uboots Mar 27 19:46:01 e.g. guruplug uboot uses "machid" not "arcNumber" Mar 27 20:01:51 FUCKING FINALLY Mar 27 20:02:06 working? Mar 27 20:02:31 ...oh fuck, why do i have wheezy/sid installed instead of squeeze? :( Mar 27 20:03:13 meh Mar 27 20:03:17 i don't even care :D Mar 27 20:03:45 lol Mar 27 20:03:53 kerio: did you use the pingtoo uboot or what? Mar 27 20:04:14 yeah, that one booted Mar 27 20:04:17 after some cursing Mar 27 20:11:40 wtf? there's a red led inside the sheevaplug? Mar 27 20:11:45 :O Mar 27 20:11:58 is stuff going to explode? Mar 27 20:12:41 Uh oh - you did it now!! You triggered it! Mar 27 20:12:47 OSHI- Mar 27 20:12:55 better run while you've still got time! Mar 27 20:13:27 really though, why is there a red led there, and why can't i use it? Mar 27 20:14:07 W Mar 27 20:14:11 woops Mar 27 20:14:13 this is not vim Mar 27 20:19:55 srsly, i want to set all the leds to blink really really fast Mar 27 20:19:59 can i do that? Mar 27 20:20:37 sure Mar 27 20:20:50 just keep writing 1 and 0 alternatively into the proc node Mar 27 20:21:02 hehe Mar 27 20:21:18 the ones on the guruplug have a blink mode that does it automatically Mar 27 20:24:12 alright, sheevaplug successfully denuked Mar 27 20:31:04 #openplug, i love you Mar 27 20:32:45 ;D Mar 27 20:33:24 hm, the sheeva.with-linux.com script gives me some errors when erasing the NAND Mar 27 20:33:25 :( Mar 27 20:33:48 http://paste.pocoo.org/show/361082/ Mar 27 20:33:53 it looks like it's nothing serious, but still Mar 27 20:34:32 well you did just nuke your nand after all Mar 27 20:34:41 try run it again and see if it does the same error Mar 27 20:34:48 it does Mar 27 20:35:00 it looks like it's flash_eraseall that's causing problems Mar 27 20:35:05 when doing flash_erase manually, it works Mar 27 20:35:08 ic Mar 27 20:35:14 it's probably ok to ignore then Mar 27 20:35:20 see if it still boots after writing Mar 27 20:35:59 it boots, apparently Mar 27 20:36:07 hmm, apparently the rootdelay that i set now is waaaaaay too big Mar 27 20:36:14 i could've got away with 10 seconds Mar 27 20:36:19 it's 20 Mar 27 20:37:39 realistically you can set it to 3 and be fine Mar 27 20:40:19 i'm not sure how fast my usb drive's spinup is Mar 27 20:40:40 i'll probably dial it down to 10 Mar 27 20:45:40 woah, it took like 3 hours to have a usable system back Mar 27 20:45:42 ._. Mar 27 20:45:59 i suck as a sysadmin Mar 27 20:47:30 XD Mar 27 20:47:36 but now you know how to recover next time Mar 27 20:47:44 indeed Mar 27 21:02:40 and we're back to the usual bouncer :3 Mar 27 21:03:47 =) Mar 28 01:13:03 arrrrrgh ... I can't get minidlna to work ... everything seems to be in order but it still will not work. My PS3 can't even see it. Is another (temporary) media server causing it to not work? Mar 28 01:16:29 omg this is beyond annoying Mar 28 01:16:40 still nothing, I disabled minidlna on my router Mar 28 01:19:30 mijk: does it have to be minidlna? Mar 28 01:20:01 I dunno, I tried: ushare, mediatomb, gstreamer, minidlna Mar 28 01:20:06 nothing works Mar 28 01:20:29 just thought maybe port forwarding might have helped minidlna to work .. nada Mar 28 01:20:43 ushare works for my guruplug and TV Mar 28 01:20:51 reason I though minidlna might work is because that's what Tomato's using and it works Mar 28 01:21:07 maybe you just haven't configured it right Mar 28 01:21:13 probably Mar 28 01:21:40 I spent hours looking for missing packages and creating symbolic links to fool ushare into working Mar 28 01:21:52 lol.. Mar 28 01:22:07 i just emerged it on gentoo =p Mar 28 01:22:14 glad you find it funny, I still have a headache from that crap Mar 28 01:22:21 you're running gentoo on your guruplug? Mar 28 01:22:24 yup Mar 28 01:22:25 sheevaplug too Mar 28 01:23:03 ushare just fails thinking that eth0 and wlan0 are down Mar 28 01:23:08 no matter what I do Mar 28 01:28:24 I ran into the same problem with another server project I worked on, this time on x86 Mar 28 01:28:40 not a single media server worked Mar 28 01:30:05 I compiled ushare and minidlna on my guruplug Mar 28 01:30:10 have you tried coherence, ps3mediaserver, or rygel? Mar 28 01:30:16 no Mar 28 01:31:08 can they be run from shell? Mar 28 01:33:52 probably Mar 28 01:33:59 they're just daemons Mar 28 01:34:03 i don't see why they would have a gui Mar 28 01:34:10 maybe a webui, if anything Mar 28 01:34:24 but i'm pretty sure most of those are designed with running on a server in mind Mar 28 01:37:54 alirght, I'll give those a try Mar 28 01:50:56 wow, I dunno ... ps3mediaserver didn't work Mar 28 01:51:05 lol..? Mar 28 01:51:10 you're running all this on your guruplug? Mar 28 01:51:25 running what? Mar 28 01:51:31 the dlna servers Mar 28 01:52:05 yes Mar 28 01:53:32 have you tried running any of them on another computer? Mar 28 01:54:03 well I had an x86 server set up a while back and couldn't get multiple dlna servers to work on that either Mar 28 01:57:12 I can get PS3 Media Server to work on my PC Mar 28 01:57:36 so maybe it's just a configuration issue then? Mar 28 01:57:37 but the point of the plug is to offload as much as possible off the PC Mar 28 01:57:39 since the server does work Mar 28 01:57:42 maybe Mar 28 01:58:05 but the configuration for ushare and minidlna seems pretty straightforward Mar 28 01:58:20 simple yes or no or add a value Mar 28 02:03:17 there's no reason whatsoever why they are not working Mar 28 02:24:12 time to give up **** ENDING LOGGING AT Mon Mar 28 02:59:57 2011