Skip to content

Commit a886a53

Browse files
committed
switched to personal repo. Attempting to get boot working
1 parent e461ade commit a886a53

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

builder.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ case "$1" in
8787
echo "Building the kernel"
8888
kernel_build
8989
;;
90+
boot)
91+
echo "Booting the kernel"
92+
kernel_boot
93+
;;
9094
esac
9195
;;
9296
esac

configuration

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ DEBOOT_DIR=deboot_working
5353

5454
# directory where the kernel source tree is kept
5555
KERNEL_DIR=kernel_source
56-
KERNEL_REPO=git://kernel.ubuntu.com/ubuntu/ubuntu-nexus7.git
56+
#KERNEL_REPO=git://kernel.ubuntu.com/ubuntu/ubuntu-nexus7.git
57+
KERNEL_REPO=https://github.com/ylixir/grouper-kernel.git
58+
KERNEL_OUT_DIR=kernel_target
59+
KERNEL_TARGET='vmlinuz-3.1.10-8-nexus7'
60+
RAMDISK_TARGET='initrd.img-3.1.10-8-nexus7'
61+
KERNEL_CMD_LINE='tegra_wdt.heartbeat=30 tegra_wdt.heartbeat=30 tegraid=30.1.3.0.0 mem=1022M@2048M android.commchip=0 vmalloc=512M androidboot.serialno=015d165c32300010 video=tegrafb no_console_suspend=1 console=none debug_uartport=hsport usbcore.old_scheme_first=1 lp0_vec=8192@0xbddf9000 tegra_fbmem=8195200@0xabe01000 core_edp_mv=0 audio_codec=rt5640 board_info=f41:a00:1:44:2 tegraboot=sdmmc gpt gpt_sector=30535679 androidboot.bootloader=4.23 androidboot.baseband=unknown root=/dev/mmcblk0p9 rootfstype=ext4 rw console=tty0 fbcon=rotate:1 access=m2 splash rootflags=defaults,noatime,nodiratime quiet rootsubdir=/media/0/multirom/roms/arch_20130626/root'
5762
#how many processes do you want the build to use?
5863
BUILD_PROCESSES=9

functions

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ clean_directories ()
2828
# just make the directories we'll need
2929
create_directories ()
3030
{
31-
mkdir -p $BASE_DIR/$DEBOOT_DIR
32-
mkdir -p $BASE_DIR/$ROOT_TARGET
33-
mkdir -p $BASE_DIR/$KERNEL_DIR
34-
mkdir -p $BASE_DIR/$ROOT_TARGET/$KERNEL_DIR
31+
mkdir -p $BASE_DIR/$DEBOOT_DIR;
32+
mkdir -p $BASE_DIR/$ROOT_TARGET;
33+
mkdir -p $BASE_DIR/$KERNEL_DIR;
34+
mkdir -p $BASE_DIR/$ROOT_TARGET/$KERNEL_DIR;
35+
mkdir -p $BASE_DIR/$KERNEL_OUT_DIR;
3536
}
3637

3738
#do path magic
@@ -43,7 +44,7 @@ set_path ()
4344
}
4445
reset_path ()
4546
{
46-
PATH=$ORIGINAL_PATH
47+
PATH=$ORIGINAL_PATH;
4748
}
4849
#do the mount magic
4950
do_mount ()
@@ -160,6 +161,11 @@ kernel_build ()
160161
do_unmount;
161162
reset_path;
162163
}
164+
kernel_boot ()
165+
{
166+
echo $KERNEL_CMD_LINE;
167+
fastboot boot $BASE_DIR/$KERNEL_OUT_DIR/$KERNEL_TARGET $BASE_DIR/$KERNEL_OUT_DIR/$RAMDISK_TARGET -c "$KERNEL_CMD_LINE";
168+
}
163169
# this patch was attempting to fix a problem that was actually a path
164170
# problem, so it's currently not used, but left in case it's needed later
165171
# deboot comes out of the box with an offensive mount command.

0 commit comments

Comments
 (0)