Skip to content

Commit

Permalink
Fix bad QSPI partitioning
Browse files Browse the repository at this point in the history
The QSPI partitioning in the vendor dtb makes it impossible to update
u-boot.
  • Loading branch information
AlexandreTunstall committed Apr 25, 2024
1 parent df3a550 commit d430f8e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/boot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,12 @@
};

hardware.deviceTree.name = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";

hardware.deviceTree.overlays = [
# https://github.com/starfive-tech/linux/pull/99
{
name = "qspi-patch";
dtsFile = ./qspi-patch.dts;
}
];
}
17 changes: 17 additions & 0 deletions modules/boot/qspi-patch.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/dts-v1/;
/plugin/;
/ {
compatible = "starfive,jh7110";
fragment@0 {
target = <&qspi>;
__overlay__ {
nor_flash: flash@0 {
partitions {
spl@0 {
reg = <0x0 0x40000>;
};
};
};
};
};
};

0 comments on commit d430f8e

Please sign in to comment.