v0.1
This commit is contained in:
parent
f1c6f7985f
commit
3f9add019a
2 changed files with 15 additions and 11 deletions
24
README.md
24
README.md
|
@ -1,9 +1,13 @@
|
|||
# NS-USBloader
|
||||
|
||||
NS-USBloader is a PC-side tinfoil NSP USB uploader. Replacement for default usb_install_pc.py
|
||||
|
||||
With GUI and cookies.
|
||||
|
||||
Read more: https://developersu.blogspot.com/2019/02/ns-usbloader-en.html
|
||||
|
||||
Here is the version of 'not perfect byt anyway' [tinfoil I use](https://cloud.mail.ru/public/DwbX/H8d2p3aYR).
|
||||
|
||||
## License
|
||||
|
||||
Source code spreads under the GNU General Public License v.3. You can find it in LICENSE file.
|
||||
|
@ -13,9 +17,9 @@ Source code spreads under the GNU General Public License v.3. You can find it in
|
|||
JRE 8 or higher. See below.
|
||||
|
||||
## Used libraries
|
||||
* OpenJFX https://wiki.openjdk.java.net/display/OpenJFX/Main
|
||||
* usb4java: https://mvnrepository.com/artifact/org.usb4java/usb4java
|
||||
* Few icons taken from: http://materialdesignicons.com/
|
||||
* [OpenJFX](https://wiki.openjdk.java.net/display/OpenJFX/Main)
|
||||
* [usb4java](https://mvnrepository.com/artifact/org.usb4java/usb4java)
|
||||
* Few icons taken from: [materialdesignicons](http://materialdesignicons.com/)
|
||||
|
||||
## Usage
|
||||
### Linux:
|
||||
|
@ -24,6 +28,12 @@ Install JRE/JDK 8 or higher (openJDK is good. Oracle's one is also good). JavaFX
|
|||
|
||||
`root # java -jar /path/to/NS-USBloader.jar`
|
||||
|
||||
### macOS
|
||||
|
||||
See 'Linux' section.
|
||||
|
||||
Set 'Security & Privacy' if needed.
|
||||
|
||||
### Windows:
|
||||
|
||||
* Download Zadig: https://zadig.akeo.ie/
|
||||
|
@ -35,12 +45,6 @@ Install JRE/JDK 8 or higher (openJDK is good. Oracle's one is also good). JavaFX
|
|||
* Get this application (JAR file) double-click on on it (alternatively open 'cmd', go to place where jar located and execute via 'java -jar thisAppName.jar')
|
||||
* Remember to have fun!
|
||||
|
||||
### macOS
|
||||
|
||||
Not tested.
|
||||
|
||||
See 'Linux' section
|
||||
|
||||
## Tips&tricks
|
||||
### Add user to udev rules to use NS non-root (Linux):
|
||||
`root # vim /etc/udev/rules.d/99-NS.rules`
|
||||
|
@ -53,6 +57,6 @@ See 'Linux' section
|
|||
* Unable to interrupt transmission when libusb awaiting for read event (when user sent NSP list but didn't selected anything on NS).
|
||||
|
||||
## TODO:
|
||||
- [ ] macOS QA
|
||||
- [x] macOS QA by [Konstanin Kelemen](https://github.com/konstantin-kelemen). Appreciate assistance of [Vitaliy Natarov](https://github.com/SebastianUA).
|
||||
- [x] Windows support
|
||||
- [ ] code refactoring
|
|
@ -590,7 +590,7 @@ class UsbCommunications extends Task<Void> {
|
|||
int trans = readBufTransferred.get();
|
||||
byte[] receivedBytes = new byte[trans];
|
||||
readBuffer.get(receivedBytes);
|
||||
/* DEBUG START----------------------------------------------------------------------------------------------
|
||||
/* DEBUG START----------------------------------------------------------------------------------------------*
|
||||
hexDumpUTF8(receivedBytes);
|
||||
// DEBUG END----------------------------------------------------------------------------------------------*/
|
||||
return receivedBytes;
|
||||
|
|
Loading…
Reference in a new issue