07 2020 档案

摘要:答: 使用git add -p指令进行拆解 1. 先找到要分解的commit 2. 回退该commit的信息 $ git reset --soft HEAD^ 3. 将该commit相关的文件从暂存区中取出 $ git reset HEAD <filename> 4. 开始交互式拆解(根据提示选择要 阅读全文
posted @ 2020-07-31 22:29 Jello 阅读(1979) 评论(0) 推荐(0)
摘要:答: 使用tar的--strip-components和-C选项,以解压jello.tar.gz去掉第一级目录jello并解压到根文件目录下 tar xvf jello.tar.gz --strip-components 1 -C / (假设jello.tar.gz的第一级目录为jello, jel 阅读全文
posted @ 2020-07-28 12:49 Jello 阅读(3634) 评论(0) 推荐(0)
摘要:答: 使用以下命令重新启动容器 $ sudo systemctl stop containerd $ sudo systemctl start containerd #启动docker $ sudo systemctl start docker.service 阅读全文
posted @ 2020-07-22 18:21 Jello 阅读(6926) 评论(0) 推荐(0)
摘要:答:直接从https://releases.linaro.org/components/toolchain/binaries下载需要的版本,示例如下: 获取arm64的交叉编译器 $ wget https://releases.linaro.org/components/toolchain/bina 阅读全文
posted @ 2020-07-22 15:05 Jello 阅读(998) 评论(0) 推荐(0)
摘要:#1. 更新docker的版本到大于或等于19.03 1.1 x86下如何更新docker? $ sudo apt install -y apt-transport-https $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | s 阅读全文
posted @ 2020-07-17 20:33 Jello 阅读(8886) 评论(0) 推荐(0)
摘要:答:安装apt-transport-https即可 $ sudo apt install -y apt-transport-https 阅读全文
posted @ 2020-07-17 18:48 Jello 阅读(3679) 评论(0) 推荐(0)
摘要:使能pwm模块的某个通道(假设某个pwm模块支持4个通道,以下示例是使能此pwm模块的通道1,通道从0开始数) echo 1 > /sys/class/pwm/pwmchip0/export 配置pwm的周期、占空比以及极性 echo 1000000000 > /sys/class/pwm/pwmc 阅读全文
posted @ 2020-07-16 16:57 Jello 阅读(2984) 评论(0) 推荐(0)
摘要:答: 如下: General setup → [*] Configure standard kernel features (expert users) (在使能这个内核选项CONFIG_EXPERT后,CONFIG_PREEMPT_RT选项就被自动选中了) 阅读全文
posted @ 2020-07-16 16:33 Jello 阅读(1603) 评论(0) 推荐(0)
摘要:linux内核从哪里开始? start_kernel(),linux内核源码/init/main.c, 在此之前有些准备工作,先不分析 linux内核是从哪里启动init程序的呢? start_kernel()-> arch_call_rest_init() → rest_init() 具体看一下r 阅读全文
posted @ 2020-07-07 16:00 Jello 阅读(428) 评论(0) 推荐(0)
摘要:答:如下图 阅读全文
posted @ 2020-07-03 17:57 Jello 阅读(848) 评论(0) 推荐(0)
摘要:$ sudo docker rmi $(sudo docker images -q) 阅读全文
posted @ 2020-07-02 17:52 Jello 阅读(1897) 评论(0) 推荐(0)
摘要:答: git config --global core.quotepath false 阅读全文
posted @ 2020-07-02 10:18 Jello 阅读(567) 评论(0) 推荐(0)
摘要:答:iptables -D <链> <要删除的某行> 1. 查看规则 $ sudo iptables -nvL --line-number ... Chain FORWARD (policy DROP 0 packets, 0 bytes) num pkts bytes target prot op 阅读全文
posted @ 2020-07-02 00:02 Jello 阅读(2220) 评论(0) 推荐(0)
摘要:答: 使用dpkg -L <软件名> $ dpkg -L libssl-dev ... /usr/lib /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libssl.so ... 阅读全文
posted @ 2020-07-01 17:21 Jello 阅读(1476) 评论(0) 推荐(0)
摘要:答: 安装对应的库即可(注意版本哦,如果ubuntu版本较老,那么libssl-dev有可能就是个旧的版本,旧版本升级新版本的方法见扩展) $ sudo apt install -y libssl-dev 扩展 源码安装 $ wget https://www.openssl.org/source/o 阅读全文
posted @ 2020-07-01 17:14 Jello 阅读(18112) 评论(0) 推荐(1)