Difference between revisions of "WindowsInstall"

From ArmadeusWiki
Jump to: navigation, search
(Get Armadeus software)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Need_Update}}
 +
 
How-To install Armadeus Software Development Kit for Window$
 
How-To install Armadeus Software Development Kit for Window$
  
The toolchain can also be built on a windows system. To do this, Cygwin (a Linux emulation tool) has to be installed first.
+
The toolchain can also be built on a windows system. To do this, VMWare(a virtualization tool) has to be installed first.
  
 
==Prerequisites for Window$ installation==
 
==Prerequisites for Window$ installation==
  
 
<span style="color:red">
 
<span style="color:red">
Do not install Cygwin on a FAT32 file system! Only a NTFS file system is supported
+
Be sure to have at least 3Go on, your hard disk before starting the installation
 
</span>  
 
</span>  
 
<br>
 
<br>
Install cygwin: http://www.cygwin.com
+
*Install VMWare workstation for evaluation: http://www.vmware.com/download/
Remark: do not delete the package folder (ftp%xxxx) otherwise the synchronization between the installed packages and the available ones will no more be done !
+
Remark: you need to be registered to download the evaluation...
 +
 
 +
*Download an Ubuntu ISO distribution (eg: Feisty) and burn a CD
 +
*Start VMWare and create a new virtual machine (File->New)
 +
*Configure the virtual machine (memory space, RAM...)
 +
*Place the Ubuntu ISO CD in the drive
 +
*Start the virtual machine
 +
*Once the Ubuntu desktop appears, click install
 +
*At the end of the installation, quit Ubuntu (shutdown)
 +
*Now you have a complete Linux OS.
 +
Linux can be started by double clicking on the .vmx file.
 +
 
 +
