1, first talk about the hardware configuration, I started in Win7 (I7 4770,8g ram,2t hard disk) installed ubuntu10.10 64-bit system (4G ram,200g hard disk) to compile the source code, about 3 hours spent. and several outofmemoryerror errors have occurred. Finally, the hardware upgrade to I7 4770, 16G memory, 2T hard disk, do not install virtual machine, run the Ubuntu 10.10 system directly, swap partition 16G, compiled once took about 40 minutes, did not report any errors. So it is not recommended to run inside a virtual machine.
2, according to the Official Document configuration compilation environment:
The official document says that the serverinstall.sh script is executed with root permissions in the "Release package/software/serverinstall" directory, such as:
Software/serverinstall$sudo./serverinstall.sh
However, my actual operation found that the installation configuration instructions for the JDK in the script could not be executed because it did not provide the correct source. My solution is to download jdk-6u45-linux-x64.bin,copy to/USR/LIB/JVM (no directories to build) from the Oracle website and then configure the Java environment variables in/ETC/BASH.BASHRC:
Export java_home= "/usr/lib/jvm/xxx" Export path= "/usr/lib/jvm/xxx/bin": $PATH
Note: XXX refers to the Java directory name you installed.
Then execute the script:
Software/serverinstall$sudo./serverinstall.sh
3, after re-login into the ANDROID source extracted directory $android_src, in the root directory, execute the following command:
SOURCE build/envsetup.sh Lunch Hi3716cv200-eng
If there are errors such as bison not found, use the
sudo apt-get install Bison
Put it in a good fit.
3. After all errors are resolved, you can perform
Make Bigfish-j8 2>&1 | Tee Bigfish.log
command for the full compilation of the source code. Note that my CPU is I7 4770, which belongs to Quad core eight threads, so use the-J8 option. and Huawei they use the compiler server is 64 core CPU, 32G memory, so they can use the-j32 parameter. In summary, this parameter should be selected based on your CPU.
4. The result of full compilation is that the corresponding image will be generated under the NAND and EMMC directories under Out\target\product\hi3716cv200/. The next step is to burn these images to the development boards they provide.
The tools needed to burn the image: PC (Windows system, because Huawei only provides the burn-write tool under Windows), the GCC Development Board, USB to serial cable, network cable,
- Copy the generated eMMC directory to your PC. (The reason is the copy eMMC directory, because I this board of U14 chip welding is EMMC chip, if your board is welded Nandflash, it is necessary to copy the NAND directory).
- Copy the $android_home/devicehisilicon/bigfish/sdk/tools/windows directory to your PC. The Burn-write tool is stored in the Windows directory
- Take a USB-to-serial cable, connect the board's J35 and the PC's USB port, and open the HyperTerminal.
- Take a cable, connect the board's J13 and PC's network port, and configure the PC's IP address to 192.168.1.1
- Power off the board, open the Hitool tool in the Windows directory, and use the Hiburn plugin. See the video tutorials provided by HiSilicon for specific configurations. After configuration, select "Burn Write eMMC", partition Table file Select the XML file under the eMMC directory, and then configure all the mirrors in the eMMC directory in the options below. Click on the "Burn Write" button, open the Development Board power, began to write less, burn write completion will be prompted.
5, after the completion of burning, use the HDMI cable to connect the Development Board to the display, start the Development Board, there will be an auto show video (Fastplay), and then will enter the Android system. However, the current system is not able to play video files such as Mkv,ts because there is no associated library file. This needs to ask Huawei for a AV library, unzip it, and copy the last. so file to the/system/lib directory of the Android system. Copy method:
At this point, the preparation of the HI3716C-based Android system development is complete.