Hi All, I hope I can get some help here.
I have been looking through a number of threads on this forum regarding using the switch to change the firmware used NOR-NAND on my AR300M. I posted here as it appears to be one of the most recent treads on the issue.
Referring to the article on GL-AR300M Series - GL.iNet Docs Method 1 has been working but inconvenient so I was working on trying to get method 2 to work. I looked at some post regarding updating u-boot (done this many times on other devices) so I was comfortable in attempting this. I did backup my working version, but something went wrong, maybe picked up the wrong one on pepe2k site.
Until this point the device was working perfectly (except switching firmware as mentioned). I was left with a device not bootable with a corrupted u-boot. I do have an SPI Flash programmer so I immediately copied the flash memory with the corrupted u-boot and attempted to overwrite it with the working u-boot to the flash memory. Restarting it I did have a working u-boot and updating the firmware both NOR and NAND appeared to work looking at the lights on the device flashing during the upgrade but it won’t boot to either. So what I am left with now is just u-boot and an invalid IP address. I am not familiar enough with using hex editor so I figure this is what my problem is. My regret is not making a copy of the flash before I started.
I have attempted trying a serial update but I am not getting any other activity besides u-boot. Like I said I have a copy of my flash and a working u-boot and I am hoping someone can help with a guide that will help, or help me repair my flash.
Thank you in advance. Also if I am missing a method to try please let me know.
A side note and which I might have been able to avoid getting myself in this trouble to start with. This is the only device I can’t seem to access using netconsole. I did see in another thread that someone made a similar comment on this. If anyone can share how many seconds to hold reset to get to netconsole on this device would be also helpful as I still an unclear of the version of u-boot I am running.
The pepe2k site is not the place to get GL-inet uboot. The switch command was something GL put into their version. Please see my post here:
And the next few comments. To get into uboot http server, hold the reset while powering on (or uboot rebooting) it will flash 5 times then release the lights should all flash and uboot will start http.
If you are in uboot console you can just run http and it will start it (ctrl-c to quit)
Much appreciated with that information. In fact I have read your post on this and have bookmarked this to come back too after I fix my primary problem.
Maybe my explanation wasn’t quite right. I can access the uboot server on the device and can go through the process of updating both NAND and NOR firmware. I have already reverted to the uboot version that was working before I made this mistake. It just isn’t booting from either NOR or NAND.
My side issue was getting to netconsole. On other devices I can get to this holding the reset while power on between 7-9 seconds. I was looking at accessing this to run httpd from there to monitor the firmware updating as it appears to be working, then I can also access the console tools to see if I can recover to my previous state.
What I am hopeful of is having my copy of the flash memory that has the corrupted uboot and the working uboot to reprogram my flash memory. I have a programmer and familiar enough with the copying and writing. I have attempted to overwrite with the working uboot and it seems that uboot is the only part I can get working.
This is my point I can’t access netconsole to see the output. I can see only as using serial TTL connection and what I can see is not readable data.
You can see that I can access the uboot server and also from the illegible data that it is writing to the flash, but that is it, there is no further progress on booting.
I tested also on other GL devices and can access netconsole. Also to note when the device was working correctly I was also not able to access netconsole.
Appreciate your further input but this has been my problem. I get garbled illegible output as the screen shot above with serial connection. I can stop the boot but I am not getting the uboot prompt. There is nothing I can do with a serial connection either. It seems all I can get to is the uboot web interface. At this stage I think it needs to be fixed with flash programming.