I have managed to compile owperl for openwrt. Here are some outputs of the
installation and tests.
Perl is pretty big, but I managed to install everything on a WRT54G with 4Mb
flash and whiterussian 0.9.
/Christian
[EMAIL PROTECTED]:~# ipkg install owfs
Installing owfs (2.6p5-14) to root...
Downloading http://home.mag.cx/openwrt/packages/./owfs_2.6p5-14_mipsel.ipk
Installing owlib (2.6p5-14) to root...
Downloading http://home.mag.cx/openwrt/packages/./owlib_2.6p5-14_mipsel.ipk
Installing kmod-fuse (2.4.30+2.4.2-brcm-1) to root...
Downloading
http://home.mag.cx/openwrt/packages/./kmod-fuse_2.4.30+2.4.2-brcm-1_mipsel.i
pk
Installing libfuse (2.4.2-1) to root...
Downloading http://home.mag.cx/openwrt/packages/./libfuse_2.4.2-1_mipsel.ipk
Installing fuse-utils (2.4.2-1) to root...
Downloading
http://home.mag.cx/openwrt/packages/./fuse-utils_2.4.2-1_mipsel.ipk
Configuring fuse-utils
Configuring kmod-fuse
Configuring libfuse
Configuring owfs
Configuring owlib
Successfully terminated.
[EMAIL PROTECTED]:~# ipkg install owperl
Installing owperl (2.6p5-14) to root...
Downloading http://home.mag.cx/openwrt/packages/./owperl_2.6p5-14_mipsel.ipk
Installing perl (5.8.7-1) to root...
Downloading http://home.mag.cx/openwrt/packages/./perl_5.8.7-1_mipsel.ipk
Installing perlbase-autoloader (5.8.7-1) to root...
Downloading
http://home.mag.cx/openwrt/packages/./perlbase-autoloader_5.8.7-1_mipsel.ipk
Installing perlbase-config (5.8.7-1) to root...
Downloading
http://home.mag.cx/openwrt/packages/./perlbase-config_5.8.7-1_mipsel.ipk
Installing perlbase-dynaloader (5.8.7-1) to root...
Downloading
http://home.mag.cx/openwrt/packages/./perlbase-dynaloader_5.8.7-1_mipsel.ipk
Installing perlbase-essential (5.8.7-1) to root...
Downloading
http://home.mag.cx/openwrt/packages/./perlbase-essential_5.8.7-1_mipsel.ipk
Installing perlbase-io (5.8.7-1) to root...
Downloading
http://home.mag.cx/openwrt/packages/./perlbase-io_5.8.7-1_mipsel.ipk
Configuring owperl
Configuring perl
Configuring perlbase-autoloader
Configuring perlbase-config
Configuring perlbase-dynaloader
Configuring perlbase-essential
Configuring perlbase-io
Successfully terminated.
[EMAIL PROTECTED]:~#
[EMAIL PROTECTED]:~# echo 'OPTIONS="-p 3002 --fake 28 --fake 10"' >>
/etc/default/owserver
[EMAIL PROTECTED]:~# run-owfs
Using /lib/modules/2.4.30/fuse.o
[EMAIL PROTECTED]:~# cat test1.pl
#!/usr/bin/perl
use OW;
print "Version: ".OW::version."\n";
#OW::set_error_level(9);
#OW::set_error_print(2);
print OW::init("localhost:3002")."\n";
print "dir: ".OW::get("/")."\n";
print OW::get("10.67C6697351FF/temperature")."\n";
OW::finish();
[EMAIL PROTECTED]:~# ./test1.pl
Version: 2.6p5
1
dir:
structure/,bus.0/,uncached/,settings/,system/,statistics/,28.4AEC29CDBAAB/,1
0.67C6697351FF/,alarm/,simultaneous/
36.4784
[EMAIL PROTECTED]:~#
[EMAIL PROTECTED]:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 1024 1024 0 100% /rom
none 7152 60 7092 1% /tmp
/dev/mtdblock/4 2240 1544 696 69% /jffs
/jffs 1024 1024 0 100% /
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers