Focus

聚焦

Focus

前段时间组装云岸GR02车架,穿线管油管时发现车身过线座上的变速拉线与过线座会干涉,在调整变速的几天已经出现磨损过线座的问题。可以使用2mm六方拆下螺丝,检查是否出现类似问题。文末有3d打印文件分享。
磨损过线座

磨损的过线座

不管拉线在油管上侧,下侧都能磨出凹痕。

阅读全文 »

rival手变-m7100-棘轮-卷线座
3D文件:sram rival手变 + shimano m7100后拨 / gx12速后拨 机械变速混搭 3D打印改装文件分享(rival手变-gx12速后拨-棘轮-翅片/rival手变-m7100-棘轮-卷线座)
excel表格:sram rival 11速手变原装棘轮拉线移动长度及Shimano12速m7100指拨拉线移动长度

阅读全文 »

Docker 使用的 Ubuntu 22.04 的编译 OpenWrt 的编译环境容器。 拉取命令 docker pull csjtl/openwrt-compile-env-for-docker:v1.01 。最终镜像为最新的 Ubuntu 22.04 的系统,完整的 OpenWrt 编译依赖环境。SSH 自启动,启动容器即可链接。添加一个名为 csjtl 的用户,赋予sudo权限,用于非root编译 openwrt 。Vim 使用了自定义主题 molokai.vimvimrc 配置文件。

Dockerfile 文件

新建文件名Dockerfile,使用如下代码,用来定制编译 OpenWRT 的 Docker 镜像。用户名和密码可自定义。

阅读全文 »

本人菜鸟,脚本算为熟悉源码结构,学习脚本而已。OpenWrt 源码版本是 22.03 。Ubuntu系统为 20.04 。使用脚本命令对源码追加,筛选,替换,循环,查找,删除等实现的自定义。目前脚本可以自定义baaner,IP,主题,网页终端自动登录,Nginx 默认 80 端口,主机名,时区,TimeZone,用户名/登录名,隐藏登录用户名。

脚本链接:https://github.com/csjtl/csjtl-openwrt-script

脚本结构
阅读全文 »

1
2
3
4
5
6
7
8
9
opkg install kmod-sdhci kmod-sdhci-mt7620
opkg install block-mount kmod-fs-ext4 e2fsprogs fdisk
block info
mkfs.ext4 /dev/mmcblk0p1
mount /dev/mmcblk0p1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ;
umount /mnt
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;
mount /dev/mmcblk0p1 /overlay
df

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
breed> wget http://192.168.1.129/openwrt-thunder-timecloud-backup.bin
Connecting to 192.168.1.129:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11201860/0xaaed44 (10MB) [application/octet-stream]
Saving to address 0x80001000

[========================================================================] 100%

Transmission completed in 3.0s.

breed> flash erase 0x50000 0xfb0000
Erasing flash bank 0 from 50000h , size fb0000h
[========================================================================] 100%
Succeeded

breed> flash write 0x50000 0x80001000 0xaaed44
Writing flash bank 0 into 50000h from memory 80001000h, size aaed44h
[========================================================================] 100%
Succeeded

breed> boot flash 0x50000
Trying to boot firmware from 0x00050000 in flash bank 0 ...
Reading data into memory ...
U-Boot firmware image header detected.
Image Name: MIPS OpenWrt Linux-5.4.155
Data Size: 11201796 Bytes
Load Address: 80001000
Entry Point: 80001000
Flushing cache ... done.

Starting kernel at 0x80001000...

文件系统

/OK104x-linux-openwrt-C2/staging_dir/target-aarch64_generic_musl/root-layerscape

文件系统 IMG 文件:
在目录 /OK104x-linux-openwrt-C2/staging_dir/target-aarch64_generic_musl/ 中执行:
sudo make_ext4fs -s -T -I -l 7489978368 OpenWRT.img root-layerscape

内核

/OK104x-linux-openwrt-C2/build_dir/target-aarch64_generic_musl/linux-layerscape_armv8_64b/linux-4.9.63/arch/arm64/boot/Image

设备树

/OK104x-linux-openwrt-C2/build_dir/target-aarch64_generic_musl/linux-layerscape_armv8_64b/linux-4.9.63/arch/arm64/boot/dts/freescale/

制作镜像
cd /home/forlinx/work/openwrt/staging_dir/target-aarch64_generic_musl
rm root-layerscape/lib/preinit/80_mount_root
sudo make_ext4fs -s -T -I -l 7489978368 OpenWRT.img root-layerscape

可以隐藏但是编辑PDF工具会出现关闭按钮卡死
跳到此路径 C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroApp\CHS 打开Viewer.aapp文件。
删除如下代码(需要管理员权限操作):

1
2
3
4
5
<Layout name="Default">
<RHP>
<Component name="AppShortcutListView" type="Custom"/>
</RHP>
</Layout>
0%