一垄青竹映陋室,半枝桃花衬碧窗.

Monday, August 20, 2007

How to install MontaVista Linux on FC6

<#DocByCoryXie#>
This document shows the steps need to install Montavista Linux Pro 4.0 Tools
on FC6,and possible other host which was not nativly compiled for by MontaVista.

1.Generate correct host file
At first ,the installer wants to use the supported_hosts file for
a configuration for waht it has been compiled,we need to change it for our new
host.

##### Identify host based on default if the user has not overridden.
if [ -z "$HOST_FILE" ]; then
mv_host=`identify_host "$media_install/install-components/cross-control/data/supported_hosts"`
else
mv_host=`identify_host "$HOST_FILE"`
fi

Thus we should write a file,such as '/mnt/hosts',
and instert what it need for our new host.
The host file format comes from:

# This table lists the criteria to identify a host and map it to our
# directory stucture:
#
# ::::mapping
#
Linux:i.*86:cat /etc/redhat-release:Red Hat Linux release 9 (Shrike):redhat90

so we need to use these commands to generate what we need,for my system FC6,it gives

Linux:i.*86:cat /etc/fedora-release:Fedora Core release 6 (Zod):redhat90

fill the line above into /mnt/hosts

and
#export HOST_FILE=/mnt/hosts
#/mnt/cdrom/install

2.Update host system with old libstdc++-33
Then you will be prompted this error:
mvl-inst-eng: error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory

now you need to install compat-libstdc++-33.

yum install compat-libstdc++-33

please also :

#yum install libXp

because the last step will need this libXp.so.6.

3.mount ISO images
#mount -t iso9660 /mnt/hgfs/Tools/mvl_host_binaries.iso /mnt/cdrom -o loop
#/mnt/cdrom/install
http://127.0.0.1:9999
follow instructions to do "Next"
#mount -t iso9660 /mnt/hgfs/Tools/mvl_target_binaries.iso /mnt/cdrom -o loop

depends on what way you want to install,you may need to use:
#mount -t iso9660 /mnt/hgfs/Tools/mvl_lsp_binaries_arm_v5t_le.iso /mnt/cdrom -o loop
or
#mount -t iso9660 /mnt/hgfs/Tools/mvl_cross_binaries_v5t_le.iso /mnt/cdrom -o loop

#mount -t iso9660 /mnt/hgfs/Tools/mvl_devrocket_binaries.iso /mnt/cdrom -o loop

#mount -t iso9660 /mnt/hgfs/Tools/mvl_docs_binaries.iso /mnt/cdrom -o loop
<#/DocByCoryXie#>

0 Comments:

Post a Comment

<< Home