John Crispin <j...@phrozen.org> writes: > have you seen my staging tree ? > https://git.openwrt.org/?p=openwrt/staging/blogic.git;a=shortlog;h=refs/heads/mt7621_dsa
No, I hadn't. Thanks for the pointer. Will look at it now I started out with Thirsty's work, but ended up redoing it all to try to keep changes as small and incremental as possible. But I did intend to credit him, as the original idea and concept is all Thirstys. Simply forgot. Sorry about that, Thirsty. > i dont see the clk stuff in this series. do you have a "add mt7621 > support to the driver" patch ? i am failing to see that, maybe i am > just blind... No, that's correct. I simply ignored the clk stuff after looking at how the driver used it (not at all). If you can get away with a simpler solution, then choose it ;-) Yes, I realize that this is probably simplifying a bit too much. The same goes for regulators, where I simply depend on the default dummy regulator instead of creating similar dummies. > sorry my patch is stuff needing annotation and a split up Then we're two... Including the boot log from the WAP6805 below to show the warnings etc caused by all my shortcuts. And if anyone wants to test this with a WAP6805 or WAP6806, then you also need to enable the RGMII connected Quantenna module: io -w -4 0x1e110008 0x9000c echo 1 > /sys/class/gpio/gpio16/value The gpio is probably enabling power to the slot, while the register write is still magic to me. I found it in the OEM firmware. The register appears to be somewhere in the ethernet FE block? The default value is 0xc000c. With that default I only see FCS errors, which leads me to wonder if this is somehow related to RGMII timing? Bjørn =================================================================== MT7621 stage1 code Mar 12 2015 14:42:52 (ASIC) CPU=50000000 HZ BUS=12500000 HZ ================================================================== Change MPLL source from XTAL to CR... do MEMPLL setting.. MEMPLL Config : 0x31000000 3PLL mode + External loopback === XTAL-40Mhz === DDR-800Mhz === PLL3 FB_DL: 0x4, 1/0 = 612/412 11000000 PLL4 FB_DL: 0xa, 1/0 = 549/475 29000000 PLL2 FB_DL: 0xf, 1/0 = 536/488 3D000000 do DDR setting..[00320381] Apply DDR2 Setting...(use default AC) 0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 -------------------------------------------------------------------------------- 0000:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0001:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0002:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0003:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0004:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0005:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0006:| 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0007:| 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 0008:| 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0009:| 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 000A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 000F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0010:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0011:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0012:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0013:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0014:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0015:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0016:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0017:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0018:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0019:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001A:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001B:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001C:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001D:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001E:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 001F:| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DRAMC_DQSCTL1[0e0]=1A000000 DRAMC_DQSGCTL[124]=80000000 rank 0 coarse = 8 rank 0 fine = 56 B:| 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 opt_dle value:8 DRAMC_DDR2CTL[07c]=40001203 DRAMC_PADCTL4[0e4]=00000015 DRAMC_DQIDLY1[210]=0A070707 DRAMC_DQIDLY2[214]=04040607 DRAMC_DQIDLY3[218]=08060705 DRAMC_DQIDLY4[21c]=08050A06 DRAMC_R0DELDLY[018]=00002E2E ================================================================== RX DQS perbit delay software calibration ================================================================== 1.0-15 bit dq delay value ================================================================== bit| 0 1 2 3 4 5 6 7 8 9 -------------------------------------- 0 | 7 6 7 7 5 5 3 3 5 6 10 | 5 7 5 8 4 5 -------------------------------------- ================================================================== 2.dqs window x=pass dqs delay value (min~max)center y=0-7bit DQ of every group input delay:DQS0 =46 DQS1 = 46 ================================================================== bit DQS0 bit DQS1 0 (1~91)46 8 (1~92)46 1 (1~90)45 9 (1~90)45 2 (1~92)46 10 (1~90)45 3 (1~86)43 11 (1~89)45 4 (0~89)44 12 (1~90)45 5 (1~90)45 13 (1~88)44 6 (1~89)45 14 (1~90)45 7 (1~90)45 15 (1~86)43 ================================================================== 3.dq delay value last ================================================================== bit| 0 1 2 3 4 5 6 7 8 9 -------------------------------------- 0 | 7 7 7 10 7 6 4 4 5 7 10 | 6 8 6 10 5 8 ================================================================== ================================================================== TX perbyte calibration ================================================================== DQS loop = 15, cmp_err_1 = ffff0000 dqs_perbyte_dly.last_dqsdly_pass[0]=15, finish count=1 dqs_perbyte_dly.last_dqsdly_pass[1]=15, finish count=2 DQ loop=15, cmp_err_1 = ffff0000 dqs_perbyte_dly.last_dqdly_pass[0]=15, finish count=1 dqs_perbyte_dly.last_dqdly_pass[1]=15, finish count=2 byte:0, (DQS,DQ)=(8,8) byte:1, (DQS,DQ)=(8,8) DRAMC_DQODLY1[200]=88888888 DRAMC_DQODLY2[204]=88888888 20,data:88 [EMI] DRAMC calibration passed =================================================================== MT7621 stage1 code done CPU=50000000 HZ BUS=12500000 HZ =================================================================== Z-LOADER (Dec 1 2015 - 12:05:30) DRAM: 64 MB Config XHCI 40M PLL ****************************** Software System Reset Occurred ****************************** Allocate 16 byte aligned buffer: 83fe1dd0 Enable NFI Clock # MTK NAND # : Use HW ECC NAND ID [01 F1 80 1D 01] Device found in MTK table, ID: 1f1, EXT_ID: 801d01 Support this Device in MTK table! 1f1 select_chip [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16 Signature matched and data read! load_fact_bbt success 1023 load fact bbt success [mtk_nand] probe successfully! mtd->writesize=2048 mtd->oobsize=64, mtd->erasesize=131072 devinfo.iowidth=8 ============================================ Ralink UBoot Version: 4.3.0.0 -------------------------------------------- ASIC MT7621AS (MAC to MT7530 Mode) DRAM_CONF_FROM: Auto-Detection DRAM_TYPE: DDR2 DRAM bus: 16 bit Xtal Mode=3 OCP Ratio=1/4 Flash component: NAND Flash Date:Dec 1 2015 Time:12:05:30 ============================================ icache: sets:256, ways:4, linesz:32 ,total:32768 dcache: sets:256, ways:4, linesz:32 ,total:32768 #Reset_MT7530 . Z-LOADER V1.17 | 12/01/2015 12:05:37 .... Waitting for RX_DMA_BUSY status Start... done wait multiboot... 5 4 3 2 1 0 Hit ESC key to stop autoboot: 3 2 1 0 ...............................## Booting image at c0000000 ... Image Name: MIPS OpenWrt Linux-4.14.75 Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1976572 Bytes = 1.9 MB Load Address: 80001000 Entry Point: 80001000 ............................... Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting kernel ... [ 0.000000] Linux version 4.14.75 (bjorn@canardo) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6690-cd7878e69dc9)) #0 SMP Sun Oct 14 14:32:42 2018 [ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc) [ 0.000000] MIPS: machine is ZyXEL WAP6805 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 04000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] VPE topology {2} total 2 [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff] [ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x4a4 with crng_init=0 [ 0.000000] percpu: Embedded 14 pages/cpu @81091000 s26192 r8192 d22960 u57344 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Writing ErrCtl register=00001c40 [ 0.000000] Readback ErrCtl register=00001c40 [ 0.000000] Memory: 58292K/65536K available (4615K kernel code, 260K rwdata, 1084K rodata, 236K init, 248K bss, 7244K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 0.000000] NR_IRQS: 256 [ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns [ 0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns [ 0.015490] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688) [ 0.087797] pid_max: default: 32768 minimum: 301 [ 0.097090] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.110106] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.125715] Hierarchical SRCU implementation. [ 0.136719] smp: Bringing up secondary CPUs ... [ 0.158307] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.158315] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes [ 0.158327] MIPS secondary cache 256kB, 8-way, linesize 32 bytes. [ 0.158475] CPU1 revision is: 0001992f (MIPS 1004Kc) [ 0.205794] Synchronize counters for CPU 1: done. [ 0.265469] smp: Brought up 1 node, 2 CPUs [ 0.277397] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.296874] futex hash table entries: 512 (order: 2, 16384 bytes) [ 0.309096] pinctrl core: initialized pinctrl subsystem [ 0.320864] NET: Registered protocol family 16 [ 0.341032] pull PCIe RST: RALINK_RSTCTRL = 0 [ 0.650012] release PCIe RST: RALINK_RSTCTRL = 7000000 [ 0.660086] ***** Xtal 40MHz ***** [ 0.666810] release PCIe RST: RALINK_RSTCTRL = 7000000 [ 0.677014] Port 0 N_FTS = 1b105000 [ 0.683917] Port 1 N_FTS = 1b102800 [ 0.690838] Port 2 N_FTS = 1b102800 [ 1.849295] PCIE1 no card, disable it(RST&CLK) [ 1.857978] PCIE2 no card, disable it(RST&CLK) [ 1.866783] -> 21007f2 [ 1.871632] PCIE0 enabled [ 1.876813] PCI host bridge /pcie@1e140000 ranges: [ 1.886342] MEM 0x0000000060000000..0x000000006fffffff [ 1.896696] IO 0x000000001e160000..0x000000001e16ffff [ 1.907063] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000 [ 1.933961] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 1.945292] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 1.956708] mt7621_gpio 1e000600.gpio: registering 32 gpios [ 1.969300] PCI host bridge to bus 0000:00 [ 1.977342] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff] [ 1.990995] pci_bus 0000:00: root bus resource [io 0xffffffff] [ 2.002730] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] [ 2.016212] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 2.033274] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000] [ 2.046302] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000] [ 2.060117] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff] [ 2.073598] pci 0000:00:00.0: BAR 1: assigned [mem 0x60100000-0x6010ffff] [ 2.087088] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff] [ 2.100552] pci 0000:00:00.0: PCI bridge to [bus 01] [ 2.110392] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff] [ 2.126146] clocksource: Switched to clocksource GIC [ 2.137593] NET: Registered protocol family 2 [ 2.147083] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 2.160823] TCP bind hash table entries: 1024 (order: 1, 8192 bytes) [ 2.173424] TCP: Hash tables configured (established 1024 bind 1024) [ 2.186160] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 2.197665] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 2.210312] NET: Registered protocol family 1 [ 2.455858] 4 CPUs re-calibrate udelay(lpj = 2924544) [ 2.467120] Crashlog allocated RAM at address 0x3f00000 [ 2.477671] workingset: timestamp_bits=30 max_order=14 bucket_order=0 [ 2.499359] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 2.510904] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 2.534161] io scheduler noop registered [ 2.541890] io scheduler deadline registered (default) [ 2.552990] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled [ 2.567234] console [ttyS0] disabled [ 2.574268] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 14, base_baud = 3125000) is a 16550A [ 2.592261] console [ttyS0] enabled [ 2.592261] console [ttyS0] enabled [ 2.606025] bootconsole [early0] disabled [ 2.606025] bootconsole [early0] disabled [ 2.622665] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 2.635713] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error [ 2.649786] Enable NFI Clock [ 2.655506] # MTK NAND # : Use HW ECC [ 2.662819] Device found in MTK table, ID: 1f1, EXT_ID: 801d01 [ 2.674431] Support this Device in MTK table! 1f1 [ 2.684159] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16 [ 2.697032] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1 [ 2.709682] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit [ 2.719740] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 2.734841] Scanning device for bad blocks [ 3.032553] 9 fixed-partitions partitions found on MTD device MT7621-NAND [ 3.046071] Creating 9 MTD partitions on "MT7621-NAND": [ 3.056485] 0x000000000000-0x000000100000 : "Bootloader" [ 3.068320] 0x000000100000-0x000000200000 : "MRD" [ 3.078871] 0x000000200000-0x000000300000 : "Factory" [ 3.090110] 0x000000300000-0x000000400000 : "Config" [ 3.101177] 0x000000400000-0x000002400000 : "firmware" [ 3.565737] 2 uimage-fw partitions found on MTD device firmware [ 3.577555] 0x000000400000-0x000000800000 : "kernel" [ 3.588639] 0x000000800000-0x000002400000 : "ubi" [ 3.599403] 0x000002400000-0x000004400000 : "Kernel2" [ 3.610876] 0x000004400000-0x000004500000 : "Private" [ 3.622133] 0x000004500000-0x000005500000 : "Log" [ 3.632811] 0x000005500000-0x000008000000 : "App" [ 3.643715] [mtk_nand] probe successfully! [ 3.652627] Signature matched and data read! [ 3.661127] load_fact_bbt success 1023 [ 3.669436] libphy: Fixed MDIO Bus: probed [ 3.715940] mtk_soc_eth 1e100000.ethernet: chip id = 7621 [ 3.727043] libphy: mdio: probed [ 3.733703] mt7530 mdio-bus:1f: mdio-bus:1f supply core not found, using dummy regulator [ 3.749963] mt7530 mdio-bus:1f: mdio-bus:1f supply io not found, using dummy regulator [ 3.766219] drivers/net/ethernet/mediatek/mtk_eth_soc.c:mtk_mdio_init[412]0 8393bc00 [ 3.783049] mtk_soc_eth 1e100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY] [ 3.804641] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 15 [ 3.821892] random: fast init done [ 3.822058] mtk_soc_eth 1e100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY] [ 3.822913] mtk_soc_eth 1e100000.ethernet eth1: mediatek frame engine at 0xbe100000, irq 15 [ 3.823454] Error: Driver 'mtk_soc_eth' is already registered, aborting... [ 3.825551] NET: Registered protocol family 10 [ 3.827743] Segment Routing with IPv6 [ 3.827871] NET: Registered protocol family 17 [ 3.828416] 8021q: 802.1Q VLAN Support v1.8 [ 3.830765] mt7530 mdio-bus:1f: mdio-bus:1f supply core not found, using dummy regulator [ 3.830879] mt7530 mdio-bus:1f: mdio-bus:1f supply io not found, using dummy regulator [ 3.831095] DSA: switch 0 0 parsed [ 3.831117] DSA: tree 0 parsed [ 5.626260] libphy: dsa slave smi: probed [ 5.665929] Generic PHY dsa-0.0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:00, irq=POLL) [ 5.725929] Generic PHY dsa-0.0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:01, irq=POLL) [ 5.785930] Generic PHY dsa-0.0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:02, irq=POLL) [ 5.845932] Generic PHY dsa-0.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:03, irq=POLL) [ 5.868007] UBI: auto-attach mtd6 [ 5.874619] ubi0: attaching mtd6 [ 6.141136] ubi0: scanning is finished [ 6.163795] ubi0: attached mtd6 (name "ubi", size 28 MiB) [ 6.174626] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 6.188322] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 6.201839] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 6.215695] ubi0: good PEBs: 224, bad PEBs: 0, corrupted PEBs: 0 [ 6.227657] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128 [ 6.242040] ubi0: max/mean erase counter: 6/3, WL threshold: 4096, image sequence number: 1651423937 [ 6.260221] ubi0: available PEBs: 0, total reserved PEBs: 224, PEBs reserved for bad PEB handling: 20 [ 6.278604] ubi0: background thread "ubi_bgt0d" started, PID 392 [ 6.280588] block ubiblock0_0: created from ubi0:0(rootfs) [ 6.280600] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem [ 6.280621] hctosys: unable to open rtc device (rtc0) [ 6.331234] VFS: Mounted root (squashfs filesystem) readonly on device 254:0. [ 6.346249] Freeing unused kernel memory: 236K [ 6.355095] This architecture does not have kernel memory protection. [ 6.893763] init: Console is alive [ 6.900904] init: - watchdog - [ 7.563573] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 7.663551] usbcore: registered new interface driver usbfs [ 7.674625] usbcore: registered new interface driver hub [ 7.685347] usbcore: registered new device driver usb [ 7.709563] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 7.726314] init: - preinit - /etc/preinit: line 26: swconfig: not found /etc/preinit: line 27: swconfig: not found /etc/preinit: line 28: swconfig: not found Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 11.552922] random: procd: uninitialized urandom read (4 bytes read) [ 11.566283] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 471 [ 11.627993] UBIFS (ubi0:1): recovery needed [ 11.804116] UBIFS (ubi0:1): recovery completed [ 11.813159] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data" [ 11.828766] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 11.848510] UBIFS (ubi0:1): FS size: 17014784 bytes (16 MiB, 134 LEBs), journal size 1015809 bytes (0 MiB, 7 LEBs) [ 11.869114] UBIFS (ubi0:1): reserved for root: 803650 bytes (784 KiB) [ 11.881950] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 3DE92ED0-10DC-4C9C-8241-6D4A461AB3E8, small LPT model [ 11.911128] mount_root: switching to ubifs overlay [ 11.949134] urandom-seed: Seeding with /etc/urandom.seed [ 12.049308] procd: - early - [ 12.055140] procd: - watchdog - [ 12.716077] procd: - watchdog - [ 12.722656] procd: - ubus - [ 12.790751] random: ubusd: uninitialized urandom read (4 bytes read) [ 12.808578] random: ubusd: uninitialized urandom read (4 bytes read) [ 12.821679] random: ubusd: uninitialized urandom read (4 bytes read) [ 12.835212] procd: - init - Please press Enter to activate this console. [ 13.166786] kmodloader: loading kernel modules from /etc/modules.d/* [ 13.183577] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 13.203800] Loading modules backported from Linux version v4.19-rc5-0-g6bf4ca7fbc85 [ 13.219117] Backport generated by backports.git v4.19-rc5-1-0-g05571dcd [ 13.234642] ip_tables: (C) 2000-2006 Netfilter Core Team [ 13.252384] nf_conntrack version 0.5.0 (1024 buckets, 4096 max) [ 13.304247] xt_time: kernel timezone is -0000 [ 13.359356] bus=0x1, slot = 0x0, irq=0xff [ 13.367628] mt7603e 0000:01:00.0: ASIC revision: 76030010 [ 13.444049] mt7603e 0000:01:00.0: Firmware Version: ap_pcie [ 13.455227] mt7603e 0000:01:00.0: Build Time: 20160107100755 [ 13.505910] firmware init done [ 13.701965] PPP generic driver version 2.4.2 [ 13.712245] NET: Registered protocol family 24 [ 13.724214] kmodloader: done loading kernel modules from /etc/modules.d/* [ 14.515725] urandom_read: 5 callbacks suppressed [ 14.515743] random: jshn: uninitialized urandom read (4 bytes read) [ 19.171631] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 19.183471] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 19.407767] br-lan: port 1(lan0) entered blocking state [ 19.418321] br-lan: port 1(lan0) entered disabled state [ 19.496064] device lan0 entered promiscuous mode [ 19.505301] device eth0 entered promiscuous mode [ 19.646609] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 19.886953] br-lan: port 2(lan1) entered blocking state [ 19.897420] br-lan: port 2(lan1) entered disabled state [ 20.025938] device lan1 entered promiscuous mode [ 20.416933] br-lan: port 3(lan2) entered blocking state [ 20.427437] br-lan: port 3(lan2) entered disabled state [ 20.635930] device lan2 entered promiscuous mode [ 21.006986] br-lan: port 4(lan3) entered blocking state [ 21.017453] br-lan: port 4(lan3) entered disabled state [ 21.295940] device lan3 entered promiscuous mode [ 21.486068] mt7530 mdio-bus:1f lan0: Link is Down [ 21.686083] mt7530 mdio-bus:1f lan1: Link is Down [ 22.276003] mt7530 mdio-bus:1f lan2: Link is Down [ 22.865915] mt7530 mdio-bus:1f lan3: Link is Down [ 25.105975] br-lan: port 4(lan3) entered blocking state [ 25.116405] br-lan: port 4(lan3) entered forwarding state [ 25.145931] mt7530 mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow control rx/tx [ 25.275940] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready root@OpenWrt:/# ifconfig eth1 1.1.1.1 netmask 255.255.255.0 up root@OpenWrt:/# io -w -4 0x1e110008 0x9000c root@OpenWrt:/# echo 1 > /sys/class/gpio/gpio16/value root@OpenWrt:/# ping 1.1.1.2 -c 3 PING 1.1.1.2 (1.1.1.2): 56 data bytes 64 bytes from 1.1.1.2: seq=0 ttl=64 time=2.503 ms 64 bytes from 1.1.1.2: seq=1 ttl=64 time=0.698 ms 64 bytes from 1.1.1.2: seq=2 ttl=64 time=0.647 ms --- 1.1.1.2 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.647/1.282/2.503 ms _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel