ATmega328Pにarduinoブートローダを書くための情報

4っつのステップ
step1) unlocking the bootloader section of the chip
step2) setting the the fuses on the chip
step3) uploading the bootloader code to the chip
step4) locking the bootloader section of the chip.

328pのコンフィグファイルは以下でよし?
( http://zampoh.cocolog-nifty.com/blog/2009/03/arduino---atmeg.html より)

#arduino duemilanove
programmer
  id="duemilanove";
  desc = "FT232R Synchronous BitBang";
  type = ft245r;
  miso = 3;  # CTS X3(1)
  sck = 5;  # DSR X3(2)
  mosi = 6;  # DCD X3(3)
  reset = 7;  # RI X3(4)
;


( http://www.geocities.co.jp/arduino_diecimila/bootloader/index.html )

以下のヒューズの値,ロックビットの値,ブートローダのhexファイルを使って書き込む(board.txtより)

* hfuse = DA
* lfuse = FF
* efuse = 05
* unlock = 3F
* lock = 0F
* bootloader .hex file
ATmegaBOOT_168_atmega328.hex




現在のATMega368P(まっさらなチップ)のfuseの設定は

avrdude> d efuse
>>> d efuse 
0000  07                                                |.               |

avrdude> d hfuse
>>> d hfuse 
0000  d9                                                |.               |

avrdude> d lfuse
>>> d lfuse 
0000  62                                                |b               |

avrdude> d lock
>>> d lock 
0000  3f                                                |?               |

avrdude> 

となっている