www.久久久久|狼友网站av天堂|精品国产无码a片|一级av色欲av|91在线播放视频|亚洲无码主播在线|国产精品草久在线|明星AV网站在线|污污内射久久一区|婷婷综合视频网站

當(dāng)前位置:首頁 > 嵌入式 > 嵌入式教程
[導(dǎo)讀]移植mtd-utils-20080508到9G9260開發(fā)板

1,下載解壓源碼:

root@yuanxh-desktop:/home/yuanxh/sam9260# wget http://debian.mirror.inra.fr/debian/pool/main/m/mtd-utils/mtd-utils_20080508.orig.tar.gz

root@yuanxh-desktop:/home/yuanxh/sam9260# wget http://www.zlib.net/zlib-1.2.3.tar.gz

root@yuanxh-desktop:/home/yuanxh/sam9260# wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.03.tar.gz

root@yuanxh-desktop:/home/yuanxh/sam9260# tar xzvf zlib-1.2.3.tar.gz

root@yuanxh-desktop:/home/yuanxh/sam9260# mv zlib-1.2.3 zlib-1.2.3-9g9260

root@yuanxh-desktop:/home/yuanxh/sam9260# tar xzvf lzo-2.03.tar.gz

root@yuanxh-desktop:/home/yuanxh/sam9260# mv lzo-2.03 lzo-2.03-9g9260

root@yuanxh-desktop:/home/yuanxh/sam9260# tar xzvf mtd-utils_20080508.orig.tar.gz

root@yuanxh-desktop:/home/yuanxh/sam9260# mv mtd-utils-20080508 mtd-utils-20080508-9g9260

2,編譯安裝zlib:

root@yuanxh-desktop:/home/yuanxh/sam9260# cd zlib-1.2.3-9g9260

root@yuanxh-desktop:/home/yuanxh/sam9260/zlib-1.2.3-9g9260# CC=arm-linux-gcc ./configure --shared --prefix=/usr/zlib-1.2.3

root@yuanxh-desktop:/home/yuanxh/sam9260/zlib-1.2.3-9g9260# make

root@yuanxh-desktop:/home/yuanxh/sam9260/zlib-1.2.3-9g9260# make install

root@yuanxh-desktop:/home/yuanxh/sam9260/zlib-1.2.3-9g9260# cd ..

3,編譯安裝lzo:

root@yuanxh-desktop:/home/yuanxh/sam9260# cd lzo-2.03-9g9260/

root@yuanxh-desktop:/home/yuanxh/sam9260/lzo-2.03-9g9260# CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/usr/lzo-2.03

root@yuanxh-desktop:/home/yuanxh/sam9260/lzo-2.03-9g9260# make

root@yuanxh-desktop:/home/yuanxh/sam9260/lzo-2.03-9g9260# make install

root@yuanxh-desktop:/home/yuanxh/sam9260/lzo-2.03-9g9260# cd ..

4,修改mtd-utils的Makefile文件

root@yuanxh-desktop:/home/yuanxh/sam9260# cd mtd-utils-20080508-9g9260/

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# cp Makefile Makefile.arm

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# cp Makefile Makefile.x86

修改Makefile.arm文件

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# vi Makefile.arm

把第8行的 #CROSS=arm-linux-

修改為 CROSS=arm-linux-

把第10行的 CFLAGS := -I./include $(OPTFLAGS)

修改為

CFLAGS := -I./include $(OPTFLAGS) -I/usr/zlib-1.2.3/include -I/usr/lzo-2.03/include

LDFLAGS := -L/usr/zlib-1.2.3/lib -L/usr/lzo-2.03/lib

把第46行的 make -C $(BUILDDIR)/ubi-utils

修改為 make -C ubi-utils

把第46行的 make -C $(BUILDDIR)/ubi-utils clean

修改為 make -C ubi-utils clean

5,增加mtd-utils的編譯腳本

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# vi mkall

在 mkall中寫入:

make -f Makefile.$1 clean

make -f Makefile.$1 WITHOUT_XATTR=1

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# vi mkclean

在 mkall中寫入:

make -f Makefile.$1 clean

保存后修改可執(zhí)行權(quán)限

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# chmod 777 mkall

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# chmod 777 mkclean

6,編譯mtd-utils

ARM版本

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# ./mkall arm

可以得到flash_eraseall等工具命令

X86版本

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# ./mkall x86

可以得到mkfs.jffs2等工具命令

7,清除mtd-utils目標(biāo)碼

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# ./mkclean arm

root@yuanxh-desktop:/home/yuanxh/sam9260/mtd-utils-20080508-9g9260# ./mkclean x86

