FL2440移植linux核心常用命令(command)

來源:互聯網
上載者:User

標籤:style   color   os   ar   strong   檔案   sp   on   linux   

Host Ubuntu系統:
sudo ifconfig eth0 192.168.1.2

打補丁(補丁和核心在同一目錄下/home/chris/temp):
cd /home/chris/temp/linux-3.0
patch -p1 < ../linux-3.0-s3c2440.patch

開發板u-boot:

setenv bootargs ‘root=/dev/nfs rw nfsroot=192.168.1.2:/home/chris/nfs_work ip=192.168.1.1 console=ttySAC0‘

setenv bootcmd ‘tftp 30008000 uImage;bootm 30008000‘

save

編譯核心linux-3.4.2:

make menuconfig

make zImage

cd /home/chris/temp/linux-3.4.2

cp /home/chris/temp/linux-3.4.2/arch/arm/boot/zImage /home/chris/temp/u-boot-2010_fl2440/u-boot-2010.09/tools

cd /home/chris/temp/u-boot-2010_fl2440/u-boot-2010.09/tools

./mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008040 -n "Linux kernel Image" -d zImage uImage

cp uImage /home/chris/tftpboot


添加nfs根檔案系統.
剪下解壓的根檔案系統到nfs_work/ 目錄下
cd /home/chris/nfs_work

sudo mknod dev/console c 5 1

sudo mknod dev/null c 1 3

FL2440移植linux核心常用命令(command)

聯繫我們

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