On my new AR-300M with updated uboot no NAND flash is shown. Could it be the devicde is broken?
U-Boot 1.1.4-g36de7573 (Mar 17 2017 - 14:08:04)
DRAM: 128 MB
Nor Flash: 16 MB, sector count = 256
*** Warning *** : PCIe WLAN Module not found !!!
Protect off 9F040000 ... 9F04FFFF
Un-Protecting sectors 4..4 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erasing flash...
First 0x4 last 0x4 sector size 0x10000 4
Erased 1 sectors
Writing to Flash... write addr: 9f040000
done
Protecting sectors 4..4 in bank 1
Protected 1 sectors
Warning: Bootlimit (3) exceeded. Using altbootcmd.
Un-Protect Flash Bank # 1
Hit any key to stop autoboot: 0
ath>
Furthermore “run nlf” is missing, so I have no chance to flash NAND Firmware:
ath> printenv
bootargs=board=CUS531-NAND console=ttyS0,115200 ubi.mtd=5,2048 root=/dev/mtdblock8 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),128k(reserved),64k(art);spi0.1:2m(kernel),20m(rootfs),106m(data),22m@0x0(firmware) rootfstype=squashfs,jffs2 noinitrd
bootcmd=if nand bad; then nboot 0x81000000 0 || run blf; else run blf; fi
bootdelay=1
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
ipaddr=192.168.1.1
serverip=192.168.1.2
loadaddr=0x80800000
dir=
altbootcmd=run blf
blf=bootm 0x9f050000 || run lf; boot
dlf=if ping 192.168.1.2; then echo ok; elif ping 192.168.1.2; then echo ok; elif ping 192.168.1.2; then echo ok; elif echo ping 192.168.1.2; then echo ok; elif echo ping 192.168.1.2; then echo ok; else echo ping finally failed; fi; tftp 0x81000000 openwrt-gl-ar300m-ubi.img && nand erase && nand write $fileaddr 0 $filesize
wlf=if nand bad; then nand erase && nand write $web_fileaddr 0 $web_filesize; else erase 0x9f050000 +e30000 && cp.b $web_fileaddr 0x9f050000 $web_filesize; fi; erase 0x9f040000 +0x10000
rlf=if ping 192.168.1.2; then tftp 0x80060000 ${dir}openwrt-gl-ar300m.bin && erase 0x9f050000 +$filesize && cp.b $fileaddr 0x9f050000 $filesize; else echo ping 192.168.1.2 failed; fi
lu=tftp 0x80060000 ${dir}uboot_for_gl-ar300m.bin && erase 0x9f000000 +50000 && cp.b $fileaddr 0x9f000000 $filesize; reset
lf=if ping 192.168.1.2; then tftp 0x80060000 ${dir}openwrt-gl-ar300m.bin && erase 0x9f050000 +$filesize && cp.b $fileaddr 0x9f050000 $filesize; if nand bad; then run dlf; fi; else echo ping 192.168.1.2 failed; fi
lc=if ping 192.168.1.2; then tftp 0x81000000 config.bin && cp.b 0x9fff0040 0x81000040 0xffc0 && cp.b 0x81000000 0x81001002 0x06 && erase 0x9fff0000 +0xffff && cp.b 0x81000000 0x9fff0000 0xffff; else setenv bootcount 1 && saveenv && bootm 0x9fe80000; fi
ethact=eth0
stdin=serial
stdout=serial
stderr=serial
bootcount=2
Environment size: 1856/65532 bytes
@alpha1974 , is it an AR300M-Lite? The NAND is not installed in them.
No no, it´s for sure an AR300-M (not Lite-Version). It seems that U-Boot 1.1.4-g36de7573 doesn´t support my NAND flash.
@alpha1974 Did you update the uboot or did it come that way?
I read on here somewhere the old uboot can be downloaded…
The question is, do you need the NAND?
I have an AR300-M booting NOR with LEDE 170104, luci, uhttpd, lighttpd, loads of php7 modules, usb storage packages, minidlna, and various other packages and there is still 8MB of free space
Same problem here. When it arrived, I sure had the 128 MB flash.
Tried several different U-Boot (February, March, May), but now it doesn’t even show the NAND at boot:
U-Boot 1.1.4-g36de7573 (Feb 27 2017 - 14:14:52)
DRAM: 128 MB
Nor Flash: 16 MB, sector count = 256
*** Warning *** : PCIe WLAN Module not found !!!
Protect off 9F040000 … 9F04FFFF
Un-Protecting sectors 4…4 in bank 1
Un-Protected 1 sectors
Erasing Flash…Erasing flash…
First 0x4 last 0x4 sector size 0x10000 4
Erased 1 sectors
Writing to Flash… write addr: 9f040000
done
Protecting sectors 4…4 in bank 1
Protected 1 sectors
Un-Protect Flash Bank # 1
Hit any key to stop autoboot: 0
ath>
Normally there would be the NAND showing up.
ath> nand erase
no devices available
NAND erase shows “no devices available”. So I can’t flash the NAND, not with U-Boot and not with TFTP / UART.
What parameters / env are missing?!
As I said i definitely have the 128 MB NAND flash. It showed up before I updated the UBoot.
glitch
January 4, 2018, 4:29pm
9
Slightly off-topic but why did you start fiddling with you Uboot in the first place?
In order to make the switch work for choosing the boot device (NAND/NOR).
Hi
The attachment is the AR300M uboot.It contains the nand drivers,you can have a tyr
Thanks, I flashed it, but still no NAND there. btw i got two white antennas.
U-Boot 1.1.4-g36de7573 (May 16 2017 - 14:46:13)
DRAM: 128 MB
Nor Flash: 16 MB, sector count = 256
*** Warning *** : PCIe WLAN Module not found !!!
Protect off 9F040000 ... 9F04FFFF
Un-Protecting sectors 4..4 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erasing flash...
First 0x4 last 0x4 sector size 0x10000 4
Erased 1 sectors
Writing to Flash... write addr: 9f040000
done
Protecting sectors 4..4 in bank 1
Protected 1 sectors
Un-Protect Flash Bank # 1
wdt reg 0 0
wdt reg 1 0
Hit any key to stop autoboot: 0
ath>