AltServer-Linux-ShellScript icon indicating copy to clipboard operation
AltServer-Linux-ShellScript copied to clipboard

aarch64 support (WiFi-refresh)

Open Macleykun opened this issue 3 years ago • 25 comments

Her pownn,

I talked with @jkcoxson and he has added aarch64 support & is releasing the binary for it aswell now!

See: https://github.com/jkcoxson/netmuxd/releases/tag/v0.1.3

This means that the reason why wi-fi refresh for 64-bit rpi's couldn't be added is now resolved!

There's no official netmuxd release for aarch64,so no arrch64 support

Originally posted by @powenn in https://github.com/powenn/AltServer-Linux-ShellScript/issues/41#issuecomment-1242827336

Is it possible to update the script to include this newly added architecture?

Looking forward to your reply!! <3

Macleykun avatar Sep 13 '22 17:09 Macleykun

I will test it,if works then update it soon

powenn avatar Sep 13 '22 22:09 powenn

Did you try with the instruction from netmuxd repo? Is that working for aarch64 ?

I test it on both x86_64 and aarch64 with my script ,they both not working ,always shows creating plist

powenn avatar Sep 13 '22 22:09 powenn

Did you try with the instruction from netmuxd repo? Is that working for aarch64 ?

I test it on both x86_64 and aarch64 with my script ,they both not working ,always shows creating plist

Never used it myself. @jkcoxson could you help us?

Macleykun avatar Sep 14 '22 00:09 Macleykun

Also, @powenn you can join his server here: https://discord.gg/RgpFBX3Q3k

Macleykun avatar Sep 14 '22 00:09 Macleykun

To test it with the script,just add aarch64 to netmuxd available variable and modify the curl command to download the latest release or place it manually if using older release or testing one

powenn avatar Sep 14 '22 01:09 powenn

To test it with the script,just add aarch64 to netmuxd available variable and modify the curl command to download the latest release or place it manually if using older release or testing one

Sadly I can’t test it yet (currently going on holidays). So I’ll personally be testing this somewhere next week :)

Meanwhile, @HeyMeco would ya mind to test this one out :) ?

Macleykun avatar Sep 14 '22 02:09 Macleykun

Meanwhile, @HeyMeco would ya mind to test this one out :) ? Starting netmuxd Starting mDNS discovery for _apple-mobdev2._tcp.local with mdns

looks good I just couldn't try pairing a device yet since I apparently have no USB-A to lightining cables left

HeyMeco avatar Sep 14 '22 09:09 HeyMeco

Usb-c to lightening can pair devices

powenn avatar Sep 14 '22 09:09 powenn

Hey. You pointed me here (I suppose? :)), but I'm not sure how this helps me :
This Starting netmuxd and mDNS discovery came up as well. But since then it's running that creating plist part for hours now :(

andre1808 avatar Sep 16 '22 15:09 andre1808

So it wasn't a script issue,I guess even you followed the instruction from netmuxd repo,you will get the same result

powenn avatar Sep 17 '22 00:09 powenn

Well not sure about that. Netmuxd is available for more architectures now, so the limitation to x86/x64 isn’t necessary anymore. The disclosed prebuild altserver doesn’t seem to be working for everyone. But I guess that’s not really something you could deal with with your script.

I’m still not sure about that plist stuff. What is this? 😅

andre1808 avatar Sep 17 '22 05:09 andre1808

I’ll give it a look

jkcoxson avatar Sep 17 '22 07:09 jkcoxson

Testing on aarch64-apple-darwin and x86_64-linux-gnu, netmuxd is operating as expected (besides weird log spam). Would somebody mind sending a log with RUST_LOG=netmuxd=info?

jkcoxson avatar Sep 17 '22 18:09 jkcoxson

Testing on aarch64-apple-darwin and x86_64-linux-gnu, netmuxd is operating as expected (besides weird log spam). Would somebody mind sending a log with RUST_LOG=netmuxd=info?

Did you test with AltServer or netmuxd only

powenn avatar Sep 18 '22 01:09 powenn

I'll summarize how i now have it setup: This is what's happening at the moment with the latest release: image

(this keeps going on even when exiting the script)

I've editted the script slighty by replacing the available archs to aarch64 NETMUXD_AVAILABLE_ARCHS=("aarch64")

