2018年12月10日 星期一

  • ubuntu 16.04下設定中文輸入
  • REF: http://tzutalin.blogspot.com/2017/07/install-chewing-on-ubuntu-1604.html

2018年12月9日 星期日

  •  ubuntu改錯設定檔無法登入?
    •  recovery mode修改
      • ubuntu recovery mode修改檔案,檔案卻是readonly?
      • mount -o remount,rw / 
      • REF: https://askubuntu.com/questions/947238/make-recovery-mode-write-to-files-when-file-system-is-read-only
    • live CD
      • REF: https://unix.stackexchange.com/questions/78433/how-to-edit-file-from-grub-prompt-in-rhel6
  • How to return from grub prompt to the grub menu?
    • grub command
      • normal
    • REF:  https://askubuntu.com/questions/381613/how-to-return-from-grub-prompt-to-the-grub-menu

2018年9月25日 星期二

DKMS

how do i install the DKMS package?
 
sudo apt-get install dkms

2018年9月19日 星期三

在ubuntu使用man page來查詢linux kernel function

使用系統版本:
  •  cat /etc/issue
    • Ubuntu 16.04.5 LTS \n \l
  • uname -a
    • 4.15.0-33-generic
嘗試了沒成功:

問題:
想直接用man page查詢linux kernel function.

 安裝方式:
測試:
  • man 9 kmalloc

2014年1月13日 星期一

kernel里的头文件 asm 与 asm-generic

http://www.cnblogs.com/sammei/archive/2013/03/14/3295598.html


asm的路径是 arch/xxx/include/asm/
asm-generic 的路径是 include/asm-generic/


代码中包含asm/中的头文件,如果某一个架构没有自己特殊代码的话,其中会使用通用版本的头文件,即包含 asm-generic/里的对应.h文件。
代码中不会直接包含 asm-generic/ 里的.h文件


拿arm来举例
#include <asm/gpio.h> 引用的头文件是 arch/arm/include/asm/gpio.h
#include <asm-generic/gpio.h> 引用的是头文件是 include/asm-generic/gpio.h