RE: File transfer for zaurus on linux
Sebastien Routier <[email protected]> Fri, 4 Oct 2002 10:48:54 -0400
| Newsgroups | gmane.comp.handhelds.zaurus.devel |
|---|---|
| Message-ID | <1569457F4814D311B4E200805FC7B78B05AF0F4C@ottexch01.ottawa.hcl.com> |
NO NO NO NO..... Do not create a directory called "uname-r" !!!
The line "/lib/modules/`uname -r`/modules.usbmap" mean that you are supposed
to run the command "uname -r" and substitute the result with the original
text "`uname -r`". Here is an example running on my PC:
----------------------------- START PASTE ---------------------------
[sroutier@hydrogen sroutier]$ uname -r
2.4.19-16mdk
[sroutier@hydrogen sroutier]$
----------------------------- END PASTE ---------------------------
Which would give me "/lib/modules/2.4.19-16mdk/modules.usbmap". Notice the
character ` (back-tick, usually located in the upper left corner of a US
keyboard), not to be confused with the character ' (single-quote, located
near the enter key middle row far right.) The back-tick character is a
special shell command that mean "run whatever is enclosed in back-ticks and
substitute with the output of that command". Here is a little example of the
back-tick running on my PC:
----------------------------- START PASTE ---------------------------
[sroutier@hydrogen sroutier]$ uname -r
2.4.19-16mdk
[sroutier@hydrogen sroutier]$
[sroutier@hydrogen sroutier]$ echo /lib/modules/`uname -r`/modules.usbmap
/lib/modules/2.4.19-16mdk/modules.usbmap
[sroutier@hydrogen sroutier]$
[sroutier@hydrogen sroutier]$
[sroutier@hydrogen sroutier]$ ls -laF /lib/modules/`uname -r`/modules.usbmap
-rw-r--r-- 1 root root 109041 Sep 29 13:48
/lib/modules/2.4.19-16mdk/modules.usbmap
[sroutier@hydrogen sroutier]$
----------------------------- END PASTE ---------------------------
Hopefully that clarifies things a little bit....
I attached a tar-gzipped file containing 3 files
- My original "modules.usbmap" called "modules.usbmap.org"
- The patched "modules.usbmap", for mdk 8.2, called "modules.usbmap.sl5500"
- The script that patched the usbmap every time the PC reboots, called
"zaurus-SL5500".
You could simply use these file as-is or make your own based on them. To
activate the script "zaurus-SL5500" at boot you need to copy it to
"/etc/init.d", and run "chkconfig --add /etc/init.d/zaurus-SL5500"
Have fun....
bye.
/Sebast
:
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : kill-proc (killing user process by an user) LOST #285
#!/bin/sh
ps -aef | grep $USER
echo -en "Process-No to kill : "; read P_ID
kill $P_ID
####<[email protected]>####################################
:
> -----Original Message-----
> From: hemanth kumar [mailto:[email protected]]
> Sent: Friday, October 04, 2002 2:00 AM
> To: [email protected]
> Subject: [Zaurus-devel] File transfer for zaurus on linux
>
>
> hi,
>
> we have created a file
> "/etc/sysconfig/network-scripts/ifcfg-usb0" .but we
> have no idea on how to create the Patch "/lib/modules/`uname
> -r`/modules.usbmap"
> we are unable to find the uname-r directory under
> modules(mandrake linux
> 8.2).
> should we create one directory ourselves and what should be
> the contents
> of the file modules.usbmap.can anyone please help us out.
>
> Thanx
> Hemanth
>
>
>
> From: Sebastien Routier <[email protected]>
> To: 'Saravanan Chandhrasekar'
> <[email protected]>>Subject: RE:
> [Zaurus-devel] File transfer for Zaurus on linux
> Date: Thu, 3 Oct 2002 11:43:20 -0400
>
> Here you will find a lot of howtos...
> http://www.zauruszone.com/howtos/
>
> >This should answer your question:
> >http://www.zauruszone.com/howtos/linux_ethernet-over-usb-howto.shtml
> >
> >I can confirm that the information is correct for MDK 8.2 (I
> use it myself)
> >but I found the intructions a bit confusing at first. Here a
> high level
> >view of what you need to do on MDK 8.2
> >
> >- Create a file "/etc/sysconfig/network-scripts/ifcfg-usb0" - Patch
> >"/lib/modules/`uname -r`/modules.usbmap". NOTE: this file is
> dynamically
> >generated every time the PC boots so I created an /etc/rc.d
> script to patch
> >it at every boot. - Configure the network on the Zaurus for Internet
> >access.
> >
> >PS: If you have Bastille or any other firewall configuration
> make sure that
> >you allow the device usb0 to pass through
> >
> >
> >bye. /Sebast
> >
> >
> >: ####[ Linux One Stanza Tip (LOST) ]###########################
> >
> >Sub : Lesser known commands (ps2pdf)Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â LOST #210
> >
> >The GNU ghostscript supports native conversion ofÂ
> postscript files to pdf
> >format. Since ver 5.x, a bash script is included with the original
> >ghostscript tarball called "ps2pdf". Invoke as 'ps2pdf infile.ps
> >outfile.pdf'
> >
> >####<[email protected]>#################################### :
> >
> >
> >
> > > -----Original Message----- > From: Saravanan Chandhrasekar
> >[mailto:[email protected]] > Sent: Thursday,
> October 03, 2002 1:30
> >AM > To: [email protected] > Subject:
> [Zaurus-devel] File
> >transfer for Zaurus on linux > > > > > Hi, > >Â Â Â I am
> trying to transfer
> >files from Desktop(Mandrake Linux 8.2) > to Sharp Zaurus (SL
> 5000D).i
> >couldnt find the usb drivers on my > linux so could any one
> help me in
> >finding the usb drivers and > connecting my zaurus to linux
> to transfer
> >files > > Thanks > Chandhra > >
> >_____________________________________________________________
> ____ > MSN
> >Photos is the easiest way to share and print your photos: >
> >http://photos.msn.com/support/worldwide.aspx > > > >
> >------------------------------------------------------- >
> This sf.net email
> >is sponsored by:ThinkGeek > Welcome to geek heaven. >
> >http://thinkgeek.com/sf >
> _______________________________________________ >
> >Zaurus-devel mailing list > [email protected] >
> >https://lists.sourceforge.net/lists/listinfo/zaurus-devel >
>
>
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com Â
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Zaurus-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zaurus-devel
>
zaurus-usb-patch-for-mdk82.tgz
(application/octet-stream, 8.1 KB) - not displayed