Git Product home page Git Product logo

Comments (31)

Xa6ep avatar Xa6ep commented on May 29, 2024 1

Try2 result

./mipsel-test
Hello world!
./ps3netsrv /media/Main 38008
ps3netsrv build 20161211 (mod by aldostools)
off_t too small!

from webman-mod.

Xa6ep avatar Xa6ep commented on May 29, 2024 1

@masterzorag yes! This version works. Thanks a lot!

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024 1

@Xa6ep, check #40, testing is required

from webman-mod.

Kamillux avatar Kamillux commented on May 29, 2024 1

Did initial test without GDB:
root@OpenWrt:~# /mnt/usb/ps3netsrv_mipseb_debug /mnt/usb/playstation3 38008
ps3netsrv build 20170106 (mod by aldostools)
off_t too small! (4)
Path: /mnt/usb/playstation3

Waiting for client...
Connection from 192.168.1.144
client_thread(), client @0x7719f644
command received: 2A12
Unknown command received: 2A12
finalize_client()

I'll update when I compile GDB

from webman-mod.

Kamillux avatar Kamillux commented on May 29, 2024 1

Sorry for the delay. Yes it lives :D
Thank You

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

you can run it on linux, with glibc

it's not a static executable, so it must found needed shared libraries

 ps3netsrv: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked, interpreter /lib/ld.so.1, for GNU/Linux 2.6.18, BuildID[sha1]=69f1249462d2d2002b638e52179c06a252cbb578, not stripped

Dynamic section at offset 0x1c0 contains 23 entries:
Tag        Type             Name/Value
0x00000001 (NEEDED)         Shared library: [libpthread.so.0]
0x00000001 (NEEDED)         Shared library: [libc.so.6]

Version References:
required from libc.so.6:
0x0d696912 0x00 05 GLIBC_2.2
0x0d696917 0x00 04 GLIBC_2.7
0x0d696910 0x00 03 GLIBC_2.0
required from libpthread.so.0:
0x0d696912 0x00 06 GLIBC_2.2
0x0d696910 0x00 02 GLIBC_2.0

also, on your NAS I can assume is running an uClibc implementation, not a full glibc

can you check and spot some more info of your TARGET (mips) system?

from webman-mod.

Xa6ep avatar Xa6ep commented on May 29, 2024

Yes, you are absolutely right! It use uClibc instead glibc. I searched on the web, and found one solution for install Glibc libraries on my NAS. It recommended to change Entware-NG to Entware-NG-3X. I'll write about results later.
Some more info about my system:

Linux version 3.4.113
ldconfig -v | grep -E "libc.so|libpthread.so"
libc.so.0 => libuClibc-1.0.16.so
libpthread.so.0 => libpthread-1.0.16.so
ld-uClibc.so.1 => ld-uClibc-1.0.16.so

from webman-mod.

Xa6ep avatar Xa6ep commented on May 29, 2024

I changed Entware, but nothing changes. Working ps3netsrv from dirkvdb and don't working aldostools.

#file ps3netsrv
ps3netsrv: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked, interpreter /opt/lib/ld.so.1, for GNU/Linux 2.6.32, stripped

#file ps3netsrv_mips_aldostools
ps3netsrv_mips_aldostools: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked, interpreter /lib/ld.so.1, for GNU/Linux 2.6.18,
BuildID[sha1]=69f1249462d2d2002b638e52179c06a252cbb578, not stripped

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

try this one

Toolchain from Entware/Entware-ng@80b982e, built on ppc64 HOST

  • GNU C++ (OpenWrt GCC 5.4.0 unknown) version 5.4.0 (mipsel-openwrt-linux-uclibc)
    compiled by GNU C version 6.2.1 20160916 (Red Hat 6.2.1-2), GMP version 6.1.1, MPFR version 3.1.5, MPC version 1.0.3
  • GNU assembler version 2.26.1 (mipsel-openwrt-linux-uclibc) using BFD version (GNU Binutils) 2.26.1
  • GNU ld (GNU Binutils) 2.26.1
    Supported emulations:
    elf32ltsmip
    elf32btsmip
    elf32ltsmipn32
    elf64ltsmip
    elf32btsmipn32
    elf64btsmip

from webman-mod.

Xa6ep avatar Xa6ep commented on May 29, 2024

This one runs, but still doesn't work.

ps3netsrv_MIPS32_r2_static
ps3netsrv build 20161211 (mod by aldostools)
ps3netsrv_MIPS32_r2_static /media/Main/
ps3netsrv build 20161211 (mod by aldostools)
ps3netsrv_MIPS32_r2_static --help
ps3netsrv build 20161211 (mod by aldostools)

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

./ps3netsrv_MIPS32_r2_static /path 38008

from webman-mod.

Xa6ep avatar Xa6ep commented on May 29, 2024

Same result...

./ps3netsrv_MIPS32_r2_static /media/Main 38008
ps3netsrv build 20161211 (mod by aldostools)

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

this one is built with buildroot toolchain:

  • GNU C++14 (Buildroot 2016.11) version 6.2.0 (mipsel-buildroot-linux-uclibc)
    compiled by GNU C version 6.2.1 20160916 (Red Hat 6.2.1-2), GMP version 6.1.1, MPFR version 3.1.5, MPC version 1.0.3, isl version none
  • GNU assembler version 2.26.1 (mipsel-buildroot-linux-uclibc) using BFD version (GNU Binutils) 2.26.1
  • GNU ld (GNU Binutils) 2.26.1

