[Xiaomi Mi 4C] Urik26:
Oh, just being stupid)) I will try, thank you!

---------- Post added at 07:08 PM ---------- Previous post was at 07:06 PM ----------

I've tried your instruction on the first page and here it is:

urik26@urik26:~/android/libra/kernel$ make O=/home/urik26/android/libra/kernel-out -j1

Using /home/urik26/android/libra/kernel as source for kernel

GEN /home/urik26/android/libra/kernel-out/Makefile

CHK include/generated/uapi/linux/version.h

CHK include/generated/utsrelease.h

CC kernel/bounds.s

In file included from /home/urik26/android/libra/kernel/include/linux/page-flags.h:8:0,

from /home/urik26/android/libra/kernel/kernel/bounds.c:9:

/home/urik26/android/libra/kernel/include/linux/types.h:146:9: error: unknown type name 'u64'

typedef u64 dma_addr_t;

^

/home/urik26/android/libra/kernel/include/linux/types.h:162:9: error: unknown type name 'u64'

typedef u64 phys_addr_t;

^

In file included from /home/urik26/android/libra/kernel/include/linux/byteorder/little_endian.h:6:0,

from /home/urik26/android/libra/kernel/arch/arm64/include/uapi/asm/byteorder.h:22,

from /home/urik26/android/libra/kernel/include/asm-generic/bitops/le.h:5,

from /home/urik26/android/libra/kernel/arch/arm64/include/asm/bitops.h:50,

from /home/urik26/android/libra/kernel/include/linux/bitops.h:30,

from /home/urik26/android/libra/kernel/include/linux/kernel.h:10,

from /home/urik26/android/libra/kernel/include/asm-generic/bug.h:13,

from /home/urik26/android/libra/kernel/arch/arm64/include/asm/bug.h:48,

from /home/urik26/android/libra/kernel/include/linux/bug.h:4,

from /home/urik26/android/libra/kernel/include/linux/page-flags.h:9,

from /home/urik26/android/libra/kernel/kernel/bounds.c:9:

/home/urik26/android/libra/kernel/include/linux/byteorder/generic.h:143:46: error: unknown type name 'u16'

static inline void le16_add_cpu(__le16 *var, u16 val)

^

/home/urik26/android/libra/kernel/include/linux/byteorder/generic.h:148:46: error: unknown type name 'u32'

static inline void le32_add_cpu(__le32 *var, u32 val)

^

/home/urik26/android/libra/kernel/include/linux/byteorder/generic.h:153:46: error: unknown type name 'u64'

static inline void le64_add_cpu(__le64 *var, u64 val)

^

/home/urik26/android/libra/kernel/include/linux/byteorder/generic.h:158:46: error: unknown type name 'u16'

static inline void be16_add_cpu(__be16 *var, u16 val)

^

/home/urik26/android/libra/kernel/include/linux/byteorder/generic.h:163:46: error: unknown type name 'u32'

static inline void be32_add_cpu(__be32 *var, u32 val)

^

/home/urik26/android/libra/kernel/include/linux/byteorder/generic.h:168:46: error: unknown type name 'u64'

static inline void be64_add_cpu(__be64 *var, u64 val)

^

In file included from /home/urik26/android/libra/kernel/include/linux/kernel.h:10:0,

from /home/urik26/android/libra/kernel/include/asm-generic/bug.h:13,

from /home/urik26/android/libra/kernel/arch/arm64/include/asm/bug.h:48,

from /home/urik26/android/libra/kernel/include/linux/bug.h:4,

from /home/urik26/android/libra/kernel/include/linux/page-flags.h:9,

from /home/urik26/android/libra/kernel/kernel/bounds.c:9:

/home/urik26/android/libra/kernel/include/linux/bitops.h:203:37: error: unknown type name 'u64'

static inline unsigned long __ffs64(u64 word)

^

In file included from /home/urik26/android/libra/kernel/include/linux/kernel.h:11:0,

from /home/urik26/android/libra/kernel/include/asm-generic/bug.h:13,

