Hi All
I can get the kernel source code to build, and I can also get the zImage that I have compiled to boot to an adb prompt, but I cannot get it to boot Android, and I am experiencing some weird security stuff when trying to run some commands in adb
Let me first explain how I build my zImage
After I have downloaded and unzipped (twice) and un-tarred the files (jeeze)
I edit the Makefile and change this section
From
Code:
export KBUILD_BUILDHOST := $(SUBARCH)
ARCH ?= $(SUBARCH)
CROSS_COMPILE ?=
CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
To
Code:
export KBUILD_BUILDHOST := $(SUBARCH)
ARCH ?= arm
CROSS_COMPILE ?= /home/hroark13/arm-eabi-4.4.3/bin/arm-eabi-
I copy the config file from the phone into the kernel directory
Code:
adb pull /proc/config.gz /home/hroark13/kernel/config.gz
cd kernel
cat config.gz | gunzip > .config
Then I build the zImage
After about 15 minutes I get a zImage in /home/hroark13/kernel/arch/arm/boot
I pack this zImage with a ramdisk that I have made, which is a modified version of my CM7 ramdisk
I use my packer for this
http://androidforums.com/warp-all-things-root/520947-warp-kernel-packer.html
The mods that I made that are getting me into adb are in the "on init" section of the init.arthur.rc
Code:
on init
setprop persist.service.adb.enable 1
setprop persist.sys.usb.enable_switch 1
setprop persist.sys.usb.linux_switch 1
setprop persist.sys.usb.switch_pid 0x1354
setprop persist.sys.usb.linux_pid 0x1350
setprop persist.sys.usb.default.pid 0x83
setprop persist.sys.usb.switch_pid 0x1351
setprop persist.sys.usb.unique_sn 1
setprop ro.secure 0
setprop ro.allow.mock.location 1
setprop ro.debuggable 1
setprop persist.sys.usb.config adb
setprop sys.usb.config adb
setprop sys.usb.state $sys.usb.config
exec /sbin/usbconfig
write /sys/class/usb_composite/adb/enable 1
exec /sbin/adbd
and i also copied a lot of files from CWM sbin, CM7 bin and CM7 xbin into the sbin folder
and it boots into adb, but will not boot Android
It does not want to mount the partitions
I have tried making scripts and and stuff to get the partitions to mount from the init.arthur.rc, but it will not work
however once I get into adb I can run a mount command and mount the partitions
I also get permission erors trying to run some commands
I am not a kernel or Linux expert, so maybe some of this info will shed some light on what is happening
Maybe we can put some diagnostic binaries in the ramdisk and figure out what the heck is wrong with the zImage that gets compiled
Here is the file i produced, it is flashed with CWM, you guys / gals can un-pack the ramdisk and try to produce your own zImages to see if you get the same results
make sure you backup before you flash it
zImage_test.zip
,