




下載本文檔
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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沒(méi)有被定義,smc9115_pre_init不會(huì)執(zhí)行,實(shí)際#ifdef//DM9000gd->bd->bi_arch_number=//2456TPADID號(hào),不同開發(fā)板有不同的ID號(hào)gd->bd->bi_boot_params== //u-boot啟動(dòng)內(nèi)核時(shí),會(huì)給內(nèi)核傳遞啟動(dòng)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:通過(guò)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語(yǔ)法的擴(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//這個(gè)宏用于修飾u_boot_cmd_go,通到.u_boot_cmd指定的段中,以便于快速={go, CFG_MAXARGS,命令最大的參數(shù)個(gè)數(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號(hào) :uboot啟動(dòng)內(nèi)核時(shí),傳遞start.S-->8K代碼在CPUlowlevel_init.S->CPU內(nèi)部硬件控制器初化內(nèi)存控制器,串口,NandFlash將整個(gè)u-bo
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 202212月1日世界艾滋病日
- 招標(biāo)專業(yè)人員招聘面試實(shí)戰(zhàn)模擬題庫(kù)
- 知識(shí)題庫(kù)-水泥工藝學(xué)自測(cè)知識(shí)考試題及答案
- 小學(xué)影子數(shù)學(xué)課程解析
- 中學(xué)面試題目精 編:高中版
- 高品質(zhì)求職必 備:供銷會(huì)計(jì)面試題精 編職業(yè)崗位分析
- 初中語(yǔ)文招聘導(dǎo)航:探尋高質(zhì)量的面試題庫(kù)等你挑戰(zhàn)
- 新建高職院校匯報(bào)
- 新員工匯報(bào)演講
- 偉人細(xì)胞教案
- 2025醫(yī)院醫(yī)療器械不良事件監(jiān)測(cè)與報(bào)告制度
- 企業(yè)廉潔管理辦法
- 2025年列車長(zhǎng)(官方)-高級(jí)工歷年參考試題庫(kù)答案解析(5卷套題【單項(xiàng)選擇題100題】)
- DBJ50-T-306-2024 建設(shè)工程檔案編制驗(yàn)收標(biāo)準(zhǔn)
- 2025四川雅安滎經(jīng)縣國(guó)潤(rùn)排水有限責(zé)任公司招聘5人筆試歷年參考題庫(kù)附帶答案詳解
- 2025中國(guó)銀行新疆區(qū)分行社會(huì)招聘筆試備考試題及答案解析
- 動(dòng)脈置管并發(fā)癥
- 藥品醫(yī)療器械試題及答案
- 2025年甘肅社會(huì)化工會(huì)工作者招聘考試(公共基礎(chǔ)知識(shí))模擬試題及答案
- 2025年甘肅省高考?xì)v史試卷真題(含答案解析)
- 涂裝(電泳)廢水操作說(shuō)明書
評(píng)論
0/150
提交評(píng)論