Re: Cannot boot joyride-2200 from USB stick

2008-07-28 Thread Ton van Overbeek
Ton van Overbeek wrote:
> Deepak Saxena wrote:
>   
>> USB needs sd_mod which is still built into the kernel. Issue ended up 
>> being
>> that we need to load ohci-hcd, not ehci-scd. Working ramdisk @:
>>
>> http://dev.laptop.org/~dsaxena/olpcrd-2200-fixup.img
>>
>> ~Deepak
>>   
>> 
> Thanks Deepak.
> I am now at work away from my XO. Will try tonight and let you know if 
> it works for me.
>
> Ton
>   

As expected joyride-2200 does boot properly from USB with your fixed 
ramdisk.
However when I get to the initial screen to define the name of the computer
the mouse and keyboard are not working.
Looking at vt1 (Ctrl-Alt-F1) shows that the xserver does not load module 
evdev:
  (EE) module ABI minor version (1) is newer than server's version (0)
  (EE) Failed to load module "evdev" (module requirement mismatch, 0)
   .

Compared with booting the devel-ext3 joyride 2200 image from a SD card
(without the fixed ramdisk) -> Same behavior.

I had the same behavior (dead keyboard and mouse) in qemu, believe this 
was fixed in a later joyride by an xserver update.

Checked with booting todays devel-ext3 joyride-2224 from SD card: this 
build works OK,
I can even download most of the activites via control panel software update.

Now waiting till your ramdisk fix makes it into joyride, so you can 
close trac #7620.
Thanks again for fixing this.

Ton
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-28 Thread Ton van Overbeek
Deepak Saxena wrote:
> On Jul 26 2008, at 21:44, Ton van Overbeek was caught saying:
>   
>> Deepak Saxena wrote:
>> 
>>> Sigh++ Bought a 1G microSD with a usb adapter and it happens to be one
>>> that OpenFirmware cannot talk to so I can't boot off it. Just wanted
>>> to give you an update that this is still on my plate, just seems to be
>>> hitting every roadblock in the way of solving it. :O
>>>
>>> ~Deepak
>>>  
>>>   
>> One more data point.
>> After some initial peeking in the ramdisk, I copied the 2212 ext3 image 
>> to a SD card,
>> inserted it in the XO and tried to boot from it.
>> That works !!!
>> Of course, no activities since /home/olpc is also on the SD card and the 
>> jffs does not get mounted.
>> So it seems USB is the problem. There is one warning message early in 
>> the boot at approximately
>> 2 seconds about using an obsolete function in the sd driver, to use 
>> bus-methods instead.
>> I am writing from memory, so this is not exact. Could this have 
>> something to do with it, since the
>> sd driver is needed for USB?
>> 
>
> USB needs sd_mod which is still built into the kernel. Issue ended up being
> that we need to load ohci-hcd, not ehci-scd. Working ramdisk @:
>
> http://dev.laptop.org/~dsaxena/olpcrd-2200-fixup.img
>
> ~Deepak
>   
Thanks Deepak.
I am now at work away from my XO. Will try tonight and let you know if 
it works for me.

Ton
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-28 Thread Deepak Saxena
On Jul 26 2008, at 21:44, Ton van Overbeek was caught saying:
> Deepak Saxena wrote:
> >Sigh++ Bought a 1G microSD with a usb adapter and it happens to be one
> >that OpenFirmware cannot talk to so I can't boot off it. Just wanted
> >to give you an update that this is still on my plate, just seems to be
> >hitting every roadblock in the way of solving it. :O
> >
> >~Deepak
> >  
> One more data point.
> After some initial peeking in the ramdisk, I copied the 2212 ext3 image 
> to a SD card,
> inserted it in the XO and tried to boot from it.
> That works !!!
> Of course, no activities since /home/olpc is also on the SD card and the 
> jffs does not get mounted.
> So it seems USB is the problem. There is one warning message early in 
> the boot at approximately
> 2 seconds about using an obsolete function in the sd driver, to use 
> bus-methods instead.
> I am writing from memory, so this is not exact. Could this have 
> something to do with it, since the
> sd driver is needed for USB?

