从SD卡启动linux系统
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//平台powerpc mpc8379e linux 2.6.22
1、先用fdisk 给SD卡分区,用作文件系统。
将读卡器插入PC机虚拟机,在PC机上执行fdisk /dev/sdb
选择n 。。。。。。。。步骤与硬盘分区一致。
2、用mkfs.ext3格式化SD卡的一个分区mke2fs /dev/sdb1 (比如分区1)
3、将SD卡挂载mount –t ext3 /dev/sdb1 /home/nfs ,然后将文件系统拷贝进去。
4、 设置u-boot参数。bootargs=root=b301 rw console=ttyS0,115200 rootdelay=5(或setenv bootargs root=/dev/mmcblk0p1 rw console=ttyS0,115200 rootdelay=5)
启动信息见《从SD启动完整信息》
启动信息(可能还有一小部分错误)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
U-Boot 1.3.0-rc2 (Apr 24 2008 - 01:32:37) MPC83XX
Reset Status:
CPU: e300c4, MPC8379E, Rev: 10 at 528 MHz, CSB: 264 MHz
Arbiter Configuration Register (ACR): 0x00030300
System Priority Configuration Register (SPCR): 0x00400300
System Clock Configuration Register (SCCR): 0x5fffff55
Board: Ehometech MPC837xE
I2C: ready
DRAM: 256 MB
FLASH: 8 MB
Ehometech NAND: 1024 MiB
In: serial
Out: serial
Err: serial
Net: TSEC0, TSEC1
Hit any key to stop autoboot: 0
Ehometech# setenv bootargs root=b301 rw console=ttyS0,115200 rootdelay=5
Ehometech# saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
Ehometech# printenv
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loa
相关文档:
Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)
一安装需求
1.swap 分区不低于2G
2.selinux 状态disable
3.物理内存不低于512M
系统组件
GNOME Desktop Environment
Editors
Graphical Internet
Text-based Internet
Development Libraries
Development Tools
......
Linux系统在使用光盘、软盘或U盘时,必须先执行挂载(mount)命令。挂载命令会将这些存储介质指定成系统中的某个目录,以后直接访问相应目录即可读写存储介质上的数据。
1.挂载光盘
挂载光盘的命令如下:
# mount -t is09660 /dev/cdrom /mnt/cdrom
该命令将光盘挂载到/ ......
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <cstring>
using namespace std;
void peek_interfaces(int ......
#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include<linux/config.h>
#include<linux/module.h>
#include<linux/version.h>
#include<linux/init.h>
#include<linux/kernel.h>
#include<linux/errno.h>
#include<linux/sche ......