hanwckf / bl-mt798x Goto Github PK
View Code? Open in Web Editor NEWATF and u-boot for mt798x.
ATF and u-boot for mt798x.
求JDCloud-AX6000-百里,适配官方openwrt主线固件
希望能支持 DHCP,不用来回再改IP了
不推荐使用?
查阅了mt7986a-tplink-tl-xdr608x.dts文件,发现驱动的是mt7531交换芯片,这是否意味着Uboot下只能通过千兆口刷机?
有无办法能支持Uboot下驱动起来2.5G口,来进行刷机?
望大佬解答,谢谢!
大佬 论坛看到可以dhcp了 没见更新啊
在 恩山这个帖子中 237给出了两个分区类型,一个是大分区,一个是小分区.其评论区出现 大分区刷回官方固件出现故障
的问题,其基于的源代码是本项目
所以请教一下,本项目默认手动编译是什么分区类型.(大 小分区应该是非严谨的说法)
另外在这个帖子中, paldier提到h3c开始启用了nmbm,如果刷入不支持的uboot,可能出现坏块等问题.请问默认编译下uboot是否启用nmbm.
有没有已经刷过的nx30pro反馈一下,是否能够刷回官方固件,以及能否正常升级
另外,使用 firmware-selector.immortalwrt ,应该选择那种内存布局的固件(NMBM layout 还是 OpenWrt U-Boot layout)
看到fix MT7981 available DDR4 size and adjust DDR_SIZE choices in Config.in
是指MT7981不能支持2GB的DDR4吗
希望能支持rax3000m_nand硬改256M闪存
OP固件版本
OpenWrt SNAPSHOT r23449-186976c963 / LuCI Master git-23.175.80454-fd5440a
内核版本
5.15.118
型号
Qihoo 360T7
希望大佬的uboot支持这个固件
测试了大佬的uboot可以引导
uboot下刷机时候会报错,不能验证openwrt官网固件,设备名不对
20240123的release 小米AX3000T 刷不了任何东西,openwrt或者immortalwrt刷完进入后台都是无法进入,
Router with uboot multilayout and OpenWrt 23.05.2 cannot be shutdown from the operation system.
Test case:
The same test case with OpenWrt and stock uboot doesn’t reproduced.
I believe some features (power management system or watchdog?) should be corrected in the uboot configuration of the mtk uboot.
Could you please help to investigate the issue?
Hello, can you update uboot to gl.inet mt3000?
怎么联系,有硬件适配需求
Consider adding mt7621/mt7622 support. At least mt7622 for devices such as linksys e8450, netgear wax206.
NMBM has its own problems which caused the opposition from the OpenWRT and Linux upstream developers, and this uboot only supports firmwares with NMBM enabled.
Would it be possible to have some configs with NMBM disabled?
H3C NX30Pro 这个机型可以添加吗?
Enabling net console will simplify debugging, as connecting via TTL is not always easy.
I tried to enable it by adding the following changes and connect to the router with ./tools/netconsole 192.168.1.1
, but there is always no reply.
diff --git a/uboot-mtk-20230718-09eda825/board/mediatek/mt7981/mt7981.env b/uboot-mtk-20230718-09eda825/board/mediatek/mt7981/mt7981.env
new file mode 100644
index 00000000..7daf03b8
--- /dev/null
+++ b/uboot-mtk-20230718-09eda825/board/mediatek/mt7981/mt7981.env
@@ -0,0 +1,3 @@
+stdout=nc
+stdin=nc
+ncip=192.168.1.2
diff --git a/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig b/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig
index 6d033e41..b9017a16 100644
--- a/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig
+++ b/uboot-mtk-20230718-09eda825/configs/mt7981_h3c_magic-nx30-pro_defconfig
@@ -98,3 +98,5 @@ CONFIG_MTK_SPIM=y
CONFIG_TIMER=y
CONFIG_MTK_TIMER=y
CONFIG_HEXDUMP=y
+CONFIG_PROT_UDP=y
+CONFIG_NETCONSOLE=y
wr30u 刷完系统后能用,但插拔电源就起不来了。
系统指示灯为黄色。
重刷就可以解决,但是依然不能插拔电,否则又起不来了
@1715173329 @hanwckf
试了多次都不能进入uboot web界面,这个设备是不是没有适配好 设备 ct3003
The OpenWrt ubootmod Firmware flash layout is the following
dev: size erasesize name
mtd0: 00100000 00020000 "BL2"
mtd1: 00040000 00020000 "Nvram"
mtd2: 00040000 00020000 "Bdata"
mtd3: 00200000 00020000 "Factory"
mtd4: 00200000 00020000 "FIP"
mtd5: 07a80000 00020000 "ubi"
However the memory layout used in this boot loader is different
Is it possible to convert the memory layout to the OpenWrt one? Or else is there any reasons against that?
Having another layout on top of the existing two adds to the fragmentation of the community and causes confusion for the users, especially when there is a lack of documentation.
尝试过在刷FIP分区的uboot的时候使用了tftp,并且指定了路由的IP地址为 10.100.0.10, server端的IP地址为 10.100.0.11,这个时候似乎IP地址被写入了某个地方(猜测是u-boot-env)中 在openwrt中使用 fw_printenv
就可以看到当前的所有env变量
后面如果长按reset进入failsafe webui的时候,路由器就会默认使用 10.100.0.10 这个IP作为本机的IP,电脑就必须指定和它同网段的IP才能访问 failsafe webui了
在这里,如果是不记得之前到底是用了哪个IP的话,不用TTL串口调试就不太有机会知道当时设置的IP是哪个了 只能通过进入openwrt的shell中用 fw_printenv
命令查看了
锁定IP的办法 通过查看代码,初步判断是这样子的
代码这里有一个叫 CONFIG_NET_FORCE_IPADDR 的配置项来管理的这个选项 到底是选用固定的IP还是从环境变量中取得的IP
而uboot的默认IP定义是在代码的这里
所以是不是说 在上面这个文件(只针对360t7) 在最后一行加入 CONFIG_NET_FORCE_IPADDR=y
再编译之后 就可以锁定IP地址不再变化
而小米和康佳之类的默认IP不一致也是这个原因,因为默认状态下对应的环境变量设置就不是192.168.1.1
Are Xiaomi router wr30u and Xiaomi router ax3000t compatible?
手工更新新版本的UBOOT后,原大分区固件启动不了,默认是标准分区引导。只有选大分区引导重刷固件,才能启动。H大能直接首页加个切换UBOOT模式不,这样更新UBOOT后,不用每次都重刷固件。感谢 (类似BREED,可以直接切换UBOOT的类型)
如标题所述。我使用windows电脑从github下载release文件,上传到路由器上安装。我能做的只能是:在windows电脑和路由器上计算md5值并进行对比。但是这样做没法保证我的下载是正确的。
As the title says, I use a Windows computer to download release files from GitHub and upload them to the router for installation. All I can do is: calculate the MD5 values on both the Windows computer and the router and compare them. However, this method cannot ensure that my download is correct.
希望rax3000m的uboot也能支持官方openwrt
另外cat /proc/mtd得出 size erasesize 又怎么理解?
先谢过。
其他机型方便出多分区uboot吗?比如保有量最大的360T7
Banana pi BPI-R3
WIKI:https://wiki.banana-pi.org/Banana_Pi_BPI-R3
Official BPI-R3 kernel v5.15 + firmware repo: https://github.com/BPI-SINOVOIP/BPI-R3-bsp-5.15
Official OpenWrt 21.02 for BPI-R3 repo: https://github.com/BPI-SINOVOIP/BPI-R3-OPENWRT-V21.02.3
Instructions:https://forum.banana-pi.org/t/banana-pi-bpi-r3-openwrt-image/13236/4
mt7981_ax3000t-fip-fixed-parts-multi-layout.bin
;在 20240123 版本中,AX3000T 的 uboot 文件名为mt7981_ax3000t-fip-fixed-parts.bin
Choose mtd layout
选项。我也没有在 release note 中见到相关更改。请问这是一个 release 错误吗?还是做了更好的兼容处理呢?immortalwrt-mediatek-mt7981-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin
固件时,页面定格在UPDATE IN PROGRESS
,无法自动跳转到UPGRADE COMPLETE
。(但固件可以刷入)ubinfo -a
命令,得到以下结果:root@ImmortalWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 08000000 00020000 "spi0.0"
mtd1: 00100000 00020000 "BL2"
mtd2: 00040000 00020000 "Nvram"
mtd3: 00040000 00020000 "Bdata"
mtd4: 00200000 00020000 "Factory"
mtd5: 00200000 00020000 "FIP"
mtd6: 00040000 00020000 "crash"
mtd7: 00040000 00020000 "crash_log"
mtd8: 07000000 00020000 "ubi"
mtd9: 00040000 00020000 "KF"
root@ImmortalWrt:~# cat /proc/partitions
major minor #blocks name
31 0 131072 mtdblock0
31 1 1024 mtdblock1
31 2 256 mtdblock2
31 3 256 mtdblock3
31 4 2048 mtdblock4
31 5 2048 mtdblock5
31 6 256 mtdblock6
31 7 256 mtdblock7
31 8 114688 mtdblock8
31 9 256 mtdblock9
253 0 35588 ubiblock0_1
252 0 114688 zram0
root@ImmortalWrt:~# ubinfo -a
UBI version: 1
Count of UBI devices: 1
UBI control device major/minor: 10:62
Present UBI devices: ubi0
ubi0
Volumes count: 3
Logical eraseblock size: 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks: 896 (113770496 bytes, 108.5 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 19
Current maximum erase counter value: 2
Minimum input/output unit size: 2048 bytes
Character device major/minor: 249:0
Present volumes: 0, 1, 2
感谢!
在 http://192.168.1.1/uboot.html 下升级uboot 出错。uboot 是下载 https://github.com/hanwckf/bl-mt798x/releases/download/20231124/mt798x-uboot-202307-fip.7z
当前的版本是 U-Boot 2022.07-rc3 (Jun 26 2023 - 21:04:00 +0800)
出错显示:
Something went wrong during update
Probably you have chosen wrong file. Please, try again or contact with the author of this modification. You can also get more information during update in U-Boot console.
My AX3000t is restarting in a loop regardless of the image loaded. I followed the steps in this video https://www.youtube.com/watch?v=l-rczGl4i0I. I don't know if this is the cause of the problem but I installed the file "mt7981_ax3000t-fip-fixed-parts.bin" from Release 20240123 instead of the "mt7981_ax3000t-fip-fixed-parts-multi-layout.bin" from Release 20231124 used in video. I would appreciate it if anyone knows what to do.
immortalwrt-mt798x项目已经适配了磊科n60,但没有配套的uboot,能否出个适配磊科n60的uboot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.