文档详情

虚拟机上安装Linux操作系统ubuntu9.10.doc

发布:2017-12-31约1.7万字共30页下载文档
文本预览下载声明
y第4章 嵌入式Linux软件开发环境搭建 体验嵌入式linux系统 1. 获得光盘image目录提供的映像文件 2. 使用h-jtag将u-boot.bin烧写进nor flash中 3. 启动超级终端,设置bautrate为115200,8IN1。重启开发板,将会进入u-boot的命令界面。表明bootloader已正常运行 Dennis Yang 4. 在PC机上安装usb驱动(安装文件位于光盘software\USB Download Driver.exe) 5. 用usb线将PC机与开发板连接起来 6. 在PC机上启动USB传输软件dnw(位于光盘software\dnw.exe) 7. 在开发板上输入usbslave命令,让开发板进入等待接收数据状态 Dennis Yang usbslave 1 0USB host is connected. Waiting a download 8. 在dnw软件界面,单击“USB Port”--“Transmit/Restore”,找到image目录中的kernel文件uImage(如果你使用的是天嵌tq2440,请选择uImage-embsky),进行传输。这将导致uImage被传输到开发板内存的0 Dennis Yang usbslave 1 0USB host is connected. Waiting a download. Now, Downloading [ADDRESS,TOTAL:1518826] RECEIVED FILE SIZE: 1518826 (741KB/S, 2S) 9. 在u-boot命令行输入命令,将nand flash的0x100000 -- 0x400000区间擦除(格式化) Dennis Yang nand erase 0x100000 0x300000 NAND erase: device 0 offset 0x100000, size 0x30000 Erasing at 0x120000 -- 133% complete. OK 10. 在u-boot命令行输入命令,将内存0的kernel烧写到nand flash的0x100000-- 0x400000区间 Dennis Yang nand write.jffs2 00x100000 0x300000 NAND write: device 0 offset 0x100000, size 0x300000 Writing data at 0x3ff800 -- 100% complete. 3145728 bytes written: OK 11. 使用相同的方法将根文件系统(myfs-128M.jffs2,如果使用64M的nand flash,请选择myfs-64M.jffs2)烧写到nand flash的0x400000 -- 0x3c00000区间 Dennis Yang usbslave 1 0USB host is connected. Waiting a download. Now, Downloading [ADDRESS,TOTAL RECEIVED FILE SIZE(667KB/S, 36S) Dennis Yang nand erase 0x400000 0x3c00000 NAND erase: device 0 offset 0x400000, size 0x3c00000 Erasing at 0x3fe0000 -- 100% complete. OK Dennis Yang nand write.jffs2 00x400000 $(filesize) NAND write: device 0 offset 0x400000, size 0x1774a28 Writing data at 0x1b74800 -- 100% complete. bytes written: OK 12. 输入启动操作系统命令,将进入linux操作系统 Dennis Yang boot 13. 使用触笔进行屏幕校正后,将进入qtopia图形系统 如果由于屏幕校正不准确而不能正常使用触摸屏的话,请删除/etc/pointercal文件后,重启开发板,重新进行校正 14. 在linux命令提示符下,播放歌曲 # madplay /music/pianpianxihuanni.mp3 MPEG Audio Decoder 0
显示全部
相似文档