Using the Quartus Project here: https://github.com/jgibbard/de10_nano_clean/tree/with_fpga_leds_and_uart
Follow the instructions here: https://gibbard.me/linux_debian_de10_2025/ but do the following things differently:
Before building the kernel make the following modification to the device tree:
gedit linux/arch/arm/boot/dts/socfpga_cyclone5_de0_nano_soc.dts