Author Topic: Wanted: Serial_cs.o For C3000/linux 2.4.20  (Read 13756 times)

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« on: July 31, 2005, 03:54:06 pm »
I am looking for a patched serial_cs.o like the one mentioned on http://64.233.183.104/search?q=cache:3PMhO...rus+serial_cs.c but compiled for Linux 2.4.20 which is used in the C3000 models.

The 2.4.18-rmk7-pxa3-embedix version I have for the C7/8x0 models does not load properly on a 2.4.20 kernel even if forced to:

Code: [Select]
# insmod -f serial_cs
Using /lib/modules/2.4.20/pcmcia/serial_cs.o
Warning: kernel-module version mismatch
 Â       /lib/modules/2.4.20/pcmcia/serial_cs.o was compiled for kernel version 2.4.18-rmk7-pxa3-embedix
 Â       while this kernel is version 2.4.20
/lib/modules/2.4.20/pcmcia/serial_cs.o: init_module: Invalid argument
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters

Has anybody already compiled it, since I don't have the development system to do that?

I don't have source code of the patch, but I found reports that it is already patched in the 2.4.21 sources as mentioned in the URL above. So one would have to get the 2.4.21 (or later) source, just compile within the 2.4.20 environment and publish here.

Any support will be appreciated since some CF cards need the patched driver to work properly.

-- hns
« Last Edit: August 21, 2005, 07:06:08 am by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #1 on: August 01, 2005, 02:37:18 pm »
You can try and have a look at this page: http://www.steyla.com/zaurus.html

There's a kernel in there which should have the serial stuff built-in. I found this while I was looking for a serial_cs module to use my GPRS CF card on the C3000, maybe it can help you?
Patrick

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #2 on: August 01, 2005, 03:43:38 pm »
Quote
You can try and have a look at this page: http://www.steyla.com/zaurus.html

There's a kernel in there which should have the serial stuff built-in. I found this while I was looking for a serial_cs module to use my GPRS CF card on the C3000, maybe it can help you?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90405\"][{POST_SNAPBACK}][/a][/div]
Great! Many thanks for the link.

Now, there is something I do not understand:
Quote
It might also work, if one would only provide a serial_cs.o module. But why not do it the 'right' way? Be aware, just providing a serial_cs.c from a newer > 2.4.21 Linux vanilla kernel will work, but it will lead to complete crashes as there have been some modifications made to serial_cs by Sharp.
So what: does it work or does it not work?
I would prefer to have just a matching serial_cs.o to install instead of a complete kernel...

-- hns
« Last Edit: August 01, 2005, 03:46:54 pm by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #3 on: August 02, 2005, 06:05:21 pm »
Quote
So what: does it work or does it not work?
I was able to make my GPRS card work with this kernel, so I'd say it does work.

Quote
I would prefer to have just a matching serial_cs.o to install instead of a complete kernel...
You might want to try this module I compiled back in February. Can't tell you if this one module does work or not, since (due to other problems) I wasn't succesfull at that time, and I've since switched to Tetsu's special kernel so I didn't try again after getting the rest in working order...

 [ Invalid Attachment ]

Hope this helps...
Patrick

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #4 on: August 03, 2005, 03:56:49 am »
Quote
You might want to try this module I...
I will try (might need 2 weeks for an answer though).

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #5 on: August 21, 2005, 07:04:02 am »
Quote
You might want to try this module I compiled back in February. Can't tell you if this one module does work or not, since (due to other problems) I wasn't succesfull at that time, and I've since switched to Tetsu's special kernel so I didn't try again after getting the rest in working order...

 [ Invalid Attachment ]

Hope this helps...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90560\"][{POST_SNAPBACK}][/a][/div]
So, now I have had a chance to test the module. It does not complain about version mismatch on insmod but dmesg still says:
Code: [Select]
pxa_pcmcia_init(0)
serial_cs: RequestConfiguration: Bad Vcc
#
So, we still need somebody to compile a patched serial_cs for the 2.4.20 kernel...

