Created
December 19, 2012 15:11
-
-
Save ma34s/4337374 to your computer and use it in GitHub Desktop.
ビルドスクリプトっぽいモノ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
#run this script at ~/SC04D/omap | |
# | |
# ~/SC04D/ | |
# +omap/build.sh (this) | |
# +ramdisk/ | |
# | +XXXX/ | |
# | +XXXX/ | |
# | +init | |
# +mkbootfs | |
# + | |
# | |
export PATH=~/SC04D/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH | |
export ARCH=arm | |
export SUBARCH=arm | |
export CROSS_COMPILE=arm-eabi- | |
#make tuna_defconfig | |
make -j8 | |
cd ~/SC04D/ | |
#copy zImage | |
cp -f ./omap/arch/arm/boot/zImage ./ | |
#no need secondtimes.... | |
#split_bootimg.pl boot.img | |
#mkdir ramdisk | |
#cd ramdisk | |
#zcat -dc ../boot.img-ramdisk.gz | cpio -i | |
# **** copy "init" binary into ramdisk/ from ROM/out/xxxx/system/xxx/init | |
#cd ~/SC04D/ | |
mkbootfs ramdisk | gzip > new.boot.img-ramdisk.gz | |
mkbootimg --kernel zImage --base 0x80000000 --pagesize 2048 --ramdisk new.boot.img-ramdisk.gz -o myboot.img | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
!/bin/bash
run this script at ~/SC04D/omap
~/SC04D/
+omap/build.sh (this)
+ramdisk/
| +XXXX/
| +XXXX/
| +init
+mkbootfs
+
export PATH=~/SC04D/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
make tuna_defconfig
make -j8
cd ~/SC04D/
copy zImage
cp -f ./omap/arch/arm/boot/zImage ./
./unpack-bootimg.pl boot.img
mkdir ramdisk
cd ramdisk
zcat -dc ../boot.img-ramdisk.cpio.gz | cpio -i
**** copy "init" binary into ramdisk/ from ROM/out/xxxx/system/xxx/init
cd ~/SC04D/
mkbootfs ramdisk | gzip > new.boot.img-ramdisk.gz
mkbootimg --kernel zImage --base 0x80000000 --pagesize 2048 --ramdisk new.boot.img-ramdisk.gz -o myboot.img