ubifs-dual-core.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. diff --git a/arch/riscv/boot/dts/starfive/dubhe_fpga_dual.dts b/arch/riscv/boot/dts/starfive/dubhe_fpga_dual.dts
  2. index 527e69bb0798..5a22cc0b30ad 100644
  3. --- a/arch/riscv/boot/dts/starfive/dubhe_fpga_dual.dts
  4. +++ b/arch/riscv/boot/dts/starfive/dubhe_fpga_dual.dts
  5. @@ -11,7 +11,7 @@ aliases {
  6. };
  7. chosen {
  8. - bootargs = "console=ttySIF0,115200 earlycon=sbi";
  9. + bootargs = "console=ttySIF0,115200 earlycon=sbi root=ubi0:starfive-dubhe-rootfs ubi.mtd=4 rw rootfstype=ubifs rootwait";
  10. };
  11. cpus {
  12. @@ -40,6 +40,48 @@ mmc@0 {
  13. &qspi1 {
  14. status = "okay";
  15. +
  16. + flash@0 {
  17. + compatible = "jedec,spi-nor";
  18. + reg = <0>;
  19. + spi-max-frequency = <20000000>;
  20. + m25p,fast-read;
  21. + spi-tx-bus-width = <1>;
  22. + spi-rx-bus-width = <1>;
  23. +
  24. + partitions {
  25. + compatible = "fixed-partitions";
  26. + #address-cells = <1>;
  27. + #size-cells = <1>;
  28. +
  29. + partition@0 {
  30. + reg = <0x000000 0x10000>;
  31. + label = "boot copier";
  32. + /*read-only;*/
  33. + };
  34. +
  35. + partition@10000 {
  36. + reg = <0x10000 0x10000>;
  37. + label = "boot jump";
  38. + /*read-only;*/
  39. + };
  40. +
  41. + partition@20000 {
  42. + reg = <0x20000 0x10000>;
  43. + label = "DTB";
  44. + };
  45. +
  46. + partition@30000 {
  47. + reg = <0x30000 0x1700000>;
  48. + label = "FW_payload (OpenSBI and Linux)";
  49. + };
  50. +
  51. + partition@1730000 {
  52. + reg = <0x1730000 0x68D0000>;
  53. + label = "Rootfs";
  54. + };
  55. + };
  56. + };
  57. };
  58. &uart0 {