Click here to go to the forum index Click here for the home page
 
Author Message

<  Computer connections  ~  ftpd-topfield 0.7.7n

Page 1 of 4
Goto page 1, 2, 3, 4  Next
rbools
Posted: Sun Dec 19, 2010 12:34 pm Reply with quote
Frequent contributor Joined: 10 Jul 2005 Posts: 448
Anybody able to help me out here....?

I want to run two toppies on my Slug, and hence want to upgrade ftpd-topfield to 0.7.7n as per here

Unfortunately I'm completely failing to build it from source natively on the Slug since I can't find enough information written in plain enough language for me to be able to work out exactly what i need to install to do it. I've loaded the source code onto the Slug, and installed Make, but I know that I'm still lacking a C complier since Make complains about 'cc not found', but I can't figure out exactly what to load to get it.

Alternatively, is there a pre-built binary for the Slug available? I tried the pre-built one for the Asus, but it didn't work.

Cheers.

_________________
TF5800, TS On, F/W: 5.13.65AbB4BfBmBqC0CeCkCpCwCyDeEcEeEfEpErEsEvEzFFmFsGmHHeHsIKtMMhNfOtPPcPePsRRaReRhRpRsSScSdSlSrStSyT2TdTeTfTpTsUUuUxVdWfXpXwZXl
TAPs: NoExit 1.0; QuickJump 1.72; MyStuff 6.2; EPG2MEI v0.96; Extend v1.7; Font Manager 1.0d; MeiSearch 1.35; Power Manager v2.2; SecCache (UK) v0.4; Surfer v0.14; TAP Commander 1.34; TF5000 Display v1.53; TSSaver v0.5; UK Subtitle 1.9; MyInfo B5.4;
Sig generated by MyInfo TAP on 26/11/10
View user's profile Send private message
birdman
Posted: Mon Dec 20, 2010 2:37 am Reply with quote
Frequent contributor Joined: 13 Dec 2006 Posts: 1765 Location: Hitchin, HERTS Tx: Sandy Heath
rbools wrote:
Unfortunately I'm completely failing to build it from source natively on the Slug since I can't find enough information written in plain enough language for me to be able to work out exactly what i need to install to do it.
It needs gcc and the development libraries for libusb. For the Asus (running Oleg's) these are the "buildroot" and "libusb" packages respectively. If you have those then unpacking And running "make" should work.
and also wrote:
Alternatively, is there a pre-built binary for the Slug available? I tried the pre-built one for the Asus, but it didn't work.
What error message do you get? It needs the "libusb" package installed (see above).

_________________

Toppy: TF5800PVR/250 - Black, now 1TB WD10EURX
F/W: MS6 Recommended F/W 12/9/2009 -FmVrXp+BmC0CbFsIPsUUuWfZXl,
Loader: C5.14, Hardware: 1.01
TAPs: SecCache (UK) v0.4; EPG2MEI v0.96; FontManager 1.0d; QuickJump 1.71; MhegOnOff(Now1) A3; EIT Sub v0.6; MyStuff 6.6
USB connected: SheevaPlug with Debian wheezy
Sig mostly from MyInfo on 26/10/09
View user's profile Send private message
mstombs
Posted: Mon Dec 20, 2010 10:23 am Reply with quote
Frequent contributor Joined: 31 Dec 2006 Posts: 938
Asus is Broadcom "mips", the slug Intel ixp "arm" I wouldn't have thought binaries would transfer. I do have nslu2 OpenWRT build tools around, but would need some experimentation to see if that works - OpenWRT builds with uclibc, potentially having lots more ram available for apps on nslu2, but was a bit fiddly to setup. The nslu2 firmware had wireless installed by default but not usb for example I recall.

_________________
TF5800 1.5TB, TS On, NSLU2 + unslung 6.10 + WD500GB + MWI 0.66, F/W: MS6 Recommended F/W 12/9/2009 -Fm+AfBmC0CfCtFsIMPePfPsScUWfWs
TAPs: EPG2MEI v0.96; QuickJump 1.72; SecCache (UK) v0.4; (MyInfo B5.6); MHEG On/Off A3; Extend v1.7; MyStuff 6.6; DumbWidescreenTV 2.44; TF5000 Display v1.53; PruneEPG 1.0; (EIT Sub v0.6 SnG);
Sig generated with help from MyInfo on 18/4/15
?
View user's profile Send private message TF5800
rbools
Posted: Mon Dec 20, 2010 1:08 pm Reply with quote
Frequent contributor Joined: 10 Jul 2005 Posts: 448
birdman wrote:
What error message do you get? It needs the "libusb" package installed (see above).


The error message is '1: Syntax error "(" unexpected'.

I have libusb installed via Optware.

I very nearly got to the point where my own compiled version worked last night. Much faffing with the makefile and paths resulted in the binary compiling with no errors. However upon running it I kept getting an error stating that shared object library libusb-1.0.so.4 could not be loaded, no such file or directory. This is despite libusb being loaded (or it would never have compiled anyway) and its install path '/opt/lib' being in $PATH both at compile and then at run time.

I could however successfully compile and run the new version with 'make OLD_DEV_SCAN=1' i.e. no reference to libusb, but I'm not sure this will do what I want.

I also noticed that the binary compiled to just over 300KB where as the original 0.7.7 that is usually run is only around 65KB.

To be honest, I'm thoroughly disheartened having put in a lot of effort. I hadn't even got round to trying to compile Puppy yet either. Sad

_________________
TF5800, TS On, F/W: 5.13.65AbB4BfBmBqC0CeCkCpCwCyDeEcEeEfEpErEsEvEzFFmFsGmHHeHsIKtMMhNfOtPPcPePsRRaReRhRpRsSScSdSlSrStSyT2TdTeTfTpTsUUuUxVdWfXpXwZXl
TAPs: NoExit 1.0; QuickJump 1.72; MyStuff 6.2; EPG2MEI v0.96; Extend v1.7; Font Manager 1.0d; MeiSearch 1.35; Power Manager v2.2; SecCache (UK) v0.4; Surfer v0.14; TAP Commander 1.34; TF5000 Display v1.53; TSSaver v0.5; UK Subtitle 1.9; MyInfo B5.4;
Sig generated by MyInfo TAP on 26/11/10
View user's profile Send private message
mstombs
Posted: Mon Dec 20, 2010 11:35 pm Reply with quote
Frequent contributor Joined: 31 Dec 2006 Posts: 938
I can compile a 50kB ftpd-topfield 0.7.4 using the OpenWRT IXP armeb tolchain, I can also compile libusb and libusb-1.0 (not sure which one needed) .

Have now compiled 0.7.7n - but can now confirm OpenWRT SDK exes don't run on unslung.

Also had the -lusb error, need to define LIBUSB to point the directory where the lib is, so the linking line becomes

Code:
-L../../../staging_dir/armeb/usr/lib -lusb


in both Makefile and libtopfield Makefile

The Makefile doesn't "strip" the binary, which explains the size increase.


Last edited by mstombs on Tue Dec 21, 2010 3:01 pm; edited 1 time in total

_________________
TF5800 1.5TB, TS On, NSLU2 + unslung 6.10 + WD500GB + MWI 0.66, F/W: MS6 Recommended F/W 12/9/2009 -Fm+AfBmC0CfCtFsIMPePfPsScUWfWs
TAPs: EPG2MEI v0.96; QuickJump 1.72; SecCache (UK) v0.4; (MyInfo B5.6); MHEG On/Off A3; Extend v1.7; MyStuff 6.6; DumbWidescreenTV 2.44; TF5000 Display v1.53; PruneEPG 1.0; (EIT Sub v0.6 SnG);
Sig generated with help from MyInfo on 18/4/15
?
View user's profile Send private message TF5800
birdman
Posted: Tue Dec 21, 2010 3:09 am Reply with quote
Frequent contributor Joined: 13 Dec 2006 Posts: 1765 Location: Hitchin, HERTS Tx: Sandy Heath
mstombs wrote:
Asus is Broadcom "mips", the slug Intel ixp "arm" I wouldn't have thought binaries would transfer.
Sorry - no they wouldn't. I keep thinking that a Slug and Asus run on the same chip....

rbools wrote:
The error message is '1: Syntax error "(" unexpected'.
Which is explained by it being for the wrong instruction set...
and also wrote:
I very nearly got to the point where my own compiled version worked last night. Much faffing with the makefile and paths
Odd - as it doesn't mention any paths - except for installing, but you don't need to install it.
and also wrote:
However upon running it I kept getting an error stating that shared object library libusb-1.0.so.4 could not be loaded, no such file or directory. This is despite libusb being loaded (or it would never have compiled anyway)
It was dynamically linked. It also needs to be found at run-time - which is something different.
and also wrote:
and its install path '/opt/lib' being in $PATH both at compile and then at run time.
PATH has nothing to do with finding libraries. I'd expect the library to be installed into a location which is a standard system location of libraries. Looks like /opt/lib isn't.
Try building as:
Code:
make LFLAGS=-Wl,-rpath,/usr/lib

Quote:

I could however successfully compile and run the new version with 'make OLD_DEV_SCAN=1' i.e. no reference to libusb, but I'm not sure this will do what I want.
No - it won't.

_________________

Toppy: TF5800PVR/250 - Black, now 1TB WD10EURX
F/W: MS6 Recommended F/W 12/9/2009 -FmVrXp+BmC0CbFsIPsUUuWfZXl,
Loader: C5.14, Hardware: 1.01
TAPs: SecCache (UK) v0.4; EPG2MEI v0.96; FontManager 1.0d; QuickJump 1.71; MhegOnOff(Now1) A3; EIT Sub v0.6; MyStuff 6.6
USB connected: SheevaPlug with Debian wheezy
Sig mostly from MyInfo on 26/10/09
View user's profile Send private message
mstombs
Posted: Wed Dec 22, 2010 12:22 pm Reply with quote
Frequent contributor Joined: 31 Dec 2006 Posts: 938
A problem with nslu2 native compile is that there is no libusb-dev, so I compiled libusb-0.1.1.12 (with digitemp patch?) and then dropped a copy of libusb.a into the libtopfield folder (will try again with /opt/lib, not sure why can't link to the .so?)

I now have a native ftpd 0.7.7n which runs, but does not connect to the toppy, has this error in log

Code:
Dec 22 11:01:18 SLUG user.warn kernel: usb_control/bulk_msg: timeout
Dec 22 11:01:18 SLUG user.warn kernel: usbdevfs: USBDEVFS_BULK failed dev 45 ep 0x82 len 4096 ret -110


The error is suspiciously close to the digitemp patch I applied to libusb!

Do you have to mount the usbdevfs before use?
Is the legacy libusb-0.1, or should it be the current libusb-1.0 that should be used?


Last edited by mstombs on Wed Dec 22, 2010 5:36 pm; edited 1 time in total

_________________
TF5800 1.5TB, TS On, NSLU2 + unslung 6.10 + WD500GB + MWI 0.66, F/W: MS6 Recommended F/W 12/9/2009 -Fm+AfBmC0CfCtFsIMPePfPsScUWfWs
TAPs: EPG2MEI v0.96; QuickJump 1.72; SecCache (UK) v0.4; (MyInfo B5.6); MHEG On/Off A3; Extend v1.7; MyStuff 6.6; DumbWidescreenTV 2.44; TF5000 Display v1.53; PruneEPG 1.0; (EIT Sub v0.6 SnG);
Sig generated with help from MyInfo on 18/4/15
?
View user's profile Send private message TF5800
richie
Posted: Wed Dec 22, 2010 5:27 pm Reply with quote
Frequent contributor Joined: 30 Mar 2005 Posts: 156 Location: Ash Vale (Hannington)
I am getting similar errors on my wl500gx.

Compiling the 0.7.7 version works fine. 0.7.7.n gives me connectivity errors. Everything seems fine and similar between the two - based on diagonstic messages - up to the point where the usb_bulk_write and/or usb_bulk_read functions are called for the first "cancel" command. usb_bulk_read returns -1 for 0.7.7.n.

I wonder what version of libusb we should be using and whether some of the functions bundled in 0.7.7 can be used instead ...?
View user's profile Send private message
mstombs
Posted: Wed Dec 22, 2010 5:39 pm Reply with quote
Frequent contributor Joined: 31 Dec 2006 Posts: 938
Does birdman's compile for the Asus work for you?

http://birdman.dynalias.org/R2-D2/

Problem with slug is that it is old Linux plus Big Endian arm, so needs custom compile.

_________________
TF5800 1.5TB, TS On, NSLU2 + unslung 6.10 + WD500GB + MWI 0.66, F/W: MS6 Recommended F/W 12/9/2009 -Fm+AfBmC0CfCtFsIMPePfPsScUWfWs
TAPs: EPG2MEI v0.96; QuickJump 1.72; SecCache (UK) v0.4; (MyInfo B5.6); MHEG On/Off A3; Extend v1.7; MyStuff 6.6; DumbWidescreenTV 2.44; TF5000 Display v1.53; PruneEPG 1.0; (EIT Sub v0.6 SnG);
Sig generated with help from MyInfo on 18/4/15
?
View user's profile Send private message TF5800
richie
Posted: Wed Dec 22, 2010 6:07 pm Reply with quote
Frequent contributor Joined: 30 Mar 2005 Posts: 156 Location: Ash Vale (Hannington)
No it doesn't, but his puppy compile does.

wget http://birdman.dynalias.org/R2-D2/mips/ftpd

ipkg list_installed | grep usb
libusb - 0.1.12-2 - Library for interfacing to the USB subsystem.
usbutils - 0.73-3 - USB enumeration utilities

./ftpd -P 2021 -X 1100 -d -D -l
ftpd-topfield[1964]: connection from 192.168.1.100
ftpd-topfield[1964]: <--- 220
ftpd-topfield[1964]: Asus FTP server (Topfield ftpd 0.7.7n) ready.
ftpd-topfield[1964]: command: USER anonymous
ftpd-topfield[1964]: <--- 331
ftpd-topfield[1964]: Guest login ok, type your name as password.
ftpd-topfield[1964]: command: PASS IEUser@
ftpd-topfield[1964]: <--- 230
ftpd-topfield[1964]: Guest login ok, access restrictions apply.
ftpd-topfield[1964]: ANONYMOUS FTP LOGIN FROM 192.168.1.100
ftpd-topfield[1964]: command: opts utf8 on
ftpd-topfield[1964]: <--- 500
ftpd-topfield[1964]: 'OPTS utf8 on': command not understood.
ftpd-topfield[1964]: command: PWD
ftpd-topfield[1964]: <--- 257
ftpd-topfield[1964]: "/" is current directory.
ftpd-topfield[1964]: command: CWD /DataFiles/
ftpd-topfield[1964]: topfield_open(1100) returned 0
ftpd-topfield[1964]: <--- 550
ftpd-topfield[1964]: Failed to establish communication with Topfield

tail /tmp/syslog.log
Dec 22 17:05:58 ftpd-topfield[1964]: connection from 192.168.1.100
Dec 22 17:05:58 ftpd-topfield[1964]: ANONYMOUS FTP LOGIN FROM 192.168.1.100
View user's profile Send private message
mstombs
Posted: Wed Dec 22, 2010 11:05 pm Reply with quote
Frequent contributor Joined: 31 Dec 2006 Posts: 938
I made some progress with native compile, gcc started segfaulting so re-installed as many gcc ipkgs and this magic incantation, inserted intot he config.mak in both ftp-topfield and libtopfield folders builds an executable, using the ipkg libusb

Code:
CC := gcc
CFLAGS += -I/opt/include
LIBUSB := -L/opt/lib -lusb
LFLAGS += -Wl,-rpath,/opt/lib


But - it still doesn't connect to toppy...

Code:
hub.c: new USB device 00:01.2-1, assigned address 4
Device descriptor:8 bytes received.
Device descriptor:18 bytes received.
usb.c: USB device 4 (vend/prod 0x11db/0x1000) is not claimed by any active driver.
usb.c: USB disconnect on device 00:01.2-1 address 4
hub.c: new USB device 00:01.2-1, assigned address 5
Device descriptor:8 bytes received.
Device descriptor:18 bytes received.
usb.c: USB device 5 (vend/prod 0x11db/0x1000) is not claimed by any active driver.
usb.c: USB disconnect on device 00:01.2-1 address 5
hub.c: new USB device 00:01.2-1, assigned address 6
Device descriptor:8 bytes received.
Device descriptor:18 bytes received.
usb.c: USB device 6 (vend/prod 0x11db/0x1000) is not claimed by any active driver.
usb.c: USB disconnect on device 00:01.2-1 address 6
hub.c: new USB device 00:01.2-1, assigned address 7
Device descriptor:8 bytes received.
Device descriptor:18 bytes received.
usb.c: USB device 7 (vend/prod 0x11db/0x1000) is not claimed by any active driver.
# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 007: ID 11db:1000 Topfield Co., Ltd. PVR
Bus 001 Device 003: ID 1058:1001 Western Digital Technologies, Inc. External Hard Disk

_________________
TF5800 1.5TB, TS On, NSLU2 + unslung 6.10 + WD500GB + MWI 0.66, F/W: MS6 Recommended F/W 12/9/2009 -Fm+AfBmC0CfCtFsIMPePfPsScUWfWs
TAPs: EPG2MEI v0.96; QuickJump 1.72; SecCache (UK) v0.4; (MyInfo B5.6); MHEG On/Off A3; Extend v1.7; MyStuff 6.6; DumbWidescreenTV 2.44; TF5000 Display v1.53; PruneEPG 1.0; (EIT Sub v0.6 SnG);
Sig generated with help from MyInfo on 18/4/15
?
View user's profile Send private message TF5800
birdman
Posted: Thu Dec 23, 2010 1:12 am Reply with quote
Frequent contributor Joined: 13 Dec 2006 Posts: 1765 Location: Hitchin, HERTS Tx: Sandy Heath
mstombs wrote:
A problem with nslu2 native compile is that there is no libusb-dev, so I compiled libusb-0.1.1.12
There's no libusb-dev on my Asus either. The dev bits (i.e. the lib symlinks and the header files) all come along with it:
Code:
[admin@Asus ipkg]$ ipkg files libusb         
Package libusb (0.1.12-2) is installed on /opt/ and has the following files:
/opt/lib/libusb-0.1.so.4.4.4
/opt/lib/libusb-0.1.so.4
/opt/bin/testlibusb
/opt/lib/pkgconfig/libusb.pc
/opt/lib/libusb.so
/opt/include/usb.h
/opt/bin/libusb-config
/opt/include/usbpp.h

Successfully terminated.

and also wrote:
Do you have to mount the usbdevfs before use?
Is the legacy libusb-0.1, or should it be the current libusb-1.0 that should be used?
You'll need to have usbfs mounted on /proc/bus/usb, or sysfs on /sys. At least I think that's what's needed - it's all handled by libusb.

_________________

Toppy: TF5800PVR/250 - Black, now 1TB WD10EURX
F/W: MS6 Recommended F/W 12/9/2009 -FmVrXp+BmC0CbFsIPsUUuWfZXl,
Loader: C5.14, Hardware: 1.01
TAPs: SecCache (UK) v0.4; EPG2MEI v0.96; FontManager 1.0d; QuickJump 1.71; MhegOnOff(Now1) A3; EIT Sub v0.6; MyStuff 6.6
USB connected: SheevaPlug with Debian wheezy
Sig mostly from MyInfo on 26/10/09
View user's profile Send private message
birdman
Posted: Thu Dec 23, 2010 1:14 am Reply with quote
Frequent contributor Joined: 13 Dec 2006 Posts: 1765 Location: Hitchin, HERTS Tx: Sandy Heath
richie wrote:
I wonder what version of libusb we should be using..?
The older one. v0.1.
But the Asus build would work for you anyway.

_________________

Toppy: TF5800PVR/250 - Black, now 1TB WD10EURX
F/W: MS6 Recommended F/W 12/9/2009 -FmVrXp+BmC0CbFsIPsUUuWfZXl,
Loader: C5.14, Hardware: 1.01
TAPs: SecCache (UK) v0.4; EPG2MEI v0.96; FontManager 1.0d; QuickJump 1.71; MhegOnOff(Now1) A3; EIT Sub v0.6; MyStuff 6.6
USB connected: SheevaPlug with Debian wheezy
Sig mostly from MyInfo on 26/10/09
View user's profile Send private message
birdman
Posted: Thu Dec 23, 2010 1:20 am Reply with quote
Frequent contributor Joined: 13 Dec 2006 Posts: 1765 Location: Hitchin, HERTS Tx: Sandy Heath
richie wrote:
No it doesn't, but his puppy compile does.

wget http://birdman.dynalias.org/R2-D2/mips/ftpd
That's ftpd-topfield, not puppy.

_________________

Toppy: TF5800PVR/250 - Black, now 1TB WD10EURX
F/W: MS6 Recommended F/W 12/9/2009 -FmVrXp+BmC0CbFsIPsUUuWfZXl,
Loader: C5.14, Hardware: 1.01
TAPs: SecCache (UK) v0.4; EPG2MEI v0.96; FontManager 1.0d; QuickJump 1.71; MhegOnOff(Now1) A3; EIT Sub v0.6; MyStuff 6.6
USB connected: SheevaPlug with Debian wheezy
Sig mostly from MyInfo on 26/10/09
View user's profile Send private message
birdman
Posted: Thu Dec 23, 2010 1:27 am Reply with quote
Frequent contributor Joined: 13 Dec 2006 Posts: 1765 Location: Hitchin, HERTS Tx: Sandy Heath
mstombs wrote:
I made some progress with native compile, gcc started segfaulting so re-installed as many gcc ipkgs and this magic incantation,
Code:
CC := gcc
CFLAGS += -I/opt/include
LIBUSB := -L/opt/lib -lusb
LFLAGS += -Wl,-rpath,/opt/lib
Hmmm.... the gcc I'm using on the Asus does all of that by default, as it's configured to build things under /opt as the "system-install" location. I'm surprised that yours doesn't. But if it doesn't then that all makes sense.

and also wrote:
But - it still doesn't connect to toppy...

The bits you show are just logs of kernel activity (if a device did claim it you'd need to get it unclaimed, as you want ftpd-topfield to use it). It doesn't show anything about how ftpd-topfield fails.

_________________

Toppy: TF5800PVR/250 - Black, now 1TB WD10EURX
F/W: MS6 Recommended F/W 12/9/2009 -FmVrXp+BmC0CbFsIPsUUuWfZXl,
Loader: C5.14, Hardware: 1.01
TAPs: SecCache (UK) v0.4; EPG2MEI v0.96; FontManager 1.0d; QuickJump 1.71; MhegOnOff(Now1) A3; EIT Sub v0.6; MyStuff 6.6
USB connected: SheevaPlug with Debian wheezy
Sig mostly from MyInfo on 26/10/09
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 4
Goto page 1, 2, 3, 4  Next

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum