ILD

button和led适配
2022-6-23
如下,添加对应的dts即可。然后在/sys/class/leds下面,就有对应的led控制条目了# ls /sys/class/ledsled_internet_orange led_iot led_sys_whiteled_internet_white led_sy

using squashfs of an ubi volume as rootfs
2022-7-20
squashfs需要一个block device。根据block device的方式,kernel command line配置有两种方式:1 mtd block deviceubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwai

ubiformat or nandwrite
2022-9-24
在升级nand ubi分区的时候,是使用nandwrite还是ubiformat呢。推荐使用ubiformat。一个原因是:ubiformat保留了擦写次数。另一个原因,nandwrite可能写一个全ff的page. 但是ubifs检测不到,又一次写如数据。对于某些nand芯片,这可能有问题。htt

pivot_root完全切换rootfs到tmpfs方案设计
2022-10-10
路由器固件升级通常有两种方案:对于双系统,直接写入到另外一个系统,然后切换到另外一个系统启动。这种方案是很安全的,因为升级的时候,另外一个系统是空闲状态,可以安全的写入。对于单系统,情况要复杂很多,因为当前要升级的分区,已经挂载为root了,不能直接进行升级,否则进程运行可能会出现错误。可以将升级程

build imx6 qt6 with opengl es3 support
2023-6-2
install Qt6 dependenciesinstall ninja$ sudo apt install ninja-devBuild host qt6ubuntu build qt6 host failed:CMake Error at /usr/lib/llvm-6.0/lib/cmake

坏块导致5G校准数据写入失败问题分析
2023-8-15
工厂出现1PCS机器,5G mac地址和校准数据写入失败。5G校准数据写入到ART分区的第二个块。2.4G是正常的。正常情况:# getmac wl04c:c6:4c:61:41:e8# hexdump -C -n 16 -s $((0x26800+14)) /dev/mtd130002680e

ubifs挂载方法
2023-9-6
首先,理解一个3层的概念,mtd -> ubi -> ubifsmtd是flash上的分区,单纯把一个flash分成n个区,这里没有任何数据的概念,也不需要分区表,比如128M的flash,前32M一个区,后96M一个区,就是一个线性分区。ubi构建在一个mtd分区之上。ubi就有数据概念了,它有分

port latest linux 6.6 to mediatek mt7981b soc from scratch, part 1
2024-5-27
MediaTek Filogic 830 是MTK用于家庭Wifi6路由的SOC。 其cpu为Arm Cortex-A53 64位。其中MT7981是双核,MT7986是4核。目前Openwrt已经支持MT7981了,市面上有很多这个方案的路由器,我手上的是小米的WR30U。本文将最新的long t

mt7981 bare meta light led and write console application
2024-5-27
写一个bare metal程序,点亮led灯,和输出串口,使用uboot go执行:搭建bare metal环境1 创建程序入口start.S,这个需要用汇编写,目的是跳转到main函数。$ cat start.S .text .global _start_start: b mai

port latest linux 6.6 to mediatek mt7981b soc from scratch, part 2
2024-10-25
上篇part 1https://linuxdev.cc/article/a0gtfe.html ,本篇继续进行内核的导入,争取可以看到内核启动日志。1 Fix boot error: Synchronous Abortpart1完成了fit image的编译和启动测试,发现出现了Synchronou

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.