OpenWrt Forum Archive

Topic: How to debug 'platform_check_image' failed?

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there

I have a Netgear WNDR4300. It has 128MB of NAND RAM.

However, the BB firmware on the website only gives the user access to 16MB of NAND.

So I pulled the OpenWRT source and followed the buildroot guide and out comes the firmware.

It is named okay "openwrt-ar71xx-nand-wndr4300-ubi-factory.img"

But when I try to sysupgrade I get the platform_check_image failed error. Also similiar issue in Luci.

However when I check the current existing firmware's /tmp/sysinfo I get wndr4300 and NETGEAR WNDR4300 for boardname and model respectively.

I just wonder how can I verify the firmware I have generated is correct for the router other than the filename? (I rather figure this out rather than force flash something that is not kosher and then have to TFTP. A bit pain in the butt since Ethernet boards a bit hard to find in Mac hardware these days wink

Thanks

(Last edited by iamalittlepepper on 12 Jan 2015, 10:35)

This is such a coincidence. My fellow had a similar problem just few hours ago. I am familiar with LuCI. So I found the source code for him. I didn't read it. I just give you a clue.

The platform check is done by a function in /bin/upgrade/platform.sh named platform_check_image. There are also some other functions. But this one I think will give so much info about your problem. I hope this will help.

Wandy

Use a sysupgrade iamge for sysupgrade, not the factory ones.

The discussion might have continued from here.