常用指令方法

1.python 转换成可执行性文件*.exe
如:路径C:\Users\AppData\Local\Programs\Python\PyInstaller-3.5>
下执行:python pyinstaller.py -F dump_emmc_rd.py 即可生成 dump_emmc_rd.exe
2.清理缓存
To free pagecache: 清空 页面 高速缓存

  • echo 1 > /proc/sys/vm/drop_caches

To free dentries and inodes: 清空 目录项 和 索引节点

  • echo 2 > /proc/sys/vm/drop_caches

To free pagecache, dentries and inodes: 清空以上两项

  • echo 3 > /proc/sys/vm/drop_caches

3.eMMC 写测试
toolbox dd if=/dev/zero of=/var/test.dbf count=30000 bs=512
toolbox dd if=/dev/zero of=/var/test.dbf count=3000 bs=512 conv=fsync
toolbox dd if=/dev/zero of=/var/test.dbf count=3000 bs=512 iflag=direct,nonblock

4.eMMC读测试
toolbox dd if=/dev/block/mmcblk0p3 of=/dev/null bs=512
toolbox dd if=/dev/block/mmcblk0p2 of=/dev/null bs=512

5.git mode 修改
git config core.filemode false
git format常用命令:
git format-patch -3 //从当前分支最新提交点往下共生成3个补丁
git format-patch -1 指定commit号 //生成指定commit号的补丁

6.DTB—>转换成dts
./scripts/dtc/dtc -I dts -O dtb -o .dtb .dts

7.repo
cd ~/
mkdir bin
cd bin
git clone ssh://igerrit:29418/tools/repo
sudo chmod a+x bin

8.内核泄露检测
https://www.kernel.org/doc/html/v4.10/dev-tools/kmemleak.html

9.编译
make -j8 >error 2>&1

10.串口shell
while true;do cat /proc/interrupts | grep 154; sleep 1;done
while true;do cat /proc/interrupts; sleep 1;done

11.生成文件
全FFFF
tr ‘\000’ ‘\377’ < /dev/zero | dd of=allonesff bs=1024 count=20k
全AAAA
tr ‘\000’ ‘\252’ < /dev/zero | dd of=allonesaa bs=1024 count=30k

  1. 安卓地址:安卓 http://androidxref.com/
  2. linux_kernel 下载地址:https://mirrors.edge.kernel.org/pub/linux/kernel/
  3. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/?qt=grep&q=FS+corru
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kaira88

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值