OpenWrt Forum Archive

Topic: open2300

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi!

I successfully compiled open2300 for whiterussian, using the SDK. So far, it seems to work.  The last svn version I got is 1.11. I made some modifications in the src Makefile to use a shared library (lib2300). This changes allow a package size reduction from more than 200KB to around 40KB.

The only thing is that I get this error when running ipkg install:
...
ipkg: Unknown typeflag: 0x4b: Illegal seek
ipkg: Unknown typeflag: 0x4b: Illegal seek
ipkg: Don't know how to handle /./@LongLink: No such file or directory
Configuring open2300
Successfully terminated.

I know for sure that this line in the package/open2300/Makefile is the cause:
    ln -sf $(1)/usr/lib/lib2300.so.1.11 $(1)/usr/lib/lib2300.so

Any Idea to solve this?
Thanks!

Here is the whole install section of the Makefile...

define Package/open2300/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_DIR) $(1)/usr/lib
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib2300.so.1.11 $(1)/usr/lib/
    ln -sf $(1)/usr/lib/lib2300.so.1.11 $(1)/usr/lib/lib2300.so
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/open2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/dump2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/log2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/fetch2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/wu2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/cw2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/history2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/histlog2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/xml2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/light2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/interval2300 $(1)/usr/bin/
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/minmax2300 $(1)/usr/bin/
    $(INSTALL_DIR) $(1)/etc
    $(INSTALL_DATA) $(PKG_BUILD_DIR)/open2300.conf $(1)/etc/
endef

Note that the program seems to work nicely with a sym link created manually...

root@mauna_ulu:~# ln -s /usr/lib/lib2300.so.1.11 /usr/lib/lib2300.so
root@mauna_ulu:~# open2300 0200 r 3
Read Commands sent: 82 8A 82 82 CE
Address: 0201|0200 - Data: 16
Address: 0203|0202 - Data: 54
Address: 0205|0204 - Data: 21
root@mauna_ulu:~#

(Last edited by elvicomte on 5 Jun 2008, 20:56)

Any idea where I can find the open2300 ipk for openwrt?

elvicomte wrote:

ipkg: Unknown typeflag: 0x4b: Illegal seek
ipkg: Unknown typeflag: 0x4b: Illegal seek
ipkg: Don't know how to handle /./@LongLink: No such file or directory
Configuring open2300
Successfully terminated.

I know for sure that this line in the package/open2300/Makefile is the cause:
    ln -sf $(1)/usr/lib/lib2300.so.1.11 $(1)/usr/lib/lib2300.so

Try this line instead:

ln -sf /usr/lib/lib2300.so.1.11 $(1)/usr/lib/lib2300.so

Indeed smile

Works fine now.
I added the ipk to this ticket

-Elv

elvicomte wrote:

Indeed smile

Works fine now.
I added the ipk to this ticket

-Elv

Hello,
i have installed your ipk into /mmc.
Now i have
/mmc/usr
/mmc/usr/bin
/mmc/usr/lib
/mmc/usr/sbin
/mmc/usr/share
/mmc/usr/etc

My wrt54gl don't have yet a serial port connected at ws2308 station.

I have a problem...this:

root@OpenWrt:/mmc/usr/bin# /mmc/usr/bin/open2300
Segmentation fault
root@OpenWrt:/mmc/usr/bin#


Can you help me?

Alberto

The discussion might have continued from here.