**** BEGIN LOGGING AT Fri Aug 07 02:59:57 2009 Aug 07 04:22:15 okay, so I want to start loading my kernel from a hard drive in an external USB enclosure Aug 07 04:22:22 and I want to use that same enclosure for the rootfs Aug 07 04:22:28 and hrmmm Aug 07 04:22:40 from reading the forums, giving the drive time to spin up seems to be a problem for this Aug 07 04:22:55 wonder if there's a "sleep" command in U-Boot... Aug 07 04:24:12 and tinker-f595_, I did read http://plugcomputer.org/plugforum/index.php?topic=528.0 Aug 07 04:24:16 and it doesn't apply to this Aug 07 04:25:11 see http://plugcomputer.org/plugforum/index.php?topic=532.msg3226#msg3226 Aug 07 04:25:54 I did see that as well Aug 07 04:26:05 well Aug 07 04:26:08 here's a thought Aug 07 04:26:23 that works... Aug 07 04:26:43 do you have an external enclosure or an external hard drive? Aug 07 04:26:53 external enclosure Aug 07 04:27:02 I'm guessing that's what makes the difference Aug 07 04:27:18 all the posts from people having trouble getting U-Boot to load a kernel from an external drive Aug 07 04:27:20 debio264: you need a decent quality one with a decent chipset Aug 07 04:27:25 have external drives, not enclosures Aug 07 04:27:33 which drive? Aug 07 04:27:57 hrmm? Aug 07 04:28:16 hey it is your drive, you should know ;) Aug 07 04:28:30 oh Aug 07 04:28:35 well, I did know Aug 07 04:28:41 then I swapped it with another one Aug 07 04:28:49 what I'm thinking Aug 07 04:28:58 well same thing should work Aug 07 04:29:02 is that when U-Boot scans for storage devices Aug 07 04:29:10 an enclosure will always show up as one Aug 07 04:29:20 but an external drive won't show up unless the drive is spinning Aug 07 04:29:27 nope Aug 07 04:29:30 wrong Aug 07 04:29:42 because there's only one chipset in there Aug 07 04:29:48 well, then how do you explain http://plugcomputer.org/plugforum/index.php?topic=131.0 Aug 07 04:31:01 He missed a command. I guess you did not read my code carefully. Aug 07 04:31:31 setenv bootcmd 'usb start; ext2load usb 0:1 0x8000000 /boot/uImage; bootm 0x8000000; reset' Aug 07 04:31:32 setenv bootargs 'console=ttyS0,115200 root=/dev/sda5 rootdelay=10 rw' Aug 07 04:31:33 they use fatload instead of ext2load... Aug 07 04:31:45 does not matter Aug 07 04:32:03 notice the end of the bootargs Aug 07 04:32:10 does not matter Aug 07 04:32:16 the problem isn't Linux finding the drive Aug 07 04:32:22 rootdelay=10 Aug 07 04:32:22 the problem is U-Boot finding the drive Aug 07 04:32:34 that won't do anything to help U-Boot Aug 07 04:32:43 u-Boot sould find the drive if you give it the correct commands Aug 07 04:33:01 well, that's a thread of people for which it doesn't find the drive Aug 07 04:33:05 what happens when you are at the u-Boot command prompt and do the following Aug 07 04:33:06 unless the drive is already spinning Aug 07 04:33:24 rootdelay gives it time to spin up Aug 07 04:33:29 time is in seconds Aug 07 04:33:39 so 10 represents 10 seconds Aug 07 04:33:42 anyway Aug 07 04:33:46 no, because the rootdelay doesn't have anything to do with U-Boot Aug 07 04:33:49 at the u-boot command Aug 07 04:33:51 it's an argument to the Linux Kernel Aug 07 04:33:55 usb start Aug 07 04:33:59 and it makes Linux wait 10 seconds before mounting root Aug 07 04:34:06 it does nothing to help U-Boot find the drive Aug 07 04:35:15 now, if there was an equivalent for rootdelay that makes U-Boot wait a certain number of seconds for drives to spin up Aug 07 04:35:19 that would work Aug 07 04:35:27 but making Linux wait doesn't help U-Boot at all Aug 07 04:37:04 I left rootdelay out on purpose when I was experimenting and it could not find U-boot on the drive Aug 07 04:37:09 sorry Aug 07 04:37:11 it could not find Uimage on the drive Aug 07 04:37:13 trying to eat and type Aug 07 04:37:15 and you notice the reset ? Aug 07 04:37:17 reset will happen if it hangs and does not boot Aug 07 04:37:19 so the drive should be spinning then Aug 07 04:37:23 anyway Aug 07 04:37:25 what happens Aug 07 04:37:27 when you do usb start Aug 07 04:37:31 then use the usb command to inspect the drive parameters Aug 07 04:38:14 debio264: was working into the wee hours and had a long day today so kind of groggy at the moment Aug 07 04:38:19 ah Aug 07 04:38:21 too early to go to sleep though Aug 07 04:39:22 at the u-boot command prompt type help usb Aug 07 04:39:37 should see a bunch of different options Aug 07 04:39:54 will help you investigate if you can see the physical drive Aug 07 04:40:45 well Aug 07 04:41:13 does a USB hard drive start spinning up when you do `usb start` ? Aug 07 04:41:27 but you will need to do usb start first to turn on the USB subsystem Aug 07 04:41:39 because if it does, you could do something like Aug 07 04:41:51 `usb start; sleep 5; [load kernel and boot]` Aug 07 04:42:03 U-Boot does have a sleep command, it appears Aug 07 04:42:20 I'll have to investigate this tomorrow Aug 07 04:42:33 I do have a decent Rosewill enclosure Aug 07 04:42:38 I have all the u-boot options for the sheevaplug on another system Aug 07 04:42:40 but I'll see whether it cooperates or not Aug 07 04:44:39 so when you boot from the nand and have the drive plugged in does it spin up okay? Aug 07 04:45:26 it spins up Aug 07 04:45:33 okay Aug 07 04:45:46 but I haven't checked yet whether U-Boot can detect it immediately Aug 07 04:45:49 any idea how long it takes to spin up? Aug 07 04:46:00 less than 5 seconds for sure Aug 07 04:46:15 what does lsusb -v show Aug 07 04:46:37 I don't have it installed, one sec Aug 07 04:46:52 apt-get install usbutils Aug 07 04:47:01 I'm on Arch Aug 07 04:47:05 ah Aug 07 04:47:18 different Aug 07 04:47:25 the ARM package set is pretty small right now Aug 07 04:47:38 but I like Arch too much to leave XD Aug 07 04:49:48 I need to get Fed 11 on my Open RD client...I have a porting project for that Aug 07 04:50:10 so why do you like Arch? Aug 07 04:50:16 it's simple Aug 07 04:50:19 painfully simple Aug 07 04:50:39 in what sense? Aug 07 04:50:44 nothing is really done automatically Aug 07 04:50:50 there are no auto-configuration scripts Aug 07 04:51:00 there's one major system config file Aug 07 04:51:09 the packages are literally tar archives Aug 07 04:51:20 and in rare cases there'll be a script to fix up a file once it's installed Aug 07 04:51:36 that sounds like it would be inconvenient Aug 07 04:51:49 but on the other hand, when something breaks, it's generally trivial to fix it Aug 07 04:52:17 and when an Arch package is somehow broken Aug 07 04:52:29 it's generally fixed very quickly Aug 07 04:52:35 because it's not a problem with Arch Aug 07 04:52:43 it's a problem with the upstream application code Aug 07 04:52:55 Arch only patches upstream code on extremely rare cases Aug 07 04:56:28 ubuntu and I assume debian do strange things Aug 07 04:56:38 yes Aug 07 04:57:03 their packages are gigantic patches that modify a source directory to produce binary packages Aug 07 04:57:09 they have done whacky stuff with apache Aug 07 04:57:27 and to keep versions stable, they backport features and security fixes Aug 07 04:57:38 oh, that's the other thing, Arch doesn't have releases Aug 07 04:57:39 so if you follow the apache docs it becomes very difficult to configure Aug 07 04:57:46 yea Aug 07 04:57:53 you just kinda install the module packages you want Aug 07 04:57:59 and hope their configuration magic works Aug 07 04:58:14 whose? Aug 07 04:58:24 Debian/Ubuntu Aug 07 05:00:52 Bus 001 Device 002: ID 04fc:0c25 Sunplus Technology Co., Ltd SATALink SPIF225A Aug 07 05:01:00 except they do weird stuff with confgi stuff Aug 07 05:01:15 lsusb -v Aug 07 05:01:27 I'll have to pastebin it then Aug 07 05:01:33 ok Aug 07 05:03:23 http://pastebin.com/m4f2cd613 Aug 07 05:06:35 so it sees it okay Aug 07 05:07:07 yea Aug 07 05:07:24 I can mount it within Linux with no problem Aug 07 05:07:36 tomorrow I'm going to be trying to get it to run as my root though Aug 07 05:07:51 so I'll see how that goes Aug 07 05:08:36 ok Aug 07 05:08:50 may be busy next few days Aug 07 05:09:19 well need to work on some chores ... Aug 07 05:09:45 ah Aug 07 05:17:47 debio264: here what my lsusb -v output http://pastebin.com/m1ee603e7 Aug 07 05:20:32 definitely different hardware but the types look like they're all the same Aug 07 05:20:56 except one line Aug 07 05:21:19 let me find it Aug 07 05:22:32 never mind...bad eye ... Aug 07 05:22:42 looked at the wrong lines Aug 07 05:23:36 so wonder why mine boots ok .... Aug 07 05:23:44 and you have a problem Aug 07 05:23:58 iConfiguration, iInterface, and bInterval are different Aug 07 05:24:06 which u-Boot and uImage are you using Aug 07 05:24:50 the 2.6.30.4 ones from sheeva.with-linux.org Aug 07 05:25:03 it has the info on the root hub, I just didn't paste it Aug 07 05:25:22 your iConfiguration is 0 Aug 07 05:25:32 mine is 4 (bulk only) Aug 07 05:25:38 wonder if that's significant Aug 07 05:26:00 well Aug 07 05:26:07 I guess I'll find out tomorrow Aug 07 05:26:15 I need to get some sleep XD Aug 07 05:26:26 good luck! Aug 07 05:27:06 it should be fun Aug 07 05:27:29 it'll be kind of boring when I get the Sheeva running the way I want it to Aug 07 05:27:31 but oh well Aug 07 05:27:34 I started a wiki page for HDD compatibly. Need to paste the link to the forum when I remember Aug 07 05:27:43 ah Aug 07 05:27:45 well Aug 07 05:27:53 debio264: you can always find something new to do with it Aug 07 05:27:53 I'll see if the sleep command works tomorrow Aug 07 05:28:08 and if it does, I'll recommend it on that thread of people with broken HDDs Aug 07 05:28:18 probably Aug 07 05:28:30 night Aug 07 05:28:36 night Aug 07 06:51:02 ron_: lool at dooz.org would be great Aug 07 10:32:00 I'm waiting for the next version of the sheeva Aug 07 10:50:41 hey all Aug 07 10:50:49 i finally received my sheeva plug today *yeah* Aug 07 10:51:16 just a quick question: when u shake it a little, there is something "falling around" inside it...is this normal? should i open it? Aug 07 10:51:50 BlixaWillBargeld: no, it's not normal Aug 07 10:51:58 i think so Aug 07 10:52:02 but the plug is working Aug 07 10:52:09 just sshd to it Aug 07 10:55:48 its easy to take apart and find out what's inside, but there should be nothing rattling around inside there! Aug 07 10:55:57 think so Aug 07 10:56:08 im currently searching for a screwdriver to take a look Aug 07 10:56:53 the insides are quite sturdy, but be very paranoid about about static electricity Aug 07 11:33:23 @dattaway: thanks Aug 07 11:33:25 had it open Aug 07 11:37:05 the inside-cover was flying around Aug 07 11:37:12 now its working perfectly :) Aug 07 12:08:38 theres a next version of the sheeva? Aug 07 12:08:45 < dattaway> I'm waiting for the next version of the sheeva Aug 07 12:52:00 i love this plug :-) Aug 07 12:52:09 the question is: to debian or not to debian? Aug 07 13:10:52 wohoo :_) Aug 07 22:32:03 Hi, I'm trying to find a statically linked imagemagick convert for Kirkwood, apt-get install wants to bring in 100's of MB of useless junk :-( Aug 07 23:00:35 just use the devel kit and cross-compile on a PC ? Aug 07 23:03:04 that wasa where I was thinking I would end up. I was hoping not to have to dip my toes in the scary world of cross compiling Aug 07 23:11:33 they make it pretty easy Aug 07 23:17:44 easy if you have linux n the desktop installed perhaps, but desktop linux sucks IMHO, so I'm only windows.. Aug 07 23:18:04 gonna try this livecd: http://downloads.kuroboxwiki.org/ Aug 07 23:35:57 what's that liveCD? Aug 08 01:03:03 hmmm Aug 08 01:58:49 okay Aug 08 01:59:15 I'm trying to get the plug to load a kernel from my hard drive in an external enclosure Aug 08 01:59:27 and... I'm getting an invalid partition error Aug 08 02:05:34 the good news is that U-Boot is waiting for the drive to spin up before deciding whether it's a storage device Aug 08 02:05:45 dunno if that's due to U-Boot or the enclosure Aug 08 02:08:21 gah, I'll have to investigate it later **** ENDING LOGGING AT Sat Aug 08 02:59:57 2009