Cannot figure out how to install TD-W8970

let's start.
usb pen drive in the pc
1 Get the USB stick formatted as msDOS/vFAT
2 copy sysupgrade to the usb
3 Create a 1310720 bytes block-size slice of the firmware file using dd

dd if=openwrt-18.06.5-lantiq-xrx200-TDW8970-sysupgrade.bin of=openwrt-18.06.5-lantiq-xrx200-TDW8970-sysupgrade-1.bin bs=1310720 skip=1

4 Insert the USB stick into the router and backup partitions

cat /dev/mtd0 > /var/usbdisk/sda1/mtd0
cat /dev/mtd1 > /var/usbdisk/sda1/mtd1
cat /dev/mtd2 > /var/usbdisk/sda1/mtd2
cat /dev/mtd3 > /var/usbdisk/sda1/mtd3
cat /dev/mtd4 > /var/usbdisk/sda1/mtd4
cat /dev/mtd5 > /var/usbdisk/sda1/mtd5
cat /dev/mtd6 > /var/usbdisk/sda1/mtd6

now to flash the router do:

cat /var/usbdisk/sda1/openwrt-18.06.5-lantiq-xrx200-TDW8970-sysupgrade.bin > /dev/mtdblock1
cat /var/usbdisk/sda1/openwrt-18.06.5-lantiq-xrx200-TDW8970-sysupgrade-1.bin > /dev/mtdblock2

reboot

1 Like

Linux runs on the router, so when you log in the telnet shell, you're using Linux. I think that the stock firmware includes a /tmp directory which is a RAM disk, and the dd command.

Another method to prepare the file would be to use any Windows hex editor application to remove the first 1310720 bytes of the file.

The commands copy files between a USB flash drive plugged into the router to the router's internal flash. First you would copy out the factory contents as a backup, then copy in the new OS.

1 Like

Hey, this is redsoviet since I have been locked out from posting since I've posted my maximum today.

What commands am I supposed to enter? Nobody has told me. The dd commands are supposed to be done when it isn't plugged into the router, but I am not on Linux so I cannot use the dd commands.

You're listing it as .image when my file is a .bin

I don't know how to do any of that. I don't know what commands I am supposed to be using.

@redsoviet / @heavenswarmth, welcome to the community!

Do not do this, as it [obviously] attempts to violate the "temporary termination" portion of the Terms of Service. One reasons for the temporary lock is for the safety of the community from SPAM and other advertising, vandalism, etc. - often sent from new accounts. Now technically, you're flooding the thread; and your first account is not building its community posting/reading "reputation".

It's common that others may not respond to you until the time has expired anyways. Please be patient in the future.

You were told in thread no. 21.

I would stop asking for Linux commands to type, then.

  • Run a Linux distribution's LiveCD
  • Here's a tutorial on using a Windows-based Hex editor instead. The example uses the first 512 bytes; but I believe for your purposes you'd use 1310720. There's also another dd example:

I think that may have been an honest mistake (or pseudocode).

Continuing to post incessantly that you don't know anything or don't know what syntax to enter - won't get your device working faster.

https://linux.die.net/man/1/dd

EDIT: You ignored @mk24 - when he noted that you could have the necessary Linux command installed on the router, hence you are "using Linux".

2 Likes