|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
Quote:
Both the kernel and the rootfs are completely up to date minus the one commit that changed the power button mapping. http://dl.dropbox.com/u/11790134/test3.zip |
This post has been thanked 6 times. |
|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
Phenomenal work! Also working here.
This thing probably deserves its own thread instead of being buried in my thread! |
|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
Would you mind modifiying the first post & perhaps the title? Then it wouldn't be necessary
|
This post has been thanked 2 times. |
|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
Good idea, just didn't want to step on anyone toes in making this the main thread for this patch.
|
This post has been thanked 2 times. |
|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
so is there some sort of guide on how to install this patch???
__________________
I don't suffer from insanity; I enjoy every minute of it. Don't take life too seriously; No one gets out alive.
|
|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
Quote:
Extract, rename rootfs to 'rootfs.img' and copy it all to where you run haret from. None of the other files should need renaming. For the record, zImage should always be that - "zImage" without a file extension. Don't rename the modules file. Probably a good idea to delete your old rootfs, modules & zImage as well. |
This post has been thanked 1 times. |
|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
Quote:
Also, here's the script of what I'm doing to compile. I'll update these occasionally when there are updates worthwhile to re-compile. Code:
#!/bin/sh #------------------------------------------------------------------------- # Build Script for linux-msm-rhod-nand (Android on HTC) kernel, modules, XIP, and NBH #------------------------------------------------------------------------- # # Set the following variables # ANDROID -- directory with all android sources ANDROID=~/android # KERNEL_PATH -- directory containing the linux-msm kernel source KERNEL_PATH=$ANDROID/linux-msm # TOOLCHAIN_PATH -- directory containing the arm toolchain TOOLCHAIN_PATH=$ANDROID/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi # MODULES_PATH -- directory containing compcache and tiwlan directories MODULES_PATH=$ANDROID/modules # OUTPUT_PATH -- directory to write the kernel and modules gzip OUTPUT_PATH=$ANDROID/output # rootfs repository ROOTFS=$ANDROID/eclair-rootfs #------------------------------------------------------------------------- # make directories (if they don't exist) if [ ! -d $MODULES_PATH/mods ] ; then mkdir $MODULES_PATH/mods fi if [ -d $ANDROID/rootfs/.tmp ] ; then rm -rf $ANDROID/rootfs/.tmp mkdir $ANDROID/rootfs/.tmp else mkdir $ANDROID/rootfs/.tmp fi # build kernel and modules cd $KERNEL_PATH git pull git revert --no-commit 6c41ca69 make ARCH=arm htc_msm_android_defconfig make ARCH=arm CROSS_COMPILE=$TOOLCHAIN_PATH- INSTALL_MOD_PATH=$MODULES_PATH/kernel-modules zImage modules modules_install [ $? -eq 0 ] || fail "Kernel compilation failure" # get kernel build version KER_VER="$(cat $KERNEL_PATH/include/config/kernel.release)" # copy all drivers to single level directory for compression cd $MODULES_PATH/kernel-modules kernmods=$(find -name "*.ko") for i in $kernmods ; do cp $i $MODULES_PATH/mods done # compress modules to a tar.gz and move to output cd $MODULES_PATH/mods tar czf $MODULES_PATH/modules-$KER_VER.tar.gz . cd .. echo "Outputting files to $OUTPUT_PATH/sdcard" mv modules-$KER_VER.tar.gz $OUTPUT_PATH # move new kernel mv $KERNEL_PATH/arch/arm/boot/zImage $OUTPUT_PATH # build rootfs # temporary directory to use for building rootfs TMPDIR=$ANDROID/rootfs/.tmp REPO="git://gitorious.org/xdandroid-eclair/eclair-rootfs.git" cd $TMPDIR REPODIR=${REPO##*/} REPODIR=${REPODIR%.*} git clone $REPO $REPODIR cd $TMPDIR/$REPODIR [ -z ${BRANCH} ] || git checkout "${BRANCH}" git revert --no-commit 6c87dd04 GITDESCRIBE="$(git rev-parse --verify --short HEAD)" DATE=$(date +%Y%m%d) cd $TMPDIR mkdir rootfs cd $TMPDIR/$REPODIR ./scripts/gitclean.sh cp -a . $TMPDIR/rootfs chmod u+s $TMPDIR/rootfs/bin/pppd $TMPDIR/rootfs/bin/su genext2fs --root $TMPDIR/rootfs -U -N 1024 -m 1 -b 15360 $OUTPUT_PATH/rootfs-"$DATE"-"$GITDESCRIBE".img rm -rf $TMPDIR Kernel: git revert --no-commit 6c41ca69 Rootfs: git revert --no-commit 6c87dd04 |
This post has been thanked 2 times. |
|
||||
Re: What modifications are necessary to create a fork that re-enables the home button
Quote:
|
|
||||
Re: Patch that enables home button support in XDAndroid
I should have gotten involved sooner i suppose but it's unclear why we need this. To fork off just for buttons?
i hear some brains thinking ... We can probably make the whole thing dynamic.. Now just need to see how the xdandroid team feels about that. Kernle wise we can make the damn phone sing, but this is more of a userland thing in my eyes. We talked about enabling the zoombar to do more. Any ideas what we can use it for?
__________________
|
This post has been thanked 2 times. |
|
|
|