<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>

新聞中心

EEPW首頁(yè) > 嵌入式系統 > 設計應用 > Linux操作系統在定制PMP DM320的應用

Linux操作系統在定制PMP DM320的應用

作者: 時(shí)間:2012-11-01 來(lái)源:網(wǎng)絡(luò ) 收藏

本文引用地址:http://dyxdggzs.com/article/148281.htm

  首先,在內核目錄下。/arch/arm/Kconfig 中加入 的配置選項,將 框架加入內核,這樣才能在執行make menuconfig 配置內核時(shí)看到 框架。修改內容如下:

  choice

  prompt ARM system type

  default ARCH_DM320_20

  表示:在配置ARM 架構的系統時(shí):默認的就是DM320 框架。

  sourcearch/arm/mach-dm320-20/Kconfig

  表示:把DM320 框架下的配置選項也引入,同時(shí)把其他CPU 框架去掉,這樣方便選擇。比如:

  #source arch/arm/mach-clps711x/Kconfig

  #sourcearch/arm/mach-integrator/Kconfig(#表示注釋掉相關(guān)的內容)

  最后把內核配置選項中對DM320 開(kāi)發(fā)有用的選進(jìn)來(lái)。比如:

  source drivers/char/Kconfig

  if (!ARCH_DM320_20)

  source sound/Kconfig

  endif

  表示:需要開(kāi)發(fā)字符設備的驅動(dòng),而不需要聲音的支持。

  因為要把CODEC 編入內核,所以還要加入對CODEC 支持的配置選向。

  source codecs/modules/Kconfig

  如果要加入一個(gè)新的外圍設備,也需要在Kconfig文件中加入相應的內容。比如說(shuō)要加入一個(gè)三星的4寸TFT-LCD 的驅動(dòng),就需要修改。/drivers/char/Kconfig 文件,并加入以下內容:

  config DM320_SAMSUNG_4_LCD

  tristate DM320 SAMSUNG 4.0 inch 16:9TFT LCD

  depends on ARCH_DM320_20 BOARD_400H

  default y

  help

  This driver provides support for SAMSUNG4.0' 16:9 TFT-LCD

  for DM320 Platform.

  config DM320_SAMSUNG_4_LCD:表示增加

  新的配置入口。一旦這個(gè)配置選項被選中就會(huì )在。/include/linux/autoconf.h 中有: #defineCONFIG_DM320_SAMSUNG_4_LCD 1

  這樣整個(gè)內核源碼中都可以使用CONFIG_DM320_SAMSUNG_4_LCD 進(jìn)行特定選擇。

  tristate DM320 SAMSUNG 4.0 inch 16:9TFT-LCD:在引號里的內容是在配置選項中的提示文字。tristate 表示除了可以選擇[*],[ ]外,還可以選擇[M],表示把當前內容當成模塊編譯。

  depends on ARCH_DM320_20 BOARD_400H: 如果配置平臺框架時(shí)選擇了ARCH_DM320_20,在選擇型號時(shí)選擇BOARD_400H,就能看到三星4 寸TFT-LCD 配置選項。

  default y:表示默認把此驅動(dòng)編入內核。

  help:help 的內容為對內核進(jìn)行配置時(shí),選中幫助選項所看到的內容。

  4.2 Makefile 文件的修改

  Makefile 根據配置文件。config 形成編譯源文件列表,GNU 編譯工具對源文件進(jìn)行編譯,把目標代碼鏈接在一起,形成 內核二進(jìn)制文件。Makefile分布在各源代碼目錄中。

  在作者所進(jìn)行的 設備開(kāi)發(fā)中,首先是對主Makefile 的修改,比如:

  ARCH:= arm

  CROSS_COMPILE:=arm-linux-(對編譯器的選項修改為ARM 平臺)

  EXTRAVERSION = -our0

  EXTRAVERSION 變量值被附加在內核版本編號之后,成為內核建立后的最終版本。項目中使用的內核版本號為2.6.5,加上EXTRAVERSION 變量后,最終的版本就是2.6.5-our0,表示開(kāi)發(fā)過(guò)程中零號內核版本。

  對其他子目錄的Makefile 文件的修改則相對容易。以加入三星4 寸TFT-LCD 驅動(dòng)為例說(shuō)明,當需要把此驅動(dòng)模塊加入相應的內核源碼樹(shù)時(shí), 要在。/drivers/char/Makefile 文件中加入如下內容:

  obj-$(CONFIG_DM320_SAMSUNG_4_LCD) +=dm320_lcd_samsung4.o

  5 總結

  本文探討了嵌入式消費類(lèi)電子產(chǎn)品上的,并實(shí)現了啟動(dòng)程序Bootloader 和內核的移植和。目前一些項目產(chǎn)品已經(jīng)過(guò)嚴格測試,成功推向市場(chǎng)。

linux操作系統文章專(zhuān)題:linux操作系統詳解(linux不再難懂)

上一頁(yè) 1 2 下一頁(yè)

關(guān)鍵詞: DM320 應用 PMP 定制 操作系統 Linux

評論


相關(guān)推薦

技術(shù)專(zhuān)區

關(guān)閉
国产精品自在自线亚洲|国产精品无圣光一区二区|国产日产欧洲无码视频|久久久一本精品99久久K精品66|欧美人与动牲交片免费播放
<dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><small id="yhprb"></small><dfn id="yhprb"></dfn><small id="yhprb"><delect id="yhprb"></delect></small><small id="yhprb"></small><small id="yhprb"></small> <delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"></dfn><dfn id="yhprb"></dfn><s id="yhprb"><noframes id="yhprb"><small id="yhprb"><dfn id="yhprb"></dfn></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><small id="yhprb"></small><dfn id="yhprb"><delect id="yhprb"></delect></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn> <small id="yhprb"></small><delect id="yhprb"><strike id="yhprb"></strike></delect><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn><dfn id="yhprb"><s id="yhprb"><strike id="yhprb"></strike></s></dfn><dfn id="yhprb"><s id="yhprb"></s></dfn>