How can I burn the bootloader onto atmega328 (not atmega328p)?
How can I burn the bootloader onto ATmega328 (not ATmega328P)?

As Juarj commented, For a variety of standalone AVR microcontrollers you can add new &quot;cores&quot; to the Arduino IDE using it's board manager.
This provides the Arduino IDE with information about your specific chip and this means the IDE can instruct the avrdude program appropriately and select a bootloader image that was written to support your specific chip
The Minicore documentation says it supports all variants of ATmega328
Other well-known examples of cores for bare AVR microcontroller chips  include ATtinycore which supports a wide range of ATtiny microcontroller chips like the popular ATtiny85.