the curl command is changed to a static one curl -L https://github.com/jkcoxson/netmuxd/releases/download/v0.1.3/aarch64-linux-netmuxd > netmuxd

Now i set the env var and this is the output:

image

Is this what you wanted to see @jkcoxson ?

Add a bit more info what command is being ran:

macley@raspberrypi:~/AltServer-Linux-ShellScript $ sudo -b -S ./netmuxd
macley@raspberrypi:~/AltServer-Linux-ShellScript $ Starting netmuxd
Starting mDNS discovery for _apple-mobdev2._tcp.local with mdns
Listening on /var/run/usbmuxd
Creating plist 4120665040
Creating plist 1324001205
Creating plist 4286168353
Creating plist 1010585241
Creating plist 1515241643
Creating plist 2394165472
Creating plist 2249164438
Creating plist 4259155397
Creating plist 3671982774
^C
macley@raspberrypi:~/AltServer-Linux-ShellScript $ Creating plist 1138419724
Creating plist 2580709734
Creating plist 3326199115

Same when using withoud any args.

only phone is plugged in into the usb port and i have accepted the connection prompt on the phone.

Macleykun avatar Sep 21 '22 17:09 Macleykun

Did a proper debug:

macley@raspberrypi:~/AltServer-Linux-ShellScript $ export RUST_LOG=netmuxd=info
macley@raspberrypi:~/AltServer-Linux-ShellScript $ ls
AltServer  AltStore.ipa  ipa  LICENSE  main  netmuxd  photos  README.md  run.sh  saved.txt  update.sh  version
macley@raspberrypi:~/AltServer-Linux-ShellScript $ ./run.sh ^C
macley@raspberrypi:~/AltServer-Linux-ShellScript $ cd ^C
macley@raspberrypi:~/AltServer-Linux-ShellScript $ ./netmuxd
Starting netmuxd
[2022-09-21T18:24:40Z INFO  netmuxd] Logger initialized
[2022-09-21T18:24:40Z INFO  netmuxd] Collected arguments, proceeding
[2022-09-21T18:24:40Z INFO  netmuxd::devices] Using system default plist storage
[2022-09-21T18:24:40Z INFO  netmuxd] Created new central data
Starting mDNS discovery for _apple-mobdev2._tcp.local with mdns
[2022-09-21T18:24:40Z INFO  netmuxd] Deleting old Unix socket
[2022-09-21T18:24:40Z INFO  netmuxd] Binding to new Unix socket
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 98, kind: AddrInUse, message: "Address already in use" }', src/main.rs:139:79
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2022-09-21T18:24:45Z INFO  netmuxd::devices] Getting UDID for MAC: "24:5e:48:9c:99:f3"
Creating plist 1225094919
Creating plist 774086877
Creating plist 4254790193
[2022-09-21T18:24:49Z INFO  netmuxd::devices] Getting UDID for MAC: "60:06:e3:1f:2e:16"
Creating plist 1080010214
Creating plist 2525171759
Creating plist 2661630535
[2022-09-21T18:24:50Z INFO  netmuxd::devices] Getting UDID for MAC: "60:06:e3:1f:2e:16"
Creating plist 3874530265
Creating plist 1409631651
Creating plist 3568191554
[2022-09-21T18:24:50Z INFO  netmuxd::devices] Getting UDID for MAC: "24:5e:48:9c:99:f3"
Creating plist 2855442252
Creating plist 2694611728
Creating plist 2739548227
[2022-09-21T18:24:52Z INFO  netmuxd::devices] Getting UDID for MAC: "60:06:e3:1f:2e:16"
Creating plist 1071889904
Creating plist 280241683
Creating plist 414090823
[2022-09-21T18:24:55Z INFO  netmuxd::devices] Getting UDID for MAC: "24:5e:48:9c:99:f3"
Creating plist 1800698422
Creating plist 1380308215
Creating plist 3796507001
[2022-09-21T18:24:56Z INFO  netmuxd::devices] Getting UDID for MAC: "60:06:e3:1f:2e:16"
Creating plist 4263789265
Creating plist 1948031866
Creating plist 3402201885
[2022-09-21T18:24:58Z INFO  netmuxd::devices] Getting UDID for MAC: "60:06:e3:1f:2e:16"
Creating plist 2237671522
Creating plist 1554311012
Creating plist 2284155611
^C

