Giter Site home page Giter Site logo

hanwckf / bl-mt798x Goto Github PK

View Code? Open in Web Editor NEW
535.0 535.0 155.0 47.86 MB

ATF and u-boot for mt798x.

Shell 0.14% JavaScript 0.02% C++ 0.08% Python 2.83% Perl 0.36% C 93.24% Tcl 0.01% Assembly 2.04% Awk 0.01% CSS 0.01% Makefile 1.17% HTML 0.01% Handlebars 0.01% Batchfile 0.01% Yacc 0.02% Lex 0.01% POV-Ray SDL 0.02% GDB 0.01% Dockerfile 0.01% Roff 0.03%

bl-mt798x's People

Contributors

1715173329 avatar aabandon avatar benboguan avatar codercaizh avatar gl-niyin avatar gl-zhaojianhui avatar hanwckf avatar lgs2007m avatar nekokecore avatar tsl0922 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bl-mt798x's Issues

可以增加个UBOOT模式 切换按钮不?

手工更新新版本的UBOOT后,原大分区固件启动不了,默认是标准分区引导。只有选大分区引导重刷固件,才能启动。H大能直接首页加个切换UBOOT模式不,这样更新UBOOT后,不用每次都重刷固件。感谢 (类似BREED,可以直接切换UBOOT的类型)

Questions regarding the flash layout

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

CONFIG_MTDPARTS_DEFAULT="nmbm0:1024k(bl2),256k(Nvram),256k(Bdata),2048k(factory),2048k(fip),256k(crash),256k(crash_log),112640k(ubi)"

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.

wr30u重新插拔电源系统无法启动

wr30u 刷完系统后能用,但插拔电源就起不来了。

系统指示灯为黄色。

重刷就可以解决,但是依然不能插拔电,否则又起不来了

Enable net console

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

希望在release中一起提供各个bin包的md5值,以便使用者确认文件是否完整。We hope to provide the MD5 values for each .bin file in the release, so that users can verify the integrity of the files.

如标题所述。我使用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.

AX3000t restarting in loop

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.

Support MT7621/MT7622

Consider adding mt7621/mt7622 support. At least mt7622 for devices such as linksys e8450, netgear wax206.

AX3000T为什么在20240123的release中移除了multi-layout

  1. 在 20231124 版本中,AX3000T 的 uboot 文件名为mt7981_ax3000t-fip-fixed-parts-multi-layout.bin;在 20240123 版本中,AX3000T 的 uboot 文件名为mt7981_ax3000t-fip-fixed-parts.bin
  2. 在实际刷机测试中,20240123 版本的 uboot webui 没有Choose mtd layout选项。我也没有在 release note 中见到相关更改。请问这是一个 release 错误吗?还是做了更好的兼容处理呢?
  3. 使用 20240123 版本的 uboot webui 刷入237immortalwrt-mediatek-mt7981-xiaomi_mi-router-ax3000t-squashfs-sysupgrade.bin固件时,页面定格在UPDATE IN PROGRESS,无法自动跳转到UPGRADE COMPLETE。(但固件可以刷入)
  4. 刷入固件后,在 ssh 中运行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

感谢!

请教大佬们,怎么升级 MR3000D CIq和JCG Q30 Pro 的Uboot?

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.

XDR608x能否支持驱动2.5G网口?

查阅了mt7986a-tplink-tl-xdr608x.dts文件,发现驱动的是mt7531交换芯片,这是否意味着Uboot下只能通过千兆口刷机?
有无办法能支持Uboot下驱动起来2.5G口,来进行刷机?

望大佬解答,谢谢!

关于 failsafe webui 的IP地址变化的问题及相应的解决办法

尝试过在刷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

能适配下磊科n60吗?

immortalwrt-mt798x项目已经适配了磊科n60,但没有配套的uboot,能否出个适配磊科n60的uboot

Xiaomi ax3000t restarted after shutdown

Router with uboot multilayout and OpenWrt 23.05.2 cannot be shutdown from the operation system.

Test case:

  1. Flash mtk uboot
  2. Install OpenWrt
  3. Run router and go to the system console through the ssh
  4. Execute “poweroff” command
    Operation system shutdown work but after ~15s router automatically restarts work.

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?

H3C NX30Pro 机型的uboot,属于什么分区类型,其否启用nmbm,对于immortalWrt固件,应该选择哪个版本的固件

恩山这个帖子中 237给出了两个分区类型,一个是大分区,一个是小分区.其评论区出现 大分区刷回官方固件出现故障 的问题,其基于的源代码是本项目
所以请教一下,本项目默认手动编译是什么分区类型.(大 小分区应该是非严谨的说法)

另外在这个帖子中, paldier提到h3c开始启用了nmbm,如果刷入不支持的uboot,可能出现坏块等问题.请问默认编译下uboot是否启用nmbm.

有没有已经刷过的nx30pro反馈一下,是否能够刷回官方固件,以及能否正常升级

另外,使用 firmware-selector.immortalwrt ,应该选择那种内存布局的固件(NMBM layout 还是 OpenWrt U-Boot layout)

在ubuntu 20.04下编译失败

image
commitId:567c8151fcdfc0b5c0be4f5cf70e42ac0def6c14
命令: SOC=mt7981 BOARD=360t7 ./build.sh
环境:hyper-V下的x86 ubuntu 20.04
编译报这个错,也没有生成output目录,已按照要求安装依赖,不知道是我哪里弄错?

MTD device 'nmbm0' not found

您好,

今天刷了最新的uboot,然后按教程从uboot刷入固件,但是怎么都不成功。网页说:Soemthing went wrong during update.
然后我尝试用途ttl上传然后操作,找到以下错误信息:
image

刚刚又捕捉到一个一刷而过的错误:
image

现在有什么办法解决吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.