sadly, my router is BE and can't do native test
qemu-mipsel at least runs included mipsel-test

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

just to do some test on my hardware router, ps3netsrv exits...

shot

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

shot
here we exit(-1) fine, we have to patch some code to go on...
mips 32bits uses 32bits (4byte) data, all is fine

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

@Xa6ep check #39

from webman-mod.

Xa6ep avatar Xa6ep commented on May 29, 2024

webMAN-MOD/ps3netsrv/bins/mips32/ps3netsrv_mipsel is works.
I can't test ps3netsrv_mipseb.

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

Thanks for testing and feedback,
I'll keep updating mips32 builds when required...

from webman-mod.

Kamillux avatar Kamillux commented on May 29, 2024

Hi, I have a openwrt on a TL-Wr1043ND v2 router which is a mips32 according to https://wiki.openwrt.org/toh/tp-link/tl-wr1043nd#info but when I try every ps3netsrv from MIPS32 folder i get:
root@OpenWrt:/mnt/usb# ls mipsel-test ps3netsrv_MIPS32_r2_static ps3netsrv root@OpenWrt:/mnt/usb# /mnt/usb/ps3netsrv /mnt/usb/ps3netsrv: line 1: syntax error: unexpected "(" root@OpenWrt:/mnt/usb# /mnt/usb/mipsel-test /mnt/usb/mipsel-test: line 1: syntax error: unexpected "(" root@OpenWrt:/mnt/usb# /mnt/usb/ps3netsrv_MIPS32_r2_static /mnt/usb/ps3netsrv_MIPS32_r2_static: line 1: syntax error: unexpected "("

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

@Kamillux I was getting that kind of error due endianess, on your link we can have 2 different chips for the product:
24Kc or 74Kc makes difference, also, you are trying an old ps3netsrv build, last one is at PR #40:
for little or big endian, try them and report back.
To get sure, take an executable out from your router and pass it to file program under linux: MSB or LSB executable tells you the endianess.

from webman-mod.

Kamillux avatar Kamillux commented on May 29, 2024

After testing i can tell that i have big endian. ps3netsrv_mipseb works kind of.

'root@OpenWrt:~# /mnt/usb/ps3netsrv_mipseb /mnt/usb/playstation3 38008
ps3netsrv build 20170106 (mod by aldostools)
Path: /mnt/usb/playstation3

Waiting for client...
Connection from 192.168.1.144`

It connects but doesn't show games on playstation3 webMAN-MOD. I tried ps3netsrv64 1.43.28 on my linux machine and that also did not work (same result as in OpenWrt) but version 1.43.27 works great on desktop linux.

`Waiting for client...

Connection from 192.168.1.144

Connection from 192.168.1.144

Connection from 192.168.1.144

open /PS3ISO/Blur [BLUS30295].iso`

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

To get games shown on webman coloumn you have to refresh xml file (once) or do something asking for connection...
I'm used load/unmount/test by using the Web(MAN) interface from pc, refreshing ps3netsrv connection by using NET button in GAMES panel
Did NET games appears in web interface?

from webman-mod.

Kamillux avatar Kamillux commented on May 29, 2024

What I did:
load ps3netsrv_mipseb on my router:
`root@OpenWrt:~# /mnt/usb/ps3netsrv_mipseb /mnt/usb/playstation3 38008
ps3netsrv build 20170106 (mod by aldostools)
Path: /mnt/usb/playstation3

Waiting for client...`

and the on webman interface i click "refresh xml", then i see on router:
`root@OpenWrt:~# /mnt/usb/ps3netsrv_mipseb /mnt/usb/playstation3 38008
ps3netsrv build 20170106 (mod by aldostools)
Path: /mnt/usb/playstation3

Waiting for client...
Connection from 192.168.1.144`
<-- my playstation 3

It seems there is a connection but there are no NET games in web interface, list is empty but should be one game.

The same behaviour I get when I try ps3netsrv64 version 1.43.28 on my linux desktop but ps3netsrv64 version 1.43.27 works, there is 1 game in NET folder on WebMan. Maybe some difference between versions

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

@Kamillux at least we have same endianess, we can test on 2 different hardware.
I'll take in account, I'll build a debug one for our tests, stay tuned
Diff between versions are small, we can track down the issue just adding some debugging messages...

from webman-mod.

Kamillux avatar Kamillux commented on May 29, 2024

@masterzorag ok, I love debugging :)

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

@Kamillux mipseb_debug_static: check commit f6af958
It's upx compressed, but not stripped, it includes GDB debugging informations!
Since you love debugging and you running OpenWRT, maybe you can install the GNU Debugger and use it directly on the target...

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

I'm assuming endianess problems, seems that we have to reverse multibyte types just on LE targets...

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

@Kamillux try this

from webman-mod.

Kamillux avatar Kamillux commented on May 29, 2024

Still no-go:
root@OpenWrt:~# /mnt/usb/ps3netsrv_mipseb_debug /mnt/usb/playstation3 38008
ps3netsrv build 20170106 (mod by aldostools)
off_t too small! (4)
Path: /mnt/usb/playstation3

Waiting for client...
Connection from 192.168.1.144
client_thread(), client @0x77530644
command received: 2A12
Unknown command received: 2A12
finalize_client()

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

@Kamillux not tested yet? Any good news?
I have updated the binary, check that commit!

from webman-mod.

masterzorag avatar masterzorag commented on May 29, 2024

@Xa6ep can you close this one?
No more reason...

from webman-mod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.