本站聲明: 本文章由作者或相關(guān)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請及時聯(lián)系本站刪除。
換一批
延伸閱讀

新竹2025年9月9日 /美通社/ -- 全球客制化存儲芯片解決方案設(shè)計公司愛普科技今日宣布,其新一代PSRAM—ApSRAMTM (Attached-pSRAM)已通過客戶平臺驗(yàn)證,預(yù)計將于年底開始量產(chǎn)。ApSRAMT...

關(guān)鍵字: PSRAM 低功耗 存儲芯片 MT

為高效精準(zhǔn)的分析提供一站式解決方案 上海2025年9月9日 /美通社/ -- 科學(xué)探索與產(chǎn)業(yè)升級浪潮下,AI賦能的精準(zhǔn)分析技術(shù)正加速重構(gòu)未來實(shí)驗(yàn)室。自動化技術(shù)和技術(shù)培訓(xùn)領(lǐng)域的世界領(lǐng)導(dǎo)者,F(xiàn)esto(展位:E2333)首...

關(guān)鍵字: FESTO 測試 MT 運(yùn)動控制

深圳2025年9月8日 /美通社/ -- 晶泰科技(2228.HK)今日宣布,由其助力智擎生技制藥(PharmaEngine, Inc.)發(fā)現(xiàn)的新一代PRMT5抑制劑PEP0...

關(guān)鍵字: 泰科 AI MT BSP

2025年9月9日,致力于亞太地區(qū)市場的國際領(lǐng)先半導(dǎo)體元器件分銷商---大聯(lián)大控股宣布,其旗下世平推出以芯馳科技(SemiDrive)E3106 MCU為主,輔以安森美(onsemi)NCV8730低壓差穩(wěn)壓器、恩智浦(...

關(guān)鍵字: 車身控制器 開發(fā)板 收發(fā)器

2025年8月26日,?Elexcon深圳國際電子展?在?深圳會展中心(福田)1號館?(展臺號:1L30)盛大舉行。作為全球電子產(chǎn)業(yè)鏈的重要盛會,展會匯聚創(chuàng)新技術(shù)與行業(yè)解決方案。米爾電子MYIR攜RZ系列核心板、開發(fā)板等...

關(guān)鍵字: 核心板 開發(fā)板 MCU

隨著大語言模型(LLM)技術(shù)的快速迭代,從云端集中式部署到端側(cè)分布式運(yùn)行的趨勢日益明顯。端側(cè)小型語言模型(SLM)憑借低延遲、高隱私性和離線可用的獨(dú)特優(yōu)勢,正在智能設(shè)備、邊緣計算等場景中展現(xiàn)出巨大潛力。

關(guān)鍵字: 開發(fā)板 大語言模型 邊緣計算

本文中,小編將對單片機(jī)予以介紹,如果你想對它的詳細(xì)情況有所認(rèn)識,或者想要增進(jìn)對它的了解程度,不妨請看以下內(nèi)容哦。

關(guān)鍵字: 單片機(jī) 開發(fā)板 Keil

在數(shù)字化浪潮席卷全球的今天,F(xiàn)PGA技術(shù)正成為驅(qū)動創(chuàng)新的核心引擎。2025年8月21日,深圳將迎來一場聚焦FPGA技術(shù)與產(chǎn)業(yè)應(yīng)用的盛會——2025安路科技FPGA技術(shù)沙龍。本次沙龍以“定制未來 共建生態(tài)”為主題,匯聚行業(yè)...

關(guān)鍵字: FPGA 核心板 開發(fā)板

在智能視覺技術(shù)不斷發(fā)展的今天,多路攝像數(shù)據(jù)的處理與傳輸已成為眾多應(yīng)用場景的核心需求。從智能安防監(jiān)控領(lǐng)域的全面覆蓋,到工業(yè)視覺處理網(wǎng)關(guān)的精準(zhǔn)檢測,再到車載環(huán)視融合平臺的實(shí)時駕駛輔助以及智慧社區(qū)AI防控的快速響應(yīng),多路攝...

關(guān)鍵字: 開發(fā)板 網(wǎng)關(guān) 核心板

因此,我們可以在米爾RK3576開發(fā)板上運(yùn)行opencv代碼,來完成一些視覺內(nèi)容,充分發(fā)揮該板的性能。要先編譯opencv需要一些預(yù)先的準(zhǔn)備工作首先更新軟件包并安裝必要的依賴:

關(guān)鍵字: 開發(fā)板 OpenCV
關(guān)閉