Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bubak

Pages: [1]
1
Zaurus - pdaXrom / Zaurus As Usb Mass Storage [usbcontrols]
« on: March 10, 2007, 08:09:21 am »
Quote
have you tried unmounting the SD on your Zaurus before you plug it into your linux pc?

well, i dont see the point, but i tried it now.  i managed the card to be mounted to allow anyone to write (skript /etc/sdcontrol, variable FATOPTS="-o umask 000"), but still no change

Quote
also, are you using the mmc driver that comes with beta3 or are you using the sharp sd driver?

as far as i can guess, it's the mmc driver -- lsmod shows mmc is loaded and card is mounted as

Code: [Select]
/dev/mmcda1 on /mnt/card type vfat (rw)

2
Zaurus - pdaXrom / Zaurus As Usb Mass Storage [usbcontrols]
« on: March 08, 2007, 10:52:42 am »
ad /usr/bin/usbfunction.py => ok, thanks, i was looking at that script before, as well as on some other scripts in /etc/hotplug, etc/sdcontrol and such, but i was afraid of changing something -- but not anymore :-)

ad SD card mounted ro => maybe i was not clear enough -- tha card itself is mounted rw under /mnt/card (which is fine) and i can access it from zaurus with no problems.  _But_ once i choose this card to be exported via "Storage" option in System Tools -> USB, and i connect to Linux machine, i get the access to that card, but the dmesg says:

Code: [Select]
[ 5196.949841] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.004920] sde: Write Protect is on
[ 5197.004925] sde: Mode Sense: 43 00 80 00
[ 5197.004927] sde: assuming drive cache: write through
[ 5197.120847] SCSI device sde: 1935226 512-byte hdwr sectors (991 MB)
[ 5197.140847] sde: Write Protect is on
[ 5197.140850] sde: Mode Sense: 43 00 80 00
[ 5197.140852] sde: assuming drive cache: write through
[ 5197.140855]  sde:
[ 5197.161886] sd 6:0:0:3: Attached scsi removable disk sde
[ 5197.181841] scsi 6:0:0:4: Direct-Access     Sharp    SL-C1000         1.00 PQ: 0 ANSI: 0 CCS

note the line
Code: [Select]
[ 5197.004920] sde: Write Protect is on
on zaurus, the card is mounted rw, exported via usb storage engine it gets somehow changed into ro

3
Zaurus - pdaXrom / Zaurus As Usb Mass Storage [usbcontrols]
« on: March 08, 2007, 07:50:19 am »
Hi,

usually (99%) i use linux and i want my zaurus to be accesible as a network device (ie. etherent-over-usb, using kernel zaurus module).

sometimes (1%) i am forced to connect my zaurus to a windows machine, typically i just want some data to be copied from/to zaurus -- because windows do not know without additional drivers how to use etheret-over-usb, i would like to use zaurus as a mass storage device.

When i use System Tools -> USB and i choose Storage, i have several options to choose from (SD Card and CF card).  Once i choose, i plug in USB cable and i see zaurus as USB mass storage.  I have only one memory card -- 1GB Kingston SD card.

So far, no problems.  Now the questions:

1. Why i can choose only from SD or CF card, why cant i choose the harddrive? (i know i formatted the drive with ext2 fs, so this is only option if i connect my zaurus to a linux comp)

2. The mass storage device is mounted read-only (no matter how i set up the 'lock' on my SD card).  Why is that? Am i doing anything wrong?

Thanks in advance.  Martin

4
Zaurus - pdaXrom / Pdaxrom 1.1.0beta3 For C1000/c3100/c3200 And X86
« on: May 13, 2006, 12:00:18 pm »
to use planex CF wifi card, you need proper firmware.  instructions are at:

http://www.oakcourt.dyndns.org/~andrew/dwl520e1

bubak (m.)

5
Zaurus - pdaXrom / Python Support
« on: May 13, 2006, 11:12:38 am »
Quote
Code: [Select]
Numeric
fnmatch
glob  
pickle
pickletools

