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

xenophobe

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #75 on: July 12, 2006, 05:26:05 am »
I had tested kernel 2.6.17 with OPIE image.

I had found two magor issues:
1 Wlan does not work. usbctl can't open file. looks like some kernel module is missed...
2 System hangs up if it turned off and quickly turned on.

And one minor:
At first startup after flashing, system was stopped right after screen calibration. I had pressed last  center cross hair and system was stopped. After reset, next startup don't run calibration program and OPIE was started.

Headphones detection works fine.

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #76 on: July 12, 2006, 05:56:58 am »
xonephobe: comment out lines with 'usbctl' in /etc/network/interfaces to get wifi working
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

nevarrie

  • Full Member
  • ***
  • Posts: 188
    • View Profile
    • http://www.thegrantclan.org
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #77 on: July 12, 2006, 04:15:20 pm »
Quote
Quote
1. usbnet does not seem to be working for me. So in other works I am not able to put my Z on the Dock and connect to it through the usb networking. Even ifconfig does not show the interfase there.

You must 'modprobe g_ether' on the Zaurus.

Quote
2. flashing of screen. The backlight on my Z started to flash on and off several times in a row. It reminds me of how timyfugue use to flash at me when my name was said. I have only seen this happen when the Z is not on the dock. My battery is low so is the Z trying to tell me the battery is low and I need to put it on ac power? Still trying to see if I can figure out more about when this happons and why.

We need asymmetrical thresholds for the kernel's backlight power saving - this happens as the voltage bounces around the low threshold. It starts with the backlight on and goes low, so the backlight is dimmed, and once the backlight load is removed the voltage recovers and the backlight is returned to its previous value, then the cycle starts again.


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

Thanks.  I did not think about look for a new driver for 2.6.x kernel.  USB networking works great now.

