avr: big fw rewrite started