Skip to content

Commit

Permalink
Update f2.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BastelPichi authored Nov 19, 2024
1 parent 63fd863 commit 57d9db1
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions f2.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Quick F2 CFW Guide
# F2 Tuning
## F2 ST-Link
You need to do this as a first step.

Required:
- ST Link V2, color doesnt matter
Expand All @@ -14,27 +16,19 @@ Required:
After removing the black mosfet clamp, you can use a clamp to carefully push out the PCB from the heatsink.
Alternatively, you can 3D-print and use the [ST-Link clip](https://www.printables.com/model/951959-ninebot-g2-st-link-clip) or you can slide piece of metal between the heatsink and the PCB, then drill a hole above the ST-Link pins - your PCB should be protected by the piece of metal you slid in. After you've drilled the hole, slide the metal out, and you should have access to the Pins.

1) Open the [Webflasher](https://flash.bastelpichi.de) in an chromium based webbrowser (Chrome, Edge, Opera, Chromium, etc.). Select F2 as Scooter, enter odometer value and SN.
3) Connect your STLink with the jumpers according to the diagram, found by clicking on "Images" next to the scooter you selected. You will need to remove the heatsink from the board. Use the wires to match up the pins, so connect SWCLK to SWCLK, SWDIO to SWDIO, and so on. The names might be slightly different on the ST-Link (e.g. DIO instead of SWDIO, 3V3 instead of 3.3V). That doesnt matter. Its enough to hold the pins, no need to solder.
![image](https://github.com/user-attachments/assets/82cfb679-433f-4a3e-9e84-78f823c47663)
4) Click "Start Flashing". If you are only holding the pins, you can press the "Start Countdown" button which will start the flashing 15 seconds after clicking on the button.
5) If the ST-Link doesn't show up, follow the steps from the Help page, linked in the bottom.
6) Watch the Segway Video in reverse. Congrats, your Scooter is now unrestricted, meaning you can flash any firmware you like via Bluetooth.

1) Download [this](https://github.com/WallyCZ/ninebot_firmware/raw/master/f2/DRV/1.4.15.bin) file.
2) Go to [NGFW](https://nextgenfw.pythonanywhere.com/).
3) Select your Scooter under "Load Preset".
![image](https://github.com/user-attachments/assets/199568de-23b3-4a73-8673-302154a3fea0)

4) Select some Patches. The following work:
- Remove Model Check
- DPC
- No KERS or Custom KERS
- Region-Free
- Speed Limit
5) Select the .bin file downloaded in the first step. Click on the "Bin" button.
![image](https://github.com/user-attachments/assets/7e631fc4-eab5-485d-81ff-9c21e2e84a08)
## SHFW Guide
This works for the F2 Pro. You'll need to use an resistor instead of the motor NTC on the regular F2/F2 Plus.
1) Download [this file](https://firmware.scooterhacking.org/g2/BLE/1.11.0.zip).
2) Unzip it. Edit info.json, set enforceModel to false.
![image](https://github.com/user-attachments/assets/a64f8e7e-c46d-488b-9fc4-a80818bbc5ae)

6) A file should download. rename this file to "g2_DRV.bin" (without the quotes)
7) Download and install [Scooterhacking Reflasher](https://www.scooterhacking.org/forum/viewtopic.php?t=676). You might need to [download .NET manually](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-3.1.32-windows-x64-installer).
8) Download and install [Zadig](https://zadig.akeo.ie). Select your ST-Link and install WinUSB.
9) Navigate to `C:\Program Files (x86)\ScooterHacking ReFlasher\binaries\firmware` in explorer. Replace the g2_DRV.bin with the one you made.
10) Open ReFlasher. Select Ninebot Max G2, DRV. Enter your serial number and kmh. Click Settings -> Show Console.
11) Connect your STLink with the jumpers according to the diagram. You will need to remove the heatsink from the board. Use the wires to match up the pins, so connect SWCLK and SWCLK, SWDIO and SWDIO, GND and GND and 3.3V and 3.3V. The names might be slightly different on the ST-Link (e.g. DIO instead of SWDIO, 3V3 instead of 3.3V). That doesnt matter. Its enough to hold the pins, no need to solder.
![image](https://github.com/user-attachments/assets/82cfb679-433f-4a3e-9e84-78f823c47663)
12) Click "Start" in Reflasher. Make sure you dont get any errors in your console.
13) Watch the Segway Video in reverse and have fun with your scooter!
4) Rezip the file. Make sure to not add any new folders. The files should be in the archive directly.
5) Flash the file via [SHU](https://utility.cfw.sh).
6) Your scooter will now identify as G2. Flash SHFW and configure away!

0 comments on commit 57d9db1

Please sign in to comment.