-
Notifications
You must be signed in to change notification settings - Fork 0
/
makeit_p.sh
executable file
·21 lines (16 loc) · 950 Bytes
/
makeit_p.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# ready zImage
rm zImage
#rm kernel.elf
rm boot.img
rm ramdisk.img
cp kernel/arch/arm/boot/zImage zImage
# lib copy
cp ./kernel/net/compat-wireless/drivers/staging/cw1200/cw1200_core.ko ./ramdisk/lib/modules/3.0.8+/kernel/net/compat-wireless/drivers/staging/cw1200/
cp ./kernel/net/compat-wireless/drivers/staging/cw1200/cw1200_wlan.ko ./ramdisk/lib/modules/3.0.8+/kernel/net/compat-wireless/drivers/staging/cw1200/
# make ramdisk image
cd ramdisk
find . | cpio --quiet -H newc -o | gzip > ../ramdisk.img
cd ..
# make kernel
./mkbootimg --cmdline 'cachepolicy=writealloc noinitrd init=init board_id=1 logo.nologo root=/dev/ram0 rw rootwait mem=96M@0 mem_mtrace=15M@96M mem_mshared=1M@111M mem_modem=16M@112M mem=32M@128M mem_issw=1M@160M hwmem=167M@161M mem=696M@328M vmalloc=384M console=ttyAMA2,115200n8 androidboot.console=ttyAMA2 androidboot.hardware=st-ericsson' --kernel zImage --ramdisk ramdisk.img --base 0x0 --output boot.img