imoega ix2-200 安装OpenMediaVault(一)
- 该话题有13条回复(13参与),最后更新 2021年2月20日-下午1:51。
-
imoega ix2-200 安装OpenMediaVault
安装分为2不步骤:
第一步安装arm版最小化debian系统
1.下载文件拷贝到U盘 U盘格式FAT2.设置UBOOT 启用新系统
setenv mainlineLinux yes
setenv arcNumber 1682
saveenv
reset3.从U盘启动引导安装
usb start
fatload usb 0:1 0x00800000 /uImage
fatload usb 0:1 0x01100000 /uInitrd
setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most
bootm 0x00800000 0x01100000安装过程参考bebian 7.x 桌面安装过程
1.选择语言c
地区Asia —- china
2.网卡选择“eth1: Ethernet”
3.输入主机名(iomegaNAS)— 网络域名(loaclhost)
4.选择网络安装源ftp.cn.debian.org, 选择代理(不填)
5.设置root密码()—设置新用户(ix2-200)—-新用户密码(soho)
6.磁盘设置()
7.SSH Server 要选上,安装SSH服务,这样以后就不用TTL了。
8.安装到建立系统引导会出错提示如下
| Installation step failed |
| An installation step failed. You can try to run the failing item |
| again from the menu, or skip it and choose something else. The |
| failing step is: Make the system bootable |
这是正常的,放心。
这里可以返回到DEBIAN安装的系统选择菜单这里我们选
“Execute a shell”
然后执行,注意,这里的提示变成#号了。# chroot /target
# apt-get install mtd-utils uboot-mkimage uboot-envtools4.将新的系统内核合并复制的U盘
#cd /boot
#mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d initrd.img-3.2.0-4-kirkwood uInitrd
#mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0-4 -d vmlinuz-3.2.0-4-kirkwood uImagemkimage使用详解 uboot源代码的tools/目录下有mkimage工具,这个工具可以用来制作不压缩或者压缩的多种可启动映象文件。 mkimage在制作映象文件的时候,是在原来的可执行映象文件的前面加上一个0x40字节的头,记录参数所指定的信息, 这样uboot才能识别这个映象是针对哪个CPU体系结构的,哪个OS的,哪种类型,加载内存中的哪个位置, 入口点在内存的那个位置以及映象名是什么 root@Glym:/tftpboot# ./mkimage Usage: ./mkimage -l image -l ==> list image header information ./mkimage -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image -A ==> set architecture to 'arch' -O ==> set operating system to 'os' -T ==> set image type to 'type' -C ==> set compression type 'comp' -a ==> set load address to 'addr' (hex) -e ==> set entry point to 'ep' (hex) -n ==> set image name to 'name' -d ==> use image data from 'datafile' -x ==> set XIP (execute in place) 参数说明: -A 指定CPU的体系结构: 取值 表示的体系结构 alpha Alpha arm A RM x86 Intel x86 ia64 IA64 mips MIPS mips64 MIPS 64 Bit ppc PowerPC s390 IBM S390 sh SuperH sparc SPARC sparc64 SPARC 64 Bit m68k MC68000 -O 指定操作系统类型,可以取以下值: openbsd、netbsd、freebsd、4_4bsd、linux、svr4、esix、solaris、irix、sco、dell、ncr、 lynxos、vxworks、psos、qnx、u-boot、rtems、artos -T 指定映象类型,可以取以下值: standalone、kernel、ramdisk、multi、firmware、、filesystem -C 指定映象压缩方式,可以取以下值: none 不压缩 gzip 用gzip的压缩方式 bzip2 用bzip2的压缩方式 -a 指定映象在内存中的加载地址,映象下载到内存中时,要按照用mkimage制作映象时,这个参数所指定的地址值来下载 -e 指定映象运行的入口点地址,这个地址就是-a参数指定的值加上0x40(因为前面有个mkimage添加的0x40个字节的头) -n 指定映象名 -d 指定制作映象的源文件