-- yun without bootloader on atmega is possible? [SOLVED]


hi,
is possible upload sketch without bootloader?

could solution add new "yun-without-bootloader" on boards.txt configuration have more space, compile ide, copy  to sd  the hex , burn via ssh without merge bootloader?

...i mean... i've read many forum/tutorial i'm little confused. :)

i'd like:
- have 4k more
- compile arduino ide
- find way upload atmega

thanks.

[solved]
...still in testing here 50 cents:

1) edit boards.txt
(on mac here ---> /applications/arduino.app/contents/resources/java/hardware/arduino/avr   ide 1.5.5)

i add copy of yun board change upload maxium size.

code: [select]

##############################################################

yunb.name=arduino yún - full
yunb.upload.via_ssh=true

yunb.vid.0=0x2341
yunb.pid.0=0x0041
yunb.vid.1=0x2341
yunb.pid.1=0x8041
yunb.upload.tool=avrdude
yunb.upload.protocol=avr109
yunb.upload.maximum_size=32768
yunb.upload.maximum_data_size=2560
yunb.upload.speed=57600
yunb.upload.disable_flushing=true
yunb.upload.use_1200bps_touch=true
yunb.upload.wait_for_upload_port=true

yunb.bootloader.tool=avrdude
yunb.bootloader.low_fuses=0xff
yunb.bootloader.high_fuses=0xd8
yunb.bootloader.extended_fuses=0xfb
yunb.bootloader.file=caterina/caterina-yun.hex
yunb.bootloader.unlock_bits=0x3f
yunb.bootloader.lock_bits=0x2f

yunb.build.mcu=atmega32u4
yunb.build.f_cpu=16000000l
yunb.build.vid=0x2341
yunb.build.pid=0x8041
yunb.build.usb_product="arduino yun"
yunb.build.board=avr_yun
yunb.build.core=arduino
yunb.build.variant=yun
yunb.build.extra_flags={build.usb_flags}



2) restart arduino ide
3) list of boards ---> arduino yún - full
4) compile code, not upload (remember check in preferences option see compile process)
5) wait until compile ended , copy path hex
6) copy hex file sd yun
7) connect via ssh yun (ssh root@your_yun_name.local)
8) cd /mnt/sda1
9) run-avrdude your_compiled_file.hex

obviously no more bootloader in atmega (so can't upload usual via usb ide), but.... restore:

1) compile simple sketch blink (use standard yun board type)
2) in same way find hex , upload sd
3) cd /mnt/sda1
4) merge-sketch-with-bootloader.lua blink.cpp.hex
5) run-avrdude blink.cpp.hex

...in way have again standard bootloader on atmega , blink sketch.
after can upload again ide, usual.



please read this
i have 2 yun , 1 test.
seems ok, can't brick... so... pay attention.



Arduino Forum > Products > Arduino Yún (Moderator: fabioc84) > -- yun without bootloader on atmega is possible? [SOLVED]


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support