philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.6k stars 219 forks source link

Request support for mipsel platform #484

Closed wangshe closed 1 year ago

wangshe commented 1 year ago

Hi sir, I want to use airconnect in a router with Openwrt system, the soc is MediaTek MT7621A, it belongs to mipsel platform. Please support for this. Thanks a lot.

philippe44 commented 1 year ago

I've added a mips32el version. Not sure it works, I don't have anything to test

wangshe commented 1 year ago

Thanks a lot, I'm going to test today.

wangshe commented 1 year ago

I got error "Illegal instruction", what should I do? 微信图片_20230823083547

philippe44 commented 1 year ago

Try the -static version. If it still does not work, I won't be able to help much. I don't have any hardware to check. It's compiled for a MIPS3000 type of CPU, 32 bits (mips32 architecture that the MIPS1004Kc should be)

philippe44 commented 1 year ago

oh ... you are launching just ./airupnp ???? you have to launch the mipsel dedicated version!!!, so ./airupnp-linux-mipsel or ./airupnp-linux-mipsel-static

wangshe commented 1 year ago

I lunched airupnp-linux-mipsel-static, just changed the file name to airupnp then I lunched. But is showing Illegal instruction

philippe44 commented 1 year ago

I really don't know then. Maybe it's a 64 bits Linux version and you'd need the 32 bits runtime Linux environment. Maybe another instruction set should be used at compile time but I can't account for all versions of mips. I chose the mips32 which is supposed to be the most common.

philippe44 commented 1 year ago

Are you also 100% sure that your openwrt is compiled for little endian? Mips can be any

wangshe commented 1 year ago

I have checked, need to compile with openwrt golang. Similar like compile this frp. https://github.com/wangshe/packages/blob/master/net/frp/Makefile. But that is huage job.

philippe44 commented 1 year ago

It's not going to work then