上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 138 下一页
摘要: Linux 高精確的時序(sleep, usleep,nanosleep) 2009-04-16 11:36:48| 分类: Linux | 标签:无 |字号订阅 首先, 我会说不保证你在使用者模式 (user-mode) 中执行的行程 (process) 能够精确地控制时序因为 Linux 是个多工的作业环境. 你在执行中的行程 (process) 随时会因为各种原因被暂停大约 10 毫秒到数... 阅读全文
posted @ 2011-07-03 11:40 katago 阅读(1296) 评论(0) 推荐(0)
摘要: #!/bin/sh echo "init..." mount -t proc proc /proc mount -t sysfs sysfs /sys mdev -s newroot=`findfs LABEL=ROOT` cleanmntdir() { rm -rf /mnt/* } copyroot() { FILES=`ls /` for F in $FILES do [ $F !... 阅读全文
posted @ 2011-07-02 15:39 katago 阅读(331) 评论(0) 推荐(0)
摘要: ~ # switch_root BusyBox v1.18.3 (2011-02-23 16:15:41 CST) multi-call binary. Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS] Free initramfs and switch to another root fs: chroot to NEW_R... 阅读全文
posted @ 2011-07-02 15:38 katago 阅读(14103) 评论(0) 推荐(0)
摘要: http://lists.netfilter.org/pipermail/netfilter/2004-November/056913.html 阅读全文
posted @ 2011-07-01 21:02 katago 阅读(143) 评论(0) 推荐(0)
摘要: exec也是让script在同一个进程上执行,但是原有进程则被结束了 脚本内容: root@james-desktop:/opt/qt-everywhere/marvell/APP/applications/factory-roast# cat 1.sh #!/bin/sh A=B echo "PID for 1.sh :$$" export A echo "1.sh \$A is $A" ca... 阅读全文
posted @ 2011-07-01 20:16 katago 阅读(278) 评论(0) 推荐(0)
摘要: 1、中间库: 中间库都放在middlewares目录,include头文件相同,所以不需要特殊处理,只要特殊处理lib安装目录, 示例pro文件如下: TEMPLATE = lib TARGET = ime VERSION = 1.0.0 DEPENDPATH += . INCLUDEPATH += . CONFIG += staticlib inc.files = \ xinputmethod... 阅读全文
posted @ 2011-06-30 19:36 katago 阅读(1245) 评论(0) 推荐(0)
摘要: 发现一些linux文件系统没有正常工作,都是空的 在sata.sh中加了手动重新挂载: mount [OPTIONS] [-o OPTS] DEVICE NODE mount -t usbfs none /proc/bus/usb/ mount -t sysfs sysfs /sys mount –t devpts none /dev/pts 注意:usbdevfs 已经过时,用usbfs代替 阅读全文
posted @ 2011-06-30 12:09 katago 阅读(283) 评论(0) 推荐(0)
摘要: usb SET_FEATURE TEST_MODE http://www.beyondlogic.org/usbnutshell/usb6.shtml http://www.beyondlogic.org/usbnutshell/usb7.htm 阅读全文
posted @ 2011-06-30 11:54 katago 阅读(195) 评论(0) 推荐(0)
摘要: 20 January 2007 -- BusyBox 1.4.0 (stable) e2fsprogs are mostly removed from busybox 由于e2fsprogs太大,所以移除了。所以要自己编译 主要包含的命令: findfs fsck.ext3 mkfs.ext3 http://cross-lfs.org/view/1.1.0/x86/final-system/e2f... 阅读全文
posted @ 2011-06-30 10:10 katago 阅读(289) 评论(0) 推荐(0)
摘要: devfs、sysfs、udev介绍 http://blog.csdn.net/aaronychen/archive/2008/09/19/2953345.aspx 一、devfs linux下有专门的文件系统用来对设备进行管理,devfs和sysfs就是其中两种。在2.6内核以前一直使用的是devfs,devfs挂载于/dev目录下,提供了一种类似于文件的方法来管理位于/dev目录下的所有设备,... 阅读全文
posted @ 2011-06-29 23:42 katago 阅读(732) 评论(0) 推荐(0)
上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 138 下一页