?? 00000006.htm
字號:
<?xml version="1.0" encoding="gb2312"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><title>linux for ppc chapter 6 jacobw </title></head><body><center><h1>BBS 水木清華站∶精華區(qū)</h1></center><a name="top"></a>發(fā)信人: plato (純真年代), 信區(qū): Embedded <br />標(biāo) 題: linux for ppc chapter 6 <br />發(fā)信站: BBS 水木清華站 (Wed May 30 23:12:10 2001) <br /> <br />Next Previous Contents <br />---------------------------------------------------------------------------- <br />---- <br />6. Programming the Target <br />Beware that many commercial tools will not handle the Linux zImage correctly <br />. They often ignore the .image and .initrd sections (containing the compress <br />ed kernel and initial ramdisk images respectively), because these sections a <br />ren't marked with the LOAD attribute. Whether this is a bug in the tools or <br />in the zImage build process is debatable. Many developers avoid the problem <br />by simply skipping the 64K ELF header, treating the rest as a binary image a <br />nd jumping to the first byte to enter the kernel loader. <br />If you want your debugger to have access to kernel symbols, use the conventi <br />onal uncompressed vmlinux ELF image rather than zImage. <br />6.1 BDM/JTAG Downloading <br />If your board is wired correctly, and you're using Flash memory, you can pro <br />gram it on your board using BDM, described later under Debugging. This isn't <br /> the fastest method, but it's by far the easiest. <br />6.2 TFTP <br />If your ROM monitor supports TFTP, this is the fastest/easiest way to downlo <br />ad code to your target during development. <br />There is a program that will hack the headers such that the VxWorks TFTP loa <br />der would load the zImage, at: <a href="ftp://ftp.mvista.com/pub/Area51/ppc-8xx/vxhac">ftp://ftp.mvista.com/pub/Area51/ppc-8xx/vxhac</a> <br />k.c <br />6.3 Flash/EPROM Programmers <br />You will need socketed flash to make this viable. There are sockets availabl <br />e even for surface mount flash devices which preserve the device footprint, <br />but they consume extra space on your board, even when you go to production a <br />nd leave them off. <br />Some commercial E/PROM programming units only support Windows, which may be <br />a problem if you only have access to Linux machines. <br />The Data I/O units have a terminal mode and an onboard floppy so they could <br />be used from Linux without a problem. <br />The general consensus is that anything with serial/parallel support and a DO <br />S binary should be able to be used from DOSEMU. There are some options to al <br />low direct parport access so RTFM on dosemu. VMWare hosting one of these sho <br />uld be no problem at all. <br />Once you have a basic kernel booting on your board, you can use a flash driv <br />er to quickly reflash a new kernel. You need to be confident that the new on <br />e will boot though, or have some alternative method of recovering if it does <br />n't, like socketed ROMs or a BDM flash programmer. <br />---------------------------------------------------------------------------- <br />---- <br />Next Previous Contents <br /> <br />-- <br /> <br />※ 來源:·BBS 水木清華站 smth.org·[FROM: 166.111.161.8] <br /><a href="00000005.htm">上一篇</a><a href="javascript:history.go(-1)">返回上一頁</a><a href="index.htm">回到目錄</a><a href="#top">回到頁首</a><a href="00000007.htm">下一篇</a></h1></center><center><h1>BBS 水木清華站∶精華區(qū)</h1></center></body></html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -