kernel
linux kernel开发记录点
嵌入式实操
践行高效开发的哲学理念
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
kennel boot-parameters
normal we use bootloader paramer , but sometimes we may want to use externkernel-parameters, or Always use the default kernel command string......exampel 1:extern bootargs under kernel Boot ...原创 2020-09-14 10:36:00 · 62 阅读 · 0 评论 -
kernel namespace
reference:https://lwn.net/Articles/531114/原创 2019-06-13 14:07:00 · 43 阅读 · 0 评论 -
kernel build command
Uboot:make ARCH=arm CROSS_COMPILE=${CC} distcleanmake ARCH=arm CROSS_COMPILE=${CC} am335x_evm_defconfigmake ARCH=arm CROSS_COMPILE=${CC}Kernel:make ARCH=arm -j2 CROSS_COMPILE="ccache ${CC}" zIma...原创 2019-01-24 09:08:00 · 56 阅读 · 0 评论 -
kernel jenkins build script
#!/bin/bash#gcc:site="https://releases.linaro.org"#https://releases.linaro.org/components/toolchain/binaries/6.4-2018.05/arm-linux-gnueabihf/gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf.tar...原创 2019-01-23 08:56:00 · 46 阅读 · 0 评论 -
kernel printk
#echo 8 > /proc/sys/kernle/printk更改printk级别原创 2020-06-09 19:22:00 · 38 阅读 · 0 评论 -
kernel cpu_cur_freq
# cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq获取CPU当前的注频原创 2020-06-09 19:23:00 · 73 阅读 · 0 评论 -
kernel page_size
内核空间查看page sizearch/arm/include/asm/page.h#define PAGE_SHIFT 12#define PAGE_SIZE ( 1<< PAGE_SHIFT)应用层:# getconf PAGESIZE4096#include <unistd.h>int main(){printf(“page size ...原创 2020-07-04 08:50:00 · 111 阅读 · 0 评论 -
kernel CONFIG_FRACE
编写应用程序时,如果查看函数的实际执行效率,就可以选择开启内核的CONFIG_FTRACE选项。上层通过perf-tools配合,就可以查看指定程序的调用情况。root@vmuser:~/tmp/perf-tools# ./bin/uprobe -s p:/root/a.out:signalHandler a.out-21789 [000] d... 82183.441...原创 2020-07-04 08:58:00 · 107 阅读 · 0 评论 -
kernel bootargs consoleblank
禁止屏幕休眠consoleblank=0原创 2020-07-04 09:00:00 · 71 阅读 · 0 评论 -
kernel get clock info
root@vmuser:~# cat /sys/kernel/debug/clk/clk_summary clock enable_cnt prepare_cnt rate accuracy phase-----------------------------------------------------------...原创 2020-07-04 09:07:00 · 49 阅读 · 0 评论 -
kernel lcd blank interface
enable lcd blank#echo 1 > /sys/class/graphics/fb0/blankdisalbe lcd blank#echo 0 > /sys/class/graphics/fb0/blank原创 2020-07-14 15:46:00 · 70 阅读 · 0 评论 -
kernel parameter [nosmp | maxcpus=0]
强制让内核按单核模式启动在启动参数里追加 nosmp或者 maxcpus=0kernel-parameters的说明如下:nosmp[SMP] Tells an SMP kernel to act as a UP kernel,and disable the IO APIC. legacy for "maxcpus=0"....原创 2020-07-04 09:11:00 · 129 阅读 · 0 评论 -
kernel enable specific directory DEBUG
Example:driver/media/Makefile+ccflags-y := -DDEBUG原创 2020-08-25 19:23:00 · 55 阅读 · 0 评论 -
kernel sysrq
echo i > /proc/sysrq-triggerSend a SIGKILL to all process, except for init;原创 2020-08-25 19:26:00 · 48 阅读 · 0 评论 -
kernel enable /dev/mem
enable options:+CONFIG_DEVMEM+CONFIG_KDEVMEM+CONFIG_STRICT_DEVMEM原创 2020-08-25 19:31:00 · 66 阅读 · 0 评论 -
kernel dump_stack
#cat /sys/class/graphics/fb0/fsl_disp_dev_propertyCPU: 1 PID: 12732 Comm: sh Not tainted 4.1.15 #8Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)[<c010e4b8>] (unwind_backtrace) fro...原创 2020-09-07 10:51:00 · 108 阅读 · 0 评论 -
kernel power-save interface
/sys/power/stateecho mem > /sys/power/stateecho freeze > /sys/power/stateecho standby > /sys/power/state原创 2020-08-25 19:36:00 · 116 阅读 · 0 评论 -
kernel optimize debug interface
in init/main.c-bool initcal_debug+bootl initcall_debug = true;CONFIG_PRINTK_TIME=yGeneral setup ----> Kernel compression mode (LZ0)原创 2020-08-25 19:38:00 · 47 阅读 · 0 评论
分享