Time of Update: 2018-12-03
1、APT主要命令apt-cache search ------package 搜尋包sudo apt-get install ------package 安裝包sudo apt-get remove -----package 刪除包sudo apt-get remove --purge ------package 刪除包,包括刪除設定檔等sudo apt-get update ------更新源sudo apt-get upgrade ------更新已安裝的包sudo apt-get
Time of Update: 2018-12-03
在Virtualbox主介面中可以看到USB裝置,在虛擬機器中的可分配USB裝置也可以看到,但是灰色不可用。解決辦法: 1)、添加組:vboxusers(已添加)和usbfs # groupadd usbfs 2)、將常用使用者$(admin)$加入到這兩個組中 # cat /etc/group vboxusers:x:802:admin usbfs:x:803:admin 請將admin替換成你的使用者名稱 或使用sudo adduser admin
Time of Update: 2018-12-03
This is the fourth article in the irregular LWN series on writing videodrivers for Linux. Those who have not yet readthe introductory article maywant to start there. This week's episode describes how an application candetermine which inputs and
Time of Update: 2018-12-03
一、電阻電阻在電路中用“R”加數字表示,如:R1表示編號為1的電阻。電阻在電路中的主要作用為分流、限流、分壓、偏置等。1、參數識別:電阻的單位為歐姆(Ω),倍率單位有:千歐(KΩ),兆歐(MΩ)等。換算方法是:1兆歐=1000千歐=1000000歐電阻的參數標註方法有3種,即直標法、色標法和數標法。a、數標法主要用於貼片等小體積的電路,如:472 表示 47×100Ω(即4.7K); 104則表示100Kb、色環標註法使用最多,現舉例如下:四色環電阻五色環電阻(精密電阻)
Time of Update: 2018-12-03
轉自:http://www.armfans.net/redirect.php?tid=1838&goto=lastpost Google已經在GIT上放出了android2.0-eclair的源碼,喜好的同志趕快去下載吧。在用repo下載源碼時,別忘記加入選項“-b eclair”如果你是用預設下載:repo init -u
Time of Update: 2018-12-03
This article is a continuation of the irregular LWN series on writing videodrivers for Linux. Theintroductory article describes theseries and contains pointers to the previous articles. Inthe last episode, we looked at how the Video4Linux2 API
Time of Update: 2018-12-03
device_add函數最終會調用kobject_event_env函數,如果event_helper存在的話,那麼會調用這個函數 event_helper可以通過如下方法設定 echo /your_helper_path/your_helper_cmd >
Time of Update: 2018-12-03
一、SDIO 裝置驅動移植(1)修改SD卡驅動使核心支援SD卡修改檔案:arch/arm/mach-s3c2410/mach-smdk2410.c 添加所需標頭檔: #include<mach/gpio.h> #include<linux/mmc/host.h> #include<plat/mci.h> //增加平台裝置對sd卡的支援 static struct platform_device *smdk2410_devices[] __initdata
Time of Update: 2018-12-03
一、下載源碼: 在http://gd.tuwien.ac.at/infosys/servers/isc/dhcp/ ,選中 dhcp-3.1-ESV-R3.tar.gz。二、配置、編譯(1)解壓 tar -zxvf
Time of Update: 2018-12-03
With the completion of part 6ofthis series, we now know how to set up a video device and transferframes back and forth. It is a well known fact, however, that users can behard to please; not content with being able to see video from
Time of Update: 2018-12-03
接手了一個觸控螢幕的bug, 觸控螢幕偶爾會發生跳點,四線觸控螢幕, pmic13892採樣,採樣包括座標和contact-resistance 假定contact-resistance最大 最小值分別為resist_max, resist_min經過觀察發現跳點發生在兩種情況:1. 使用觸筆,指甲尖等硬物在離開屏的瞬間會發生跳點,發生跳點時contact-resistance採樣值遠大於resist_min, 並且小於resist_max2.
Time of Update: 2018-12-03
檔案資料管理傳統檔案系統,如ext2通過ext2_inode的i_block成員管理檔案的資料,i_block的直接塊和間接塊組成了一棵樹,對某個邏輯地址的讀取,需要在這個樹上找到相應的物理塊指標。UBIFS為每一片資料建立一個data node,這一片資料一般指UBIFS_BLOCK_SIZE。data node被插入到wandering tree上,通過ino+type+blockno組成的key在wandering tree上尋找blockno對應的data
Time of Update: 2018-12-03
Horizontal回掃和Vertical回掃是CRT引入的概念,電子束從左向右畫水平線,回到下一行行首繼續下一行掃描,直到螢幕最下一行,然後回到螢幕上方繼續下一幀掃描。水平回掃:電子束從上一行尾移動到下一行起始點需要的時間幀回掃:電子束從螢幕下方移動到螢幕上方所需的時間 CRT的重新整理屏率是怎麼計算的:假定顯卡的dotclock是28.37516MHZ1. 那麼每個點的掃描時間是1/(28.37516E6 Hz) = 35.242E-9 s2. 如果螢幕解析度是640x480
Time of Update: 2018-12-03
ioremap和vmalloc一樣,都會返回vmalloc區的虛擬位址,但是ioremap並不會分配任何實體記憶體,ioremap也需要建立新的頁表來訪問物理頁面。ioremap擷取的虛擬位址空間需要使用iounmap來釋放。ioremap主要用來映射裝置的實體記憶體到核心的虛擬位址空間,這樣,核心就可以通過這些虛擬位址空間訪問裝置記憶體。使用ioremap需要注意幾點:1. 盡量不要直接存取這些虛擬位址,使用專用的io操作函數可以增加移植性,當然有些特殊情況,比如android
Time of Update: 2018-12-03
為了使單獨編譯的C語言程式和組譯工具之間能夠相互調用,必須為子程式之間的調用規定一定的規則.ATPCS就是ARM程式和THUMB程式中子程式調用的基本規則...一.ATPCS概述... ATPCS規定了一些子程式之間調用的基本規則.這些基本規則包括子程式調用過程中寄存器的使用規則,資料棧的使用規則,參數的路由規則.為適應一些特定的需要,對這些基本的調用規則進行一些修改得到幾種不同的子程式調用規則,這些特定的調用規則包括:支援資料棧限制檢查的ATPCS.支援唯讀段位置無關的ATPCS.
Time of Update: 2018-12-03
之前調試MXC V4L2驅動一直沒有注意到output/mxc_v4l2_output.c這個檔案,因為capture/*.c已經提供了still capture, stream capture, 以及overlay,所以沒仔細的去看mxc_v4l2_output.c提供的功能,直到前幾天負責維護overlay hal的同事提出開啟了overlay hal /dev/video16這個裝置節點,才讓我跟到這個檔案中先從/dev/video0 和video16說起:MXC
Time of Update: 2018-12-03
This is the second article in the LWN series on writing drivers for theVideo4Linux2 kernel interface; those who have not yet seenthe introductory article maywish to start there. This installment will look at the overall structureof a Video4Linux
Time of Update: 2018-12-03
安裝sudo apt-get install ckermit配置編輯~/.kermrc檔案如下:set line /dev/ttyS0set speed 115200set carrier-watch offset handshake noneset flow-control nonerobustset file type binset file name litset rec pack 1000set send pack 1000set window 5串連Android裝置kermit c
Time of Update: 2018-12-03
Anybody who has spent any amount of time working through the Video4Linux2 APIspecification will have certainly noted that V4L2 makes heavy use oftheioctl() interface. Perhaps more than just about any othertype of peripheral, video hardware has a
Time of Update: 2018-12-03
項目閑暇,想瞭解下UBIFS,就先從UBIFS的設計文檔翻譯開始吧,以後有機會有時間能分析下UBIFS源碼 flash memory檔案系統需要異地更新(out-of-place updates). 這是因為flash儲存在寫之前必須擦除, 並且每次擦除後只能寫一次。如果擦除塊很小並且擦除速度很快,那麼擦除塊可以看作是磁碟扇區,然而事實並非如此。讀取整個擦除快,擦除它然後回寫更新的資料,