linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: [linux-usb] USB problems on Lombard Powerbook ... and more
@ 2000-04-20  0:06 Dunlap, Randy
  2000-04-20 14:27 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Dunlap, Randy @ 2000-04-20  0:06 UTC (permalink / raw)
  To: 'Daniel Gonzalez', LinuxPPC Dev List, Linux usb


Hi,

I'll try to answer some of these.  I expect linuxcare.au
to jump in here also.

  v
  v (below)
  v

> From: Daniel Gonzalez [mailto:daniel.gonzalez@pandora.be]

> I am struggling with my USB port (I have a 1999 Lombard PowerBook G3
> (PPC 750)).
> What I want to have is a connection to my cool 250 Zip USB.
>
> I have the following problems:
>
> 1.
>
> (kernel 2.2.15pre17 compiles fine, with usb modules. I think
> the kernel I am using
> has a USB backport coming from 2.3. Actually I got these sources from
> linuxcare - see point 2)

Some things below make me think that whatever you have
is not very recent, so the Linux USB Guide and
current email threads don't necessarily apply to your
USB source code.

> When I try to mount the Zip drive, it fails:
>
[snip]
>
> [root]# cat drivers
> usb_scsi  <<<<<<<<<<<<<<<<<<<<<<<< OLD driver name
> hub
>
> I check the scsi tree:
> [root]# cat /proc/scsi/scsi
> Attached devices: none
> Since nothing is there, I issue the command mentioned in
> "The Linux USB sub-system" document:
> [root]#  echo "scsi add-single-device 1 0 0 0" > /proc/scsi/scsi
> [root]# cat /proc/scsi/scsi
> Attached devices: none
>
> ... So the command had no effect (sb knows why???)

Do you have SCSI support in your kernel?  You'll need it.
That seems to be the piece that's missing (along with
more recent USB code).

> More output in case it is useful:
>
[snip]
>
> [root]# lsmod
> Module                  Size  Used by
> usb-scsi               16068   1
> usb-ohci-hcd           21916   0  (unused) <<<<<< You DON'T need both
> usb-ohci               27236   1           <<<<<< of these.
> hub                     5100   0  (unused) <<<<<< This is no longer
                                             <<<<<< its own module.
> usbcore                31456   0  [usb-scsi usb-ohci-hcd usb-ohci hub]
>
> I also attach the /var/log/messages output.
>
[snip]
>
> 2. <<<snip>>>(For the PPC people)
>
> 3.  The so often-mentioned usbdevfs is not available in my system.
> In the The Linux USB sub-system" document they mention that
> I should issue the command:
>
> mount -t usbdevfs none /proc/bus/usb

Your USB code isn't recent.  This Linux USB HOWTO (Guide)
is very up-to-date.  It doesn't apply to the USB code that
you are using.  And you don't need to use this command
since you already have /proc/bus/usb/{devices,drivers}.

> I can not because I don't have usbdevfs (you can see that in
> a previous output).
> But this seems not to be an issue since my /proc/bus/usb
> directory looks fine.
>
> Here you have a list of my mounted volumes. Why is/proc/bus/usb not
> mentioned?

Maybe because your USB source code doesn't implement usbdevfs ???

> [root]# mount
> /dev/hda8 on / type ext2 (rw)
> none on /proc type proc (rw)
> none on /dev/pts type devpts (rw,mode=0622)
> /dev/hda10 on /mnt/shared type hfs (rw)
>
> 4. <<<snip>>>
>
> 5. Curiosity:
> Is the linux tree completely centralized? I mean, the intel,
> Alpha, PPC ... sources
> are all kept, mantained and developed in a centralized way, or do we
> have several linuxes wandering around ?

Yes (centralized).  Yes (several wandering around).
Linus maintains the blessed tree for all architectures.
Development trees can and do also exist elsewhere,
like PPC, Sparc, ARM, etc.  They will eventually get merged
back into the Linus tree.

>
> Regards and have a nice night ...
>
> Daniel

HTH.
~Randy


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [linux-usb] USB problems on Lombard Powerbook ... and more
  2000-04-20  0:06 [linux-usb] USB problems on Lombard Powerbook ... and more Dunlap, Randy
@ 2000-04-20 14:27 ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2000-04-20 14:27 UTC (permalink / raw)
  To: linux-usb; +Cc: Dunlap, Randy, linuxppc-dev


On Wed, Apr 19, 2000, Dunlap, Randy <randy.dunlap@intel.com> wrote:

>> (kernel 2.2.15pre17 compiles fine, with usb modules. I think
>> the kernel I am using
>> has a USB backport coming from 2.3. Actually I got these sources from
>> linuxcare - see point 2)
>
>Some things below make me think that whatever you have
>is not very recent, so the Linux USB Guide and
>current email threads don't necessarily apply to your
>USB source code.

The "current" stable kernel used on PowerMacs is Paul Mackerras tree and
contains an old backport of the 2.3.x USB stack (one of the last version
to use Greg old ohci.c driver). We use it because it's stable and appear
to work fine with keyboards and mice on all macs out there. That mean
that machines with USB-only kbds and mice could at least be used, which
was a progress over previous stacks ;)

However, it's definitely not complete enough to be used for anything
else. (Well, a few drivers actually work, but that's not the point).

The recent 2.3.x stack appear to work quite well on macs too, now that
the biggest OHCI problems were ironed out, but has not yet been
"tortured" enough for us to backport it into our stable 2.2.x series.

>Yes (centralized).  Yes (several wandering around).
>Linus maintains the blessed tree for all architectures.
>Development trees can and do also exist elsewhere,
>like PPC, Sparc, ARM, etc.  They will eventually get merged
>back into the Linus tree.

In the case of the macs, we have a quite huge batch of changes that has
not been merged in the 2.2.x tree yet, mostly because those changes (that
concern new machines support) were finished too late for inclusing in
2.2.14, and Alan wants only bug fixes in 2.2.15.
Also, since we use this weird USB backport that may never end up in the
"official" 2.2.x series, PowerMac users usually rely on kenrels
maintained by Paul Mackerras (who is _the_ maintainer of the PowerMac port).

For 2.3.x series, the work is done on our "specific" PPC trees (Paul's
tree and hq.fsmlabs.com bitkeeper tree) and regulary merged in Linus main
one. Ideally, when 2.4 is final, all the PowerMac specific stuffs will be
up-to-date.

For more infos about PowerMac kernels, one can consult Paul's page at:

http://linuxcare.com.au/paulus/kernels.html


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-04-20 14:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-20  0:06 [linux-usb] USB problems on Lombard Powerbook ... and more Dunlap, Randy
2000-04-20 14:27 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).