嵌入式linux移植總結

來源:互聯網
上載者:User

修改並編譯核心

增加或修改arch/xx/mach-xx.c檔案,

修改MACHINE_START第一個參數為ID,

在static void __init xx_map_io(void)中修改時鐘s3c24xx_init_clocks(12000000);

修改nand資訊在static struct mtd_partition smdk_default_nand_part[]修改分區資訊,和static struct s3c2410_nand_set smdk_nand_sets[]中.partitions  = smdk_default_nand_part,static struct s3c2410_platform_nand mini6410_nand_info中.sets  = mini6410_nand_sets,static void __init
mini6410_machine_init(void)中設定nand資訊s3c_nand_set_platdata(&mini6410_nand_info),static struct platform_device *mini6410_devices[] __initdata中添加nand驅動&s3c_device_nand

在arch/tools/mach-types中增加ID:名字 Kconfig宏 mach-xx.c中START的ID 編號

在Kconfig中增加,config節點

在Makefile中增加,obj-$(CONFIG_MACH_xx)+= mach-xx.o

添加yaffs驅動補丁

配置核心,make menuconfig,添加yaffs驅動、增加eabi介面支援

編譯核心,make zImage

構建根檔案系統

基礎目錄bin,lib,etc,proc,sys,dev,usr,sbin,tmp,mnt,

建立基礎裝置consol(c 5 1),null(c 1 3)

編譯busybox,make menuconfig

編譯安裝bootloader

建立/board/xx/xx目錄

修改機器碼include/asm-arm/mach-types.h

頂級Makefile中增加xx_config : unconfig
 @$(MKCONFIG) $(@:_config=) arm  xx samsung s3c64xx

board/xx/Makefile中增加COBJS := xx.o flash.o

在cpu/xx/start.S和xx.c中修改時鐘

修改串口速率cpu/xx/xx/speed.c

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.