Alternative to mtd

Hi
By mistake, I flashed a firmware without "mtd"

Is tehre an alternative to reflash the device from the cli with a proper firmware ? Would dd work ? What would be the correct operation ? (I hardly will have access to the device physically, so can not push the "reset" button and upgrade from uboot)

Thank you

What device?

my openwrt devices. Not sure I understand the question

What device make and model and OpenWrt version? Is device bootable or it is in the air and you dunno what to do?

1 Like

Same applies to your initial post...

1 Like

The device in Comfast CF-WR650AC v2. Not sure why it matters but here you are.

The device works properly with a recent manually built firmware (from git : Powered by LuCI Master (25.184.61053~5780be0) / OpenWrt SNAPSHOT (r30279-39580b1d7b)) . but I forget to include "mtd" in the built.
So I am now searching a way to re-flash it with a proper firmware , knowing that mtd is not currently available on the device.

1 Like

mtd is a userspace binary so you could just rebuild, find mtd in the bin...packages directory and copy it to your installed build.

2 Likes

Or try the mtd packages provided by Openwrt repo.

Use official build next time ?

2 Likes

You can download mtd package for respective architecture.
Sun ubus call system board
https://downloads.openwrt.org/releases/ -> select release (eg 23.05.5) -> select architecture/subarchitecture and get mtd...ipk package.
Copy link to wget comand line

cd /tmp 
wget https://downloads.openwrt.org/releases/11.2.3/potato/red/packages/mtd-99.99.potatoarch.ipk
opkg install mtd<tab><tab>

EDIT: as said in previous post - stick with pre-built release unless you have exotic requirements.

1 Like

Not sure where to find the mtd.

I build the new firmware. THen where is the mtd binary ?

Sorry dude, we're not going to spoon feed you, you need to do some clicking on your own...

@brada4 pretty much already said "here comes the birdy....".

1 Like

very helpful

Try to read answers instead of bashing everyone trying to help.

1 Like

Feel free to solve your issue on your own..

Good to see you again, I missed so much your polite and friendly help

High five.
I did the same as a youngster!

Flash over serial is the only way.

Edit. Or if your flash is large enough install MTD as others have stated here already.
In my case back in the days I did this mistake on a 4mb device and did not had have the luxury of adding stuff later so I needed to flash over serial.

1 Like

Most likely not, but if OP can't be arsed to do some work on their own, serial flashing would be like attempting a pole jump using tooth picks.

3 Likes

Buy the premium support package.

2 Likes

You can install single use packages to /tmp , like on 8x128 device

It was 2010 or something on these tiny tp travel routers. Iirc 4/64 MB or something.
So at least I learned to solder and to flash over serial :smiling_face_with_sunglasses:

1 Like