As the VMWare workstation is only valid a few weeks, you will need to install the VMWare player which is free (http://www.vmware.com/download/player/).
 +
 
 +
Depending on the linux distribution you have installed, several packages have to be installed before compiling the Armadeus package.
 +
 
 +
<u>Take a look at the [[LinuxInstall]] for the rest of the procedure.</u>
 +
 
 +
==Cygwin user ONLY==
  
 
Choose the default installation (nothing to modify) and add the following packages by clicking one time on the "skip" icon:
 
Choose the default installation (nothing to modify) and add the following packages by clicking one time on the "skip" icon:
 +
* devel  -> automake
 
* devel  -> binutils
 
* devel  -> binutils
 
* devel  -> bison
 
* devel  -> bison
Line 33: Line 54:
  
 
==Get Armadeus software==
 
==Get Armadeus software==
If you are a developper, then download the installation archive from SourceForge: http://sourceforge.net/projects/armadeus and detar it  
+
* If you are a user:
  $ tar -xjvf filename.tar.bz2
+
then download the installation archive from [gitlab https://gitlab.com/armadeus/armadeus-bsp/-/tags] and detar it wherever you want.
 
+
  $ tar xjvf armadeusArchiveName.tar.bz2
For SVN integrators:  
+
* If you are a registered developper:
  $ svn co svn://ericjarrige.homelinux.org/armadeus/trunk armadeus --username <<YOUR USERNAME>>  --password <<YOUR PASS>>
+
In cygwin, check out the required files from the SVN repository:
 
+
  $ git clone git://git.code.sf.net/p/armadeus/code armadeus armadeus
 
A directory named armadeus/ will be created on your hard-disk and will contain all the files you need.
 
A directory named armadeus/ will be created on your hard-disk and will contain all the files you need.
  
* If it is your first toolchain installation, the following script has to be executed in order to patch some cygwin files and add the required fake user for the rootfs generation   
+
<strong>Remarks</strong>:
 +
*The armadeus directory has to be placed within the cygwin directory
 +
*<strong>Do not use spaces</strong> in the directory name !
 +
*Write access are limited to the integrators
 +
 
 +
* If it is your <strong>first toolchain installation</strong> , the following script has to be executed in order to patch some cygwin files and add the required fake user for the rootfs generation   
 
  $ ./armadeus/host/patches/cygwin/run
 
  $ ./armadeus/host/patches/cygwin/run
  
Line 66: Line 92:
 
* '''u-boot.bin''' (for download with uboot, see [[BootLoader]] "Update u-boot" page)
 
* '''u-boot.bin''' (for download with uboot, see [[BootLoader]] "Update u-boot" page)
 
* '''linux-kernel-2.6.xx-arm.bin''' (for download with uboot, see InstallLinux)
 
* '''linux-kernel-2.6.xx-arm.bin''' (for download with uboot, see InstallLinux)
* '''rootfs.arm_nfpu.jffs2''' (for download with uboot, see InstallFileSystem?)
+
* '''rootfs.arm.jffs2''' (for download with uboot, see InstallFileSystem?)
* '''rootfs.arm_nfpu.tar''' (for an nfsroot, see RootNFS?)
+
* '''rootfs.arm.tar''' (for an nfsroot, see RootNFS?)
 
+
  
 
==To keep your copy up-to-date within the armadeus tree==
 
==To keep your copy up-to-date within the armadeus tree==
Line 91: Line 116:
 
  $ rm -rf software/buildroot
 
  $ rm -rf software/buildroot
 
  $ rm Makefile
 
  $ rm Makefile
 +
$ svn update
 
  $ make
 
  $ make
 
  $ make
 
  $ make

Latest revision as of 12:39, 30 June 2022

Update.png This page is too old and need some updates. Informations on this page are not guaranteed !! Update.png

How-To install Armadeus Software Development Kit for Window$

The toolchain can also be built on a windows system. To do this, VMWare(a virtualization tool) has to be installed first.

Prerequisites for Window$ installation

Be sure to have at least 3Go on, your hard disk before starting the installation

Remark: you need to be registered to download the evaluation...

  • Download an Ubuntu ISO distribution (eg: Feisty) and burn a CD
  • Start VMWare and create a new virtual machine (File->New)
  • Configure the virtual machine (memory space, RAM...)
  • Place the Ubuntu ISO CD in the drive
  • Start the virtual machine
  • Once the Ubuntu desktop appears, click install
  • At the end of the installation, quit Ubuntu (shutdown)
  • Now you have a complete Linux OS.

Linux can be started by double clicking on the .vmx file.

As the VMWare workstation is only valid a few weeks, you will need to install the VMWare player which is free (http://www.vmware.com/download/player/).

Depending on the linux distribution you have installed, several packages have to be installed before compiling the Armadeus package.

Take a look at the LinuxInstall for the rest of the procedure.

Cygwin user ONLY

Choose the default installation (nothing to modify) and add the following packages by clicking one time on the "skip" icon:

  • devel -> automake
  • devel -> binutils
  • devel -> bison
  • devel -> flex
  • devel -> gcc-core
  • devel -> gcc-g++
  • devel -> gdb
  • devel -> gettext-devel
  • devel -> libncurses-devel
  • devel -> make
  • devel -> patchutils
  • devel -> subversion
  • python -> python an interactive interpreter
  • system -> util-linux
  • web -> wget

Installation

Open a cygwin shell and follow this procedure:

Get Armadeus software

  • If you are a user:

then download the installation archive from [gitlab https://gitlab.com/armadeus/armadeus-bsp/-/tags] and detar it wherever you want.

$ tar xjvf armadeusArchiveName.tar.bz2
  • If you are a registered developper:

In cygwin, check out the required files from the SVN repository:

$ git clone git://git.code.sf.net/p/armadeus/code armadeus armadeus

A directory named armadeus/ will be created on your hard-disk and will contain all the files you need.

Remarks:

  • The armadeus directory has to be placed within the cygwin directory
  • Do not use spaces in the directory name !
  • Write access are limited to the integrators
  • If it is your first toolchain installation , the following script has to be executed in order to patch some cygwin files and add the required fake user for the rootfs generation
$ ./armadeus/host/patches/cygwin/run

Configure Armadeus software

$ cd armadeus/
$ make menuconfig  (or just make the first time).

This will launch the buildroot configuration. in Board Support Option menu, select your armadeus board (apf/apm9328), the RAM size (16/32MB) and so on...

  • If you need the LIBSTD C++, add this in the menuconfig/toolchain options/additional gcc options:

--disable-libstdcxx-pch. This will disable the use of the precompiler headers

  • Exit the configuration tool and save your config

Launch build

$ make

The toolchain is built automatically. During this procedure, several files are downloaded from the web. Please wait for a while.... it takes at least one hour for the first run!

Known Problems

  • none for the moment :)

Enjoy the result

The generated binary files can be found in the subdirectory armadeus/software/buildroot:

  • u-boot.brec (can be used with the bootstrap, if U-Boot is not installed or not working, see BootLoader page)
  • u-boot.bin (for download with uboot, see BootLoader "Update u-boot" page)
  • linux-kernel-2.6.xx-arm.bin (for download with uboot, see InstallLinux)
  • rootfs.arm.jffs2 (for download with uboot, see InstallFileSystem?)
  • rootfs.arm.tar (for an nfsroot, see RootNFS?)

To keep your copy up-to-date within the armadeus tree

$ svn update

This will update your working directory to the latest release.

Note: if "svn update" fails because a directory or a file already exists, then do:

$ rm -rf <this-directory/file>
$ svn update

You can do a:

$ make defconfig

to have the latest features automatically activated and a

$ make menuconfig

to set again your personnal parameters (SDRAM size...).

You have to do a make to rebuild binary files end then upload the binary files to your target.

Note: if definitively everything goes wrong while it worked before the last update. You can apply the following procedure:

$ make dirclean
$ rm -rf software/buildroot
$ rm Makefile
$ svn update
$ make
$ make