1. fnmatch, glob, pickle, pickletools => use python2.4 (you should remove the 'python-*' (even the python-core) and install just pure python 2.4.1) ... this is complete installation f python 2.44 indluding all the stdlib packages (codecs, dbus, xml, ...)

you should also install pygtk to enable some gui system tools.  unfortunately enough pygtk depends on python-core (that should be removed by now) so do not install the dependencies for it (you aready have them)

2. Numeric => extension of python, usually called 'numeric python', not part of the stdlib (dont know where to get those, you should probably compile them, you may also try easy_install Numeric, if you use easy_install)

6
Zaurus - pdaXrom / Python Support
« on: April 30, 2006, 06:52:24 am »
Quote
tip: ipython and easy_install

2006-04-30

easy-install requires full python installation, so replace python-core with full sized python, see my other post on "error importing threading" how to achieve this

7
Zaurus - pdaXrom / Python Support
« on: April 30, 2006, 06:48:11 am »
Quote
error importing threading

2006-04-30

this problem can be solved by unistalling the python-core ipkg and installing the python, which includes all the standard packages for python distribution

remember to always isntall at least one python interpreter (ie. python-core or python) with gtk support (pygtk ipkg) because several gui application are using it (cpuoverclock.py, ...)

some notes:

1. python ipkg itself requires more than cca 16M of free space, the download size is cca 5M

2. there are problems when installing python and than pygtk -- the pygtk depends on python-core instead of python or python-core, so installing pygtk installs also python-core and dependencies, which results in ovewriting some of python files (well, the overwriting does not really matter -- the python is superset of python-core, but it leaves things in somewhat strange state)

3. my recommandation is just to install python and than by hand install pygtk -- pygtk actually installs only modules (files) under <root>/usr/lib/python2.4/site-packages; is is perfectly safe to extract the files there

8
Zaurus - pdaXrom / Python Support
« on: April 22, 2006, 05:31:59 am »
tip: emacs & python-mode

2006-04-22, 1.1.0beta3

installing emacs with python support (ie. python-mode) on pdaXrom  is easy and takes only these steps:

1. install emacs, best way is to use packages provided by pgas, see feed:

Pgas feed

(i have to download them by hand and install manually with ipkg command: ipkg -d /home/user install <ipg_package>)

2. download the python-mode distribution from surceforge

python-mode from sf.net download

(just grap the latest version)

3.  unpack somewhere, i use ~/.emacs.d/site-lisp for packages i maintain locally

4.  load the module in a standard way to your emacs (part of .emacs):

