gmail.com 3 years ago
parent
commit
1f05c9d0b8
3 changed files with 38 additions and 0 deletions
  1. 2 0
      environement.sh
  2. 3 0
      flash_optiboot.sh
  3. 33 0
      optiboot_atmega328.hex

+ 2 - 0
environement.sh

@@ -1,2 +1,4 @@
 #!/bin/bash
 #!/bin/bash
 sudo apt-get install avrdude gcc-avr avr-libc binutils-avr -y
 sudo apt-get install avrdude gcc-avr avr-libc binutils-avr -y
+git clone https://github.com/Optiboot/optiboot.git
+

+ 3 - 0
flash_optiboot.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+sudo avrdude -patmega328p -cusbasp -Pusb -e -Uefuse:w:0xfd:m -Uhfuse:w:0xda:m -Ulfuse:w:0xff:m -U flash:w:optiboot_atmega328.hex
+

+ 33 - 0
optiboot_atmega328.hex

@@ -0,0 +1,33 @@
+:107E000001C0DEC0112484B7882361F0982F9A70D6
+:107E1000923041F081FF02C097EF94BF282E80E09E
+:107E2000BAD0EEC085E08093810082E08093C000EC
+:107E300088E18093C10086E08093C20080E1809356
+:107E4000C4008EE0A8D0259A86E020E33CEF91E0C4
+:107E5000309385002093840096BBB09BFECF1D9A83
+:107E6000A8954091C00047FD02C0815089F7EE24DB
+:107E7000E39495E0D92E21E1C22E81D0813471F4B2
+:107E80007ED0182F8ED0123811F482E005C0113840
+:107E900011F488E001C083E06BD067C0823411F434
+:107EA00084E103C0853419F485E083D05EC0853554
+:107EB00039F465D0C82F63D0D82FCC0FDD1F54C044
+:107EC000863521F484E075D080E0E6CF843609F071
+:107ED0002EC055D054D0F82E52D0B82E00E011E06C
+:107EE0004ED0F80181938F01FE12FACF5AD0F5E4FB
+:107EF000BF1201C0FFCF83E0FE0187BFE89507B640
+:107F000000FCFDCFA0E0B1E0FE018D919D910C0140
+:107F1000E7BEE89511243296FA12F7CFFE01D7BEDC
+:107F2000E89507B600FCFDCFC7BEE8951EC08437B4
+:107F300071F425D024D0F82E22D033D08E01F80150
+:107F400085918F0115D0FA94F110F9CF0EC08537C5
+:107F500039F427D08EE10CD085E90AD08FE09CCF90
+:107F6000813511F488E017D01CD080E101D085CF95
+:107F70009091C00095FFFCCF8093C600089580913A
+:107F8000C00087FFFCCF8091C00084FD01C0A89590
+:107F90008091C6000895E0E6F0E098E19083808348
+:107FA0000895EDDF803219F088E0F5DFFFCF84E13E
+:107FB000DFCFCF93C82FE3DFC150E9F7CF91F1CFE7
+:107FC000FC010A0167BFE895112407B600FCFDCF4C
+:107FD000667029F0452B19F481E187BFE895089573
+:027FFE00020877
+:0400000300007E007B
+:00000001FF