Build a ROM with custom kernel? - Galaxy Tab 10.1 Q&A, Help & Troubleshooting

Hi everybody,
following the guide "How To Build CyanogenMod For Samsung Galaxy Tab 2 10.1 (Wi-Fi) ("p5110")" from cyanogenmod wiki I compiled my first ROM (CM 11.0) for my P5110.
Now I'm trying to compile the ROM with the drivers for ASIX 88xx via menuconfig. But I always got the following error:
Code:
/home/pete/android/system/kernel/samsung/espresso10/arch/arm/kernel/irq.c:45:28: fatal error: mach/sec_addon.h: No such file or directory
compilation terminated.
make[3]: *** [arch/arm/kernel/irq.o] Fehler 1
make[2]: *** [arch/arm/kernel] Fehler 2
make[1]: *** [sub-make] Fehler 2
make[1]: Verzeichnis »/home/pete/android/system/kernel/samsung/espresso10« wird verlassen
make: *** [TARGET_KERNEL_BINARIES] Fehler 2
make: *** Auf noch nicht beendete Prozesse wird gewartet …
After the successful compilation of the ROM according to the guide mentioned above I tried this:
Code:
make clean
repo sync
cd ~/android/system/kernel/samsung/espresso10
make menuconfig
Load an Alternate Configuration File: ./arch/arm/configs/cyanogenmod_p5110_defconfig
make mrproper
croot
brunch p5110
and after a while I got the error mentioned above.
Any hints?
Kind regards Pete

The following brought me a step further. Instead of
Code:
make menuconfig
I did
Code:
make ARCH=arm menuconfig
after that the Build ran through.
Now I've got the following issues:
1. It is not possible to switch on the WLAN. Wenn I move the switch to 'On' no WLANs are shown and after a short time the switch moves back to 'Off'? It works with CM-11-nightly.
2. When i try to bring up the Ethernet I got the following
Code:
ifconfig eth0 192.168.1.100
error: SIOCSIFADDR (No such device)
dmesg
[irq/206-synapti] tsp: ts_irq_handler: 0 dn. remain: 1
[irq/206-synapti] tsp: ts_irq_handler: 0 up. remain: 0
[ usbhostd] host_notifier_ usbhostd: mode 1, count 721, HIGH
Any ideas???
Regards Pete

Related

Kernel 2.6.32 NEXUS

hi i was compiling 2.6.32 from the git repo
with oldconfig from my nexus one but camera doesnt work
has anyone a good 2.6.32 .config and could attach it
As said here:
http://forum.xda-developers.com/showpost.php?p=5395561&postcount=47
% export ARCH=arm
% export CROSS_COMPILE=arm-eabi- (assuming the standard android toolchain is in your path)
% make distclean
% make mahimahi_defconfig
% make
with that conf it gives
Code:
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
cc1: Fehler: nicht erkannte Kommandozeilenoption »-mlittle-endian«
cc1: Fehler: nicht erkannte Kommandozeilenoption »-mabi=aapcs-linux«
cc1: Fehler: nicht erkannte Kommandozeilenoption »-mno-thumb-interwork«
kernel/bounds.c:1: Fehler: Falscher Wert (armv5t) für Schalter -march=
kernel/bounds.c:1: Fehler: Falscher Wert (armv5t) für Schalter -mtune=
make[1]: *** [kernel/bounds.s] Fehler 1
make: *** [prepare0] Fehler 2
gentoo22 said:
with that conf it gives
Code:
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
cc1: Fehler: nicht erkannte Kommandozeilenoption »-mlittle-endian«
cc1: Fehler: nicht erkannte Kommandozeilenoption »-mabi=aapcs-linux«
cc1: Fehler: nicht erkannte Kommandozeilenoption »-mno-thumb-interwork«
kernel/bounds.c:1: Fehler: Falscher Wert (armv5t) für Schalter -march=
kernel/bounds.c:1: Fehler: Falscher Wert (armv5t) für Schalter -mtune=
make[1]: *** [kernel/bounds.s] Fehler 1
make: *** [prepare0] Fehler 2
Click to expand...
Click to collapse
Sounds like the build process may not be looking at the right GCC. The -m* options are specific to a particular architecture.
ok now works here but wireless doesnt
If you replace the kernel, you need to replace the wifi module as well.
The kernel build leaves it here:
drivers/net/wireless/bcm4329/bcm4329.ko
You need to copy it to /system/lib/modules/ on the device.
have done it in recovery, wile system is up it says read only filesystem with adb
then compiled in kernel not as module but doent work
Currently userspace needs the wifi driver to be a module (it expects to insmod it to start things up, etc, and gets confused if it can't). This will be fixed in some future version of Android. For now, you must replace the wifi module in /system/lib/modules if you update the kernel.
If any one makes a update.zip with the 2.6.32, please shere it here, i want to give it a try
There is already a good thread on 2.6.32 development, no need for a second.
Can I assume that in conjunction with what Brian posted on lwn.net, i.e. 2.6.32 is intended as base for Froyo, that an official ROM with this kernel will only be released when Froyo's ready (probably not on short term)?

[Q] [KERNEL]Help for building please :)

