Author Topic: REC - ipkg error, Segmentation fault  (Read 3813 times)

Flowmoon

  • Newbie
  • *
  • Posts: 11
    • View Profile
REC - ipkg error, Segmentation fault
« on: December 08, 2003, 10:56:14 am »
OK, fortunately I was able to retrieve the thread from my browser\'s cache

The problem I got stuck with is that the package command manager raises a very helpful error \"ipkg says something went wrong, sorry\" while installing the Affix application, to run bluetooth on my SL-5600 with a BlueMonkey CF bluetooth card. This happens while installing the first file of the Affix package: bluetooth-affix-kernel_2.0.2-3_arm.ipk.

The problem persists when I use another version of the ipk (eg, tried version 1.2.4 from affix.sourceforge.net/feeds/stable/zaurus/). Also, when I login as su and run ipkg install then following 2 messages appear:
Unpacking bluetooth-affix-kernel...Done.
Configuring bluetooth-affix-kernel...Segmentation fault

Lardman suggested that the problem might be in the \'postinst\' file. Using his suggestions I was able to extract it from bluetooth-affix-kernel_2.0.2-3_arm.ipk, its contents are:

chown root /lib/modules/2.4.6-rmk1-np2-embedix/kernel/drivers/affix/*
chown root /lib/modules/2.4.6-rmk1-np2-embedix/kernel/net/affix/*
mknod -m 0644 /dev/bty0 c 60 0
mknod -m 0644 /dev/bty1 c 60 1
mknod -m 0644 /dev/bty2 c 60 2
mknod -m 0644 /dev/bty3 c 60 3
mknod -m 0644 /dev/bty4 c 60 4
mknod -m 0644 /dev/bty5 c 60 5
mknod -m 0644 /dev/bty6 c 60 6
mknod -m 0644 /dev/bty7 c 60 7
mknod -m 0644 /dev/bty8 c 60 8
mknod -m 0644 /dev/bty9 c 60 9
depmod -a

I checked my Z: all mentioned folders exist. Also I noticed that all files in data.tar.gz have been installed on the Z. Also I found elsewhere in /lib/modules/ similar files which apparantly remained from an the attempt to install Affix version 1.2.4, and an earlier attempt to install BlueZ.
I do not know what the various commands in \'postinst\' do, however.

Is there anything in this \'postinst\' file which might explain the \'Segmentation fault\' which occurs while configuring \'bluetooth-affix-kernel\'??
SL5600 with Sharp ROM 1.32V
Blue Monkey bluetooth CF card V1.1, model LSE039/12 R2B
DaneElec 516 MB SD card
PC: Win2K

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
REC - ipkg error, Segmentation fault
« Reply #1 on: December 08, 2003, 11:05:56 am »
depmod can seg fault if there are conflicting modules lying around, which is sounds like what you have with files from BlueZ still there.

I\'d delete everything Bluetooth related, reboot and then try and install Affix.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

Flowmoon

  • Newbie
  • *
  • Posts: 11
    • View Profile
REC - ipkg error, Segmentation fault
« Reply #2 on: December 08, 2003, 04:25:54 pm »
Alas... I removed everyting which I could find under /lib/modules/ related to earlier Affix or BlueZ installs, rebooted, moved the Affix ipk files to /mnt/cf/, as su moved there then ran \"ipkg install bluetooth-affix-kernel_2.0.2-3_arm.ipk\";
-and got exactly the same error: \"segmentation fault\" during \"configuring bluetooth-affix-kernel\"

So, do I have any options left? What else might be causing this \"segmentation fault\"?

The only other clue which I have is that when I use the package command manager (rather than command line ipkg) after the error message an empty file named \"+=+\" is installed in /home/zaurus/... no idea why.
SL5600 with Sharp ROM 1.32V
Blue Monkey bluetooth CF card V1.1, model LSE039/12 R2B
DaneElec 516 MB SD card
PC: Win2K

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
REC - ipkg error, Segmentation fault
« Reply #3 on: December 09, 2003, 03:22:44 am »
Most people get the file \'+=+\' for some reason. No one knows why.

There could still be a module you missed. Have you done something like this to look for everything bluetooth:

find / -name bluetooth 2] /dev/null

If there are still bluetooth directories under the /lib/modules directory/sub-directories then you need to delete them and everything in them and reboot.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

Flowmoon

  • Newbie
  • *
  • Posts: 11
    • View Profile
REC - ipkg error, Segmentation fault
« Reply #4 on: December 16, 2003, 11:53:18 am »
nope... I removed everything I could find about bluetooth under /lib/modules but the problem persists  

Also, more things seem to be wrong with my Z: the USB cradle connection is gone (the PC does not even recognize it as a USB device after a PC software reinstall), the CF card is lost during a few seconds after each suspend, it does not see my new SD card at all, it ended up in a loop a few times after a soft reset (battery compartment latch flip)..

So, as last resort I tried to restore the original system, but I don\'t seem to be able to do a hard reset: the reboot (using the reset button) behaves like the \"battery compartment latch\" reset and all problems persist...

Questions:
1) is it enough to to copy the *.IDX and *.BOX files from /home/zaurus/Applications/dtm in order to restore the PIM data afterwards?
2) how to force a hard reset when apparantly the reset button in the battery compartment does not work?
SL5600 with Sharp ROM 1.32V
Blue Monkey bluetooth CF card V1.1, model LSE039/12 R2B
DaneElec 516 MB SD card
PC: Win2K

Flowmoon

  • Newbie
  • *
  • Posts: 11
    • View Profile
REC - ipkg error, Segmentation fault
« Reply #5 on: January 11, 2004, 11:33:27 am »
So, after a few weeks of trying about everything...

I never got Affix to work -continue to receive segmentation faults, even after a hard reset and starting from a completely clean system. Installed the new Sharp ROM 1.32 -no success.

So, against all advise that newbies shouldn\'t try it I made an attempt with BlueZ (from bluez-zaurus_2.3-2.4.18c-preempt_arm.ipk) -no success as well, hconfig returns \"Can\'t open HCI socket.: Address family not supported by protocol\".
Anyways, most info about how to configure BlueZ is absolutely chinese for me, so even if it would work I have no idea how I can do anything useful with it.

I am at the end of my options as far as I can judge. Or does anyone have another suggestion how to get bluetooth operational?
SL5600 with Sharp ROM 1.32V
Blue Monkey bluetooth CF card V1.1, model LSE039/12 R2B
DaneElec 516 MB SD card
PC: Win2K

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
REC - ipkg error, Segmentation fault
« Reply #6 on: January 11, 2004, 12:22:10 pm »
Did you install the pre-emptive kernel or \'special\' kernel. If not you should not be using the preempt version of the package.

I have the Bluemonkey card too and it works fine with BlueZ, but I need to release a new package with a few fixes for some lockup issues.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

soycap

  • Jr. Member
  • **
  • Posts: 73
    • View Profile
    • http://www.tekprosystems.com/zaurus
REC - ipkg error, Segmentation fault
« Reply #7 on: January 11, 2004, 02:25:24 pm »
You may want to try the packages I have here with an OZ build.  I have the 5500, so I am guessing that the 3.3.3 version of OZ I am currently using won\'t work for you, but the ipks might on another build of OZ for the 5600.

http://www.tekprosystems.com/zaurus/616tgprs.htm

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
REC - ipkg error, Segmentation fault
« Reply #8 on: January 11, 2004, 07:38:18 pm »
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

Flowmoon

  • Newbie
  • *
  • Posts: 11
    • View Profile
REC - ipkg error, Segmentation fault
« Reply #9 on: January 18, 2004, 10:52:57 am »
With thanks to your suggestions I finally seem to be getting somewhere: hciconfig raised an active card, and bluetooth on my PC detects the Zaurus.

However, although the PC detects the Z, when I query it from my PC then \"No services found on Zaurus\" is returned. I configured rfcomm.conf for a serial connection as described in the how2, but got lost inbetween all the different modems on my PC. Now I need success fast before my wife throws this little time consumer out of the window.. help! ;-)

I suppose my simplest option would be a PAN connection (according Jens Koenen that should already bet set up on my PC by the Belkin /Widcomm PC software I use) in combination with the Bluetooth PAN Applet (community.zaurus.com didn\'t work but I found qtopia-pannetworkapplet_1.0.1_arm.ipk at my-zaurus.narod.ru). For the moment just to exchange files thru PAN, if that works then perhaps I\'ll try internet connection sharing... If anyone sees this otherwise please let me know!

Now I have several questions:
1) According Jens Koenen should I should set the IP of the \"Bluetooth-Network\" on the PC to 192.168.129.1. Can I find this as the IP address of the \"TCP/IP-] Bluetooth LAN Access Server Driver\" network component? Should I put anything in the \"subnet mask\"? (I\'m using Win98SE...)
2) I can\'t find info how to configure the PAN applet... What must I fill in the PAN applet under the IP tab: IP address, subnet mask, \"broadcast\", \"gateway\", first DNS, second DNS? Under the proxies tab: would \"no proxies\" do? (other choices are: auto configure proxies, set proxies)

Thanks for your suggestions...
by now I\'ve deviated from the original thread -should I perhaps post this under a new title?
SL5600 with Sharp ROM 1.32V
Blue Monkey bluetooth CF card V1.1, model LSE039/12 R2B
DaneElec 516 MB SD card
PC: Win2K