Bekijk de volledige versie : Nethostfs daemon am Asus wl-500gx????
bashulaojia
13-12-2006, 14:39
Ich bin seit einiger Zeit damit beschäftigt zu versuchen, eine PSP auf Shares zugreifen und abspielen zu lassen, die auf einer externen Platte am Asus WL500GX hängen. Vor ein paar Tagen bin ich dann zufällig über eine kompilierte nethostfs binary für die Asus-Reihe gestoßen:
http://chunglam188.blogspot.com/2006/12/portable-wireless-storage-for-psp.html
Ich hab allerdings keinen Schimmer wie sich das File einbinden läßt. Wäre nett, wenn sich jemand das mal anschaun könnte und mir vielleicht ein paar kleine Denkanstöße in die richtige Richtung geben könnte.
Besten Dank für Euere Hilfe!!
Hi
Entpack das archief, schieb die nethostfs (ohne Erweiterung) Datei auf deine usb platte, geh mit ssh auf den Router, "cd /mnt/harddisk/wo_sie_liegt" und führe sie mal mit "nethostfs --help" aus. Schau im web wie nethostfs funktionieren soll (kann grad nicht testen) und probier es zum laufen zu bekommen.
Wenn es klappt, kannst du sie zb, ins flashfs schieben und dort mit dem post boot script beim start aktivieren lassen. Suche ist dein Freund für flashfs+postboot :).
Du könntest auch mal den bloger fragen wie er es gemacht hat.
Mfg
Wlanman
bashulaojia
14-12-2006, 19:23
Danke dir WlanMan! Bin zur Zeit noch auf der Arbeit und werde es testen, sobald ich wieder vor Ort bin. Tausend Dank fuer deine Tipps schon mal. Dem Blogger hab ich schon geschrieben, allerdings leider bis jetzt keine Antwort bekommen.
Wie gesagt, schon mal besten Dank fuer deine Antwort. Wenns geht meld ich mich wieder!
bashulaojia
15-12-2006, 00:08
Also, mir ist endlich gelungen mit dem Kompilierer Kontakt aufzunehmen. Er meinte die Installation wäre wie folgt:
1. Auf der Platte ein Verzeichnis für die Shares aufmachen. Hab ich getan: mkdir PSP
2. Das von ihm kompilierte nethostfs in den ordner kopieren. Hab ich ueber den FTP rübergezogen.
3. Die Rechte für nethostfs mit "chmod aog+x nethostfs" ändern....ebenfalls erledigt.
4. Dann einfach mit ./nethostfs starten....
Tja, und genau da is der Haken. Ich bekomm das Dingens einfach nicht zum laufen. Bekomme immer wieder ne Fehlermeldung: -sh: ./nethostfs: not found
Könnte das bitte vielleicht einer von Euch mal checken, ob's bei Euch läuft? Der Kerl meinte bei ihm gäbe es keine Probleme. Irgendwie wag ich das aber zu bezweifeln.
Wäre echt schade wenn's nicht gehen würde. Wäre an und für sich ne schöne Sache. Man könnte dann mit der PSP auf Video und Musik Shares zugreifen und diese direkt abspielen.
Naja, mal noch nicht den Kopf in den Sand stecken!
bashulaojia
15-12-2006, 12:48
dachte, das -sh eventuell nicht auf einige Verzeichnisse zurückgreifen konnte. Hab deswegen mal mit "set | grep PATHS=" mir jene anzeigen lassen. Dabei haben in der Tat 2 Verzeichnisse gefehlt.
Hab diese dann "nachgemacht" und dann wieder versucht mit ./nethostfs den daemon zu starten.
Ergebnis: wieder -sh: ./nethostfs: not found
Versteh das langsam nicht mehr....
Hi
Du hast aber "./nethostfs" auch im Verzeichnis ausgeführt wo das Programm dann drin liegt??
"./" heist nämlich "guck nicht in den pfad sondern nimm das aktuelle Verzeichnis"
Wenn du es dem path hinzufügst must du das dann natürlich weglassen. Würde ich aber nicht machen, je kleiner die path variable um so besser.
War der Chmod auch erfolgreich ?? Mach mal nen "ls -al" im Verzeichnis und guck dir die Dateirechte an oder poste sie hier wenns immer noch nicht funktioniert.
Mfg
Wlanman
bashulaojia
15-12-2006, 17:47
So kleines Update. Hab die Partition mit mke2fs -j /dev/discs/disc0/part1 nochmal neu formatiert,
dann die Partition mit mount /dev/discs/disc0/part1 /opt unter /opt gemountet.
darauf dann mit
mkdir /opt/tmp
mkdir /opt/tmp/ipkg
ipkg.sh update
ipkg.sh install ipkg
das ipkg nochmal neu installiert. Danach hab ich mit vi die config für das ipkg abgeändert, und zwar unter /opt/etc/ipkg.conf. Hab dort den Pfad für unslung genommen, den der Autor von dem daemon vorgeschlagen hat: http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
Danach hab ich mir mit
/opt/bin/ipkg update die neue Liste geholt, dann mit
/opt/bin/ipkg install nano den nano nachinstalliert und dann schliesslich mit
/opt/bin/ipkg install uclibc den neustesn build von geholt, da der Autor meinte er habe es damit installiert.
Dann über SMB die entpackte nethostfs in /opt/PSP/ verschoben.
Mit chmod aog+x nethostfs die Rechte freigegeben.
Jetzt der große Moment: ./nethostfs
Und das Ding lief!!!!
Soweit sogut, dann dachte ich mir mach ich einfach in /usr/local/sbin/post-boot ein paar Einträge, dass er automatisch /opt mountet und dann die nethostfs ausführt.
Problem ist nun, dass er /opt auch perfekt mountet, nur dann der FTP und das SMB (welches ich nur im Webkonfig vom Browser auf Enabled gestellt habe) nicht mehr funktionieren wollen. Sobald ich den Mountpunkt für /opt rausnehm gehen FTP und SMB wieder ohne Probleme.
Hier nochmal der Inhalt von der post-boot:
#!/bin/sh
# wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part2
# Run nethostfs for PSP Shares
/opt/PSP/nethostfs
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
Sobald ich Alles unter # wait for /opt to mount rausnehm gehen FTP und SMB wieder ohne Probleme.
Hi
Zeig mir mal die "mount" ausgabe wie du gepostet hast wann es nicht funktioniert.
Du hast bedacht das /opt eine andere partition sein muss als deine datenpartition ?
Hast du die platte so Eingeteil?
Datenpartition
Opt Partition
Swap
Ist wohl ein gängiges Missverständniss.
Der Router versucht IMMER die erste partition als Datenpartition nach /tmp/harddisk zu mounten, auch wenn da swap oder garkein filesystem drauf ist.
Opt ist eine zusätzliche partion. Wenn /opt die erste ist, kann es nicht funktionieren.
Ich vermute gerade mal das du ihm die partition mit dem post-mount "klaust" bevor er sie selber als /tmp/harddisk mounten kann.
Mfg
Wlanman
bashulaojia
16-12-2006, 00:41
Ich hab endlich alles zum laufen gebracht.
Hier die mount Ausgabe:
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /tmp/harddisk type ext3 (rw,noatime)
/dev/discs/disc0/part1 on /opt type ext3 (rw,noatime)
Ich hab einfach SMB im Webkonfig ausgeschalten und neu per Hand konfiguriert.
Dann hab ich festgestellt, dass stupid-ftpd beim start nach der stupid-ftpd.conf sucht. Diese wird aber vom Router nicht mehr nach Reboot erstellt. Bin dann kreuz und quer durchs Board hier und hab mir meine eigene conf gebastelt. Das ganze dann im post-boot wie folgt eingebunden und anschliessend geflashfs-t:
#!/bin/sh
#Start FTP Client
i=0
while [ $i -le 30 ]; do
if [ -e /tmp/stupid-ftpd.conf ] ; then
stupid-ftpd -f /tmp/local/stupid-ftpd.conf
break
fi
sleep 1
: $((i = $i + 1 ))
done
# wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part2
#Samba
/opt/etc/init.d/S97Samba
# Run nethostfs for PSP Shares
/opt/PSP/nethostfs
Funzt alles praechtig!! Nehm aber gerne Verbesserungsvorschlage an, da mir mein Vorgehen sehr als "Holzhammermethode" vorkommt! Danke fuer all deine Hilfe WlanMan!!!
Hi
Mich wundert erstens das ftp problem, und das du BEIDE MOUNTPOINTS AUF DIE SELBE PARTITION zeigen läst UND das das auch noch funktionieren soll :D.
Im Prinzip versuchen jetzt wohl zwei Dateisystemtreiber auf das die selben daten zuzugreifen, ich seh da datensalat deluxe ;).
Opt MUSS eine eigene datei sein. Wenn du dich so dagegen streubst, nimm einen symlink. Aber eine partition doppelt mounten kann nicht gut gehn, spätestens wenn mal auf opt vom router und von dir auf ftp gleichzeitig geschriben wird.
Warum hast du nicht eine daten und eine opt partition erstellt, wie es auch in jedem tutorial drin stehen sollte ?
Wenn du es so machen würdest breuchtest du nicht smb+ftp selber einstellen, du behebst da ein hausgemachtes Problem.
Mfg
WlanMan
bashulaojia
16-12-2006, 01:11
Hm...mei, da hab ich ja mal wieder was angerichtet :(
Ich bin damals diesem Tutorial gefolgt, als ich die platte installierte: http://www.macsat.com/macsat/content/view/22/29/
Wenn ich das richtig verstehe, hat der doch auch nur 2 Partitionen, oder?
Wuerde es was bringen, wenn ich in der post-boot /tmp/harddisk unmounte?
Moin
Grml, das verfluchte Tutorial. Macsat soll das mal korrigieren, oder deutlicher erklären. Ich kann nicht nachvolziehen wie sein Setup funktionieren soll.
Schau mal Hier (http://wl500g.info/showthread.php?t=7331) da ist jemand in die selbe Falle getappt. Ich hab das nie mit nur zwei Partitionen probiert, warum auch. Es ist sinniger opt als eigene Partition zu haben, dafür 100mb zu reservieren ist ja wohl heute kein Verlust mehr...
Du kannst da irgendwas basteln das im nachhinein alles wieder hinzubiegen, aber das ist einfach nur eckliges gefummel.
Lass die Firmware die erste partition als /tmp/harddisk mounten sonst kannst du alle plattenbasierten Funktionen im webconfig vergessen.
Wenn du UNBEDINGT opt mit auf dieser partition haben willst, erzeuge im post-boot anstelle dem opt mount nen symlink.
In etwa so wie "mkdir /opt" "ln -s /tmp/harddisk/opt /opt".
Ich probier das hier gerade nicht aus, must du selber ma basteln.
Erneut: Drei Partitionen und gut :D.
Mfg
WlanMan
bashulaojia
16-12-2006, 13:56
So, hab das ganze jetzt zum 30. Mal neu aufgesetzt. Diesmal mit drei eigentständigen Partitionen:
1. /tmp/harddisk
2. /swap
3. /opt
Und siehe da FTP und SMB gehen perfekt, ohne gestartet werden zu muessen. (Warum dem so ist, war nach einer anständigen Tüte Schlaf eigentlich auch mehr als nur verständlich!;) ).
Naja, wenigstens viel dabei gelernt!
Danke nochmal WlanMan!
P.S.: Es "funktioniert" durchaus auch mit der Version, die ich am Anfang hatte (Macsat-Tut). Allerdings macht man sich damit wirklich keinen Gefallen und wird lange drüber sitzen, die daraus resultierenden Probleme mit smb und ftp wieder hinzubiegen. Sollte das einer vorhaben, dann kann ich gerne helfen. Ich habs zum Schluss wirklich zum laufen gebracht und kenn daher mittlerweile auch die kleinsten "glitches". Ansonsten kann ich wirklich nur zu drei Partitionen raten - und ihr werdet euch so nen Nachmittag/Abend voller Flüche und Hass sparen.
Hi,
In advance, sorry for this intrusion in English.
I don't really understand german but is seems that you managed to run nethostfs on the WL-500gx?
Can someone share your results in English (or French :) ...): where to get binaries and install instructions.
Thanx
Michel
bashulaojia
03-01-2007, 22:06
Hi Michel:
You can get the binary from Chunglam's Blog at http://chunglam188.blogspot.com/2006/12/portable-wireless-storage-for-psp.html
Basically, all you have to do is unpack the binary and put it in a designated folder that you'd like to share with your PSP.
Then do a "chmod aog+x nethostfs" in order to set the binary rights to executable. After that, start the daemon by typing "./nethostfs".
You might get an error message saying: -sh: ./nethostfs: not found
In this case, make sure you have the latest uclibc build installed. "ipkg install uclibc" should do the trick (precondition being ipkg installed on your wl500gx). Once you have nethostfs up and runnning, you can add it to your post-boot, so it'll boot up with your router after a restart.
If you have any further questions, just drop back in here.
Greetings
Tom
TODAYinTECH
22-01-2007, 21:47
If you have any further questions, just drop back in here.
Greetings
-----------
Ok, I got everything running on my WL-HDD when I use Putty and issue the command /opt/PSP/nethostfs but I cannot get it to run automatically at boot.
I modified my post-boot file to include
# Run nethostfs for PSP Shares
/opt/PSP/nethostfs
but it just doesn't start, any ideas why?
I did get it running on my WL-500gP, automatically and the issue I have there is that I would prefer that it started in another folder, that contains the folders ISO, PSP so that it contains the same file structure as a MS so that IR Shell redirection works, any ideas on that. For now I don't use redirection, I just browse to the folder with my videos.
Thanks in advance.
Hello
Sorry to bring up an old thread. I was wondering if anyone has been successful in running nethostfs on the current oleg firmware 1.9.2.7?
I noticed that instead of uclibc, libuclibc++ is installed. I'm cannot run nethostfs, do you think the newer library is causing it?
Thanks
Hello
Sorry to bring up an old thread. I was wondering if anyone has been successful in running nethostfs on the current oleg firmware 1.9.2.7?
I noticed that instead of uclibc, libuclibc++ is installed. I'm cannot run nethostfs, do you think the newer library is causing it?
Thanks
Using it a lot with the latest Oleg firmware. So must be something with your setup :(
pinkfloyd
11-01-2008, 13:36
the link to nethostfs for wl500gp is not available can someone please tell me from where to get it ?
the link to nethostfs for wl500gp is not available can someone please tell me from where to get it ?
+1
Can't find it anywhere, but want to try too. If somebody has it, please, share with us. Thank you!
Found sources, and tried to compile under latest stable Oleg's FW, but failed miserably to make executable binaries :(
Maybe somebody will be luckier than me :)
I still got the original file...
worked for me long time, but never tried with latest IRShell since lost a bit interest in the PSP. Hope it works for you! :)
TODAYinTECH
29-01-2008, 19:53
I had this running in the past, but now I'm having problems, can anybody help?
I would need the newer binaries for USBHOSTFS and/or NETHOSTFS.
When I run NETHOSTFS I get a syntax error message.
TODAYinTECH
03-02-2008, 04:11
Well that link above was the proper one to run on the ASUS WL-HDD
I now get ...
nethostfs v1.5a starting up, maximum of 20 PSPs allowed ...
Although I can connect and get a list of files, when i select an ISO, I don;t get the icon and the game will not launch.
Are you able to simply drop the pre-compiled nethostfsd binary into WL-500g OS and get IRShell run ISO over wireless, I am more than interest in this setup! Please give more information!
Are you able to simply drop the pre-compiled nethostfsd binary into WL-500g OS and get IRShell run ISO over wireless, I am more than interest in this setup! Please give more information!
yes its that easy just dromp my nethostfs file somewhere on your router. Best would be to place it close to the ISO folder.
Then just run it from the terminal and connect as you would allways do with IRshell.
I allready tested this with ISOs as well, kinda slow but works!
No command line parameter need passed to nethostfs?
Have you managed to get usbhostfs working? That will turn the router into a BIG stick :-)
bashulaojia
30-01-2009, 14:46
For those of you interested in why the old nethostfs daemon won't connect to the latest IrShell build....
From iR Shell 4.7 onwards you will need to use the new NetHostFS pc server v2.1. Older releases of nethostfs are not compatible anymore. This nethostfs pc version uses 4 consecutive TCP ports, default 7513-7516 and not one as in previous release. Make sure to open up your firewall if you want to access your NetHostFS via the internet.
Ahman, however, does provide the source code for the latest nethostfs daemon on his website (http://www.irshell.org/site/index.php?option=com_phocadownload&view=category&id=17:source-code&download=7:nethostfs-v2.1-source-code&Itemid=8). I have been trying to get this compiled on my 500GX rig, but somehow can't get it to compile. Seems as if I am missing a few libs here and there.
It would be great if someone more versed in compiling could take a quick look at the source. Thanks in advance!! Vielen Dank im Voraus!
Bashu