Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alpha and USB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
grahn
n00b
n00b


Joined: 27 Aug 2002
Posts: 64

PostPosted: Wed Jul 16, 2003 11:00 am    Post subject: Alpha and USB Reply with quote

Hello!

My alpha xp-1000 (Monet) has two usb ports. I wonder if I can make use of them, for memory sticks as an example.

Ok, all respective kernel-settings are done. But what about the hotplug scripts? Installing fails since they are masked in Portage. Do I need them at all? Are there replacements?

Thanks,

Alex
Back to top
View user's profile Send private message
taviso
Retired Dev
Retired Dev


Joined: 15 Apr 2003
Posts: 261
Location: United Kingdom

PostPosted: Wed Jul 16, 2003 1:02 pm    Post subject: Re: Alpha and USB Reply with quote

grahn wrote:
Ok, all respective kernel-settings are done. But what about the hotplug scripts? Installing fails since they are masked in Portage. Do I need them at all? Are there replacements?


I have a USB modem in my Alpha, and it works great, but i've never used the hotplug scripts. I can see that their not marked -alpha, which just means they've never been tested, if youd like to try them and let us know (via irc, on irc.freenode.net #gentoo-alpha, or file a bug with platform makred "alpha" on bugs.gentoo.org) if they work we will get them marked alpha in the tree. Just in case you dont know, you can force emerge to install a masked package by giving the full path to the ebuild, like this:
Code:
# emerge -pv /usr/portage/sys-apps/hotplug/hotplug-20030501-r2.ebuild
# emerge /usr/portage/sys-apps/hotplug/hotplug-20030501-r2.ebuild


I can see that they are stable on most platforms, so i dont foresee any problems, Thanks!
_________________
--------------------------------------
Gentoo on Alpha, is your penguin 64bit?
--------------------------------------------------------
Back to top
View user's profile Send private message
grahn
n00b
n00b


Joined: 27 Aug 2002
Posts: 64

PostPosted: Wed Jul 16, 2003 1:27 pm    Post subject: Reply with quote

hotplug requires also masked package usbutils. Forcing emerge of usbutils with

ebuild /usr/portage/sys-apps/usbutils/usbutils-0.11-r1.ebuild merge

fails, because configure fails:

creating cache ./config.cache
checking host system type... Invalid configuration `alphaev6-unknown-linux-gnu': machine `alphaev6-unknown' not recognized

checking target system type... Invalid configuration `alphaev6-unknown-linux-gnu': machine `alphaev6-unknown' not recognized

checking build system type... Invalid configuration `alphaev6-unknown-linux-gnu': machine `alphaev6-unknown' not recognized

Possibly hotplug may do without usbutils. I should try.

Alex
Back to top
View user's profile Send private message
taviso
Retired Dev
Retired Dev


Joined: 15 Apr 2003
Posts: 261
Location: United Kingdom

PostPosted: Wed Jul 16, 2003 1:39 pm    Post subject: Reply with quote

grahn wrote:
`alphaev6-unknown-linux-gnu': machine `alphaev6-unknown' not recognized


fixed in cvs, `emerge sync` and it should be fixed :)
_________________
--------------------------------------
Gentoo on Alpha, is your penguin 64bit?
--------------------------------------------------------
Back to top
View user's profile Send private message
grahn
n00b
n00b


Joined: 27 Aug 2002
Posts: 64

PostPosted: Wed Jul 16, 2003 1:55 pm    Post subject: Reply with quote

I synced this morning prior to attempting an emerge. Maybe I need another sync method?
Back to top
View user's profile Send private message
taviso
Retired Dev
Retired Dev


Joined: 15 Apr 2003
Posts: 261
Location: United Kingdom

PostPosted: Wed Jul 16, 2003 1:58 pm    Post subject: Reply with quote

grahn wrote:
I synced this morning prior to attempting an emerge. Maybe I need another sync method?


sorry, i meant i literally fixed it a few seconds ago when you reported it. you should emerge sync again to get the new version with the fix.
_________________
--------------------------------------
Gentoo on Alpha, is your penguin 64bit?
--------------------------------------------------------
Back to top
View user's profile Send private message
grahn
n00b
n00b


Joined: 27 Aug 2002
Posts: 64

PostPosted: Wed Jul 16, 2003 3:41 pm    Post subject: Reply with quote

usbutils compiles! Thanks! I rebuilt the kernel with hotplugging, usb, usbfs, usb-storage, usb-uhci and usb-ohci enabled as modules. However, something doesn't work on booting as expected. Dmesg reports the following usb-related stuff, is there something to be adjusted on the SRM-console?

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
...
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings! (on 9 identical lines)
usb-uhci.c: $Revision: 1.275 $ time 16:39:52 Jul 16 2003
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
...
usb-ohci.c: found OHCI device with no IRQ assigned. check BIOS settings!
...
usb-uhci.c: $Revision: 1.275 $ time 16:39:52 Jul 16 2003
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Back to top
View user's profile Send private message
grahn
n00b
n00b


Joined: 27 Aug 2002
Posts: 64

PostPosted: Thu Jul 17, 2003 9:05 am    Post subject: Reply with quote

I resolved the problem. First I updated the alpha firmware

http://ftp.digital.com/pub/DEC/Alpha/firmware/readmes/v6.5/doc/xp1000_v59_fw_relnote.pdf

Then I enabled usb by entering

set usb_enable on

at the SRM prompt. This feature was not available prior to this update.

Finally I rebuilt the kernel module usb-ohci with IRQ hardcoded to 10. The required modifications to function ohci_pci_probe in file usb-ohci.c are:

/* if (!dev->irq) {
err("found OHCI device with no IRQ assigned. check BIOS settings!");
pci_disable_device (dev);
return -ENODEV;
}
*/
if (!dev->irq) {
dev->irq=10; //hardcoded 20030717
}

Now everything works fine!

Alex
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum