jcg_q20-pb-boot.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. --- a/target/linux/ramips/dts/mt7621_jcg_q20.dts
  2. +++ b/target/linux/ramips/dts/mt7621_jcg_q20.dts
  3. @@ -50,22 +50,6 @@
  4. linux,code = <KEY_WPS_BUTTON>;
  5. };
  6. };
  7. -
  8. - ubi-concat {
  9. - compatible = "mtd-concat";
  10. - devices = <&ubiconcat0 &ubiconcat1>;
  11. -
  12. - partitions {
  13. - compatible = "fixed-partitions";
  14. - #address-cells = <1>;
  15. - #size-cells = <1>;
  16. -
  17. - partition@0 {
  18. - label = "ubi";
  19. - reg = <0x0 0x5900000>;
  20. - };
  21. - };
  22. - };
  23. };
  24. &nand {
  25. @@ -79,12 +63,18 @@
  26. partition@0 {
  27. label = "Bootloader";
  28. reg = <0x0 0x80000>;
  29. - read-only;
  30. };
  31. partition@80000 {
  32. - label = "Config";
  33. - reg = <0x80000 0x80000>;
  34. + label = "Nvram";
  35. + reg = <0x80000 0x40000>;
  36. + read-only;
  37. + };
  38. +
  39. + partition@c0000 {
  40. + label = "Bdata";
  41. + reg = <0xc0000 0x40000>;
  42. + read-only;
  43. };
  44. factory: partition@100000 {
  45. @@ -94,40 +84,26 @@
  46. };
  47. partition@180000 {
  48. - label = "kernel";
  49. - reg = <0x180000 0x400000>;
  50. - };
  51. -
  52. - ubiconcat0: partition@580000 {
  53. - label = "ubiconcat0";
  54. - reg = <0x580000 0x1c00000>;
  55. - };
  56. -
  57. - partition@2180000 {
  58. - label = "firmware_backup";
  59. - reg = <0x2180000 0x2000000>;
  60. - };
  61. -
  62. - partition@4180000 {
  63. - label = "rootfs_data_back";
  64. - reg = <0x4180000 0x80000>;
  65. + label = "crash";
  66. + reg = <0x180000 0x40000>;
  67. read-only;
  68. };
  69. - partition@4200000 {
  70. - label = "nvram_config";
  71. - reg = <0x4200000 0x80000>;
  72. + partition@1c0000 {
  73. + label = "crash_log";
  74. + reg = <0x1c0000 0x40000>;
  75. read-only;
  76. };
  77. - ubiconcat1: partition@4280000 {
  78. - label = "ubiconcat1";
  79. - reg = <0x4280000 0x3d00000>;
  80. + partition@200000 {
  81. + label = "kernel";
  82. + reg = <0x200000 0x400000>;
  83. };
  84. - /*
  85. - * last 512 KiB are for the bad block table
  86. - */
  87. + partition@600000 {
  88. + label = "ubi";
  89. + reg = <0x600000 0x7980000>;
  90. + };
  91. };
  92. };