OpenWrt Forum Archive

Topic: Belkin N600 F7D8302 v1 flash then unsuccessful boot

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

Hello!

Trying to flash a belkin router with the openwrt brcm47xx profile and it fails to boot. I'm new to all this and would appreciate some advice.

I am connected through serial on the router and can use ethernet to upload files via tftpd.

Here is a paste of the boot log: pastebin.com/Fq2xPSgB. It covers the cfe boot, cfe flash to custom image and attempt to boot the custom image. It also covers return to Manufacturer's firmware and normal boot.(Pretty sure it has information of the RAM and flash size).

It seems the problem is some kind of "magic" that doesn't match up. Can I modify the magic myself? lol throw my magician hat on?

I have no idea what to do - but I'm willing to try around and understand.

Cheers.

Modifying the trx magic is not the only modification to be done, since you are using an unsupported device. You'll need to install an linux os if you haven't yet or use a virtual machine for windows to run an linux os. There a few openwrt wiki documents to go through before starting development on your device. If your interested i'll supply you some links. Currently i'm doing my own for my little Belkin also the F7D4302 basically the same firmware " F7D4302-8302_WW_1.00.28.bin file. I am in the stages of nearly completing the firmware for my mine, but the magic value is incorrect for both Assume magic 20091006 and Current magic 30524448. You'll understand more if you go through the whole process of development and research in orded to correct mistakes. I have to place the correct values in for mine and compile run tests for stablity setup gpios, usb ports, the wireless seem to work fine. If all goes well then I feel that there really shouldn't be a patch but maybe remove that "30524448" so a person can place the trx magic value in or correct the values based on some successful builds.

Hey - thanks for answering!
My main os is Kali Linux. I have a degree in computer science and I'm sure I could use my knowledge and learn from you if you're willing to help.
I'm a bit unfamiliar with lower level tinkering like this but as I said I'm willing to try.

I don't even know where to look for the Magic value... I can start a hex editor and look at the bin's files but since I don't know what i'm looking for that's pretty much in vain.

Which references would you recommend exactly to start developing for my router? Cheers.

Your thoughts on the hex is correct as to i have found out myself now putting in the correct value, compiling without errors, figuring out the proper uploading process which have worked is the miniserver or atftp testing but having the correct value does really help. My image that i done so far has that problem with it and maybe after today should be worked out my last image had that problem still and an mtd issue on the loader part. Here is an an example output of the mtd. You notice the erasesize that maybe the magic value? Have rebuild and reconfigure some parameters and test.

root@OpenWrt:/* cat /proc/mtd
dev:          size        erasersize  name
mtd0: 00030000  00010000   "boot"
mtd1: 007c0000  00010000   "firmware"
mtd2: 000008f0   000008f0    "loader"
mtd3: 001132f4   00010000   "linux"
mtd4: 006ac400  00010000   "rootfs"
mtd5: 00430000  00010000   "rootfs_data"
mtd6: 00010000  00010000   "nvram"

I'm not a developer and just started doing this as a hobby and for knowledgeable purposes but have been using linux for a few years. I don't spend a huge amount of time as if i were an actual developer would be, but i do give all those people credit for what they have done to create such wonderful way for people of all walks of life to be here to share knowledge and assist one another due to open source and their education, documentations for learning on their own.

The links should get you started especially the add new device.

https://wiki.openwrt.org/doc/howto/buildroot.exigence
https://wiki.openwrt.org/doc/devel/feeds
https://wiki.openwrt.org/doc/techref/buildroot
https://wiki.openwrt.org/doc/devel/add.new.device

Good Day, Freeman01

The discussion might have continued from here.