Author Topic: Fixes For 3.5.4 / Tosa (6000 Models)  (Read 201366 times)

vorondil28

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #90 on: July 15, 2006, 05:05:46 pm »
Alrighty, here's the script I whipped up to unload/load ohci on suspend/resume.

Code: [Select]
#!/bin/sh

# Unloads/loads the ohci driver on suspend/resume due to
# it's lack of power management support.  This is a temporary
# hack until the ohci driver is improved.

case "$1" in
        suspend)
                rm /var/run/ohci-was-loaded
                if [ "`/sbin/lsmod | grep ohci_hcd`" != "" ]; then
                        rmmod ohci_hcd
                        echo true > /var/run/ohci-was-loaded
                fi
               ;;
        resume)
                if [ "`cat /var/run/ohci-was-loaded`" = "true" ]; then
                        modprobe ohci_hcd
                        rm /var/run/ohci-was-loaded
                fi
               ;;
esac

I placed that at /etc/apm/scripts.d/ohci-apm-hack and simlinked it to /etc/apm/suspend.d/06ohci-apm-hack (so it will run right after 05ifupdown) and to /etc/apm/resume.d/31ohci-apm-hack (again, so it will run right after 30fiupdown).  I figured it'd be a good idea to run it *after* ifupdown because if wlan is up, ohci will be loaded.   Since ifupdown will unload/load modules according to the rmmod/modprobe commands in the post-down/pre-up lines of /etc/network/interfaces, it will handle the unloading/loading of ohci.  So this script only really does anything if ohci is loaded, but the wlan interface isn't considered up by ifupdown.  

Anyway, this does the trick for me.  While I highly doubt anyone's tosa will burst into flames when this runs, I warn: Use at own risk.    

As a side note: are the names "ohci_hcd" and "ohci-hcd" interchangeable?  Doing a "modprobe -l | grep ohci" shows "ohci-hcd" but when it's loaded, lsmod shows it as "ohci_hcd".  Both seem to work when loading/unloading it via modprobe and rmmod.  What's up with that?

dirk

  • Newbie
  • *
  • Posts: 26
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #91 on: July 17, 2006, 03:48:43 am »
Quote
Some of the issues observations I have had since I flashed back are:

1.  usb0 stops sending and recieving traffic after a while.  I believe this is still an issue with writing to the cf card at the same time as using the usb bus.  This is a pain in the ass since I like to put my Z on its dock when I am at work and ssh into it, uses synergy or x11vnc on it while I am at my desk.  Is there no way around this issue?  Will I see this same problem if I use a usb hub on the usb host port and plug in a usb network adapter(along with other usb devices like usb cd-rw and usb keyboard) to have network access and being able to uses my cf card, since I do not have access to wifi at my desk(or at work all together but that is a different issue)?
I do not use the usb interface. I haven't heard about such problems on the clamshell devices with 2.6 kernel, because they are using the same drivers.

Quote
2.  When I plug the Z into the dock it turns the power on.  This is really not a problem other then I would like to have the g_ether loaded when this happens.  Is this possable?
I think this is possible with the apm scripts. Create a script which is called on resume. This script checks if the device is externally powered, then load g_ether module.

Quote
3.  Volumn control in GPE is not working.  I am guessing this is due to the sound not being fully supported in the kernel, but I though I would point it out since I plan to put it on the list of things that need to still be fixed on my website(One of the things I test with new images/kernels)
Sound in the kernel is fully working (at least playback checked). I don't know if GPE uses ALSA or the OSS emulation layer. At least alsamixer can control the volume. I am guessing this problem is somewhere between GPE - OSS emu - ALSA

Dirk

dirk

  • Newbie
  • *
  • Posts: 26
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #92 on: July 17, 2006, 04:04:11 am »
Quote
Alrighty, here's the script I whipped up to unload/load ohci on suspend/resume.
Thanks, looks good as a workaround

Quote
As a side note: are the names "ohci_hcd" and "ohci-hcd" interchangeable?  Doing a "modprobe -l | grep ohci" shows "ohci-hcd" but when it's loaded, lsmod shows it as "ohci_hcd".  Both seem to work when loading/unloading it via modprobe and rmmod.  What's up with that?

This thread explains the naming translation: Name of kernel modules

nevarrie

  • Full Member
  • ***
  • Posts: 188
    • View Profile
    • http://www.thegrantclan.org
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #93 on: July 17, 2006, 02:36:45 pm »
Quote
Quote
Some of the issues observations I have had since I flashed back are:

1.  usb0 stops sending and recieving traffic after a while.  I believe this is still an issue with writing to the cf card at the same time as using the usb bus.  This is a pain in the ass since I like to put my Z on its dock when I am at work and ssh into it, uses synergy or x11vnc on it while I am at my desk.  Is there no way around this issue?  Will I see this same problem if I use a usb hub on the usb host port and plug in a usb network adapter(along with other usb devices like usb cd-rw and usb keyboard) to have network access and being able to uses my cf card, since I do not have access to wifi at my desk(or at work all together but that is a different issue)?
I do not use the usb interface. I haven't heard about such problems on the clamshell devices with 2.6 kernel, because they are using the same drivers.

