RedHatlinux9.0USB mounting and use of shared folders
Source: Internet
Author: User
RedHatlinux9.0USB mounting and use of shared folders-general Linux technology-Linux technology and application information. For details, see the following. The BootLoader experiment explains how to attach a USB flash drive to Red Hat Linux9.0 and use a shared folder. Please read the reply...
Tutorial steps:
NO1. install the cross-compilation tool Toolchain on the target board.
1. Put the cross-compilation tool in linux:
Method 1: Share a VM. Create a folder under Windows D, and copy xscalev1_010001.tar.gz (compressed package of the Cross-compilation tool) to the share directory.
Open the Virtual Machine and set sharing. The procedure is as follows: click "Virtual Machine"-"set" in the menu bar of the virtual machine, select "option"-click "share folders) select "always open (always enabled)", click "add", click "NEXT", and enter any file name in the name, in the host folder, select the host file, that is, the share folder under drive D. Click finish )".
Switch to linux and operate as a Super User. Enter the following commands in sequence:
# Cd/mnt/hgfs
# Cd share
# Cp */root/aa (assuming a folder named aa has been created in the root directory, this command copies all the files in the share folder to the root directory)
# Cd/root
# Ls (view)
Method 2: Use a USB flash drive. The procedure is as follows:
# Cd/usr/src
# Cd linux-2.4
# Cd drivers/
# Cd usb/
# Cd storage/
# Cd/lib
# Cd modules/
# Cd 2.4.20.8/
# Cd kernel/
# Cd drivers/
# Cd usb/
# Cd storage
This step shows the usb-storage.o
Then enter:
# Insmod usb-storage.o
# Lsmod
Insert a USB flash drive
# Fdisk? L (you may need to input it repeatedly until you identify that the USB flash disk has been attached)
The Device is/dev/sdb1, indicating that the USB flash disk is mounted to this directory)
You can first create a directory mkdir/mnt/usb
Then, enter the following content for execution:
# Mount/dev/sdb1/mnt/usb
# Cd/mnt/usb/
# Ll
Copy xscalev1_010001.tar.gz (compressed package of the Cross-compilation tool) to the specified directory (such as/root directory)
The next step is to decompress and install:
Switch to the xscalev1_010001.tar.gz directory and enter the following command:
# Tar zxvf xscalev1_010001.tar.gz/root/aa (decompress it to the aa folder)
# Cd xscalev1 (now you can see the share, lib, bin folder, and so on)
# Make
# Vi/etc/bashrc (add PATH = $ PATH:/root/aa/xscalev1/bin in the last line) Save and exit.
# Echo $ PATH (check whether the environment variable is set successfully. At the end of the PATH, you will see/root/aa/xscalev1/bin)
# Arm-linux-gcc (command not found may be prompted. Restart the terminal and enter arm-linux-gcc again. At this time, the system prompts arm-linux-gcc: no input files indicates the setting is successful ).
# Ll/root/aa/xscalev1/bin
An arm-linux-gcc file is displayed.
2. Unzip and install BootLoader.
(1), using tar zxvf Boot-XSBase270.tar.gz command decompression.
[Root @ localhost BootLoader] $ tar zxvf Boot-XSBase270.tar.gz
Unzip the bootloader source code to the Boot-XSBase270 folder in the current directory.
(2) compile. Make compilation in the decompressed directory.
[Root @ localhost BootLoader] $ cd Boot-XSBase270
[Root @ localhost Boot-XSBase270] $ make
After compilation, the bootloader image file boot is generated in the current directory.
(3) copy the image file boot of bootloader to any directory of share in windows (for example, share directory of drive D)
In the case of power failure, connect the parallel line and serial line, open and connect the H-JTAG download device, click "F" (indicating Flash), select the chip model (select 128P30T ), click Programming and click Check to see if the chip is detected.
In "src", select the boot file in the share folder of drive D, and click program to start writing.
After writing, set minicom and restart the experiment box. Then, the system is started.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service