Done as root: https://hastebin.com/nagezotado.yaml Done as normal user: https://hastebin.com/nobahemego.rb

Macleykun avatar Sep 21 '22 18:09 Macleykun

Looks to me like there is no pairing file in /var/lib/lockdown Do any of the pairing files there have your Mac address?

jkcoxson avatar Sep 21 '22 18:09 jkcoxson

Looks to me like there is no pairing file in /var/lib/lockdown Do any of the pairing files there have your Mac address?

yup!:

macley@raspberrypi:/var/lib/lockdown $ ls -al
total 24
drwxrwsr-x  2 usbmux plugdev 4096 Sep 21 19:30 .
drwxr-xr-x 29 root   root    4096 Sep 21 19:30 ..
-rw-r--r--  1 usbmux plugdev 9401 Sep 21 19:30 00008110-001419211178801E.plist
-rw-r--r--  1 usbmux plugdev  266 Sep 21 19:30 SystemConfiguration.plist

Macleykun avatar Sep 21 '22 18:09 Macleykun

This 00008110-001419211178801E.plist has your Mac address listed under WiFiMACAddress? If so, can you change the export to RUST_LOG=info

jkcoxson avatar Sep 21 '22 18:09 jkcoxson

This 00008110-001419211178801E.plist has your Mac address listed under WiFiMACAddress? If so, can you change the export to RUST_LOG=info

Correct! The value here:

        <key>WiFiMACAddress</key>
        <string>24:5e:48:9c:99:f3</string>

is the actual mac adres. (i do have private wifi-adress on)

Here's the new log: https://hastebin.com/ilimojiqit.rb (using hastebin to not make this issue longer then needed)

Macleykun avatar Sep 21 '22 18:09 Macleykun

You'll have to run with root again, netmuxd has to bind to /var/run/lockdown or extra config will have to be done to allow for it to run off of a TCP socket.

jkcoxson avatar Sep 21 '22 18:09 jkcoxson

You'll have to run with root again, netmuxd has to bind to /var/run/lockdown or extra config will have to be done to allow for it to run off of a TCP socket.

In the same session done that: https://hastebin.com/woyasediye.rb

btw i'm online on discord aswell if that is easier :)

Macleykun avatar Sep 21 '22 18:09 Macleykun

@Macleykun Did you figure out something?

powenn avatar Sep 22 '22 02:09 powenn

@Macleykun Did you figure out something?

so it's a netmuxd problem, quoting jkcoxson from discord:

jkcoxson — Yesterday at 21:49
I'm gonna have to look into the issue some more, I'm not sure why it's not finding your pairing files.

For now we have to wait for jkcoxson :) after it's working for aarch64, it's wiser to add the support for it into the script and wait for any bug reports to come in if other platforms have (other) issues :).

Macleykun avatar Sep 22 '22 09:09 Macleykun

Dropping this here:

sudo apt install git -y
git clone https://github.com/powenn/AltServer-Linux-ShellScript.git
sudo apt-get install libavahi-compat-libdnssd-dev usbmuxd libimobiledevice6 libimobiledevice-utils -y

for when we can test again when plist building works :) <3

Macleykun avatar Oct 13 '22 20:10 Macleykun

hey pownn, the next netmuxd will work on aarch64 too are you able to test this yourself? I seem to have an issue with entering my apple creds. https://github.com/powenn/AltServer-Linux-ShellScript/issues/46

I don't believe this is an issue with netmuxd

Macleykun avatar Oct 21 '22 19:10 Macleykun

I'll push updates to GitHub releases, I've fixed netmuxd with @Macleykun 's help.

jkcoxson avatar Oct 21 '22 19:10 jkcoxson

hey pownn, the next netmuxd will work on aarch64 too

are you able to test this yourself? I seem to have an issue with entering my apple creds.

https://github.com/powenn/AltServer-Linux-ShellScript/issues/46

I don't believe this is an issue with netmuxd

I can test it tomorrow

powenn avatar Oct 22 '22 00:10 powenn

I'll push updates to GitHub releases, I've fixed netmuxd with @Macleykun 's help.

Thanks for this update

powenn avatar Oct 22 '22 01:10 powenn

Perfect. Thank you very much for the hard work. I can`t wait to have Altserver running on my Openvpn Raspberry pi server :D

lolren avatar Oct 22 '22 12:10 lolren