[Memo Pad 10/Me102a] Custom kernel - Need help - Android Software/Hacking General [Developers Only]

Hi ! I try to compile stock Memo Pad 10 kernel from source from this tuto :
http://androtab.info/memopad/kernel/
But I have a problem (maybe stupid problem) :
When compile is finish, I don't have zImage file !
Code:
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
So only Image file. What can I do ?
Thanks for any help.

Related

bcm4329 wlan drivers source code for tegra kernel source code

bcm4329 wlan drivers code for tegra kernel source
modify by xiaolu
Unzip the file in "drivers/net/wireless" directory
modify tegra_harmony_android_deconfig:
Code:
CONFIG_WLAN=y
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set
CONFIG_BCM4329=m
CONFIG_BCM4329_SOFTAP=y
CONFIG_BCM4329_FW_PATH="/system/lib/hw/wlan/fw_bcm4329.bin"
CONFIG_BCM4329_NVRAM_PATH="/system/lib/hw/wlan/nvram.txt"
Run:
Code:
make ARCH=arm tegra_harmony_android_defconfig
Code:
CHK include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC [M] drivers/net/wireless/bcm4329/dhd_linux.o
CC [M] drivers/net/wireless/bcm4329/linux_osl.o
CC [M] drivers/net/wireless/bcm4329/bcmutils.o
CC [M] drivers/net/wireless/bcm4329/dhd_common.o
CC [M] drivers/net/wireless/bcm4329/dhd_custom_gpio.o
CC [M] drivers/net/wireless/bcm4329/siutils.o
CC [M] drivers/net/wireless/bcm4329/sbutils.o
CC [M] drivers/net/wireless/bcm4329/aiutils.o
CC [M] drivers/net/wireless/bcm4329/hndpmu.o
CC [M] drivers/net/wireless/bcm4329/dhd_linux_sched.o
CC [M] drivers/net/wireless/bcm4329/wl_iw.o
CC [M] drivers/net/wireless/bcm4329/bcmwifi.o
CC [M] drivers/net/wireless/bcm4329/dhd_cdc.o
CC [M] drivers/net/wireless/bcm4329/sha1.o
CC [M] drivers/net/wireless/bcm4329/md5.o
CC [M] drivers/net/wireless/bcm4329/dhd_sdio.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_linux.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc_linux.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.o
CC drivers/regulator/core.o
CC drivers/regulator/tegra-regulator.o
LD drivers/regulator/built-in.o
LD drivers/built-in.o
CC net/ipv4/tcp.o
CC net/ipv4/udp.o
LD net/ipv4/built-in.o
LD net/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 4 modules
CC drivers/net/wireless/bcm4329/bcm4329.mod.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.ko
Makefile for Harmony:
Code:
DHDCFLAGS = -DLINUX -DBCMDRIVER -DBCMDONGLEHOST -DDHDTHREAD -DBCMWPA2 -DBCMWAPI_WPI \
-DUNRELEASEDCHIP -Wall -Wstrict-prototypes -DDHD_GPL -DDHD_SCHED \
-DBDC -DTOE -DDHD_BCMEVENTS -DSHOW_EVENTS -DSOFTAP -DARP_OFFLOAD_SUPPORT \
-DBCMSDIO -DBCMLXSDMMC -DBCMPLATFORM_BUS -DEMBEDDED_PLATFORM -DOEM_ANDROID \
-DPKT_FILTER_SUPPORT -DMMC_SDIO_FORCE_PULLUP -DMMC_SDIO_BROKEN_CCCR_REV -DCUSTOMER_HW4 \
-DCUSTOM_RESET_GPIO_NUM=86 \
-Idrivers/net/wireless/bcm4329 -Idrivers/net/wireless/bcm4329/include
DHDOFILES = dhd_linux.o linux_osl.o bcmutils.o dhd_common.o dhd_custom_gpio.o siutils.o sbutils.o aiutils.o \
hndpmu.o dhd_linux_sched.o wl_iw.o bcmwifi.o dhd_cdc.o sha1.o md5.o dhd_sdio.o \
bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc_linux.o
obj-$(CONFIG_BCM4329) += bcm4329.o
bcm4329-objs += $(DHDOFILES)
EXTRA_CFLAGS = $(DHDCFLAGS)
EXTRA_LDFLAGS += --strip-debug
Attach Files
Chenglu said:
Attach Files
Click to expand...
Click to collapse
Thank a lot Xiao1u
will this load properly in to the running kernel without throwing timeouts (either from sdio or platform)?
if so, you rock!
you just saved me from pulling out all my hair and reverse engineering further bits, in getting this to work (i have tried numerous sources to date and few other things to try and get this going).
Very good to have these, what there anything added to them? Or is it stock, but source for them?
Can be used, but is not stable, hoping that someone would improve.
Chenglu said:
Can be used, but is not stable, hoping that someone would improve.
Click to expand...
Click to collapse
as long as it loads and the dongle attaches (without going in to sdio/platform timeouts), they can be worked with (hopefully).
ill report back when i get home tonight.
pershoot said:
as long as it loads and the dongle attaches (without going in to sdio/platform timeouts), they can be worked with (hopefully).
ill report back when i get home tonight.
Click to expand...
Click to collapse
hey pershoot. could you or another please share where u got the 2.6.32.9 source from nvidia. cant find it anywhere and ive got some good ideas/code
EnVolved said:
hey pershoot. could you or another please share where u got the 2.6.32.9 source from nvidia. cant find it anywhere and ive got some good ideas/code
Click to expand...
Click to collapse
kernel source?
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git
check out 10.8.2 and apply viewsonic/tapntap's patch.
Thanks for this. I've got Karmic booting on my G-Tab, and this was one of the items I was having trouble finding (along with X input drivers for our touchscreen).
The driver is somehow still a bit borked. It will add the interface, but as soon as I set an ESSID to connect to, it switches itself to Ad-Hoc mode and won't switch back to Managed. Even in Ad-Hoc, it doesn't seem to be able to throw packets around.
I've yet to check the Bluetooth side of the house.
These results are seen when compiling for a linux (not Android) build.
Has anyone had success with these on their system/setup?
this causes a hardlock upon insertion, but you have gotten ram allocated to the dongle, so that is good progress!
i will take what you have done and see if i can get it working.
i got this working from nvidia. i will upgrade to the latest version and post src.
thx Chenglu for your guidance.
<4>[ 7686.158558]
<4>[ 7686.158563] Dongle Host Driver, version 4.218.223.1
<4>[ 7712.559427] SO340010: gpio_val=0xdb820000, button_val = 0xdbaf0008
<4>[ 7712.650811] SO340010: gpio_val=0xdb8f0000, button_val = 0xc0990000
<4>[ 7723.649400] SO340010: gpio_val=0xdb8f0000, button_val = 0xc0990008
<4>[ 7723.769207] SO340010: gpio_val=0xdb8f0000, button_val = 0xc0990000
<4>[ 7769.914169] sdio_reset_comm():
<4>[ 7769.940586] DHD: dongle ram size is set to 294912(orig 294912)
<4>[ 7770.161532] Firmware version = wl0: May 17 2010 22:38:50 version 4.218.223
.1
<4>[ 7770.337920] eth0: Broadcom Dongle Host Driver mac=--:--:--:--:--:--
<4>[ 7770.344216] Enter wl_control_wl_start
<4>[ 7770.348223] Exited wl_control_wl_start
<4>[ 7770.363363]
good job~~~
Chenglu said:
bcm4329 wlan drivers code for tegra kernel source
modify by xiaolu
Unzip the file in "drivers/net/wireless" directory
modify tegra_harmony_android_deconfig:
Code:
CONFIG_WLAN=y
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set
CONFIG_BCM4329=m
CONFIG_BCM4329_SOFTAP=y
CONFIG_BCM4329_FW_PATH="/system/lib/hw/wlan/fw_bcm4329.bin"
CONFIG_BCM4329_NVRAM_PATH="/system/lib/hw/wlan/nvram.txt"
Run:
Code:
make ARCH=arm tegra_harmony_android_defconfig
Code:
CHK include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC [M] drivers/net/wireless/bcm4329/dhd_linux.o
CC [M] drivers/net/wireless/bcm4329/linux_osl.o
CC [M] drivers/net/wireless/bcm4329/bcmutils.o
CC [M] drivers/net/wireless/bcm4329/dhd_common.o
CC [M] drivers/net/wireless/bcm4329/dhd_custom_gpio.o
CC [M] drivers/net/wireless/bcm4329/siutils.o
CC [M] drivers/net/wireless/bcm4329/sbutils.o
CC [M] drivers/net/wireless/bcm4329/aiutils.o
CC [M] drivers/net/wireless/bcm4329/hndpmu.o
CC [M] drivers/net/wireless/bcm4329/dhd_linux_sched.o
CC [M] drivers/net/wireless/bcm4329/wl_iw.o
CC [M] drivers/net/wireless/bcm4329/bcmwifi.o
CC [M] drivers/net/wireless/bcm4329/dhd_cdc.o
CC [M] drivers/net/wireless/bcm4329/sha1.o
CC [M] drivers/net/wireless/bcm4329/md5.o
CC [M] drivers/net/wireless/bcm4329/dhd_sdio.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_linux.o
CC [M] drivers/net/wireless/bcm4329/bcmsdh_sdmmc_linux.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.o
CC drivers/regulator/core.o
CC drivers/regulator/tegra-regulator.o
LD drivers/regulator/built-in.o
LD drivers/built-in.o
CC net/ipv4/tcp.o
CC net/ipv4/udp.o
LD net/ipv4/built-in.o
LD net/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 4 modules
CC drivers/net/wireless/bcm4329/bcm4329.mod.o
LD [M] drivers/net/wireless/bcm4329/bcm4329.ko
Makefile for Harmony:
Code:
DHDCFLAGS = -DLINUX -DBCMDRIVER -DBCMDONGLEHOST -DDHDTHREAD -DBCMWPA2 -DBCMWAPI_WPI \
-DUNRELEASEDCHIP -Wall -Wstrict-prototypes -DDHD_GPL -DDHD_SCHED \
-DBDC -DTOE -DDHD_BCMEVENTS -DSHOW_EVENTS -DSOFTAP -DARP_OFFLOAD_SUPPORT \
-DBCMSDIO -DBCMLXSDMMC -DBCMPLATFORM_BUS -DEMBEDDED_PLATFORM -DOEM_ANDROID \
-DPKT_FILTER_SUPPORT -DMMC_SDIO_FORCE_PULLUP -DMMC_SDIO_BROKEN_CCCR_REV -DCUSTOMER_HW4 \
-DCUSTOM_RESET_GPIO_NUM=86 \
-Idrivers/net/wireless/bcm4329 -Idrivers/net/wireless/bcm4329/include
DHDOFILES = dhd_linux.o linux_osl.o bcmutils.o dhd_common.o dhd_custom_gpio.o siutils.o sbutils.o aiutils.o \
hndpmu.o dhd_linux_sched.o wl_iw.o bcmwifi.o dhd_cdc.o sha1.o md5.o dhd_sdio.o \
bcmsdh_sdmmc.o bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc_linux.o
obj-$(CONFIG_BCM4329) += bcm4329.o
bcm4329-objs += $(DHDOFILES)
EXTRA_CFLAGS = $(DHDCFLAGS)
EXTRA_LDFLAGS += --strip-debug
Click to expand...
Click to collapse
I am just a newb starting out with this on my G tablet....Rom'd and Mod'd with all the goodies BUT I can not connect to my works AES or Radius wifi. will this help me with that or do you know of a way to get this working. This wifi card is the same one thats in the MAN-PAD so if they could fix it, i know you guys can with your superior knowledge....You guys rock....thanks
Isn't this the code?
http://nv-tegra.nvidia.com/gitweb/?p=android/platform/hardware/broadcom/wlan.git;a=summary
http://nv-tegra.nvidia.com/gitweb/?p=android/platform/system/wlan/broadcom.git;a=summary
pershoot said:
kernel source?
http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git
check out 10.8.2 and apply viewsonic/tapntap's patch.
Click to expand...
Click to collapse
the second.
i have the latest running (4.218.248.18). just not stable, yet.
need to corner down the process within which they are performing the GPIO reset, for clean insertion and no conflicts, per se.
Does anyone know where to find the bluetooth drivers for this chip?
still working on this.
can't quite pin it down.
it loads quick at custom GPIO 86, but locks up the entire system.
using 84 allows it to load in memory (but fail reset), but is quite unstable (cant probe it for status/proper status (without causing hangs); connection is spotty due to timeouts, etc.).
i am speculating some conflict is ocurring in resource allocation/memory.
im using the latest from AOSP for testing, with the dhd_reset bits in there and CUSTOMER_HW4, so the bus can be enumerated.
i looked inside their module and they are indeed using 86 for reset. a piece of this puzzle is still missing.
chenglu, any luck on your side?
im trying another approach now. i can load the module without doing a reset now. using the nvodm board to figure things out.
still freezing tho. investigating..

