Advertisement
Guest User

Untitled

a guest
Apr 5th, 2022
26
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. step 1
  2.  
  3.  
  4. i did this command dtc -I dtb -O dts image-mt7621_linksys_re6500.dtb -o mt7621_linksys_re6500.dts
  5.  
  6. and got these warnings  ✔
  7. mt7621_linksys_re6500.dts: Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch@1f/ports: node has a reg or ranges property, but no unit name
  8. mt7621_linksys_re6500.dts: Warning (interrupt_provider): /palmbus@1E000000/gpio@600: Missing #address-cells in interrupt provider
  9. mt7621_linksys_re6500.dts: Warning (interrupt_provider): /interrupt-controller@1fbc0000: Missing #address-cells in interrupt provider
  10.  
  11. after that i edited the newly created dts file to change the flash size
  12.  
  13. step 2
  14.  
  15. i did this command dtc mt7621_linksys_re6500.dts -o image-mt7621_linksys_re6500.dtb
  16.  
  17. and got these warnings
  18. mt7621_linksys_re6500.dts:499.11-545.7: Warning (unit_address_vs_reg): /ethernet@1e100000/mdio-bus/switch@1f/ports: node has a reg or ranges property, but no unit name
  19. mt7621_linksys_re6500.dts:91.4-20: Warning (clocks_property): /palmbus@1E000000/i2c@900:clocks: cell 0 is not a phandle reference
  20. mt7621_linksys_re6500.dts:104.4-20: Warning (clocks_property): /palmbus@1E000000/i2s@a00:clocks: cell 0 is not a phandle reference
  21. mt7621_linksys_re6500.dts:181.4-25: Warning (clocks_property): /palmbus@1E000000/spi@b00:clocks: cell 0 is not a phandle reference
  22. mt7621_linksys_re6500.dts:397.3-19: Warning (clocks_property): /xhci@1E1C0000:clocks: cell 0 is not a phandle reference
  23. mt7621_linksys_re6500.dts:425.4-25: Warning (clocks_property): /interrupt-controller@1fbc0000/timer:clocks: cell 0 is not a phandle reference
  24. mt7621_linksys_re6500.dts:441.3-19: Warning (clocks_property): /nand@1e003000:clocks: cell 0 is not a phandle reference
  25. mt7621_linksys_re6500.dts:455.3-19: Warning (clocks_property): /ethernet@1e100000:clocks: cell 0 is not a phandle reference
  26. mt7621_linksys_re6500.dts:572.3-44: Warning (clocks_property): /pcie@1e140000:clocks: cell 0 is not a phandle reference
  27. mt7621_linksys_re6500.dts:572.3-44: Warning (clocks_property): /pcie@1e140000:clocks: cell 2 is not a phandle reference
  28. mt7621_linksys_re6500.dts:572.3-44: Warning (clocks_property): /pcie@1e140000:clocks: cell 4 is not a phandle reference
  29. mt7621_linksys_re6500.dts:111.4-33: Warning (dmas_property): /palmbus@1E000000/i2s@a00:dmas: cell 0 is not a phandle reference
  30. mt7621_linksys_re6500.dts:111.4-33: Warning (dmas_property): /palmbus@1E000000/i2s@a00:dmas: cell 2 is not a phandle reference
  31. mt7621_linksys_re6500.dts:574.3-32: Warning (phys_property): /pcie@1e140000:phys: cell 0 is not a phandle reference
  32. mt7621_linksys_re6500.dts:574.3-32: Warning (phys_property): /pcie@1e140000:phys: cell 2 is not a phandle reference
  33. mt7621_linksys_re6500.dts:92.4-25: Warning (resets_property): /palmbus@1E000000/i2c@900:resets: cell 0 is not a phandle reference
  34. mt7621_linksys_re6500.dts:105.4-25: Warning (resets_property): /palmbus@1E000000/i2s@a00:resets: cell 0 is not a phandle reference
  35. mt7621_linksys_re6500.dts:119.4-25: Warning (resets_property): /palmbus@1E000000/systick@500:resets: cell 0 is not a phandle reference
  36. mt7621_linksys_re6500.dts:182.4-25: Warning (resets_property): /palmbus@1E000000/spi@b00:resets: cell 0 is not a phandle reference
  37. mt7621_linksys_re6500.dts:230.4-25: Warning (resets_property): /palmbus@1E000000/gdma@2800:resets: cell 0 is not a phandle reference
  38. mt7621_linksys_re6500.dts:244.4-25: Warning (resets_property): /palmbus@1E000000/hsdma@7000:resets: cell 0 is not a phandle reference
  39. mt7621_linksys_re6500.dts:459.3-34: Warning (resets_property): /ethernet@1e100000:resets: cell 0 is not a phandle reference
  40. mt7621_linksys_re6500.dts:459.3-34: Warning (resets_property): /ethernet@1e100000:resets: cell 2 is not a phandle reference
  41. mt7621_linksys_re6500.dts:496.5-26: Warning (resets_property): /ethernet@1e100000/mdio-bus/switch@1f:resets: cell 0 is not a phandle reference
  42. mt7621_linksys_re6500.dts:570.3-44: Warning (resets_property): /pcie@1e140000:resets: cell 0 is not a phandle reference
  43. mt7621_linksys_re6500.dts:570.3-44: Warning (resets_property): /pcie@1e140000:resets: cell 2 is not a phandle reference
  44. mt7621_linksys_re6500.dts:570.3-44: Warning (resets_property): /pcie@1e140000:resets: cell 4 is not a phandle reference
  45. mt7621_linksys_re6500.dts:576.3-34: Warning (gpios_property): /pcie@1e140000:reset-gpios: cell 0 is not a phandle reference
  46. mt7621_linksys_re6500.dts:634.4-29: Warning (gpios_property): /leds/wifi:gpios: cell 0 is not a phandle reference
  47. mt7621_linksys_re6500.dts:639.4-29: Warning (gpios_property): /leds/power:gpios: cell 0 is not a phandle reference
  48. mt7621_linksys_re6500.dts:648.4-29: Warning (gpios_property): /keys/wps:gpios: cell 0 is not a phandle reference
  49. mt7621_linksys_re6500.dts:654.4-29: Warning (gpios_property): /keys/reset:gpios: cell 0 is not a phandle reference
  50. mt7621_linksys_re6500.dts:76.12-86.5: Warning (interrupt_provider): /palmbus@1E000000/gpio@600: Missing #address-cells in interrupt provider
  51. mt7621_linksys_re6500.dts:414.32-427.4: Warning (interrupt_provider): /interrupt-controller@1fbc0000: Missing #address-cells in interrupt provider
  52.  
  53. step 3
  54.  
  55. i did this command cat vmlinux image-mt7621_linksys_re6500.dtb > linksys_re6500-kernel.bin
  56.  
  57. and got no errors
  58.  
  59. step 4
  60.  
  61. i did this command lzma -e --lzma1=lc=1,lp=2,pb=2 linksys_re6500-kernel.bin linksys_re6500-kernel.lzma
  62.  
  63. and got this error but it created the lzma file with the kernel packed inside
  64. lzma: linksys_re6500-kernel.lzma: No such file or directory
  65.  
  66. step 5
  67.  
  68. i did this command mkimage -A MIPS -O linux -T kernel -C lzma -a 80001000 -e 80001000 -n "Openwrt patched" -d linksys_re6500-kernel.bin.lzma linksys_re6500-kernel.bin
  69.  
  70. and got this in the terminal
  71. Image Name: Openwrt patched
  72. Created: Tue Apr 5 17:15:13 2022
  73. Image Type: MIPS Linux Kernel Image (lzma compressed)
  74. Data Size: 2364264 Bytes = 2308.85 KiB = 2.25 MiB
  75. Load Address: 80001000
  76. Entry Point: 80001000
  77.  
  78.  
  79. then after all that i did this command make image PROFILE="linksys_re6500"
  80. and got this in the terminal
  81.  
  82. Building images...
  83. Parallel mksquashfs: Using 1 processor
  84. Creating 4.0 filesystem on /home/nathan/Desktop/openwrt/openwrt-imagebuilder-21.02.2-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/root.squashfs, block size 262144.
  85. Pseudo file "/dev" exists in source filesystem "/home/nathan/Desktop/openwrt/openwrt-imagebuilder-21.02.2-ramips-mt7621.Linux-x86_64/build_dir/target-mipsel_24kc_musl/root-ramips/dev".
  86. Ignoring, exclude it (-e/-ef) to override.
  87. [===========================================================================================================================================\] 577/577 100%
  88.  
  89. Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
  90. compressed data, compressed metadata, compressed fragments,
  91. compressed xattrs, compressed ids
  92. duplicates are removed
  93. Filesystem size 2710.18 Kbytes (2.65 Mbytes)
  94. 37.32% of uncompressed filesystem size (7261.26 Kbytes)
  95. Inode table size 5508 bytes (5.38 Kbytes)
  96. 19.96% of uncompressed inode table size (27590 bytes)
  97. Directory table size 8046 bytes (7.86 Kbytes)
  98. 47.48% of uncompressed directory table size (16947 bytes)
  99. Number of duplicate files found 83
  100. Number of inodes 827
  101. Number of files 570
  102. Number of fragments 16
  103. Number of symbolic links 184
  104. Number of device nodes 1
  105. Number of fifo nodes 0
  106. Number of socket nodes 0
  107. Number of directories 72
  108. Number of ids (unique uids + gids) 1
  109. Number of uids 1
  110. unknown (0)
  111. Number of gids 1
  112. unknown (0)
  113. 4617+1 records in
  114. 4617+1 records out
  115. 2364328 bytes (2.4 MB, 2.3 MiB) copied, 0.00619598 s, 382 MB/s
  116. 5420+1 records in
  117. 5420+1 records out
  118. 2775226 bytes (2.8 MB, 2.6 MiB) copied, 0.00746799 s, 372 MB/s
  119. padding image to 004e7000
  120. padding image to 004e8000
  121. padding image to 004f0000
  122. padding image to 00500000
  123.  
  124. Calculating checksums...
Advertisement
RAW Paste Data Copied
Advertisement