Sorry for posts one after another, but need to stress out one more thing.
In some moment i realised that it still does not work (Arduino program uploaded without good config.h applied), so I tried to apply config - and it failed somewhere complaining about something. I didn’t try to investigate since there are ready to use hex files on Lulzbot page.
Anyway, long-story-short: avrdude for some reason didn’t erase chip before flashing (?!), but adding -e swich forced it, so complete command is:
avrdude -v -patmega2560 -cusbasp -b 115200 -P /dev/ttyACM0 -D -Uflash:w:Marlin_Mini_SingleExtruder_1.1.9.28_193d1f804.hex:i -v -e
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "/etc/avrdude.conf"
User configuration file is "/home/san/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0
Using Programmer : usbasp
Overriding Baud Rate : 115200
avrdude: seen device from vendor ->www.fischl.de<-
avrdude: seen product ->USBasp<-
AVR Part : ATmega2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : usbasp
Description : USBasp, http://www.fischl.de/usbasp/
avrdude: auto set sck period (because given equals null)
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e9801 (probably m2560)
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: erasing chip
avrdude: auto set sck period (because given equals null)
avrdude: reading input file "Marlin_Mini_SingleExtruder_1.1.9.28_193d1f804.hex"
avrdude: writing flash (91006 bytes):
Writing | ################################################## | 100% 43.45s
avrdude: 91006 bytes of flash written
avrdude: verifying flash memory against Marlin_Mini_SingleExtruder_1.1.9.28_193d1f804.hex:
avrdude: load data flash data from input file Marlin_Mini_SingleExtruder_1.1.9.28_193d1f804.hex:
avrdude: input file Marlin_Mini_SingleExtruder_1.1.9.28_193d1f804.hex contains 91006 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 23.34s
avrdude: verifying ...
avrdude: 91006 bytes of flash verified
avrdude: safemode: lfuse reads as FF
avrdude: safemode: hfuse reads as D8
avrdude: safemode: efuse reads as FD
avrdude: safemode: Fuses OK (E:FD, H:D8, L:FF)
avrdude done. Thank you.
Also, there are some info online to change hfuse from D8 to D9 - disable BOOTRST.
If BOOTRST fuse is present, the AVR goes to 32256 at Reset. The Bootloader looks to see if anything is happening. And restarts at 0.