Skip to content

Instantly share code, notes, and snippets.

@ganboing
Last active June 30, 2025 02:26
Show Gist options
  • Select an option

  • Save ganboing/adeb597595a1b03688f5250b1772665c to your computer and use it in GitHub Desktop.

Select an option

Save ganboing/adeb597595a1b03688f5250b1772665c to your computer and use it in GitHub Desktop.
JH7100 uEnv.txt
# Set initrd_high and fdt_high to -1
# This disables the relocation of them by u-boot in bootx commands
initrd_high=0xffffffffffffffff
fdt_high=0xffffffffffffffff
scriptaddr=0xa0000000
# Disable autoload. Useful for dhcp/tftpboot to download without boot
#autoload=0
# Optimization: Load kernel to DRAM + 2MB
kernel_addr_r=0x80200000
kernel_comp_addr_r=0x88000000
kernel_comp_size=0x8000000
fdt_addr_r=0x90000000
ramdisk_addr_r=0x90200000
# Remove the resvered-memory carried by the vendor U-boot device-tree
# If not cleaned up, it'll be copied over to the linux device-tree, and contaminate it
stale_resv_mem=linux,cma framebuffer@c9000000 framebuffer@d0000000 framebuffer@f9000000 framebuffer@fb000000
rm_stale_resvmem=fdt addr ${fdtcontroladdr}; for resv in ${stale_resv_mem}; do fdt rm /reserved-memory/${resv}; done
# Move DHCP after MMC to speed up booting
boot_targets=mmc0 dhcp
# Fix wrong fdtfile name
fdtfile=starfive/jh7100-starfive-visionfive-v1.dtb
# Fix missing bootcmd
bootcmd=run rm_stale_resvmem; run distro_bootcmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment