1. Hit any key to stop autoboot: 0
  2. ar7240>
  3. ar7240>
  4. ar7240>
  5. ar7240> print
  6. bootdelay=1
  7. baudrate=115200
  8. ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
  9. dir=
  10. lu=tftp 0x80060000 ${dir}2fw.bin&&nand erase 0x0 0x40000&&nand write $fileaddr 0x0 $filesize
  11. lf=tftp 0x80060000 ${dir}openwrt-db12x-2.6.31-generic-nand-root.bin&&nand erase 0x280000 0x5000000&&nand write $fileaddr 0x280000 $filesize
  12. lk=tftp 0x80060000 ${dir}openwrt-db12x-2.6.31-generic-uImage-lzma.bin&&nand erase 0x80000 0x200000&&nand write $fileaddr 0x80000 $filesize
  13. backup_flag=1
  14. /com/icontrol/config.bootloaderRevision=1.1.9
  15. /com/icontrol/config.serial=319464NU05866
  16. HW_REV=2
  17. /com/icontrol/security.activationKey=D319464NU058667H53EA
  18. /com/icontrol/config.sku=PGZNG1-1ADNAS
  19. FTM=0
  20. /com/icontrol/config.tz=PST8PDT
  21. /com/icontrol/networking.ssid=461798afbf40634fa33ce149a5cf5655
  22. /com/icontrol/networking.key=6fdcabee73fd067fadc1ac402e20fd91
  23. ethact=eth0
  24. filesize=252a79
  25. fileaddr=80060000
  26. ipaddr=192.168.1.1
  27. serverip=192.168.1.10
  28. console=ttyS0,115200
  29. bootargs=rootfstype=squashfs init=/bin/sh mtdparts=ath-nand:256k(u-boot),256k(u-boot-env),2m(uImage),80m(rootfs),2m(uImage2),80m(rootfs_bak),20m(config),71m(storage),384k(dummy),128k(caldata)
  30. firmware_status=01
  31. active_image=1
  32. root=31:05
  33. rootfs1_name=rootfs_bak
  34. rootfs2_name=rootfs
  35. console_mode=1
  36. kernel_offset=0x80000
  37. bootcmd=nand read 0x81000000 0x80000 0x00400000 && bootm 0x81000000
  38. stdin=serial
  39. stdout=serial
  40. stderr=serial
  41. Environment size: 1349/262140 bytes
  42. ar7240> tftp 0x81000000 openwrt-ath79-nand-netgear_pgzng1-1adnas-squashfs-factory.bin && nand erase 0x80000 $filesize && nand write $fileaddr 0x80000 $filesize && nand read 0x81000000 0x80000 0x00400000 && bootm 0x81000000
  43. Trying eth0
  44. dup 1 speed 100
  45. Using eth0 device
  46. TFTP from server 192.168.1.10; our IP address is 192.168.1.1
  47. Filename 'openwrt-ath79-nand-netgear_pgzng1-1adnas-squashfs-factory.bin'.
  48. Load address: 0x81000000
  49. Loading: #################################################################
  50. #################################################################
  51. #################################################################
  52. #################################################################
  53. #################################################################
  54. #################################################################
  55. #################################################################
  56. #################################################################
  57. #################################################################
  58. #################################################################
  59. #################################################################
  60. #################################################################
  61. #################################################################
  62. #################################################################
  63. #################################################################
  64. #################################################################
  65. #################################################################
  66. #################################################################
  67. #################################################################
  68. #################################################################
  69. #################################################################
  70. #################################################################
  71. #################################################################
  72. #################################################################
  73. #################################################################
  74. #################################################################
  75. #################################################################
  76. #################################################################
  77. #################################################################
  78. #################################################################
  79. #################################################################
  80. #################################################################
  81. #################################################################
  82. #####################################################
  83. done
  84. Bytes transferred = 11914998 (b5cef6 hex)
  85. NAND erase: device 0 offset 0x80000, size 0xb5cef6 ath_nand_erase: 0x80000 91
  86. 90Skipped 0 bad blocks
  87. OK
  88. NAND write: device 0 offset 0x80000, size 11914998 ... 11914998 bytes written: OK
  89. NAND read: device 0 offset 0x80000, size 4194304 ... 4194304 bytes read: OK
  90. ## Booting image at 81000000 ...
  91. Image Name: MIPS OpenWrt Linux-5.10.115
  92. Created: 2022-05-31 15:35:30 UTC
  93. Image Type: MIPS Linux Kernel Image (lzma compressed)
  94. Data Size: 2435630 Bytes = 2.3 MB
  95. Load Address: 80060000
  96. Entry Point: 80060000
  97. Verifying Checksum at 0x81000040 ...OK
  98. Uncompressing Kernel Image ... OK
  99. No initrd
  100. ## Transferring control to Linux (at address 80060000) ...
  101. ## Giving linux memsize in bytes, 268435456
  102. Starting kernel ...
  103. [ 0.000000] Linux version 5.10.115 (root@linups) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19689+1-19ef3b54f4) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Tue May 31 15:35:30 2022
  104. [ 0.000000] printk: bootconsole [early0] enabled
  105. [ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
  106. [ 0.000000] MIPS: machine is Netgear PGZNG1-1ADNAS
  107. [ 0.000000] SoC: Atheros AR9344 rev 3
  108. [ 0.000000] Initrd not found or empty - disabling initrd
  109. [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
  110. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
  111. [ 0.000000] Zone ranges:
  112. [ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
  113. [ 0.000000] Movable zone start for each node
  114. [ 0.000000] Early memory node ranges
  115. [ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
  116. [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
  117. [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
  118. [ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
  119. [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
  120. [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
  121. [ 0.000000] Writing ErrCtl register=00000000
  122. [ 0.000000] Readback ErrCtl register=00000000
  123. [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
  124. [ 0.000000] Memory: 250344K/262144K available (5972K kernel code, 587K rwdata, 1256K rodata, 1200K init, 206K bss, 11800K reserved, 0K cma-reserved)
  125. [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  126. [ 0.000000] NR_IRQS: 51
  127. [ 0.000000] random: get_random_bytes called from start_kernel+0x3c0/0x5b0 with crng_init=0
  128. [ 0.000000] CPU clock: 560.000 MHz
  129. [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
  130. [ 0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
  131. [ 0.008319] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
  132. [ 0.084935] pid_max: default: 32768 minimum: 301
  133. [ 0.090025] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
  134. [ 0.097820] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
  135. [ 0.108148] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
  136. [ 0.119322] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  137. [ 0.129839] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
  138. [ 0.137197] pinctrl core: initialized pinctrl subsystem
  139. [ 0.143840] NET: Registered protocol family 16
  140. [ 0.204418] clocksource: Switched to clocksource MIPS
  141. [ 0.211057] NET: Registered protocol family 2
  142. [ 0.215984] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
  143. [ 0.224570] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
  144. [ 0.233519] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
  145. [ 0.241739] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
  146. [ 0.249279] TCP: Hash tables configured (established 2048 bind 2048)
  147. [ 0.256201] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
  148. [ 0.263180] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
  149. [ 0.270913] NET: Registered protocol family 1
  150. [ 0.275629] PCI: CLS 0 bytes, default 32
  151. [ 0.289675] workingset: timestamp_bits=14 max_order=16 bucket_order=2
  152. [ 0.301254] squashfs: version 4.0 (2009/01/31) Phillip Lougher
  153. [ 0.307517] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
  154. [ 0.322352] pinctrl-single 1804002c.pinmux: 544 pins, size 68
  155. [ 0.329536] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
  156. [ 0.337151] printk: console [ttyS0] disabled
  157. [ 0.341790] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A
  158. [ 0.351041] printk: console [ttyS0] enabled
  159. [ 0.351041] printk: console [ttyS0] enabled
  160. [ 0.359955] printk: bootconsole [early0] disabled
  161. [ 0.359955] printk: bootconsole [early0] disabled
  162. [ 0.381615] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
  163. [ 0.388118] nand: Hynix NAND 256MiB 3,3V 8-bit
  164. [ 0.392634] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
  165. [ 0.400515] Scanning device for bad blocks
  166. [ 0.409418] random: fast init done
  167. [ 0.593453] 10 fixed-partitions partitions found on MTD device ar934x-nand
  168. [ 0.600455] Creating 10 MTD partitions on "ar934x-nand":
  169. [ 0.605868] 0x000000000000-0x000000040000 : "u-boot"
  170. [ 0.611942] 0x000000040000-0x000000080000 : "u-boot-env"
  171. [ 0.620083] 0x000000080000-0x000000480000 : "firmware"
  172. [ 0.636157] 0x000000480000-0x000005280000 : "rootfs"
  173. [ 0.642511] mtd: device 3 (rootfs) set to be root filesystem
  174. [ 0.649339] 1 squashfs-split partitions found on MTD device rootfs
  175. [ 0.655683] 0x000000800000-0x000005280000 : "rootfs_data"
  176. [ 0.662465] 0x000005280000-0x000005480000 : "uImage2"
  177. [ 0.683381] 0x000005480000-0x00000a480000 : "rootfs_bak"
  178. [ 0.690316] 0x00000a480000-0x00000b880000 : "config"
  179. [ 0.698207] 0x00000b880000-0x00000ff80000 : "storage"
  180. [ 0.704795] 0x00000ff80000-0x00000ffe0000 : "dummy"
  181. [ 0.712427] 0x00000ffe0000-0x000010000000 : "caldata"
  182. [ 1.075522] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
  183. [ 1.767192] switch0: Atheros AR8229 rev. 1 switch registered on mdio.0
  184. [ 1.824281] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
  185. [ 1.834114] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
  186. [ 1.842006] NET: Registered protocol family 10
  187. [ 1.852557] Segment Routing with IPv6
  188. [ 1.856472] NET: Registered protocol family 17
  189. [ 1.861076] 8021q: 802.1Q VLAN Support v1.8
  190. [ 1.869608] PCI host bridge /ahb/pcie-controller@180c0000 ranges:
  191. [ 1.875894] MEM 0x0000000010000000..0x0000000013ffffff
  192. [ 1.881202] IO 0x0000000000000000..0x0000000000000000
  193. [ 1.886528] ar724x-pci 180c0000.pcie-controller: PCIe link is down
  194. [ 1.892997] PCI host bridge to bus 0000:00
  195. [ 1.897206] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
  196. [ 1.904184] pci_bus 0000:00: root bus resource [io 0x0000]
  197. [ 1.909873] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
  198. [ 1.916775] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
  199. [ 1.925757] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
  200. [ 2.266343] ag71xx 19000000.eth: connected to PHY at mdio.0:1f:00 [uid=004dd042, driver=Generic PHY]
  201. [ 2.276606] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii
  202. [ 2.288845] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
  203. [ 2.301920] Freeing unused kernel memory: 1200K
  204. [ 2.306555] This architecture does not have kernel memory protection.
  205. [ 2.313103] Run /sbin/init as init process
  206. [ 2.896250] init: Console is alive
  207. [ 2.900222] init: - watchdog -
  208. [ 3.802234] kmodloader: loading kernel modules from /etc/modules-boot.d/*
  209. [ 3.904127] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
  210. [ 3.922065] init: - preinit -
  211. [ 5.300169] random: jshn: uninitialized urandom read (4 bytes read)
  212. [ 5.499681] random: jshn: uninitialized urandom read (4 bytes read)
  213. [ 5.551603] random: jshn: uninitialized urandom read (4 bytes read)
  214. [ 5.813711] eth0: link up (1000Mbps/Full duplex)
  215. [ 5.824565] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
  216. Press the [f] key and hit [enter] to enter failsafe mode
  217. Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
  218. [ 10.170713] mount_root: no usable overlay filesystem found, using tmpfs overlay
  219. [ 10.182918] urandom-seed: Seed file not found (/etc/urandom.seed)
  220. [ 10.388023] eth0: link down
  221. [ 10.405632] procd: - early -
  222. [ 10.408963] procd: - watchdog -
  223. [ 11.123660] procd: - watchdog -
  224. [ 11.127583] procd: - ubus -
  225. [ 11.220299] urandom_read: 4 callbacks suppressed
  226. [ 11.220309] random: ubusd: uninitialized urandom read (4 bytes read)
  227. [ 11.234841] random: ubusd: uninitialized urandom read (4 bytes read)
  228. [ 11.241898] random: ubusd: uninitialized urandom read (4 bytes read)
  229. [ 11.255887] procd: - init -
  230. Please press Enter to activate this console.
  231. [ 12.499202] kmodloader: loading kernel modules from /etc/modules.d/*
  232. [ 13.003677] urngd: v1.0.2 started.
  233. [ 13.108827] Loading modules backported from Linux version v5.15.33-0-g06f50ca83ace
  234. [ 13.116580] Backport generated by backports.git v5.15.33-1-0-g183c4ab2
  235. [ 13.358992] random: crng init done
  236. [ 13.580314] PPP generic driver version 2.4.2
  237. [ 13.596823] NET: Registered protocol family 24
  238. [ 13.725327] ieee80211 phy0: Atheros AR9340 Rev:3 mem=0xb8100000, irq=12
  239. [ 13.762335] kmodloader: done loading kernel modules from /etc/modules.d/*
  240. root@OpenWrt:/# mount
  241. /dev/root on /rom type squashfs (ro,relatime)
  242. proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
  243. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
  244. cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
  245. tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
  246. tmpfs on /tmp/root type tmpfs (rw,noatime,mode=755)
  247. overlayfs:/tmp/root on / type overlay (rw,noatime,lowerdir=/,upperdir=/tmp/root/upper,workdir=/tmp/root/work)
  248. tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
  249. devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
  250. debugfs on /sys/kernel/debug type debugfs (rw,noatime)
  251. none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
  252. root@OpenWrt:/# [ 97.155430] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000008c: 0xc36b instead
  253. [ 97.221821] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000138: 0xc36b instead
  254. [ 97.264571] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000001e4: 0xc36b instead
  255. [ 97.274208] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000290: 0xc36b instead
  256. [ 97.320957] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000033c: 0xc36b instead
  257. [ 97.354575] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000003e8: 0xc36b instead
  258. [ 97.364214] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000494: 0xc36b instead
  259. [ 97.414583] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000540: 0xc36b instead
  260. [ 97.424221] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000005ec: 0xc36b instead
  261. [ 97.454575] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000698: 0xc36b instead
  262. [ 97.464205] jffs2: Further such events for this erase block will not be printed
  263. [ 97.518984] jffs2: Empty flash at 0x000034f8 ends at 0x0000cef4
  264. [ 97.555460] jffs2: Empty flash at 0x0000cf38 ends at 0x0000d6f4
  265. [ 97.594397] jffs2: Empty flash at 0x0000d738 ends at 0x0000def4
  266. [ 97.630429] jffs2: Empty flash at 0x000134f8 ends at 0x0001cef4
  267. [ 97.647248] jffs2: Empty flash at 0x0001cf38 ends at 0x0001d6f4
  268. [ 97.666297] jffs2: Empty flash at 0x0001d738 ends at 0x0001def4
  269. [ 97.685926] jffs2: Empty flash at 0x0001df30 ends at 0x0001df34
  270. [ 97.705282] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0x22ea instead
  271. [ 97.724884] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x6e57 instead
  272. [ 97.746689] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020008: 0xb617 instead
  273. [ 97.764874] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002000c: 0x6a65 instead
  274. [ 97.784884] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020010: 0x0407 instead
  275. [ 97.804886] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020014: 0xc7dd instead
  276. [ 97.824953] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020018: 0x5166 instead
  277. [ 97.844885] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0002001c: 0x9332 instead
  278. [ 97.864886] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020020: 0x8830 instead
  279. [ 97.884910] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020024: 0x378a instead
  280. [ 97.894567] jffs2: Further such events for this erase block will not be printed
  281. [ 97.967284] jffs2: Empty flash at 0x0002cf38 ends at 0x0002d6f4
  282. [ 97.997174] jffs2: Empty flash at 0x0002d738 ends at 0x0002def4
  283. [ 98.003584] jffs2: Old JFFS2 bitmask found at 0x0002f9c4
  284. [ 98.009030] jffs2: You cannot use older JFFS2 filesystems with newer kernels
  285. [ 98.044824] jffs2: Empty flash at 0x0003cf38 ends at 0x0003d6f4
  286. [ 98.065987] jffs2: Empty flash at 0x0003d738 ends at 0x0003def4
  287. [ 98.085324] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040000: 0xac33 instead
  288. [ 98.104893] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040004: 0xaf02 instead
  289. [ 98.124931] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040008: 0x7c63 instead
  290. [ 98.144900] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0004000c: 0x425d instead
  291. [ 98.164894] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040010: 0x20a0 instead
  292. [ 98.184907] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00040014: 0xf9bc instead