Volunteers, links, pointers, everybody welcome!

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #6 on: August 22, 2005, 09:43:10 am »
I can compile it if someone gives me the source code of the patched version.

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #7 on: August 22, 2005, 10:11:50 am »
Quote
I can compile it if someone gives me the source code of the patched version.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Anton,
that would be great help for all GPRS/GPS users with a C1000/3x00 model!

I have read at [a href=\"http://qpegps.sourceforge.net/assets/gps_units/holux_gm_270.html]http://qpegps.sourceforge.net/assets/gps_u...lux_gm_270.html[/url] that the serial_cs.c from Linux 2.4.21 should work (version 1.138). So, if you can get that somehow...

Others reported that there have been patches by Sharp to the serial_cs. So, it might have to become a mixture of the patched 2.4.20 and the patch applied to 2.4.21.

Unfortunately, I have no idea what has been changed to make the bad Vcc message disappear. And http://www.linuxhq.com/kernel/v2.4/21/drivers/char/serial.c has patches only...

So, somebody out there with more knowledge what has to be pached?

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #8 on: August 22, 2005, 11:01:16 am »
Quote
So, if you can get that somehow...
I now found how to download the full kernel packages from http://www.linuxhq.com/kernel/v2.4/.

Attached are both source files from "official" 2.4.20 (1.128) and 2.4.21 (1.138) and a diff.

Comparing 2.4.20 to the Sharp kernel should reveal any changes they have made. And comparing to 2.4.21 should show what needs to be done for the Vcc issue. Indeed looking at diff shows some changes to the Vcc logic.

-- hns
« Last Edit: August 22, 2005, 11:03:13 am by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #9 on: August 22, 2005, 01:00:47 pm »
OK, I will have a look

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #10 on: August 24, 2005, 05:06:54 am »
Actualy it turns out that Sharp kernel already includes a copy of serial_cs (version 1.138) form 2.4.21 with a bunch of patches.

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #11 on: August 24, 2005, 05:23:09 am »
Quote
Actualy it turns out that Sharp kernel already includes a copy of serial_cs (version 1.138) form 2.4.21 with a bunch of patches.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93037\"][{POST_SNAPBACK}][/a][/div]
Interesting! But it fails for the Audiovox RTM8000... So, the Sharp patches might not be correct.
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #12 on: August 24, 2005, 08:23:01 am »
Did you try using another kernel, like for instance the latest hacked kernel for the C3000 on Tetsu's site? I'm using v18a, and the serial stuff is built-in (i.e. not in a module), and it handles my GSM/GPRS CF card gracefully. When looking a the dmesg output, I see a lot of stuff related to adjusting the voltage when I insert/remove the card in the Zaurus...
Patrick

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #13 on: August 24, 2005, 08:27:28 am »
Quote
Did you try using another kernel, like for instance the latest hacked kernel for the C3000 on Tetsu's site?
No, because I want/need a module for the Original ROM because it is easier to install for everybody...

Is the source for the serial_cs.c for the Tetsu kernel available somewhere? Or a note what he did patch to make it work?

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

euroclie

  • Full Member
  • ***
  • Posts: 205
    • View Profile
    • http://
Wanted: Serial_cs.o For C3000/linux 2.4.20
« Reply #14 on: August 24, 2005, 08:50:22 am »
Quote
No, because I want/need a module for the Original ROM because it is easier to install for everybody...
Quite understandable...

Quote
Is the source for the serial_cs.c for the Tetsu kernel available somewhere? Or a note what he did patch to make it work?
I think that all the patches Tetsu included in his kernel are available from the same page, you should be able to patch the stock Sharp kernel and recompile it, making the serial stuff a module.

I would gladly try to do this, but I'm almost deprived of free time for even such simple projects until mid October at least...
Patrick