懶得研究 nfs 的同學, 也可以用 linux-host 的 tftpd-hpa 與 target 上面的 tftp 指令來傳檔案,

簡單的 usage 如下: http://busybox.net/lists/busybox/2003-February/007972.html

# ./busybox tftp --help
BusyBox v0.61.pre (2003.02.04-12:10+0000) multi-call binary

Usage: tftp [OPTION]... HOST [PORT]

Transfers a file from/to a tftp server using "octet" mode.

Options:
        -l FILE Local FILE.
        -r FILE Remote FILE.
        -g      Get file.
        -p      Put file.

立你斯 發表在 痞客邦 留言(0) 人氣()

非開源的驅動程式如何繞過version magic的檢查

最近在分析Linux核心模組與核心之間的版本耦合關係時,在開發kernel driver時,總是會遇到討人厭的vermagic檢查,只要目前在run的kernel版本跟driver編譯時用的kernel版本不一致,就沒辦法insmod。

比如要將第三方的驅動”ntfs.ko”加入帶android HoneyComb系統中。然後insmod。結果報錯:

立你斯 發表在 痞客邦 留言(0) 人氣()

Linux kernel编译生成的版本多一个加号“+”

http://smilejay.com/2012/07/kernel-version-plus-sign/

 

其實,一直以來,我們編譯KVM(Linux kernel)生成的RPM包中的kernel版本總是帶有一個“莫名其妙”的加號(+),其實我知道大概是因為我們修改了Linux.git(或 kvm.git)中的一些文件。但是我們只是修改了一下Makefile,讓我們做RPM包是方便而已,一般我也沒有在編譯時修改其他的源代碼檔,所以 我想把這個加號去掉,對其進行了簡單的研究,問題已經搞定了,記錄如下吧。

立你斯 發表在 痞客邦 留言(0) 人氣()



1.Linxu
下使用signal()函數獲取信號:

立你斯 發表在 痞客邦 留言(0) 人氣()

一、內核如何實現信號的捕捉

如果信號的處理動作是用戶自定義函數,在信號遞達時就調用這個函數,這稱為捕捉信號。由於信號處理函數的代碼是在用戶空間的,處理過程比較復雜,舉例如下:
1.
用戶程序注冊了SIGQUIT信號的處理函數sighandler

立你斯 發表在 痞客邦 留言(0) 人氣()

http://xmodulo.com/2013/07/how-to-upgrade-the-kernel-on-centos.html

 

You may want to upgrade the Linux kernel for various reasons. For example, you want to try a new kernel module or device driver which requires the latest kernel feature. Or, a new vulnerability has been uncovered in an existing Linux kernel. In other times, your Linux server may be unreliable with frequent system crashes. Whatever the reason is, upgrading the Linux kernel is an essential maintenance job for every Linux user.

立你斯 發表在 痞客邦 留言(0) 人氣()

This is quick guide, howto upgrade to CentOS 5.10 from CentOS 5.9 (5.8, 5.7, 5.6, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0).

1. Change to root User

su -
## OR ##
sudo -i

2. Backup all important data

  • Backup /etc diretory
  • Backup important logs /var/log
  • Backup web server configs and sites
  • Dump MySQL databases
  • Dump PostgreSQL databases
  • Backup all what you need if something goes wrong

3. Check list of packages that are going to be updated

yum list updates

4. Upgrade with yum update

Official way to do upgrade:

立你斯 發表在 痞客邦 留言(0) 人氣()

centos找不到IFCONFIG命令

[root@localhost dai]# ifconfig
bash: ipconfig: command not found

立你斯 發表在 痞客邦 留言(0) 人氣()

MPEG4码流格式分析

http://blog.csdn.net/sunnylgz/article/details/7745038

立你斯 發表在 痞客邦 留言(0) 人氣()

一個簡單的 Linux Kernel Module

Nov 13th, 2012 | Comments

以下會建立一個非常簡單的 linuxk kernel,只會包含兩個 funciton — 即 init 與 exit 分別在 module 載入及退出的時候會呼叫到

建立 hello.c

這邊不免俗的使用 hello module,先建立 hello_init 與 hello_exit,並且印出訊息

立你斯 發表在 痞客邦 留言(0) 人氣()