Code: [Select]
;; include the location of python-mode.el to your load path
(add-to-list 'load-path "~/.emacs.d/site-lisp")
;; load it
(load "python-mode")
;; associate the file extension with the desired mode
(setq auto-mode-alist (append '(("\\.py$" . python-mode)) auto-mode-alist))
(setq auto-mode-alist (append '(("\\.jy$" . python-mode)) auto-mode-alist))
(setq auto-mode-alist (append '(("\\.psp$" . python-mode)) auto-mode-alist))

9
Zaurus - pdaXrom / Python Support
« on: April 22, 2006, 05:13:46 am »
error importing threading

2006-04-22, 1.1.0beta3

i encountered an error importing threading module after succesfull installation

it complains about importing a non-existent 'collections' module in "/usr/lib/python2.4/threading.py" line 13

collections module is new in python 2.4 and is not available as an ipk package as of the date of this post (see above)

you can probably solve this by copying the module from your desktop distro to the zaurus, thouhg i didnt try (i use python 2.3 still)

so i ask the developers of the python pdaXrom packages to enable that module in ipk feed

10
Zaurus - pdaXrom / Python Support
« on: April 22, 2006, 05:05:52 am »
error importing pygtk

2006-04-22, 1.1.0beta3

this error shows up if you used to import the pygtk the way it is supposed for example in pyGtk tutorial:

Code: [Select]
import pygtk
pygtk.require("2.0")
import gtk

the solution i experienced is to import only the gtk module

Code: [Select]
#import pygtk
#pygtk.require("2.0")
import gtk

in such a case all the gtk objects are still directly available and you can use them.

11
Zaurus - pdaXrom / Python Support
« on: April 22, 2006, 04:55:13 am »
First, a few notes:

1. i started this topic as a general place to discuss anything related to python on pdaXrom
2. i hope this topic will stay clear enough to serve as a knowledge-base
3. if you think this is a good idea, please:

  a) use keywords in your posts, i recommend:

      package <python_stdlib_package name> if it concernes some std lib package

      error <short_description>  if you encounter an error and you want to help solving it (think over if there is not a better place to ask (such as python mailing list)

      error importing <package> if you encounter an error with package import thta should be working

      i believe you can think up your own reasonable keywords

  b) keep it simple and threaded -- problems with forums is, that it contains the info you need, but it is hard to find them (that's why the keywords :)

thanks.

12
Zaurus - pdaXrom / How To Find Pygtk Ide For Pdaxrom?
« on: April 22, 2006, 04:42:25 am »
Quote
Quote
I Need a pyGTK IDE app. to creat pyGTK program how can find this is on Zaurus Pdaxrom?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118718\"][{POST_SNAPBACK}][/a][/div]

One troublesome problem, in particular, is that if I execute "import pygtk", I get this error:

Quote
File "/home/sash/Work/Akita/pdaXrom-builder/build/pygtk-2.5.3/ipkg_tmp/usr/lib/python2.4/site-packages/pygtk.py", line 22, in ?
ImportError: No module named fnmatch

While I'm talking about python and bugs, if I run "python" in a terminal, my arrow keys do not work correctly.  If I push up to edit the previous line, I get "^[[A" as output instead.  [The arrow keys work normally in the terminal when python is not running.]

Are there work arounds for these?  I suppose I should write bug reports, eh (after verifying that they aren't already there -- but I didn't see them at a glance)?  Oh, and I am using 1.1.0beta1 -- is it OK to still write bugs for it, or should I check 1.1.0beta2 first?

Thanks,
Armagon
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118891\"][{POST_SNAPBACK}][/a][/div]

1. ad import pygtk

yes, the error is raised, but you dont need to import the pygtk -- just gtk is enough -- it contains all you need.  i use this import sequence (just ignor the pygtk stuff):

Code: [Select]
import gtk
you can use all of the gtk objects, constants and such

2.  ad history in intercative shell

install the readline ipk.  it contains the readline support => ie. history then works

13
Zaurus - pdaXrom / Pdaxrom 1.1.0beta3 For C1000/c3100/c3200 And X86
« on: April 14, 2006, 06:22:52 am »
Hi

pdaXrom (1.1.0beta3), sl-c3200

installation was ok, though there was a japanese confirmation menu i did not expect (i safely hit th 'Y' answer).

i partitioned the suggested 58M for / (root), which i believe was a bad idea -- i should make it larger

i did not encounter any serious problems, just:

* keyboard switching does not seems to remmap the keys back (try english keyborad -> czech keyborad -> english keyboard) == you will end up with some czech characters still mapped

* not always ok from suspend -- while the music was n, i suspended and the /dev/dsp seemed to be used --> i was not able to use it again till reboot (i tried to stop X, stop esd, unload mmc* modules)

* i am unable to set hw clock to UTC and than set timezone appropriately to show my local time (CEST), so i have clock in UTC

* SD 1G memory (Kingston Ultimate 133x), CF Wifi (Planex CF11X), USB bluetooth dongle (3com SL-1020), ethernet over USB -- everything is fine, only the ethernet over USB is needed to set with smaller MTU, or the communication starts to stall for bigger files, (ie. bigger then mtu usb can handle) (no entry for it in the gui, so i execute this command everytime i connect my zaurus to debian desktop: ifconfig usbd0 mtu 500)

* i miss my sharp remote for music playback, was not cheap to buy and i dont want sharp Rom once i saw this one -- any chance to get it working?

* i noticed that some keys '@', '.' were not available while i was in command line (before 'startx')

* software: i miss emacs, some python modules, ncftp, gnuplot

Anyway, first experience with pdaXrom and im very pleased!  easy installation, nice look, good software feed

Thanks a lot

Pages: [1]