mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2025-01-30 14:50:10 -05:00
Send command to enter bootloader when flashing
This commit is contained in:
parent
b03e20d7cf
commit
0bf5ac3a9c
1
Makefile
1
Makefile
@ -35,6 +35,7 @@ $(PROGNAME).hex: $(PROGNAME).elf
|
|||||||
fuse:
|
fuse:
|
||||||
|
|
||||||
flash: $(HEXFILE)
|
flash: $(HEXFILE)
|
||||||
|
./enter_bootloader.sh
|
||||||
./wait_then_flash.sh $(CPU) $(HEXFILE)
|
./wait_then_flash.sh $(CPU) $(HEXFILE)
|
||||||
|
|
||||||
chip_erase:
|
chip_erase:
|
||||||
|
@ -38,6 +38,7 @@ clean:
|
|||||||
fuse:
|
fuse:
|
||||||
|
|
||||||
flash: $(HEXFILE)
|
flash: $(HEXFILE)
|
||||||
|
./enter_bootloader.sh
|
||||||
./wait_then_flash.sh $(CPU) $(HEXFILE)
|
./wait_then_flash.sh $(CPU) $(HEXFILE)
|
||||||
|
|
||||||
chip_erase:
|
chip_erase:
|
||||||
|
9
enter_bootloader.sh
Executable file
9
enter_bootloader.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
TOOL=./tool/gcn64ctl
|
||||||
|
|
||||||
|
if [ -x $TOOL ]; then
|
||||||
|
$TOOL -f --bootloader
|
||||||
|
else
|
||||||
|
echo $TOOL not found. Please compile it to enter bootloader automatically.
|
||||||
|
fi
|
1
tool/99-raphnet.rules
Normal file
1
tool/99-raphnet.rules
Normal file
@ -0,0 +1 @@
|
|||||||
|
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="289b", ATTRS{idProduct}=="0017", MODE="0664", GROUP="plugdev"
|
Loading…
Reference in New Issue
Block a user