04 2020 档案
摘要:答: 使用usleep接口 #include <time.h> void main(void) { usleep(1); }
阅读全文
摘要:1. 架构 2. 有两种操作方法 2.1 第一种: sysfs接口(旧, 已废弃) 2.2 第二种: 字符设备接口(新) 3. 如何使用sysfs接口控制gpio? 3.1 确定要使用的gpio号(怎么知道gpio号呀?) 3.2 将gpio号写入文件/sys/class/gpio/export中
阅读全文
摘要:1. 详细日志如下: debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or withou
阅读全文
摘要:1.查看是哪个设备 $ sudo cat /sys/kernel/debug/usb/devices2. 查看驱动$ lsmod |grep usb
阅读全文
摘要:1. 往文件/etc/default/docker中加入以下内容: DOCKER_OPTS="--insecure-registry $DOCKER_OPTS --insecure-registry registry.mirrors.aliyuncs.com" 2. 重启docker服务 $ sud
阅读全文
摘要:参考此处 注意: 软件源更换后请在MSYS2的命令行中使用panman工具来安装软件包 (在MinGW Installation Manager中仍然是原来的软件源,此法对MinGW Installation Manager无效)
阅读全文
摘要:1. 在Dockerfile中换软件源 1.1 如果使用ubuntu 20.04为基础docker镜像,那么Dockerfile如下: FROM ubuntu:20.04 RUN sed -i 's/ports.ubuntu.com/mirror.tuna.tsinghua.edu.cn/g' /e
阅读全文
摘要:1. 往/etc/apt/apt.conf.d/proxy.conf文件中添加以下内容即可, Acquire::http::Proxy "http://user:password@proxy.server:port/"; Acquire::https::Proxy "http://user:pass
阅读全文
摘要:保证两点 1. 使用的相同内核源码 2. 使用的相同内核配置(指生成的配置文件)
阅读全文
摘要:答: 操作步骤如下: 1. 使ssh服务开机启动 $ sudo systemctl enable ssh 2. 启动ssh服务 $ sudo systemctl start ssh
阅读全文
摘要:答:打开/etc/apt/source.list文件将所有的http://raspbian.raspberrypi.org/raspbian/替换为http://mirror.tuna.tsinghua.edu.cn/raspbian/raspbian/
阅读全文
摘要:答: 在ubuntu根文件系统中添加对应内核模块名称到/etc/modprobe.d/your.conf即可 1. 复制内核模块到/lib/modules/`uname -r`/下# cp your-kernel-module-name.ko /lib/modules/`uname -r`/ 2.
阅读全文
摘要:1. 在uboot下设置bootargs => setenv bootargs "root=/dev/nfs ip=192.168.1.111 nfsroot=192.168.1.1:/nfs rw";
阅读全文
摘要:1. 示例如下: char my_array[10]; *(int *)my_array = 0xaabbccdd; 2. 修改如下即可解决此问题: char my_array[10]; int tmp = 0xaabbccdd; memcpy(my_array, &tmp, sizeof(tmp)
阅读全文
摘要:答: 删除对应的/etc/apt/sources.list.d/<source name>.list文件, 使用已有的源安装需要的软件
阅读全文
摘要:1. 点击此处获取httrack 2. 解压 3. 打开WinHTTrack.exe程序创建离线网页
阅读全文
摘要:1. 安装运行时包 $ sudo apt-get install dbus -y2. 安装readline库 $ apt-get cache search libreadline (找出当前发行版的libreadline包名) $ sudo apt-get install libreadline7
阅读全文
摘要:1. 先按下两个键Ctrl 和 B,然后松开这两个键 2. 按下Alt和方向键调整窗口
阅读全文
摘要:BootRom -> Second program loader(SPL) -> Tertiary program loader(TPL,mpc85xx存在此loader) -> main U-boot -> linux kernel
阅读全文
摘要:1. 创建codewarrior ide快捷方式 2. 右击codewarrior ide快捷方式,点击属性,在Target里面添加" -nl en", 如 由原来的eclipse\cwide.exe 修改为eclipse\cwide.exe -nl en
阅读全文
摘要:1. 安装必要的软件 $ sudo apt-get install apache2 php libapache2-mod-php -y 2. 按需配置/etc/php/<php version>/apache2/php.ini 3. 重新启动服务 $ sudo /etc/init.d/apache2
阅读全文
摘要:答: $ service --status-all $ systemctl $ pstree
阅读全文
摘要:$ doxygen -g <config-file> $ doxygen <config-file> 在html目录下可以看到生成的文档
阅读全文
摘要:1. 获取源码 $ git clone https://github.com/openthread/openthread.git 2. 安装必要的工具 $ cd openthread$ sudo apt-get install -y python3-pip python-pip$ pip3 inst
阅读全文
摘要:答:gu(转换为小写), gU(转换为大写) 操作步骤: 1. 按Esc键进入命令行模式 2. 按下Ctrl键和v键,然后按上下左右键对要修改的内容进行选中 3. 按下gu两个键可将选中的内容转换为小写
阅读全文

浙公网安备 33010602011771号