[DEV] USB HOST KERNELs - NEWS - 09/01/2012

USB HOST FEATURE
-Working in progress...no ETA and no DOWNLOAD yet! See NEWS for updates...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
NEWS:
09/01/2012: Successfully compiled Unity v10 kernel (VA 1.48 kernel) with MSM_72k gadget and all gadget disabled. [zImage+15modules]
DHD Boots, All works (network, wifi, all!).
In terminal, usbcore.ko loaded successfully. But then ehci-hcd.ko give me an error: "init_module 'host/ehci-hcd.ko' failed (Device or resource busy)
11/01/2012: MSM_72k gadget give error to HOST...usb controller is busy so can't load host drivers. I've error compiling Kernel with other gadget controllers. So i'm going on AOSP kernel and i'll try to implement usb host here (for CM and MIUI). If someone can solve the error in devices_htc.c file (in the last page), please PM me..
13/01/2012: Applied patch in AOSP kernel, but have the same error in devices_htc.c file (look at page 3). i'm not able to mod the file and solve the error. I tested many device_htc files, but no good results.
you should contact him
http://forum.xda-developers.com/showthread.php?t=993152
zFr3eak said:
you should contact him
http://forum.xda-developers.com/showthread.php?t=993152
Click to expand...
Click to collapse
this kernel is old...i need the unity v10 and klquicksall compiled with this patch where are the sources? i want to make a switch app
EDIT: capy closed the runny thread. I need the source of RCMIX3d v11.1 v2 kernel. Anyone have it?
XxXPachaXxX said:
this kernel is old...i need the unity v10 and klquicksall compiled with this patch where are the sources? i want to make a switch app
EDIT: capy closed the runny thread. I need the source of RCMIX3d v11.1 v2 kernel. Anyone have it?
Click to expand...
Click to collapse
maybe this for the source?
I'm on ubuntu and installed all required software and this compiler: http://www.codesourcery.com/sgpp/[email protected]=lite
But have error with original configuration in unity v10 (without touching nothing!)
Error is like that:
Code:
arch/arm/mach-msm/idle-v7.S:47: Error: selected processor does not support ARM mode `fmrx r1,fpexc'
arch/arm/mach-msm/idle-v7.S:48: Error: selected processor does not support ARM mode `fmrx r2,fpscr'
arch/arm/mach-msm/idle-v7.S:120: Error: selected processor does not support ARM mode `fmxr fpexc,r2'
arch/arm/mach-msm/idle-v7.S:128: Error: selected processor does not support ARM mode `fmxr fpscr,r3'
arch/arm/mach-msm/idle-v7.S:129: Error: selected processor does not support ARM mode `fmxr fpexc,r2'
make[1]: *** [arch/arm/mach-msm/idle-v7.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Any HowTo?
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
LorD ClockaN said:
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
Click to expand...
Click to collapse
Or add this :
EXTRA_AFLAGS=-mfpu=neon
Click to expand...
Click to collapse
LorD ClockaN said:
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
Click to expand...
Click to collapse
THANK YOU! I will try this
daedric said:
Or add this :
Click to expand...
Click to collapse
HowTo?
make EXTRA_AFLAGS=-mfpu=neon
@lord does your kernel already have usb otg?? Sorry if its a stupid question?
Sent from my Desire HD running Blackice using xda premium
I'm of,sorry...
Could explain why mine v8......11.2.. kernel on runny Rom cause a tinny sound from speakers?
How to fix?
Thanjs
harshrocsu said:
@lord does your kernel already have usb otg?? Sorry if its a stupid question?
Sent from my Desire HD running Blackice using xda premium
Click to expand...
Click to collapse
It doesn't have host function if you mean on that
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
daedric said:
make EXTRA_AFLAGS=-mfpu=neon
Click to expand...
Click to collapse
This is a command to write in terminal?
LorD ClockaN said:
Use linaro gcc toolchain for arm, but version 4.5.x
Sent from my Desire HD with BlackIce ROM and ICS crouching in restore option
Click to expand...
Click to collapse
used linaro and this is the output:
Code:
[email protected]:~/unity_source/kernel$ make -j5 ARCH=arm CROSS_COMPILE=/home/xxxpachaxxx/android-toolchain-eabi/bin/arm-eabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/bin2c
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
make[1]: "include/generated/mach-types.h" è aggiornato.
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
HOSTLD scripts/mod/modpost
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC init/main.o
CC init/do_mounts.o
CC init/do_mounts_initrd.o
HOSTCC usr/gen_init_cpio
UPD include/generated/compile.h
CC arch/arm/kernel/compat.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/mm/extable.o
CC arch/arm/kernel/irq.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
cc1: warnings being treated as errors
init/main.c: In function 'do_one_initcall':
init/main.c:734:10: error: 'calltime.tv64' may be used uninitialized in this function
make[1]: *** [init/main.o] Errore 1
make[1]: *** Attesa per i processi non terminati....
CC arch/arm/mm/iomap.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/kernel/process.o
make: *** [init] Errore 2
make: *** Attesa per i processi non terminati....
CC arch/arm/kernel/ptrace.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/kernel/return_address.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/mmu.o
CC arch/arm/mm/vmregion.o
CC arch/arm/kernel/signal.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/mm/alignment.o
CC arch/arm/mm/highmem.o
CC arch/arm/kernel/sys_arm.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
CC arch/arm/kernel/stacktrace.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/mm/context.o
AS arch/arm/mm/tlb-v7.o
AS arch/arm/mm/proc-v7.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
LD arch/arm/mm/built-in.o
CC arch/arm/kernel/thumbee.o
CC arch/arm/kernel/pmu.o
CC arch/arm/kernel/io.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
LDS arch/arm/kernel/vmlinux.lds
LD arch/arm/kernel/built-in.o
[email protected]:~/unity_source/kernel$
Replaced init/main.c with the one in klquicksall source and it's ok...new output is this:
Code:
[email protected]:~/unity_source/kernel$ make ARCH=arm CROSS_COMPILE=/home/xxxpachaxxx/android-toolchain-eabi/bin/arm-eabi-
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CALL scripts/checksyscalls.sh
CC init/main.o
CHK include/generated/compile.h
CC init/version.o
LD init/mounts.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
LD arch/arm/common/built-in.o
CC arch/arm/mach-msm/io.o
CC arch/arm/mach-msm/dma.o
CC arch/arm/mach-msm/memory.o
CC arch/arm/mach-msm/timer.o
CC arch/arm/mach-msm/clock.o
CC arch/arm/mach-msm/irq.o
CC arch/arm/mach-msm/devices.o
CC arch/arm/mach-msm/pmic.o
CC arch/arm/mach-msm/vreg.o
CC arch/arm/mach-msm/pwrtest.o
CC arch/arm/mach-msm/proc_comm.o
CC arch/arm/mach-msm/acpuclock-7x30.o
CC arch/arm/mach-msm/internal_power_rail.o
CC arch/arm/mach-msm/acpuclock_debug.o
CC arch/arm/mach-msm/clock-7x30.o
AS arch/arm/mach-msm/arch-init-7x30.o
CC arch/arm/mach-msm/socinfo.o
CC arch/arm/mach-msm/spm.o
AS arch/arm/mach-msm/idle-v7.o
CC arch/arm/mach-msm/msm_fault_handlers.o
CC arch/arm/mach-msm/nand_partitions.o
CC arch/arm/mach-msm/drv_callback.o
CC arch/arm/mach-msm/radio_feedback.o
AS arch/arm/mach-msm/fiq_glue.o
CC arch/arm/mach-msm/rpc_hsusb.o
CC arch/arm/mach-msm/remote_spinlock.o
CC arch/arm/mach-msm/htc_port_list.o
CC arch/arm/mach-msm/rpc_pmapp.o
CC arch/arm/mach-msm/smd_rpcrouter_clients.o
CC arch/arm/mach-msm/smd.o
CC arch/arm/mach-msm/smd_debug.o
CC arch/arm/mach-msm/smem_log.o
CC arch/arm/mach-msm/last_radio_log.o
CC arch/arm/mach-msm/smd_rpcrouter_device.o
CC arch/arm/mach-msm/smd_rpcrouter-7x30.o
CC arch/arm/mach-msm/smd_rpcrouter_servers-7x30.o
CC arch/arm/mach-msm/smd_rpcrouter_xdr.o
CC arch/arm/mach-msm/rpc_server_dog_keepalive.o
CC arch/arm/mach-msm/rpc_server_time_remote.o
CC arch/arm/mach-msm/smd_tty.o
CC arch/arm/mach-msm/smd_qmi.o
CC arch/arm/mach-msm/dal.o
CC arch/arm/mach-msm/dal_axi.o
CC arch/arm/mach-msm/qdsp5v2_1x/afe.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_interct.o
CC arch/arm/mach-msm/qdsp5v2_1x/mi2s.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_dev_ctl.o
CC arch/arm/mach-msm/qdsp5v2_1x/voice.o
CC arch/arm/mach-msm/qdsp5v2_1x/snddev_data.o
CC arch/arm/mach-msm/qdsp5v2_1x/snddev_icodec.o
CC arch/arm/mach-msm/qdsp5v2_1x/lpa.o
CC arch/arm/mach-msm/qdsp5v2_1x/aux_pcm.o
CC arch/arm/mach-msm/qdsp5v2_1x/snddev_ecodec.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_out.o
CC arch/arm/mach-msm/qdsp5v2_1x/audpp.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_mp3.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_lpa.o
CC arch/arm/mach-msm/qdsp5v2_1x/mp3_funcs.o
CC arch/arm/mach-msm/qdsp5v2_1x/pcm_funcs.o
CC arch/arm/mach-msm/qdsp5v2_1x/audpreproc.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_pcm_in.o
CC arch/arm/mach-msm/qdsp5v2_1x/adsp.o
CC arch/arm/mach-msm/qdsp5v2_1x/adsp_driver.o
CC arch/arm/mach-msm/qdsp5v2_1x/adsp_info.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_acdb.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_mvs.o
CC arch/arm/mach-msm/qdsp5v2_1x/audio_amrnb_in.o
LD arch/arm/mach-msm/qdsp5v2_1x/built-in.o
CC arch/arm/mach-msm/pm.o
CC arch/arm/mach-msm/cpufreq.o
CC arch/arm/mach-msm/htc_acoustic_7x30.o
CC arch/arm/mach-msm/htc_acdb_7x30.o
CC arch/arm/mach-msm/panel-samsungwvga-tl2796a.o
CC arch/arm/mach-msm/panel-samsungwvga-s6e63m0.o
CC arch/arm/mach-msm/panel-sonywvga-s6d16a0x21-7x30.o
CC arch/arm/mach-msm/htc_wifi_nvs.o
CC arch/arm/mach-msm/htc_awb_cal.o
CC arch/arm/mach-msm/board-vision.o
CC arch/arm/mach-msm/board-vision-keypad.o
CC arch/arm/mach-msm/board-vision-microp.o
CC arch/arm/mach-msm/board-vision-audio.o
CC arch/arm/mach-msm/board-vision-mmc.o
CC arch/arm/mach-msm/board-vision-wifi.o
CC arch/arm/mach-msm/board-vision-rfkill.o
CC arch/arm/mach-msm/htc_bluetooth.o
CC arch/arm/mach-msm/board-glacier.o
CC arch/arm/mach-msm/board-glacier-keypad.o
CC arch/arm/mach-msm/board-glacier-microp.o
CC arch/arm/mach-msm/board-glacier-audio.o
CC arch/arm/mach-msm/board-glacier-mmc.o
CC arch/arm/mach-msm/board-glacier-wifi.o
CC arch/arm/mach-msm/board-glacier-rfkill.o
CC arch/arm/mach-msm/htc_fmtx_rfkill.o
CC arch/arm/mach-msm/board-glacier-panel.o
CC arch/arm/mach-msm/board-spade.o
CC arch/arm/mach-msm/board-spade-keypad.o
CC arch/arm/mach-msm/board-spade-microp.o
CC arch/arm/mach-msm/board-spade-audio.o
CC arch/arm/mach-msm/board-spade-mmc.o
CC arch/arm/mach-msm/board-spade-wifi.o
CC arch/arm/mach-msm/board-spade-rfkill.o
CC arch/arm/mach-msm/board-spade-panel.o
CC arch/arm/mach-msm/msm_vibrator.o
CC arch/arm/mach-msm/devices_htc.o
CC arch/arm/mach-msm/msm_flashlight.o
CC arch/arm/mach-msm/htc_battery.o
CC arch/arm/mach-msm/rmt_storage_server.o
CC arch/arm/mach-msm/pmic8058-mpp.o
CC arch/arm/mach-msm/npa.o
CC arch/arm/mach-msm/npa_resources.o
CC arch/arm/mach-msm/msm_pm_qos.o
CC arch/arm/mach-msm/msm_reqs.o
CC arch/arm/mach-msm/atmega_microp_common.o
CC arch/arm/mach-msm/htc_headset_mgr.o
CC arch/arm/mach-msm/htc_headset_gpio.o
CC arch/arm/mach-msm/htc_headset_microp.o
CC arch/arm/mach-msm/htc_headset_pmic.o
CC arch/arm/mach-msm/gpio.o
CC arch/arm/mach-msm/generic_gpio.o
CC arch/arm/mach-msm/ssbi.o
CC arch/arm/mach-msm/pmu.o
LD arch/arm/mach-msm/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 kernel/sched.o
CC kernel/fork.o
CC kernel/exec_domain.o
CC kernel/panic.o
CC kernel/printk.o
CC kernel/cpu.o
CC kernel/exit.o
CC kernel/itimer.o
TIMEC kernel/timeconst.h
CC kernel/time.o
CC kernel/softirq.o
CC kernel/resource.o
CC kernel/sysctl.o
CC kernel/sysctl_binary.o
CC kernel/capability.o
CC kernel/ptrace.o
CC kernel/timer.o
CC kernel/user.o
CC kernel/signal.o
CC kernel/sys.o
CC kernel/kmod.o
CC kernel/workqueue.o
CC kernel/pid.o
CC kernel/rcupdate.o
CC kernel/extable.o
CC kernel/params.o
CC kernel/posix-timers.o
CC kernel/kthread.o
CC kernel/wait.o
CC kernel/kfifo.o
CC kernel/sys_ni.o
CC kernel/posix-cpu-timers.o
CC kernel/mutex.o
CC kernel/hrtimer.o
CC kernel/rwsem.o
CC kernel/nsproxy.o
CC kernel/srcu.o
CC kernel/semaphore.o
CC kernel/notifier.o
CC kernel/ksysfs.o
CC kernel/pm_qos_params.o
CC kernel/sched_clock.o
CC kernel/cred.o
CC kernel/async.o
cc1: warnings being treated as errors
kernel/async.c: In function 'async_thread':
kernel/async.c:127:10: error: 'calltime.tv64' may be used uninitialized in this function
kernel/async.c: In function 'async_synchronize_cookie_domain':
kernel/async.c:283:10: error: 'starttime.tv64' may be used uninitialized in this function
make[1]: *** [kernel/async.o] Errore 1
make: *** [kernel] Errore 2
[email protected]:~/unity_source/kernel$
Why so many errors?
i've to replace a lot of .c files to continue the compilation....are mdeejay and klquicksall kernel bugged? can i use your kernel Lord? it works with android 2.3.5 + sense 3.5? (virtuous affinity rom)
Stuck at this error now:
Code:
cc1: warnings being treated as errors
drivers/input/touchscreen/elan_ktf2k.c: In function 'elan_ktf2k_diag_store':
drivers/input/touchscreen/elan_ktf2k.c:359:10: error: 'i' may be used uninitialized in this function
make[3]: *** [drivers/input/touchscreen/elan_ktf2k.o] Errore 1
make[2]: *** [drivers/input/touchscreen] Errore 2
make[1]: *** [drivers/input] Errore 2
make: *** [drivers] Errore 2
I need help...
I was never able to add to a newer kernel that support sense, because of some new htc kernel magic. This does not mean that it is impossible.
hawkeyexp ported the patch to 2.6.37 kernel for CM7 on the "normal" desire.
Maybe it is a good idea to start with a kernel for CM7 or ICS.
There could be interessting parts in the arc s kernel.
There are some interessting files in the SE arc kernel sources.
A link to the SE arc kernel can be found here:
http://forum.xda-developers.com/showthread.php?t=1312692
I am talking from files like:
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / host / ehci-msm.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / otg / msm72k_otg.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / gadget / msm72k_udc.c
Xperia-2011-Official-Ramdisks / ARC / init.usbmode.sh
The first file is the most interessting one, because there is no according file in the htc kernel sources.
The main part of the patch you are trying to use is about ehci-msm7201.h from sven killing.
This two files should provide the same functionality. Except sven killing's version does not allow switching between device/gadget and host moda. The version sony ericsson is using on the other hand was never tryed on any htc device, as far as I now.
When you open the ehci-msm.c file you could see it is from the Code Aurora Forum, this means it is directly from Qualcomm.
An other guy working on this stuff is Andrew de Quincey (mentioned on sven killings page).
http://adq.livejournal.com/101420.html
Maybe he had countinue his work.
About a year ago I was chating with both. They also mentioned the arc s, but at that time the arc was not released.
Edit:
Here is a .conf file for the arc with enabled usb otg and the acorrding source
config:
https://github.com/DooMLoRD/Xperia-...arch/arm/configs/doom_usbotg_mogami_defconfig
source:
https://github.com/DooMLoRD/Xperia-2011-Kernel-2.6.32.9
bergfex said:
There are some interessting files in the SE arc kernel sources.
A link to the SE arc kernel can be found here:
http://forum.xda-developers.com/showthread.php?t=1312692
I am talking from files like:
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / host / ehci-msm.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / otg / msm72k_otg.c
Xperia-2011-Official-Kernel-Sources / kernel / drivers / usb / gadget / msm72k_udc.c
Xperia-2011-Official-Ramdisks / ARC / init.usbmode.sh
The first file is the most interessting one, because there is no according file in the htc kernel sources.
The main part of the patch you are trying to use is about ehci-msm7201.h from sven killing.
This two files should provide the same functionality. Except sven killing's version does not allow switching between device/gadget and host moda. The version sony ericsson is using on the other hand was never tryed on any htc device, as far as I now.
When you open the ehci-msm.c file you could see it is from the Code Aurora Forum, this means it is directly from Qualcomm.
An other guy working on this stuff is Andrew de Quincey (mentioned on sven killings page).
http://adq.livejournal.com/101420.html
Maybe he had countinue his work.
About a year ago I was chating with both. They also mentioned the arc s, but at that time the arc was not released.
Edit:
Here is a .conf file for the arc with enabled usb otg and the acorrding source
config:
https://github.com/DooMLoRD/Xperia-2...gami_defconfig
source:
https://github.com/DooMLoRD/Xperia-2011-Kernel-2.6.32.9
Click to expand...
Click to collapse
IF we put these files in kernel source and compile with the use of otg_defconfig?
Anyone here with a usb host cable? I'd like someone to test usb host and while theyre at it they can test wifi teathering lol on ICS build thanks
If you do have a cable please pm me thanks

[Q][KERNEL] Errors while compiling with GCC 4.7

I use Linaro 2012.05 GCC 4.7 (arm-eabi) and when I compile stock Nexus S kernel I have these errors:
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gzip
AS arch/arm/boot/compressed/piggy.gzip.o
CC arch/arm/boot/compressed/misc.o
In file included from arch/arm/plat-samsung/include/plat/uncompress.h:30:0,
from arch/arm/mach-s5pv210/include/mach/uncompress.h:17,
from arch/arm/boot/compressed/misc.c:33:
arch/arm/plat-samsung/include/plat/regs-serial.h:284:27: warning: 'struct uart_port' declared inside parameter list [enabled by default]
arch/arm/plat-samsung/include/plat/regs-serial.h:284:27: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
CC arch/arm/boot/compressed/decompress.o
SHIPPED arch/arm/boot/compressed/lib1funcs.S
AS arch/arm/boot/compressed/lib1funcs.o
LD arch/arm/boot/compressed/vmlinux
arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/misc.o and output
arm-eabi-ld: error: DIV usage mismatch between arch/arm/boot/compressed/lib1funcs.o and output
make[2]: *** [arch/arm/boot/compressed/vmlinux] Errore 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Errore 2
make: *** [zImage] Errore 2
Click to expand...
Click to collapse
Can someone help me?
PS:
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
export PATH=$PATH:~/android-toolchain-eabi/bin
Click to expand...
Click to collapse
div usage mismatch fix
See a potential solution here.

[Q] Error while compile kernel

Hi, I have this error while compile kumquat kernel:
Code:
[email protected]:~/Scrivania/kernel$ make -j 2
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
warning: (CW1200) selects CFG80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && (RFKILL || !RFKILL))
warning: (CW1200) selects MAC80211 which has unmet direct dependencies (NET && !COMPAT_WIRELESS && WIRELESS && CFG80211)
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTCC scripts/mod/modpost.o
HOSTLD scripts/genksyms/genksyms
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/bin2c
HOSTCC scripts/recordmcount
HOSTLD scripts/mod/modpost
Generating include/generated/mach-types.h
CC kernel/bounds.s
GEN include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
GEN include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC init/main.o
HOSTCC usr/gen_init_cpio
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/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
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
CC arch/arm/vfp/vfpdouble.o
CC init/do_mounts_rd.o
CC init/do_mounts_initrd.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
CC arch/arm/kernel/elf.o
CC init/initramfs.o
AS arch/arm/kernel/entry-armv.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC init/calibrate.o
CC arch/arm/kernel/process.o
CC init/boottime.o
CC init/version.o
CC arch/arm/kernel/ptrace.o
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/return_address.o
CC arch/arm/mm/extable.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/signal.o
CC arch/arm/mm/iomap.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/mm/fault-armv.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/mm/flush.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
CC arch/arm/mm/idmap.o
CC arch/arm/mm/ioremap.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/mm/mmap.o
CC arch/arm/mm/pgd.o
CC arch/arm/kernel/module.o
CC arch/arm/mm/mmu.o
AS arch/arm/kernel/sleep.o
CC arch/arm/kernel/sched_clock.o
CC arch/arm/kernel/smp.o
CC arch/arm/mm/vmregion.o
CC arch/arm/kernel/smp_tlb.o
CC arch/arm/mm/proc-syms.o
CC arch/arm/kernel/smp_scu.o
CC arch/arm/mm/alignment.o
CC arch/arm/kernel/smp_twd.o
CC arch/arm/kernel/ftrace.o
CC arch/arm/mm/highmem.o
CC arch/arm/kernel/machine_kexec.o
AS arch/arm/kernel/relocate_kernel.o
CC arch/arm/kernel/atags.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
AS arch/arm/mm/cache-v7.o
CC arch/arm/mm/copypage-v6.o
CC arch/arm/kernel/unwind.o
CC arch/arm/mm/context.o
AS arch/arm/mm/tlb-v7.o
CC arch/arm/kernel/swp_emulate.o
AS arch/arm/mm/proc-v7.o
CC arch/arm/mm/cache-l2x0.o
LD arch/arm/mm/built-in.o
CC arch/arm/common/gic.o
CC arch/arm/kernel/hw_breakpoint.o
CC arch/arm/common/boottime.o
LD arch/arm/common/built-in.o
CC arch/arm/kernel/pmu.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/kernel/topology.o
CC arch/arm/mach-ux500/clock.o
CC arch/arm/mach-ux500/cpu.o
CC arch/arm/kernel/io.o
CC arch/arm/mach-ux500/devices.o
AS arch/arm/kernel/head.o
CC arch/arm/kernel/init_task.o
CC arch/arm/mach-ux500/dcache.o
CC arch/arm/mach-ux500/devices-common.o
LDS arch/arm/kernel/vmlinux.lds
LD arch/arm/kernel/built-in.o
CC arch/arm/plat-nomadik/timer.o
CC arch/arm/mach-ux500/id.o
LD arch/arm/plat-nomadik/built-in.o
CC kernel/sched.o
CC arch/arm/mach-ux500/pins.o
CC arch/arm/mach-ux500/usb.o
CC arch/arm/mach-ux500/reboot_reasons.o
CC arch/arm/mach-ux500/timer.o
CC arch/arm/mach-ux500/uart-db8500.o
CC arch/arm/mach-ux500/clock-debug.o
CC arch/arm/mach-ux500/irq-trigger.o
In file included from arch/arm/mach-ux500/irq-trigger.c:16:0:
/home/riccardo/Scrivania/kernel/arch/arm/include/asm/hardware/gic.h:42:37: warning: 'struct cpumask' declared inside parameter list [enabled by default]
void gic_raise_softirq(const struct cpumask *mask, unsigned int irq);
^
/home/riccardo/Scrivania/kernel/arch/arm/include/asm/hardware/gic.h:42:37: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
CC arch/arm/mach-ux500/pm/pm.o
CC arch/arm/mach-ux500/pm/runtime.o
CC arch/arm/mach-ux500/pm/prcmu-qos-power.o
CC arch/arm/mach-ux500/pm/context.o
AS arch/arm/mach-ux500/pm/context_arm.o
CC arch/arm/mach-ux500/pm/context-db8500.o
CC arch/arm/mach-ux500/pm/context-db5500.o
CC arch/arm/mach-ux500/pm/context-db9540.o
CC arch/arm/mach-ux500/pm/timer.o
CC arch/arm/mach-ux500/pm/suspend.o
In file included from arch/arm/mach-ux500/include/mach/hardware.h:75:0,
from arch/arm/mach-ux500/include/mach/irqs.h:13,
from /home/riccardo/Scrivania/kernel/arch/arm/include/asm/irq.h:4,
from /home/riccardo/Scrivania/kernel/arch/arm/include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from include/linux/mfd/dbx500-prcmu.h:11,
from arch/arm/mach-ux500/pm/suspend.c:13:
arch/arm/mach-ux500/pm/suspend.c: In function 'suspend':
arch/arm/mach-ux500/include/mach/id.h:68:13: error: inlining failed in call to always_inline 'cpu_is_u9500': function body not available
inline bool cpu_is_u9500(void);
^
arch/arm/mach-ux500/pm/suspend.c:78:18: error: called from here
if (cpu_is_u9500())
^
In file included from arch/arm/mach-ux500/include/mach/hardware.h:75:0,
from arch/arm/mach-ux500/include/mach/irqs.h:13,
from /home/riccardo/Scrivania/kernel/arch/arm/include/asm/irq.h:4,
from /home/riccardo/Scrivania/kernel/arch/arm/include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:12,
from include/linux/mfd/dbx500-prcmu.h:11,
from arch/arm/mach-ux500/pm/suspend.c:13:
arch/arm/mach-ux500/include/mach/id.h:68:13: error: inlining failed in call to always_inline 'cpu_is_u9500': function body not available
inline bool cpu_is_u9500(void);
^
arch/arm/mach-ux500/pm/suspend.c:184:18: error: called from here
if (cpu_is_u9500())
^
make[2]: *** [arch/arm/mach-ux500/pm/suspend.o] Errore 1
make[1]: *** [arch/arm/mach-ux500/pm] Errore 2
make: *** [arch/arm/mach-ux500] Errore 2
make: *** Attesa per i processi non terminati....
CC kernel/fork.o
CC kernel/exec_domain.o
CC kernel/panic.o
CC kernel/printk.o
CC kernel/cpu.o
CC kernel/exit.o
CC kernel/itimer.o
TIMEC kernel/timeconst.h
CC kernel/softirq.o
CC kernel/resource.o
CC kernel/sysctl.o
CC kernel/sysctl_binary.o
CC kernel/capability.o
CC kernel/ptrace.o
CC kernel/timer.o
CC kernel/user.o
CC kernel/signal.o
CC kernel/sys.o
CC kernel/kmod.o
CC kernel/workqueue.o
CC kernel/pid.o
CC kernel/rcupdate.o
CC kernel/extable.o
CC kernel/params.o
CC kernel/posix-timers.o
CC kernel/kthread.o
CC kernel/wait.o
CC kernel/kfifo.o
CC kernel/sys_ni.o
CC kernel/posix-cpu-timers.o
CC kernel/mutex.o
CC kernel/hrtimer.o
CC kernel/rwsem.o
CC kernel/nsproxy.o
CC kernel/srcu.o
CC kernel/semaphore.o
CC kernel/notifier.o
CC kernel/ksysfs.o
CC kernel/pm_qos_params.o
CC kernel/sched_clock.o
CC kernel/cred.o
CC kernel/async.o
CC kernel/range.o
CC kernel/jump_label.o
CC kernel/groups.o
CC kernel/freezer.o
CC kernel/profile.o
CC kernel/sysctl_check.o
CC kernel/stacktrace.o
CC kernel/events/core.o
CC kernel/irq/irqdesc.o
CC kernel/irq/handle.o
CC kernel/irq/manage.o
CC kernel/irq/spurious.o
CC kernel/irq/resend.o
CC kernel/irq/chip.o
CC kernel/irq/dummychip.o
CC kernel/irq/devres.o
CC kernel/irq/irqdomain.o
CC kernel/irq/autoprobe.o
CC kernel/irq/proc.o
CC kernel/events/hw_breakpoint.o
CC kernel/irq/pm.o
LD kernel/irq/built-in.o
CC kernel/power/main.o
LD kernel/events/built-in.o
CC kernel/time/timekeeping.o
CC kernel/power/console.o
CC kernel/power/process.o
CC kernel/time/ntp.o
CC kernel/power/suspend.o
CC kernel/time/clocksource.o
CC kernel/power/wakelock.o
CC kernel/time/jiffies.o
CC kernel/time/timer_list.o
CC kernel/power/userwakelock.o
CC kernel/time/timecompare.o
CC kernel/power/earlysuspend.o
CC kernel/time/timeconv.o
CC kernel/time/posix-clock.o
CC kernel/power/fbearlysuspend.o
CC kernel/power/poweroff.o
CC kernel/time/clockevents.o
LD kernel/power/built-in.o
CC kernel/time/tick-common.o
CC kernel/time/tick-broadcast.o
CC kernel/time/tick-oneshot.o
CC kernel/time/tick-sched.o
CC kernel/time/timer_stats.o
CC kernel/trace/trace_selftest_dynamic.o
LD kernel/time/built-in.o
CC kernel/trace/trace_clock.o
CC kernel/trace/ftrace.o
CC kernel/trace/ring_buffer.o
CC kernel/trace/trace.o
CC kernel/trace/trace_output.o
CC kernel/trace/trace_stat.o
CC kernel/trace/trace_printk.o
CC kernel/trace/trace_sched_switch.o
CC kernel/trace/trace_functions.o
CC kernel/trace/trace_nop.o
CC kernel/futex.o
CC kernel/trace/trace_functions_graph.o
CC kernel/trace/blktrace.o
CC kernel/trace/trace_events.o
CC kernel/trace/trace_export.o
CC kernel/trace/trace_event_perf.o
CC kernel/rtmutex.o
CC kernel/trace/trace_events_filter.o
CC kernel/smp.o
CC kernel/trace/power-traces.o
CC kernel/spinlock.o
LD kernel/trace/libftrace.o
LD kernel/trace/built-in.o
CC kernel/uid16.o
CC kernel/module.o
CC kernel/kallsyms.o
CC kernel/acct.o
CC kernel/kexec.o
CC kernel/cgroup.o
CC kernel/cgroup_freezer.o
GZIP kernel/config_data.gz
CC kernel/res_counter.o
CC kernel/stop_machine.o
CC kernel/audit.o
CC kernel/auditfilter.o
CC kernel/hung_task.o
CC kernel/watchdog.o
CC kernel/rcutree.o
CC kernel/relay.o
CC kernel/utsname_sysctl.o
CC kernel/taskstats.o
CC kernel/tsacct.o
CC kernel/tracepoint.o
CC kernel/elfcore.o
CC kernel/sched_cpupri.o
CC kernel/irq_work.o
CC kernel/time.o
IKCFG kernel/config_data.h
CC kernel/configs.o
LD kernel/built-in.o
[email protected]:~/Scrivania/kernel$
Click to expand...
Click to collapse
Can anyone help me?

[CLOSED][NEED HELP] Kernel build failed Error

Hi,
I'm building kernel 5.4 using Brunch framework r113
i do
1.
Bash:
sudo apt install gcc-12 g++-12 git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison sbsigntool
2.
Code:
git clone https://github.com/sebanc/brunch.git -b < ChromeOS version e.g. r103 > && cd brunch
3. after cloning is done I run
Code:
./prepare_kernels.sh
4. everything was fine then i move to kernel 5.4 which is at dir: brunch/kernels/5.4
5. I applied the following Kernel Su patch
6. and then run
Code:
build_kernels.sh
But it is showing error
CC [M] drivers/gpu/drm/nouveau/dispnv50/wndw.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/wndwc37e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/wndwc57e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base507c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base827c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base907c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base917c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/curs.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/curs507a.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/curs907a.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/cursc37a.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/oimm.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/oimm507b.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly507e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly827e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly907e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly917e.o
CC [M] drivers/gpu/drm/nouveau/nouveau_abi16.o
CC [M] drivers/gpu/drm/nouveau/nouveau_chan.o
CC [M] drivers/gpu/drm/nouveau/nouveau_dma.o
CC [M] drivers/gpu/drm/nouveau/nouveau_fence.o
CC [M] drivers/gpu/drm/nouveau/nv04_fence.o
CC [M] drivers/gpu/drm/nouveau/nv10_fence.o
CC [M] drivers/gpu/drm/nouveau/nv17_fence.o
CC [M] drivers/gpu/drm/nouveau/nv50_fence.o
CC [M] drivers/gpu/drm/nouveau/nv84_fence.o
CC [M] drivers/gpu/drm/nouveau/nvc0_fence.o
LD [M] drivers/gpu/drm/nouveau/nouveau.o
AR drivers/gpu/drm/built-in.a
AR drivers/gpu/built-in.a
make[1]: *** [/home/alex/Downloads/brunch/kernels/5.4/Makefile:1750: drivers] Error 2
make[1]: Leaving directory '/home/alex/Downloads/brunch/kernels/5.4/out'
make: *** [Makefile:186: sub-make] Error 2
make: Leaving directory '/home/alex/Downloads/brunch/kernels/5.4'
Kernel build failed
Modanfaiz said:
Hi,
I'm building kernel 5.4 using Brunch framework r113
i do
1.
Bash:
sudo apt install gcc-12 g++-12 git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc flex libelf-dev bison sbsigntool
2.
Code:
git clone https://github.com/sebanc/brunch.git -b < ChromeOS version e.g. r103 > && cd brunch
3. after cloning is done I run
Code:
./prepare_kernels.sh
4. everything was fine then i move to kernel 5.4 which is at dir: brunch/kernels/5.4
5. I applied the following Kernel Su patch
6. and then run
Code:
build_kernels.sh
But it is showing error
CC [M] drivers/gpu/drm/nouveau/dispnv50/wndw.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/wndwc37e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/wndwc57e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base507c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base827c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base907c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/base917c.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/curs.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/curs507a.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/curs907a.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/cursc37a.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/oimm.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/oimm507b.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly507e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly827e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly907e.o
CC [M] drivers/gpu/drm/nouveau/dispnv50/ovly917e.o
CC [M] drivers/gpu/drm/nouveau/nouveau_abi16.o
CC [M] drivers/gpu/drm/nouveau/nouveau_chan.o
CC [M] drivers/gpu/drm/nouveau/nouveau_dma.o
CC [M] drivers/gpu/drm/nouveau/nouveau_fence.o
CC [M] drivers/gpu/drm/nouveau/nv04_fence.o
CC [M] drivers/gpu/drm/nouveau/nv10_fence.o
CC [M] drivers/gpu/drm/nouveau/nv17_fence.o
CC [M] drivers/gpu/drm/nouveau/nv50_fence.o
CC [M] drivers/gpu/drm/nouveau/nv84_fence.o
CC [M] drivers/gpu/drm/nouveau/nvc0_fence.o
LD [M] drivers/gpu/drm/nouveau/nouveau.o
AR drivers/gpu/drm/built-in.a
AR drivers/gpu/built-in.a
make[1]: *** [/home/alex/Downloads/brunch/kernels/5.4/Makefile:1750: drivers] Error 2
make[1]: Leaving directory '/home/alex/Downloads/brunch/kernels/5.4/out'
make: *** [Makefile:186: sub-make] Error 2
make: Leaving directory '/home/alex/Downloads/brunch/kernels/5.4'
Kernel build failed
Click to expand...
Click to collapse
Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com

Categories

Resources