随笔分类 - Linux
Debian
摘要:brep@X220i:~$ sudo snap install code --classic error: unable to contact snap store snap 安装软件时报错,需要设置代理: sudo snap set system proxy.https="http://127.0
阅读全文
摘要:参考下面的文章制作虚拟机: https://www.aurel32.net/info/debian_mips_qemu.php
阅读全文
摘要:1) in terminal: 2) to make it permanently: add this line:
阅读全文
摘要:1 make menuconfig 2 make -j4 all 3 make modules_install && install 4 dracut -f /boot/boot/initramfs-xx.xx.xx.img xx.xx.xx
阅读全文
摘要:进入 ~/rpmbuild/SOURCES/ 编辑源码
阅读全文
摘要:这个寒假准备认真研究一下NanoPC,我的开发环境:开发板:NanoPC-T1宿主机:VirtualBox for Mac,ubuntukylin-15.10-desktop-i386(32位)交叉编译工具:arm-linux-gcc-4.5.1一、硬件原理说明NanoPC上有两个LED,位置如下图...
阅读全文
摘要:1,硬件连接2,通过串口连接uboot的方法有三种,cu,minicom和screen。brep@Kylin:~$ cu -l /dev/ttyUSB0 -s 115200cu: open (/dev/ttyUSB0): Permission deniedcu: /dev/ttyUSB0: Line...
阅读全文
摘要:1,测试命令(1) -z 字符串长度为0if [ -z $1 ]then echo "usage: ./test " exit 0fi[ -z string ]用来测试字符串的长度是否为0(2) -b 文件存在,且为块设备(3) -c 文件存在,且为字符设备(4) -f 文件存在,且为普通文件
阅读全文
摘要:这个转接头的芯片是 PL2303,在Mac OS X El Capitan下能自动识别出来:在VirtualBox中需要设定一下:用dmesg命令可以看到其设备名为ttyUSB0:brep@kylin:~$ dmesg | grep tty[ 0.000000] console [tty0] ...
阅读全文
摘要:1. 这里搜集了很多Xenomai相关的资料,其中的Xenomai Linux Exercises特别值得一读:http://www.cs.ru.nl/lab/xenomai/2. Xenomai 官网:http://xenomai.org/start-here/
阅读全文
摘要:按下按钮产生中断,在中断处理程序中打开或关闭LED灯。 原理图 接线方式如下图,GPIO25通过10K上拉电阻接3.3V,按下按钮开关后GPIO为0V,用10uF电容消除抖动。GPIO8接LED。 程序
阅读全文
摘要:这些年看了不少内核方面的书,感觉还是 Robert Love 所著 LKD 《Linux Kernel Development》在原理方面讲述得更为透彻一些。有人说这本书“浅显易懂”,某不以为然,这本书的确“易懂”,但并不“浅显”。要把纷繁复杂的内核写得“易懂”是很不容易的,很考验作者的表述能力。与...
阅读全文
摘要:一、基本编辑操作返回上一个编辑的文件:e#跳转到指定的行,比如第30行:30G 或 30gg自动补全:Ctrl-N 下一个匹配词,Ctrl-P 前一个匹配词查找与替换:s/old/new/g 当前行替换%s/old/new/g 全文替换%s/ols/new/gc 全文替换并请求确认剪切、拷贝、粘贴:...
阅读全文
摘要:sudo apt-get install pptp-linux network-manager-pptp network-manager-openvpn network-manager-vpnc network-manager-openvpn-gnome network-manager-pptp-...
阅读全文
摘要:# aptitude install wpasupplicant# chmod 0600 /etc/network/interfaces# wpa_passphrase myssid mypasswordnetwork={ ssid="myssid" #psk="mypassword" ...
阅读全文
摘要:PWD := $(shell pwd)MOD_DIR ?= /lib/modules/`uname -r`/buildobj-m += hello.o modules: make -C $(MOD_DIR) M=$(PWD) modulesmodules_install: make -C...
阅读全文
摘要:买无线网卡前没认真研究Linux兼容性的问题,看着水星的mini无线网卡挺好看就买回来了。狗狗了一下才发现Linux不支持这款,得自己搞定驱动。先安装些编译工具:apt-get install build-essential linux-headers make gcc git autoconf下载...
阅读全文

浙公网安备 33010602011771号