It is good to see that the backlight issue is something that can be explained.  It is kinda cool to have it do that so that i know i need to charge or turn down the brightness of the screen.  Now the question is if this is a feature or a bug.
***********************
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 #78 on: July 12, 2006, 10:14:53 pm »
Quote
comment out lines with 'usbctl' in /etc/network/interfaces to get wifi working[div align=\"right\"][a href=\"index.php?act=findpost&pid=134823\"][{POST_SNAPBACK}][/a][/div]
Hmm, I tried commenting those lines out on my unit, but on "ifup wlan0" I get:
wlanctl-ng: No shcuh device
Failed to enable the device, exitcode=1 .
run-parts: /etc/network/if-pre-up.d/wlan-ng exited with return code 1: Success

Upon inspection of /proc/modules, the prism2_usb, p80211, and usbcore modules are all loaded, but there's no wlan0 in the output of ifconfig or /dev/.

Am I missing something? (A module?  A brain?     )

Quote
It is good to see that the backlight issue is something that can be explained.  It is kinda cool to have it do that so that i know i need to charge or turn down the brightness of the screen.  Now the question is if this is a feature or a bug.[div align=\"right\"][a href=\"index.php?act=findpost&pid=134904\"][{POST_SNAPBACK}][/a][/div]
I don't know about "bug."  I suppose "feature behaving badly" would be apt. :-P

dirk

  • Newbie
  • *
  • Posts: 26
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #79 on: July 13, 2006, 02:26:07 am »
Quote
Hmm, I tried commenting those lines out on my unit, but on "ifup wlan0" I get:
wlanctl-ng: No shcuh device
Failed to enable the device, exitcode=1 .
run-parts: /etc/network/if-pre-up.d/wlan-ng exited with return code 1: Success

Upon inspection of /proc/modules, the prism2_usb, p80211, and usbcore modules are all loaded, but there's no wlan0 in the output of ifconfig or /dev/.

Am I missing something? (A module?  A brain?     )
You need to load the ohci driver. modprobe ohci-hcd should do the trick
There is a reason why this isn't loaded automatically: The ohci driver lacks powermanagement. With loaded ohci module the device will crash on suspend. So you need to unload the module before suspend.

Quote
It is good to see that the backlight issue is something that can be explained.  It is kinda cool to have it do that so that i know i need to charge or turn down the brightness of the screen.  Now the question is if this is a feature or a bug.[div align=\"right\"][a href=\"index.php?act=findpost&pid=134904\"][{POST_SNAPBACK}][/a][/div]
I don't know about "bug."  I suppose "feature behaving badly" would be apt. :-P

Right this feature has a bug.
The backlight driver limits the intensity when the battery level is low. There is a bug if batterylevel is around the threshhold.

Quote
I had tested kernel 2.6.17 with OPIE image.

System hangs up if it turned off and quickly turned on.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=134817\"][{POST_SNAPBACK}][/a][/div]
Can't reproduce this, can you provide more details?

Dirk

vorondil28

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #80 on: July 13, 2006, 03:56:48 pm »
Quote
Quote
Hmm, I tried commenting those lines out on my unit, but on "ifup wlan0" I get:
wlanctl-ng: No shcuh device
Failed to enable the device, exitcode=1 .
run-parts: /etc/network/if-pre-up.d/wlan-ng exited with return code 1: Success

Upon inspection of /proc/modules, the prism2_usb, p80211, and usbcore modules are all loaded, but there's no wlan0 in the output of ifconfig or /dev/.

Am I missing something? (A module?  A brain?     )
You need to load the ohci driver. modprobe ohci-hcd should do the trick
There is a reason why this isn't loaded automatically: The ohci driver lacks powermanagement. With loaded ohci module the device will crash on suspend. So you need to unload the module before suspend.
Thanks, dirk.  I'll try this when I get home.  Would I be correct in assuming I can add a line to my apm scripts to unload/load the ohci driver on suspend/resume as a workaround, or would it be more involved than that?

nevarrie

  • Full Member
  • ***
  • Posts: 188
    • View Profile
    • http://www.thegrantclan.org
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #81 on: July 13, 2006, 05:11:29 pm »
I had wifi (using the ohci_hcd module) working for a while till I ran ipkg upgrade from http://ewi546.ewi.utwente.nl/mirror/www.op...e/3.5.4.1/feed/ since I was that machine had tosa(I was willing to take the risk).  Since the kernel modules are newer it broke a few things, at least it is not working as well as it did before I ran upgrade.  I am reflashing now to start over without running upgrade.

Should I be able to uses packages from that feed?
« Last Edit: July 13, 2006, 05:16:33 pm by nevarrie »
***********************
Jeremy "Nevarrie" Grant
SL-6000L
OpenZaurus 3.5.4.1 GPE(2.6 kernel)|GrantRom 0.01(e-image clone)
Targus IR Keyborad

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #82 on: July 13, 2006, 05:48:05 pm »
Quote
Thanks, dirk.  I'll try this when I get home.  Would I be correct in assuming I can add a line to my apm scripts to unload/load the ohci driver on suspend/resume as a workaround, or would it be more involved than that?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135053\"][{POST_SNAPBACK}][/a][/div]

That should solve about 90% of the suspend/resume issues
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

vorondil28

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • http://
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #83 on: July 13, 2006, 07:37:39 pm »
Quote
Quote
Thanks, dirk.  I'll try this when I get home.  Would I be correct in assuming I can add a line to my apm scripts to unload/load the ohci driver on suspend/resume as a workaround, or would it be more involved than that?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135053\"][{POST_SNAPBACK}][/a][/div]

That should solve about 90% of the suspend/resume issues
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135067\"][{POST_SNAPBACK}][/a][/div]

dirk: My WiFi is up and running now.    Thanks.

koen:    Good to know.  I took a look at the apm scripts earlier, but just at a glance.  I'll dig into it next chance I get.  Is there a good reason why nobody has come up with a workaround like this already?  Is it just that nobody has cared enough to try, or is it more difficult that I think it is?  I'll be glad to give it a shot, and if I come up with anything that doesn't suck too bad, I'll share.  

dirk

  • Newbie
  • *
  • Posts: 26
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #84 on: July 14, 2006, 02:38:36 am »
Quote
koen:    Good to know.  I took a look at the apm scripts earlier, but just at a glance.  I'll dig into it next chance I get.  Is there a good reason why nobody has come up with a workaround like this already?  Is it just that nobody has cared enough to try, or is it more difficult that I think it is? 
A script as a workaround should work. The best solution is to improve the driver.

Dirk

dirk

  • Newbie
  • *
  • Posts: 26
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #85 on: July 14, 2006, 02:47:45 am »
Quote
I had wifi (using the ohci_hcd module) working for a while till I ran ipkg upgrade from http://ewi546.ewi.utwente.nl/mirror/www.op...e/3.5.4.1/feed/ since I was that machine had tosa(I was willing to take the risk).  Since the kernel modules are newer it broke a few things, at least it is not working as well as it did before I ran upgrade.  I am reflashing now to start over without running upgrade.

Should I be able to uses packages from that feed?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135064\"][{POST_SNAPBACK}][/a][/div]
My image is build from the oz354x tree, so the packages should be identical (except zaurusd which has a newer config file).
Can you post your error messages?

Dirk

xenophobe

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #86 on: July 14, 2006, 05:01:50 am »
Quote
QUOTE(xenophobe @ Jul 12 2006, 10:26 AM)
I had tested kernel 2.6.17 with OPIE image.

System hangs up if it turned off and quickly turned on.
*


Can't reproduce this, can you provide more details?
I press power button on my Zaurus, and just after screen is turned black, I press power button again. Some times this leads to system hang up.

dirk

  • Newbie
  • *
  • Posts: 26
    • View Profile
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #87 on: July 14, 2006, 06:59:18 am »
Quote
I press power button on my Zaurus, and just after screen is turned black, I press power button again. Some times this leads to system hang up.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135109\"][{POST_SNAPBACK}][/a][/div]
Does the screen is turned on(but no backlight)? Does the green led blinks twice?

I think I have identified a race condition. I'll look into this.

Dirk

xenophobe

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #88 on: July 14, 2006, 10:26:02 am »
Quote
Quote
I press power button on my Zaurus, and just after screen is turned black, I press power button again. Some times this leads to system hang up.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135109\"][{POST_SNAPBACK}][/a][/div]
Does the screen is turned on(but no backlight)? Does the green led blinks twice?

I think I have identified a race condition. I'll look into this.

Dirk
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135122\"][{POST_SNAPBACK}][/a][/div]
Yes, screen is turned on, but does not contain any image or text, only '_' character in upper left corner, and no backlight.
I don't remember anything about green led behaviour.

nevarrie

  • Full Member
  • ***
  • Posts: 188
    • View Profile
    • http://www.thegrantclan.org
Fixes For 3.5.4 / Tosa (6000 Models)
« Reply #89 on: July 14, 2006, 10:38:14 am »
Quote
My image is build from the oz354x tree, so the packages should be identical (except zaurusd which has a newer config file).
Can you post your error messages?

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

I did not get errors that I saw(coudl have been int he logs that I did not look into.  Most of my problems where with programs not saving config change(look and feel, network, screen setup).  It may have been something else I did other then the upgrade since I have seen a few of the issues since then.

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)?

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?

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)

As always I will post more as I find things that show my ignorance or issues that I find.  I will also start posting to zaurus.thegrantclan.org the manual fixes for images as we find them so we have a place to easily get a 6k up with 2.6 for testing along with know issues.
***********************
Jeremy "Nevarrie" Grant
SL-6000L
OpenZaurus 3.5.4.1 GPE(2.6 kernel)|GrantRom 0.01(e-image clone)
Targus IR Keyborad