📄 guide.html.svn-base
字号:
2) already have a serial communication program like the minicom. 3) properly make the vivi binary to support a UART port when you configure the vivi. </P><P> If all of above is ok, you can see messages on the screen printed by the vivi. For example, below messages catched from the SMDK-2410 <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">VIVI version 0.1.4 (nandy@nandy.mizi.com) (gcc version 2.95.2 20000516 (release) [Rebel.com]) #0.1.4 荐 10岿 16 16:19:11 KST 2002MMU table base address = 0x33DFC000Succeed memory mapping.NAND device: Manufacture ID: 0xec, Chip ID: 0x75 (Samsung KM29U256T)Found saved vivi parameters.Press Return to start the LINUX now, any other key for vivi </PRE></TD></TR></TABLE> </P><P> See the last line on the screen. (As I mentioned section 1.1) the vivi has two mode: an autoboot mode and a prompt mode. The vivi wait for a key input. If an user want to enter the prompt mode, press andy key (except Enter key). And then you can see the "vivi>" prompt. Otherwise, the vivi try boot the linux kernel after waiting a few seconds or minutes. </P></DIV><DIVCLASS="SECTION"><HR><H2CLASS="SECTION"><ANAME="USERCOMMANS"></A>3.2. Built-in user commands</H2><P> This is not full-described built-in user comamnd. But following commands is enough to use the vivi (as far as I know). </P><DIVCLASS="SECTION"><HR><H3CLASS="SECTION"><ANAME="LOADCOMMAND"></A>3.2.1. <BCLASS="EMPHASIS">load</B> command</H3><P> A load command is loading binaries to the flash or the ram. </P><P> Usage: <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">load <media_type> [ <partname> | <addr> <size> ] <x|y|z></PRE></TD></TR></TABLE> <P></P><DIVCLASS="VARIABLELIST"><DL><DT><media_type></DT><DD><P> This argument is where to load. Availabe values are <BCLASS="EMPHASIS">flash</B> and <BCLASS="EMPHASIS">ram</B>. </P></DD><DT>[ <partname> ] or [ <addr> <size> ]</DT><DD><P> This arguement determines location where to load a binary. If you want to use pre-defined mtd partiton informations, just type a partition name. Otherwise you specify an address and a size. </P></DD><DT><x|y|z></DT><DD><P> This arguement determines the file transfer protocol. I shy that the vivi only supprot xmodem curruntly. So, Available value is "x". </P></DD></DL></DIV> </P><P> For exampe, you load zImage to flash memroy. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi > <BCLASS="COMMAND">load flash kernel x</B></PRE></TD></TR></TABLE> or you specify an address and a size. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi > <BCLASS="COMMAND">load flash 0x80000 0xc0000 x</B></PRE></TD></TR></TABLE> </P></DIV><DIVCLASS="SECTION"><HR><H3CLASS="SECTION"><ANAME="PARTCOMMAND"></A>3.2.2. <BCLASS="EMPHASIS">part</B> command</H3><P> The vivi has mtd partiton informations for the vivi. This informatin not related to mtd partition informations of mtd device drivers. The vivi uses partition informations when load a binary, boot the linux kernel, erase flash memroy, etc... </P><P> Avalilable commands are: </P><P> Display mtd partition informations. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">part show</PRE></TD></TR></TABLE> </P><P> Add a new mtd partition. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">part add <name> <offset> <size> <flag></PRE></TD></TR></TABLE> <P></P><DIVCLASS="VARIABLELIST"><DL><DT><name></DT><DD><P> is name of a new mtd partiton. </P></DD><DT><offset></DT><DD><P> is offset in the mtd device. </P></DD><DT><size></DT><DD><P> is a size of a mtd parition. </P></DD><DT><flag></DT><DD><P> is flags of a mtd parition. Available valuse are <BCLASS="EMPHASIS">JFFS2</B>, <BCLASS="EMPHASIS">LOCKED</B>, and <BCLASS="EMPHASIS">BONFS</B>. </P></DD></DL></DIV> </P><P> Delete a mtd partiton. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">part del <partname></PRE></TD></TR></TABLE> </P><P> Reset mtd partitions to default values. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">part reset</PRE></TD></TR></TABLE> </P><P> Save paramter valuse and mtd parition informations to flash permanently. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">part save</PRE></TD></TR></TABLE> </P></DIV><DIVCLASS="SECTION"><HR><H3CLASS="SECTION"><ANAME="PARAMCOMMAND"></A>3.2.3. <BCLASS="EMPHASIS">param</B> command</H3><P> The vivi has some parameter values. For example, the "<BCLASS="EMPHASIS">boot_delay </B>" paramter determines how long wait keystroek when the vivi is in the autoboot mode. I'm sorry that this feature is in progress. So all listed parameter is not available. </P><P> Here, I give several tips for you. </P><P> If you change the "linxu command line", <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> <BCLASS="COMMAND">param set linux_cmd_line "you wish.."</B></PRE></TD></TR></TABLE> </P><P> If you want to see paramters, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> <BCLASS="COMMAND">param show</B></PRE></TD></TR></TABLE> </P><P> If you want to wait a long time when recevie file via xmodem, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> <BCLASS="COMMAND">param set xmodem_initial_timeout 3000000</B></PRE></TD></TR></TABLE> </P><P> If you want to boot imediately when a hardware reset, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> <BCLASS="COMMAND">param set boot_delay 100000</B></PRE></TD></TR></TABLE> </P></DIV><DIVCLASS="SECTION"><HR><H3CLASS="SECTION"><ANAME="BOOTCOMMAND"></A>3.2.4. <BCLASS="EMPHASIS">boot</B> command</H3><P> A boot command is boot the linux kernel which is stored in the flash memroy or ram. Usage: <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">boot <media_type> [ <partname> | <addr> <size> ]</PRE></TD></TR></TABLE> <P></P><DIVCLASS="VARIABLELIST"><DL><DT><media_type></DT><DD><P> This argument is where to store the linux kernel image. Availabe values are <BCLASS="EMPHASIS">ram</B>, <BCLASS="EMPHASIS">nor</B> and <BCLASS="EMPHASIS">smc</B>. </P></DD><DT>[ <partname> ] or [ <addr> <size> ]</DT><DD><P> This arguement determines location where to store the linux kernel. If you want to use pre-defined mtd partiton information, just type a partition name. Otherwise you shuld specify an address and a size. </P></DD></DL></DIV> </P><P> Note that all argument is optional. If you omit all argument (just type <BCLASS="COMMAND">boot</B>), all arguments is parsing from pre-defined mtd parititon information called "<BCLASS="EMPHASIS">kernel</B>" For example, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> <BCLASS="COMMAND">boot</B></PRE></TD></TR></TABLE> the vivi read the linux kernel binary from the "kernel" mtd parititons. <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> <BCLASS="COMMAND">boot nor 0x80000</B></PRE></TD></TR></TABLE> the vivi read the linux kernel binary form the nor flash memory. the offset is 0x80000 and the size is default value (0xc0000). </P><P> Ocassionally, you want to test the kernel on the ram (not store kernel to flash). you can do it on the vivi On the SA-1110 based machine, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> load ram 0xc0008000 xvivi> boot ram</PRE></TD></TR></TABLE> On the S3C2410 based machine, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> load ram 0x30008000 xvivi> boot ram</PRE></TD></TR></TABLE> On the PXA-240 based machine, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">vivi> load ram 0xA0008000 xvivi> boot ram</PRE></TD></TR></TABLE> the vivi boot the linux kernel from the ram. </P></DIV><DIVCLASS="SECTION"><HR><H3CLASS="SECTION"><ANAME="FLASHCOMMAND"></A>3.2.5. <BCLASS="EMPHASIS">flash</B> command</H3><P> A <BCLASS="EMPHASIS">flash</B> comamnd manages the flash memory. If you want to erase flash memory, <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><PRECLASS="SCREEN">flash erase [ <partname> | <offset> <size> ]</PRE></TD></TR></TABLE> </P></DIV></DIV></DIV></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -