📄 readme
字号:
What is this about?-----------------------------------------------------------------This distribution provides files for development of Elphel cameras (models 313 and 323).See http://www.elphel.com for more information.License--------------------------------------------------------------This is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or(at your option) any later version.This is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USAGeneral Installation Instructions---------------------------------------------------------------You will need a Linux computer, or compatible, with typical host softwaredevelopment tools installed (gcc etc.)The elphel software is distributed in the form of a file namedelphel_$REVNUM.tar.gz where $REVNUM varies(for example, for elphel_6.2.7.tar.gz , $REVNUM is 6.2.7);please substitute as required.Change directory to a suitable directory. [Note: The recommended directory structure is to place beneath this directorythe elphel_$REVNUM.tar.gz file as well asthe various axis and linux files requested by the elphel_install script(see below) and as well as the compiler tools directory "cris" needed forthe building the software.]Unpack the elphel_$REVNUM.tar.gz file: gtar xzvf elphel_$REVNUM.tar.gzThis will create a subdirectory elphel_$REVNUM containing the following files: README -- this file LICENSE -- license to use this software install_elphel -- executable installation script elphelcamera.tar -- what is installedChange directory to this subdirectory and run: ./elphel_installThis elphel_script is interactive.You will be prompted for the model number (313 or 323).You will be prompted for needed files from Axis and Linux andinstructed where to find them; get them onto your computer (e.g. using another window) and tell elphel_install where they are placed.(This includes installing and compiling a version of gcc specificallyfor the camera's cpu).The install_elphel script will ask you where you want to install theelphel/linux/axis software (excluding the compiler, which you musthave installed elsewhere), and will install it there.The script will provide you an opportunity to build the software,or you can build it later (see below).To later run the tool to actually reflash the camera you will needlow-level access to the network and so will need root privileges.At the end of installation, if you selected the default output path,you will have a subdirectory named elphel$MODEL (where $MODEL is 313 or 323).You can repeat the installation for a different model if desired.You can change directory to elphel$MODEL to use the software.Modifying the software---------------------------------------------------------------Changing the target (313/323) will require everything to be made all over again,so it is better just to do a fresh installation.It is sufficient, however, to return to the directory where you did./elphel_install and run this command again, this time selecting a differentcamera model and a different output directory (selecting default outputdirectory works).Also, moving either the directory path of your installation or of the cris compiler tools is best handled by doing a fresh installation,due to problems with "make clean" not removing some files.You may build the software from the install_elphel script or later. To build later:With your current directory as the directory where the software is installed,(specified when running ./install_elphel) use one ofthe following scripts (generated by the install process): ./build -- complete recompilation -- takes a while ./rebuild -- optimized, but sometimes buggy, recompilationThe rebuild script is buggy because it is difficult to express all dependenciesproperly to make, and make itself has some limits.However, for many simple changes to files, rebuild is quite adequate andis much faster than build.If you encounter any strange problems with rebuild, then run ./build instead.Or you can do the build the long way:Setup your environment with. ./init_env # requires that your shell be bash'make help' shows the needed targets. First you need to select the product ('make 313' or 'make 323'), then use 'make' in the following commands: make tools make cris-axis-linux-gnu make kernel make install make imagesIf you'll later modify kernel (drivers) run make kernel make imagesIf - any of the applications and related files: make install make imagesGeneral Usage Instructions---------------------------------------------------------------To transfer the images to the camera you need: 1. Put the camera into download mode by holding a pushbutton (under a green dot on the overlay) while appying power (inserting cable) 2. Run ./flashit (don't forget to '. ./init_env' - you'll see "boot_linux: command not found" if you did)Using ./flashitall (instead of ./flashit) will overwrite boot block that also stores the product serial number / ethernet address.You may need to prefix these commands with "sudo" to gain super userpermission requiredd.OR -- An alternate approach to transferring images to the camera's flash isexplained in the documentation in the flashstation subdirectory.The flashstation/reflash script will guide you step by step in a friendlyfashion, including correct network configuration setup.You may prepare compressed images that can be used by the other OS loader using target: make other_os Have fun!Creating a new distribution:-----------------------------------------Starting with an installed distribution:-- Make sure that REVNUM in the main Makefile is updated. It may be a fairly arbitrary string; for example, add your own name to the end of it (no spaces...).-- Make sure that any files added are accounted for in src.list . Remember that this is a list of files to be added or replaced on top of the axis/linux installation. If you want a file to NOT exist that came from the axis/linux distribution, you will have to modify install_elphel.-- Run "make distro". This will create elphel_$REVNUM.tar.gz
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -