找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888广告投放联系QQ68610888
楼主: dmzn

nx30pro刷入OpenWRT指南

[复制链接]
 楼主| 发表于 2025-1-11 14:49 | 显示全部楼层

好吧,不确定nx30能不能刷入op。
这个教程是nx30 pro的,手上没有不带pro的设备。
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-1-14 11:56 | 显示全部楼层

Connecting to COM4...
Connected.


F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 024B [010F]
Jump to BL

NOTICE:  BL2: v2.7(release):
NOTICE:  BL2: Built : 01:15:47, Apr 27 2023
NOTICE:  WDT: disabled
NOTICE:  EMI: Using DDR3 settings
NOTICE:  EMI: Detected DRAM size: 256MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  CPU: MT7981 (1300MHz)
NOTICE:  SPI_NAND parses attributes from parameter page.
NOTICE:  SPI_NAND Detected ID 0xef
NOTICE:  Page size 2048, Block size 131072, size 134217728
NOTICE:  Initializing NMBM ...
NOTICE:  Signature found at block 1023 [0x07fe0000]
NOTICE:  First info table with writecount 140 found in block 960
NOTICE:  Second info table with writecount 140 found in block 963
NOTICE:  NMBM has been successfully attached in read-only mode
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):
NOTICE:  BL31: Built : 01:15:52, Apr 27 2023


U-Boot 2022.10-svn10661 (Apr 27 2023 - 01:14:35 +0800)

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:  256 MiB
Core:  33 devices, 13 uclasses, devicetree: separate
WDT:   Started watchdog@1001c000 with servicing (60s timeout)

Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 140 found in block 960
Second info table with writecount 140 found in block 963
No spare unmapped blocks. Device is now read-only
NMBM has been successfully attached

Loading Environment from UBI... ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -30
UBI error: cannot attach mtd6
UBI error: cannot initialize UBI, error -30
UBI init error 30
Please check, if the correct MTD partition is used (size big enough?)

** Cannot find mtd partition "ubi"
======== Save Default Environment ========
Saving Environment to UBI... ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -30
UBI error: cannot attach mtd6
UBI error: cannot initialize UBI, error -30
UBI init error 30
Please check, if the correct MTD partition is used (size big enough?)

** Cannot find mtd partition "ubi"
Failed (1)
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:   eth0: ethernet@15100000

***************************************************************************
*                                                                         *
*                      H3C NX30Pro Boot, Version 100                      *
*                                                                         *
***************************************************************************



  *** U-Boot Boot Menu ***

      1. Startup system (Default)
      2. Upgrade firmware
      3. Upgrade ATF BL2
      4. Upgrade ATF FIP
      5. Upgrade single image
      6. Load image
      0. U-Boot console


  Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -30
UBI error: cannot attach mtd6
UBI error: cannot initialize UBI, error -30
UBI init error 30
Please check, if the correct MTD partition is used (size big enough?)
*** Failed to attach UBI ***
<H3C>
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-1-14 11:57 | 显示全部楼层
是不是闪存坏了

点评

Connecting to COM4... Connected. F0: 102B 0000 FA: 1040 0000 FA: 1040 0000 [0200] F9: 0000 0000 V0: 0000 0000 [0001] 00: 0000 0000 BP: 2400 0041 [0000] G0: 1190 0000 EC: 0000 0000 [1000] T0: 0000 0  详情 回复 发表于 2025-1-14 11:58
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-1-14 11:58 | 显示全部楼层
zhosh 发表于 2025-1-14 11:57
是不是闪存坏了


Connecting to COM4...
Connected.


F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 024B [010F]
Jump to BL

NOTICE:  BL2: v2.7(release):
NOTICE:  BL2: Built : 01:15:47, Apr 27 2023
NOTICE:  WDT: disabled
NOTICE:  EMI: Using DDR3 settings
NOTICE:  EMI: Detected DRAM size: 256MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  CPU: MT7981 (1300MHz)
NOTICE:  SPI_NAND parses attributes from parameter page.
NOTICE:  SPI_NAND Detected ID 0xef
NOTICE:  Page size 2048, Block size 131072, size 134217728
NOTICE:  Initializing NMBM ...
NOTICE:  Signature found at block 1023 [0x07fe0000]
NOTICE:  First info table with writecount 140 found in block 960
NOTICE:  Second info table with writecount 140 found in block 963
NOTICE:  NMBM has been successfully attached in read-only mode
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):
NOTICE:  BL31: Built : 01:15:52, Apr 27 2023


