Hi all. I want to install openwrt in Router Comfast wr617AC. This device has the characteristics:
MT7628DAN + MT7612EN
16 MB flash
64 MB Ram
4 ports 100Mb/s ethernet (1 WAN + 3 LAN)
but i do not know which firmware it could be? As I see on the openwrt website, it could be the TOTOLINK LR1200, but it has 5 ports and only 8 MB flash. Could i use this firmware?
attached images of the device
It looks like you're already running a vendor modified OpenWrt, so they should provide you with a GPL dump if you request it from them. Beyond that, you'll need to check actual hardware details to have support added. You cannot just try any image for models with the same SoC or amount of LAN ports.
test with the firmware of router totolink lr1200, everything works fine but only detects 8MB in flash and device has 16MB. How cloud i change the DTS file for that 16MB is detected?
What I did was to copy the closest dts, in master, and rename it for my device. Then edit the remaining files.
For the Totolink, these were the pertinent files
I would also review master on git for the netgear 6120
Then build and use u-boot option 4 to test the initramfs image and check the leds and port numbering. Adjust your build if necessary. Once the image tests correctly, then install.
If possible, revert to the original firmware and review the kernel log (dmesg). It will contain the manufacturers partitioning. It is important to preserve u-boot, u-boot-env at the beginning and the firmware at the end.
[ 0.670000] Creating 5 MTD partitions on "spi32766.0":
[ 0.680000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.680000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.690000] 0x000000040000-0x000000050000 : "factory"
[ 0.700000] 0x000000050000-0x0000007b0000 : "firmware"
[ 0.740000] 2 uimage-fw partitions found on MTD device firmware
[ 0.750000] 0x000000050000-0x00000016a472 : "kernel"
[ 0.750000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.770000] 0x00000016a472-0x0000007b0000 : "rootfs"
[ 0.770000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.780000] mtd: device 5 (rootfs) set to be root filesystem
[ 0.790000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.800000] 0x000000750000-0x0000007b0000 : "rootfs_data"
[ 0.800000] 0x0000007b0000-0x0000007f0000 : "configs"
How could I change the dts file with this information?
Comfast's dmesg additionally has "kernel" "rootfs" and "config" partitions that I think are overlays and seem to match the link above. Note the size/erasesize are different in the link.