Hi, I think i bricked my AR300M. I flashed the new Uboot via web console but the switch still did not work. So as alzhao described I cleaned all env parameters (all means all, i cleaned ipaddr, dlf, blf, everything).
Now even the Unbrick method via 192.168.1.1 doesn’t work anymore. The device still seems to be alive, though, the LEDs still blink at startup. But even via UART I only get unreadable letters, no matter what baud rate I choose.
Then erased all environment vars using erase 0x9f040000 +0x10000 reset
both run bootcmd
and run blf
boot correctly into NAND and NOR firmware respectively.
But during normal startup / reset I always get the following error: Device 0 bad blocks: 07fc0000 07fe0000 Found ART,Checking calibration status... Device have calibrated,Checking device test status... Device haven't tested. Please test device in calibration firmware... Booting image at: 0x9Fed0000 ## Booting image at 9fed0000 ... Bad Magic Number
I had the same problem as @m.vgunten and needed to mark the unit as tested for it to boot up by default. The commands listed worked. Thanks
I also have the problem that boot_dev does not work with the switch with the case on. As noted by @vigans the switch has three positions and without the case on I can put the switch into the right position to boot NOR.
Am I reading correctly that @mkroes erased all the uboot variables and that fixed the switch to work with boot_dev and the case on?
I am reluctant to try this without confirmation. Wouldn’t I have to re-input all the uboot environment settings for uboot to boot the firmware again?
Hi nopro404
Regarding the three switch position: my simple hack was using a file to have all three switch positions working
And when erasing all the uboot variables the defaults will be set on next boot (you can have a look at the source code GitHub - gl-inet/uboot-for-qca95xx: ar300m uboot source - src/include/configs/board953x.h).
Regards Martin
Well, I want to add that the new Uboot is way better than the NAND only version shipped with my AR300M. No MTU issues - uploading the firmware is now flawless on Windows. This is the way it should have been on release. If any current AR300M user has this old Uboot, I would highly suggest not testing unknown images on your device without upgrading Uboot to this version.
I did not even solder the board. I paid $1 at the local electronics shop for the UART and 3 female to male breadboard cables and just placed the pins in the provided holes on the board. Worked fine.
How can I do this without going to u-boot console?
What does it actually do?
What are this addresses?
Or can I at least enable netconsole in this u-boot?
EDIT: Not needed anymore, I’ve bought USB-TTL converter and did it from u-boot console.
Here? Where? There is no attachment and no link, and as others have mentioned - the file on github is old. It does not support NAND flashing from TFTP (no “nlf” command defined per documentation in https://docs.gl-inet.com/en/2/hardware/ar300m/ ) and the mode switch is not usable without physical case modifications.