It does nto seem to be related to the 2.6 kernel.  I was seeing it before on pdaxrom using hte 2.4 kernel and found a few other people that has seen the problem before on pdaxrom.  When I posted about it last May I had decided it was a pdaxrom problem but now i am starting to wonder.  I will try to do some testing and see if OZ 3.5.4 has the issue.

Quote
Quote
2.  When I plug the Z into the dock it turns the power on.  This is really not a problem other then I would like to have the g_ether loaded when this happens.  Is this possable?
I think this is possible with the apm scripts. Create a script which is called on resume. This script checks if the device is externally powered, then load g_ether module.

Is there a way to check if the Z is on the dock instead of external power since this woudl be when to load the g_ether and activate the usb0(also woudl be a good place to kick off unison)?

Quote
Quote
3.  Volumn control in GPE is not working.  I am guessing this is due to the sound not being fully supported in the kernel, but I though I would point it out since I plan to put it on the list of things that need to still be fixed on my website(One of the things I test with new images/kernels)
Sound in the kernel is fully working (at least playback checked). I don't know if GPE uses ALSA or the OSS emulation layer. At least alsamixer can control the volume. I am guessing this problem is somewhere between GPE - OSS emu - ALSA

Dirk
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135353\"][{POST_SNAPBACK}][/a][/div]

I am able to adjust the volumn from alsamixer so I am am guessing this is a GPE issue that will need to be figured out.  I will add this to the list of things that need to be fixed.

Thanks
***********************
Jeremy "Nevarrie" Grant
SL-6000L
OpenZaurus 3.5.4.1 GPE(2.6 kernel)|GrantRom 0.01(e-image clone)
Targus IR Keyborad

vorondil28

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #94 on: July 17, 2006, 08:07:00 pm »
Quote
Quote
As a side note: are the names "ohci_hcd" and "ohci-hcd" interchangeable?  Doing a "modprobe -l | grep ohci" shows "ohci-hcd" but when it's loaded, lsmod shows it as "ohci_hcd".  Both seem to work when loading/unloading it via modprobe and rmmod.  What's up with that?

This thread explains the naming translation: Name of kernel modules
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135356\"][{POST_SNAPBACK}][/a][/div]
Ah, that makes perfect sense.  Thanks!

dirk

  • Newbie
  • *
  • Posts: 26
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #95 on: July 18, 2006, 05:16:06 am »
Quote
Is there a way to check if the Z is on the dock instead of external power since this woudl be when to load the g_ether and activate the usb0(also woudl be a good place to kick off unison)?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135419\"][{POST_SNAPBACK}][/a][/div]

IRC. tosa is the only device which is able to detect the usb connection.
I haven't looked in detail into the udc implementation how the implement automatic activation of usb0.
I'll put this into my todo list.

Dirk

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #96 on: July 18, 2006, 05:24:21 am »
Quote
Quote
Is there a way to check if the Z is on the dock instead of external power since this woudl be when to load the g_ether and activate the usb0(also woudl be a good place to kick off unison)?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135419\"][{POST_SNAPBACK}][/a][/div]

IRC. tosa is the only device which is able to detect the usb connection.
I haven't looked in detail into the udc implementation how the implement automatic activation of usb0.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135527\"][{POST_SNAPBACK}][/a][/div]

using zaurusd?
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #97 on: July 18, 2006, 11:55:00 am »
I'm now also trying out GPE on this beta test, and I agree that it makes the 6000 seem very much faster. Still got the yellow trails on the screen though

