




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
u-boot.lds cpsr_c, NandFlash CPU內(nèi)部硬件控制器已經(jīng)能工作u-boot.binNandFlashNandFlashu-boot.binNandFlash中拷貝到內(nèi)存(外接1G)中393410436bss pc_start_armboot(偽指449 .word187c3e0020c: pc,[pc,#-4] ;c3e00210c3e00210 PC=0xc3e026b4,就表示Cu-boot.bin第2839c3e026b42840 {r4,r5,r6,鐘,內(nèi)存控制,串口,NandFlash控制器u-boot.bin(C3E00000)拷貝到MMUBSSldrpc_start_armboot(PCfor循環(huán)調(diào)用若start_armbootCsourceinsight .tar.bz2共享到windows下,并且解壓u-addallboard.c/start_armboottypedefint(init_fnc_t)//init_fnc_t函數(shù)類型,該函數(shù)返回值為int,參數(shù)voidinit_fnc_tfor(init_fnc_ptr=*init_fnc_ptr;++init_fnc_ptr)if((*init_fnc_ptr)()!=0){hang();}} structglobal_data unsignedlongflags;unsignedlongbaudrate;unsignedlonghave_console;/*serial_init()wascalled*/unsignedlongreloc_off;/*RelocationOffset*/unsignedlongenv_addr;/*AddressofEnvironmentstruct*/unsignedlongenv_valid;/*ChecksumofEnvironmentvalid?*/unsignedlongfb_base; /*baseaddressofframebuffer*/#ifdefunsignedcharvfd_type;/*displaytype*/#if0unsignedlongcpu_clk; /*CPUclockinHz! unsignedlong ram_size;/*RAMunsignedlong /*statusregisteratboot*/ /*jumptable}typedefstructbd_info /*serialconsolebaudrate*/unsignedlongbi_ip_addr; /*IPAddress*/unsignedcharbi_enetaddr[6];/*Ethernetadress*/ uniqueidforthisboard*/wherethisboardexpectsparams /*configuration ulong ulong}} #ifdefCONFIG_HAS_ETH1/*secondonboardethernetport*/unsignedchar }#defineDECLARE_GLOBAL_DATA_PTRregistervolatilegd_t*gdasm("r8")CPUarm-linux-gcc-g-Os mon-ffixed-r8int{//#ifdef//CONFIG_DRIVER_SMC911X沒有被定義,smc9115_pre_init不會執(zhí)行,實(shí)際#ifdef//DM9000gd->bd->bi_arch_number=//2456TPADID號,不同開發(fā)板有不同的ID號gd->bd->bi_boot_params== //u-boot啟動內(nèi)核時,會給內(nèi)核傳遞啟動return}int{gd->bd->bi_dram[0].start= gd->bd->bi_dram[0].size= #ifgd->bd->bi_dram[1].start= gd->bd->bi_dram[1].size= //CPUmemmap是不一樣的,所以此處初始化的s5pv210處理器的物理return}tarena# MAC ubuntu設(shè)定為 LCD的分 NandFlash bootargs=root=/dev/nfsinit=/linuxrc::eth0:onconsole=ttySAC0 stdout=serial bootdelaytarenau-boot令tftp ubuntu服務(wù)器上的 文件zImage(內(nèi)核)到開發(fā)板的內(nèi)存的0x tftp:通過tftp使用網(wǎng)絡(luò)文件到開發(fā)板 Nandnanderase:擦除NandFlashnanderase nandwrite:Nandnand 處的zImage內(nèi)核文件燒寫在NandFlash的5M開始,寫5M的內(nèi)容nandread:nandFlash存nand 從nandFlash5M的地址開始讀,讀5M,讀到內(nèi)存的0x tarena#setenvbootcmd 在NandFlash5M地址tarena#setenv nand500000500000\;bootm#define
((unused,sectionattributeGNUCC語法的擴(kuò)展,是GNUC的一大特色,可以用于設(shè)置cmd_tbl_t u_boot_cmd_start=u_boot_cmd_end=for(cmdtp= cmdtp!=&u_boot_cmd_end;cmdtp++)comman.c文件中 u_boot_cmd_go attribute ((unused,section//這個宏用于修飾u_boot_cmd_go,通到.u_boot_cmd指定的段中,以便于快速={go, CFG_MAXARGS,命令最大的參數(shù)個數(shù) 數(shù) -startapplicationat"addr[arg...]\n -startapplicationataddress'addr'\n" passing'arg'asarguments\n"http://幫}cmd_bootm.c文件中調(diào)用bootmU_BOOT_CMD(bootm,CFG_MAXARGS, -bootapplicationimagefrom"[addr[arg...]]\n -bootapplicationimagestoredinmemory\n""\tpassingarguments'arg...';whenbootingaLinuxkernel,\n""\t'arg'canbetheaddressofaninitrd#ifdefined(CONFIG_OF_LIBFDT)"\tWhenbootingaLinuxkernelwhichrequiresaflatdevice-"\tathirdargumentisrequiredwhichistheaddressofthe\n""\tdevice-treeblob.Tobootthatkernelwithoutaninitrdimage,\n""\tusea'-'forthesecondargument.Ifyoudonotpassathird\n""\tabd_infostructwillbepassed#if"\t\nForthenewmulticomponentuImageformat(FIT)addresses\n""\tmustbeextenedtoincludecomponentorconfigurationunitname:\n""\taddr:<subimg_uname>-directcomponentimagespecification\n" configurationspecification\n""\tUseiminfocommandtogetthelistofexistingcomponent\n""\timagesandconfigurations.\n" 2456:開發(fā)板的ID號 :uboot啟動內(nèi)核時,傳遞start.S-->8K代碼在CPUlowlevel_init.S->CPU內(nèi)部硬件控制器初化內(nèi)存控制器,串口,NandFlash將整個u-bo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025地下礦井配電工程師合同通知書
- 2025合同類型解析(固定期限合同、無固定期限合同、退休前合同與退休后合同)
- 2025馬鞍山市住宅裝飾裝修工程施工合同馬鞍山市工商行政管理
- 語言學(xué)導(dǎo)論知到課后答案智慧樹章節(jié)測試答案2025年春廣東外語外貿(mào)大學(xué)
- 2025標(biāo)準(zhǔn)房產(chǎn)抵押借款合同
- 2024年自貢市公安局招聘交通警察警務(wù)輔助人員真題
- 2024年雅安市委組織部雅安市市級事業(yè)單位選調(diào)真題
- 私人工作室勞動合同(2025年版)
- 土地果樹補(bǔ)償合同范本
- 2024年灌南農(nóng)村商業(yè)銀行招聘真題
- 《職場溝通技巧》(第三版)課件全套 陶莉 項(xiàng)目1-9 有效溝通基本功 - 有效溝通綜合實(shí)訓(xùn)
- 2024中華人民共和國學(xué)前教育法詳細(xì)解讀課件
- DB34T4912-2024二手新能源汽車鑒定評估規(guī)范
- 汞中毒課件教學(xué)課件
- 1-226海德漢530系統(tǒng)編程和操作說明書(五軸-特詳細(xì))
- 高中文言文教學(xué):從“言”到“文”的理性跨越
- 青島版小學(xué)數(shù)學(xué)四年級下冊認(rèn)識多邊形思維導(dǎo)圖知識講解
- 【年產(chǎn)五萬噸乙醛工藝設(shè)計7100字(論文)】
- 事業(yè)單位離崗創(chuàng)業(yè)規(guī)定2024年
- 壓力容器制造程序文件及表格(符合TSG 07-2019特種設(shè)備質(zhì)量保證管理體系)
- 2024年四川省南充市中考英語試卷真題(含官方答案及解析)
評論
0/150
提交評論