Hello group moderator, I apologize in advance if my question is without merit. I am trying to rebuild the kernel for an ADP1. I want to port a touchscreen driver.
I am cross developing on a linux-x86 platform running Ubuntu. I downloaded and built the latest android platform using the instructions at source.android.com/download and source.android.com/ documentation/building-for-dream using the latest instructions for donut. I have searched the web and sent a direct question to HTC, for concise instructions for building a new kernel for the ADP1. I have purchased and received an ADP1 just last week (Oct 09) I have downloaded the htc phone kernel source from <developer.htc.com/ > I have downloaded the .config file from the phone. I have noticed in the phone .config, that it used kernel version -.25 vs. -.27 in the msm_defconfig in the kernel source. I placed the htc kernel source tree into ~/mydroid. I copied the phone .config to the kernel root. I added the toolchain path "home/tes/myfroid/prebuilt/linux-x86/ toolchain/arm-eabi-4.4.0/bin" to my .bashrc and rebooted. After reboot, echo $PATH shows the toolchain in the PATH. I then ran the sequence: > export ARCH=arm > export CROSS_COMPILE=arm-eabi- > make oldconfig /* here I had to select a processor since the phone config had > CONFIG_ARCH_MSM7201; I selected CONFIG_ARCH_MSM. I believe I took the > defaults for all new items.*/ > make The make failed trying to compile board-trout.c: CC arch/arm/mach-msm/board-trout.o arch/arm/mach-msm/board-trout.c:391: error: 'H2W_UART3' undeclared here (not in a function) arch/arm/mach-msm/board-trout.c: In function 'configure_cpld': arch/arm/mach-msm/board-trout.c:395: error: 'H2W_UART1' undeclared (first use in this function) arch/arm/mach-msm/board-trout.c:395: error: (Each undeclared identifier is reported only once arch/arm/mach-msm/board-trout.c:395: error: for each function it appears in.) arch/arm/mach-msm/board-trout.c:406: error: 'H2W_BT' undeclared (first use in this function) arch/arm/mach-msm/board-trout.c:424: error: 'H2W_GPIO' undeclared (first use in this function) : : arch/arm/mach-msm/board-trout.c:513: error: unknown field 'get_clk' specified in initializer arch/arm/mach-msm/board-trout.c:513: warning: excess elements in struct initializer arch/arm/mach-msm/board-trout.c:513: warning: (near initialization for 'trout_h2w_data') make[1]: *** [arch/arm/mach-msm/board-trout.o] Error 1 make: *** [arch/arm/mach-msm] Error 2 Did I miss some steps? Thanks and best regards. Kevin --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---