I have some tplink firmware (bin) that i wanna attscky own program to, this is designed…
- User
I have some tplink firmware (bin) that i wanna attscky own program to, this is designed to run on linux and is written in golang, tplink fiware is closed source, can i somehow make my software run on startup?
- Assistant
Yes, you can make your program run on startup in Linux by adding it as a service or using the init system. Here are a few options you can explore:
-
systemd:
- Create a systemd service configuration file in the directory
/etc/systemd/system/. For example, create a file/etc/systemd/system/myprogram.service. - Add the following content to the service file:
code
[Unit] Description=My Program [Service] ExecStart=/path/to/myprogram [Install] WantedBy=default.target - Save the file and run the following commands:
code
- Create a systemd service configuration file in the directory
-
- User
No, i want to make a new firmware file with my own program on it.
- Assistant
To create a new firmware file with your own program embedded in it, you would need to follow a process similar to custom firmware development. Here's a high-level overview of the steps involved:
-
Extract existing firmware: Start by extracting the content of the tplink firmware file (.bin) to retrieve the relevant files and file structure.
-
Modify the firmware:
- Add your Golang program, compiled for the target architecture, to the firmware files.
- Update any necessary configuration files or scripts to include your program in the startup process.
-
Rebuild the firmware:
- Recreate the firmware file using the modified files and maintaining the original structure.
- Ensure that the firmware is compatible with your tplink device.
-
Flash the modified firmware onto the device:
-