Hi,
So how to netinstall from a linux machine to a routerboard device.
1. Install netinstall
a)
See if you have netinstall in any repository so you can install it with a package manager. If you do that you will pull the necessary dependencies and make the program work.
For me on manjaro with the ability to use the repository AUR found the netinstall program. All distributions based on Arch linux and have access to AUR will be able to get the program form there.
I use yay as package manager and used yay -Ss netinstall to find the package and then yay -S to install it.
yay -S netinstall
The version I got with that was netinstall-7.9.1.
b)
I checked out what type of file netinstall is with the file command:
file netinstall
netinstall: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.16, stripped
So it is 32 bit and your and mine architecture are 64 bit. To be able to run 32 bit packages on a 64 bit machine you have to have libraries installed called 'multilib'. I have not researched it so much but this link talks about it and you should be able to read up about it for your distribution. If you sort it out please post how you did it and what dependencies you added.
2. See the actual commands of netinstall.
the program does not have a man page but you can use the -h option. The -a option form the support page does not exist. You have to use the -i option instead.
netinstall -h
usage: /usr/bin/netinstall [OPTIONS]
where OPTIONS are:
-h show this help
-i INTERFACE install via INTERFACE
-k KEYFILE use KEYFILE
-p PACKAGE install PACKAGE
-r reset configuration
-s SCRIPT run script
3. I do not know if you need to do all this but I did it and it worked and later on I see that netinstall used the address:
a) set a static ip on your interface which you want to connect to the routerboard. Ifconfig is deprecated so use the command ip instead.
just change the device name and you should be good to go.
sudo ip a add 192.168.88.2/24 broadcast + dev eth0
device eth0 is my ehternet connection form my computer but a lot of times it starts with enp0.
4. Connect to computer to boot interface on router. Often it is ethernet 1
5. Put the router in etherboot mode.
6. Run netinstall
for me it was:
sudo netinstall -i eth0 -p routeros-arm-6.48.7.npk -r
Version: 7.9.1(2023-05-19 12:54:50)
Will reset to default config
Interface Mask: 255.255.255.0
Using Client IP: 192.168.88.1
Using Server IP: 192.168.88.2
Starting PXE server
Waiting for RouterBOARD...
client: (mac-address)
Sending image: arm
sendFile 3449268
Discovered RouterBOARD...
Formatting...
Sending package routeros-arm-6.48.7.npk ...
Ready for reboot...
Sent reboot command
7. Remove the ip address from the interface if you want.
ip address flush dev <interface name>
8. Connect the cable form the boot port to where you want it. and log in with winbox.