Hey guys,
I need some help for building kernel, i want to get start with some devlopment
I try to build the XPERIA Play kernel, I follow this sony's thread for builing kernel http://developer.sonymobile.com/wp/2011/05/06/how-to-build-a-linux-kernel/comment-page-7/#comments
I've downloaded the this for the toolchain https://sourcery.mentor.com/sgpp/lite/arm/portal/release2032 (gnu/linux TAR)
And when i type the following commands i don't get the zImage in arch/arm/boot folder
>export CCOMPILER=[myfolder]/bin/arm-none-eabi-
>ARCH=arm CROSS_COMPILE=$CCOMPILER make semc_zeus_defconfig
drivers/usb/gadget/Kconfig:826:warning: defaults for choice values not supported
#
# configuration written to .config
#
I get this but i don't get the zImage file
What wrong ?
EDIT/UPDATE:
I get the command for builing the kernel but i get a command not found error
~/xs/3.0.A.2.181_182/kernel$> ARCH=arm CROSS_COMPILE=$CCOMPILER make
make: /home/chich/xs/arm-2011.09/bin/arm-none-eabi-gcc : commande introuvable
scripts/kconfig/conf -s arch/arm/Kconfig
drivers/usb/gadget/Kconfig:826:warning: defaults for choice values not supported
make: /home/chich/xs/arm-2011.09/bin/arm-none-eabi-gcc : commande introuvable
CHK include/linux/version.h
make[1]: « include/asm-arm/mach-types.h » est à jour.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
/bin/sh: 1: /home/chich/xs/arm-2011.09/bin/arm-none-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Erreur 127
make: *** [prepare0] Erreur 2
I check the arm-2011.09/bin/ folder and the file is here

[HELP] How to compile android kernel

Hi guys,
I tried to compile an android kernel following the tutorials that are on this forum, but there is something that doesn't works...
I installed the libraries indicated, and downloaded both NDK and Kernel sources, and I extracted it in my home folder.
Then I changed directory in the directory of the kernel and I made the three export indicated in tutorials:
export ARCH=arm
export CROSS_COMPILE=arm-linux-androideabi- (Here I also tried with "export CROSS_COMPILE=arm-eabi-")
export PATH=$PATH:~/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
Now I choosed a .config file in the arch/arm/configs directory and I used the command:
make *file config*
make menuconfig
And then, when I use the command "make -j2", I have some problems, in fact:
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Can you tell me where I'm wrong please?
Thanks

[Q]Build breaks, but why ?

Hey,
I have today build AOSB from source. My device is not supported because of that I want to build my own build. I use a device tree thats work from my device (P880), but after a time I get a message an the build breaks.
target R.java/Manifest.java: WallpaperCropper (/home/animus7/AOSB/out/target/common/obj/APPS/WallpaperCropper_intermediates/src/R.stamp)
host SharedLib: libart (/home/animus7/AOSB/out/host/linux-x86/obj/lib/libart.so)
frameworks/base/packages/SystemUI/res/values/styles.xml:225: error: Error: No resource found that matches the given name (at 'androidaddingLeft' with value '@dimen/card_header_button_padding_left').
make: *** [/home/animus7/AOSB/out/target/common/obj/APPS/SystemUI_intermediates/src/R.stamp] Fehler 1 ( Here the translation: error 1)
make: *** Warte auf noch nicht beendete Prozesse... (Here the translation: Waiting for non-completed processes ...)
[email protected]:~/AOSB$
Click to expand...
Click to collapse
Also I have take a screenshot you can see here again:

[Q] How to avoid or fix compilation errors of Samsung Note 3 source

Hi I am using an online tutorial to compile samsung note 3 image from source. I am running into a number of compilation errors. Here is one:
Code:
CC drivers/cpufreq/cpufreq_interactive.o
drivers/cpufreq/cpufreq_interactive.c: In function 'show_target_loads':
drivers/cpufreq/cpufreq_interactive.c:813:6: warning: operation on 'ret' may be undefined [-Wsequence-point]
error, forbidden warning: cpufreq_interactive.c:813
make[2]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
[email protected]:~/androidkernel$ ls -al drivers/cpufreq/cpufreq_interactive.c
-r--r--r-- 1 sansari sansari 35250 Feb 9 2014 drivers/cpufreq/cpufreq_interactive.c
[email protected]:~/androidkernel$ chmod 755 drivers/cpufreq/cpufreq_interactive.c
I am using the link below as procedures:
http://www.edv-huber.com/index.php/problemloesungen/20-step-by-step-compile-kernel-module-for-samsung-galaxy-s3-linux
My question is: is this normal? Is there a more stable version of the source I could have downloaded?

Categories

Resources