@chauwa @Cezary
Działa wgrywanie z poziomu jboota oraz oryginalnego systemu. Musiałem napisać własny mtd-spliter (poszedł kolejny PR). Teraz są dwa:
https://github.com/openwrt/openwrt/pull/712
https://github.com/openwrt/openwrt/pull/717
W tym momencie udało mi się uzyskać pełną funkcjonalność, zgodną z duchem OpenWRT.
Mam jeszcze trochę pracy by poprawić tamten PR. Muszę zaktualizować Makefile z uwagi na fakt, że pojawił się nowy firmware builder. Postaram się zrobić to jak najszybciej.
Poniżej bootlog:
CDW561DL_003 Jboot B676
JRecovery Version R1.2 2013/02/18 14:01
SPI FLASH: MX25l6405d 8M
.
....................
Starting kernel @80000000...
[ 0.000000] Linux version 4.9.77 (krolik@krolik-T420) (gcc version 5.5.0 (OpenWrt GCC 5.5.0 r5574+417-60a39e8) ) #0 Sat Feb 3 13:14:38 2018
[ 0.000000] Board has DDR1
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620N ver:2 eco:5
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is D-link DWR-116 A1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Writing ErrCtl register=000627d4
[ 0.000000] Readback ErrCtl register=000627d4
[ 0.000000] Memory: 27760K/32768K available (3256K kernel code, 176K rwdata, 804K rodata, 172K init, 222K bss, 5008K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000009] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015456] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.080607] pid_max: default: 32768 minimum: 301
[ 0.089893] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.102942] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.122924] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.142395] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.154562] pinctrl core: initialized pinctrl subsystem
[ 0.165462] NET: Registered protocol family 16
[ 0.196503] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.207531] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.220130] rt2880_gpio 10000638.gpio: registering 16 gpios
[ 0.231108] rt2880_gpio 10000638.gpio: registering 16 irq handlers
[ 0.243721] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.254525] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.270401] clocksource: Switched to clocksource systick
[ 0.282098] NET: Registered protocol family 2
[ 0.291507] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.305277] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.317872] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.330601] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.342131] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.354811] NET: Registered protocol family 1
[ 0.365672] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.378426] Crashlog allocated RAM at address 0x1f00000
[ 0.389866] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[ 0.410324] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.421815] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.450022] io scheduler noop registered
[ 0.457717] io scheduler deadline registered (default)
[ 0.468132] ralink-usb-phy usbphy: invalid resource
[ 0.478298] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.492034] console [ttyS0] disabled
[ 0.499016] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.518786] console [ttyS0] enabled
[ 0.518786] console [ttyS0] enabled
[ 0.532567] bootconsole [early0] disabled
[ 0.532567] bootconsole [early0] disabled
[ 0.552829] spi spi0.0: force spi mode3
[ 0.561285] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[ 0.571090] 3 ofpart partitions found on MTD device spi0.0
[ 0.582022] Creating 3 MTD partitions on "spi0.0":
[ 0.591577] 0x000000000000-0x000000010000 : "jboot"
[ 0.602912] 0x000000010000-0x0000007f0000 : "firmware"
[ 0.615275] 2 jimage-fw partitions found on MTD device firmware
[ 0.627147] 0x000000010000-0x0000001682f0 : "kernel"
[ 0.638749] 0x0000001682f0-0x0000007f0000 : "rootfs"
[ 0.650499] mtd: device 3 (rootfs) set to be root filesystem
[ 0.662267] 1 squashfs-split partitions found on MTD device rootfs
[ 0.674643] 0x000000363000-0x0000007f0000 : "rootfs_data"
[ 0.686992] 0x0000007f0000-0x000000800000 : "config"
[ 0.699438] libphy: Fixed MDIO Bus: probed
[ 0.711423] mtk_soc_eth 10100000.ethernet eth0 (uninitialized): port 0 link up (100Mbps/Full duplex)
[ 0.729839] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 0.742416] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 0.759472] rt2880_wdt 10000120.watchdog: Initialized
[ 0.770633] NET: Registered protocol family 10
[ 0.782396] NET: Registered protocol family 17
[ 0.791369] 8021q: 802.1Q VLAN Support v1.8
[ 0.805506] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 0.820555] Freeing unused kernel memory: 172K
[ 0.829400] This architecture does not have kernel memory protection.
[ 1.493437] init: Console is alive
[ 1.500495] init: - watchdog -
[ 2.290372] random: fast init done
[ 2.371843] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.519582] usbcore: registered new interface driver usbfs
[ 2.530672] usbcore: registered new interface driver hub
[ 2.541397] usbcore: registered new device driver usb
[ 2.558430] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.573147] ehci-platform: EHCI generic platform driver
[ 2.593938] phy phy-usbphy.0: remote usb device wakeup disabled
[ 2.605740] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 2.614619] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 2.626119] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 2.642037] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 2.663378] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 2.677069] hub 1-0:1.0: USB hub found
[ 2.684947] hub 1-0:1.0: 1 port detected
[ 2.695627] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.714295] init: - preinit -
[ 3.836497] 8021q: adding VLAN 0 to HW filter on device eth0
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
[ 5.123516] mount_root: no usable overlay filesystem found, using tmpfs overlay
[ 5.164279] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 5.287439] procd: - early -
[ 5.294037] procd: - watchdog -
[ 5.670852] procd: - watchdog -
[ 5.677466] procd: - ubus -
[ 5.726637] procd: - init -
Please press Enter to activate this console.
[ 6.060157] kmodloader: loading kernel modules from /etc/modules.d/*
[ 6.078875] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 6.101590] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 6.117612] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 6.135124] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 6.154649] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 6.221762] xt_time: kernel timezone is -0000
[ 6.387746] PPP generic driver version 2.4.2
[ 6.398897] NET: Registered protocol family 24
[ 6.436643] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "config"
[ 6.450930] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 6.466378] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[ 6.587390] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 10.459788] xt_conntrack: cannot load conntrack support for proto=10
[ 13.782340] jffs2: notice: (874) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 16.473532] 8021q: adding VLAN 0 to HW filter on device eth0
[ 16.512983] br-lan: port 1(eth0.1) entered blocking state
[ 16.523825] br-lan: port 1(eth0.1) entered disabled state
[ 16.534989] device eth0.1 entered promiscuous mode
[ 16.544577] device eth0 entered promiscuous mode
[ 16.671400] br-lan: port 1(eth0.1) entered blocking state
[ 16.682194] br-lan: port 1(eth0.1) entered forwarding state
[ 16.693501] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 17.521485] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 18.014933] xt_conntrack: cannot load conntrack support for proto=10
Mam i używam: Fujitsu Futro S720, Netgear R6220, Unielec U7621-06, TP-Linki 1043 V1, V2, Linksysy EA7500v2, AeroHive AP350, Linksys EA8500, ZTE MF286d.
Mam: D-Linki DWR-921, DWR-118, DWR-116, TP-Link WDR-4900 v1, Checkpoint L-50, Linksysy 1900ACS, LB-Link BL-W1200,