Guest TechnoLover Posted April 10, 2011 Report Posted April 10, 2011 Hello everyone, I just wanted to start a bit with "modding" my Acer Liquid A1 (: As I just have less knowledge about everything, I stuck at the beginning ): My running System is Ubuntu 10.10 64 Bit My Equipment looks yet like this: /Test/KernelSource/ <= KernelSource from Acer /Test/arm-2010q1/ <= Compiler for ARM But as I have found out here in the forum, the kernelsource is a little bit buggy, so I would appreciate every tip, as I really would like to get to know how to start and to begin with developing etc. (:
Guest gnufabio Posted April 10, 2011 Report Posted April 10, 2011 Hello everyone, I just wanted to start a bit with "modding" my Acer Liquid A1 (: As I just have less knowledge about everything, I stuck at the beginning ): My running System is Ubuntu 10.10 64 Bit My Equipment looks yet like this: /Test/KernelSource/ <= KernelSource from Acer /Test/arm-2010q1/ <= Compiler for ARM But as I have found out here in the forum, the kernelsource is a little bit buggy, so I would appreciate every tip, as I really would like to get to know how to start and to begin with developing etc. (: Enter the kernel source folder from shell and type export ARCH=arm export CROSS_COMPILER=/Test/arm2010q1 make If there is any error, please post them
Guest TechnoLover Posted April 10, 2011 Report Posted April 10, 2011 (edited) Thanks for help! I've tried this: marco@ubuntu:/Test/KernelSource/kernel$ export ARCH=arm marco@ubuntu:/Test/KernelSource/kernel$ export CROSS_COMPILER=/Test/arm-2010q1 marco@ubuntu:/Test/KernelSource/kernel$ make make: *** No rule to make target `.config', needed by `/config_data.gz'. Stop. and ('cause i've found this earlier on the web) marco@ubuntu:/Test/KernelSource/kernel$ export ARCH=arm marco@ubuntu:/Test/KernelSource/kernel$ export CROSS_COMPILER=/Test/arm-2010q1/bin/arm-none-linux-gnueabi- marco@ubuntu:/Test/KernelSource/kernel$ make make: *** No rule to make target `.config', needed by `/config_data.gz'. Stop. Both are stopping here: marco@ubuntu:/Test/KernelSource/kernel$ make make: *** No rule to make target `.config', needed by `/config_data.gz'. Stop. Edited April 10, 2011 by TechnoLover
Guest gnufabio Posted April 10, 2011 Report Posted April 10, 2011 (edited) Seems that Acer removed the config file...run make menuconfig choose your config and, when you finish, run make again Update: sorry, as you found in the web is export CROSS_COMPILER=/Test/arm-2010q1/bin/arm-none-linux-gnueabi- Edited April 10, 2011 by gnufabio
Guest TechnoLover Posted April 10, 2011 Report Posted April 10, 2011 (edited) marco@ubuntu:/Test/KernelSource/kernel$ make menuconfig make: *** No rule to make target `menuconfig'. Stop. So that doesn't work =/ Then I searched the forum here and found this by errmsg: http://android.modaco.com/index.php?s=&...t&p=1600574 I have to disagree with you, defaults for .configs are taken from the configs dir, and in our case that's the file in arch/arm/configs/acer-q8k-a1-dvt_defconfig. So, I succeeded in cross-compiling the sources from acer with the following changes, copying the defconfig to ~/.config, applying the patch from http://paste.ubuntu.com/566676/ and running the build. Looks like Acer just physically removed some netfilter sources (and if they are added there then compilation breaks in more than one weird way) and released whatever they had. So i've copied the /Test/KernelSource/arch/arm/configs/acer-q8k-a1-dvt_defconfig to /Test/KernelSource/kernel/.config and made the changes mentioned in the paste. But i get an error and google doesn't help me =/ marco@ubuntu:/Test/KernelSource/kernel$ export ARCH=arm marco@ubuntu:/Test/KernelSource/kernel$ export CROSS_COMPILER=/Test/arm-2010q1/bin/arm-none-linux-gnueabi- marco@ubuntu:/Test/KernelSource/kernel$ make make: *** No rule to make target `FORCE', needed by `/config_data.gz'. Stop. This error has to do with these two "FORCE" mentioned in /Test/KernelSource/kernel/Makefile $(obj)/config_data.gz: .config FORCE [...] $(obj)/config_data.h: $(obj)/config_data.gz FORCE but without "FORCE" I get (I don't know what this is, but it is a test worth :)) marco@ubuntu:/Test/KernelSource/kernel$ make make: Nothing to be done for `/configs.o'. Edited April 10, 2011 by TechnoLover
Guest TechnoLover Posted April 10, 2011 Report Posted April 10, 2011 (edited) Forget everything I have done before xD It was all wrong! ("cd kernel" was my fault) Now I am at the next point: My way of compiling it marco@ubuntu:~/Test/KernelSource$ export ARCH=arm marco@ubuntu:~/Test/KernelSource$ export CROSS_COMPILE=~/Test/arm-2010q1/bin/arm-none-linux-gnueabi- marco@ubuntu:~/Test/KernelSource$ export CROSS_COMPILER=~/Test/arm-2010q1/bin/arm-none-linux-gnueabi- marco@ubuntu:~$ cd Test/KernelSource marco@ubuntu:~/Test/KernelSource$ make mrproper CLEAN /home/marco/Test/KernelSource CLEAN init CLEAN usr CLEAN .tmp_versions CLEAN scripts/basic CLEAN scripts/kconfig CLEAN scripts/mod CLEAN scripts CLEAN include/config CLEAN .config include/asm .version include/linux/autoconf.h include/linux/version.h include/linux/utsrelease.h include/linux/bounds.h include/asm-arm/asm-offsets.h include/asm/asm-offsets.h marco@ubuntu:~/Test/KernelSource$ make defconfig arch/arm/configs/acer-q8k-a1-dvt_defconfig *** Default configuration is based on 'versatile_defconfig' drivers/video/Kconfig:2276:warning: defaults for choice values not supported # # configuration written to .config # drivers/video/Kconfig:2276:warning: defaults for choice values not supported *** *** Can't find default configuration "arch/arm/configs/arch/arm/configs/acer-q8k-a1-dvt_defconfig"! *** make[1]: *** [arch/arm/configs/acer-q8k-a1-dvt_defconfig] Error 1 make: *** [arch/arm/configs/acer-q8k-a1-dvt_defconfig] Error 2 marco@ubuntu:~/Test/KernelSource$ make scripts/kconfig/conf -s arch/arm/Kconfig drivers/video/Kconfig:2276:warning: defaults for choice values not supported CHK include/linux/version.h UPD include/linux/version.h make[1]: `include/asm-arm/mach-types.h' is up to date. CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-arm CC kernel/bounds.s GEN include/linux/bounds.h CC arch/arm/kernel/asm-offsets.s GEN include/asm/asm-offsets.h CALL scripts/checksyscalls.sh CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o scripts/mod/modpost.c: In function ´get_markers´: scripts/mod/modpost.c:1542: warning: ignoring return value of ´asprintf´, declared with attribute warn_unused_result scripts/mod/modpost.c: In function ´add_marker´: scripts/mod/modpost.c:1962: warning: ignoring return value of ´asprintf´, declared with attribute warn_unused_result HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost HOSTCC scripts/ihex2fw scripts/ihex2fw.c: In function ´output_records´: scripts/ihex2fw.c:261: warning: ignoring return value of ´write´, declared with attribute warn_unused_result scripts/ihex2fw.c:266: warning: ignoring return value of ´write´, declared with attribute warn_unused_result HOSTCC scripts/kallsyms scripts/kallsyms.c: In function ´read_symbol´: scripts/kallsyms.c:74: warning: ignoring return value of ´fgets´, declared with attribute warn_unused_result HOSTCC scripts/conmakehash CC init/main.o CHK include/linux/compile.h UPD include/linux/compile.h CC init/version.o CC init/do_mounts.o CC init/do_mounts_rd.o CC init/do_mounts_initrd.o LD init/mounts.o CC init/initramfs.o CC init/calibrate.o LD init/built-in.o HOSTCC usr/gen_init_cpio GEN usr/initramfs_data.cpio.gz AS usr/initramfs_data.o LD usr/built-in.o CC arch/arm/kernel/compat.o CC arch/arm/kernel/elf.o AS arch/arm/kernel/entry-armv.o AS arch/arm/kernel/entry-common.o CC arch/arm/kernel/irq.o CC arch/arm/kernel/process.o CC arch/arm/kernel/ptrace.o CC arch/arm/kernel/setup.o CC arch/arm/kernel/signal.o CC arch/arm/kernel/sys_arm.o CC arch/arm/kernel/stacktrace.o CC arch/arm/kernel/time.o CC arch/arm/kernel/traps.o CC arch/arm/kernel/armksyms.o CC arch/arm/kernel/module.o CC arch/arm/kernel/io.o AS arch/arm/kernel/debug.o LD arch/arm/kernel/built-in.o AS arch/arm/kernel/head.o CC arch/arm/kernel/init_task.o LDS arch/arm/kernel/vmlinux.lds CC arch/arm/mm/dma-mapping.o CC arch/arm/mm/extable.o CC arch/arm/mm/fault.o CC arch/arm/mm/init.o CC arch/arm/mm/iomap.o CC arch/arm/mm/fault-armv.o CC arch/arm/mm/flush.o CC arch/arm/mm/ioremap.o CC arch/arm/mm/mmap.o CC arch/arm/mm/pgd.o CC arch/arm/mm/mmu.o CC arch/arm/mm/proc-syms.o CC arch/arm/mm/alignment.o AS arch/arm/mm/abort-ev5tj.o CC arch/arm/mm/copypage-v4wb.o AS arch/arm/mm/tlb-v4wbi.o AS arch/arm/mm/proc-arm926.o LD arch/arm/mm/built-in.o CC arch/arm/common/vic.o CC arch/arm/common/icst307.o CC arch/arm/common/clkdev.o LD arch/arm/common/built-in.o CC arch/arm/mach-versatile/core.o CC arch/arm/mach-versatile/clock.o CC arch/arm/mach-versatile/versatile_pb.o CC arch/arm/mach-versatile/versatile_ab.o LD arch/arm/mach-versatile/built-in.o CC arch/arm/nwfpe/fpa11.o CC arch/arm/nwfpe/fpa11_cpdo.o CC arch/arm/nwfpe/fpa11_cpdt.o CC arch/arm/nwfpe/fpa11_cprt.o CC arch/arm/nwfpe/fpmodule.o CC arch/arm/nwfpe/fpopcode.o CC arch/arm/nwfpe/softfloat.o CC arch/arm/nwfpe/single_cpdo.o CC arch/arm/nwfpe/double_cpdo.o AS arch/arm/nwfpe/entry.o LD arch/arm/nwfpe/nwfpe.o LD arch/arm/nwfpe/built-in.o CC arch/arm/vfp/vfpmodule.o AS arch/arm/vfp/entry.o AS arch/arm/vfp/vfphw.o CC arch/arm/vfp/vfpsingle.o CC arch/arm/vfp/vfpdouble.o LD arch/arm/vfp/vfp.o LD arch/arm/vfp/built-in.o CC arch/arm/perfmon/perf-function-hooks.o LD arch/arm/perfmon/built-in.o CC kernel/sched.o CC kernel/fork.o CC kernel/exec_domain.o CC kernel/panic.o cc1: warnings being treated as errors kernel/panic.c: In function 'panic': kernel/panic.c:72: error: unused variable 'ret' make[1]: *** [kernel/panic.o] Error 1 make: *** [kernel] Error 2 [Now I have to eat and maybe you see this (: and now a answer for the kernel panic =/ EDIT: I just commented line 72 in panic.c out and now it compiles, question is how long :) Better Way: Delete the "-Wall" attribute in ~/Test/KernelSource/Makefile (2x here) EDIT 2: Now it stops in ~/Test/KernelSource/arch/arm/include\asm\gpio.h:5 change "#include >mach/gpio.h>" to "#include <../../../arch/arm/mach-msm/include/mach/gpio.h>" Edit 3: ~/Test/KernelSource/drivers/i2c/chips/mt9t013.c:33 (to 37) There are includes which include files from the folder "mach" which doesn't exist in the folder "chips". When I comment it out, there are errors in mt9t013.c because some references to functions are missing. Now I don't know what else I should do =/ drivers/i2c/chips/mt9t013.c: In function 'mt9t013_sensor_init': drivers/i2c/chips/mt9t013.c:458: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:460: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:464: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:468: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:470: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:472: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:473: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:494: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:496: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:497: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c: In function 'mt9t013_lens_power': drivers/i2c/chips/mt9t013.c:820: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:822: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:824: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' drivers/i2c/chips/mt9t013.c:825: error: 'struct msm_camera_legacy_device_platform_data' has no member named 'sinfo' make[3]: *** [drivers/i2c/chips/mt9t013.o] Error 1 make[2]: *** [drivers/i2c/chips] Error 2 make[1]: *** [drivers/i2c] Error 2 make: *** [drivers] Error 2 ret = gpio_request(cam->sinfo->sensor_reset, "mt9t013"); Member sinfo doesn't exist =( Edited April 10, 2011 by TechnoLover
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now