海运的博客

编译纯净版k2p padavan支持802.11 kvr固件

发布时间:December 14, 2022 // 分类: // No Comments

安装依赖及下载源码:

apt install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd fakeroot kmod cpio git python3-docutils gettext automake autopoint texinfo build-essential help2man pkg-config zlib1g-dev libgmp3-dev     libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev wget libc-dev-bin bc
git clone https://github.com/padavanonly/padavan-4.4.git --depth=1
cd padavan-4.4/toolchain-mipsel
./dl_toolchain.sh

编辑trunk/build_firmware_modify注释掉特殊服务,并移除相应asp管理页面,不然编译后有相关菜单。
更新:首次编译前注释相关软件包就行。

rm trunk/user/www/n56u_ribbon_fixed/Shadows*.asp 
rm trunk/user/www/n56u_ribbon_fixed/Advanced_aliddns.asp 
rm trunk/user/www/n56u_ribbon_fixed/Advanced_SQM.asp 
rm trunk/user/www/n56u_ribbon_fixed/Advanced_adbyby.asp

编译固件:

cd trunk/
fakeroot ./build_firmware_modify K2P

使用glibc编译的openwrt支持utf8中文显示和输入

发布时间:December 11, 2022 // 分类: // No Comments

将编译openwrt环境中的locale命令复制到路由上:

scp staging_dir/toolchain-aarch64_cortex-a53_gcc-8.4.0_glibc/bin/locale root@192.168.1.1:/usr/local/bin/

在任一linux机器上将生成的utf8编码复制到路由上:

scp /usr/lib/locale/locale-archive 192.168.1.1:/lib/locale/
scp -r /usr/lib/locale/C.UTF-8/  192.168.1.1:/lib/locale/

输入中文:

cat /root/.inputrc 

set meta-flag on
set convert-meta off
set input-meta on
set output-meta on

也可通过以下方法在openwrt路由上生成语言编码,占用内存大,小内存路由会kill。
https://github.com/openwrt/packages/issues/2900

360t7通过usb tll刷入不死uboot和openwrt系统

发布时间:December 5, 2022 // 分类: // No Comments

拆机连接ttl,从外到内依次为txd rxd gnd,也有人说rxd txd gnd。

用SRT连接或其它ssh管理软件:

启动时持续按f加回车键直到进入failsafe模模式:

#开启uboot控制台菜单(可选),开启后可通过uboot命令行更新固件。
#fw_setenv bootmenu_delay 3

# 挂载rootfs并开启telnet
mount_root
sed -i 's/.*local debug=.*/\tlocal debug=1/' /etc/init.d/telnet

# 修改root密码
passwd root
reboot

不开启telnet也可通过ttl配置网络备份系统和刷入uboot:

ifconfig eth0 0.0.0.0
brctl addbr br-lan
ifconfig br-lan 192.168.2.1 netmask 255.255.255.0 up
brctl addif br-lan eth0

重启后通过telnet登录,查看分区表:

cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 08000000 00020000 "spi0.0"
mtd1: 00100000 00020000 "bl2"
mtd2: 00080000 00020000 "u-boot-env"
mtd3: 00200000 00020000 "Factory"
mtd4: 00200000 00020000 "fip"
mtd5: 02400000 00020000 "ubi"
mtd6: 02400000 00020000 "firmware-1"
mtd7: 02400000 00020000 "plugin"
mtd8: 00100000 00020000 "config"
mtd9: 00080000 00020000 "factory"
mtd10: 00700000 00020000 "log"

备份整个路由固件:

nc -l -p 3333 > all.bin
cat /dev/mtd0 | nc 192.168.1.8 3333
#或
nc -l -p 3333 | dd of=all2.bin
dd if=/dev/mtd0 | nc 192.168.1.8 3333

刷入下载的uboot:

wget 192.168.1.8/mt7981_360t7-fip-fixed-parts.bin 
#验证文件是否正确,刷错路由会变砖。
md5sum mt7981_360t7-fip-fixed-parts.bin 
256977db5ca6a17b0f9e73b0ddfd3efd  mt7981_360t7-fip-fixed-parts.bin
mtd -r write mt7981_360t7-fip-fixed-parts.bin fip

关闭电源将电脑ip设置为192.168.1.2,按住reset键路由开机,然后访问192.168.1.1 web界面刷入openwrt固件,使用immortalwrt-mediatek-mt7981-mt7981-360-t7-108M-squashfs-factory.bin,通过openwrt更新可使用immortalwrt-mediatek-mt7981-mt7981-360-t7-108M-squashfs-sysupgrade.bin。

https://cmi.hanwckf.top/p/360t7-firmware/
https://github.com/hanwckf/bl-mt798x
https://github.com/hanwckf/immortalwrt-mt798x

分类
最新文章
最近回复
  • 海运: 恩山有很多。
  • swsend: 大佬可以分享一下固件吗,谢谢。
  • Jimmy: 方法一 nghtp3步骤需要改成如下才能编译成功: git clone https://git...
  • 海运: 地址格式和udpxy一样,udpxy和msd_lite能用这个就能用。
  • 1: 怎么用 编译后的程序在家里路由器内任意一台设备上运行就可以吗?比如笔记本电脑 m参数是笔记本的...
  • 孤狼: ups_status_set: seems that UPS [BK650M2-CH] is ...
  • 孤狼: 擦。。。。apcupsd会失联 nut在冲到到100的时候会ONBATT进入关机状态,我想想办...
  • 海运: 网络,找到相应的url编辑重发请求,firefox有此功能,其它未知。
  • knetxp: 用浏览器F12网络拦截或监听后编辑重发请求,修改url中的set为set_super,将POS...
  • Albert: 啊啊啊啊啊啊啊啊啊 我太激动了,终于好了英文区搜索了半天,翻遍了 pve 论坛没找到好方法,博...