from /home/urik26/android/libra/kernel/arch/arm64/include/asm/bug.h:48,

from /home/urik26/android/libra/kernel/include/linux/bug.h:4,

from /home/urik26/android/libra/kernel/include/linux/page-flags.h:9,

from /home/urik26/android/libra/kernel/kernel/bounds.c:9:

/home/urik26/android/libra/kernel/include/linux/log2.h:32:17: error: unknown type name 'u32'

int __ilog2_u32(u32 n)

^

/home/urik26/android/libra/kernel/include/linux/log2.h:40:17: error: unknown type name 'u64'

int __ilog2_u64(u64 n)

^

In file included from /home/urik26/android/libra/kernel/include/asm-generic/bug.h:13:0,

from /home/urik26/android/libra/kernel/arch/arm64/include/asm/bug.h:48,

from /home/urik26/android/libra/kernel/include/linux/bug.h:4,

from /home/urik26/android/libra/kernel/include/linux/page-flags.h:9,

from /home/urik26/android/libra/kernel/kernel/bounds.c:9:

/home/urik26/android/libra/kernel/include/linux/kernel.h:284:76: error: unknown type name 'u64'

static inline int __must_check kstrtou64(const char *s, unsigned int base, u64 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:289:76: error: unknown type name 's64'

static inline int __must_check kstrtos64(const char *s, unsigned int base, s64 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:294:76: error: unknown type name 'u32'

static inline int __must_check kstrtou32(const char *s, unsigned int base, u32 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:299:76: error: unknown type name 's32'

static inline int __must_check kstrtos32(const char *s, unsigned int base, s32 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:304:62: error: unknown type name 'u16'

int __must_check kstrtou16(const char *s, unsigned int base, u16 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:305:62: error: unknown type name 's16'

int __must_check kstrtos16(const char *s, unsigned int base, s16 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:306:61: error: unknown type name 'u8'

int __must_check kstrtou8(const char *s, unsigned int base, u8 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:307:61: error: unknown type name 's8'

int __must_check kstrtos8(const char *s, unsigned int base, s8 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:315:93: error: unknown type name 'u16'

int __must_check kstrtou16_from_user(const char __user *s, size_t count, unsigned int base, u16 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:316:93: error: unknown type name 's16'

int __must_check kstrtos16_from_user(const char __user *s, size_t count, unsigned int base, s16 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:317:92: error: unknown type name 'u8'

int __must_check kstrtou8_from_user(const char __user *s, size_t count, unsigned int base, u8 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:318:92: error: unknown type name 's8'

int __must_check kstrtos8_from_user(const char __user *s, size_t count, unsigned int base, s8 *res);

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:320:107: error: unknown type name 'u64'

static inline int __must_check kstrtou64_from_user(const char __user *s, size_t count, unsigned int base, u64 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:325:107: error: unknown type name 's64'

static inline int __must_check kstrtos64_from_user(const char __user *s, size_t count, unsigned int base, s64 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:330:107: error: unknown type name 'u32'

static inline int __must_check kstrtou32_from_user(const char __user *s, size_t count, unsigned int base, u32 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:335:107: error: unknown type name 's32'

static inline int __must_check kstrtos32_from_user(const char __user *s, size_t count, unsigned int base, s32 *res)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:435:46: error: unknown type name 'u8'

static inline char *hex_byte_pack(char *buf, u8 byte)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:442:60: error: unknown type name 'u8'

static inline char * __deprecated pack_hex_byte(char *buf, u8 byte)

^

/home/urik26/android/libra/kernel/include/linux/kernel.h:448:33: error: unknown type name 'u8'

extern int __must_check hex2bin(u8 *dst, const char *src, size_t count);

^

make[2]: *** [kernel/bounds.s] Ошибка 1

make[1]: *** [prepare0] Ошибка 2

make: *** [sub-make] Ошибка 2

urik26@urik26:~/android/libra/kernel$

I used "git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9" toolchain.