Got usbnetworking up, albeit with some funnies over routing (but that could be due to my desktop machine, as I've been playing with multihoming and route mangling!), and my next step is wifi (although I've got the "usbctl not found" problem.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #98 on: July 18, 2006, 12:03:52 pm »
here's my hack to the /etc/network/interfaces file to load the ohci-hcd module
Code: [Select]
# Wireless interfaces
iface wlan0 inet dhcp
  wireless_type wlan-ng
        wireless_mode managed
        wireless_key xxxxxxxxxxxxxxxxxxxxxxxxxxxx
        wireless_essid yyyyyyyy
  pre-up modprobe prism2_usb
  pre-up modprobe ohci-hcd
  #pre-up /sbin/usbctl on 1
  #post-down /sbin/usbctl off 1
  post-down rmmod prism2_usb
  post-down rmmod ohci-hcd
« Last Edit: July 18, 2006, 12:05:34 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #99 on: July 18, 2006, 01:14:31 pm »
I hacked together a quick script to allow me to switch between different network "profiles" - download the file netswitch from http://www.zaurus.org.uk/downloads.html - I couldn't get the forum to allow me to attach the file to this posting in a meaningful way!

Put the "netswitch" script in your path somewhere. It allows saving the current network config to a named "profile" and replacing current config with a previously saved one.

e.g.
Code: [Select]
netswitch save home
netswitch use work
or, use interactively:
Code: [Select]
# netswitch
Enter command ('use', 'save'): save
Enter value (existing saves are home wp): btopenzone
finished
-rw-r--r--    1 root     root          829 Jun 30 15:41 interfaces
-rw-r--r--    1 root     root          829 Jun 30 16:13 interfaces.btopenzone
-rw-r--r--    1 root     root          842 Jun 30 15:41 interfaces.home
-rw-r--r--    1 root     root          829 Jun 30 15:37 interfaces.work

note there's very little error checking, so use at own peril!
« Last Edit: July 18, 2006, 01:20:53 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #100 on: July 18, 2006, 01:19:04 pm »
Quote
I'm now also trying out GPE on this beta test, and I agree that it makes the 6000 seem very much faster. Still got the yellow trails on the screen though
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135577\"][{POST_SNAPBACK}][/a][/div]

There was a patch for kdrive floating around somewhere that fixed it by using some kind of shadow framebuffer. Can anyone remember the location of that patch?
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #101 on: July 18, 2006, 01:33:19 pm »
Quote
I hacked together a quick script to allow me to switch between different network "profiles"
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135584\"][{POST_SNAPBACK}][/a][/div]

Ehm, there's an easier way, one that you can even configure via the gui. OZ uses the same format as debian for /etc/network/interfaces and also supports virtual interfaces. Take a loot at this:

Code: [Select]
iface wlan0 inet dhcp

iface home inet static
        address 192.168.1.7
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        wireless_mode managed
        wireless_channel 1        # optional
        wireless_essid linksys     # change to your essid
        wireless_key1 12345asdf    #this is your wep key if it's needed, (optional)
        wireless_ap 00:0F:66:12:0D:C9 # your accesspoint MAC (optional)

iface work inet dhcp
        wireless_essid workworkwork
        wireless_key1 asdf12345

at home you do 'ifup wlan0=home' and at work you do 'ifup wlan0=work'. You can add more virtual interfaces using the guis in opie or gpe if you want.
OZ has a lot more cool debian stuff like this, so don't be afraid to try howto's written for debian-based stuff on your OZ install.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #102 on: July 19, 2006, 05:11:51 am »
Quote
Ehm, there's an easier way, one that you can even configure via the gui. OZ uses the same format as debian for /etc/network/interfaces and also supports virtual interfaces. Take a loot at this:
Code: [Select]
iface wlan0 inet dhcp

iface home inet static
        address 192.168.1.7
-snip-

iface work inet dhcp

at home you do 'ifup wlan0=home' and at work you do 'ifup wlan0=work'. You can add more virtual interfaces using the guis in opie or gpe if you want.
OZ has a lot more cool debian stuff like this, so don't be afraid to try howto's written for debian-based stuff on your OZ install.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135587\"][{POST_SNAPBACK}][/a][/div]

that's really cool. so, all we need is a network start/stop button that understands all this and it will almost start becoming user friendly.

how about GPRS & other modem stuff? or bluetooth PAN? are there any hints you can share here?

I will add this all to OZ/GPE wiki unless you want to do it yourself.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #103 on: July 19, 2006, 05:27:08 am »
Quote
Quote
Ehm, there's an easier way, one that you can even configure via the gui. OZ uses the same format as debian for /etc/network/interfaces and also supports virtual interfaces. Take a loot at this:
Code: [Select]
iface wlan0 inet dhcp

iface home inet static
        address 192.168.1.7
-snip-

iface work inet dhcp

at home you do 'ifup wlan0=home' and at work you do 'ifup wlan0=work'. You can add more virtual interfaces using the guis in opie or gpe if you want.
OZ has a lot more cool debian stuff like this, so don't be afraid to try howto's written for debian-based stuff on your OZ install.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135587\"][{POST_SNAPBACK}][/a][/div]

that's really cool. so, all we need is a network start/stop button that understands all this and it will almost start becoming user friendly.

how about GPRS & other modem stuff? or bluetooth PAN? are there any hints you can share here?

I will add this all to OZ/GPE wiki unless you want to do it yourself.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135671\"][{POST_SNAPBACK}][/a][/div]


GPRS is handled by ppp, gkdial should be able to handle that (if it's in the feeds). The gpe people claim that gpe-bluetooth (the panel applet) should be able to handle PAN, but I haven't tested that yet (and it relies on /etc/sysconfig/bluetooth to be correct).
And please add it to the wiki, I have the same level of access as you do
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #104 on: July 19, 2006, 07:11:15 am »
Quote
GPRS is handled by ppp, gkdial should be able to handle that (if it's in the feeds). The gpe people claim that gpe-bluetooth (the panel applet) should be able to handle PAN, but I haven't tested that yet (and it relies on /etc/sysconfig/bluetooth to be correct).
And please add it to the wiki, I have the same level of access as you do
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135676\"][{POST_SNAPBACK}][/a][/div]

no, you have a higher level of access - you were able to add top level entries to the wiki. but I shall do what I can.

and as for trying to even register to login to the wordpress system, I can't even find a link - and the login page doesn't have an option to register.

sorry, and I know you guys might not want to hear it, but so far OZ has been a very unwelcoming experience - it's a case of "install it and good luck". If as much time were put into the wiki as spent answering the same old questions here on OESF forums and fixing the niggles, it'd be awesome.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.