imoega ix2-200 安装OpenMediaVault(一)

2015-07-22 43 写
    • Lv1
      • 话题10
      • 回复4
      • 经验值3
    轻松一试 #4246

    Code:
    #ls /dev(查看U盘挂载点)
    #mount /dev/sdXX /mnt(挂载U盘)
    #cp uInitrd /mnt/uInitrd-new(复制文件)
    #cp uImage /mnt/uImage-new(复制文件)
    #exit
    #exit

    连续2次退出 回到安装界面选择
    Continue without bootloader
    No boot loader has been installed, either because you chose not to or
    because your specific architecture doesn’t support a boot loader yet.
    You will need to boot manually with the /vmlinuz kernel on partition
    /dev/sda1 and root=/dev/sda2
    /dev/sda1 and root=/dev/mapper/iomegaNas-root passed as a kernel

    这里要注意系统的提示
    root=/dev/???
    这个要记下来,不一定是这样,格式是
    root=/dev/???
    一要定记清楚了。关系到能不能成功引导
    DEBIAN系统。
    然后选择完成安装,系统会重启。

    [attachment=4]
    记录下备用:/dev/sdb1 and root=/dev/mapper/iomegaNAS–vg-root passed as a kernel
    5.从U盘载入新的内核启动系统
    系统重启3秒内按空格键进入uboot

    提示Marvell>>
    输入

    usb start
    setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/iomegaNAS-root rootdelay=10'
    setenv bootargs $(bootargs_console)
    fatload usb 0:1 0x00800000 /uImage-new
    fatload usb 0:1 0x01100000 /uInitrd-new
    bootm 0x00800000 0x01100000

    (开始启动,启动完成查看启动地址)

    Code:
    # cat /proc/mtd

    (系统输出)
    dev: size erasesize name
    mtd0: 00300000 00004000 “uImage”
    mtd1: 01000000 00004000 “uInitrd”
    6.没有问题后将u盘内核写入FLASH擦出flash

    Code:
    # flash_eraseall /dev/mtd0
    Erasing 16 Kibyte @ 300000 -- 100 % complete.# flash_eraseall /dev/mtd1
    Erasing 16 Kibyte @ 1000000 -- 100 % complete.

    写入影像到FLASH

    Code:
    # nandwrite -p /dev/mtd0 /boot/uImage
    ...# nandwrite -p /dev/mtd1 /boot/uInitrd
    ...

    设置UBOOT 从nand 启动

    Code:
    setenv mtdids 'nand0=orion_nand'
    setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd)'
    setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/iomegaNAS-root'
    setenv bootcmd 'setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x1100000 uInitrd; bootm 0x00800000 0x01100000'
    saveenv
    reset

    到此arm版最小化debian系统安装完成