From 69fe256333b66ba6814290a0e1fda7cdba61807d Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 30 May 2024 19:58:53 -0400 Subject: [PATCH] starfive visionfive2: let u-boot set device tree name u-boot is able to automatically set the correct device tree name on VisionFive 2 boards by reading their EEPROM since v2023.10. This allows our image to work with either revision of the boards. Reference: https://github.com/u-boot/u-boot/commit/16dbe3d9d45527f67d479535a22dc4054ae93e99 --- starfive/visionfive/v2/README.md | 6 ------ starfive/visionfive/v2/default.nix | 3 --- 2 files changed, 9 deletions(-) diff --git a/starfive/visionfive/v2/README.md b/starfive/visionfive/v2/README.md index 6ec2612..1ab7918 100644 --- a/starfive/visionfive/v2/README.md +++ b/starfive/visionfive/v2/README.md @@ -56,12 +56,6 @@ nix build .# ## Additional configuration Additional configuration may be needed depending on your specific hardware configuration. -### Board rev 1.2A -If you have the 1.2A board revision add the following to your config: -``` nix -hardware.deviceTree.name = - lib.mkDefault "starfive/jh7110-starfive-visionfive-2-v1.2a.dtb"; -``` ### 8GB memory If your board has 8GB of RAM add the following to your config: diff --git a/starfive/visionfive/v2/default.nix b/starfive/visionfive/v2/default.nix index c1042e1..973db41 100644 --- a/starfive/visionfive/v2/default.nix +++ b/starfive/visionfive/v2/default.nix @@ -18,7 +18,4 @@ generic-extlinux-compatible.enable = lib.mkDefault true; }; }; - - hardware.deviceTree.name = - lib.mkDefault "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb"; }