Wiki source code of Openwrt for Linksys EA8100

Version 4.1 by Leon Poon on 2019/02/16 05:58

Show last authors
1 switch0: port 0 = wan, port 1,2,3,4 = lan
2
3
4 [[https:~~/~~/github.com/LeonPoon/openwrt/compare/master...master-linksys_ea8100>>https://github.com/LeonPoon/openwrt/compare/master...master-linksys_ea8100]]
5
6 b90086cc98a15a2774382b691f1249f4ad11a1c7:
7
8 <code>check env def auto_recovery no
9 check env def auto_recovery yes
10 check env def boot_part 1
11 check env def boot_part_ready 3
12 enabled:1, boot_part:2, boot_part_ready:3
13 ..nand read ret = 0x20000
14 boot_count:1, next_record:4
15 boot_count:1, next_record:4
16
17 3: System Boot system code via Flash.
18 ~#~# Booting image at be980000 ...
19 Image Name: MIPS OpenWrt Linux-4.14.101
20 Image Type: MIPS Linux Kernel Image (lzma compressed)
21 Data Size: 1908285 Bytes = 1.8 MB
22 Load Address: 80001000
23 Entry Point: 80001000
24 .............................. Verifying Checksum ... OK
25 Uncompressing Kernel Image ... OK
26 No initrd
27 ~#~# Transferring control to Linux (at address 80001000) ...
28 ~#~# Giving linux memsize in MB, 256
29
30 Starting kernel ...
31
32 [ 0.000000] Linux version 4.14.101 () (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9033-cbee2131d6)) #0 SMP Sat Feb 16 05:28:27 2019
33 [ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
34 [ 0.000000] bootconsole [early0] enabled
35 [ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
36 [ 0.000000] MIPS: machine is Linksys EA8100
37 [ 0.000000] Determined physical RAM map:
38 [ 0.000000] memory: 10000000 @ 00000000 (usable)
39 [ 0.000000] Initrd not found or empty - disabling initrd
40 [ 0.000000] VPE topology {2,2} total 4
41 [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
42 [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
43 [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
44 [ 0.000000] Zone ranges:
45 [ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
46 [ 0.000000] HighMem empty
47 [ 0.000000] Movable zone start for each node
48 [ 0.000000] Early memory node ranges
49 [ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
50 [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
51 [ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0
52 [ 0.000000] percpu: Embedded 14 pages/cpu @8120f000 s26192 r8192 d22960 u57344
53 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024
54 [ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
55 [ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
56 [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
57 [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
58 [ 0.000000] Writing ErrCtl register=0002c42c
59 [ 0.000000] Readback ErrCtl register=0002c42c
60 [ 0.000000] Memory: 253304K/262144K available (4502K kernel code, 233K rwdata, 1000K rodata, 268K init, 248K bss, 8840K reserved, 0K cma-reserved, 0K highmem)
61 [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
62 [ 0.000000] Hierarchical RCU implementation.
63 [ 0.000000] NR_IRQS: 256
64 [ 0.000000] CPU Clock: 880MHz
65 [ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
66 [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
67 [ 0.000009] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
68 [ 0.007805] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
69 [ 0.073978] pid_max: default: 32768 minimum: 301
70 [ 0.078744] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
71 [ 0.085252] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
72 [ 0.094034] Hierarchical SRCU implementation.
73 [ 0.099185] smp: Bringing up secondary CPUs ...
74 [ 0.109505] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
75 [ 0.109515] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
76 [ 0.109526] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
77 [ 0.109664] CPU1 revision is: 0001992f (MIPS 1004Kc)
78 [ 0.163934] Synchronize counters for CPU 1: done.
79 [ 0.203356] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
80 [ 0.203365] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
81 [ 0.203372] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
82 [ 0.203446] CPU2 revision is: 0001992f (MIPS 1004Kc)
83 [ 0.255085] Synchronize counters for CPU 2: done.
84 [ 0.290669] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
85 [ 0.290678] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
86 [ 0.290686] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
87 [ 0.290767] CPU3 revision is: 0001992f (MIPS 1004Kc)
88 [ 0.340270] Synchronize counters for CPU 3: done.
89 [ 0.370137] smp: Brought up 1 node, 4 CPUs
90 [ 0.377732] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
91 [ 0.387523] futex hash table entries: 1024 (order: 3, 32768 bytes)
92 [ 0.393811] pinctrl core: initialized pinctrl subsystem
93 [ 0.400270] NET: Registered protocol family 16
94 [ 0.423063] mt7621_gpio 1e000600.gpio: registering 32 gpios
95 [ 0.428878] mt7621_gpio 1e000600.gpio: registering 32 gpios
96 [ 0.434658] mt7621_gpio 1e000600.gpio: registering 32 gpios
97 [ 0.442956] clocksource: Switched to clocksource GIC
98 [ 0.449425] NET: Registered protocol family 2
99 [ 0.454419] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
100 [ 0.461303] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
101 [ 0.467778] TCP: Hash tables configured (established 2048 bind 2048)
102 [ 0.474212] UDP hash table entries: 256 (order: 1, 8192 bytes)
103 [ 0.479979] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
104 [ 0.486452] NET: Registered protocol family 1
105 [ 0.722896] 4 CPUs re-calibrate udelay(lpj = 2924544)
106 [ 0.729302] Crashlog allocated RAM at address 0x3f00000
107 [ 0.734701] workingset: timestamp_bits=30 max_order=16 bucket_order=0
108 [ 0.748195] squashfs: version 4.0 (2009/01/31) Phillip Lougher
109 [ 0.753975] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
110 [ 0.765554] random: fast init done
111 [ 0.770526] io scheduler noop registered
112 [ 0.774396] io scheduler deadline registered (default)
113 [ 0.780409] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
114 [ 0.788106] console [ttyS0] disabled
115 [ 0.791645] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
116 [ 0.800653] console [ttyS0] enabled
117 [ 0.800653] console [ttyS0] enabled
118 [ 0.807523] bootconsole [early0] disabled
119 [ 0.807523] bootconsole [early0] disabled
120 [ 0.816146] cacheinfo: Unable to detect cache hierarchy for CPU 0
121 [ 0.823038] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
122 [ 0.830119] Enable NFI Clock
123 [ 0.833044] # MTK NAND # : Use HW ECC
124 [ 0.836708] Device not found, ID: c2f1
125 [ 0.840433] Not Support this Device!
126 [ 0.844177] chip_mode=00000001
127 [ 0.847217] Support this Device in MTK table! c2f1
128 [ 0.852163] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
129 [ 0.858632] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
130 [ 0.864966] nand: Macronix NAND 128MiB 3,3V 8-bit
131 [ 0.869648] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
132 [ 0.877212] Scanning device for bad blocks
133 [ 0.898080] Bad eraseblock 71 at 0x0000008e0000
134 [ 0.967695] Bad eraseblock 349 at 0x000002ba0000
135 [ 0.978049] Bad eraseblock 374 at 0x000002ec0000
136 [ 0.987933] Bad eraseblock 397 at 0x0000031a0000
137 [ 1.006268] Bad eraseblock 456 at 0x000003900000
138 [ 1.021533] Bad eraseblock 502 at 0x000003ec0000
139 [ 1.034940] Bad eraseblock 540 at 0x000004380000
140 [ 1.050681] Bad eraseblock 588 at 0x000004980000
141 [ 1.107262] Bad eraseblock 810 at 0x000006540000
142 [ 1.129339] Bad eraseblock 885 at 0x000006ea0000
143 [ 1.166421] 7 fixed-partitions partitions found on MTD device MT7621-NAND
144 [ 1.173195] Creating 7 MTD partitions on "MT7621-NAND":
145 [ 1.178405] 0x000000000000-0x000000080000 : "uboot"
146 [ 1.184240] 0x000000080000-0x0000000c0000 : "uboot_env"
147 [ 1.190298] 0x0000000c0000-0x000000100000 : "factory"
148 [ 1.196219] 0x000000100000-0x000000140000 : "s_env"
149 [ 1.201900] 0x000000140000-0x000000180000 : "devinfo"
150 [ 1.207850] 0x000000180000-0x000002980000 : "firmware1"
151 [ 1.216116] 0x000002980000-0x000005180000 : "firmware2"
152 [ 1.223224] 1 uboot-env-boot_part partitions found on MTD device firmware2
153 [ 1.230090] 0x000002980000-0x000005180000 : "firmware"
154 [ 1.784436] 2 uimage-fw partitions found on MTD device firmware
155 [ 1.790355] 0x000002980000-0x000002b60000 : "kernel"
156 [ 1.796251] 0x000002b60000-0x000005180000 : "ubi"
157 [ 1.802130] [mtk_nand] probe successfully!
158 [ 1.806957] Signature matched and data read!
159 [ 1.811205] load_fact_bbt success 1023
160 [ 1.815701] libphy: Fixed MDIO Bus: probed
161 [ 1.885315] mtd_read_prop_mac: find prop "hw_mac_addr" in devinfo(max 0x40000) from 0x0
162 [ 1.893332] mtd_read_prop_mac: hw_mac_addr=XX:YY:ZZ:00:11:33
163 [ 1.899142] libphy: mdio: probed
164 [ 3.302014] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
165 [ 3.308669] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
166 [ 3.319426] NET: Registered protocol family 10
167 [ 3.325219] Segment Routing with IPv6
168 [ 3.328949] NET: Registered protocol family 17
169 [ 3.333457] 8021q: 802.1Q VLAN Support v1.8
170 [ 3.340506] UBI: auto-attach mtd9
171 [ 3.343893] ubi0: attaching mtd9
172 [ 3.363286] UBI: EOF marker found, PEBs from 15 will be erased
173 [ 3.369474] ubi0: scanning is finished
174 [ 3.411360] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 269 LEBs
175 [ 3.418731] ubi0: attached mtd9 (name "ubi", size 38 MiB)
176 [ 3.424164] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
177 [ 3.431006] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
178 [ 3.437780] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
179 [ 3.444725] ubi0: good PEBs: 298, bad PEBs: 7, corrupted PEBs: 0
180 [ 3.450701] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
181 [ 3.457906] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1203044710
182 [ 3.467015] ubi0: available PEBs: 0, total reserved PEBs: 298, PEBs reserved for bad PEB handling: 13
183 [ 3.476230] ubi0: background thread "ubi_bgt0d" started, PID 359
184 [ 3.477972] block ubiblock0_0: created from ubi0:0(rootfs)
185 [ 3.487716] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
186 [ 3.494673] hctosys: unable to open rtc device (rtc0)
187 [ 3.519930] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
188 [ 3.527684] Freeing unused kernel memory: 268K
189 [ 3.532122] This architecture does not have kernel memory protection.
190 [ 4.017012] init: Console is alive
191 [ 4.020616] init: - watchdog -
192 [ 4.354210] kmodloader: loading kernel modules from /etc/modules-boot.d/*
193 [ 4.443714] usbcore: registered new interface driver usbfs
194 [ 4.449260] usbcore: registered new interface driver hub
195 [ 4.454739] usbcore: registered new device driver usb
196 [ 4.467426] SCSI subsystem initialized
197 [ 4.480878] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vbus not found, using dummy regulator
198 [ 4.489588] xhci-mtk 1e1c0000.xhci: 1e1c0000.xhci supply vusb33 not found, using dummy regulator
199 [ 4.498507] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
200 [ 4.503843] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
201 [ 4.523114] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000210010
202 [ 4.532283] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
203 [ 4.538971] hub 1-0:1.0: USB hub found
204 [ 4.542796] hub 1-0:1.0: 2 ports detected
205 [ 4.547400] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
206 [ 4.552722] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
207 [ 4.560210] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
208 [ 4.560493] mtk_soc_eth 1e100000.ethernet eth0: port 4 link up
209 [ 4.566816] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
210 [ 4.581320] hub 2-0:1.0: USB hub found
211 [ 4.585161] hub 2-0:1.0: 1 port detected
212 [ 4.593449] usbcore: registered new interface driver usb-storage
213 [ 4.599693] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
214 [ 4.623240] init: - preinit -
215 [ 5.073028] usb 1-2: new high-speed USB device number 2 using xhci-mtk
216 [ 5.221107] mtk_soc_eth 1e100000.ethernet: PPE started
217 [ 5.255985] usb-storage 1-2:1.0: USB Mass Storage device detected
218 [ 5.262845] scsi host0: usb-storage 1-2:1.0
219 Press the [f] key and hit [enter] to enter failsafe mode
220 Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
221 [ 5.312718] random: procd: uninitialized urandom read (4 bytes read)
222 [ 6.273781] scsi 0:0:0:0: Direct-Access SanDisk Ultra Fit 1.00 PQ: 0 ANSI: 6
223 [ 6.283479] sd 0:0:0:0: [sda] 60063744 512-byte logical blocks: (30.8 GB/28.6 GiB)
224 [ 6.291556] sd 0:0:0:0: [sda] Write Protect is off
225 [ 6.297040] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
226 [ 6.313010] sd 0:0:0:0: [sda] Attached SCSI removable disk
227 [ 8.450677] UBIFS (ubi0:1): default file-system created
228 [ 8.457372] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 474
229 [ 8.568317] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
230 [ 8.576154] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
231 [ 8.586040] UBIFS (ubi0:1): FS size: 32886784 bytes (31 MiB, 259 LEBs), journal size 1650688 bytes (1 MiB, 13 LEBs)
232 [ 8.596442] UBIFS (ubi0:1): reserved for root: 1553323 bytes (1516 KiB)
233 [ 8.603051] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID D42C5178-C937-4CB4-94EE-0031FFF6550A, small LPT model
234 [ 8.617248] mount_root: overlay filesystem has not been fully initialized yet
235 [ 8.624849] mount_root: switching to ubifs overlay
236 [ 8.647505] urandom-seed: Seed file not found (/etc/urandom.seed)
237 [ 8.728797] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
238 [ 8.743450] procd: - early -
239 [ 8.746426] procd: - watchdog -
240 [ 9.403107] procd: - watchdog -
241 [ 9.406559] procd: - ubus -
242 [ 9.457080] random: ubusd: uninitialized urandom read (4 bytes read)
243 [ 9.464255] random: ubusd: uninitialized urandom read (4 bytes read)
244 [ 9.470985] random: ubusd: uninitialized urandom read (4 bytes read)
245 [ 9.478186] procd: - init -
246 Please press Enter to activate this console.
247 [ 9.714720] kmodloader: loading kernel modules from /etc/modules.d/*
248 [ 9.724486] ip6_tables: (C) 2000-2006 Netfilter Core Team
249 [ 9.738298] ip_tables: (C) 2000-2006 Netfilter Core Team
250 [ 9.749820] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
251 [ 9.790837] xt_time: kernel timezone is -0000
252 [ 9.801201] PPP generic driver version 2.4.2
253 [ 9.806822] NET: Registered protocol family 24
254 [ 9.813785] kmodloader: done loading kernel modules from /etc/modules.d/*
255 [ 10.951148] urandom_read: 5 callbacks suppressed
256 [ 10.951161] random: jshn: uninitialized urandom read (4 bytes read)
257 [ 16.501675] mtk_soc_eth 1e100000.ethernet: PPE started
258 [ 16.512395] br-lan: port 1(eth0.2) entered blocking state
259 [ 16.517965] br-lan: port 1(eth0.2) entered disabled state
260 [ 16.523873] device eth0.2 entered promiscuous mode
261 [ 16.528744] device eth0 entered promiscuous mode
262 [ 16.537326] br-lan: port 1(eth0.2) entered blocking state
263 [ 16.542760] br-lan: port 1(eth0.2) entered forwarding state
264 [ 16.548768] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
265 [ 17.553672] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
266 [ 21.883773] random: crng init done
267
268
269
270 BusyBox v1.30.1 () built-in shell (ash)
271
272 ~_~_~_~_~_~__ ~_~_~_~_~_~_~_~_ ~_~_
273 ~| |.~-~-~-~--.~-~-~-~--.~-~-~-~--.| | | |.~-~-~-~-.| |_
274 ~| - || _ | -~_~_| || | | || _|| _|
275 ~|~_~_~_~_~_~__|| ~_~_|~_~_~_~__|~_~_|~_~_||~_~_~_~_~_~_~_~_||~_~_| |~_~_~_~_|
276 ~|~_~_| W I R E L E S S F R E E D O M
277 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
278 OpenWrt SNAPSHOT, r9254+122-3b40121530
279 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~--
280 ~=== WARNING! =====================================
281 There is no root password defined on this device!
282 Use the "passwd" command to set up a new password
283 in order to prevent unauthorized SSH logins.
284 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
285 root@OpenWrt:/# free
286 total used free shared buff/cache available
287 Mem: 253572 23256 224316 60 6000 203516
288 Swap: 0 0 0
289 root@OpenWrt:/# df -h
290 Filesystem Size Used Available Use% Mounted on
291 /dev/root 1.5M 1.5M 0 100% /rom
292 tmpfs 123.8M 60.0K 123.8M 0% /tmp
293 /dev/ubi0_1 28.3M 36.0K 26.8M 0% /overlay
294 overlayfs:/overlay 28.3M 36.0K 26.8M 0% /
295 tmpfs 512.0K 0 512.0K 0% /dev</code>