bcm4329 wlan drivers source code for tegra kernel source code - G Tablet General

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..

Related

[howto] Compile Compat-wireless for heroc

This is the beginnings of work to let us use the wl12xx driver from more recent kernels with our hero kernels. Currently, I have loaded the modules, and believe they function, but have no way to test it. If you follow these steps, and enable wifi on your phone, it will reboot.
This may implode your phone into a wormhole and summon forth demons from Hell or Detroit.
** Update a change has been made in compat-wireless now, all references to the sdio module are now wl1251_sdio **
Preparation:
First, pick a location where you're going to do your work. I use /usr/src in my example. My next assumption is you have a working kernel tree and android repo sync. I used Decad3nce's htc-kernel-heroc tree for this. To get a working tree and repo you can do:
Code:
$ mkdir android
$ cd android
$ repo init -u git://android.git.kernel.org/platform/manifest.git
$ repo sync
$ git clone git://github.com/Decad3nce/htc-kernel-heroc.git htc-kernel-heroc --depth=1
The --depth=1 saves you from having to checkout the whole tree(cuts the clone time down significantly.
Next, you need to patch in the msm_wifi fix:
Code:
$ cd htc-kernel-heroc
$ wget http://bobcopeland.com/srcs/android/msm_wifi.patch
$ patch -p1 < msm_wifi.patch
patching file arch/arm/mach-msm/Kconfig
Hunk #1 succeeded at 236 with fuzz 2 (offset 158 lines).
patching file arch/arm/mach-msm/Makefile
Hunk #1 FAILED at 36.
1 out of 1 hunk FAILED -- saving rejects to file arch/arm/mach-msm/Makefile.rej
patching file arch/arm/mach-msm/msm_wifi.c
Notice, part of that patch failed. Now we go in and edit the Makefile to add this:
Code:
$ vi arch/arm/mach-msm/Makefile
# I Inserted this at line 78, but I'm pretty sure it's location is unimportant
obj-$(CONFIG_TROUT_WIFI) += msm_wifi.o
Now, you need to slightly reconfigure the kernel, to enable mac80211:
Code:
$ cd htc-kernel-heroc/
$ make UncappedStable_defconfig
#
# configuration written to .config
#
$ make CROSS_COMPILE=/usr/src/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- ARCH=arm menuconfig
You should now be in the 'menuconfig' of the kernel. Go To:
Code:
[*] Networking support --->
[*] Wireless --->
and select:
Code:
<M> Common routines for IEEE802.11 drivers
<M> Generic IEEE 802.11 Networking Stack (mac80211)
Next, we need to enable the crc7 module goto:
Code:
Library routines --->
and select:
Code:
<M> CRC7 functions
Finally, enable msm_wifi through
Code:
System Type --->
<M> Trout Wifi Gpio driver (rfkill)
Exit out of menu config (keep selecting Exit). And make sure you answer 'yes' to save your kernel configuration.
You are now ready to compile your kernel:
Code:
make CROSS_COMPILE=/usr/src/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- ARCH=arm
To speed up the compile if you have multiple CPUs, add -j<number of cpus> to the end of that (prepended with a space).
Once that is done, you're ready to compile compat-wireless. First you need to grab a tarball. I used the October 20, 2010 tarball in this example.
Code:
$ cd ..
$ wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2010-10-20.tar.bz2
$ tar xjvf compat-wireless-2010-10-20.tar.bz2
$ cd compat-wireless-2010-10-20/
Next, select only the wl12xx drivers
Code:
$ scripts/driver-select wl12xx
Processing new driver-select request...
Backup exists: Makefile.bk
Backup exists: drivers/net/wireless/Makefile.bk
Backup exists: Makefile.bk
Backup exists: net/wireless/Makefile.bk
Backup exists: drivers/net/Makefile.bk
Backup exists: drivers/ssb/Makefile.bk
Backup exists: drivers/misc/eeprom/Makefile.bk
and compile
Code:
$ make CROSS_COMPILE=/usr/src/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- ARCH=arm KLIB=/usr/src/android/htc-kernel-heroc/ KLIB_BUILD=/usr/src/android/htc-kernel-heroc/
Now, you need to push the appropriate files to your phone. Here's the list:
Code:
Kernel:
arch/arm/mach-msm/msm_wifi.ko
lib/crc7.ko
Compat:
compat/compat.ko
compat/compat_firmware_class.ko
drivers/net/wireless/wl1251/wl1251-sdio.ko
drivers/net/wireless/wl1251/wl1251.ko
net/mac80211/mac80211.ko
net/rfkill/rfkill_backport.ko
net/wireless/cfg80211.ko
These should all end up in /system/lib/modules/2.6.29-cyanogenmod/
Next we need to update the modules autoloader to load all these. Change /system/etc/init.d/04modules to have this:
Code:
MODULES="ipv6 crc7 compat compat_firmware_class rfkill_backport cfg80211 mac80211 wl1251 wl1251-sdio"
should get the driver automatically loading. Next, we need to replace wpa_supplicant with a statically compiled libnl version:
TODO
and replace the wifi gui parts with versions built to handle our non-tiwlan driver wpa_supplicant.
TODO
Way awesome!
Sweeeetttt! I gotta play with this
So what exactly does this do? I tried Google and it's some sort of kernel edit that enhances WiFi ability? Enlighten me
s0be said:
I'm not sure what the next steps are to build a boot.img to try this out.... Anyone?
Click to expand...
Click to collapse
Just use the split_bootimg.pl perl script to split the original boot.img into ramdisk and kernel.
You'd then just replace the zimage in your directory with the one you just compiled from source.
Then after you've made all the changes, you'd use mkbootimg to rebuild the boot.img. Here's a prebuilt one
Code:
./mkbootimg --kernel boot.img-kernel --ramdisk ramdisk.gz --cmdline "no_console_suspend=1 console=null" -o newboot.img --base 0x19200000
Don't forget the base address as without the --base argument your boot.img won't uh... boot.
Here's a quick documentation on compiling compat-wireless against the .29 kernel for the G1: http://bobcopeland.com/android_wifi.html
Which brings up a few questions.
When I build with the OP directions, I get the cf80211.ko and mac80211.ko modules but it doesn't build any of the wl12xx drivers.
Code:
[email protected]:~/compat-wireless-2010-10-20$ make CROSS_COMPILE=~/android-cm/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- ARCH=arm KLIB=~/Kernels/htc-kernel-heroc/ KLIB_BUILD=~/Kernels/htc-kernel-heroc/
make: arm-eabi-gcc: Command not found
make: Entering directory `/home/adnan/Kernels/htc-kernel-heroc'
./scripts/gen-compat-autoconf.sh config.mk > include/linux/compat_autoconf.h
make -C /home/adnan/Kernels/htc-kernel-heroc/ M=/home/adnan/compat-wireless-2010-10-20 modules
make[1]: Entering directory `/home/adnan/Kernels/htc-kernel-heroc'
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/main.o
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/compat-2.6.30.o
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/compat-2.6.32.o
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/compat-2.6.33.o
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/compat-2.6.35.o
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/compat-2.6.36.o
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/compat-2.6.37.o
LD [M] /home/adnan/compat-wireless-2010-10-20/compat/compat.o
CC [M] /home/adnan/compat-wireless-2010-10-20/compat/compat_firmware_class.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/main.o
/home/adnan/compat-wireless-2010-10-20/net/mac80211/main.c: In function '__check_ieee80211_disable_40mhz_24ghz':
/home/adnan/compat-wireless-2010-10-20/net/mac80211/main.c:38: warning: return from incompatible pointer type
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/status.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/sta_info.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/wep.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/wpa.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/scan.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/offchannel.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/ht.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/agg-tx.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/agg-rx.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/ibss.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/mlme.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/work.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/iface.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/rate.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/michael.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/tkip.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/aes_ccm.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/aes_cmac.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/cfg.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/rx.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/spectmgmt.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/tx.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/key.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/util.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/wme.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/event.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/chan.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/led.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/mesh.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/mesh_pathtbl.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/mesh_plink.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/mesh_hwmp.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/pm.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/rc80211_pid_algo.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/rc80211_minstrel.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/rc80211_minstrel_ht.o
LD [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/mac80211.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/rfkill/core.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/rfkill/input.o
LD [M] /home/adnan/compat-wireless-2010-10-20/net/rfkill/rfkill_backport.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/core.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/sysfs.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/radiotap.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/util.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/reg.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/scan.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/nl80211.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/mlme.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/ibss.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/sme.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/chan.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/ethtool.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/wext-compat.o
CC [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/wext-sme.o
LD [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/cfg80211.o
Building modules, stage 2.
MODPOST 5 modules
CC /home/adnan/compat-wireless-2010-10-20/compat/compat.mod.o
LD [M] /home/adnan/compat-wireless-2010-10-20/compat/compat.ko
CC /home/adnan/compat-wireless-2010-10-20/compat/compat_firmware_class.mod.o
LD [M] /home/adnan/compat-wireless-2010-10-20/compat/compat_firmware_class.ko
CC /home/adnan/compat-wireless-2010-10-20/net/mac80211/mac80211.mod.o
LD [M] /home/adnan/compat-wireless-2010-10-20/net/mac80211/mac80211.ko
CC /home/adnan/compat-wireless-2010-10-20/net/rfkill/rfkill_backport.mod.o
LD [M] /home/adnan/compat-wireless-2010-10-20/net/rfkill/rfkill_backport.ko
CC /home/adnan/compat-wireless-2010-10-20/net/wireless/cfg80211.mod.o
LD [M] /home/adnan/compat-wireless-2010-10-20/net/wireless/cfg80211.ko
make[1]: Leaving directory `/home/adnan/Kernels/htc-kernel-heroc'
[email protected]:~/compat-wireless-2010-10-20$
What about this patch from msm_wifi: http://bobcopeland.com/srcs/android/msm_wifi.patch
According to Bob Copeland, he had to: "Apply this patch to create a new module called msm_wifi. This module sets GPIOs appropriately to power up the wifi module and implement virtual card-select; it needs to be loaded for wl1251_sdio to successfully probe the device."
Just a few questions..
I've also added a (non-flashable)zip with all that I've built so far: http://dl.dropbox.com/u/9992367/Compat-Wireless-htc-kernel-heroc-test1.zip
I don't know a whole lot about this stuff, but does this mean possibly that something like airecrack/airodump etc. will work on our phones now? And does this in anyway make AP mode tether possible?
danaff37 said:
I don't know a whole lot about this stuff, but does this mean possibly that something like airecrack/airodump etc. will work on our phones now? And does this in anyway make AP mode tether possible?
Click to expand...
Click to collapse
Aircrack. Probably not. It might be possible to patch this driver, but whats the point?
AP mode tether on the other hand....
Will this be something you flash from recovery?
Sent from my HERO200 using XDA App
raymond4 said:
Will this be something you flash from recovery?
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Yes, it will be. It'll be simple with the AnyKernel zip. Well, once we figure out some bugs
Decad3nce said:
Yes, it will be. It'll be simple with the AnyKernel zip. Well, once we figure out some bugs
Click to expand...
Click to collapse
Very cool, hope this turns out well
I was able to get the msm_wifi.o compiled into the kernel with a slight change in the link to the patch that Deca posted , but still i wasn't given any sort of wl12xx driver can work with, only the cf80211.ko and mac80211.ko like deca got. So we are closer!
Hot damn! This sounds awesome! So am I correct in assuming that this is an open-source driver for WiFi instead of the closed-source HTC one? This should make getting WiFi to work in new ROM's A LOT easier, right?
Once we get this working, I'll add ap mode to wl1251, which will allow AP tethering.
I'm looking into why the wl1251 module isn't being built. I should have a solution tonight.
s0be said:
Once we get this working, I'll add ap mode to wl1251, which will allow AP tethering.
I'm looking into why the wl1251 module isn't being built. I should have a solution tonight.
Click to expand...
Click to collapse
solved, original post updated. needed crc7
Decad3nce said:
What about this patch from msm_wifi: http://bobcopeland.com/srcs/android/msm_wifi.patch
According to Bob Copeland, he had to: "Apply this patch to create a new module called msm_wifi. This module sets GPIOs appropriately to power up the wifi module and implement virtual card-select; it needs to be loaded for wl1251_sdio to successfully probe the device."
Just a few questions..
I've also added a (non-flashable)zip with all that I've built so far: http://dl.dropbox.com/u/9992367/Compat-Wireless-htc-kernel-heroc-test1.zip
Click to expand...
Click to collapse
I'll look at that patch, see if it's still needed. Probably is.
mrinehart93 said:
Hot damn! This sounds awesome! So am I correct in assuming that this is an open-source driver for WiFi instead of the closed-source HTC one? This should make getting WiFi to work in new ROM's A LOT easier, right?
Click to expand...
Click to collapse
This gets us onto the driver that TI actively works on, which has come a LONG way since it was forked off of TIWLAN. I have experience implementing other operating modes in drivers.
Code:
# lsmod
mac80211 203572 0 - Live 0xbf124000
cfg80211 138048 1 mac80211, Live 0xbf0fd000
rfkill_backport 19864 1 cfg80211, Live 0xbf0f3000
compat 5480 2 mac80211,cfg80211, Live 0xbf08e000
crc7 1356 0 - Live 0xbf08b000
now I just need to try to load wl1251
Code:
# lsmod
sdio 4984 0 - Live 0xbf193000
wl1251 74628 1 sdio, Live 0xbf17e000
compat_firmware_class 8072 1 wl1251, Live 0xbf177000
mac80211 203572 2 sdio,wl1251, Live 0xbf124000
cfg80211 138048 2 wl1251,mac80211, Live 0xbf0fd000
rfkill_backport 19864 1 cfg80211, Live 0xbf0f3000
compat 5480 2 mac80211,cfg80211, Live 0xbf08e000
crc7 1356 0 - Live 0xbf08b000
Yep, looks like we need that patch.
patched, loaded msm_wifi.ko
Code:
<7>[ 3069.212371] wifi probe start
<6>[ 3069.212615] heroc_wifi_power: 1
<6>[ 3069.412841] heroc_wifi_reset: 0
<6>[ 3069.413055] heroc_wifi_set_carddetect: 1
<7>[ 3069.413391] mmc0: card_present 1
<6>[ 3069.413604] mmc0: Slot status change detected (0 -> 1)
<7>[ 3069.413818] wifi probe done
<3>[ 3071.937225] mmc0: Command timeout (cmd= 8 mci_st=00000004)
<4>[ 3071.944244] mmc0: card claims to support voltages below the defined range. These will be ignored.
<4>[ 3071.944610] mmc0: SDIO card claims to support the incompletely defined 'low voltage range'. This will be ignored.
<6>[ 3071.950286] mmc0: new SDIO card at address 0001
<7>[ 3071.954559] wl1251: using SDIO interrupt
<7>[ 3071.960906] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
<6>[ 3071.967834] wl1251: loaded
<6>[ 3071.968841] wl1251: initialized
It's working

[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

[Memo Pad 10/Me102a] Custom kernel - Need help

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.

[partly solved][HELP] I have a problem compiling kernel device source

Hey, everyone! I am compiling a kernel source for my device: Xiaomi Redmi 10 (Selene) and apparently, it doesn't compile successfully.
I'm using WSL 2 Ubuntu on Windows 11 as a build environment. I used the following commands to install packages that are needed:
Code:
sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig
sudo apt install libssl-dev bc gcc-aarch64-linux-gnu
and all the packages have been installed successfully.
So after that, I cloned the repository to my chosen folder:
git clone -b selene-r-oss --single-branch https://github.com/MiCode/Xiaomi_Kernel_OpenSource
it's successful.
I used:
export ARCH=arm64 && export SUBARCH=arm64 && export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
to prepare the environment for the upcoming compilation.
then, I moved the selene_defconfig from ~/arch/arm64/configs/ to the beginning of the folder (/mnt/d/RonronFiles/playground/Xiaomi_Kernel_OpenSource) and finally, executed this command to create a .config file tailored for my device:
make selene_defconfig
okay, successful.
then after the .config has been created, I executed:
make -j$(nproc --all)
it all went fine until it said:
Code:
./kernel/gen_kheaders.sh: line 61: /tools/build/cpio: No such file or directory
make[1]: *** [kernel/Makefile:142: kernel/kheaders_data.tar.xz] Error 127
make: *** [Makefile:1198: kernel] Error 2
I am confident that cpio is installed and all the dependencies. I researched about this but I couldn't find answers.
For more information, here's the full message while compiling:
Code:
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/mediatek/usb20/Kconfig:41:warning: prompt redefined
warning: (LM3697_SUPPORT && DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && DRM_PARADE_PS8622 && FB_BACKLIGHT && FB_ARMCLCD && FB_MX3 && USB_APPLEDISPLAY && FB_OLPC_DCON && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
warning: (LM3697_SUPPORT && DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && DRM_PARADE_PS8622 && FB_BACKLIGHT && FB_ARMCLCD && FB_MX3 && USB_APPLEDISPLAY && FB_OLPC_DCON && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/uapi/asm/errno.h
WRAP arch/arm64/include/generated/uapi/asm/ioctl.h
HOSTCC scripts/basic/fixdep
WRAP arch/arm64/include/generated/uapi/asm/ioctls.h
WRAP arch/arm64/include/generated/uapi/asm/ipcbuf.h
UPD include/config/kernel.release
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
WRAP arch/arm64/include/generated/uapi/asm/mman.h
WRAP arch/arm64/include/generated/uapi/asm/msgbuf.h
WRAP arch/arm64/include/generated/uapi/asm/poll.h
WRAP arch/arm64/include/generated/uapi/asm/resource.h
WRAP arch/arm64/include/generated/uapi/asm/sembuf.h
WRAP arch/arm64/include/generated/uapi/asm/shmbuf.h
WRAP arch/arm64/include/generated/uapi/asm/socket.h
WRAP arch/arm64/include/generated/uapi/asm/sockios.h
WRAP arch/arm64/include/generated/uapi/asm/swab.h
WRAP arch/arm64/include/generated/uapi/asm/termbits.h
WRAP arch/arm64/include/generated/uapi/asm/termios.h
WRAP arch/arm64/include/generated/uapi/asm/types.h
HOSTCC scripts/basic/bin2c
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
CHK include/generated/utsrelease.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
UPD include/generated/utsrelease.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kdebug.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm64/include/generated/asm/msi.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/set_memory.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
SHIPPED scripts/genksyms/parse.tab.c
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
MKELF scripts/mod/elfconfig.h
CHK scripts/mod/devicetable-offsets.h
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/dtc/checks.o
.
.
FDVT: Drv use 4.0 folder
.
HOSTCC scripts/selinux/genheaders/genheaders
.
HOSTCC scripts/mod/file2alias.o
.
HOSTCC scripts/dtc/util.o
.
drivers/misc/mediatek/ccu/src/Makefile:27: CCU_MAKE_FILE_CALLED
drivers/misc/mediatek/ccu/src/1.2/Makefile:24: CCU_INC=./drivers/misc/mediatek/ccu/src/mt6768/ccu_ext_interface
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/selinux/mdp/mdp
HOSTLD scripts/mod/modpost
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
HOSTCC scripts/kallsyms
MTK_GPU_VERSION 1 = mali
HOSTCC scripts/pnmtologo
*MTK_GPU_VERSION 2 = bifrost
*MTK_GPU_VERSION 3 = r25p0
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
HOSTCC scripts/sortextable
imgsensor drv by project ov50c40_ofilm_main_mipi_raw/ s5kjn1_ofilm_main_mipi_raw/ ov50c40_qtech_main_mipi_raw/ ov8856_ofilm_front_mipi_raw/ ov8856_aac_front_mipi_raw/ gc02m1b_sunny_mipi_raw/ ov02b1b_ofilm_mipi_raw/ gc02m1_macro_aac_mipi_raw/ gc02m1_macro_sy_mipi_raw/ imx355_sunny_ultra_mipi_raw/ imx355_aac_ultra_mipi_raw/
HOSTCC scripts/asn1_compiler
HOSTCC scripts/extract-cert
scripts/extract-cert.c: In function ‘display_openssl_errors’:
scripts/extract-cert.c:46:9: warning: ‘ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
46 | while ((e = ERR_get_error_line(&file, &line))) {
| ^~~~~
In file included from scripts/extract-cert.c:23:
/usr/include/openssl/err.h:411:15: note: declared here
411 | unsigned long ERR_get_error_line(const char **file, int *line);
| ^~~~~~~~~~~~~~~~~~
scripts/extract-cert.c: In function ‘drain_openssl_errors’:
scripts/extract-cert.c:59:9: warning: ‘ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
59 | while (ERR_get_error_line(&file, &line)) {}
| ^~~~~
In file included from scripts/extract-cert.c:23:
/usr/include/openssl/err.h:411:15: note: declared here
411 | unsigned long ERR_get_error_line(const char **file, int *line);
| ^~~~~~~~~~~~~~~~~~
scripts/extract-cert.c: In function ‘main’:
scripts/extract-cert.c:124:17: warning: ‘ENGINE_load_builtin_engines’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
124 | ENGINE_load_builtin_engines();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:358:28: note: declared here
358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:126:17: warning: ‘ENGINE_by_id’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
126 | e = ENGINE_by_id("pkcs11");
| ^
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:336:31: note: declared here
336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
| ^~~~~~~~~~~~
scripts/extract-cert.c:128:17: warning: ‘ENGINE_init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
128 | if (ENGINE_init(e))
| ^~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:620:27: note: declared here
620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
| ^~~~~~~~~~~
scripts/extract-cert.c:133:25: warning: ‘ENGINE_ctrl_cmd_string’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
133 | ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN");
| ^~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:479:5: note: declared here
479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
| ^~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:134:17: warning: ‘ENGINE_ctrl_cmd’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
134 | ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
| ^~~~~~~~~~~~~~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:450:27: note: declared here
450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,
| ^~~~~~~~~~~~~~~
CC kernel/bounds.s
CHK include/generated/timeconst.h
UPD include/generated/timeconst.h
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CC arch/arm64/kernel/asm-offsets.s
"CONFIG_MICROTRUST_TEE_VERSION="300""
"CONFIG_MICROTRUST_TEE_SUPPORT=y"
"CONFIG_MICROTRUST_TZ_DRIVER=Y"
"CONFIG_MICROTRUST_VFS_DRIVER=Y"
"CONFIG_MICROTRUST_FP_DRIVER=Y"
"CONFIG_MICROTRUST_DEBUG="
"CONFIG_MICROTRUST_TEST_DRIVERS="
TCORE_UT_TESTS_SUPPORT = n
TCORE_PROFILING_SUPPORT = n
TCORE_PROFILING_AUTO_DUMP = n
TCORE_MEMORY_LEAK_DETECTION_SUPPORT = n
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
LDS arch/arm64/kernel/vdso/vdso.lds
VDSOA arch/arm64/kernel/vdso/gettimeofday.o
VDSOA arch/arm64/kernel/vdso/note.o
VDSOA arch/arm64/kernel/vdso/sigreturn.o
LD arch/arm64/kernel/vdso/vdso.so.dbg
VDSOSYM include/generated/vdso-offsets.h
CC init/main.o
HOSTCC usr/gen_init_cpio
CC arch/arm64/mm/dma-mapping.o
CC arch/arm64/kernel/debug-monitors.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
AR usr/built-in.o
AS arch/arm64/kernel/entry.o
CC arch/arm64/kernel/irq.o
CC arch/arm64/kernel/fpsimd.o
AS arch/arm64/kernel/entry-fpsimd.o
CC arch/arm64/net/bpf_jit_comp.o
CC arch/arm64/mm/extable.o
CC arch/arm64/kernel/process.o
CC arch/arm64/mm/fault.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
AR arch/arm64/net/built-in.o
CC arch/arm64/crypto/sha2-ce-glue.o
CC arch/arm64/mm/init.o
AS arch/arm64/crypto/sha2-ce-core.o
AS arch/arm64/crypto/aes-ce-core.o
CC arch/arm64/crypto/aes-ce-glue.o
CC arch/arm64/kernel/ptrace.o
CC arch/arm64/crypto/aes-glue-ce.o
CC init/do_mounts_rd.o
AS arch/arm64/mm/cache.o
CC arch/arm64/mm/copypage.o
CC arch/arm64/kernel/setup.o
AS arch/arm64/crypto/aes-ce.o
CC arch/arm64/crypto/sha256-glue.o
CC init/do_mounts_initrd.o
CC arch/arm64/kernel/signal.o
CC arch/arm64/mm/flush.o
CC init/noinitramfs.o
SHIPPED arch/arm64/crypto/sha256-core.S
AS arch/arm64/crypto/aes-cipher-core.o
CC arch/arm64/crypto/aes-cipher-glue.o
CC arch/arm64/kernel/sys.o
CC arch/arm64/mm/ioremap.o
CC init/initramfs.o
CC arch/arm64/kernel/stacktrace.o
AR arch/arm64/crypto/sha2-ce.o
AR arch/arm64/crypto/aes-ce-cipher.o
AR arch/arm64/crypto/aes-ce-blk.o
AS arch/arm64/crypto/sha256-core.o
AR arch/arm64/crypto/aes-arm64.o
AR arch/arm64/crypto/sha256-arm64.o
AR arch/arm64/crypto/built-in.o
CC arch/arm64/kernel/time.o
CC arch/arm64/mm/mmap.o
CC init/calibrate.o
CC init/init_task.o
CC arch/arm64/mm/pgd.o
CC arch/arm64/kernel/traps.o
CC arch/arm64/mm/mmu.o
CC arch/arm64/kernel/io.o
CC arch/arm64/mm/context.o
CC init/version.o
CC arch/arm64/kernel/vdso.o
AS arch/arm64/mm/proc.o
CC arch/arm64/mm/pageattr.o
CC kernel/fork.o
AS arch/arm64/kernel/hyp-stub.o
AR init/mounts.o
CC arch/arm64/kernel/psci.o
AR init/built-in.o
CC arch/arm64/kernel/cpu_ops.o
CC certs/system_keyring.o
CC arch/arm64/kernel/insn.o
AS arch/arm64/mm/cache-mtk-v8.o
AR arch/arm64/mm/built-in.o
CC mm/filemap.o
EXTRACT_CERTS
AS certs/system_certificates.o
AR certs/built-in.o
CC arch/arm64/kernel/return_address.o
CC fs/open.o
CC kernel/exec_domain.o
CC arch/arm64/kernel/cpuinfo.o
CC mm/mempool.o
CC kernel/panic.o
CC fs/read_write.o
CC arch/arm64/kernel/cpu_errata.o
CC arch/arm64/kernel/cpufeature.o
CC mm/oom_kill.o
CC kernel/cpu.o
arch/arm64/kernel/cpufeature.c:982:13: warning: ‘cpu_enable_ssbs’ defined but not used [-Wunused-function]
982 | static void cpu_enable_ssbs(const struct arm64_cpu_capabilities *__unused)
| ^~~~~~~~~~~~~~~
CC fs/file_table.o
CC arch/arm64/kernel/alternative.o
CC mm/maccess.o
CC arch/arm64/kernel/cacheinfo.o
CC kernel/exit.o
CC fs/super.o
CC arch/arm64/kernel/smp.o
CC mm/page_alloc.o
CC fs/char_dev.o
CC arch/arm64/kernel/smp_spin_table.o
CC kernel/softirq.o
CC arch/arm64/kernel/topology.o
CC mm/page-writeback.o
CC fs/stat.o
AS arch/arm64/kernel/smccc-call.o
CC arch/arm64/kernel/sys32.o
CC kernel/resource.o
CC fs/exec.o
CC mm/readahead.o
AS arch/arm64/kernel/kuser32.o
CC arch/arm64/kernel/signal32.o
CC kernel/sysctl.o
CC arch/arm64/kernel/sys_compat.o
CC mm/swap.o
CC fs/pipe.o
AS arch/arm64/kernel/entry32.o
CC arch/arm64/kernel/arm64ksyms.o
CC kernel/sysctl_binary.o
CC fs/namei.o
CC mm/truncate.o
CC arch/arm64/kernel/module.o
CC kernel/capability.o
CC arch/arm64/kernel/module-plts.o
CC mm/vmscan.o
CC arch/arm64/kernel/perf_regs.o
CC fs/fcntl.o
CC kernel/ptrace.o
CC arch/arm64/kernel/perf_callchain.o
CC arch/arm64/kernel/perf_event.o
CC mm/shmem.o
CC fs/ioctl.o
CC kernel/user.o
CC arch/arm64/kernel/hw_breakpoint.o
CC kernel/signal.o
AS arch/arm64/kernel/sleep.o
CC arch/arm64/kernel/suspend.o
CC fs/readdir.o
CC mm/util.o
CC arch/arm64/kernel/cpuidle.o
CC arch/arm64/kernel/armv8_deprecated.o
CC fs/select.o
CC mm/mmzone.o
CC kernel/sys.o
CC mm/vmstat.o
CC arch/arm64/kernel/kaslr.o
CC arch/arm64/kernel/ssbd.o
CC arch/arm64/kernel/probes/uprobes.o
CC fs/dcache.o
CC mm/backing-dev.o
CC kernel/umh.o
CC arch/arm64/kernel/probes/decode-insn.o
CC arch/arm64/kernel/probes/simulate-insn.o
CC mm/mm_init.o
CC fs/inode.o
CC kernel/workqueue.o
AR arch/arm64/kernel/probes/built-in.o
OBJCOPY arch/arm64/kernel/vdso/vdso.so
AS arch/arm64/kernel/vdso/vdso.o
AR arch/arm64/kernel/vdso/built-in.o
AS arch/arm64/kernel/head.o
LDS arch/arm64/kernel/vmlinux.lds
AR arch/arm64/kernel/built-in.o
AR ipc/built-in.o
CC security/integrity/iint.o
CC mm/mmu_context.o
CC security/integrity/integrity_audit.o
CC fs/attr.o
CC kernel/pid.o
CC mm/percpu.o
AR security/integrity/integrity.o
AR security/integrity/built-in.o
CC security/keys/gc.o
CC fs/bad_inode.o
CC security/keys/key.o
CC kernel/task_work.o
CC mm/slab_common.o
CC fs/file.o
CC security/keys/keyring.o
CC kernel/extable.o
CC mm/compaction.o
CC kernel/params.o
CC fs/filesystems.o
CC security/keys/keyctl.o
CC security/keys/permission.o
CC kernel/kthread.o
CC fs/namespace.o
CC mm/vmacache.o
CC security/keys/process_keys.o
CC mm/swap_slots.o
CC kernel/sys_ni.o
CC kernel/nsproxy.o
CC mm/interval_tree.o
CC fs/seq_file.o
CC security/keys/request_key.o
CC kernel/notifier.o
CC mm/list_lru.o
CC fs/xattr.o
CC security/keys/request_key_auth.o
CC kernel/ksysfs.o
CC mm/workingset.o
CC security/keys/user_defined.o
CC kernel/cred.o
CC mm/debug.o
CC fs/libfs.o
CC security/keys/compat.o
CC fs/fs-writeback.o
CC mm/gup.o
CC kernel/reboot.o
CC security/keys/proc.o
CC security/keys/sysctl.o
CC mm/highmem.o
AR security/keys/built-in.o
GEN security/selinux/flask.h security/selinux/av_permissions.h
CC security/selinux/avc.o
CC kernel/async.o
CC fs/pnode.o
CC mm/memory.o
CC kernel/range.o
CC kernel/smpboot.o
CC fs/splice.o
CC security/selinux/hooks.o
CC kernel/ucount.o
CC mm/mincore.o
CC fs/sync.o
CC kernel/kmod.o
CC security/selinux/selinuxfs.o
CC mm/mlock.o
CC fs/utimes.o
CC kernel/groups.o
CC security/selinux/netlink.o
CC fs/stack.o
CC mm/mmap.o
CC security/selinux/nlmsgtab.o
CC kernel/bpf/core.o
CC fs/fs_struct.o
CC security/selinux/netif.o
CC mm/mprotect.o
CC fs/statfs.o
CC security/selinux/netnode.o
CC mm/mremap.o
CC kernel/bpf/syscall.o
CC fs/fs_pin.o
CC mm/msync.o
CC security/selinux/netport.o
CC fs/nsfs.o
CC mm/page_vma_mapped.o
CC fs/buffer.o
CC kernel/bpf/verifier.o
CC security/selinux/ibpkey.o
CC mm/pagewalk.o
CC mm/pgtable-generic.o
CC security/selinux/exports.o
CC fs/block_dev.o
CC mm/rmap.o
CC kernel/bpf/inode.o
CC security/selinux/ss/ebitmap.o
CC security/selinux/ss/hashtab.o
CC fs/direct-io.o
CC mm/vmalloc.o
CC security/selinux/ss/symtab.o
CC kernel/bpf/helpers.o
CC security/selinux/ss/sidtab.o
CC kernel/bpf/tnum.o
CC fs/mpage.o
CC mm/process_vm_access.o
CC security/selinux/ss/avtab.o
CC kernel/bpf/hashtab.o
CC mm/init-mm.o
CC kernel/bpf/arraymap.o
CC security/selinux/ss/policydb.o
CC mm/nobootmem.o
CC fs/proc_namespace.o
CC kernel/bpf/percpu_freelist.o
CC fs/configfs/inode.o
CC kernel/bpf/bpf_lru_list.o
CC mm/fadvise.o
CC security/selinux/ss/services.o
CC kernel/bpf/lpm_trie.o
CC fs/configfs/file.o
CC mm/madvise.o
CC fs/configfs/dir.o
CC security/selinux/ss/conditional.o
CC kernel/bpf/map_in_map.o
CC kernel/bpf/devmap.o
CC mm/memblock.o
CC fs/configfs/symlink.o
CC security/selinux/ss/mls.o
CC mm/page_io.o
CC kernel/bpf/stackmap.o
CC fs/configfs/mount.o
CC mm/swap_state.o
CC security/selinux/ss/status.o
CC fs/configfs/item.o
CC kernel/bpf/cgroup.o
CC mm/swapfile.o
AR fs/configfs/configfs.o
AR fs/configfs/built-in.o
CC fs/crypto/crypto.o
AR security/selinux/selinux.o
AR security/selinux/built-in.o
CC security/commoncap.o
AR kernel/bpf/built-in.o
CC kernel/cgroup/cgroup.o
CC security/min_addr.o
CC fs/crypto/fname.o
CC mm/dmapool.o
CC security/security.o
CC fs/crypto/hkdf.o
CC mm/sparse.o
CC fs/crypto/hooks.o
CC kernel/cgroup/namespace.o
CC security/lsm_audit.o
CC mm/sparse-vmemmap.o
CC fs/crypto/keyring.o
CC kernel/cgroup/cgroup-v1.o
CC mm/slub.o
AR security/built-in.o
CC crypto/api.o
CC fs/crypto/keysetup.o
CC kernel/cgroup/freezer.o
CC crypto/cipher.o
CC mm/migrate.o
CC fs/crypto/keysetup_v1.o
CC kernel/cgroup/cpuset.o
CC crypto/compress.o
CC fs/crypto/policy.o
CC crypto/memneq.o
CC mm/page_counter.o
CC kernel/cgroup/debug.o
CC mm/memcontrol.o
CC fs/crypto/bio.o
AR kernel/cgroup/built-in.o
CC kernel/events/core.o
CC crypto/crypto_wq.o
CC fs/crypto/inline_crypt.o
CC crypto/algapi.o
CC mm/vmpressure.o
AR fs/crypto/fscrypto.o
AR fs/crypto/built-in.o
CC fs/devpts/inode.o
CC kernel/events/ring_buffer.o
CC mm/swap_cgroup.o
AR fs/devpts/devpts.o
AR fs/devpts/built-in.o
CC fs/exfat/exfat_core.o
CC crypto/scatterwalk.o
CC mm/page_isolation.o
CC kernel/events/callchain.o
CC fs/exfat/exfat_super.o
CC mm/zsmalloc.o
CC crypto/proc.o
CC kernel/events/hw_breakpoint.o
CC fs/exfat/exfat_api.o
CC crypto/aead.o
CC mm/early_ioremap.o
CC kernel/events/uprobes.o
CC fs/exfat/exfat_blkdev.o
CC mm/cma.o
CC fs/exfat/exfat_cache.o
CC crypto/ablkcipher.o
CC mm/frame_vector.o
AR kernel/events/built-in.o
CC kernel/irq/irqdesc.o
CC fs/exfat/exfat_data.o
CC mm/usercopy.o
CC crypto/blkcipher.o
CC fs/exfat/exfat_bitmap.o
CC fs/exfat/exfat_nls.o
CC kernel/irq/handle.o
CC fs/exfat/exfat_oal.o
AR mm/built-in.o
CC block/bio.o
CC crypto/skcipher.o
CC fs/exfat/exfat_upcase.o
CC kernel/irq/manage.o
AR fs/exfat/exfat.o
AR fs/exfat/built-in.o
AR fs/exofs/built-in.o
CC fs/exportfs/expfs.o
CC block/elevator.o
CC kernel/irq/spurious.o
CC crypto/seqiv.o
AR fs/exportfs/exportfs.o
AR fs/exportfs/built-in.o
CC fs/ext4/balloc.o
CC kernel/irq/resend.o
CC crypto/echainiv.o
CC block/blk-core.o
CC fs/ext4/bitmap.o
CC kernel/irq/chip.o
CC crypto/ahash.o
CC fs/ext4/block_validity.o
CC kernel/irq/dummychip.o
CC fs/ext4/dir.o
CC crypto/shash.o
CC block/blk-tag.o
CC fs/ext4/ext4_jbd2.o
CC kernel/irq/devres.o
CC block/blk-sysfs.o
CC crypto/akcipher.o
CC fs/ext4/extents.o
CC kernel/irq/autoprobe.o
CC block/blk-flush.o
CC fs/ext4/extents_status.o
CC crypto/kpp.o
CC kernel/irq/irqdomain.o
CC block/blk-settings.o
CC fs/ext4/file.o
ASN.1 crypto/rsapubkey-asn1.c
ASN.1 crypto/rsaprivkey-asn1.c
CC crypto/rsa.o
CC fs/ext4/fsmap.o
CC kernel/irq/proc.o
CC block/blk-ioc.o
CC crypto/rsa_helper.o
CC crypto/rsa-pkcs1pad.o
CC kernel/irq/cpuhotplug.o
CC fs/ext4/fsync.o
CC kernel/irq/pm.o
CC block/blk-map.o
CC crypto/acompress.o
In file included from ./include/linux/kernel.h:14,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from fs/ext4/fsync.c:26:
fs/ext4/fsync.c: In function ‘ext4_sync_file’:
fs/ext4/fsync.c:174:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘kuid_t’ [-Wformat=]
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/printk.h:160:32: note: in definition of macro ‘no_printk’
160 | printk(fmt, ##__VA_ARGS__); \
| ^~~
fs/ext4/fsync.c:174:25: note: in expansion of macro ‘ext4_debug’
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~
fs/ext4/fsync.c:174:53: note: format string is defined here
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ~^
| |
| unsigned int
In file included from ./include/linux/kernel.h:14,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from fs/ext4/fsync.c:26:
fs/ext4/fsync.c:174:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘kgid_t’ [-Wformat=]
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/printk.h:160:32: note: in definition of macro ‘no_printk’
160 | printk(fmt, ##__VA_ARGS__); \
| ^~~
fs/ext4/fsync.c:174:25: note: in expansion of macro ‘ext4_debug’
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~
fs/ext4/fsync.c:174:61: note: format string is defined here
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ~^
| |
| unsigned int
CC fs/ext4/hash.o
CC fs/ext4/ialloc.o
CC block/blk-exec.o
CC kernel/irq/affinity.o
CC crypto/scompress.o
AR kernel/irq/built-in.o
AR kernel/livepatch/built-in.o
CC kernel/locking/mutex.o
CC fs/ext4/indirect.o
CC block/blk-merge.o
CC crypto/algboss.o
CC fs/ext4/inline.o
CC kernel/locking/semaphore.o
CC crypto/testmgr.o
CC block/blk-softirq.o
CC fs/ext4/inode.o
CC kernel/locking/rwsem.o
CC kernel/locking/percpu-rwsem.o
CC crypto/cmac.o
CC block/blk-timeout.o
CC fs/ext4/ioctl.o
CC kernel/locking/spinlock.o
CC crypto/hmac.o
CC block/blk-lib.o
CC fs/ext4/mballoc.o
CC crypto/xcbc.o
CC kernel/locking/osq_lock.o
CC kernel/locking/rtmutex.o
CC crypto/crypto_null.o
CC block/blk-mq.o
CC fs/ext4/migrate.o
CC kernel/locking/rwsem-xadd.o
CC fs/ext4/mmp.o
AR kernel/locking/built-in.o
CC kernel/power/qos.o
CC crypto/md5.o
CC block/blk-mq-tag.o
CC fs/ext4/move_extent.o
CC crypto/sha1_generic.o
CC kernel/power/main.o
CC fs/ext4/namei.o
CC block/blk-stat.o
CC fs/ext4/page-io.o
CC kernel/power/process.o
CC crypto/sha256_generic.o
CC block/blk-mq-sysfs.o
CC fs/ext4/readpage.o
CC kernel/power/suspend.o
CC crypto/sha512_generic.o
CC fs/ext4/resize.o
CC block/blk-mq-cpumap.o
CC kernel/power/wakelock.o
CC fs/ext4/super.o
CC crypto/gf128mul.o
CC block/blk-mq-sched.o
CC kernel/power/poweroff.o
CC kernel/power/wakeup_reason.o
CC crypto/ecb.o
CC fs/ext4/symlink.o
CC crypto/cbc.o
CC block/ioctl.o
AR kernel/power/built-in.o
CC kernel/printk/printk.o
CC crypto/cts.o
CC fs/ext4/sysfs.o
CC block/genhd.o
CC fs/ext4/xattr.o
CC crypto/xts.o
CC kernel/printk/printk_safe.o
AR kernel/printk/built-in.o
CC kernel/rcu/update.o
CC fs/ext4/xattr_trusted.o
CC block/partition-generic.o
CC crypto/ctr.o
CC fs/ext4/xattr_user.o
CC crypto/gcm.o
CC kernel/rcu/sync.o
CC fs/ext4/acl.o
CC block/ioprio.o
CC kernel/rcu/srcutree.o
CC crypto/ccm.o
CC fs/ext4/xattr_security.o
CC crypto/cryptd.o
CC block/badblocks.o
CC kernel/rcu/tree.o
CC fs/ext4/verity.o
AR fs/ext4/ext4.o
AR fs/ext4/built-in.o
CC fs/f2fs/dir.o
CC block/partitions/check.o
CC crypto/des_generic.o
CC block/partitions/msdos.o
CC kernel/rcu/rcu_segcblist.o
CC fs/f2fs/file.o
CC crypto/blowfish_generic.o
AR kernel/rcu/built-in.o
CC kernel/sched/core.o
CC block/partitions/efi.o
CC crypto/blowfish_common.o
CC fs/f2fs/inode.o
AR block/partitions/built-in.o
CC block/scsi_ioctl.o
In file included from ./arch/arm64/include/asm/bug.h:38,
from ./include/linux/bug.h:5,
from ./arch/arm64/include/asm/cmpxchg.h:21,
from ./arch/arm64/include/asm/atomic.h:41,
from ./include/linux/atomic.h:5,
from ./include/linux/rcupdate.h:38,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from kernel/sched/core.c:9:
kernel/sched/core.c: In function ‘uclamp_group_get’:
kernel/sched/core.c:1564:33: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘long unsigned int:53’ [-Wformat
]
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1565 | cpu, clamp_id, group_id,
1566 | uc_cpu->group[clamp_id][group_id].tasks);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int:53
./include/asm-generic/bug.h:90:71: note: in definition of macro ‘__WARN_printf’
90 | #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
| ^~~
kernel/sched/core.c:1564:25: note: in expansion of macro ‘WARN’
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ^~~~
kernel/sched/core.c:1564:82: note: format string is defined here
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ~^
| |
| unsigned int
kernel/sched/core.c: In function ‘__schedule_bug’:
kernel/sched/core.c:4496:13: warning: unused variable ‘i’ [-Wunused-variable]
4496 | int i = 0;
| ^
CC crypto/twofish_generic.o
CC fs/f2fs/namei.o
CC crypto/twofish_common.o
CC block/noop-iosched.o
CC fs/f2fs/hash.o
CC crypto/aes_generic.o
CC block/deadline-iosched.o
CC kernel/sched/loadavg.o
CC fs/f2fs/super.o
CC block/cfq-iosched.o
CC crypto/arc4.o
CC kernel/sched/clock.o
CC crypto/deflate.o
CC block/mq-deadline.o
CC fs/f2fs/inline.o
CC kernel/sched/cputime.o
CC crypto/crc32c_generic.o
CC block/kyber-iosched.o
CC fs/f2fs/checkpoint.o
CC crypto/crc32_generic.o
CC block/compat_ioctl.o
CC kernel/sched/idle_task.o
CC fs/f2fs/gc.o
CC crypto/authenc.o
CC block/blk-wbt.o
CC kernel/sched/fair.o
CC fs/f2fs/data.o
kernel/sched/fair.c: In function ‘load_balance’:
kernel/sched/fair.c:11104:25: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
11104 | int cpu = env.dst_cpu;
| ^~~
In file included from kernel/sched/fair.c:12662:
kernel/sched/eas_plus.c: In function ‘update_sg_util’:
kernel/sched/eas_plus.c:912:35: warning: unused variable ‘sg’ [-Wunused-variable]
912 | const struct sched_group *sg;
| ^~
kernel/sched/eas_plus.c:911:30: warning: unused variable ‘sd’ [-Wunused-variable]
911 | struct sched_domain *sd;
| ^~
CC crypto/authencesn.o
CC block/keyslot-manager.o
CC fs/f2fs/node.o
CC kernel/sched/rt.o
CC crypto/lzo.o
CC block/bio-crypt-ctx.o
CC crypto/lz4.o
CC fs/f2fs/segment.o
CC kernel/sched/deadline.o
CC crypto/rng.o
CC kernel/sched/wait.o
CC block/blk-crypto.o
CC fs/f2fs/recovery.o
In file included from block/blk-crypto.c:14:
block/blk-crypto.c: In function ‘blk_crypto_flock’:
./include/linux/keyslot-manager.h:101:13: error: inlining failed in call to ‘always_inline’ ‘ksm_flock’: function body not available
101 | inline void ksm_flock(struct keyslot_manager *ksm, unsigned int flags);
| ^~~~~~~~~
block/blk-crypto.c:310:9: note: called from here
310 | ksm_flock(ksm, flags);
| ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:356: block/blk-crypto.o] Error 1
make: *** [Makefile:1198: block] Error 2
make: *** Waiting for unfinished jobs....
CC crypto/drbg.o
CC fs/f2fs/shrinker.o
CC kernel/sched/wait_bit.o
CC kernel/sched/swait.o
CC crypto/jitterentropy.o
CC crypto/jitterentropy-kcapi.o
CC fs/f2fs/extent_cache.o
CC kernel/sched/completion.o
CC fs/f2fs/sysfs.o
CC crypto/ghash-generic.o
CC kernel/sched/idle.o
CC fs/f2fs/debug.o
CC fs/f2fs/xattr.o
CC crypto/asymmetric_keys/asymmetric_type.o
CC crypto/asymmetric_keys/restrict.o
CC fs/f2fs/acl.o
CC fs/f2fs/verity.o
CC kernel/sched/cpupri.o
CC crypto/asymmetric_keys/signature.o
CC crypto/asymmetric_keys/public_key.o
CC kernel/sched/cpudeadline.o
AR fs/f2fs/f2fs.o
AR fs/f2fs/built-in.o
CC fs/fat/cache.o
CC kernel/sched/topology.o
CC fs/fat/dir.o
CC fs/fat/fatent.o
ASN.1 crypto/asymmetric_keys/x509-asn1.c
ASN.1 crypto/asymmetric_keys/x509_akid-asn1.c
CC crypto/asymmetric_keys/x509_public_key.o
CC kernel/sched/stop_task.o
ASN.1 crypto/asymmetric_keys/pkcs7-asn1.c
CC crypto/asymmetric_keys/pkcs7_trust.o
CC crypto/asymmetric_keys/pkcs7_verify.o
CC fs/fat/file.o
CC kernel/sched/energy.o
AR crypto/asymmetric_keys/asymmetric_keys.o
CC kernel/sched/stats.o
CC crypto/asymmetric_keys/x509-asn1.o
CC crypto/asymmetric_keys/x509_akid-asn1.o
CC crypto/asymmetric_keys/x509_cert_parser.o
CC crypto/asymmetric_keys/pkcs7-asn1.o
CC kernel/sched/debug.o
CC fs/fuse/dev.o
CC crypto/asymmetric_keys/pkcs7_parser.o
CC fs/fat/inode.o
CC kernel/sched/tune.o
AR crypto/asymmetric_keys/x509_key_parser.o
AR crypto/asymmetric_keys/pkcs7_message.o
AR crypto/asymmetric_keys/built-in.o
CC crypto/hash_info.o
CC crypto/simd.o
CC fs/fuse/dir.o
CC fs/fat/misc.o
CC fs/fuse/file.o
CC kernel/sched/cpuacct.o
AR crypto/crypto.o
AR crypto/crypto_algapi.o
AR crypto/crypto_blkcipher.o
AR crypto/crypto_hash.o
CC crypto/rsapubkey-asn1.o
CC crypto/rsaprivkey-asn1.o
AR crypto/crypto_acompress.o
AR crypto/cryptomgr.o
AR crypto/jitterentropy_rng.o
AR crypto/crypto_simd.o
AR crypto/rsa_generic.o
AR crypto/built-in.o
CC kernel/sched/cpufreq.o
CC fs/fat/nfs.o
CC fs/fat/namei_vfat.o
CC fs/incfs/data_mgmt.o
CC fs/fat/namei_msdos.o
CC kernel/sched/cpufreq_schedutil.o
CC fs/fuse/inode.o
CC fs/incfs/format.o
AR fs/fat/fat.o
AR fs/fat/vfat.o
AR fs/fat/msdos.o
AR fs/fat/built-in.o
CC fs/isofs/namei.o
CC fs/incfs/integrity.o
CC fs/isofs/inode.o
CC fs/fuse/control.o
CC fs/incfs/main.o
CC kernel/sched/membarrier.o
CC fs/incfs/vfs.o
CC fs/fuse/xattr.o
CC fs/isofs/dir.o
CC kernel/sched/psi.o
CC fs/isofs/util.o
CC fs/fuse/acl.o
AR fs/incfs/incrementalfs.o
AR fs/incfs/built-in.o
CC fs/fuse/passthrough.o
AR kernel/sched/built-in.o
CC fs/isofs/rock.o
CC kernel/time/time.o
CC kernel/time/timer.o
AR fs/fuse/fuse.o
AR fs/fuse/built-in.o
CC fs/jbd2/transaction.o
CC fs/isofs/export.o
CC fs/isofs/joliet.o
CC fs/isofs/compress.o
CC fs/jbd2/commit.o
CC kernel/time/hrtimer.o
CC kernel/time/timekeeping.o
AR fs/isofs/isofs.o
AR fs/isofs/built-in.o
CC fs/jbd2/recovery.o
CC kernel/time/ntp.o
CC fs/jbd2/checkpoint.o
CC fs/jbd2/revoke.o
CC fs/kernfs/mount.o
CC kernel/time/clocksource.o
CC fs/jbd2/journal.o
CC fs/kernfs/inode.o
CC kernel/time/jiffies.o
CC kernel/trace/trace_clock.o
CC fs/kernfs/dir.o
CC kernel/time/timer_list.o
AR fs/jbd2/jbd2.o
AR fs/jbd2/built-in.o
CC fs/nls/nls_base.o
CC kernel/trace/ring_buffer.o
CC kernel/time/timeconv.o
CC fs/kernfs/file.o
CC fs/nls/nls_cp437.o
CC kernel/time/timecounter.o
CC kernel/time/alarmtimer.o
CC fs/nls/nls_cp950.o
CC kernel/trace/trace.o
CC fs/kernfs/symlink.o
CC fs/nls/nls_ascii.o
AR fs/kernfs/built-in.o
CC fs/nls/nls_iso8859-1.o
CC fs/notify/fsnotify.o
CC kernel/time/posix-timers.o
CC fs/nls/nls_utf8.o
AR fs/nls/built-in.o
CC kernel/time/posix-cpu-timers.o
CC kernel/time/posix-clock.o
CC fs/notify/notification.o
CC kernel/trace/trace_output.o
CC kernel/time/itimer.o
CC fs/notify/group.o
CC kernel/time/clockevents.o
CC fs/overlayfs/super.o
CC kernel/trace/trace_seq.o
CC fs/notify/mark.o
CC fs/overlayfs/namei.o
CC kernel/time/tick-common.o
CC kernel/trace/trace_stat.o
CC fs/notify/fdinfo.o
CC fs/overlayfs/util.o
CC fs/notify/dnotify/dnotify.o
CC fs/overlayfs/inode.o
CC kernel/trace/trace_printk.o
AR fs/notify/dnotify/built-in.o
AR fs/notify/fanotify/built-in.o
CC kernel/time/tick-broadcast.o
CC fs/overlayfs/dir.o
CC fs/notify/inotify/inotify_fsnotify.o
CC fs/notify/inotify/inotify_user.o
CC fs/overlayfs/readdir.o
CC kernel/trace/trace_sched_switch.o
CC kernel/time/tick-broadcast-hrtimer.o
CC fs/overlayfs/copy_up.o
AR fs/notify/inotify/built-in.o
AR fs/notify/built-in.o
CC kernel/time/sched_clock.o
CC kernel/trace/trace_nop.o
CC kernel/time/tick-oneshot.o
CC kernel/trace/blktrace.o
AR fs/overlayfs/overlay.o
AR fs/overlayfs/built-in.o
CC fs/proc/task_mmu.o
CC fs/proc/inode.o
CC kernel/time/tick-sched.o
CC kernel/time/timer_list_aee.o
CC fs/proc/root.o
CC kernel/trace/trace_events.o
CC fs/proc/base.o
AR kernel/time/built-in.o
CC kernel/freezer.o
CC kernel/profile.o
CC fs/proc/generic.o
CC kernel/trace/trace_export.o
CC kernel/trace/trace_event_perf.o
CC kernel/stacktrace.o
CC kernel/futex.o
CC fs/proc/array.o
CC fs/proc/fd.o
CC kernel/trace/trace_events_filter.o
CC kernel/trace/trace_events_trigger.o
CC fs/proc/proc_tty.o
CC fs/proc/cmdline.o
CC kernel/smp.o
CC fs/proc/consoles.o
CC kernel/trace/bpf_trace.o
CC fs/proc/cpuinfo.o
CC kernel/trace/power-traces.o
CC kernel/trace/rpm-traces.o
CC fs/proc/devices.o
CC fs/proc/interrupts.o
CC fs/proc/loadavg.o
CC kernel/trace/trace_probe.o
CC kernel/trace/trace_uprobe.o
CC fs/proc/meminfo.o
CC fs/proc/stat.o
CC kernel/trace/mtk_trace.o
CC fs/proc/uptime.o
CC fs/proc/version.o
CC fs/proc/softirqs.o
CC fs/proc/namespaces.o
CC fs/proc/self.o
AR kernel/trace/built-in.o
CC kernel/uid16.o
CC fs/proc/thread_self.o
CC kernel/module.o
CC fs/proc/uid.o
CC fs/proc/proc_sysctl.o
CC fs/proc/proc_net.o
CC fs/proc/kmsg.o
CC kernel/kallsyms.o
CC kernel/compat.o
CC kernel/utsname.o
CC fs/proc/page.o
CC kernel/pid_namespace.o
AR fs/proc/proc.o
AR fs/proc/built-in.o
CC fs/pstore/inode.o
CC fs/pstore/platform.o
GZIP kernel/config_data.gz
CC kernel/stop_machine.o
CC kernel/audit.o
CC fs/quota/dquot.o
CC fs/pstore/pmsg.o
CC fs/quota/quota_v2.o
CC fs/pstore/ram.o
CC kernel/auditfilter.o
CC fs/quota/quota_tree.o
CC fs/pstore/ram_core.o
CC kernel/auditsc.o
AR fs/pstore/pstore.o
AR fs/pstore/ramoops.o
AR fs/pstore/built-in.o
CC kernel/audit_watch.o
CC fs/ramfs/inode.o
CC fs/quota/quota.o
CC fs/ramfs/file-mmu.o
CC kernel/audit_fsnotify.o
CC fs/quota/kqid.o
CC fs/quota/netlink.o
AR fs/ramfs/ramfs.o
AR fs/ramfs/built-in.o
CC fs/sdcardfs/dentry.o
CC kernel/audit_tree.o
CC kernel/seccomp.o
CC fs/sdcardfs/file.o
AR fs/quota/built-in.o
CC fs/sdcardfs/inode.o
CC fs/sdcardfs/main.o
CC kernel/utsname_sysctl.o
CC kernel/delayacct.o
CC fs/sysfs/file.o
CC fs/sdcardfs/super.o
CC fs/sysfs/dir.o
CC kernel/taskstats.o
CC fs/sdcardfs/lookup.o
CC fs/sysfs/symlink.o
CC fs/sdcardfs/mmap.o
CC fs/sdcardfs/packagelist.o
CC kernel/tsacct.o
CC fs/sdcardfs/derived_perm.o
CC fs/sysfs/mount.o
CC kernel/tracepoint.o
CC kernel/elfcore.o
AR fs/sdcardfs/sdcardfs.o
AR fs/sdcardfs/built-in.o
CC fs/sysfs/group.o
CC fs/tracefs/inode.o
CC kernel/irq_work.o
CC fs/verity/enable.o
AR fs/tracefs/tracefs.o
AR fs/tracefs/built-in.o
CC fs/verity/hash_algs.o
AR fs/sysfs/built-in.o
CC fs/eventpoll.o
CC kernel/cpu_pm.o
CC fs/verity/init.o
CC fs/verity/measure.o
CC fs/anon_inodes.o
CC kernel/memremap.o
CHK kernel/kheaders_data.tar.xz
CC fs/verity/open.o
CC fs/verity/verify.o
CC fs/verity/signature.o
CC fs/signalfd.o
CC fs/timerfd.o
AR fs/verity/built-in.o
CC fs/eventfd.o
CC fs/aio.o
CC fs/locks.o
CC fs/compat.o
CHK kernel/config_data.h
UPD kernel/config_data.h
CC fs/compat_ioctl.o
CC kernel/configs.o
CC fs/binfmt_script.o
CC fs/binfmt_elf.o
CC fs/compat_binfmt_elf.o
AR kernel/built-in.o
CC fs/mbcache.o
CC fs/posix_acl.o
CC fs/coredump.o
CC fs/drop_caches.o
CC fs/dcookies.o
AR fs/built-in.o
GEN kernel/kheaders_data.tar.xz
./kernel/gen_kheaders.sh: line 61: /tools/build/cpio: No such file or directory
make[1]: *** [kernel/Makefile:142: kernel/kheaders_data.tar.xz] Error 127
make: *** [Makefile:1198: kernel] Error 2
I apologize for the format as I am not familiar about formatting in XDA.
ronaldC said:
Hey, everyone! I am compiling a kernel source for my device: Xiaomi Redmi 10 (Selene) and apparently, it doesn't compile successfully.
I'm using WSL 2 Ubuntu on Windows 11 as a build environment. I used the following commands to install packages that are needed:
Code:
sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig
sudo apt install libssl-dev bc gcc-aarch64-linux-gnu
and all the packages have been installed successfully.
So after that, I cloned the repository to my chosen folder:
git clone -b selene-r-oss --single-branch https://github.com/MiCode/Xiaomi_Kernel_OpenSource
it's successful.
I used:
export ARCH=arm64 && export SUBARCH=arm64 && export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-
to prepare the environment for the upcoming compilation.
then, I moved the selene_defconfig from ~/arch/arm64/configs/ to the beginning of the folder (/mnt/d/RonronFiles/playground/Xiaomi_Kernel_OpenSource) and finally, executed this command to create a .config file tailored for my device:
make selene_defconfig
okay, successful.
then after the .config has been created, I executed:
make -j$(nproc --all)
it all went fine until it said:
Code:
./kernel/gen_kheaders.sh: line 61: /tools/build/cpio: No such file or directory
make[1]: *** [kernel/Makefile:142: kernel/kheaders_data.tar.xz] Error 127
make: *** [Makefile:1198: kernel] Error 2
I am confident that cpio is installed and all the dependencies. I researched about this but I couldn't find answers.
For more information, here's the full message while compiling:
Code:
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/mediatek/usb20/Kconfig:41:warning: prompt redefined
warning: (LM3697_SUPPORT && DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && DRM_PARADE_PS8622 && FB_BACKLIGHT && FB_ARMCLCD && FB_MX3 && USB_APPLEDISPLAY && FB_OLPC_DCON && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
warning: (LM3697_SUPPORT && DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && DRM_PARADE_PS8622 && FB_BACKLIGHT && FB_ARMCLCD && FB_MX3 && USB_APPLEDISPLAY && FB_OLPC_DCON && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/uapi/asm/errno.h
WRAP arch/arm64/include/generated/uapi/asm/ioctl.h
HOSTCC scripts/basic/fixdep
WRAP arch/arm64/include/generated/uapi/asm/ioctls.h
WRAP arch/arm64/include/generated/uapi/asm/ipcbuf.h
UPD include/config/kernel.release
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
WRAP arch/arm64/include/generated/uapi/asm/mman.h
WRAP arch/arm64/include/generated/uapi/asm/msgbuf.h
WRAP arch/arm64/include/generated/uapi/asm/poll.h
WRAP arch/arm64/include/generated/uapi/asm/resource.h
WRAP arch/arm64/include/generated/uapi/asm/sembuf.h
WRAP arch/arm64/include/generated/uapi/asm/shmbuf.h
WRAP arch/arm64/include/generated/uapi/asm/socket.h
WRAP arch/arm64/include/generated/uapi/asm/sockios.h
WRAP arch/arm64/include/generated/uapi/asm/swab.h
WRAP arch/arm64/include/generated/uapi/asm/termbits.h
WRAP arch/arm64/include/generated/uapi/asm/termios.h
WRAP arch/arm64/include/generated/uapi/asm/types.h
HOSTCC scripts/basic/bin2c
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
CHK include/generated/utsrelease.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
UPD include/generated/utsrelease.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kdebug.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm64/include/generated/asm/msi.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/set_memory.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
SHIPPED scripts/genksyms/parse.tab.c
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
MKELF scripts/mod/elfconfig.h
CHK scripts/mod/devicetable-offsets.h
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/dtc/checks.o
.
.
FDVT: Drv use 4.0 folder
.
HOSTCC scripts/selinux/genheaders/genheaders
.
HOSTCC scripts/mod/file2alias.o
.
HOSTCC scripts/dtc/util.o
.
drivers/misc/mediatek/ccu/src/Makefile:27: CCU_MAKE_FILE_CALLED
drivers/misc/mediatek/ccu/src/1.2/Makefile:24: CCU_INC=./drivers/misc/mediatek/ccu/src/mt6768/ccu_ext_interface
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/selinux/mdp/mdp
HOSTLD scripts/mod/modpost
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
HOSTCC scripts/kallsyms
MTK_GPU_VERSION 1 = mali
HOSTCC scripts/pnmtologo
*MTK_GPU_VERSION 2 = bifrost
*MTK_GPU_VERSION 3 = r25p0
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
HOSTCC scripts/sortextable
imgsensor drv by project ov50c40_ofilm_main_mipi_raw/ s5kjn1_ofilm_main_mipi_raw/ ov50c40_qtech_main_mipi_raw/ ov8856_ofilm_front_mipi_raw/ ov8856_aac_front_mipi_raw/ gc02m1b_sunny_mipi_raw/ ov02b1b_ofilm_mipi_raw/ gc02m1_macro_aac_mipi_raw/ gc02m1_macro_sy_mipi_raw/ imx355_sunny_ultra_mipi_raw/ imx355_aac_ultra_mipi_raw/
HOSTCC scripts/asn1_compiler
HOSTCC scripts/extract-cert
scripts/extract-cert.c: In function ‘display_openssl_errors’:
scripts/extract-cert.c:46:9: warning: ‘ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
46 | while ((e = ERR_get_error_line(&file, &line))) {
| ^~~~~
In file included from scripts/extract-cert.c:23:
/usr/include/openssl/err.h:411:15: note: declared here
411 | unsigned long ERR_get_error_line(const char **file, int *line);
| ^~~~~~~~~~~~~~~~~~
scripts/extract-cert.c: In function ‘drain_openssl_errors’:
scripts/extract-cert.c:59:9: warning: ‘ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
59 | while (ERR_get_error_line(&file, &line)) {}
| ^~~~~
In file included from scripts/extract-cert.c:23:
/usr/include/openssl/err.h:411:15: note: declared here
411 | unsigned long ERR_get_error_line(const char **file, int *line);
| ^~~~~~~~~~~~~~~~~~
scripts/extract-cert.c: In function ‘main’:
scripts/extract-cert.c:124:17: warning: ‘ENGINE_load_builtin_engines’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
124 | ENGINE_load_builtin_engines();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:358:28: note: declared here
358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:126:17: warning: ‘ENGINE_by_id’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
126 | e = ENGINE_by_id("pkcs11");
| ^
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:336:31: note: declared here
336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
| ^~~~~~~~~~~~
scripts/extract-cert.c:128:17: warning: ‘ENGINE_init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
128 | if (ENGINE_init(e))
| ^~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:620:27: note: declared here
620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
| ^~~~~~~~~~~
scripts/extract-cert.c:133:25: warning: ‘ENGINE_ctrl_cmd_string’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
133 | ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN");
| ^~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:479:5: note: declared here
479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
| ^~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:134:17: warning: ‘ENGINE_ctrl_cmd’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
134 | ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
| ^~~~~~~~~~~~~~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:450:27: note: declared here
450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,
| ^~~~~~~~~~~~~~~
CC kernel/bounds.s
CHK include/generated/timeconst.h
UPD include/generated/timeconst.h
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CC arch/arm64/kernel/asm-offsets.s
"CONFIG_MICROTRUST_TEE_VERSION="300""
"CONFIG_MICROTRUST_TEE_SUPPORT=y"
"CONFIG_MICROTRUST_TZ_DRIVER=Y"
"CONFIG_MICROTRUST_VFS_DRIVER=Y"
"CONFIG_MICROTRUST_FP_DRIVER=Y"
"CONFIG_MICROTRUST_DEBUG="
"CONFIG_MICROTRUST_TEST_DRIVERS="
TCORE_UT_TESTS_SUPPORT = n
TCORE_PROFILING_SUPPORT = n
TCORE_PROFILING_AUTO_DUMP = n
TCORE_MEMORY_LEAK_DETECTION_SUPPORT = n
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
LDS arch/arm64/kernel/vdso/vdso.lds
VDSOA arch/arm64/kernel/vdso/gettimeofday.o
VDSOA arch/arm64/kernel/vdso/note.o
VDSOA arch/arm64/kernel/vdso/sigreturn.o
LD arch/arm64/kernel/vdso/vdso.so.dbg
VDSOSYM include/generated/vdso-offsets.h
CC init/main.o
HOSTCC usr/gen_init_cpio
CC arch/arm64/mm/dma-mapping.o
CC arch/arm64/kernel/debug-monitors.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
AR usr/built-in.o
AS arch/arm64/kernel/entry.o
CC arch/arm64/kernel/irq.o
CC arch/arm64/kernel/fpsimd.o
AS arch/arm64/kernel/entry-fpsimd.o
CC arch/arm64/net/bpf_jit_comp.o
CC arch/arm64/mm/extable.o
CC arch/arm64/kernel/process.o
CC arch/arm64/mm/fault.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
AR arch/arm64/net/built-in.o
CC arch/arm64/crypto/sha2-ce-glue.o
CC arch/arm64/mm/init.o
AS arch/arm64/crypto/sha2-ce-core.o
AS arch/arm64/crypto/aes-ce-core.o
CC arch/arm64/crypto/aes-ce-glue.o
CC arch/arm64/kernel/ptrace.o
CC arch/arm64/crypto/aes-glue-ce.o
CC init/do_mounts_rd.o
AS arch/arm64/mm/cache.o
CC arch/arm64/mm/copypage.o
CC arch/arm64/kernel/setup.o
AS arch/arm64/crypto/aes-ce.o
CC arch/arm64/crypto/sha256-glue.o
CC init/do_mounts_initrd.o
CC arch/arm64/kernel/signal.o
CC arch/arm64/mm/flush.o
CC init/noinitramfs.o
SHIPPED arch/arm64/crypto/sha256-core.S
AS arch/arm64/crypto/aes-cipher-core.o
CC arch/arm64/crypto/aes-cipher-glue.o
CC arch/arm64/kernel/sys.o
CC arch/arm64/mm/ioremap.o
CC init/initramfs.o
CC arch/arm64/kernel/stacktrace.o
AR arch/arm64/crypto/sha2-ce.o
AR arch/arm64/crypto/aes-ce-cipher.o
AR arch/arm64/crypto/aes-ce-blk.o
AS arch/arm64/crypto/sha256-core.o
AR arch/arm64/crypto/aes-arm64.o
AR arch/arm64/crypto/sha256-arm64.o
AR arch/arm64/crypto/built-in.o
CC arch/arm64/kernel/time.o
CC arch/arm64/mm/mmap.o
CC init/calibrate.o
CC init/init_task.o
CC arch/arm64/mm/pgd.o
CC arch/arm64/kernel/traps.o
CC arch/arm64/mm/mmu.o
CC arch/arm64/kernel/io.o
CC arch/arm64/mm/context.o
CC init/version.o
CC arch/arm64/kernel/vdso.o
AS arch/arm64/mm/proc.o
CC arch/arm64/mm/pageattr.o
CC kernel/fork.o
AS arch/arm64/kernel/hyp-stub.o
AR init/mounts.o
CC arch/arm64/kernel/psci.o
AR init/built-in.o
CC arch/arm64/kernel/cpu_ops.o
CC certs/system_keyring.o
CC arch/arm64/kernel/insn.o
AS arch/arm64/mm/cache-mtk-v8.o
AR arch/arm64/mm/built-in.o
CC mm/filemap.o
EXTRACT_CERTS
AS certs/system_certificates.o
AR certs/built-in.o
CC arch/arm64/kernel/return_address.o
CC fs/open.o
CC kernel/exec_domain.o
CC arch/arm64/kernel/cpuinfo.o
CC mm/mempool.o
CC kernel/panic.o
CC fs/read_write.o
CC arch/arm64/kernel/cpu_errata.o
CC arch/arm64/kernel/cpufeature.o
CC mm/oom_kill.o
CC kernel/cpu.o
arch/arm64/kernel/cpufeature.c:982:13: warning: ‘cpu_enable_ssbs’ defined but not used [-Wunused-function]
982 | static void cpu_enable_ssbs(const struct arm64_cpu_capabilities *__unused)
| ^~~~~~~~~~~~~~~
CC fs/file_table.o
CC arch/arm64/kernel/alternative.o
CC mm/maccess.o
CC arch/arm64/kernel/cacheinfo.o
CC kernel/exit.o
CC fs/super.o
CC arch/arm64/kernel/smp.o
CC mm/page_alloc.o
CC fs/char_dev.o
CC arch/arm64/kernel/smp_spin_table.o
CC kernel/softirq.o
CC arch/arm64/kernel/topology.o
CC mm/page-writeback.o
CC fs/stat.o
AS arch/arm64/kernel/smccc-call.o
CC arch/arm64/kernel/sys32.o
CC kernel/resource.o
CC fs/exec.o
CC mm/readahead.o
AS arch/arm64/kernel/kuser32.o
CC arch/arm64/kernel/signal32.o
CC kernel/sysctl.o
CC arch/arm64/kernel/sys_compat.o
CC mm/swap.o
CC fs/pipe.o
AS arch/arm64/kernel/entry32.o
CC arch/arm64/kernel/arm64ksyms.o
CC kernel/sysctl_binary.o
CC fs/namei.o
CC mm/truncate.o
CC arch/arm64/kernel/module.o
CC kernel/capability.o
CC arch/arm64/kernel/module-plts.o
CC mm/vmscan.o
CC arch/arm64/kernel/perf_regs.o
CC fs/fcntl.o
CC kernel/ptrace.o
CC arch/arm64/kernel/perf_callchain.o
CC arch/arm64/kernel/perf_event.o
CC mm/shmem.o
CC fs/ioctl.o
CC kernel/user.o
CC arch/arm64/kernel/hw_breakpoint.o
CC kernel/signal.o
AS arch/arm64/kernel/sleep.o
CC arch/arm64/kernel/suspend.o
CC fs/readdir.o
CC mm/util.o
CC arch/arm64/kernel/cpuidle.o
CC arch/arm64/kernel/armv8_deprecated.o
CC fs/select.o
CC mm/mmzone.o
CC kernel/sys.o
CC mm/vmstat.o
CC arch/arm64/kernel/kaslr.o
CC arch/arm64/kernel/ssbd.o
CC arch/arm64/kernel/probes/uprobes.o
CC fs/dcache.o
CC mm/backing-dev.o
CC kernel/umh.o
CC arch/arm64/kernel/probes/decode-insn.o
CC arch/arm64/kernel/probes/simulate-insn.o
CC mm/mm_init.o
CC fs/inode.o
CC kernel/workqueue.o
AR arch/arm64/kernel/probes/built-in.o
OBJCOPY arch/arm64/kernel/vdso/vdso.so
AS arch/arm64/kernel/vdso/vdso.o
AR arch/arm64/kernel/vdso/built-in.o
AS arch/arm64/kernel/head.o
LDS arch/arm64/kernel/vmlinux.lds
AR arch/arm64/kernel/built-in.o
AR ipc/built-in.o
CC security/integrity/iint.o
CC mm/mmu_context.o
CC security/integrity/integrity_audit.o
CC fs/attr.o
CC kernel/pid.o
CC mm/percpu.o
AR security/integrity/integrity.o
AR security/integrity/built-in.o
CC security/keys/gc.o
CC fs/bad_inode.o
CC security/keys/key.o
CC kernel/task_work.o
CC mm/slab_common.o
CC fs/file.o
CC security/keys/keyring.o
CC kernel/extable.o
CC mm/compaction.o
CC kernel/params.o
CC fs/filesystems.o
CC security/keys/keyctl.o
CC security/keys/permission.o
CC kernel/kthread.o
CC fs/namespace.o
CC mm/vmacache.o
CC security/keys/process_keys.o
CC mm/swap_slots.o
CC kernel/sys_ni.o
CC kernel/nsproxy.o
CC mm/interval_tree.o
CC fs/seq_file.o
CC security/keys/request_key.o
CC kernel/notifier.o
CC mm/list_lru.o
CC fs/xattr.o
CC security/keys/request_key_auth.o
CC kernel/ksysfs.o
CC mm/workingset.o
CC security/keys/user_defined.o
CC kernel/cred.o
CC mm/debug.o
CC fs/libfs.o
CC security/keys/compat.o
CC fs/fs-writeback.o
CC mm/gup.o
CC kernel/reboot.o
CC security/keys/proc.o
CC security/keys/sysctl.o
CC mm/highmem.o
AR security/keys/built-in.o
GEN security/selinux/flask.h security/selinux/av_permissions.h
CC security/selinux/avc.o
CC kernel/async.o
CC fs/pnode.o
CC mm/memory.o
CC kernel/range.o
CC kernel/smpboot.o
CC fs/splice.o
CC security/selinux/hooks.o
CC kernel/ucount.o
CC mm/mincore.o
CC fs/sync.o
CC kernel/kmod.o
CC security/selinux/selinuxfs.o
CC mm/mlock.o
CC fs/utimes.o
CC kernel/groups.o
CC security/selinux/netlink.o
CC fs/stack.o
CC mm/mmap.o
CC security/selinux/nlmsgtab.o
CC kernel/bpf/core.o
CC fs/fs_struct.o
CC security/selinux/netif.o
CC mm/mprotect.o
CC fs/statfs.o
CC security/selinux/netnode.o
CC mm/mremap.o
CC kernel/bpf/syscall.o
CC fs/fs_pin.o
CC mm/msync.o
CC security/selinux/netport.o
CC fs/nsfs.o
CC mm/page_vma_mapped.o
CC fs/buffer.o
CC kernel/bpf/verifier.o
CC security/selinux/ibpkey.o
CC mm/pagewalk.o
CC mm/pgtable-generic.o
CC security/selinux/exports.o
CC fs/block_dev.o
CC mm/rmap.o
CC kernel/bpf/inode.o
CC security/selinux/ss/ebitmap.o
CC security/selinux/ss/hashtab.o
CC fs/direct-io.o
CC mm/vmalloc.o
CC security/selinux/ss/symtab.o
CC kernel/bpf/helpers.o
CC security/selinux/ss/sidtab.o
CC kernel/bpf/tnum.o
CC fs/mpage.o
CC mm/process_vm_access.o
CC security/selinux/ss/avtab.o
CC kernel/bpf/hashtab.o
CC mm/init-mm.o
CC kernel/bpf/arraymap.o
CC security/selinux/ss/policydb.o
CC mm/nobootmem.o
CC fs/proc_namespace.o
CC kernel/bpf/percpu_freelist.o
CC fs/configfs/inode.o
CC kernel/bpf/bpf_lru_list.o
CC mm/fadvise.o
CC security/selinux/ss/services.o
CC kernel/bpf/lpm_trie.o
CC fs/configfs/file.o
CC mm/madvise.o
CC fs/configfs/dir.o
CC security/selinux/ss/conditional.o
CC kernel/bpf/map_in_map.o
CC kernel/bpf/devmap.o
CC mm/memblock.o
CC fs/configfs/symlink.o
CC security/selinux/ss/mls.o
CC mm/page_io.o
CC kernel/bpf/stackmap.o
CC fs/configfs/mount.o
CC mm/swap_state.o
CC security/selinux/ss/status.o
CC fs/configfs/item.o
CC kernel/bpf/cgroup.o
CC mm/swapfile.o
AR fs/configfs/configfs.o
AR fs/configfs/built-in.o
CC fs/crypto/crypto.o
AR security/selinux/selinux.o
AR security/selinux/built-in.o
CC security/commoncap.o
AR kernel/bpf/built-in.o
CC kernel/cgroup/cgroup.o
CC security/min_addr.o
CC fs/crypto/fname.o
CC mm/dmapool.o
CC security/security.o
CC fs/crypto/hkdf.o
CC mm/sparse.o
CC fs/crypto/hooks.o
CC kernel/cgroup/namespace.o
CC security/lsm_audit.o
CC mm/sparse-vmemmap.o
CC fs/crypto/keyring.o
CC kernel/cgroup/cgroup-v1.o
CC mm/slub.o
AR security/built-in.o
CC crypto/api.o
CC fs/crypto/keysetup.o
CC kernel/cgroup/freezer.o
CC crypto/cipher.o
CC mm/migrate.o
CC fs/crypto/keysetup_v1.o
CC kernel/cgroup/cpuset.o
CC crypto/compress.o
CC fs/crypto/policy.o
CC crypto/memneq.o
CC mm/page_counter.o
CC kernel/cgroup/debug.o
CC mm/memcontrol.o
CC fs/crypto/bio.o
AR kernel/cgroup/built-in.o
CC kernel/events/core.o
CC crypto/crypto_wq.o
CC fs/crypto/inline_crypt.o
CC crypto/algapi.o
CC mm/vmpressure.o
AR fs/crypto/fscrypto.o
AR fs/crypto/built-in.o
CC fs/devpts/inode.o
CC kernel/events/ring_buffer.o
CC mm/swap_cgroup.o
AR fs/devpts/devpts.o
AR fs/devpts/built-in.o
CC fs/exfat/exfat_core.o
CC crypto/scatterwalk.o
CC mm/page_isolation.o
CC kernel/events/callchain.o
CC fs/exfat/exfat_super.o
CC mm/zsmalloc.o
CC crypto/proc.o
CC kernel/events/hw_breakpoint.o
CC fs/exfat/exfat_api.o
CC crypto/aead.o
CC mm/early_ioremap.o
CC kernel/events/uprobes.o
CC fs/exfat/exfat_blkdev.o
CC mm/cma.o
CC fs/exfat/exfat_cache.o
CC crypto/ablkcipher.o
CC mm/frame_vector.o
AR kernel/events/built-in.o
CC kernel/irq/irqdesc.o
CC fs/exfat/exfat_data.o
CC mm/usercopy.o
CC crypto/blkcipher.o
CC fs/exfat/exfat_bitmap.o
CC fs/exfat/exfat_nls.o
CC kernel/irq/handle.o
CC fs/exfat/exfat_oal.o
AR mm/built-in.o
CC block/bio.o
CC crypto/skcipher.o
CC fs/exfat/exfat_upcase.o
CC kernel/irq/manage.o
AR fs/exfat/exfat.o
AR fs/exfat/built-in.o
AR fs/exofs/built-in.o
CC fs/exportfs/expfs.o
CC block/elevator.o
CC kernel/irq/spurious.o
CC crypto/seqiv.o
AR fs/exportfs/exportfs.o
AR fs/exportfs/built-in.o
CC fs/ext4/balloc.o
CC kernel/irq/resend.o
CC crypto/echainiv.o
CC block/blk-core.o
CC fs/ext4/bitmap.o
CC kernel/irq/chip.o
CC crypto/ahash.o
CC fs/ext4/block_validity.o
CC kernel/irq/dummychip.o
CC fs/ext4/dir.o
CC crypto/shash.o
CC block/blk-tag.o
CC fs/ext4/ext4_jbd2.o
CC kernel/irq/devres.o
CC block/blk-sysfs.o
CC crypto/akcipher.o
CC fs/ext4/extents.o
CC kernel/irq/autoprobe.o
CC block/blk-flush.o
CC fs/ext4/extents_status.o
CC crypto/kpp.o
CC kernel/irq/irqdomain.o
CC block/blk-settings.o
CC fs/ext4/file.o
ASN.1 crypto/rsapubkey-asn1.c
ASN.1 crypto/rsaprivkey-asn1.c
CC crypto/rsa.o
CC fs/ext4/fsmap.o
CC kernel/irq/proc.o
CC block/blk-ioc.o
CC crypto/rsa_helper.o
CC crypto/rsa-pkcs1pad.o
CC kernel/irq/cpuhotplug.o
CC fs/ext4/fsync.o
CC kernel/irq/pm.o
CC block/blk-map.o
CC crypto/acompress.o
In file included from ./include/linux/kernel.h:14,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from fs/ext4/fsync.c:26:
fs/ext4/fsync.c: In function ‘ext4_sync_file’:
fs/ext4/fsync.c:174:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘kuid_t’ [-Wformat=]
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/printk.h:160:32: note: in definition of macro ‘no_printk’
160 | printk(fmt, ##__VA_ARGS__); \
| ^~~
fs/ext4/fsync.c:174:25: note: in expansion of macro ‘ext4_debug’
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~
fs/ext4/fsync.c:174:53: note: format string is defined here
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ~^
| |
| unsigned int
In file included from ./include/linux/kernel.h:14,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from fs/ext4/fsync.c:26:
fs/ext4/fsync.c:174:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘kgid_t’ [-Wformat=]
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/printk.h:160:32: note: in definition of macro ‘no_printk’
160 | printk(fmt, ##__VA_ARGS__); \
| ^~~
fs/ext4/fsync.c:174:25: note: in expansion of macro ‘ext4_debug’
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~
fs/ext4/fsync.c:174:61: note: format string is defined here
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ~^
| |
| unsigned int
CC fs/ext4/hash.o
CC fs/ext4/ialloc.o
CC block/blk-exec.o
CC kernel/irq/affinity.o
CC crypto/scompress.o
AR kernel/irq/built-in.o
AR kernel/livepatch/built-in.o
CC kernel/locking/mutex.o
CC fs/ext4/indirect.o
CC block/blk-merge.o
CC crypto/algboss.o
CC fs/ext4/inline.o
CC kernel/locking/semaphore.o
CC crypto/testmgr.o
CC block/blk-softirq.o
CC fs/ext4/inode.o
CC kernel/locking/rwsem.o
CC kernel/locking/percpu-rwsem.o
CC crypto/cmac.o
CC block/blk-timeout.o
CC fs/ext4/ioctl.o
CC kernel/locking/spinlock.o
CC crypto/hmac.o
CC block/blk-lib.o
CC fs/ext4/mballoc.o
CC crypto/xcbc.o
CC kernel/locking/osq_lock.o
CC kernel/locking/rtmutex.o
CC crypto/crypto_null.o
CC block/blk-mq.o
CC fs/ext4/migrate.o
CC kernel/locking/rwsem-xadd.o
CC fs/ext4/mmp.o
AR kernel/locking/built-in.o
CC kernel/power/qos.o
CC crypto/md5.o
CC block/blk-mq-tag.o
CC fs/ext4/move_extent.o
CC crypto/sha1_generic.o
CC kernel/power/main.o
CC fs/ext4/namei.o
CC block/blk-stat.o
CC fs/ext4/page-io.o
CC kernel/power/process.o
CC crypto/sha256_generic.o
CC block/blk-mq-sysfs.o
CC fs/ext4/readpage.o
CC kernel/power/suspend.o
CC crypto/sha512_generic.o
CC fs/ext4/resize.o
CC block/blk-mq-cpumap.o
CC kernel/power/wakelock.o
CC fs/ext4/super.o
CC crypto/gf128mul.o
CC block/blk-mq-sched.o
CC kernel/power/poweroff.o
CC kernel/power/wakeup_reason.o
CC crypto/ecb.o
CC fs/ext4/symlink.o
CC crypto/cbc.o
CC block/ioctl.o
AR kernel/power/built-in.o
CC kernel/printk/printk.o
CC crypto/cts.o
CC fs/ext4/sysfs.o
CC block/genhd.o
CC fs/ext4/xattr.o
CC crypto/xts.o
CC kernel/printk/printk_safe.o
AR kernel/printk/built-in.o
CC kernel/rcu/update.o
CC fs/ext4/xattr_trusted.o
CC block/partition-generic.o
CC crypto/ctr.o
CC fs/ext4/xattr_user.o
CC crypto/gcm.o
CC kernel/rcu/sync.o
CC fs/ext4/acl.o
CC block/ioprio.o
CC kernel/rcu/srcutree.o
CC crypto/ccm.o
CC fs/ext4/xattr_security.o
CC crypto/cryptd.o
CC block/badblocks.o
CC kernel/rcu/tree.o
CC fs/ext4/verity.o
AR fs/ext4/ext4.o
AR fs/ext4/built-in.o
CC fs/f2fs/dir.o
CC block/partitions/check.o
CC crypto/des_generic.o
CC block/partitions/msdos.o
CC kernel/rcu/rcu_segcblist.o
CC fs/f2fs/file.o
CC crypto/blowfish_generic.o
AR kernel/rcu/built-in.o
CC kernel/sched/core.o
CC block/partitions/efi.o
CC crypto/blowfish_common.o
CC fs/f2fs/inode.o
AR block/partitions/built-in.o
CC block/scsi_ioctl.o
In file included from ./arch/arm64/include/asm/bug.h:38,
from ./include/linux/bug.h:5,
from ./arch/arm64/include/asm/cmpxchg.h:21,
from ./arch/arm64/include/asm/atomic.h:41,
from ./include/linux/atomic.h:5,
from ./include/linux/rcupdate.h:38,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from kernel/sched/core.c:9:
kernel/sched/core.c: In function ‘uclamp_group_get’:
kernel/sched/core.c:1564:33: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘long unsigned int:53’ [-Wformat
]
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1565 | cpu, clamp_id, group_id,
1566 | uc_cpu->group[clamp_id][group_id].tasks);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int:53
./include/asm-generic/bug.h:90:71: note: in definition of macro ‘__WARN_printf’
90 | #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
| ^~~
kernel/sched/core.c:1564:25: note: in expansion of macro ‘WARN’
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ^~~~
kernel/sched/core.c:1564:82: note: format string is defined here
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ~^
| |
| unsigned int
kernel/sched/core.c: In function ‘__schedule_bug’:
kernel/sched/core.c:4496:13: warning: unused variable ‘i’ [-Wunused-variable]
4496 | int i = 0;
| ^
CC crypto/twofish_generic.o
CC fs/f2fs/namei.o
CC crypto/twofish_common.o
CC block/noop-iosched.o
CC fs/f2fs/hash.o
CC crypto/aes_generic.o
CC block/deadline-iosched.o
CC kernel/sched/loadavg.o
CC fs/f2fs/super.o
CC block/cfq-iosched.o
CC crypto/arc4.o
CC kernel/sched/clock.o
CC crypto/deflate.o
CC block/mq-deadline.o
CC fs/f2fs/inline.o
CC kernel/sched/cputime.o
CC crypto/crc32c_generic.o
CC block/kyber-iosched.o
CC fs/f2fs/checkpoint.o
CC crypto/crc32_generic.o
CC block/compat_ioctl.o
CC kernel/sched/idle_task.o
CC fs/f2fs/gc.o
CC crypto/authenc.o
CC block/blk-wbt.o
CC kernel/sched/fair.o
CC fs/f2fs/data.o
kernel/sched/fair.c: In function ‘load_balance’:
kernel/sched/fair.c:11104:25: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
11104 | int cpu = env.dst_cpu;
| ^~~
In file included from kernel/sched/fair.c:12662:
kernel/sched/eas_plus.c: In function ‘update_sg_util’:
kernel/sched/eas_plus.c:912:35: warning: unused variable ‘sg’ [-Wunused-variable]
912 | const struct sched_group *sg;
| ^~
kernel/sched/eas_plus.c:911:30: warning: unused variable ‘sd’ [-Wunused-variable]
911 | struct sched_domain *sd;
| ^~
CC crypto/authencesn.o
CC block/keyslot-manager.o
CC fs/f2fs/node.o
CC kernel/sched/rt.o
CC crypto/lzo.o
CC block/bio-crypt-ctx.o
CC crypto/lz4.o
CC fs/f2fs/segment.o
CC kernel/sched/deadline.o
CC crypto/rng.o
CC kernel/sched/wait.o
CC block/blk-crypto.o
CC fs/f2fs/recovery.o
In file included from block/blk-crypto.c:14:
block/blk-crypto.c: In function ‘blk_crypto_flock’:
./include/linux/keyslot-manager.h:101:13: error: inlining failed in call to ‘always_inline’ ‘ksm_flock’: function body not available
101 | inline void ksm_flock(struct keyslot_manager *ksm, unsigned int flags);
| ^~~~~~~~~
block/blk-crypto.c:310:9: note: called from here
310 | ksm_flock(ksm, flags);
| ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:356: block/blk-crypto.o] Error 1
make: *** [Makefile:1198: block] Error 2
make: *** Waiting for unfinished jobs....
CC crypto/drbg.o
CC fs/f2fs/shrinker.o
CC kernel/sched/wait_bit.o
CC kernel/sched/swait.o
CC crypto/jitterentropy.o
CC crypto/jitterentropy-kcapi.o
CC fs/f2fs/extent_cache.o
CC kernel/sched/completion.o
CC fs/f2fs/sysfs.o
CC crypto/ghash-generic.o
CC kernel/sched/idle.o
CC fs/f2fs/debug.o
CC fs/f2fs/xattr.o
CC crypto/asymmetric_keys/asymmetric_type.o
CC crypto/asymmetric_keys/restrict.o
CC fs/f2fs/acl.o
CC fs/f2fs/verity.o
CC kernel/sched/cpupri.o
CC crypto/asymmetric_keys/signature.o
CC crypto/asymmetric_keys/public_key.o
CC kernel/sched/cpudeadline.o
AR fs/f2fs/f2fs.o
AR fs/f2fs/built-in.o
CC fs/fat/cache.o
CC kernel/sched/topology.o
CC fs/fat/dir.o
CC fs/fat/fatent.o
ASN.1 crypto/asymmetric_keys/x509-asn1.c
ASN.1 crypto/asymmetric_keys/x509_akid-asn1.c
CC crypto/asymmetric_keys/x509_public_key.o
CC kernel/sched/stop_task.o
ASN.1 crypto/asymmetric_keys/pkcs7-asn1.c
CC crypto/asymmetric_keys/pkcs7_trust.o
CC crypto/asymmetric_keys/pkcs7_verify.o
CC fs/fat/file.o
CC kernel/sched/energy.o
AR crypto/asymmetric_keys/asymmetric_keys.o
CC kernel/sched/stats.o
CC crypto/asymmetric_keys/x509-asn1.o
CC crypto/asymmetric_keys/x509_akid-asn1.o
CC crypto/asymmetric_keys/x509_cert_parser.o
CC crypto/asymmetric_keys/pkcs7-asn1.o
CC kernel/sched/debug.o
CC fs/fuse/dev.o
CC crypto/asymmetric_keys/pkcs7_parser.o
CC fs/fat/inode.o
CC kernel/sched/tune.o
AR crypto/asymmetric_keys/x509_key_parser.o
AR crypto/asymmetric_keys/pkcs7_message.o
AR crypto/asymmetric_keys/built-in.o
CC crypto/hash_info.o
CC crypto/simd.o
CC fs/fuse/dir.o
CC fs/fat/misc.o
CC fs/fuse/file.o
CC kernel/sched/cpuacct.o
AR crypto/crypto.o
AR crypto/crypto_algapi.o
AR crypto/crypto_blkcipher.o
AR crypto/crypto_hash.o
CC crypto/rsapubkey-asn1.o
CC crypto/rsaprivkey-asn1.o
AR crypto/crypto_acompress.o
AR crypto/cryptomgr.o
AR crypto/jitterentropy_rng.o
AR crypto/crypto_simd.o
AR crypto/rsa_generic.o
AR crypto/built-in.o
CC kernel/sched/cpufreq.o
CC fs/fat/nfs.o
CC fs/fat/namei_vfat.o
CC fs/incfs/data_mgmt.o
CC fs/fat/namei_msdos.o
CC kernel/sched/cpufreq_schedutil.o
CC fs/fuse/inode.o
CC fs/incfs/format.o
AR fs/fat/fat.o
AR fs/fat/vfat.o
AR fs/fat/msdos.o
AR fs/fat/built-in.o
CC fs/isofs/namei.o
CC fs/incfs/integrity.o
CC fs/isofs/inode.o
CC fs/fuse/control.o
CC fs/incfs/main.o
CC kernel/sched/membarrier.o
CC fs/incfs/vfs.o
CC fs/fuse/xattr.o
CC fs/isofs/dir.o
CC kernel/sched/psi.o
CC fs/isofs/util.o
CC fs/fuse/acl.o
AR fs/incfs/incrementalfs.o
AR fs/incfs/built-in.o
CC fs/fuse/passthrough.o
AR kernel/sched/built-in.o
CC fs/isofs/rock.o
CC kernel/time/time.o
CC kernel/time/timer.o
AR fs/fuse/fuse.o
AR fs/fuse/built-in.o
CC fs/jbd2/transaction.o
CC fs/isofs/export.o
CC fs/isofs/joliet.o
CC fs/isofs/compress.o
CC fs/jbd2/commit.o
CC kernel/time/hrtimer.o
CC kernel/time/timekeeping.o
AR fs/isofs/isofs.o
AR fs/isofs/built-in.o
CC fs/jbd2/recovery.o
CC kernel/time/ntp.o
CC fs/jbd2/checkpoint.o
CC fs/jbd2/revoke.o
CC fs/kernfs/mount.o
CC kernel/time/clocksource.o
CC fs/jbd2/journal.o
CC fs/kernfs/inode.o
CC kernel/time/jiffies.o
CC kernel/trace/trace_clock.o
CC fs/kernfs/dir.o
CC kernel/time/timer_list.o
AR fs/jbd2/jbd2.o
AR fs/jbd2/built-in.o
CC fs/nls/nls_base.o
CC kernel/trace/ring_buffer.o
CC kernel/time/timeconv.o
CC fs/kernfs/file.o
CC fs/nls/nls_cp437.o
CC kernel/time/timecounter.o
CC kernel/time/alarmtimer.o
CC fs/nls/nls_cp950.o
CC kernel/trace/trace.o
CC fs/kernfs/symlink.o
CC fs/nls/nls_ascii.o
AR fs/kernfs/built-in.o
CC fs/nls/nls_iso8859-1.o
CC fs/notify/fsnotify.o
CC kernel/time/posix-timers.o
CC fs/nls/nls_utf8.o
AR fs/nls/built-in.o
CC kernel/time/posix-cpu-timers.o
CC kernel/time/posix-clock.o
CC fs/notify/notification.o
CC kernel/trace/trace_output.o
CC kernel/time/itimer.o
CC fs/notify/group.o
CC kernel/time/clockevents.o
CC fs/overlayfs/super.o
CC kernel/trace/trace_seq.o
CC fs/notify/mark.o
CC fs/overlayfs/namei.o
CC kernel/time/tick-common.o
CC kernel/trace/trace_stat.o
CC fs/notify/fdinfo.o
CC fs/overlayfs/util.o
CC fs/notify/dnotify/dnotify.o
CC fs/overlayfs/inode.o
CC kernel/trace/trace_printk.o
AR fs/notify/dnotify/built-in.o
AR fs/notify/fanotify/built-in.o
CC kernel/time/tick-broadcast.o
CC fs/overlayfs/dir.o
CC fs/notify/inotify/inotify_fsnotify.o
CC fs/notify/inotify/inotify_user.o
CC fs/overlayfs/readdir.o
CC kernel/trace/trace_sched_switch.o
CC kernel/time/tick-broadcast-hrtimer.o
CC fs/overlayfs/copy_up.o
AR fs/notify/inotify/built-in.o
AR fs/notify/built-in.o
CC kernel/time/sched_clock.o
CC kernel/trace/trace_nop.o
CC kernel/time/tick-oneshot.o
CC kernel/trace/blktrace.o
AR fs/overlayfs/overlay.o
AR fs/overlayfs/built-in.o
CC fs/proc/task_mmu.o
CC fs/proc/inode.o
CC kernel/time/tick-sched.o
CC kernel/time/timer_list_aee.o
CC fs/proc/root.o
CC kernel/trace/trace_events.o
CC fs/proc/base.o
AR kernel/time/built-in.o
CC kernel/freezer.o
CC kernel/profile.o
CC fs/proc/generic.o
CC kernel/trace/trace_export.o
CC kernel/trace/trace_event_perf.o
CC kernel/stacktrace.o
CC kernel/futex.o
CC fs/proc/array.o
CC fs/proc/fd.o
CC kernel/trace/trace_events_filter.o
CC kernel/trace/trace_events_trigger.o
CC fs/proc/proc_tty.o
CC fs/proc/cmdline.o
CC kernel/smp.o
CC fs/proc/consoles.o
CC kernel/trace/bpf_trace.o
CC fs/proc/cpuinfo.o
CC kernel/trace/power-traces.o
CC kernel/trace/rpm-traces.o
CC fs/proc/devices.o
CC fs/proc/interrupts.o
CC fs/proc/loadavg.o
CC kernel/trace/trace_probe.o
CC kernel/trace/trace_uprobe.o
CC fs/proc/meminfo.o
CC fs/proc/stat.o
CC kernel/trace/mtk_trace.o
CC fs/proc/uptime.o
CC fs/proc/version.o
CC fs/proc/softirqs.o
CC fs/proc/namespaces.o
CC fs/proc/self.o
AR kernel/trace/built-in.o
CC kernel/uid16.o
CC fs/proc/thread_self.o
CC kernel/module.o
CC fs/proc/uid.o
CC fs/proc/proc_sysctl.o
CC fs/proc/proc_net.o
CC fs/proc/kmsg.o
CC kernel/kallsyms.o
CC kernel/compat.o
CC kernel/utsname.o
CC fs/proc/page.o
CC kernel/pid_namespace.o
AR fs/proc/proc.o
AR fs/proc/built-in.o
CC fs/pstore/inode.o
CC fs/pstore/platform.o
GZIP kernel/config_data.gz
CC kernel/stop_machine.o
CC kernel/audit.o
CC fs/quota/dquot.o
CC fs/pstore/pmsg.o
CC fs/quota/quota_v2.o
CC fs/pstore/ram.o
CC kernel/auditfilter.o
CC fs/quota/quota_tree.o
CC fs/pstore/ram_core.o
CC kernel/auditsc.o
AR fs/pstore/pstore.o
AR fs/pstore/ramoops.o
AR fs/pstore/built-in.o
CC kernel/audit_watch.o
CC fs/ramfs/inode.o
CC fs/quota/quota.o
CC fs/ramfs/file-mmu.o
CC kernel/audit_fsnotify.o
CC fs/quota/kqid.o
CC fs/quota/netlink.o
AR fs/ramfs/ramfs.o
AR fs/ramfs/built-in.o
CC fs/sdcardfs/dentry.o
CC kernel/audit_tree.o
CC kernel/seccomp.o
CC fs/sdcardfs/file.o
AR fs/quota/built-in.o
CC fs/sdcardfs/inode.o
CC fs/sdcardfs/main.o
CC kernel/utsname_sysctl.o
CC kernel/delayacct.o
CC fs/sysfs/file.o
CC fs/sdcardfs/super.o
CC fs/sysfs/dir.o
CC kernel/taskstats.o
CC fs/sdcardfs/lookup.o
CC fs/sysfs/symlink.o
CC fs/sdcardfs/mmap.o
CC fs/sdcardfs/packagelist.o
CC kernel/tsacct.o
CC fs/sdcardfs/derived_perm.o
CC fs/sysfs/mount.o
CC kernel/tracepoint.o
CC kernel/elfcore.o
AR fs/sdcardfs/sdcardfs.o
AR fs/sdcardfs/built-in.o
CC fs/sysfs/group.o
CC fs/tracefs/inode.o
CC kernel/irq_work.o
CC fs/verity/enable.o
AR fs/tracefs/tracefs.o
AR fs/tracefs/built-in.o
CC fs/verity/hash_algs.o
AR fs/sysfs/built-in.o
CC fs/eventpoll.o
CC kernel/cpu_pm.o
CC fs/verity/init.o
CC fs/verity/measure.o
CC fs/anon_inodes.o
CC kernel/memremap.o
CHK kernel/kheaders_data.tar.xz
CC fs/verity/open.o
CC fs/verity/verify.o
CC fs/verity/signature.o
CC fs/signalfd.o
CC fs/timerfd.o
AR fs/verity/built-in.o
CC fs/eventfd.o
CC fs/aio.o
CC fs/locks.o
CC fs/compat.o
CHK kernel/config_data.h
UPD kernel/config_data.h
CC fs/compat_ioctl.o
CC kernel/configs.o
CC fs/binfmt_script.o
CC fs/binfmt_elf.o
CC fs/compat_binfmt_elf.o
AR kernel/built-in.o
CC fs/mbcache.o
CC fs/posix_acl.o
CC fs/coredump.o
CC fs/drop_caches.o
CC fs/dcookies.o
AR fs/built-in.o
GEN kernel/kheaders_data.tar.xz
./kernel/gen_kheaders.sh: line 61: /tools/build/cpio: No such file or directory
make[1]: ***
make: *** [Makefile:1198: kernel] Error 2
I apologize for the format as I am not familiar about formatting in XDA.
Click to expand...
Click to collapse
Where it says "cpio: no such file or directory", this could be a result of cpio being in your code but not being in the right place in order for makefile to find it. Or it could have failed at package install but didn't give you an error to let you know it failed. Or maybe it doesn't have exactly the right file name for makefile to find it.
Do a Google search for:
"[kernel/Makefile:142: kernel/kheaders_data.tar.xz] Error 127"
And
" [Makefile:1198: kernel] Error 2"
Then read through your results, you should find instances of others encountering these errors and discussions of how to solve them.
downgrade cpio v2.12
https://forum.xda-developers.com/t/...ithout-losing-your-data.4383255/post-86501575
aIecxs said:
downgrade cpio v2.12
https://forum.xda-developers.com/t/...ithout-losing-your-data.4383255/post-86501575
Click to expand...
Click to collapse
Thanks sir! My problem is solved but I have another problem. Should I start a new thread?
anything about compiling, WSL, or Kernel you can keep in this thread
aIecxs said:
anything about compiling, WSL, or Kernel you can keep in this thread
Click to expand...
Click to collapse
I am now using Proton-Clang toolchain because of its simplicity, now again, my kernel doesn't compile and it is throwing this exception:
Code:
Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[2]: *** [/mnt/d/ronron/Xiaomi_Kernel_OpenSource/Makefile:1314: prepare-compiler-check] Error 1
make[1]: *** [Makefile:146: sub-make] Error 2
make: *** [Makefile:24: __sub-make] Error 2
The README.md for the proton-clang states:
This error is actually a result of stack protector checks in the Makefile that cause the real error to be masked. It indicates that one or more unsupported compiler flags have been passed to Clang. Disable `CONFIG_CC_STACKPROTECTOR_STRONG` in favor of `CONFIG_CC_STACKPROTECTOR_NONE` temporarily (make sure you don't keep this change permanently for security reasons) and Clang will output the flag that is causing the problem.
In downstream kernels, the cause is usually big.LITTLE CPU optimization flags that have been added to the Makefile unconditionally. The correct solution is to check `cc-name` for the current compiler and adjust the optimization flags accordingly — big.LITTLE for GCC and little-only for Clang. See ["Makefile: Optimize for sm8150's Kryo 485 CPU setup"](https://github.com/kdrag0n/proton_zf6/commit/f45e4ffbecd1c059aa49d8a119b50ee84d7f9d0f) for an example implementation of this.
Click to expand...
Click to collapse
In my Kernel's source Makefile states:
Code:
# Make sure compiler supports requested stack protector flag.
ifdef stackp-name
ifeq ($(call cc-option, $(stackp-flag)),)
@echo Cannot use CONFIG_CC_STACKPROTECTOR_$(stackp-name): \
$(stackp-flag) not supported by compiler >&2 && exit 1
endif
endif
I have been searching this up on google and apparantly clang doesn't have some stack protections.
I would want to enable stack protection as I want to secure my kernel.
I built a bash script to automate the build process:
Code:
#!/bin/bash
#
# ============================================================
# Automated Bash Script made by Ronald Campos (c)
#
# This Bash Script is executed to compile and build kernel
# sources easily and conveniently without having to deal
# with typing commands.
#
# To execute this script, you need to execute:
# 'chmod a+x build_automate.sh'
# Finally, load script to memory to start building/compiling:
# './build_automate.sh'
# ============================================================
#
clear # clear and clean the screen/terminal up
# setup print variables for ease
NWLNE=$'\n'
SIGL_APOSTRPH=$'\''
#START
# setup environment variables
echo "Welcome to Ronald Campos$SIGL_APOSTRPH Build/Compile Automation Bash Script!$NWLNE"
echo "Setting up environment variables...$NWLNE"
echo "The Source and Output folder must be contained inside the HOME directory.$NWLNE"
read -p "Preferred location of HOME: " prefHome
read -p "Location of Proton-Clang Toolchain: $prefHome/" toolchain_path
read -p "Output Folder: $prefHome/" output_dir
read -p "Kernel Source Folder: $prefHome/" source_dir
echo -e
export HOME=$prefHome && export PATH="$HOME/$toolchain_path/bin:$PATH"
export OUTPUT_DIRECTORY=$HOME/$output_dir && export SOURCE_DIRECTORY=$HOME/$source_dir
# setup compiler variables
echo "Setting up compiler variables...$NWLNE"
export CROSS_COMPILE=aarch64-linux-gnu- && export CROSS_COMPILE_ARM32=arm-linux-gnueabi-
export ARCH=arm64 && SUBARCH=arm64
echo "Summary:"
echo "CROSS_COMPILE - $CROSS_COMPILE"
echo "CROSS_COMPILE for ARM32 - $CROSS_COMPILE_ARM32"
echo "Target Build Architecture - $ARCH"
echo "Default Compiler: Clang $NWLNE"
# clean directory
echo "Cleaning build directory..."
echo "There might be errors cleaning an empty build directory. It's normal.$NWLNE"
cd $OUTPUT_DIRECTORY
echo "I swear this isn't hanging, I just turned off verbose logging to keep output clean. If you want output, just go ahead to the output folder and open *.log"
echo "Currently executing: $SIGL_APOSTRPH make clean $SIGL_APOSTRPH"
make -j$(nproc --all) clean &> clean_out.log
echo "Currently executing: $SIGL_APOSTRPH make distclean $SIGL_APOSTRPH"
make -j$(nproc --all) distclean &> distclean_out.log
echo "Currently executing: $SIGL_APOSTRPH make mrproper $SIGL_APOSTRPH $NWLNE"
make -j$(nproc --all) mrproper &> mrproper_out.log
echo "Done cleaning build directory!$NWLNE $NWLNE"
# prepare for build/compilation
cd $SOURCE_DIRECTORY
echo "Make sure your defconfig is in the root folder of your kernel source!$NWLNE"
# start compilation
read -p "Defconfig file: $prefHome/$source_dir/" CODENAME_DEFCONFIG
echo "Currently executing: make $CODENAME_DEFCONFIG"
make O=$OUTPUT_DIRECTORY $CODENAME_DEFCONFIG &> defconfig_out.log
echo "configuration written to $SIGL_APOSTRPH .config $SIGL_APOSTRPH $NWLNE"
cd $OUTPUT_DIRECTORY
echo "Building/Compiling Kernel... $NWLNE"
make CC=clang \
AR=llvm-ar \
NM=llvm-nm \
OBJCOPY=llvm-objcopy \
OBJDUMP=llvm-objdump \
LD=lld \
STRIP=llvm-strip\
-j$(nproc --all) &> make_out.log
DONE=1
echo "Done! Exiting... check make_out.log for information about compilation"
#END
and as always thank you for your time.
haven't read your post, but maybe that helps...
https://github.com/nathanchance/android-kernel-clang
according to your research one have to optimize for cortex-a55 only. you can replace mcpu/mtune flags or add this check against compiler cc-name in makefile, like this:
Makefile: Optimize for sm8150's Kryo 485 CPU setup
aIecxs said:
according to your research one have to optimize for cortex-a55 only. you can replace mcpu/mtune flags or add this check against compiler cc-name in makefile, like this:
Makefile: Optimize for sm8150's Kryo 485 CPU setup
Click to expand...
Click to collapse
okay, my problem has been solved after adding the check, now my problem is getting an error about unrecognized -el
I have checked my environment variables and is still the problem.
The readme says that it has something to do clang's 12 (I have clang 14) handling of cross compiling and to top it all off i don't think my kernel supports vdso.
this is driving me nuts rn.
are theses sources intended to compile with clang? last time I compiled kernel I spend days to apply clang patches, as the sources were for gcc.
as for the first just googled this...
https://stackoverflow.com/questions/66799641/usr-bin-as-unrecognized-option-el
aIecxs said:
are theses sources intended to compile with clang? last time I compiled kernel I spend days to apply clang patches, as the sources were for gcc.
as for the first just googled this...
https://stackoverflow.com/questions/66799641/usr-bin-as-unrecognized-option-el
Click to expand...
Click to collapse
I don't even know last time I checked with the Makefile, there were comments about for gcc and clang it even has a LTO and CFI option on its menuconfig. Oh and btw, the error is in my toolchain, "/mnt/d/ronron/toolchains/proton-clang/bin/as".
In addition, my kernel is on 4.14.186 and the reason I moved to clang is that I encountered a ksm_flock function inline error and when I searched for it, it needs LTO that is only available for Clang.
"msm-4.14 and newer uses clang by default so there is no need for a patch stack"
did you try the path switch trick (2nd answer)?
aIecxs said:
"msm-4.14 and newer uses clang by default so there is no need for a patch stack"
did you try the path switch trick (2nd answer)?
Click to expand...
Click to collapse
yes, "$HOME/toolchains/proton-clang/bin:$PATH"
I read the README.md and attempted to fix by merging a code into the kernel source's Makefile and now it works! thanks for the help btw, @Alecxs
kindly post solution so others can learn from you, thx.
If you continue to encounter this error after verifying `CROSS_COMPILE` and `PATH`, you are probably running into a change in Clang 12's handling of cross-compiling. The fix is to either merge linux-stable (which already has the fix included) cherry-pick ["Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation"](https://github.com/kdrag0n/proton_zf6/commit/6e87fec9a3df5) manually.
Click to expand...
Click to collapse
how did you merge ? from what linux branch ?
i get this error when trying to compile redmi note 10s (maltose) kernel on fedora 37
make ARCH=arm64 CROSS_COMPILE=/bin/aarch64-linux-gnu- LD=/bin/aarch64-linux-gnu-ld
Click to expand...
Click to collapse
CHK kernel/kheaders_data.tar.xz
GEN kernel/kheaders_data.tar.xz
./kernel/gen_kheaders.sh: line 61: /tools/build/cpio: No such file or directory
make[1]: *** [kernel/Makefile:142: kernel/kheaders_data.tar.xz] Error 127
make: *** [Makefile:1163: kernel] Error 2
Click to expand...
Click to collapse

[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