Time of Update: 2018-12-05
Author:DriverMonkeyContact inforation:196568501(qq)mail:bookworepeng@hotmail.comphone:13410905075關鍵修改代碼記錄:修改點1:注:為了使ucgui 適配 32 bit per pixsel typedef union { U32 aColorIndex8[2]; U32 aColorIndex16[2];}
Time of Update: 2018-12-05
在linux指令碼中,經常會看到有“command > file 2>&1”這種用法,一直不太理解,今天找時間查了相關資料,總結如下:(1)1是標準輸出stdout,2是標準出錯stderr,>代表重新導向;(2)command > file,實際上是command
Time of Update: 2018-12-05
1 修改eth0 設定檔 配置精通IP[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0"HWADDR="00:0C:29:5E:03:E8"NM_CONTROLLED="yes"ONBOOT="yes"BOOTPROTO="static"IPADDR="192.168.1.101"NETMASK="255.255.255.0"GATEWAY="192.168.1.1"重啟
Time of Update: 2018-12-05
jsoncpp是一個c++封裝的json包,跨平台支援windows、linux、unix等多系統,macOS據說也支援。在windows下面使用比較簡單,直接往vc裡面添加項目就可以了。linux下面編譯需要使用到scons,scons又是一個牛叉的工具,功能和GNU make一樣,又比make簡單多了。scons是python工具,需要先安裝好python。下載sconshttp://www.scons.org/解壓 tar -zxvf scons-2.0.1.tar.gz設定環境變數#
Time of Update: 2018-12-05
1。我個人認為作者MAX對Linux的瞭解不像他對Solaris那樣深入,我不知道也沒法知道他的下列關於Linux的內容來自自己的代碼閱讀分析還是只是來自第三方的文檔資料而未經自己實地驗證;2。我已經盡量符合原意地翻譯了,當然中間實在忍不住的地方也插兩句自己的話;3。無論是只閱讀這一篇文章,還是看其他東西,我都覺得,保持自己頭腦清醒很重要 4。謝謝Max Bruning
Time of Update: 2018-12-05
1.下載linux核心源檔案(www.kernel.org)2.安裝有關編譯工具 sudo apt-get install build-essential kernel-package libncurses5-dev3.把核心複製到/usr/src目錄下4.解壓核心 tar -xvjf linux-3.6.6.tar.bz25.清理以前編譯時間留下的臨時檔案。如果是剛剛解開的包,不需要執行這步。如果是第二次或者是第n次編譯,那麼一定要執行。 sudo make
Time of Update: 2018-12-05
1. 標準輸入的控制文法:命令 檔案將命令的執行結果送至指定的檔案中。例如:ls -l > list 將執行“ls -l” 命令的結果寫入檔案list 中。文法:命令>! 檔案將命令的執行結果送至指定的檔案中,若檔案已經存在,則覆蓋。例如:ls -lg >! list 將執行“ls - lg” 命令的結果覆蓋寫入檔案list 中。文法:命令>& 檔案將命令執行時螢幕上所產生的任何資訊寫入指定的檔案中。例如:cc file1.c >& error
Time of Update: 2018-12-05
除去核心源碼下的include目錄外,在arch/arm/mach-s3c2410/和arch/arm/plat-s3c24xx/目錄下都有include目錄的。#include <linux/kernel.h> /* printk() */#include <linux/slab.h> /* kmalloc() */#include <linux/fs.h> /*
Time of Update: 2018-12-05
1.熟悉Linux系統架構,熟悉Linux裝置驅動的各種編程介面和機制;2.熟悉Linux核心開發環境,Uboot移植,Linux核心裁剪,根檔案系統定製;3.瞭解ARM硬體工作基本原理及中斷處理、IO介面、匯流排結構;4.有強烈的責任感,工作積極主動,良好的團隊精神,性格開朗,善於溝通。1.對晶片架構及細節能夠深入掌握。2.做過基本上大部分的驅動,如果某個驅動沒有做過,也能很快就能夠獨立完成3.深入理解記憶體管理、進程管理、檔案系統等,不能停留在概念上,應該閱讀過基本上全部的源碼。
Time of Update: 2018-12-05
1.解壓arm-linux-gcc 檔案如:#tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz –C /2.把arm-linux-gcc 安裝到一個目錄下面如:將把 arm-linux-gcc 安裝到/opt/FriendlyARM/toolschain/4.5.1 目錄3.修改設定檔環境變數如:把編譯器路徑加入系統內容變數,運行命令#gedit /root/.bashrc編輯/root/.bashrc 檔案,注意“bashrc”前面有一個“.”,
Time of Update: 2018-12-05
mail:bookworepeng@Hotmail.comqq:196568501author:DriveMonkeyphone:13410905075Source:#include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int mmap_init(void){printk(KERN_ALERT"Hello world!\n");return
Time of Update: 2018-12-05
mail:bookworepeng@Hotmail.comqq:196568501author:DriveMonkey 問題: 運行 ”echo 117 > /sys/class/gpio/export“ 在 gpio 目錄下不能產生gpio117 檔案調試過程:第一步:在 gpio_request 設定列印資訊發現 test_and_set_bit 函數 傳回值為 --EBUSY思考:懷疑當前 gpio117 已經被其他驅動使用第二步:驗證第一步的懷疑在 gpio_request
Time of Update: 2018-12-05
author:DriverMonkeymail:bookworepeng@hotmail.comqq:196568501phone:13410905075-歡迎交流測試硬體平台-am335x(linux 3.2)前提條件:1.busybox 已經支援 mdev 2.核心已經直至隨身碟1) 在etc/init.d/ 目錄下船艦rcS 指令碼#! /bin/sh/bin/mount
Time of Update: 2018-12-05
作者:XiaoLin.Peng 歡迎交流 196568501 #include <linux/module.h>#include <linux/kernel.h>#include <linux/fs.h>#include <linux/init.h>#include <linux/delay.h>#include <linux/poll.h>#include
Time of Update: 2018-12-05
驅動代碼:#include <linux/kernel.h>#include <linux/module.h>#include <linux/cdev.h>#include <linux/fs.h>#include <linux/device.h>#include <linux/uaccess.h>#include <linux/string.h>struct message_to_app_dev{struct
Time of Update: 2018-12-05
4。安裝使用putty剛才用了minicom,的確是可以使用,但是,也是的確用起來不是很方便,最不方便,就是,對於終端的視窗大小無法通過拖拽調整,一拖,顯示內容就沒了,而且顯示寬度不夠,導致我無法拖寬。很是鬱悶。之前看上面文章中介紹,推薦用putty。所以就去安裝一個putty:sudo apt-get install
Time of Update: 2018-12-05
linux下AM335X的GPIO控制作者:chenzhufly QQ:36886052 ( 轉載請註明出處)一路走來,熟悉硬體系統,搭建軟體開發環境,編譯Linux系統等等,現在也該到對硬體做一些事情了,這是我這幾天的研究心得,與君共用。1. GPIO的char型驅動,這裡主要就是點個燈,感受一下驅動的設計和硬體的控制驅動程式:複製內容到剪貼簿代碼:#include <linux/init.h>#include <linux/module.h>#include <
Time of Update: 2018-12-05
#!/bin/sh# Author: DriverMonkey# Creating Date:october 30 2012# Contact Information: bokworepeng@hotmail.com, 196568501(QQ)echo "Begin to copy MLO"cp /usr/local/ti-sdk-am335x-evm/board-support/u-boot-2011.09-psp04.06.00.07/MLO
Time of Update: 2018-12-05
本章將介紹Linux輸入子系統的驅動開發。Linux的輸入子系統不僅支援滑鼠、鍵盤等常規輸入裝置,而且還支援蜂鳴器、觸控螢幕等裝置。本章將對Linux輸入子系統進行詳細的分析。輸入子系統大致實現方法: 底層驅動層(input_dev)-----<通過結構體input_handle關聯>-----輸入事件處理層類介面(input_handler)-----<輸入核心層input.c>-----應用程式層17.1
Time of Update: 2018-12-05
code:#include <linux/init.h>#include <linux/module.h>#include <linux/hardirq.h>MODULE_LICENSE("Dual BSD/GPL");static struct timer_list timer_data;static int counter = 0;static void test_timer(unsigned long temp){int ret = 0;printk("