Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Zaurus - gentoo 1.4 how-to!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
n1hck
n00b
n00b


Joined: 20 Jan 2003
Posts: 34

PostPosted: Tue Jan 21, 2003 4:51 am    Post subject: Zaurus - gentoo 1.4 how-to! Reply with quote

ok..here is what I did to get gentoo working with the zaurus no problem.. (sort of :-D)

do yoru kernel thing.. make USBDNET as a module.. basically follow the directions on:
http://www.ruault.com/Zaurus/ethernet-over-usb-howto.html

the thing is.. do all those steps.. but .. in /lib/modules/kenrel.x.x/modules.usbmap file you have to change whereever it says
usbdnet 0x0193 0x04dd 0x8004
change to
usbdnet 0x0003 0x04dd 0x8004

then save this file somewhere else AS WELL AS saving it locally.

than make hotplug work... and use this script:

#! /bin/bash

sleep 1
cp /path_to_backup_of_modules.usbmap/modules.usbmap /lib/modules/2.4.19-gentoo-r10
sleep 1

typeset -i num
num=`ifconfig | grep usb0 | wc -l`
if [ $num -eq 0 ] ; then
ifconfig usb0 192.168.129.1 netmask 255.255.255.255 up
route add -host 192.168.129.201 usb0
fi


basically..on a desktop you need to have the modules. usbmap file be cahnged to usbdnet 0x0003 0x04dd 0x8004...

on reboots its changed BACK to:
usbdnet 0x0193 0x04dd 0x8004

so the script rewrite the reset modules.usbmap file with the RIGHT usbmap file we made a back up of, and the sleep commands allow everything to happen.. and after 2 seconds your zaurus SHOULD be allll set!

I hope this method helps!!

Nick D
Back to top
View user's profile Send private message
refriedbean
n00b
n00b


Joined: 19 Jan 2003
Posts: 70
Location: N 37° 33.327 E 126° 55.650

PostPosted: Tue Jan 21, 2003 5:24 am    Post subject: :) Reply with quote

Thanks!

I'm totally new to hotplug, and not wanting to sound like a total idiot, but how do I 'make hotplug work'? :oops:

If you tell me to rtfm I'll understand, but at least point me to the right ones :wink:

Thanks again!
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Tue Jan 21, 2003 11:54 am    Post subject: Reply with quote

There's an option in the kernel that says: "Support for hot-plugable devices" on the "General Setup", perhaps he meant that... :roll:
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
n1hck
n00b
n00b


Joined: 20 Jan 2003
Posts: 34

PostPosted: Tue Jan 21, 2003 12:19 pm    Post subject: Reply with quote

wellll.. actually...

emerge hotplug

after that follow directions and my directions off the website.


Nick D
Back to top
View user's profile Send private message
PorkySpine
n00b
n00b


Joined: 31 Jan 2003
Posts: 13
Location: Portugal

PostPosted: Mon Feb 03, 2003 3:10 pm    Post subject: Reply with quote

Hello!

Read my post in
https://forums.gentoo.org/viewtopic.php?t=30930

It shows a better way, or at least more "Gentooish" way to use hotplug, because it configures interface usb0 the same way that you configure other intefaces in gentoo (through a net.usb0 script, like the net.eth0).

I also thing that using the way you are showing (which i could not get to work :?) it will show the "cannot connect" error message.

The way i am showing, u just have to put that usbdnet 0x0003 0x04dd 0x8004 on /etc/hotplug/usb.usermap (read the details in the other post), and hotplug will take care of the rest.

If someone try trought these ways, please tell what is the better one... i wont chage my configuration anyway, i have my priciples: "If its working, don't fix it".

Good hotplugings!
_________________
Tiago Reis Alves
a.k.a. PorkySpine * ICQ: 74529946
@:talves@student.dei.uc.pt
http://student.dei.uc.pt/~talves
Back to top
View user's profile Send private message
whanau
n00b
n00b


Joined: 08 Jan 2003
Posts: 7

PostPosted: Tue Feb 04, 2003 1:34 am    Post subject: The first script..... Reply with quote

When do we run the script you have just posted ??
add it to rc.local ???
Thanks!!
Back to top
View user's profile Send private message
PorkySpine
n00b
n00b


Joined: 31 Jan 2003
Posts: 13
Location: Portugal

PostPosted: Tue Feb 04, 2003 2:53 am    Post subject: Reply with quote

That question is for who?

You are talking about n1hck's script, then i think its in /etc/hotplug/usb/usbdnet (so its executed when hotplug detects your zaurus), as its said in:
http://www.ruault.com/Zaurus/ethernet-over-usb-howto.html

if you are talking to me, then read my other post:
https://forums.gentoo.org/viewtopic.php?t=30930

In 4 letters: RTFM (said in a nice way :D)
_________________
Tiago Reis Alves
a.k.a. PorkySpine * ICQ: 74529946
@:talves@student.dei.uc.pt
http://student.dei.uc.pt/~talves
Back to top
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Tue Feb 04, 2003 3:39 am    Post subject: Reply with quote

This looks like a candidate for Tips & Tricks rather than a support question... Moving from Hardware and Laptops.
_________________
"An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer
Back to top
View user's profile Send private message
PorkySpine
n00b
n00b


Joined: 31 Jan 2003
Posts: 13
Location: Portugal

PostPosted: Mon Aug 11, 2003 3:13 pm    Post subject: Usbdnet is better! Reply with quote

As i said in another post, i was having some problems with usbnet module. It actually made my desktop crash sometimes!!!

Now i am using the usbdnet module of kernel 2.4.21 (pfeifer-sources), and its working just fine. I had no more crashings.

Bye!
_________________
Tiago Reis Alves
a.k.a. PorkySpine * ICQ: 74529946
@:talves@student.dei.uc.pt
http://student.dei.uc.pt/~talves
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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