"ioctl: Not a typewriter" when testing kcov Android kernel.

96 views
Skip to first unread message

Eacials Chan

unread,
Dec 4, 2019, 3:23:40 PM12/4/19
to Android Building
Hello!

I want to use kcov of android kernel. And these are my steps.

Phone: pixel3
Kenel version: android-msm-crosshatch-4.9-pie-qpr2

1. Download kernel source using repo:
repo init -u https://aosp.tuna.tsinghua.edu.cn/kernel/manifest -b android-msm-crosshatch-4.9-pie-qpr2
repo sync

2. Use the config file  ${repo}/private/msm-google/build.config.kasan to compile kernel.
BUILD_CONFIG=${repo}/private/msm-google/build.config.kasan build/build.sh
Then I got a compiled kernel "Image.lz4-dtb".

3. flash my kernel:
adb reboot bootloader
fastboot boot 
Image.lz4-dtb

and cross-compile it into arm64. Adb push the binary into my pixel3

5. Run the binary and got the error:

ioctl: Not a typewriter

Below are the lines about kcov in config file:${repo}/out/android-msm-bluecross-4.9/dist/.config

CONFIG_ARCH_HAS_KCOV=y
CONFIG_KCOV=y
CONFIG_KCOV_INSTRUMENT_ALL=y


How can I fix this? T.T

regards,
chenyixiu
Reply all
Reply to author
Forward
0 new messages