PDA

View Full Version : FTP support


stalker192001
10-02-2005, 01:08 PM
Hum.. I must be missing something easy.. I can't ftp to the ps2 while running luanchelf. Little background. execftps works. Light on router for ps2 is on, shows up in router config as and attaced device with the right ip address, i can ping the ip address of the ps2, but connection refused when i try to connect using flashfxp. just useing anon connections. is there suppose to be a un/pw? what else am i missing here? any help is appericated.

stalker192001
10-02-2005, 02:46 PM
apperantly i am just slow.. I got it working. i wasn't loading the ps2net modules. so there now you can /point and /poke at me..

ddrfreak
10-03-2005, 02:31 AM
Please explain how you did it because i can only get flashfxp to work...

retro
10-03-2005, 08:49 AM
http://www.ps2-scene.org/forums/showthread.php?t=40422

E P
10-03-2005, 03:07 PM
All you need for ftp support is to run MISC/PS2Net.

Assign MISC/PS2Net to a button then press the button it's assigned to. It works just like execftps as it uses ps2ftpd.

stalker192001
10-03-2005, 06:07 PM
late as usual.. but yeah what they said.. i wasn't loading misc/ps2net and was just expecting it to work.. (damn microsoft for getting me so lazy)..

ddrfreak
10-04-2005, 12:36 AM
so do I have to change everything in launchelf to match what it said in EXECFTP also is ps2net as buggy as execftp was
on pc, start ps2 client with following string.
c:\ps2client.exe -h 192.168.0.10 listen
(start->run)

If u run ps2 client from other dir and have other ip, edit the string.
then on ps2 enter host again.
now u see the dir that ps2 client were runned from.]

ABOVE() thats the part i dont get LOL

E P
10-04-2005, 01:25 AM
so do I have to change everything in launchelf to match what it said in EXECFTP also is ps2net as buggy as execftp was
on pc, start ps2 client with following string.
c:\ps2client.exe -h 192.168.0.10 listen
(start->run)

If u run ps2 client from other dir and have other ip, edit the string.
then on ps2 enter host again.
now u see the dir that ps2 client were runned from.]

ABOVE() thats the part i dont get LOL

Yes, ps2net is just like EXECFTP bugs and all. Although I have gotten rid of a few bugs and added support for usb mass through ftp. So in some ways you could say ps2net is better than EXECFTP and that LaunchELF's ps2net has pretty much replaced EXECFTP.

As for the ps2client stuff that is for host: support. Dlanor has some good explanations of how to use it in other threads. It's much faster than ftp and you can do all the grunt work on the ps2 side where as ftp is done on the pc client side. Both do indeed have there uses.

ddrfreak
10-04-2005, 10:36 AM
Ok i was able to get into ftp with launchelf but i could not find ps2client so i opped out to use FlashFXP. Now i can connect and i finally see mass but now i can not see hdd. Is thier something that im doing wrong.

E P
10-04-2005, 03:26 PM
Ok i was able to get into ftp with launchelf but i could not find ps2client so i opped out to use FlashFXP. Now i can connect and i finally see mass but now i can not see hdd. Is thier something that im doing wrong.
You don't need the hdd folder if that's what you're referring to. Dlanor and I decided it was not necessary because all you really need is the pfs folder. All the hdd folder did was show the partition names. You can get the available partition names from launchELF's filebrowser if you need them.

The commands are just like before like: "SITE MNT /pfs/0 hdd:+MAIN" and "SITE UMNT /pfs/0".

KallaiR
10-05-2005, 05:55 PM
so instead of using the ps2client, i can use flashfxp? is that what u say? sorry for this lame question but my mother language is greek and i wanted this answer clear to me! :D

Pac-Man
10-05-2005, 10:36 PM
ok so how do i get to the hdd i am having the same problem as above...I cant see the hdd...and when i go to psf i only see a 0 folder.

As in how do i get to where i can put data in a partition such as +APPS
.

Slam-Tilt
10-06-2005, 02:24 AM
In FlashFXP hit ctrl and R and another window should pop up. In the window type

"SITE MNT /pfs/0 hdd:+Partition" where Partition is the name of the Partition you want to access.

/pfs/0 should now contain the selected partition.

Pac-Man
10-06-2005, 07:51 AM
well its alot easier on launchelf just got to the partition on launchelf and its automaticly mounted no commands needed in flashfxp.

