I have a ZBT-WG1602 router. I have added the device into build-Root using this document https://openwrt.org/docs/guide-developer/adding_new_device my firmware has been compiled successfully. The initramfs-kernel.bin file has been flashed successfully but when I am flashing the sysupgrade.bin file my router getting into the boot loop. Below are the serial logs.
U-Boot 1.1.3 (Apr 11 2015 - 20:07:37)
SoC:MediaTek MT7621
DRAM: 512MB(448MB LowMem,64MB HighMem)
relocate_code Pointer at: 9bfa8000
Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 18
Flash:W25Q128BV Size:16MB
*** Warning - bad CRC, using default environment
_______________________________________________________________
| ____ _ ____ |
| | _ \ __ _ _ __ __| | ___ _ __ __ _| __ ) _____ __ |
| | |_) / _` | '_ \ / _` |/ _ \| '__/ _` | _ \ / _ \ \/ / |
| | __/ (_| | | | | (_| | (_) | | | (_| | |_) | (_) > < |
| |_| \__,_|_| |_|\__,_|\___/|_| \__,_|____/ \___/_/\_\ |
| |
| PandoraBox Ralink/MTK Platform |
| The best solution for you |
| Copyright 2015 D-Team Technology Co.,Ltd. SZ |
| Board:AmazingBox |
| |
| lintel<lintel.huang@gmail.com> |
|______________________________________________________________|
===============Board Info==================
CPU Frequency:880MHz
Detected Memory:448MiB
Bootloader Version:4.3.1.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: SPI Flash
Date:Apr 11 2015 Time:20:07:37
============================================
icache: sets:256, ways:4, linesz:32 ,total:32KiB
dcache: sets:256, ways:4, linesz:32 ,total:32KiB
============================================
#Reset_MT7530
GSW VLAN:LLLW
GPIO_MODE init:
I2C:GPIO
UART_F:GPIO
GE2:GPIO
WDT_RST:GPIO
GPIO_MODE_REGs: 0x4853d
READY_LED_BIT:14.
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP. 0
3: System Boot system code via Flash.
Press Reset button enter upgrade mode!
## Booting image at bc050000 ...
Image Name: MIPS OpenWrt Linux-4.14.241
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1927586 Bytes = 1.8 MB
Load Address: 80001000
Entry Point: 80001000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 512
Starting kernel ...
[ 0.000000] Linux version 4.14.241 (root@firmware-dev) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11364-ef56c85848)) #0 SMP Thu Jul 29 19:50:28 2021
[ 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 ZBT-WG1602
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 10000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 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-0x000000000fffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x94/0x4ac with crng_init=0
[ 0.000000] percpu: Embedded 14 pages/cpu s26192 r8192 d22960 u57344
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Writing ErrCtl register=00002001
[ 0.000000] Readback ErrCtl register=00002001
[ 0.000000] Memory: 252212K/262144K available (4556K kernel code, 231K rwdata, 1012K rodata, 1292K init, 248K bss, 9932K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 880MHz
[ 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.007825] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.073990] pid_max: default: 32768 minimum: 301
[ 0.078765] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.085274] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094142] Hierarchical SRCU implementation.
[ 0.099310] smp: Bringing up secondary CPUs ...
[ 0.105375] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.105384] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.105397] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.105533] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.164049] Synchronize counters for CPU 1: done.
[ 0.205241] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.205248] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.205256] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.205328] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 0.255114] Synchronize counters for CPU 2: done.
[ 0.286409] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.286418] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.286425] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.286503] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 0.340301] Synchronize counters for CPU 3: done.
[ 0.370155] smp: Brought up 1 node, 4 CPUs
[ 0.377884] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.387679] futex hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.393977] pinctrl core: initialized pinctrl subsystem
[ 0.400671] NET: Registered protocol family 16
[ 0.416524] pull PCIe RST: RALINK_RSTCTRL = 0
[ 0.721242] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.726276] ***** Xtal 40MHz *****
[ 0.729647] release PCIe RST: RALINK_RSTCTRL = 7000000
[ 0.734755] Port 0 N_FTS = 1b105000
[ 0.738198] Port 1 N_FTS = 1b105000
[ 0.741658] Port 2 N_FTS = 1b102800
[ 1.896904] PCIE2 no card, disable it(RST&CLK)
[ 1.901250] -> 21007f2
[ 1.903669] PCIE0 enabled
[ 1.906276] PCIE1 enabled
[ 1.908863] PCI host bridge /pcie@1e140000 ranges:
[ 1.913626] MEM 0x0000000060000000..0x000000006fffffff
[ 1.918808] IO 0x000000001e160000..0x000000001e16ffff
[ 1.923981] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[ 1.940363] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.946198] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.951919] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 1.959302] PCI host bridge to bus 0000:00
[ 1.963340] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 1.970195] pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff]
[ 1.976973] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.983729] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.993813] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 2.000326] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.007274] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 2.013806] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 2.020739] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[ 2.027463] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[ 2.034217] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[ 2.041366] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[ 2.048131] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[ 2.054861] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[ 2.061614] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.066514] pci 0000:00:00.0: bridge window [mem 0x60000000-0x600fffff]
[ 2.073273] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[ 2.080515] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[ 2.087699] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 2.092607] pci 0000:00:01.0: bridge window [mem 0x60100000-0x601fffff]
[ 2.099363] pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff pref]
[ 2.107898] clocksource: Switched to clocksource GIC
[ 2.114503] NET: Registered protocol family 2
[ 2.118964] IP idents hash table entries: 4096 (order: 3, 32768 bytes)
[ 2.126000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 2.132950] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[ 2.139345] TCP: Hash tables configured (established 2048 bind 2048)
[ 2.145750] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.151555] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.158054] NET: Registered protocol family 1
[ 2.397857] 4 CPUs re-calibrate udelay(lpj = 2924544)
[ 2.404440] Crashlog allocated RAM at address 0x3f00000
[ 2.410048] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[ 2.418873] random: fast init done
[ 2.427028] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.432840] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.446246] io scheduler noop registered
[ 2.450153] io scheduler deadline registered (default)
[ 2.456030] gpio-export gpio_export: 3 gpio(s) exported
[ 2.462137] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 2.469884] console [ttyS0] disabled
[ 2.497c8CDCHLcRr3k3Qo6b1hNHB8ySdfnSwMBKfnhcNviT6GUftPy4uoNhDfPmkqAV4E2eGXa5eRNLoZnc4xkxbmij7PfENwd
[ 2.482448] console [ttyS0] enabled
[ 2.482448] console [ttyS0] enabled
[ 2.489332] bootconsole [early0] disabled
[ 2.489332] bootconsole [early0] disabled
[ 2.499493] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[ 2.506823] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[ 2.521884] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 2.526633] 4 fixed-partitions partitions found on MTD device spi0.0
[ 2.532976] Creating 4 MTD partitions on "spi0.0":
[ 2.537755] 0x000000000000-0x000000030000 : "u-boot"
[ 2.543734] 0x000000030000-0x000000040000 : "u-boot-env"
[ 2.549999] 0x000000040000-0x000000050000 : "factory"
[ 2.555926] 0x000000050000-0x000002000000 : "firmware"
[ 2.561101] mtd: partition "firmware" extends beyond the end of device "spi0.0" -- size truncated to 0xfb0000
[ 2.572657] libphy: Fixed MDIO Bus: probed
[ 2.639925] libphy: mdio: probed
[ 4.042907] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[ 4.049635] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 22
[ 4.060819] NET: Registered protocol family 10
[ 4.066880] Segment Routing with IPv6
[ 4.070664] NET: Registered protocol family 17
[ 4.075146] 8021q: 802.1Q VLAN Support v1.8
[ 4.081847] hctosys: unable to open rtc device (rtc0)
[ 4.087737] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 4.095268] Please append a correct "root=" boot option; here are the available partitions:
[ 4.103626] 1f00 192 mtdblock0
[ 4.103633] (driver?)
[ 4.110161] 1f01 64 mtdblock1
[ 4.110166] (driver?)
[ 4.116667] 1f02 64 mtdblock2
[ 4.116671] (driver?)
[ 4.123193] 1f03 16064 mtdblock3
[ 4.123198] (driver?)
[ 4.129716] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 4.139606] Rebooting in 1 seconds..
Below is the device definition.
define Device/zbt-wg1602
DTS := ZBT-WG1602
IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := ZBT WG1602
DEVICE_PACKAGES := kmod-usb2
endef
TARGET_DEVICES += zbt-wg1602
Help @musashino @juppin @hnyman
please help me. Thank You