USB needs sd_mod which is still built into the kernel. Issue ended up being
that we need to load ohci-hcd, not ehci-scd. Working ramdisk @:

http://dev.laptop.org/~dsaxena/olpcrd-2200-fixup.img

~Deepak

-- 
Deepak Saxena - Kernel Developer - [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-26 Thread Ton van Overbeek
Deepak Saxena wrote:
> Sigh++ Bought a 1G microSD with a usb adapter and it happens to be one
> that OpenFirmware cannot talk to so I can't boot off it. Just wanted
> to give you an update that this is still on my plate, just seems to be
> hitting every roadblock in the way of solving it. :O
>
> ~Deepak
>   
One more data point.
After some initial peeking in the ramdisk, I copied the 2212 ext3 image 
to a SD card,
inserted it in the XO and tried to boot from it.
That works !!!
Of course, no activities since /home/olpc is also on the SD card and the 
jffs does not get mounted.
So it seems USB is the problem. There is one warning message early in 
the boot at approximately
2 seconds about using an obsolete function in the sd driver, to use 
bus-methods instead.
I am writing from memory, so this is not exact. Could this have 
something to do with it, since the
sd driver is needed for USB?

Regards

Ton van Overbeek
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-25 Thread Ton van Overbeek
On Fri, Jul 25, 2008 at 1:40 AM, Deepak Saxena <[EMAIL PROTECTED]> wrote:
> On Jul 24 2008, at 11:46, Deepak Saxena was caught saying:
>> > Tried with your version of 14:57 (2720066 bytes). Same result. Same
>> > messages, still failure to mount /dev/sda1.
>> > Apologies for the disappointing result. Do we need more/other scsi
>> > modules? Can we get more debug info from mount?
>>
>> We shouldn't need anything else from my experimenting. I need to run for a 
>> few
>> hours but will look at this when I return.
>
> :( Sigh. :( I just realized I don't have a 1G USB stick at the moment. My 1G
> XD card does not seem to work properly with my card reader, so writes to
> it do not properly complete and I can't copy the boot image over. This bug
> is high on my priority list, so I'll be running to the store and getting
> one tommorrow.
>
> ~Deepak
>

One more datapoint.
Tried to boot joyride-2207 on my XO-1 from USB using the devel-ext3 image.
Good news: no more missing usb modules.
Bad news: still the same mount problem.
So I can confirm olpcrd is fixed in the later joyrides.
Waiting for more news 

Ton van Overbeek
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-24 Thread Ton van Overbeek
Deepak Saxena wrote:
> On Jul 24 2008, at 14:06, Ton van Overbeek was caught saying:
>   
>> Tried your updated ramdisk, still no boot.
>> No more missing modules, but the mount still fails in the same way.
>> USB Mass Storage support is now properly loaded. Here is an excerpt from 
>> the boot screen:
>> -
>> [5.540762] usbcore: registered new ineterface driver usbfs
>> [5.553912] usbcore: registered new interface driver hub
>> [5.564065] usbcore: registered new device driver usb
>> [5.585768] usbcore: registered new interface driver libusual
>> [5.601305] Initializing USB Mass Storage driver...
>> [5.613938] usbcore: registered new interface driver usb-storage
>> [5.619927] USB Mass Storage support registered.
>> [5.630239] modprobe used greatest stack depth: 2888 bytes left
>> mount: mounting /dev/sda1 on /sysroot failed: No such device or address
>> [   10.904898] mount used greatest stack depth: 2772 bytes left
>> Traceback (most recent call last:)
>>     
>> [   11.239467] init used greatest stack depth: 2708 bytes left
>>   
>> ---
>> Note that it takes about 5 seconds for mount to fail.
>> Something wrong with /dev or /sysroot in the ram disk 
>> 
>
> Can you try with the updated olpcrd at the same URL? We're also missing 
> sg.ko. I've added it to the ramdisk along with the changes to load it.
> If this works for you, we'll push into another build.
>
> The 5 seconds is b/c we sleep to give disks time to spin up.
>
> Thanks,
> ~Deepak
>   

Tried with your version of 14:57 (2720066 bytes). Same result. Same 
messages, still failure to mount /dev/sda1.
Apologies for the disappointing result. Do we need more/other scsi 
modules? Can we get more debug info from mount?

Ton van Overbeek
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-24 Thread Ton van Overbeek
Deepak Saxena wrote:
> On Jul 24 2008, at 08:07, Deepak Saxena was caught saying:
>   
>> On Jul 24 2008, at 09:37, Ton van Overbeek was caught saying:
>> 
>>> I did *not* copy it to /versions/boot/current/boot, since it never 
>>> completed the
>>> boot from the USB stick.
>>>
>>> I copied your modified ramdisk to /boot on the USB disk, renamed it to
>>> olpcrd-2.6.25-deepak-fix.img and changed the olpcrd.img sym link to
>>> point to it.
>>>
>>> The USB boot still does not succed, but we are a bit further.
>>> Now it is complaining about a missing libusual.ko:
>>> WARNING: Could not open 
>>> '/lib/modules/2.6.25-20080722.2.olpc.d86980aeb8d0adb/kernel/drivers/usb/storage/libusual.ko':
>>>  
>>> No such file or directory
>>> I get fewer warnings about missing symbols in usb-storage (now only four):
>>> storage_usb_ids, usb_usual_clear_presetn, usb_usual_check_type and 
>>> usb_usual_set_present.
>>> But the end result is still the same: cannot mount /dev/sda1 on /sysroot.
>>>
>>> Could you make (yet) an other fixed ram disk which I can try?
>>>   
>> Yep.
>> 
>
> OK, I've uploaded a new olpcrd with libusual to the same URL.
>
>   
>>> Other question, should this be entered in trac, and is it blocking for 
>>> 8.2.0 ?
>>>   
>> I've opened #7620 to track this. Definetely a blocker.
>> 
>
> Scott has added the missing modules and we should see it fixed in the next 
> joyride.
>
> ~Deepak
>   

Tried your updated ramdisk, still no boot.
No more missing modules, but the mount still fails in the same way.
USB Mass Storage support is now properly loaded. Here is an excerpt from 
the boot screen:
-
[5.540762] usbcore: registered new ineterface driver usbfs
[5.553912] usbcore: registered new interface driver hub
[5.564065] usbcore: registered new device driver usb
[5.585768] usbcore: registered new interface driver libusual
[5.601305] Initializing USB Mass Storage driver...
[5.613938] usbcore: registered new interface driver usb-storage
[5.619927] USB Mass Storage support registered.
[5.630239] modprobe used greatest stack depth: 2888 bytes left
mount: mounting /dev/sda1 on /sysroot failed: No such device or address
[   10.904898] mount used greatest stack depth: 2772 bytes left
Traceback (most recent call last:)
     
[   11.239467] init used greatest stack depth: 2708 bytes left
   
---
Note that it takes about 5 seconds for mount to fail.
Something wrong with /dev or /sysroot in the ram disk 

I'll try the next joyride (2205 ?) too.

My firmware is now Q2E11 (got updated during one of these tests when my 
xo-1 was on net power)

Ton van Overbeek



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-24 Thread Deepak Saxena
On Jul 24 2008, at 08:07, Deepak Saxena was caught saying:
> On Jul 24 2008, at 09:37, Ton van Overbeek was caught saying:
> > I did *not* copy it to /versions/boot/current/boot, since it never 
> > completed the
> > boot from the USB stick.
> > 
> > I copied your modified ramdisk to /boot on the USB disk, renamed it to
> > olpcrd-2.6.25-deepak-fix.img and changed the olpcrd.img sym link to
> > point to it.
> > 
> > The USB boot still does not succed, but we are a bit further.
> > Now it is complaining about a missing libusual.ko:
> > WARNING: Could not open 
> > '/lib/modules/2.6.25-20080722.2.olpc.d86980aeb8d0adb/kernel/drivers/usb/storage/libusual.ko':
> >  
> > No such file or directory
> > I get fewer warnings about missing symbols in usb-storage (now only four):
> > storage_usb_ids, usb_usual_clear_presetn, usb_usual_check_type and 
> > usb_usual_set_present.
> > But the end result is still the same: cannot mount /dev/sda1 on /sysroot.
> > 
> > Could you make (yet) an other fixed ram disk which I can try?
> 
> Yep.

OK, I've uploaded a new olpcrd with libusual to the same URL.

> > Other question, should this be entered in trac, and is it blocking for 
> > 8.2.0 ?
> 
> I've opened #7620 to track this. Definetely a blocker.

Scott has added the missing modules and we should see it fixed in the next 
joyride.

~Deepak

-- 
Deepak Saxena - Kernel Developer - [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-24 Thread Deepak Saxena
On Jul 24 2008, at 09:37, Ton van Overbeek was caught saying:
> I did *not* copy it to /versions/boot/current/boot, since it never 
> completed the
> boot from the USB stick.
> 
> I copied your modified ramdisk to /boot on the USB disk, renamed it to
> olpcrd-2.6.25-deepak-fix.img and changed the olpcrd.img sym link to
> point to it.
> 
> The USB boot still does not succed, but we are a bit further.
> Now it is complaining about a missing libusual.ko:
> WARNING: Could not open 
> '/lib/modules/2.6.25-20080722.2.olpc.d86980aeb8d0adb/kernel/drivers/usb/storage/libusual.ko':
>  
> No such file or directory
> I get fewer warnings about missing symbols in usb-storage (now only four):
> storage_usb_ids, usb_usual_clear_presetn, usb_usual_check_type and 
> usb_usual_set_present.
> But the end result is still the same: cannot mount /dev/sda1 on /sysroot.
> 
> Could you make (yet) an other fixed ram disk which I can try?

Yep.

> Other question, should this be entered in trac, and is it blocking for 
> 8.2.0 ?

I've opened #7620 to track this. Definetely a blocker.

~Deepak


-- 
Deepak Saxena - Kernel Developer - [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-24 Thread Ton van Overbeek
Deepak Saxena wrote:
> On Jul 23 2008, at 22:30, Ton van Overbeek was caught saying:
>   
>> Booting starts, but mounting /dev/sda1 on /sysroot fails because the 
>> usbcore.ko module
>> needed by usb-storage.ko cannot be found.
>> 
>
> Our initramfs is missing usbcore and hcd-ehci. I've uploaded a manually 
> fixed version @:
>
> http:/dev.laptop.org/~dsaxena/olpcrd.img
>
> Just copy this over /versions/boot/current/boot olpcrd.img and it should work
> (note that I haven't actually tested this).
>
> I'm not sure how to permanently fix this as I'm not sure where in the build
> the modules get pulled in...
>
> ~Deepak
>   
I did *not* copy it to /versions/boot/current/boot, since it never 
completed the
boot from the USB stick.

I copied your modified ramdisk to /boot on the USB disk, renamed it to
olpcrd-2.6.25-deepak-fix.img and changed the olpcrd.img sym link to
point to it.

The USB boot still does not succed, but we are a bit further.
Now it is complaining about a missing libusual.ko:
WARNING: Could not open 
'/lib/modules/2.6.25-20080722.2.olpc.d86980aeb8d0adb/kernel/drivers/usb/storage/libusual.ko':
 
No such file or directory
I get fewer warnings about missing symbols in usb-storage (now only four):
storage_usb_ids, usb_usual_clear_presetn, usb_usual_check_type and 
usb_usual_set_present.
But the end result is still the same: cannot mount /dev/sda1 on /sysroot.

Could you make (yet) an other fixed ram disk which I can try?

Other question, should this be entered in trac, and is it blocking for 
8.2.0 ?

Ton van Overbeek
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Cannot boot joyride-2200 from USB stick

2008-07-23 Thread Deepak Saxena
On Jul 23 2008, at 22:30, Ton van Overbeek was caught saying:
> Hello,
> 
> My xo-1 is currently on build 708.
> For testing joyride-2200 I did not want to reflash yet, but boot from a 
> USB stick instead.
> So I downloaded the image from 
> http://xs-dev.laptop.org/~cscott/xo-1/streams/joyride/build2200/devel_ext3/xo-1-olpc-stream-joyride-devel_ext3.img.bz2,
>  
> 
> unzipped it and copied it to a 1 GB Sandisk USB stick.
> Booting with extended messages (X game key pressed) shows that OFW finds 
> my developer key
> in the main flash, finds the OS on the USB, does not update the firmware 
> (no external power)
> and then loads the ramdisk.
> 
> Booting starts, but mounting /dev/sda1 on /sysroot fails because the 
> usbcore.ko module
> needed by usb-storage.ko cannot be found.
> 
> Some of the messages are (copying manually from the xo-1 screen and 
> skipping the stack depth messages):
> --
> FATAL: Error inserting usb-storage 
> (/lib/modules/2.6.25-20080722.2.olpc.d86980aeb8d0adb/kernel/drivers/usb/storage/usb-storage.ko):
>  
> Unknown symbol in module, or unknown parameter (see dmesg)
> mount: mounting /dev/sda1 on /sysroot failed: No such device or address
> Traceback (most recent call last):
>   File "/init", line 131, in 
> lease_writer, run_init)
>   File "/antitheft.py", line 31, in run
> return run_init_callback()
>   File */init", line 103, in run_init
> root_mounted(xo, boothpath).__enter__() # hack to re-mount root
>   File "/initutil.py", line 120, in __enter__
> check_call({'/bin/mount','-n','-o',access]+extra+[dev,'/sysroot'])
>   File "/usr/lib/python2.5/subprocess.py", line 461, in check_call
> raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['/bin/mount, '-n', '-o', 'ro', 
> '/dev/sda1', '/sysroot']' returned non-zero exit status 255
> 
> 
> Is this (booting from USB) supposed to work? Has it ever worked?
> Or am I missing something?
> It seems that usbcore.ko has to be available early in the boot, but 
> cannot be found.

USB boot should work and has worked in the past. I'll look into this.

~Deepak

-- 
Deepak Saxena - Kernel Developer - [EMAIL PROTECTED]
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Cannot boot joyride-2200 from USB stick

2008-07-23 Thread Ton van Overbeek
Hello,

My xo-1 is currently on build 708.
For testing joyride-2200 I did not want to reflash yet, but boot from a 
USB stick instead.
So I downloaded the image from 
http://xs-dev.laptop.org/~cscott/xo-1/streams/joyride/build2200/devel_ext3/xo-1-olpc-stream-joyride-devel_ext3.img.bz2,
 

unzipped it and copied it to a 1 GB Sandisk USB stick.
Booting with extended messages (X game key pressed) shows that OFW finds 
my developer key
in the main flash, finds the OS on the USB, does not update the firmware 
(no external power)
and then loads the ramdisk.

Booting starts, but mounting /dev/sda1 on /sysroot fails because the 
usbcore.ko module
needed by usb-storage.ko cannot be found.

Some of the messages are (copying manually from the xo-1 screen and 
skipping the stack depth messages):
--
FATAL: Error inserting usb-storage 
(/lib/modules/2.6.25-20080722.2.olpc.d86980aeb8d0adb/kernel/drivers/usb/storage/usb-storage.ko):
 
Unknown symbol in module, or unknown parameter (see dmesg)
mount: mounting /dev/sda1 on /sysroot failed: No such device or address
Traceback (most recent call last):
  File "/init", line 131, in 
lease_writer, run_init)
  File "/antitheft.py", line 31, in run
return run_init_callback()
  File */init", line 103, in run_init
root_mounted(xo, boothpath).__enter__() # hack to re-mount root
  File "/initutil.py", line 120, in __enter__
check_call({'/bin/mount','-n','-o',access]+extra+[dev,'/sysroot'])
  File "/usr/lib/python2.5/subprocess.py", line 461, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/bin/mount, '-n', '-o', 'ro', 
'/dev/sda1', '/sysroot']' returned non-zero exit status 255


Is this (booting from USB) supposed to work? Has it ever worked?
Or am I missing something?
It seems that usbcore.ko has to be available early in the boot, but 
cannot be found.

Any hints on how to proceed, or instructions on providing more data are 
appreciated.

Regards and hoping to be able to test joyride-2200 soon.

Ton van Overbeek


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel