首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

BLOG 备份 关于ARM9

BLOG 备份 关于ARM9

Usage:
progen [options] [files]
Options:
-lower Lower-case letters filenames (useful for non-Unix)
-n name Specify a project name (= TARGET)
-o file Write output to "file"
-t file Specify a template file other than qtapp


tmake

Usage:
tmake [options] project-files
Options:
-e expr Evaluate expression, ignore template file
-nodepend Don't generate dependency information
-o file Write output to file
-t file Specify a template file
-unix Create output for Unix (auto detects)
-v Verbose/debug mode
-win32 Create output for Win32 (auto detects)


uic

Usage: uic [options] [mode] <uifile>

Generate declaration:
uic [options] <uifile>
Generate implementation:
uic [options] -impl <headerfile> <uifile>
<headerfile>    name of the declaration file
Generate subclass declaration:
uic [options] -subdecl <classname> <headerfile> <uifile>
<classname>    name of the subclass to generate
<headerfile>    declaration file of the baseclass
Generate subclass implementation:
uic [options] -subimpl <classname> <headerfile> <uifile>
<classname>    name of the subclass to generate
<headerfile>    declaration file of the subclass
Options:
-o file Write output to file rather than stdout
-tr func Use func(...) rather than tr(...) for i18n




4月12日



U盘烧写系统

步骤:

1. image-mini.tgz(http://www.arm9.net/image-mini.tgz)
解压可得:vivi-peanut zImage-peanut peanut.cramfs三个文件
特性:该内核支持串口和U盘等主要外设,大小482K;文件系统含有一个具有解压功能的busybox和imagerite烧写软件,大小564K。利用该系统小的特点,可以使用JTAG和串口即可安装;主要为使用U盘更新系统

step 1. 使用Jflash2410烧写vivi-peanut到nand flash中
step 2. 启动系统,使用串行通讯,进入运行bootload模式
step 3. 使用 bon part 0 192k 1216k 对nand flash进行分区
step 4. 使用 load flash vivi x 命令重新烧写vivi-peanut
step 5. 使用 load flash kernel x 命令烧写内核zImage-peanut
step 6. 使用 load flash root x 命令烧写文件系统peanut.cramfs
step 7. 系统烧写完毕,重新启动系统

2. 烧写你需要使用的系统
step 1. 将需要使用的文件(例如:vivi-yaffs-v6_2432,zImage-yaffs-v6-2432,fs-v6-qtopia_2432.tgz)放入U盘
step 2. 将U盘挂到2410的USB接口上,使用mount /dev/scsi/host1/bus0/target0/lun0/part1 /udisk 命令挂接U盘。进入udisk目录
step 3. 使用 /bin/imagewrite /dev/mtd/0 -part 0 192k 1216k 命令重新分区
step 4. 使用 /bin/imagewrite /dev/mtd/0 vivi-yaffs-v6_2432:0 命令重新烧写vivi
step 5. 使用 /bin/imagewrite /dev/mtd/0 zImage-yaffs-v6-2432:192k 命令重新烧写内核
step 6. 使用 /bin/imagewrite /dev/mtd/0 /udisk/peanut.fs:1216k命令重新烧写文件系统
step 7. 使用 /bin/mkyaffs /dev/mtdblock/0 命令用yaffs格式格式化硬盘
step 8. 使用 /bin/mount /dev/mtdblock/0 /mnt   cd /mnt   /bin/tar xvzf /fa-yaffs-v6-2432.tgz江文件系统解压到flash上
step 9. 系统烧写完毕,重新启动系统
3月21日



ARM9系统烧写(待编辑)

1。烧写vivi(windows下)
接好并行口 与 jtag口 线
a。开始菜单- 运行--输入 “cmd”打开命令提示符。
b。 输入 “e:” 回车 “cd \Jflash\Windows” 回车 。进入\Jflash\Windows目录
c。将要烧写的vivi镜像文件复制到e:\Jflash\Windows目录 ,设名为vivi-yaffs-v5
d。在命令提示符 中输入 “sjf2410 /f:vivi-yaffs-v5” 回车
e.你会看到选择菜单
[SJF Main Menu]
  0:K9S1208 program      1:28F128J3A program    2:Memory Rd/Wr         3:Exit
选择0 回车
f.0 回车
g.0 回车
h.烧写完了,选择 3推出
2.烧写linux内核(windows下)
连接好主机与sbc2410的串口连线。
a.打开开始-附件-通讯-超级终端.新建连接,随便起个名字arm,确定.  
b。连接时使用com1,确定。
c。每秒位数115200,数据位8,奇偶校验 无,停止位 1,流量控制 无,确定。
d。当所有的连接参数都设置好以后,打开目标板电源开关,就会看到 vivi 的启动信息,当 Linux 启动以后, 超级终端就相当于虚 拟终端,你就能通过它来操作目标板了。
e。按住空格键 ,重起sbc2410 ,便可以 进入vivi提示符 。
f.输入 load kernel x ,回车 。
g。选菜单中的传送,发送文件,选内核文件 kernel-yaffs-v5 ,选择 xmodem协议 , 发送。
h。发送完毕,内核已烧好。不过没有文件系统,这是重起sbc2410会提示找不到文件系统。
3。写linux文件系统(linux下)
a。重起电脑,进入 linux。
b。打开终端(主机上的,命令行输入的东西),输入"minicom",回车。(若是第一次使用minicom则要配置一下,见  http://www.arm9.net/term_guide.asp#hypertrm
c。按住空格键 ,重起sbc2410 ,便可以 进入vivi提示符 。
  d。将下面文字复制到vivi提示符下,按回车。
param set linux_cmd_line "console=ttyS0 root=/dev/nfs nfsroot=192.168.0.1:/friendly-arm/root ip=192.168.0.69:192.168.0.1:192.168.0.1:255.255.255.0:matrix4.arm9.net:eth0ff"
e。输入 para save,回车。
f。在开启一个终端(主机上的,命令行输入的东西),输入 ifconfig eth0 192.168.0.1 ,回车。(修改本地ip 为192.168.0.1)
g。输入 lokkit ,打开防火墙设置,选择 no firewall,ok.
h.输入 cd /mnt/cdrom/SBC-2410X/SBC-2410X-Linux 进入光盘目录。(必须插入了光盘)。
i。输入 cat exports>>/etc/exports
j.输入 /etc/init,d/nfs start 启动nfs服务。
k。关掉第二个终端,回到第一个进入vivi提示符的终端。
l。输入boot,sbc2410 将重起。
m。等提示“press enter to active the consle”时 按回车,进入提示符状态,此时已通过nfs成功启动系统。
n,输入bk6448 重新 烧写vivi 内核,使其支持640*480lcd显示
o。输入reboot,回车。
p。等一下,按住空格键,手动让sbc2410重起(按sbc2410版上的复位键。)
q。进入vivi提示符,重新执行d。e。两步。然后输入boot。
r。等一回,按回车,进入提示符状态,输入 bs6448 划分消协文件系统, 支持640*480lcd显示,且带有qtopia,leds 等例子程序。
s。按住空格键,重起sbc2410(按sbc2410版上的复位键。),进入vivi提示符。输入 para reset ,回车。para save ,回车。
t。输入boot,回车。


继承事业,薪火相传
返回列表