U-Boot 2022.10-svn10661 (Apr 27 2023 - 01:14:35 +0800)

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:  256 MiB
Core:  33 devices, 13 uclasses, devicetree: separate
WDT:   Started watchdog@1001c000 with servicing (60s timeout)

Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: Winbond SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 140 found in block 960
Second info table with writecount 140 found in block 963
No spare unmapped blocks. Device is now read-only
NMBM has been successfully attached

Loading Environment from UBI... ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -30
UBI error: cannot attach mtd6
UBI error: cannot initialize UBI, error -30
UBI init error 30
Please check, if the correct MTD partition is used (size big enough?)

** Cannot find mtd partition "ubi"
======== Save Default Environment ========
Saving Environment to UBI... ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -30
UBI error: cannot attach mtd6
UBI error: cannot initialize UBI, error -30
UBI init error 30
Please check, if the correct MTD partition is used (size big enough?)

** Cannot find mtd partition "ubi"
Failed (1)
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:   eth0: ethernet@15100000

***************************************************************************
*                                                                         *
*                      H3C NX30Pro Boot, Version 100                      *
*                                                                         *
***************************************************************************



  *** U-Boot Boot Menu ***

      1. Startup system (Default)
      2. Upgrade firmware
      3. Upgrade ATF BL2
      4. Upgrade ATF FIP
      5. Upgrade single image
      6. Load image
      0. U-Boot console


  Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 warning: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read only 0 bytes, retry
ubi0 error: ubi_io_read: error -30 while reading 64 bytes from PEB 0:0, read 0 bytes
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd6, error -30
UBI error: cannot attach mtd6
UBI error: cannot initialize UBI, error -30
UBI init error 30
Please check, if the correct MTD partition is used (size big enough?)
*** Failed to attach UBI ***
<H3C>

点评

看错误提示是找不到ubi,要不是试试 factory 尝试救以下。 地址: https://firmware-selector.immortalwrt.org/?version=23.05.4&target=mediatek%2Ffilogic&id=h3c_magic-nx30-pro-nmbm  详情 回复 发表于 2025-1-15 16:49
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-1-15 16:49 | 显示全部楼层
zhosh 发表于 2025-1-14 11:58
Connecting to COM4...
Connected.

看错误提示是找不到ubi,要不是试试 factory 尝试救以下。

地址:
https://firmware-selector.immort ... magic-nx30-pro-nmbm

点评

大佬,怎么刷factory,路由器是突然变砖的之前没刷机过  详情 回复 发表于 2025-1-15 17:43
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-1-15 17:43 | 显示全部楼层
dmzn 发表于 2025-1-15 16:49
看错误提示是找不到ubi,要不是试试 factory 尝试救以下。

地址:

大佬,怎么刷factory,路由器是突然变砖的之前没刷机过

点评

H3C Unknown command 'H3C' - try 'help' help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd'  详情 回复 发表于 2025-1-15 18:04
<H3C> H3C Unknown command 'H3C' - try 'help' <H3C> help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run   发表于 2025-1-15 18:03
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-1-15 18:04 | 显示全部楼层
zhosh 发表于 2025-1-15 17:43
大佬,怎么刷factory,路由器是突然变砖的之前没刷机过

<H3C> H3C
Unknown command 'H3C' - try 'help'
<H3C> help
?         - alias for 'help'
base      - print or set address offset
bdinfo    - print Board Info structure
boot      - boot default, i.e., run 'bootcmd'
bootd     - boot default, i.e., run 'bootcmd'
booti     - boot Linux kernel 'Image' format from memory
bootm     - boot application image from memory
bootmenu  - ANSI terminal bootmenu
bootp     - boot image via network using BOOTP/TFTP protocol
burn      - burn   - TFTP download boot or app file to flash

cmp       - memory compare
coninfo   - print console devices and information
cp        - memory copy
crc32     - checksum calculation
dram      - dram   - write or read data to dram for test