retro
10-06-2005, 08:45 AM
ABOVE() thats the part i dont get LOL

i just ment that the fastest way to run a string is to push startbutton in windows then RUN. :)

E P
10-06-2005, 09:52 PM
OK, well here are the new changes to be in the next release of uLaunchELF in terms of ps2ftpd.

-Added "hdd" as a supported filesystem device so it shows up with "mc", "pfs", and "mass" in the root device listing.
-Changed a few things to support HDD partition viewing by fixing a sub directory issue.
-Made changes to only show the same partitions that unofficial LaunchELF shows. (Note: hdl and other special ps2 partitions will be hidden from view).

So everyone should be happy now as you will be able to see the partition list. :) And yes like EXECFTPs it's just a list nothing more.

Hopefully this change will essentially make ps2net complete in regards to what users of EXECFTPs expect. ;)

ivc
10-07-2005, 08:13 AM
That's exactly what I didn't quite get, why not just list all the partition names as a regular ftp listing and when you enter one of the names the ps2ftpd/ps2net will automatically mount the partition internally and transfer you into that directory.

That's a great function to further complete the ftp support. Good work E P / dlanor :)

dlanor
10-08-2005, 04:22 PM
That's exactly what I didn't quite get, why not just list all the partition names as a regular ftp listing and when you enter one of the names the ps2ftpd/ps2net will automatically mount the partition internally and transfer you into that directory.

That's a great function to further complete the ftp support.
I agree that this would make it a lot more convenient to use, especially for those many people with problems understanding the 'split personality' of PS2 HDD filesystems.

Brief explanation for those many people:
'hdd' is a physical disk driver handling partitions, but useless for direct file access. 'pfs' is a virtual filesystem driver, without any physical device. HDD file access is only achieved when a partition from the 'hdd' driver is mounted onto the 'pfs' driver.

What you describe would hide this complexity from users, allowing them to access the filesystems directly, as if each partition-pfs mountpoint was just a normal subfolder link. We already do something similar in LaunchELF, as we allow such paths as "hdd0:/+Somepart/Somefolder/Somefile.elf" in the key shortcuts, even though such paths are not really valid to the filesystem drivers. Doing the same for FTP would be quite natural for us, but as yet we have kept the ps2ftpd module largely unchanged, except for a few things we felt needed immediate attention.

Btw: Such a method could also be implemented in another, more system-wide way, by creating a new pseudo-device driver that would use a similar method to access the HDD. In other words, it would treat partition names merely as symbolic links to the root directories of the corresponding file systems. (Naturally only for APA partitions, not for HDL stuff.) The net effect would be that all APA partitions would appear as one huge filesystem, with a root directory containing only subfolder links to the various root directories of the real partitions. That would eliminate the problem most ELFs have in finding their launch directory when started from HDD.

Best regards: dlanor

E P
10-11-2005, 04:10 PM
Yes, dlanor I also thought about this, but you would give up one function, the ability to mount multiple hdd partitions. I hardly ever use it though and would rather have auto partition mounting myself. It sure would make things easier rather than issuing the mount command again and again. The code would also have to unmount the previous partition before each new mount though.

Anyway here is the list of what else I feel should be done with ps2ftpd and I'm not sure about how to go about implementing them.

1. Implement rename command functions "RNFR" and "RNTO" to at least allow for hdd file/dir renaming.

2. Find a way to auto mount partitions so for example opening hdd/0/+MAIN would auto mount to pfs/0/. Perhaps even mapping pfs/0 to hdd/0/+MAIN directory would be a better way to go.


made changes to usb_mass driver to help ps2ftpd read date/time attributes for mass.

Note: more changes to ps2ftpd
-Fixed issue where mc save folders, that are copy protected, showed up as files instead of folders.
-Fixed protection attributes not showing up properly with mass.

Note: made changes to usb_mass as values were never placed in variable "mtime".
-Added the ability of reading of day, month, and year from usb mass driver.
-Added the ability of reading of hours, minutes, and seconds from usb mass driver.

Update yet again:
Removed yet another item from the list as I found a way to get file/directory writes for hdd to work similiar to launchELF. So there shouldn't be a bug with attributes anymore. It was a rather simple change. :)

Another update:
-Made a workaround for "ps2fs: Warning: NULL buffer returned" issue that occurred when writing files to the hdd.

What only two things left, not bad. ;)

HuMz
10-22-2005, 05:57 AM
ps2net is now officially 1000 times better than ExecFTPs ;) (just deleted ExecFTPs)

