Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- step 1
- i did this command dtc -I dtb -O dts image-mt7621_linksys_re6500.dtb -o mt7621_linksys_re6500.dts
- and got these warnings ✔
- 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
- mt7621_linksys_re6500.dts: Warning (interrupt_provider): /palmbus@1E000000/gpio@600: Missing #address-cells in interrupt provider
- mt7621_linksys_re6500.dts: Warning (interrupt_provider): /interrupt-controller@1fbc0000: Missing #address-cells in interrupt provider
- after that i edited the newly created dts file to change the flash size
- step 2
- i did this command dtc mt7621_linksys_re6500.dts -o image-mt7621_linksys_re6500.dtb
- and got these warnings
- 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
- mt7621_linksys_re6500.dts:91.4-20: Warning (clocks_property): /palmbus@1E000000/i2c@900:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:104.4-20: Warning (clocks_property): /palmbus@1E000000/i2s@a00:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:181.4-25: Warning (clocks_property): /palmbus@1E000000/spi@b00:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:397.3-19: Warning (clocks_property): /xhci@1E1C0000:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:425.4-25: Warning (clocks_property): /interrupt-controller@1fbc0000/timer:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:441.3-19: Warning (clocks_property): /nand@1e003000:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:455.3-19: Warning (clocks_property): /ethernet@1e100000:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:572.3-44: Warning (clocks_property): /pcie@1e140000:clocks: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:572.3-44: Warning (clocks_property): /pcie@1e140000:clocks: cell 2 is not a phandle reference
- mt7621_linksys_re6500.dts:572.3-44: Warning (clocks_property): /pcie@1e140000:clocks: cell 4 is not a phandle reference
- mt7621_linksys_re6500.dts:111.4-33: Warning (dmas_property): /palmbus@1E000000/i2s@a00:dmas: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:111.4-33: Warning (dmas_property): /palmbus@1E000000/i2s@a00:dmas: cell 2 is not a phandle reference
- mt7621_linksys_re6500.dts:574.3-32: Warning (phys_property): /pcie@1e140000:phys: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:574.3-32: Warning (phys_property): /pcie@1e140000:phys: cell 2 is not a phandle reference
- mt7621_linksys_re6500.dts:92.4-25: Warning (resets_property): /palmbus@1E000000/i2c@900:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:105.4-25: Warning (resets_property): /palmbus@1E000000/i2s@a00:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:119.4-25: Warning (resets_property): /palmbus@1E000000/systick@500:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:182.4-25: Warning (resets_property): /palmbus@1E000000/spi@b00:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:230.4-25: Warning (resets_property): /palmbus@1E000000/gdma@2800:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:244.4-25: Warning (resets_property): /palmbus@1E000000/hsdma@7000:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:459.3-34: Warning (resets_property): /ethernet@1e100000:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:459.3-34: Warning (resets_property): /ethernet@1e100000:resets: cell 2 is not a phandle reference
- mt7621_linksys_re6500.dts:496.5-26: Warning (resets_property): /ethernet@1e100000/mdio-bus/switch@1f:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:570.3-44: Warning (resets_property): /pcie@1e140000:resets: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:570.3-44: Warning (resets_property): /pcie@1e140000:resets: cell 2 is not a phandle reference
- mt7621_linksys_re6500.dts:570.3-44: Warning (resets_property): /pcie@1e140000:resets: cell 4 is not a phandle reference
- mt7621_linksys_re6500.dts:576.3-34: Warning (gpios_property): /pcie@1e140000:reset-gpios: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:634.4-29: Warning (gpios_property): /leds/wifi:gpios: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:639.4-29: Warning (gpios_property): /leds/power:gpios: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:648.4-29: Warning (gpios_property): /keys/wps:gpios: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:654.4-29: Warning (gpios_property): /keys/reset:gpios: cell 0 is not a phandle reference
- mt7621_linksys_re6500.dts:76.12-86.5: Warning (interrupt_provider): /palmbus@1E000000/gpio@600: Missing #address-cells in interrupt provider
- mt7621_linksys_re6500.dts:414.32-427.4: Warning (interrupt_provider): /interrupt-controller@1fbc0000: Missing #address-cells in interrupt provider
- step 3
- i did this command cat vmlinux image-mt7621_linksys_re6500.dtb > linksys_re6500-kernel.bin
- and got no errors
- step 4
- i did this command lzma -e --lzma1=lc=1,lp=2,pb=2 linksys_re6500-kernel.bin linksys_re6500-kernel.lzma
- and got this error but it created the lzma file with the kernel packed inside
- lzma: linksys_re6500-kernel.lzma: No such file or directory
- step 5
- 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
- and got this in the terminal
- Image Name: Openwrt patched
- Created: Tue Apr 5 17:15:13 2022
- Image Type: MIPS Linux Kernel Image (lzma compressed)
- Data Size: 2364264 Bytes = 2308.85 KiB = 2.25 MiB
- Load Address: 80001000
- Entry Point: 80001000
- then after all that i did this command make image PROFILE="linksys_re6500"
- and got this in the terminal
- Building images...
- Parallel mksquashfs: Using 1 processor
- 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.
- 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".
- Ignoring, exclude it (-e/-ef) to override.
- [===========================================================================================================================================\] 577/577 100%
- Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
- compressed data, compressed metadata, compressed fragments,
- compressed xattrs, compressed ids
- duplicates are removed
- Filesystem size 2710.18 Kbytes (2.65 Mbytes)
- 37.32% of uncompressed filesystem size (7261.26 Kbytes)
- Inode table size 5508 bytes (5.38 Kbytes)
- 19.96% of uncompressed inode table size (27590 bytes)
- Directory table size 8046 bytes (7.86 Kbytes)
- 47.48% of uncompressed directory table size (16947 bytes)
- Number of duplicate files found 83
- Number of inodes 827
- Number of files 570
- Number of fragments 16
- Number of symbolic links 184
- Number of device nodes 1
- Number of fifo nodes 0
- Number of socket nodes 0
- Number of directories 72
- Number of ids (unique uids + gids) 1
- Number of uids 1
- unknown (0)
- Number of gids 1
- unknown (0)
- 4617+1 records in
- 4617+1 records out
- 2364328 bytes (2.4 MB, 2.3 MiB) copied, 0.00619598 s, 382 MB/s
- 5420+1 records in
- 5420+1 records out
- 2775226 bytes (2.8 MB, 2.6 MiB) copied, 0.00746799 s, 372 MB/s
- padding image to 004e7000
- padding image to 004e8000
- padding image to 004f0000
- padding image to 00500000
- Calculating checksums...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement