达芬奇培训资料.ppt

十、boot 方式-方案一 第95页 说明:跳线选择12连通其它都不连接 Copy the kernel image in /tftpboot directory: host $ cp ~workdir/lsp/ti-davinci/arch/arm/boot/uImage /tftpboot Copy the initial RAM disk file system in /tftpboot directory: host $ cp /mnt/def_cd/ramdisk.gz /tftpboot/ Download the Linux kernel via TFTP: DVEVM # setenv serverip tftp server ip address DVEVM # setenv bootfile uImage DVEVM # dhcp Download the RAM disk file system via TFTP: DVEVM # tftp 0ramdisk.gz Determine the location in flash to store image: EVM # flinfo 十、boot 方式-方案一 第96页 Erase the flash: DVEVM # protect off 0x2050000 +0x2FBCA3 Copy from RAM into flash: DVEVM # cp.b 00x2050000 0xc9224 DVEVM # cp.b 00x2119224 0x232a7f Protect the flash from writing: DVEVM # protect on 0x2050000 +0x2FBCA3 9. Set the U-Boot Command and Linux Kernel Command Line: DVEVM # setenv bootargs console=ttyS0,115200n8 ip=dhcp root=/dev/ram0 rw initrd=06M DVEVM# setenv bootcmd ‘cp.b 0x2119224 00x232a7f; bootm 0 10. Now, the system is ready to boot, so save the u-boot environment variable: DVEVM # saveenv DVEVM # boot 十、boot 方式-方案一 第97页 Linux现在就可以从flash上启动,并且根文件系统被挂载到 /dev/ram0上。在16MNOR flash存储器上,u-boot、root file system和压缩的RAM disk如表分布。 十、boot 方式-方案二 第98页 Nor boot + nand file system 1、硬件环境 :跳线要正确 2、软件环境 内核路径:主机上的/home/wangxw/montavista/pro/devkit/lsp/ti-davinci下 encodedecoded程序 相应的程序和工具: 自启动文件系统映像:jffs2_auto.img 3、内核配置 十、boot 方式-方案二 第99页 DHCP配置 支持自启动的内核需要关闭DHCP相关选项,以实现在内核启动时不自动发出 DHCP请求,选项如图所示: 十、boot 方式-方案二 第100页 NFS配置 支持JFFS2文件系统自启动的内核,需要关闭NFS相关选项,选项如下图所示: 如果需要打开NFS,选项如下图所示: 十、boot 方式-方案二 第101页 4、文件系统 网络配置 修改/etc/network/interfaces脚本,如下,设置的IP地址为 auto eth0 iface eth0 inet static address netmask network #optional broadcast 55 #optional gateway 9 十、boot 方式-方案二 第102页 移植encodedecoded可执行环境到jffs2文件系统中: 建立/opt/demo文件夹 添加/opt/demo 需要的文件 all.x64P, data文件夹(alertsound.wav),dsplinkk.ko,loadmodules.sh, unloadmodules.sh,cmemk.ko,dav

文档评论(0)

1亿VIP精品文档

相关文档