openwrt PandoraBox PBR-M1 极路由4 HC5962 更新固件

PBR-M1 极路由4 HC5962 一个用 SPI FLASH 32M ,一个用 NAND FLASH 128M ,其它基本一致。

功能:
LuCI
<*> luci-app-adblock
<*> luci-app-aria2
<*> luci-app-advanced-reboot
<*> luci-app-qos

多语言
简体中文 英文 日本语

多主题
luci-theme-material
luci-theme-openwrt
luci-theme-openwrt-2020

常用工具
curl
wget
tcpdump
adb

使用最新版固件后,系统不启动。还好 PBR-M1 有 TTL 串口,接上看LOG

U-Boot 1.1.3 (Feb  6 2015 - 14:42:34)                                                     

SoC:MediaTek MT7621 
DRAM:  256 MB
relocate_code Pointer at: 8ffa8000

Config XHCI 40M PLL 
flash manufacture id: ef, device id 40 19
Flash:W25Q256FV Size:32MB
 _______________________________________________________________ 
|    ____                 _                 ____               |
|   |  _ \ __ _ _ __   __| | ___  _ __ __ _| __ )  _____  __   |
|   | |_) / _` | '_ \ / _` |/ _ \| '__/ _` |  _ \ / _ \ \/ /   |
|   |  __/ (_| | | | | (_| | (_) | | | (_| | |_) | (_) >  <    |
|   |_|   \__,_|_| |_|\__,_|\___/|_|  \__,_|____/ \___/_/\_\   |
|                                                              |
|                PandoraBox Ralink/MTK Platform                |
|          Copyright 2014 D-Team Technology Co.,Ltd. SZ        |
|                     Board:PandoraBox PBR-M1                  |
|                                                              |
|                 lintel<lintel.huang@gmail.com>               |
|______________________________________________________________|

===============Board Info================== 
CPU Frequency:880MHz 
Detected Memory:256MiB
Bootloader Version:4.3.0.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:Feb  6 2015  Time:14:42:34
============================================ 
icache: sets:256, ways:4, linesz:32 ,total:32KiB
dcache: sets:256, ways:4, linesz:32 ,total:32KiB 
============================================ 
#Reset_MT7530

GSW VLAN:WLLL 
GPIO_MODE init:
        I2C:GPIO
        UART_F:GPIO
        GE2:GPIO
        WDT_RST:GPIO
GPIO_MODE_REGs: 0x4853d
Beep PowerUP!
READY_LED_BIT:25.
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 bfc50000 ...
   Image Name:   MIPS OpenWrt Linux-5.4.89
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2421077 Bytes =  2.3 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, 256

Starting kernel ...

[    0.000000] Linux version 5.4.89 (admin@XPS-8700) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r14693-83fcc0e)) #0 SMP Fri Jan 15 19:49:01 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is PBR-M1
[    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] OF: fdt: Cannot locate property at 0x2640
[    0.000000] OF: fdt: Cannot locate property at 0x2694
[    0.000000] OF: fdt: Cannot locate property at 0x26e8
[    0.000000] OF: fdt: Cannot locate property at 0x2640
[    0.000000] OF: fdt: Cannot locate property at 0x2694
[    0.000000] OF: fdt: Cannot locate property at 0x26e8
[    0.000000] percpu: Embedded 14 pages/cpu s26736 r8192 d22416 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: rootfstype=squashfs,jffs2 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=00060053
[    0.000000] Readback ErrCtl register=00060053
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 250604K/262144K available (5810K kernel code, 202K rwdata, 1248K rodata, 1240K init, 230K bss, 11540K reserved, 0K cma-reserve
d, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 256
[    0.000000] random: get_random_bytes called from start_kernel+0x340/0x558 with crng_init=0
[    0.000000] Kernel panic - not syncing: Failed to get resource for mtk,mt7621-sysc
[    0.000000] Rebooting in 1 seconds..
[    0.000000] Reboot failed -- System halted

搜索关键字
Kernel panic - not syncing: Failed to get resource for mtk,mt7621-sysc

找到 修改方法 vi target/linux/ramips/image/mt7621.mk
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=ad19751edc21ae713bd95df6b93be64bd1e0c612;hp=f814121600e5cf43fd75fe93e5b1b54f65b71bcd

手动添加上 $(Device/uimage-lzma-loader) 

diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
index d530d5a..84db693 100644
--- a/target/linux/ramips/image/mt7621.mk
+++ b/target/linux/ramips/image/mt7621.mk
@@ -347,6 +347,7 @@ TARGET_DEVICES += d-team_newifi-d2
 
 define Device/d-team_pbr-m1
   $(Device/dsa-migration)
+  $(Device/uimage-lzma-loader)
   IMAGE_SIZE := 32448k
   DEVICE_VENDOR := PandoraBox
   DEVICE_MODEL := PBR-M1

主题: freifunk-generic 有问题,不能使用

A runtime error occurred: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'themes/freifunk-generic
SSH 连接上去,执行复位操作
firstboot && reboot -f

PBR-M1 最开始出的时候,有2个版本 16M 32M ,但是配置一直是16M ,直接最近有人提交了修改调为 32M 。

diff --git a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
index 15b7176..beaa380 100644
--- a/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
+++ b/target/linux/ramips/dts/mt7621_d-team_pbr-m1.dts
@@ -139,7 +139,7 @@
                        partition@50000 {
                                compatible = "denx,uimage";
                                label = "firmware";
-                               reg = <0x50000 0xfb0000>;
+                               reg = <0x50000 0x1fb0000>;
                        };
                };
        };

 

PBR-M1弄好以后,修改一下配置,编译出 极路由4 HC5962 固件:

openwrt-ramips-mt7621-hiwifi_hc5962-squashfs-factory.bin
openwrt-ramips-mt7621-hiwifi_hc5962-squashfs-sysupgrade.bin
openwrt-ramips-mt7621-hiwifi_hc5962-initramfs-kernel.bin

在 boot 中更新的是 openwrt-ramips-mt7621-hiwifi_hc5962-squashfs-factory.bin ,在系统正常启动以后可以在管理页面,手动更新 openwrt-ramips-mt7621-hiwifi_hc5962-squashfs-sysupgrade.bin 

 

openwrt PandoraBox PBR-M1 极路由4 HC5962 更新固件

 

新版的固件,主题挺漂亮。

上一篇:Pbr和一般光照模型的区别


下一篇:翻译的Allegorithmic的文档《THE PBR GUIDE - PART 1》