u-boot 掛載NFS

來源:互聯網
上載者:User

UBL和UBOOT通過模擬器燒寫成功後,串口啟動後需要燒寫核心並掛載NFS檔案系統,主要步驟如下:

當然需要配置TFTP 和NFS相應的環境,uImage和rootfs檔案需要放在TFTP的設定的檔案夾下面;

(具體涉及到的IP地址,根據實際情況來配置)

1設定地址,供TFTP下載燒寫核心

setenv ipaddr 192.168.3.37

setenv serverip 192.168.3.100

set ethaddr 10:23:45:67:89:ab

2設定啟動命令

setenv bootcmd 'nboot 0x80700000 0 0x400000;bootm'

setenv nfshost 192.168.3.38

setenv rootpath /opt/dvsdk/filesystem/nfs

3下載核心並燒寫

tftp 0x80700000 uImage

nand erase 0x400000 0x250000

nand write 0x80700000 0x400000 0x250000

4設定啟動的參數,NFS檔案系統

NFS 需要配置一下/etc/exports這個檔案

Service portmap start

/etc/init.d/nfs-kernel-server start(Ubuntu)

可以用命令:mount -t nfs 192.168.3.38:/root/targetfs /mnt 如果掛載成功,說明NFS配置成功

 

 

前提:虛擬機器和主機的IP在一個網段,而且可以互相ping通,防火牆需要關掉(需要一個路由器,或者交換器,否則會導致掛不上)

 

setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock mem=60M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0 davinci_capture.device_type=1 davinci_enc_mngr.ch0_mode=pal

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.