Script compiler Android and make a file system

Source: Internet
Author: User

1. Modify androidboard. mk
Gedit device/wolf/smdk6410/androidboard. mk

Local_path: = $ (call my-DIR)
Include $ (clear_vars)
Local_src_files: = gpio-keys.kcm
Local_module_tags: = ENG
Include $ (build_key_char_map)

# Copy Base files

Product_copy_files + = \
$ (Local_path)/asound. conf: System/etc/asound. conf \
$ (Local_path)/vold. fstab: System/etc/vold. fstab \
$ (Local_path)/init. RC: Root/init. RC
 
2. Build Android Source
1. Source./build/envsetup. Sh
Including device/HTC/passion/vendorsetup. Sh
Including device/Samsung/Crespo/vendorsetup. Sh
Including device/wolf/smdk6410/vendorsetup. Sh
2. Lunch
You're building on Linux

Lunch menu... pick a combo:
1. Generic-Eng
2. Simulator
3. full_passion-userdebug
4. full_crespo-userdebug
5. smdk6410-eng

Which wocould you like? [Generic-Eng] 5
3 make-J4
Iii. Make rootfs

#! /Bin/sh

Product = smdk6410
Fs_dir =/home/nfsdir
Echo-n "generating rootfs for Android .."

Rm-RF $ {fs_dir}

CP-A out/target/product/$ {product}/root/$ {fs_dir}
CP-A out/target/product/$ {product}/system/* $ {fs_dir}/System
CP-A out/target/product/$ {product}/data/* $ {fs_dir}/Data
Chown root: root $ {fs_dir}-R

Echo "... done"

Echo-n "Install prebuilt packages ..."
If [-F device/wolf/common/busybox-bin.tar.gz]; then
Tar-XF device/wolf/common/busybox-bin.tar.gz-C $ {fs_dir}/System
Fi

Echo "... done"

Iv. setenv
Setenv bootargs console = ttysac0, 115200 root =/dev/nfs init =/init nfsroot = 10.50.25.10:/home/nfsdir
IP = 10.50.25.20: 10.50.25.10: 10.50.25.1: 255.255.255.0: eth0: Off

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.