Skip to content

Instantly share code, notes, and snippets.

@BruceWind
Last active October 1, 2023 13:11
Show Gist options
  • Save BruceWind/c05f2eac72ed810dfa23a32d0839ecb0 to your computer and use it in GitHub Desktop.
Save BruceWind/c05f2eac72ed810dfa23a32d0839ecb0 to your computer and use it in GitHub Desktop.
Axt1800 setup

set the threshold of fan

vi /etc/config/glfan

to enlarge /overlay with a sdcard:



# 首先要使用 Micro SD 卡槽,需要安装以下两个内核模块:

opkg install kmod-sdhci kmod-sdhci-mt7620
 

# 接下来在 /dev 下应该可以看到有 mmcblk0 的文件了,那就是我们的 Micro SD。

然后再安装一些文件系统相关的软件包。

opkg install block-mount kmod-fs-ext4 e2fsprogs fdisk

# 请预先对sdcard格式化为ext4

mkfs.ext4 /dev/mmcblk0p1
#转移现有的文件到 SD 卡上。不知道 OpenWrt 中 / 目录和 /overlay 目录的意义的可以看后面。
mount -t ext4  /dev/mmcblk0p1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt
#稍等一会,文件就复制完成了。

 

#接下来要创建 mmcblk0p1 的挂载配置,全自动可以使用以下命令

block detect > /etc/config/fstab; \
   sed -i s/option$'\t'enabled$'\t'\'0\'/option$'\t'enabled$'\t'\'1\'/ /etc/config/fstab; \
   sed -i s#/mnt/mmcblk0p1#/overlay# /etc/config/fstab; \
   cat /etc/config/fstab;
 

#这样子就可以完成挂载点的设置。

 

# 于是现在来实际把 mmcblk0p1 挂载到 /overlay 上

mount /dev/mmcblk0p1 /overlay
reboot
# 然后从网页端确认是否挂载成功。
如果没成功,输入:
umount -t ext4  /overlay && firstboot && reboot
 

some plugins your may be needed to install

wget -qO- https://cdn.jsdelivr.net/gh/m0eak/Install-Openclash-for-Axt1800/install.sh | sh -s passwall

安装帕斯沃


wget -qO- https://cdn.jsdelivr.net/gh/m0eak/Install-Openclash-for-Axt1800/install.sh | sh -s ssr-plus

安装瘦身乳



wget -qO- https://cdn.jsdelivr.net/gh/m0eak/Install-Openclash-for-Axt1800/install.sh | sh -s openclash

安装猫猫



wget -qO- https://cdn.jsdelivr.net/gh/m0eak/Install-Openclash-for-Axt1800/install.sh | sh 
全装 
作者:m0eak https://www.bilibili.com/read/cv17391990/ 出处:bilibili

@BruceWind
Copy link
Author

BruceWind commented Aug 12, 2023

@BruceWind
Copy link
Author

BruceWind commented Aug 23, 2023

in some cases, you add a source that can not be verify by singnature. you can disable this signature in openwrt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment