#AmiKit config.txt for booting Emu68 with PiStorm32-lite or PiStorm
#14-January-2024
# 2026-10-15: on Emu68 1.1 beta 1 for MultibootOS (the 1.0.4 file is
# config_amikit.txt.pre-1.1); AmiKit has VideoCore 1.9 + VC4_LEGACY_ID for it

disable_splash=1
arm_64bit=1

# Limit total memory size to 2GB for now. Necessary for CM4/Pi4
total_mem=2048

# Default boot delay is one second. Uncomment this line if you want zero second delay
boot_delay=0

# This is important so that GPU firmware does not add its overlay icons on the screen
# If you also want to disable speed throttling in case of undervoltage, set this value to 2
avoid_warnings=1

# Force HDMI signal even if nothing is connected
hdmi_force_hotplug=1

# Limit GPU memory a little, force 1080p video mode. Comment out the hdmi_mode line if your monitor
# does not like it. For list of all modes please refer to RasPi documentation
# https://www.raspberrypi.com/documentation/computers/config_txt.html#hdmi-mode
gpu_mem=32
hdmi_group=2
hdmi_mode=82

# Experimental 2560x1440 50Hz mode for RaspberryPi which you can give a try. If you do, comment out the hdmi_mode above
#hdmi_group=2
#hdmi_mode=87
#hdmi_cvt=2560 1440 50 3 0 0 1
#max_framebuffer_width=2560
#max_framebuffer_height=1440
#hdmi_pixel_freq_limit=400000000

[pi02]
# Enable the options below to increase speed of your Raspberry Pi Zero 2 W to 1.3GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=6
#arm_freq=1300
#core_freq=550
#sdram_freq=550

[pi3]
# Enable the options below to increase speed of your Raspberry Pi 3 to 1.8GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=4
#arm_freq=1800
#core_freq=500
#sdram_freq=600

[pi4]
# Enable the option below, if you have Pi4B with 8GB RAM or a 2GB or 4GB board with the extra components, to safely overclock it from 1.5GHz to 1.8GHz
# Note that arm_freq option, if enabled below, has a higher priority than this option
arm_boost=1

# Enable the options below to increase speed of your Raspberry Pi 4 to 2.0GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=6
#arm_freq=2000

[cm4]
# Enable the options below to increase speed of your Raspberry Pi Compute Module 4 to 2.0GHz
# Keep in mind this may render your Raspberry Pi unstable and eventually void the warranty with "force_turbo=1" enabled!
# A fan and heatsinks are strongly recommended!
#force_turbo=1
#over_voltage=6
#arm_freq=2000

[all]
# PiStorm ID
gpio=0-27=ip
gpio=0-27=pu

# The kernels in KERNEL/ (Emu68 1.1 beta 1), picked the way MultibootOS's
# other configs do. Each loads AmiKit's own ROM (+KickstartROM/kick.rom:
# 3.2.3, 47.115, since AmiKit's own update installed it).
# PiStorm32-lite
[gpio24=0]
kernel=kernel/Emu68-pistorm32lite
initramfs +KickstartROM/kick.rom
# PiStorm16
[gpio24=1]
kernel=kernel/Emu68-pistorm16
initramfs +KickstartROM/kick.rom
# PiStorm (classic)
[gpio17=0]
kernel=kernel/Emu68-pistorm
initramfs +KickstartROM/kick.rom
[all]

# Emu68 1.1 ignores cmdline.txt's sd.unit0=rw and emmc.unit0=rw: these
# overlays let the Amiga write to this partition (the boot menu writes
# CONFIG.TXT here). brcm-sdhc.device on every Pi, brcm-emmc.device on a Pi 4.
[all]
dtoverlay=sdhc,unit0=rw
[pi4]
dtoverlay=emmc,unit0=rw
[all]

# Classic PiStorm (A500) with a Pi 4: the clocks pinned at stock speed
# (no over_voltage: with force_turbo it would set the warranty bit).
[pi4]
[gpio17=0]
arm_boost=0
force_turbo=1
core_freq=500
[all]

# Last: the A1200's PiStorm32-lite after a reboot from the boot menu (its
# FPGA still loaded, GPIO4 low) boots its own kernel, whatever GPIO17 reads.
[gpio4=0]
kernel=kernel/Emu68-pistorm32lite
initramfs +KickstartROM/kick.rom
[all]
