Here is the MSCLoader: https://github.com/piotrulos/MSCModLoader
For some reason the author piotrulos has opted to make an installer instead of just packing it in a zip file. I guess to ensure that people install the modloader into the correct place.
However the file and folder structure are almost identical to BepInEx and could have been packaged into a zip file with ease.
The way I solved it was to trick the installer into unpacking on a Wintendo 10 machine and then take all the files/folders and put into a zip file myself.
Tricked it by creating a dummy “Mywintercar” folder with:
– dummy mywintercar.exe inside
– dummy mono.dll in subfolder “mywintercar_Data\Mono\mono.dll”
The installer will extract everything and after you ca delete your dummy files and create a zip of the new folder/files structure.
Copy that zip file into your linux gaming machine and from there all you have to do is to extract it the same way you would with BepInEx, and also add the “winhttp.dll” into the libraries using protontricks, the same way as BepInEx:
Ref: https://docs.bepinex.dev/articles/advanced/proton_wine.html
If you did everything correctly it should load the exact same way as on Wintendo š
UPDATE: It seems you can extract the files needed directly from the .pack files that comes with the installer, but you don’t get the folder structure
Edgerouter X – Firmware upgrade fails
IMPORTANT! Read this BEFORE you attempt to upgrade the FW of your edgerouter.
There seems to be a faily common issue now that the firmware upgrade fails when done through the webgui and many recommend doing it only through CLI (Command Line Interface).
I had to return a brand new edgerouter with fw 1.7.0 after the upgrade failed using the webgui.
Root cause
There is not enough free diskspace on the root filesystem for the existing, plus new compressed and uncompressed firmware. The disk will go full during the upgrade and if you are as lucky as me it will BRICK YOUR DEVICE.
I tried all the factory resets and TFTP recovery, it was dead.
Trying to upgrade will most likely result in something like this:
ubnt@erx:~$ add system image ER-e50.v1.10.11.5274269.tar
Checking upgrade imageā¦Done
Preparing to upgradeā¦Done
Copying upgrade imageā¦Not enough disk space for root file system
ubnt@erx:~$ df -h
Filesystem Size Used Available Use% Mounted on
ubi0_0 214.9M 137.5M 72.7M 65% /root.dev
aufs 214.9M 137.5M 72.7M 65% /
Solution
1. Download the newest firmware from the ubiquiti website:
https://www.ui.com/download/edgemax/edgerouter-x
2. Copy the firmware from your Linux computer over to the router (replace versions/IPs/etc as needed):scp ER-e50.v1.10.11.5274269.tar ubnt@192.168.1.1:.
(or if you are on Windows; pull your hair, smash the keyboard a bit and then download Filezilla)
3. Login to your edgerouter through ssh like:ssh ubnt@192.168.1.1
or if you are still using Windows, pull out the rest of your hair, scream out “Schpielen!!!” and smash the rest of your keyboard before downloading PuTTY
4. Here is the clue. Now you move the firmware to the /tmp directory as it resides on a different partition than your root filesystem:ubnt@erx:~$ mv -i ER* /tmp
5. Now you may start the firmware upgrade with a command that may look something like this:ubnt@erx:~$ add system image /tmp/ER-e50.v1.10.11.5274269.tar
Checking upgrade imageā¦Done
Preparing to upgradeā¦Done
Copying upgrade imageā¦Done
Removing old imageā¦Done
Checking upgrade imageā¦Done
Copying config dataā¦Done
Finishing upgradeā¦Done
Upgrade completed
ubnt@erx:~$
tl;dr root partition goes full during upgrade so move firmware.tar to /tmp before upgrading.
Hope this helps some other smuck from having to return a dead router to the shop and if nothing else it will serve me as a guide the next time I do an upgrade on one of these myself.
Make isc-dhcp-server PXE boot into WDS
The normal Linux way for DHCP to give direction for PXE boot is :
next-server 10.10.10.10; filename "/pxelinux.0";
However WDS takes a different approach as it does not have a pxelinux.0 file.
Instead it presents a program called wdsnbp.com.
Easy fix, we just replace the lines above with:
next-server 10.10.10.12; filename "boot\\x64\\wdsnbp.com";
Remember to restart the service :
/etc/init.d/isc-dhcp-server restart
UPDATE: Also have a look at this post to add support for UEFI:
http://tomas.solamail.no/2019/03/20/wds-uefi-bios-dhcp-options/
fdisk – force start sector 63
When you try to create a partition on newer distributions you get “out of range” error message when trying to create a new partition starting at sector 63 :
First sector (2048-2930277167,default2048):63Value out of range.
fdisk -c=dos /dev/sda
