{"action":"created","issue":{"url":"https://api.github.com/repos/hanxi/blog/issues/28","repository_url":"https://api.github.com/repos/hanxi/blog","labels_url":"https://api.github.com/repos/hanxi/blog/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/hanxi/blog/issues/28/comments","events_url":"https://api.github.com/repos/hanxi/blog/issues/28/events","html_url":"https://github.com/hanxi/blog/issues/28","id":449782145,"node_id":"MDU6SXNzdWU0NDk3ODIxNDU=","number":28,"title":"给我的 K2 编译 coolsnowwolf 的 lede","user":{"login":"hanxi","id":1185757,"node_id":"MDQ6VXNlcjExODU3NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1185757?v=4","gravatar_id":"","url":"https://api.github.com/users/hanxi","html_url":"https://github.com/hanxi","followers_url":"https://api.github.com/users/hanxi/followers","following_url":"https://api.github.com/users/hanxi/following{/other_user}","gists_url":"https://api.github.com/users/hanxi/gists{/gist_id}","starred_url":"https://api.github.com/users/hanxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanxi/subscriptions","organizations_url":"https://api.github.com/users/hanxi/orgs","repos_url":"https://api.github.com/users/hanxi/repos","events_url":"https://api.github.com/users/hanxi/events{/privacy}","received_events_url":"https://api.github.com/users/hanxi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-29T12:36:17Z","updated_at":"2019-05-29T17:00:26Z","closed_at":null,"author_association":"OWNER","body":"### 部署 docker 编译环境\r\n\r\n可以下载这个 <https://github.com/hanxi/lede-docker-builder>\r\n\r\n如果想自建 docker 镜像，记得把这个环境变量加上。docker 默认是 root 环境。\r\n\r\n```\r\nENV FORCE_UNSAFE_CONFIGURE=1\r\n```\r\n\r\n### make menuconfig 选项配置(基本配置)\r\n\r\n- Target system (目标系统类型,即路由器CPU架构)\r\n- Subtarget (子目标,即路由器芯片型号)\r\n- Target Profile (目标文件,即路由器型号)\r\n- LuCI (LuCI界面设置)\r\n\r\n我的是斐讯K2路由器, CPU型号为MT7620, 芯片架构为MIPS, 路由器型号为PSG1208, 那么我的基本配置就为:\r\n\r\n- Target system -> **MediaTek Ralink MIPS**\r\n- Subtarget -> **MT7620 based boards**\r\n- Target Profile -> **Phicomm PSG1208**\r\n\r\n### LuCI配置:\r\n\r\n```\r\nLuCI->\r\n    Modules->\r\n        Translations->\r\n            <*>English (en)\r\n            <*>Chinese (zh-cn)\r\n    Themes->\r\n            <*>luaci-theme-argon\r\n```\r\n\r\n配置完以上信息后, OpenWrt最基本的一些配置已经完成。\r\n\r\nmake menuconfig 配置选项参考: https://blog.csdn.net/Amosstan/article/details/80135108\r\n\r\n### 加点插件进去\r\n\r\n参考下这个配置插件: https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=344825\r\n\r\n```\r\nLuCI ---> Applications ---> luci-app-arpbind  #IP/MAC绑定\r\nLuCI ---> Applications ---> luci-app-autoreboot  #高级重启\r\nLuCI ---> Applications ---> luci-app-ddns   #动态域名 DNS \r\nLuCI ---> Applications ---> luci-app-firewall   #添加防火墙\r\nLuCI ---> Applications ---> luci-app-ramfree  #释放内存\r\nLuCI ---> Applications ---> luci-app-flowoffload   #Turbo ACC  FLOW转发加速\r\n```\r\n\r\n### 找回丢失的 $$R\r\n\r\n这东西我也就临时用下，比如刷 LineageOS 跳过谷歌认证需要用到。\r\n\r\n```\r\nmkdir ~/lede/package/openwrt-packages\r\ncd ~/lede/package/openwrt-packages\r\ngit clone https://github.com/SuLingGG/luci-app-ssr-plus ./luci-app-ssr-plus\r\n```\r\n\r\n再插入这行彩蛋语句到 `package/lean/default-settings/files/zzz-default-settings`\r\n\r\n```\r\necho 0xDEADBEEF > /etc/config/google_fu_mode\r\n```\r\n\r\n然后 make menuconfig 把选项加进去\r\n\r\n### 修改 ip 为 192.168.2.1\r\n\r\n修改这个文件 `package/base-files/files/bin/config_generate` 里的 192.168.1.1 为 192.168.2.1\r\n\r\n### 修改默认主题\r\n\r\n再插入这几行语句到 `package/lean/default-settings/files/zzz-default-settings` 修改主题设置\r\n\r\n```\r\nuci batch <<-EOF\r\n    set luci.themes.Argon=/luci-static/argon\r\n    set luci.main.mediaurlbase=/luci-static/argon\r\n    commit luci\r\nEOF\r\n```\r\n\r\n我编译的 K2 的包下载地址: [openwrt-ramips-mt7620-psg1208-squashfs-sysupgrade.bin](https://github.com/hanxi/lede-docker-builder/releases/tag/K2-lede)\r\n"},"comment":{"url":"https://api.github.com/repos/hanxi/blog/issues/comments/497022905","html_url":"https://github.com/hanxi/blog/issues/28#issuecomment-497022905","issue_url":"https://api.github.com/repos/hanxi/blog/issues/28","id":497022905,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5NzAyMjkwNQ==","user":{"login":"hanxi","id":1185757,"node_id":"MDQ6VXNlcjExODU3NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/1185757?v=4","gravatar_id":"","url":"https://api.github.com/users/hanxi","html_url":"https://github.com/hanxi","followers_url":"https://api.github.com/users/hanxi/followers","following_url":"https://api.github.com/users/hanxi/following{/other_user}","gists_url":"https://api.github.com/users/hanxi/gists{/gist_id}","starred_url":"https://api.github.com/users/hanxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanxi/subscriptions","organizations_url":"https://api.github.com/users/hanxi/orgs","repos_url":"https://api.github.com/users/hanxi/repos","events_url":"https://api.github.com/users/hanxi/events{/privacy}","received_events_url":"https://api.github.com/users/hanxi/received_events","type":"User","site_admin":false},"created_at":"2019-05-29T17:00:26Z","updated_at":"2019-05-29T17:00:26Z","author_association":"OWNER","body":"> 哈哈，变成issues回复了\r\n> 那我就提一个吧，我编译的 K2 的包下载地址是空的~\r\n\r\n@ntgeralt 已经打包好上传了。"}}
{"actor":{"display_login":"hanxi"}}