echo      - echo args to console
editenv   - edit environment variable
env       - environment handling commands
fdt       - flattened device tree utility commands
go        - start application at address 'addr'
gpio      - query and control gpio pins
help      - print command description/usage
iminfo    - print header information for application image
imxtract  - extract a part of a multi-image
itest     - return true/false on integer compare
loadb     - load binary file over serial line (kermit mode)
loads     - load S-Record file over serial line
loadx     - load binary file over serial line (xmodem mode)
loady     - load binary file over serial line (ymodem mode)
loop      - infinite loop on address range
lzmadec   - lzma uncompress a memory region
md        - memory display
mm        - memory modify (auto-incrementing address)
mtd       - MTD utils
mtkautoboot- Display MediaTek bootmenu
mtkboardboot- Boot MTK firmware
mtkload   - MTK image loading utility
mtkupgrade- MTK firmware/bootloader upgrading utility
mw        - memory write (fill)
nand      - NAND utility
net       - NET sub-system
nfs       - boot image via network using NFS protocol
nm        - memory modify (constant address)
nmbm      - NMBM utility commands
panic     - Panic with optional message
pci       - list and access PCI Configuration Space
ping      - send ICMP ECHO_REQUEST to network host
pinmux    - show pin-controller muxing
printenv  - print environment variables
pwm       - control pwm channels
random    - fill memory with random pattern
reset     - Perform RESET of the CPU
run       - run commands in an environment variable
saveenv   - save environment variables to persistent storage
setenv    - set environment variables
setexpr   - set environment variable as the result of eval expression
sleep     - delay execution for some time
smc       - Issue a Secure Monitor Call
source    - run script from memory
tftpboot  - load file via network using TFTP protocol
ubi       - ubi commands
ubifsload - load file from an UBIFS filesystem
ubifsls   - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
version   - print monitor, compiler and linker version
<H3C> tftpboot
*** Warning: no boot file name; using 'C0A87C01.img'
Using ethernet@15100000 device
TFTP from server 192.168.124.251; our IP address is 192.168.124.1
Filename 'C0A87C01.img'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
<H3C>
在这个help界面操作吗?

点评

*** U-Boot Boot Menu *** 1. Startup system (Default) 2. Upgrade firmware 3. Upgrade ATF BL2 4. Upgrade ATF FIP 5. Upgrade single image 6. Load image 0. U-B  详情 回复 发表于 2025-1-16 10:31
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-1-16 10:31 | 显示全部楼层
zhosh 发表于 2025-1-15 18:04
H3C
Unknown command 'H3C' - try 'help'
help

  *** U-Boot Boot Menu ***

      1. Startup system (Default)
      2. Upgrade firmware
      3. Upgrade ATF BL2
      4. Upgrade ATF FIP
      5. Upgrade single image
      6. Load image
      0. U-Boot console

看菜单2 5 6菜单可以加载外部的镜像。手上没有设备,无法测试。

点评

好的,谢谢  详情 回复 发表于 2025-1-16 13:35
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-1-16 13:35 | 显示全部楼层
dmzn 发表于 2025-1-16 10:31
*** U-Boot Boot Menu ***

      1. Startup system (Default)

好的,谢谢

点评

关键点:打开下面的 在线固件选择器 --> 自定义预安装软件包和首次启动配置脚本 --> 预安装的软件包,追加 kmod-mtd-rw --> 请求构建,得到有写入权限的系统,文件名为 squashfs-sysupgrade.itb 这一步中追加kmod-mt  详情 回复 发表于 2025-1-16 16:55
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

发表于 2025-1-16 16:55 | 显示全部楼层

关键点:打开下面的 在线固件选择器 --> 自定义预安装软件包和首次启动配置脚本 --> 预安装的软件包,追加 kmod-mtd-rw --> 请求构建,得到有写入权限的系统,文件名为 squashfs-sysupgrade.itb
这一步中追加kmod-mtd-rw,是在软件包栏还是脚本栏

点评

预安装的软件包  详情 回复 发表于 2025-1-18 15:37
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-1-18 15:37 | 显示全部楼层
zhosh 发表于 2025-1-16 16:55
关键点:打开下面的 在线固件选择器 --> 自定义预安装软件包和首次启动配置脚本 --> 预安装的软件包,追 ...

预安装的软件包
只谈技术、莫论政事!(点击见详情) | 恩山无线论坛欢迎您的来访,请互相尊重、友善交流,建议保持一颗平常心看待网友的评论,切勿过度反应。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2025-1-26 04:00

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表