Skip to content

Instantly share code, notes, and snippets.

@ma34s
Created December 19, 2012 15:11
Show Gist options
  • Save ma34s/4337374 to your computer and use it in GitHub Desktop.
Save ma34s/4337374 to your computer and use it in GitHub Desktop.
ビルドスクリプトっぽいモノ
#!/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
@stmay30
Copy link

stmay30 commented Dec 19, 2012

!/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment