root@mynsa:~# dmesg | grep -i 'bad' root@mynsa:~# cd /tmp root@mynsa:/tmp# ls -la uboot* ls: cannot access uboot*: No such file or directory root@mynsa:/tmp# ls -la uboot* ls: cannot access uboot*: No such file or directory root@mynsa:/tmp# ls -la total 92 drwxrwxrwx 10 root root 0 May 5 22:43 . drwxr-xr-x 19 root root 0 May 5 22:37 .. drwxr-xr-x 5 root root 0 May 5 22:37 .MetaRepository drwxrwxrwt 2 root root 80 May 5 22:37 .exFAT drwxr-xr-x 2 root root 0 May 5 22:37 .ffpstick lrwxrwxrwx 1 root root 43 May 5 22:37 .pyload -> /i-data/md0/admin/zy-pkgs/pyLoad/etc/pyload -rw-r--r-- 1 root root 4 May 5 22:37 VolInfo ---------- 1 root root 0 May 5 22:37 ZYPKG_INFO.tgz.tmp -rw-r--r-- 1 root root 11 May 5 22:36 __appwd__ -rw-r--r-- 1 root root 0 May 5 22:36 all.lst -rw-rw-rw- 1 root root 253 May 5 22:38 clidump.zyshd -rw-r--r-- 1 root root 46 May 5 22:36 diskmap.map -rw-r--r-- 1 root root 21 May 5 22:43 dropbox.idling -rw-r--r-- 1 root root 0 May 5 22:36 ediskmap.map srwxr-xr-x 1 root root 0 May 5 22:37 fileye drwxr-xr-x 2 root root 0 May 5 22:37 fwupgrade -rw------- 1 root root 0 May 5 22:36 libzydb.lock -rw-r--r-- 1 root root 45 May 5 22:36 mduuid.map -rw-r--r-- 1 root root 1937 May 5 22:38 michael.txt prwxr-xr-x 1 root root 0 May 5 22:37 my_fifo srwxrwxrwx 1 mysql 27 0 May 5 22:37 mysql.sock -rw-r--r-- 1 root root 363 May 5 22:36 nsu_progress -rw-r--r-- 1 root root 5171 May 5 22:42 ps.txt -rw-rw-rw- 1 root root 177 May 5 22:36 sata_autoshare_linker.sh.txt -rw-rw-rw- 1 root root 3681 May 5 22:36 smb.conf -rw-rw-rw- 1 root root 3681 May 5 22:36 smb.conf.new -rw-rw-rw- 1 root root 10 May 5 22:36 smb_user -rw-r--r-- 1 root root 5347 May 5 22:36 startup-config.conf drwxrwxrwt 4 root root 80 May 5 22:36 tmpfs -rw-r--r-- 1 root root 2408 May 5 22:37 twonkyserver-log.txt drwxr-xr-x 2 root root 0 May 5 22:37 upnp -rwxr-xr-x 1 root root 6 Jun 21 2017 user drwxr-xr-x 4 root root 0 Jun 21 2017 users srwx------ 1 nobody root 0 May 5 22:36 wsgi.1675.0.1.sock srwx------ 1 nobody root 0 May 5 22:36 wsgi.2293.0.1.sock srwx------ 1 nobody root 0 May 5 22:37 wsgi.4429.0.1.sock -rwxr-xr-x 1 root root 6 Jun 21 2017 y.file prwxrwxrwx 1 root root 0 May 5 22:36 zylog_fifo1 prwxrwxrwx 1 root root 0 May 5 22:36 zylog_fifo2 prwxrwxrwx 1 root root 0 May 5 22:36 zylog_fifo3 prwxrwxrwx 1 root root 0 May 5 22:36 zylog_fifo4 -rw-rw-rw- 1 root root 4 May 5 22:37 zypkglist_download.progress drwxr-xr-x 11 root root 0 May 5 22:36 zyxel -rw-r--r-- 1 1001 1000 62 Oct 17 2014 zyxel_cloud_agent_configure.conf root@mynsa:/tmp# cd /i-data/feb32dbc/public root@mynsa:/i-data/feb32dbc/public/Transfer# ls -la total 8812 drwxrwxrwx 3 svnManager everyone 4096 May 5 20:32 . drwxrwxrwx 9 root root 4096 May 5 20:45 .. -rwxrwxrwx 1 svnManager everyone 25 Jan 20 2014 PHPInfo.php -rwxrwxrwx 1 ftp 50 1578496 Mar 6 2017 Photo.scr -rwxrwxrwx 1 admin everyone 1439218 Apr 29 17:31 U-Boot flashing utilities Instruction.pdf -rwxrwxrwx 1 admin everyone 3164160 May 18 2016 linux-tools-installation-bodhi.tar -rwxrwxrwx 1 admin everyone 1617088 Apr 29 17:23 linux-tools-installation-bodhi.tar.gz drwxrwxrwx 2 admin everyone 4096 May 5 17:33 tools -rwxrwxrwx 1 admin everyone 665600 Apr 25 21:20 uboot-nsa325-2016.09-1-arm.pkg.tar -rwxrwxrwx 1 admin everyone 532480 May 5 17:57 uboot.2017.07-tld-1.nsa325.bodhi.tar root@mynsa:/i-data/feb32dbc/public/Transfer# cp /tmp uboot.2017.07-tld-1.nsa325.bodhi.tar cp: omitting directory `/tmp' root@mynsa:/i-data/feb32dbc/public/Transfer# cp /tmp uboot.2017.07-tld-1.nsa325.bodhi.taruboot.2017.07-tld-1.nsa325.bodhi.tar /tmpbodhi.tar /tmp root@mynsa:/i-data/feb32dbc/public/Transfer# cd /tmp root@mynsa:/tmp# tar -xf uboot.2017.07-tld-1.nsa325.bodhi.tar root@mynsa:/tmp# flash_erase /dev/mtd0 0 4 Erasing 128 Kibyte @ 0 -- 0 % complete Erasing 128 Kibyte @ 20000 -- 25 % complete Erasing 128 Kibyte @ 40000 -- 50 % complete Erasing 128 Kibyte @ 60000 -- 75 % complete Erasing 128 Kibyte @ 60000 -- 100 % complete root@mynsa:/tmp# nandwrite /dev/mtd0 uboot.2017.07-tld-1.nsa325.mtd0.kwb Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 root@mynsa:/tmp# cat /etc/fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors # NAND example /dev/mtd1 0x0000 0x20000 0x20000 4 NOTE from Vijay :*****CHANGED mtd1 to mtd0 in fw_env.config**** root@mynsa:/tmp# vi cat /etc/fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors # NAND example /dev/mtd1 0x0000 0x20000 0x20000 4 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~- /etc/fw_env.config 1/9 11% - /etc/fw_env.config 9/9 100%:: - /etc/fw_env.config 9/9 100%:wq"/etc/fw_env.config" 9L, 368C root@mynsa:/tmp# catvi /etc/fw_env.config root@mynsa:/tmp# cat /etc/fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors # NAND example /dev/mtd0 0x0000 0x20000 0x20000 4 root@mynsa:/tmp# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 00080000 00020000 "key_store" mtd3: 00080000 00020000 "info" mtd4: 00a00000 00020000 "etc" mtd5: 00a00000 00020000 "kernel_1" mtd6: 02fc0000 00020000 "rootfs1" mtd7: 00a00000 00020000 "kernel_2" mtd8: 02fc0000 00020000 "rootfs2" root@mynsa:/tmp# root@mynsa:/tmp# ls //boot/uImage ls: cannot access /boot/uImage: No such file or directory root@mynsa:/tmp# ls cd / root@mynsa:/# ls -la total 6 drwxr-xr-x 19 root root 0 May 5 22:37 . drwxr-xr-x 19 root root 0 May 5 22:37 .. drwxr-xr-x 2 root root 0 May 5 22:36 bin drwxr-xr-x 6 root root 0 May 5 22:37 dev drwxr-xr-x 2 root root 0 Jun 21 2017 e-data drwxr-xr-x 17 root root 0 May 5 22:38 etc lrwxrwxrwx 1 root root 30 May 5 22:37 ffp -> /usr/local/zy-pkgs/ffproot/ffp drwxr-xr-x 3 root root 0 Jun 21 2017 home drwxr-xr-x 3 root root 0 May 5 22:36 i-data -rwxr-xr-x 1 root root 3013 Jun 21 2017 init drwxr-xr-x 4 root root 0 May 5 22:37 lib lrwxrwxrwx 1 root root 11 Jun 21 2017 linuxrc -> bin/busybox drwxr-xr-x 5 root root 0 May 5 22:37 mnt dr-xr-xr-x 114 root root 0 Jan 1 1970 proc drwxr-xr-x 10 root root 1024 Jun 21 2017 ram_bin drwxr-xr-x 2 root root 0 Jun 21 2017 root drwxr-xr-x 2 root root 0 May 5 22:52 sbin drwxr-xr-x 11 root root 0 Jan 1 1970 sys drwxrwxrwx 11 root root 0 May 5 22:59 tmp drwxr-xr-x 8 root root 1024 Jun 21 2017 usr drwxr-xr-x 11 root root 0 Jun 21 2017 var drwxr-xr-x 6 root root 0 Jun 21 2017 zyxel root@mynsa:/# find -name . uImage find: paths must precede expression: uImage Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] root@mynsa:/# find -name . uImage root@mynsa:/#