Chinaunix首页 | 论坛 | 博客
  • 博客访问: 349472
  • 博文数量: 81
  • 博客积分: 4060
  • 博客等级: 上校
  • 技术积分: 850
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-06 16:03
文章分类
文章存档

2011年(4)

2010年(4)

2009年(17)

2008年(24)

2007年(16)

2006年(15)

2005年(1)

我的朋友

分类: LINUX

2008-08-15 20:14:08

前奏:

MSS2  ( Maxtor shared storage II )
硬件配置
CPU           Marvell Orion 88F5182 (500MHz)
RAM           32MB  { (已经可以使用128MB的了) 我已经升级成功,需要更改U-boot }
Flash ROM
Other
PHY           MARVELL 88E1111-RCJ1 Gigabit Ethernet Transceiver ("Alaska" series)
USB
internal HDD  SATA Controller SoC integrated (sata_mv compatible)


JTAG 已经顺利认出. (
串口已经正常使用.




初级目标:
不建立 CC环境,照样编译程序.
小试牛刀: mtd的编译.

中级目标:
别浪费 128MB内存和 SATA存储的硬盘.

高级目标:
自定义你的内核. 做LFS.如果你觉得ARM 500MHZ跑的慢了,那么还是 CLFS吧 :) (反正我是觉得 目标板编译要好些:因为CC环境实在是难以建立,除非你用套装. 用screen和 && & 配合,不用管他,自己跑去吧)

终极目标:
我就没这个资格来说这些了.本来高级目标都很困难了.


一: 分区.
/分区:

不管你用什么方法分区.
两个系统分区 强烈建议 3G-5G (我分的是3G X 2)
sda1
sda2

SWAP:
如果你内存 32MB ,建议 64MB
内存 64MB SWAP 128MB
内存 128MB SWAP 256MB
内存 256MB SWAP 512MB(你没看错,如果你有颗粒的话)
sda3


sda5 1G-2G的分区.

给sda6 剩下的硬盘分区吧.

先让你的MSS2正常跑起来.

首先,这里极少设计到软件的应用方面的 事宜.请不要问
为何 samba啊,vsftp啊等等config问题.我也是和你一样,都是google而来.

[color=Red]感谢网友支持. 
但是非技术 的纯 顶 之类的尽量别出现. 沉默是金原则.[/color]

先回答 ekinmagic 问题. 
为以后着想.空间多点没坏处.

[color=Red]初级目标: 
不建立 CC环境,照样编译程序.
小试牛刀: mtd的编译.[/color]

为何小试牛刀先拿mtd来搞? 因为如果你升级 u-boot的时候会用到他.
dd if=xx.bin of=/dev/mtd 的方式运用不好会出错.

[code]autoconf - 2.61-2 - Creating scripts to configure source code packages using templates
automake - 1.10-2 - Creates GNU standards-compliant Makefiles from template files
binutils - 2.17-2 - The GNU assembler and linker and related tools
busybox - 1.10.3-1 - A userland replacement for embedded systems.
busybox-base - 1.10.3-1 - A userland replacement for embedded systems.
busybox-links - 1.10.3-1 - A userland replacement for embedded systems.
c-ares - 1.5.2-2 - C library that performs DNS requests and name resolves asynchronously
diffutils - 2.8.1-6 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files
expat - 2.0.1-1 - XML Parser library
gawk - 3.1.6-1 - Gnu AWK interpreter
gcc - 4.1.2-4 - 
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
git - 1.5.6.5-1 - GIT is a directory tree content manager that can be used for distributed revision control.
glib - 2.12.13-1 - The GLib library of C routines.
libc-dev - 2.3.6-3 - libc development files.
libcurl - 7.18.2-3 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
libdb - 4.2.52-3 - Berkeley DB Libraries
libnsl - 2.3.6-4 - Network Services Library
libstdc++ - 6.0.3-6 - Standard C++ library, needed for dynamically linked C++ programs
m4 - 1.4.8-1 - gnu macro processor and compiler front end
make - 3.81-2 - examines files and runs commands necessary for compilation
ncurses - 5.6-3 - NCurses libraries
openssl - 0.9.7m-4 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
perl - 5.8.8-18 - Practical Extraction and Report Language.
rcs - 5.7-2 - The Revision Control System (RCS) manages multiple revisions of files.
screen - 4.0.3-2 - A screen manager that supports multiple logins on single terminal
sed - 4.1.5-3 - Stream editor.
termcap - 1.3.1-2 - Terminal emulation library
tree - 1.5.1.1-1 - list contents of directories in a tree-like format.
wget - 1.11.4-1 - A network utility to retrieve files from the Web
zlib - 1.2.3-3 - zlib is a library implementing the 'deflate' compression system.
Successfully terminated.
[/code]
这些ipkg-opt软件包是必装的.而且只会更多,不会少.
比如在后面 目标板 如果编译内核的话,会发现 Ipkg-opt有软件是没有的.所以必须自己编译.
下载mtd包裹, 见附件.
解压.
#make && make install 
/* 其实你也不必 make install直接使用,当前目录下就有可执行文件 */

#mtd_debug
/* 会输出说明,请您自己研究. tip: 先读出来,再擦除,再写新的bin.再读.对比下.做到心中有数.
* [color=Red]如果造成设备无法启动,我不负责. [/color] 我刷了3-5次.均成功. */
题外话: JTAG的事情我还没搞定.所以刷挂了只能编程器.

文件:mtd.tar.gz
大小:274KB
下载:下载

今天到此. 2008-08-18



阅读(1914) | 评论(4) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-09-23 11:46:40

您好,请问Jtag Pin位定义可否告知? 我这边有一块DIR 615 A1的板子,CPU是88F5180 500Mhz,也是ARM926EJ-S PCB上有20Pin的pad,但是用std 20Pin Jtag连接后,H-Jtag(V0.9.2)识别不出设备型号。

chinaunix网友2009-01-20 10:45:03

"先读出来,再擦除,再写新的bin.再读.对比下.做到心中有数." 博主可否将详细的命令行列出来,大家参考一下。 宝乙论坛 mario

unix_pro2008-09-05 12:59:26

其实分区多大多小不是重要的 u-boot是不认任何磁盘格式的,只是认块设备. 现在我是NFS启动设备,并没用到 MSS2的 SATA硬盘. 工作暂时停止下,这几天忙别的了.

chinaunix网友2008-08-16 18:41:10

sda5 1G-2G的分区 为什么那么大呢?