Ok335xs-android pack-ubi-256m.sh Hacking

Source: Internet
Author: User
Tags bz2

1#/*******************************************************************************2 # * Ok335xs-android pack-ubi-256m.sh hacking3 # * Disclaimer:4 # * 1. This article is only for the purpose of knowing the principle of pack-ubi-256m.sh automatic generation of ubi file system5 # * 2. This article may not be good to read on the Web page, preferably a CP copy in other text editor reading6 # * 2015-6-4 Sunny Shenzhen Nanshan Ping Shan village Zengjianfeng7 # ******************************************************************************/8 9 Ten#/bin/SH One  AAndroid_path= 'pwd' # get Android Root Path -Kernel_path= $ANDROID _path/Kernel # Get Android kernel path -Uboot_path= $ANDROID _path/u-boot # Get ANDROID uBoot Path the Echo "start make rootfs.tar.bz2 ..."# Show Start message -CD $ANDROID _path/out/target/product/AM335XEVM # Change directory to Out path - RM-RF Android_rootfs # remove Android_rootfs directory - mkdirANDROID_ROOTFS # MakeDirectory forAndroid_rootfs + CP-RF Root/*ANDROID_ROOTFS # cp all file to Android_rootfs directory from root directory - CP-RF Data android_rootfs/# CP Data directory to ANDROID_ROOTFS directory + CP-RF System android_rootfs/# CP system directory to ANDROID_ROOTFS directory A cp-rf $ANDROID _path/vendor/busybox android_rootfs/system/bin # cp BusyBox as a shell command< /c4> at cp-rf $ANDROID _path/rowboperf/rowboperf_libs/armeabi/* android_rootfs/system/lib # cp Rowboperf Armeabi Lib as Sy Stem Lib - cp-rf $ANDROID _path/rowboperf/zeroxbench_bins/armeabi/* android_rootfs/system/bin # cp Rowboperf Armeabi bin as Sy Stem bin - cp-rf $ANDROID _path/rowboperf/*.apk Android_rootfs/data/app # CP Rowboperf APK as Data spp
     - CD android_rootfs/data # change directory to Android_rootfs/data - mkdir Data # make directory for data - CD $ANDROID _PATH/OUT/TARGET/PRODUCT/AM335XEVM # Change Directory to Out PATH in chown 1000:1000 android_rootfs/data/app-r # change file own - chmod 775 Android_rootfs/data/app # Change file mode of app to chmod 777 Android_rootfs/data/data # Change file mode of data + .. /.. /.. /.. /build/tools/mktarball.sh. /.. /.. /host/linux-x86/bin/fs_get_stats Android_rootfs. Rootfs rootfs.tar.bz2 # Create a tar file - Sleep 2 the cp-rf rootfs.tar.bz2 $ANDROID _path/mkubifs # cp rootfs.tar.bz2 to mkubifs directory * CD $ANDROID _path/mkubifs # go to mkubifs directory $ rm-rf rootfs # rm-rf Rootfs directoryPanax Notoginseng mkdir rootfs # make Rootfs directory - TAR-JXVF rootfs.tar.bz2-c rootfs # Use tar with-jxvf argument extract files from R OOTFS.TAR.BZ2 the ./mkfs.ubifs-f-R rootfs-m 2048-e 126976-c 1866-o ubifs.img # Create the ubifs image + # Ubinize.cfg | A # [ubifs] | the # Mode=ubi | + # image=ubifs.img <---------------------------------+ - # vol_id=0 $ # Vol_size=220mib $ # vol_type=dynamic - # Vol_name=rootfs - # vol_flags=autoresize the ./ubinize-o ubi.img-o 2048-m 2048-p 128kib-s 2048 ubinize.cfg # Create the ubi image - Sleep 2Wuyi echo ' Make end ' # Show work End the  - cd $ANDROID _path # goto ANDROID Root PATH Wu CP $KERNEL _path/arch/arm/boot/uimage TEMP # CP uimage to temp directory - #cp $UBOOT _path/mlo Temp # CP MLO to temp directory About #cp $UBOOT _path/u-boot.img Temp # CP u-boot.img to temp directory $ CP $ANDROID _path/mkubifs/ubi.img TEMP # CP ubi.img to temp directory -  - cp $KERNEL _path/arch/arm/boot/uimage mmc-android-ubifs/boot_images # cp Uimage to mmc-android-ubifs/boot_images
     - #cp $UBOOT _path/mlo mmc-android-ubifs/boot_images # CP MLO to temp directory A #cp $UBOOT _path/u-boot.img mmc-android-ubifs/boot_images # CP u-boot.img to temp directory + cp $ANDROID _path/mkubifs/ubi.img Mmc-android-ubifs/filesystem # CP ubi.img to temp directory the echo "pack complete"

Ok335xs-android pack-ubi-256m.sh Hacking

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.