adam31
10-22-2005, 10:19 AM
Only thing I like better with EXECFTPS is that on FlashFXP you have a progress bar. You can see your transfer speed, also time remaining for the transfer, etc. Anyway to find this out with Launchelf? (since I've heard of almost triple the speed on transfers-700kb/s) How did someone find the transfer speed anyway? With a stopwatch?

HuMz
10-23-2005, 12:49 PM
adam31, I believe you have a progress bar too with ps2net... I just uploaded the Flashback.ELF to my HDD and could see the upload progress without problems.

E P
10-23-2005, 10:03 PM
adam31, I believe you have a progress bar too with ps2net... I just uploaded the Flashback.ELF to my HDD and could see the upload progress without problems.

Yeah, no problems here either. I believe the FTP client sofware is responsible for checking the connection speed, progress, etc.

It looks like I need to put together a list of the differences between uLaunchELF's builtin FTP and ExecFTPs. The differences are getting quite substantial now. Not too bad considering I don't have the source to ExecFTPs.

As for a progress report, I figured out how to get rename working for hd stuff. Mc and mass devices don't support it most likely because their drivers don't. I tried to test the rename on those devices for fun and got some nasty crashes. I'll have to make a device check in the "rename from" and "rename to" functions to prevent users from doing it. ;)

My implementation is real ugly right now. It works but I don't like the way it looks. The code just doesn't fit well so I don't know if it will make it into version "n" or not. The main thing is that rename does work and that's something else that ExecFTPs doesn't have. :)

adam31
10-24-2005, 12:24 AM
adam31, I believe you have a progress bar too with ps2net... I just uploaded the Flashback.ELF to my HDD and could see the upload progress without problems.

Whats flashback.elf?...and can I use FlashFXP with PS2net to acheive higher transfer rate?

HuMz
11-05-2005, 11:08 AM
flashback.elf is this:

http://www.megidish.net/flashback/

http://www.megidish.net/flashback/titan/flashback-0.18.1-ps2elf.zip

it's big (about 8mb) so you can test your transfer speed etc...

firehawk
11-05-2005, 05:33 PM
What is the best ftp client to use with the ulaunchelf? I'm currently using FileZilla and the file transfer speed was 130kb/s. It seems to be the same speed as ExecFTPS. Can anyone tell me if is there a way to upload files faster? I'm asking because it takes 1 hour and 30 minutes to upload a 700mb movie.

zabolyx
11-05-2005, 06:16 PM
yeah... that's what I get with FlashFXP... so you're doing good

firehawk
11-06-2005, 06:22 PM
Thanks for the reply. I'm now using the ps2client with ulaunchelf. It's better for big files transfer. As I said before through ftp a 700mb file was taking 1 hour and 30 min, and with ps2client it takes only 20 min.

E P
11-09-2005, 04:17 PM
Thanks for the reply. I'm now using the ps2client with ulaunchelf. It's better for big files transfer. As I said before through ftp a 700mb file was taking 1 hour and 30 min, and with ps2client it takes only 20 min.
Yes, dlanor has brought this to my attention before. Host is faster then ftp and I don't know specifically why. I think hdl server made some progress in this area so I think it's possible to speed up ftp.

AstroPirate
11-27-2005, 02:12 PM
i have a quick question, If i have a network and my main computer is using the 192.168.2.1 address. is it possible to configure ps2net to connect to a pc on 192.168.2.x?

barf
11-27-2005, 03:05 PM
All you need for ftp support is to run MISC/PS2Net.

Assign MISC/PS2Net to a button then press the button it's assigned to. It works just like execftps as it uses ps2ftpd.It does not work like Execftps!!! uLaunch.ELF PS2Net ftp works like proper ftp! GDI!

Execftps has several problems,
it does not support the ftp standard.

E P
11-27-2005, 10:33 PM
i have a quick question, If i have a network and my main computer is using the 192.168.2.1 address. is it possible to configure ps2net to connect to a pc on 192.168.2.x?

Yes, just use uLaunchELF's "NETWORK SETTINGS" to change the settings of your IPCONFIG.DAT located at mc0:/SYS-CONF/.

It does not work like Execftps!!! uLaunch.ELF PS2Net ftp works like proper ftp! GDI!

Execftps has several problems,
it does not support the ftp standard.

Well both are based on chips ps2fpd so they are very similar. Here is a list of the differences: (Note: I have also added something new that I had worked on a few months ago. Let me just say anyone who was on the fence before won't be for much longer when I eventually release the update for version "3.41q". It turned out to be a rather simple change in the end but I'm sure the users won't see it as just a minor change). ;)

Differences between EXECFTPS and uLaunchELF's PS2Net

EXECFTPS uLaunchELF's PS2Net
based off of chips ps2ftpd: Yes, older version Yes, latest version
source changes open: No Yes
complete UNIX LIST format: No, partial No, partial
hdd driver supports 48-bit lba: No Yes, using uLaunchELFs hdd drivers
shows only up to 2 mc devices: No Yes
support for usb mass devices: No Yes, using uLaunchELFs usb drivers
shows only valid partitions: No Yes
open copy-protected mc folders: No Yes
hdd attributes set properly: No Yes
rename files/dirs on hdd: No Yes
new timestamps are consistent: No Yes, using uLaunchELFs drivers

Here are some more things that should be addressed with ps2ftpd:

1. Fix an issue with the UNIX-style LIST format. UNIX servers show "Mmm dd hh:mm" when the modification time is within the previous 180 days. The current implementation of the UNIX-style LIST format only uses "Mmm dd yyyy", which should actually only be used when the modification time is not within the previous 180 days.

2. Fix GetFileSize function in FileSystem.c for hdd. I currently disabled it for hdd otherwise you get:

For SIZE command:
ps2fs: Error: Unused cache returned

When transferring a file to hdd:
ps2fs: Warning: NULL buffer returned

It wasn't really a problem before but it messes up rename if you let it get the size. It's directly do to this system call in FileSystem.c that hdd apparently doesn't like:

if( pContext->m_kFile.device->ops->getstat( &(pContext->m_kFile), pFile, (io_stat_t*)&stat ) < 0 )

It is disabled for hdd now but calling the SIZE command did actually work. Of course, the size command never worked right like when transferring a file and trying to get its file size.

barf
11-28-2005, 03:02 AM
Differences between EXECFTPS and uLaunchELF's PS2Net

EXECFTPS uLaunchELF's PS2Net
based off of chips ps2ftpd: Yes, older version Yes, latest version
source changes open: No Yes
complete UNIX LIST format: No, partial No, partial
hdd driver supports 48-bit lba: No Yes, using uLaunchELFs hdd drivers
shows only up to 2 mc devices: No Yes
support for usb mass devices: No Yes, using uLaunchELFs usb drivers
shows only valid partitions: No Yes
open copy-protected mc folders: No Yes
hdd attributes set properly: No Yes
rename files/dirs on hdd: No Yes
new timestamps are consistent: No Yes, using uLaunchELFs driversYou forget the most important one, the authentication string is wrong in ExecFTPs, uLaunchELF ftp works with unix systems too, not only FlashFXP.

E P
11-28-2005, 03:51 AM
You forget the most important one, the authentication string is wrong in ExecFTPs, uLaunchELF ftp works with unix systems too, not only FlashFXP.
Yes, I have heard about that too. I don't know why SlicStik changed it but I never touched it from chips original source.

I've never used FlashFXP. Bulletproof FTP has been my client for many years now but I'm leaning more towards FileZilla as it's a free open source alternative. Also word has it that FileZilla 3 will have both unix and windows FTP software clients. I'm just thankful that there are some unix users out there to test my changes since I still don't have Fedora installed to test. :)

barf
11-28-2005, 04:33 AM
I mainly use ncftp

cyx
11-28-2005, 04:36 AM
Am I the only one still using ExecFTPs ? I find it's more stable to overwrite files. Sometimes I still have problem overwriting files using uLaunchelf 3.41p. (0 bytes file result)
FlashFXP user here.

barf
11-28-2005, 06:42 AM
Only problem I had with uLaunchELF's ftp is that mput does not work from console, however using a GUI app probably the GUI app makes several puts seemlessly.

JuddMan
11-28-2005, 12:10 PM
i find the opposite of cyx, where execFTPS would just stop working mid-way through a transfer particularly on certain files that it just didn't like for some reason... give it 10 attempts (with a restart between each attempt) and it will eventually work...

now with uLaunchELF, i have had no errors or lockups at all, and even Internet Explorer actually works with it to some extent, though i still use FlashFXP.

AstroPirate
11-28-2005, 07:59 PM
I got it working. Thanks for the input, E P.