无限梦幻 - 全球顶级原创技术中文论坛

 找回密码
 立刻加入
搜索
查看: 3149|回复: 4

如何让E2在U盘中启动:

[复制链接]
发表于 2010-11-16 22:23:10 | 显示全部楼层 |阅读模式
本帖最后由 BD1080 于 2010-11-17 23:54 编辑

What do you need:(我们需要什么)
-1 usb of at lest 512mb (for e2, possible 256 will work):
一个大于 512MB 的U盘,最好是空的
-1 usb for putting patch bin:
一个存放 E2 固件的 U盘)

#####FIRST TIME FLASHING E2######
操作前的准备工作:
-Put e2 patch.bin in usb.
-把E2的固件放入U盘

-Reboot your azbox and follow onscreen instructions to install upgrade. This will only install new kernel. When done reboot (leave usb stick in the slot)
- 重启你的azbox并按照屏幕上的说明安装升级。只是安装新的内核,完成后系统将重启(U盘仍然留在插槽上)

-Once rebooted box will show rescue mode and IP. DO NOT USE AZUP NOW
- 重启后机器后,在机器前面板VFD上会处于救援模式框,并有本机IP显示。这时不要使用AZUP平台

-Attach usb stick for e2 now (521mb or larger).
-插入这个大于521MB的空U盘;

-Telnet to your box and issue the following commands:
--使用 Telnet连接你的箱子(AZBox),并发出以下命令:

----------------------------------------------------------------------------------------------
先讲两句,
1、Telnet 这个工具可以使用 DCC (DM用的)也可以使用 MaZ_3.0 (AZBox),
注意:AZBox的用户名:root, 密码:azbox;

2、在Telnet界面中,输入下列命令时,请注意Linux的格式,改连写的要连写,要空格就要空格。

我们开始:使用MaZ_3.0中的 Telnet时,进入机器,我们要先输入Password: azbox,进入
==》 输入:dd if=/mnt/root/patch.bin of=/mnt/root/patch_cramfs.bin bs=56 skip=1 (输入好,enter , 等下,U盘在读写文件)
==》 输入:mkdir /patch
==》 输入:mount -o loop /mnt/root/patch_cramfs.bin /patch
==》 输入:sfdisk -f -uM /dev/sdb < /patch/hda.out  (屏幕上会显示 U盘的状态)
==》 输入:mkfs.ext3 /dev/sdb1  (格式化U盘)
==》 输入:mkfs.ext2 /dev/sdb2
==》 输入:mkdir /MMP
==》 输入:mount /dev/sdb1 /MMP
==》 输入:cd /patch
==》 输入:tar -cf - . | tar -C / -xpf - (安装软件,注意空格啊:tar(空)-cf(空)-(空).(空)|(空)tar(空)-C(空)/(空)-xpf(空)-)

-Now remove usb stick with patch.bin on it and issue the following command:
安装好后,把有patch.bin固件的U盘从机器上拔出。再输入以下命令:
==》 reboot -f (重启机器)

-This should boot e2 from usb stick.
这时机器将从U盘启动E2
---------------------------------------------------------------------
以下是在 telnet 中事实显示的状态,供大家比对自己的操作:

Powered by The Ripper, telesat && MickeySa ;)
Linux/mips 2.6.22.19-19-the_ripper

(none) login: root
Password:
# dd if=/mnt/root/patch.bin of=/mnt/root/patch_cramfs.bin bs=56 skip=1
847725+1 records in
847725+1 records out
47472640 bytes (45.3MB) copied, 61.343862 seconds, 755.7KB/s
# mkdir /patch
# mount -o loop /mnt/root/patch_cramfs.bin /patch
# sfdisk -f -uM /dev/sdb < /patch/hda.out
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdb: 1017 cylinders, 33 heads, 61 sectors/track
Old situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sdb1         0+   999-  1000-   1023580    c  W95 FAT32 (LBA)
/dev/sdb2         0      -      0          0    0  Empty
/dev/sdb3         0      -      0          0    0  Empty
/dev/sdb4         0      -      0          0    0  Empty
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sdb1            32    375295     375264  83  Linux
/dev/sdb2        375296    383487       8192  83  Linux
/dev/sdb3        383488    501759     118272  82  Linux swap / Solaris
/dev/sdb4             0         -          0   0  Empty
Warning: partition 1 does not end at a cylinder boundary
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
# mkfs.ext3 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
46920 inodes, 187632 blocks
9381 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
23 block groups
8192 blocks per group, 8192 fragments per group
2040 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
# mkfs.ext2 /dev/sdb2
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
1024 inodes, 4096 blocks
204 blocks (4.98%) reserved for the super user
First data block=1
Maximum filesystem blocks=4194304
1 block group
8192 blocks per group, 8192 fragments per group
1024 inodes per group

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
# mkdir /MMP
# mount /dev/sdb1 /MMP
# cd /patch
# tar -cf - . | tar -C / -xpf -
# reboot -f

--------------------------------------------------------------
发表于 2010-11-18 13:00:48 | 显示全部楼层
翻译的很好!多谢楼主!
发表于 2013-1-17 10:12:18 | 显示全部楼层
来晚了,也感谢。。。
发表于 2013-2-2 20:54:14 | 显示全部楼层
谢谢 顶一顶
发表于 2013-4-28 10:46:04 | 显示全部楼层
   学习学习
您需要登录后才可以回帖 登录 | 立刻加入

本版积分规则

www.freedmx.net  

GMT+8, 2019-10-19 22:52 , Processed in 0.071070 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表