Thanks.
I dont see Lima support in this 5.3-lima
and 5.3-main
config. Can I add this ?
CONFIG_DRM_LIMA=y
and I hope you have the updated lima in 5.3 right ?
I have no branch with lima, only added one for testing (5.3-lima). It depends at least on hdmi-changes and imho self-compiled mesa. i don’t know how to build mesa’its changes and how to test
Mesa 19.1.7 I can use from Arch Repo. I will follow your 5.3-lima branch and enable lima module in config, But were you able to compile it before with lima enabled?
In lima-branch lima is activated and dts-node present. Compile was working. @JohnnyWednesday says that mesa needs to be changed but not how so i was stuck at this point
I have also prepared hdmi (with fbdev) and poweroff, both are working in my quick tests
Continuing here from this thread.
Hi @frank-w I have put it to compile but it have asked me almost all the questions for config, just a sample below.
*
* Native language support
*
Native language support (NLS) [Y/?] (NEW) y
Default NLS Option (NLS_DEFAULT) [iso8859-1] (NEW)
Codepage 437 (United States, Canada) (NLS_CODEPAGE_437) [Y/n/m/?] y
Codepage 737 (Greek) (NLS_CODEPAGE_737) [N/m/y/?] (NEW)
Codepage 775 (Baltic Rim) (NLS_CODEPAGE_775) [N/m/y/?] (NEW)
Codepage 850 (Europe) (NLS_CODEPAGE_850) [N/m/y/?] (NEW)
Codepage 852 (Central/Eastern Europe) (NLS_CODEPAGE_852) [N/m/y/?] (NEW)
Codepage 855 (Cyrillic) (NLS_CODEPAGE_855) [N/m/y/?] (NEW)
Codepage 857 (Turkish) (NLS_CODEPAGE_857) [N/m/y/?] (NEW)
Codepage 860 (Portuguese) (NLS_CODEPAGE_860) [N/m/y/?] (NEW)
Codepage 861 (Icelandic) (NLS_CODEPAGE_861) [N/m/y/?] (NEW)
Codepage 862 (Hebrew) (NLS_CODEPAGE_862) [N/m/y/?] (NEW)
Codepage 863 (Canadian French) (NLS_CODEPAGE_863) [N/m/y/?] (NEW)
Codepage 864 (Arabic) (NLS_CODEPAGE_864) [N/m/y/?] (NEW)
Codepage 865 (Norwegian, Danish) (NLS_CODEPAGE_865) [N/m/y/?] (NEW)
Codepage 866 (Cyrillic/Russian) (NLS_CODEPAGE_866) [N/m/y/?] (NEW)
Codepage 869 (Greek) (NLS_CODEPAGE_869) [N/m/y/?] (NEW)
Simplified Chinese charset (CP936, GB2312) (NLS_CODEPAGE_936) [N/m/y/?] (NEW)
Traditional Chinese charset (Big5) (NLS_CODEPAGE_950) [N/m/y/?] (NEW)
Japanese charsets (Shift-JIS, EUC-JP) (NLS_CODEPAGE_932) [N/m/y/?] (NEW)
Korean charset (CP949, EUC-KR) (NLS_CODEPAGE_949) [N/m/y/?] (NEW)
Thai charset (CP874, TIS-620) (NLS_CODEPAGE_874) [N/m/y/?] (NEW)
Hebrew charsets (ISO-8859-8, CP1255) (NLS_ISO8859_8) [N/m/y/?] (NEW)
Windows CP1250 (Slavic/Central European Languages) (NLS_CODEPAGE_1250) [N/m/y/?] (NEW)
Windows CP1251 (Bulgarian, Belarusian) (NLS_CODEPAGE_1251) [N/m/y/?] (NEW)
ASCII (United States) (NLS_ASCII) [N/m/y/?] (NEW)
NLS ISO 8859-1 (Latin 1; Western European Languages) (NLS_ISO8859_1) [Y/n/m/?] y
NLS ISO 8859-2 (Latin 2; Slavic/Central European Languages) (NLS_ISO8859_2) [N/m/y/?] (NEW)
NLS ISO 8859-3 (Latin 3; Esperanto, Galician, Maltese, Turkish) (NLS_ISO8859_3) [N/m/y/?] (NEW)
NLS ISO 8859-4 (Latin 4; old Baltic charset) (NLS_ISO8859_4) [N/m/y/?] (NEW)
NLS ISO 8859-5 (Cyrillic) (NLS_ISO8859_5) [N/m/y/?] (NEW)
NLS ISO 8859-6 (Arabic) (NLS_ISO8859_6) [N/m/y/?] (NEW)
NLS ISO 8859-7 (Modern Greek) (NLS_ISO8859_7) [N/m/y/?] (NEW)
NLS ISO 8859-9 (Latin 5; Turkish) (NLS_ISO8859_9) [N/m/y/?] (NEW)
NLS ISO 8859-13 (Latin 7; Baltic) (NLS_ISO8859_13) [N/m/y/?] (NEW)
NLS ISO 8859-14 (Latin 8; Celtic) (NLS_ISO8859_14) [N/m/y/?] (NEW)
NLS ISO 8859-15 (Latin 9; Western European Languages with Euro) (NLS_ISO8859_15) [N/m/y/?] (NEW)
NLS KOI8-R (Russian) (NLS_KOI8_R) [N/m/y/?] (NEW)
NLS KOI8-U/RU (Ukrainian, Belarusian) (NLS_KOI8_U) [N/m/y/?] (NEW)
Codepage macroman (NLS_MAC_ROMAN) [N/m/y/?] (NEW)
Codepage macceltic (NLS_MAC_CELTIC) [N/m/y/?] (NEW)
Codepage maccenteuro (NLS_MAC_CENTEURO) [N/m/y/?] (NEW)
Codepage maccroatian (NLS_MAC_CROATIAN) [N/m/y/?] (NEW)
Codepage maccyrillic (NLS_MAC_CYRILLIC) [N/m/y/?] (NEW)
Codepage macgaelic (NLS_MAC_GAELIC) [N/m/y/?] (NEW)
Codepage macgreek (NLS_MAC_GREEK) [N/m/y/?] (NEW)
Codepage maciceland (NLS_MAC_ICELAND) [N/m/y/?] (NEW)
Codepage macinuit (NLS_MAC_INUIT) [N/m/y/?] (NEW)
Codepage macromanian (NLS_MAC_ROMANIAN) [N/m/y/?] (NEW)
Codepage macturkish (NLS_MAC_TURKISH) [N/m/y/?] (NEW)
NLS UTF-8 (NLS_UTF8) [Y/n/m/?] y
*
* Distributed Lock Manager (DLM)
*
Distributed Lock Manager (DLM) (DLM) [N/m/?] (NEW)
UTF-8 normalization and casefolding support (UNICODE) [N/y/?] (NEW)
*
* Security options
*
Enable access key retention support (KEYS) [Y/?] y
Enable temporary caching of the last request_key() result (KEYS_REQUEST_CACHE) [N/y/?] (NEW)
Enable register of persistent per-UID keyrings (PERSISTENT_KEYRINGS) [N/y/?] (NEW)
Large payload keys (BIG_KEYS) [N/y/?] (NEW)
ENCRYPTED KEYS (ENCRYPTED_KEYS) [N/m/y/?] (NEW)
Diffie-Hellman operations on retained keys (KEY_DH_OPERATIONS) [N/y/?] (NEW)
Restrict unprivileged access to the kernel syslog (SECURITY_DMESG_RESTRICT) [N/y/?] (NEW)
Enable different security models (SECURITY) [N/y/?] (NEW)
Enable the securityfs filesystem (SECURITYFS) [N/y/?] (NEW)
Harden memory copies between kernel and userspace (HARDENED_USERCOPY) [N/y/?] (NEW)
Harden common str/mem functions against buffer overflows (FORTIFY_SOURCE) [N/y/?] (NEW)
Force all usermode helper calls through a single binary (STATIC_USERMODEHELPER) [N/y/?] (NEW)
First legacy 'major LSM' to be initialized
> 1. Unix Discretionary Access Controls (DEFAULT_SECURITY_DAC) (NEW)
choice[1]: 1
Ordered list of enabled LSMs (LSM) [lockdown,yama,loadpin,safesetid,integrity] (NEW)
*
* Memory initialization
*
Initialize kernel stack variables at function entry
> 1. no automatic initialization (weakest) (INIT_STACK_NONE) (NEW)
2. zero-init structs marked for userspace (weak) (GCC_PLUGIN_STRUCTLEAK_USER) (NEW)
3. zero-init structs passed by reference (strong) (GCC_PLUGIN_STRUCTLEAK_BYREF) (NEW)
4. zero-init anything passed by reference (very strong) (GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) (NEW)
choice[1-4?]:
Enable heap memory zeroing on allocation by default (INIT_ON_ALLOC_DEFAULT_ON) [N/y/?] (NEW)
Enable heap memory zeroing on free by default (INIT_ON_FREE_DEFAULT_ON) [N/y/?] (NEW)
*
* Cryptographic API
*
Cryptographic API (CRYPTO) [Y/?] (NEW) y
*
* Crypto core or helper
*
Cryptographic algorithm manager (CRYPTO_MANAGER) [Y/?] (NEW) y
Userspace cryptographic algorithm configuration (CRYPTO_USER) [N/m/y/?] (NEW)
Disable run-time self tests (CRYPTO_MANAGER_DISABLE_TESTS) [Y/n/?] (NEW)
Null algorithms (CRYPTO_NULL) [Y/?] (NEW) y
Parallel crypto engine (CRYPTO_PCRYPT) [N/m/y/?] (NEW)
Software async crypto daemon (CRYPTO_CRYPTD) [M/y/?] (NEW)
Authenc support (CRYPTO_AUTHENC) [Y/?] (NEW) y
Testing module (CRYPTO_TEST) [N/m/?] (NEW)
*
* Public-key cryptography
*
RSA algorithm (CRYPTO_RSA) [Y/?] y
Diffie-Hellman algorithm (CRYPTO_DH) [N/m/y/?] (NEW)
ECDH algorithm (CRYPTO_ECDH) [Y/?] (NEW) y
EC-RDSA (GOST 34.10) algorithm (CRYPTO_ECRDSA) [N/m/y/?] (NEW)
*
* Authenticated Encryption with Associated Data
*
CCM support (CRYPTO_CCM) [Y/?] y
GCM/GMAC support (CRYPTO_GCM) [Y/?] y
ChaCha20-Poly1305 AEAD support (CRYPTO_CHACHA20POLY1305) [N/m/y/?] (NEW)
AEGIS-128 AEAD algorithm (CRYPTO_AEGIS128) [N/m/y/?] (NEW)
Sequence Number IV Generator (CRYPTO_SEQIV) [Y/?] (NEW) y
Encrypted Chain IV Generator (CRYPTO_ECHAINIV) [M/y/?] (NEW)
*
* Block modes
*
CBC support (CRYPTO_CBC) [Y/?] y
CFB support (CRYPTO_CFB) [N/m/y/?] (NEW)
CTR support (CRYPTO_CTR) [Y/?] (NEW) y
CTS support (CRYPTO_CTS) [N/m/y/?] (NEW)
ECB support (CRYPTO_ECB) [Y/?] y
LRW support (CRYPTO_LRW) [N/m/y/?] (NEW)
OFB support (CRYPTO_OFB) [N/m/y/?] (NEW)
PCBC support (CRYPTO_PCBC) [N/m/y/?] (NEW)
XTS support (CRYPTO_XTS) [N/m/y/?] (NEW)
Key wrapping support (CRYPTO_KEYWRAP) [N/m/y/?] (NEW)
Adiantum support (CRYPTO_ADIANTUM) [N/m/y/?] (NEW)
ESSIV support for block encryption (CRYPTO_ESSIV) [Y/?] (NEW) y
*
* Hash modes
*
CMAC support (CRYPTO_CMAC) [Y/?] y
HMAC support (CRYPTO_HMAC) [Y/?] (NEW) y
XCBC support (CRYPTO_XCBC) [N/m/y/?] (NEW)
VMAC support (CRYPTO_VMAC) [N/m/y/?] (NEW)
*
* Digest
*
CRC32c CRC algorithm (CRYPTO_CRC32C) [Y/?] (NEW) y
CRC32 CRC algorithm (CRYPTO_CRC32) [M/y/?] (NEW)
xxHash hash algorithm (CRYPTO_XXHASH) [N/m/y/?] (NEW)
CRCT10DIF algorithm (CRYPTO_CRCT10DIF) [N/m/y/?] (NEW)
GHASH hash function (CRYPTO_GHASH) [Y/?] (NEW) y
Poly1305 authenticator algorithm (CRYPTO_POLY1305) [N/m/y/?] (NEW)
MD4 digest algorithm (CRYPTO_MD4) [M/y/?] (NEW)
MD5 digest algorithm (CRYPTO_MD5) [M/y/?] (NEW)
Michael MIC keyed digest algorithm (CRYPTO_MICHAEL_MIC) [N/m/y/?] (NEW)
RIPEMD-128 digest algorithm (CRYPTO_RMD128) [N/m/y/?] (NEW)
RIPEMD-160 digest algorithm (CRYPTO_RMD160) [N/m/y/?] (NEW)
RIPEMD-256 digest algorithm (CRYPTO_RMD256) [N/m/y/?] (NEW)
RIPEMD-320 digest algorithm (CRYPTO_RMD320) [N/m/y/?] (NEW)
SHA1 digest algorithm (CRYPTO_SHA1) [Y/?] (NEW) y
SHA224 and SHA256 digest algorithm (CRYPTO_SHA256) [Y/?] (NEW) y
SHA384 and SHA512 digest algorithms (CRYPTO_SHA512) [Y/?] (NEW) y
SHA3 digest algorithm (CRYPTO_SHA3) [N/m/y/?] (NEW)
SM3 digest algorithm (CRYPTO_SM3) [N/m/y/?] (NEW)
Streebog Hash Function (CRYPTO_STREEBOG) [N/m/y/?] (NEW)
Tiger digest algorithms (CRYPTO_TGR192) [N/m/y/?] (NEW)
Whirlpool digest algorithms (CRYPTO_WP512) [N/m/y/?] (NEW)
*
* Ciphers
*
AES cipher algorithms (CRYPTO_AES) [Y/?] (NEW) y
Fixed time AES cipher (CRYPTO_AES_TI) [N/m/y/?] (NEW)
Anubis cipher algorithm (CRYPTO_ANUBIS) [N/m/y/?] (NEW)
ARC4 cipher algorithm (CRYPTO_ARC4) [M/n/y/?] m
Blowfish cipher algorithm (CRYPTO_BLOWFISH) [N/m/y/?] (NEW)
Camellia cipher algorithms (CRYPTO_CAMELLIA) [N/m/y/?] (NEW)
CAST5 (CAST-128) cipher algorithm (CRYPTO_CAST5) [N/m/y/?] (NEW)
CAST6 (CAST-256) cipher algorithm (CRYPTO_CAST6) [N/m/y/?] (NEW)
DES and Triple DES EDE cipher algorithms (CRYPTO_DES) [M/y/?] (NEW)
FCrypt cipher algorithm (CRYPTO_FCRYPT) [N/m/y/?] (NEW)
Khazad cipher algorithm (CRYPTO_KHAZAD) [N/m/y/?] (NEW)
Salsa20 stream cipher algorithm (CRYPTO_SALSA20) [N/m/y/?] (NEW)
ChaCha stream cipher algorithms (CRYPTO_CHACHA20) [M/y/?] (NEW)
SEED cipher algorithm (CRYPTO_SEED) [N/m/y/?] (NEW)
Serpent cipher algorithm (CRYPTO_SERPENT) [N/m/y/?] (NEW)
SM4 cipher algorithm (CRYPTO_SM4) [N/m/y/?] (NEW)
TEA, XTEA and XETA cipher algorithms (CRYPTO_TEA) [N/m/y/?] (NEW)
Twofish cipher algorithm (CRYPTO_TWOFISH) [N/m/y/?] (NEW)
*
* Compression
*
Deflate compression algorithm (CRYPTO_DEFLATE) [Y/?] y
LZO compression algorithm (CRYPTO_LZO) [Y/n/m/?] y
842 compression algorithm (CRYPTO_842) [N/m/y/?] (NEW)
LZ4 compression algorithm (CRYPTO_LZ4) [N/m/y/?] (NEW)
LZ4HC compression algorithm (CRYPTO_LZ4HC) [N/m/y/?] (NEW)
Zstd compression algorithm (CRYPTO_ZSTD) [N/m/y/?] (NEW)
*
* Random Number Generation
*
Pseudo Random Number Generation for Cryptographic modules (CRYPTO_ANSI_CPRNG) [N/m/y/?] (NEW)
*
* NIST SP800-90A DRBG
*
NIST SP800-90A DRBG (CRYPTO_DRBG_MENU) [Y/?] (NEW) y
Enable Hash DRBG (CRYPTO_DRBG_HASH) [N/y/?] (NEW)
Enable CTR DRBG (CRYPTO_DRBG_CTR) [N/y/?] (NEW)
Jitterentropy Non-Deterministic Random Number Generator (CRYPTO_JITTERENTROPY) [Y/?] (NEW) y
User-space interface for hash algorithms (CRYPTO_USER_API_HASH) [N/m/y/?] (NEW)
User-space interface for symmetric key cipher algorithms (CRYPTO_USER_API_SKCIPHER) [N/m/y/?] (NEW)
User-space interface for random number generator algorithms (CRYPTO_USER_API_RNG) [N/m/y/?] (NEW)
User-space interface for AEAD cipher algorithms (CRYPTO_USER_API_AEAD) [N/m/y/?] (NEW)
*
* Hardware crypto devices
*
Hardware crypto devices (CRYPTO_HW) [Y/n/?] (NEW)
Driver HIFN 795x crypto accelerator chips (CRYPTO_DEV_HIFN_795X) [N/m/y/?] (NEW)
Support for Microchip / Atmel ECC hw accelerator (CRYPTO_DEV_ATMEL_ECC) [N/m/y/?] (NEW)
Support for Microchip / Atmel SHA accelerator and RNG (CRYPTO_DEV_ATMEL_SHA204A) [N/m/y/?] (NEW)
MediaTek's EIP97 Cryptographic Engine driver (CRYPTO_DEV_MEDIATEK) [Y/n/m/?] y
Inside Secure's SafeXcel cryptographic engine driver (CRYPTO_DEV_SAFEXCEL) [N/m/y/?] (NEW)
Support for ARM TrustZone CryptoCell family of security processors (CRYPTO_DEV_CCREE) [N/m/y/?] (NEW)
*
* Asymmetric (public-key cryptographic) key type
*
Asymmetric (public-key cryptographic) key type (ASYMMETRIC_KEY_TYPE) [Y/?] (NEW) y
Asymmetric public-key crypto algorithm subtype (ASYMMETRIC_PUBLIC_KEY_SUBTYPE) [Y/?] (NEW) y
X.509 certificate parser (X509_CERTIFICATE_PARSER) [Y/?] (NEW) y
PKCS#8 private key parser (PKCS8_PRIVATE_KEY_PARSER) [N/m/y/?] (NEW)
PKCS#7 message parser (PKCS7_MESSAGE_PARSER) [Y/?] (NEW) y
PKCS#7 testing key type (PKCS7_TEST_KEY) [N/m/y/?] (NEW)
Support for PE file signature verification (SIGNED_PE_FILE_VERIFICATION) [N/y/?] (NEW)
*
* Certificates for signature checking
*
Provide system-wide ring of trusted keys (SYSTEM_TRUSTED_KEYRING) [Y/?] (NEW) y
Additional X.509 keys for default system keyring (SYSTEM_TRUSTED_KEYS) [] (NEW)
Reserve area for inserting a certificate without recompiling (SYSTEM_EXTRA_CERTIFICATE) [N/y/?] (NEW)
Provide a keyring to which extra trustable keys may be added (SECONDARY_TRUSTED_KEYRING) [N/y/?] (NEW)
Provide system-wide ring of blacklisted keys (SYSTEM_BLACKLIST_KEYRING) [N/y/?] (NEW)
*
* Library routines
*
Automatically choose fastest RAID6 PQ functions (RAID6_PQ_BENCHMARK) [Y/n/?] (NEW)
Generic bitfield packing and unpacking (PACKING) [N/y/?] (NEW)
CORDIC algorithm (CORDIC) [N/m/y/?] (NEW)
CRC-CCITT functions (CRC_CCITT) [M/n/y/?] m
CRC16 functions (CRC16) [Y/?] (NEW) y
CRC calculation for the T10 Data Integrity Field (CRC_T10DIF) [N/m/y/?] (NEW)
CRC ITU-T V.41 functions (CRC_ITU_T) [M/n/y/?] m
CRC32/CRC32c functions (CRC32) [Y/?] (NEW) y
CRC32 perform self test on init (CRC32_SELFTEST) [N/m/y/?] (NEW)
CRC32 implementation
> 1. Slice by 8 bytes (CRC32_SLICEBY8) (NEW)
2. Slice by 4 bytes (CRC32_SLICEBY4) (NEW)
3. Sarwate's Algorithm (one byte at a time) (CRC32_SARWATE) (NEW)
4. Classic Algorithm (one bit at a time) (CRC32_BIT) (NEW)
choice[1-4?]:
CRC64 functions (CRC64) [N/m/y/?] (NEW)
CRC4 functions (CRC4) [N/m/y/?] (NEW)
CRC7 functions (CRC7) [N/m/y/?] (NEW)
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [Y/?] (NEW) y
CRC8 function (CRC8) [N/m/y/?] (NEW)
PRNG perform self test on init (RANDOM32_SELFTEST) [N/y/?] (NEW)
XZ decompression support (XZ_DEC) [Y/?] (NEW) y
x86 BCJ filter decoder (XZ_DEC_X86) [Y/n/?] (NEW)
PowerPC BCJ filter decoder (XZ_DEC_POWERPC) [Y/n/?] (NEW)
IA-64 BCJ filter decoder (XZ_DEC_IA64) [Y/n/?] (NEW)
ARM BCJ filter decoder (XZ_DEC_ARM) [Y/n/?] (NEW)
ARM-Thumb BCJ filter decoder (XZ_DEC_ARMTHUMB) [Y/n/?] (NEW)
SPARC BCJ filter decoder (XZ_DEC_SPARC) [Y/n/?] (NEW)
XZ decompressor tester (XZ_DEC_TEST) [N/m/y/?] (NEW)
DMA Contiguous Memory Allocator (DMA_CMA) [Y/n/?] y
*
* Default contiguous memory area size:
*
Size in Mega Bytes (CMA_SIZE_MBYTES) [64] 64
Selected region size
> 1. Use mega bytes value only (CMA_SIZE_SEL_MBYTES) (NEW)
2. Use percentage value only (CMA_SIZE_SEL_PERCENTAGE) (NEW)
3. Use lower value (minimum) (CMA_SIZE_SEL_MIN) (NEW)
4. Use higher value (maximum) (CMA_SIZE_SEL_MAX) (NEW)
choice[1-4?]:
Maximum PAGE_SIZE order of alignment for contiguous buffers (CMA_ALIGNMENT) [8] (NEW)
Enable debugging of DMA-API usage (DMA_API_DEBUG) [N/y/?] (NEW)
glob self-test on init (GLOB_SELFTEST) [N/m/y/?] (NEW)
IRQ polling library (IRQ_POLL) [N/y/?] (NEW)
Test string functions (STRING_SELFTEST) [N/m/y/?] (NEW)
*
* printk and dmesg options
*
Show timing information on printks (PRINTK_TIME) [Y/n/?] y
Show caller information on printks (PRINTK_CALLER) [N/y/?] (NEW)
Default console loglevel (1-15) (CONSOLE_LOGLEVEL_DEFAULT) [7] (NEW)
quiet console loglevel (1-15) (CONSOLE_LOGLEVEL_QUIET) [4] (NEW)
Default message log level (1-7) (MESSAGE_LOGLEVEL_DEFAULT) [4] (NEW)
Delay each boot printk message by N milliseconds (BOOT_PRINTK_DELAY) [N/y/?] (NEW)
Enable dynamic printk() support (DYNAMIC_DEBUG) [Y/n/?] y
*
* Compile-time checks and compiler options
*
Compile the kernel with debug info (DEBUG_INFO) [Y/n/?] y
Reduce debugging information (DEBUG_INFO_REDUCED) [N/y/?] (NEW)
Produce split debuginfo in .dwo files (DEBUG_INFO_SPLIT) [N/y/?] (NEW)
Generate dwarf4 debuginfo (DEBUG_INFO_DWARF4) [N/y/?] (NEW)
Generate BTF typeinfo (DEBUG_INFO_BTF) [N/y/?] (NEW)
Provide GDB scripts for kernel debugging (GDB_SCRIPTS) [N/y/?] (NEW)
Enable __must_check logic (ENABLE_MUST_CHECK) [Y/n/?] (NEW)
Warn for stack frames larger than (needs gcc 4.4) (FRAME_WARN) [1024] (NEW)
Strip assembler-generated symbols during link (STRIP_ASM_SYMS) [N/y/?] (NEW)
Generate readable assembler code (READABLE_ASM) [N/y/?] (NEW)
Debug Filesystem (DEBUG_FS) [Y/?] y
Install uapi headers to usr/include (HEADERS_INSTALL) [N/y/?] (NEW)
Enable full Section mismatch analysis (DEBUG_SECTION_MISMATCH) [Y/n/?] y
Make section mismatch errors non-fatal (SECTION_MISMATCH_WARN_ONLY) [Y/n/?] (NEW)
Compile the kernel with frame pointers (FRAME_POINTER) [Y/?] (NEW) y
Force weak per-cpu definitions (DEBUG_FORCE_WEAK_PER_CPU) [N/y/?] (NEW)
*
* Kernel hacking
*
Magic SysRq key (MAGIC_SYSRQ) [Y/n/?] y
Enable magic SysRq key functions by default (MAGIC_SYSRQ_DEFAULT_ENABLE) [0x1] (NEW)
Enable magic SysRq key over serial (MAGIC_SYSRQ_SERIAL) [Y/n/?] (NEW)
Kernel debugging (DEBUG_KERNEL) [Y/?] (NEW) y
Miscellaneous debug code (DEBUG_MISC) [Y/n/?] (NEW)
*
* Memory Debugging
*
Extend memmap on extra space for more information on page (PAGE_EXTENSION) [N/y/?] (NEW)
Debug page memory allocations (DEBUG_PAGEALLOC) [N/y/?] (NEW)
Track page owner (PAGE_OWNER) [N/y/?] (NEW)
Poison pages after freeing (PAGE_POISONING) [N/y/?] (NEW)
Enable tracepoint to track down page reference manipulation (DEBUG_PAGE_REF) [N/y/?] (NEW)
Testcase for the marking rodata read-only (DEBUG_RODATA_TEST) [N/y/?] (NEW)
Debug object operations (DEBUG_OBJECTS) [N/y/?] (NEW)
SLUB debugging on by default (SLUB_DEBUG_ON) [N/y/?] (NEW)
Enable SLUB performance statistics (SLUB_STATS) [N/y/?] (NEW)
Kernel memory leak detector (DEBUG_KMEMLEAK) [N/y/?] (NEW)
Stack utilization instrumentation (DEBUG_STACK_USAGE) [N/y/?] (NEW)
Debug VM (DEBUG_VM) [N/y/?] (NEW)
Debug VM translations (DEBUG_VIRTUAL) [N/y/?] (NEW)
Debug memory initialisation (DEBUG_MEMORY_INIT) [N/y/?] (NEW)
Debug access to per_cpu maps (DEBUG_PER_CPU_MAPS) [N/y/?] (NEW)
Highmem debugging (DEBUG_HIGHMEM) [N/y/?] (NEW)
Code coverage for fuzzing (KCOV) [N/y/?] (NEW)
Debug shared IRQ handlers (DEBUG_SHIRQ) [N/y/?] (NEW)
*
* Debug Lockups and Hangs
*
Detect Soft Lockups (SOFTLOCKUP_DETECTOR) [N/y/?] (NEW)
Detect Hung Tasks (DETECT_HUNG_TASK) [Y/n/?] y
Default timeout for hung task detection (in seconds) (DEFAULT_HUNG_TASK_TIMEOUT) [120] (NEW)
Panic (Reboot) On Hung Tasks (BOOTPARAM_HUNG_TASK_PANIC) [N/y/?] (NEW)
Detect Workqueue Stalls (WQ_WATCHDOG) [N/y/?] (NEW)
Panic on Oops (PANIC_ON_OOPS) [N/y/?] (NEW)
panic timeout (PANIC_TIMEOUT) [0] (NEW)
Collect scheduler debugging info (SCHED_DEBUG) [Y/n/?] (NEW)
Collect scheduler statistics (SCHEDSTATS) [N/y/?] (NEW)
Detect stack corruption on calls to schedule() (SCHED_STACK_END_CHECK) [N/y/?] (NEW)
Enable extra timekeeping sanity checking (DEBUG_TIMEKEEPING) [N/y/?] (NEW)
*
* Lock Debugging (spinlocks, mutexes, etc...)
*
Lock debugging: prove locking correctness (PROVE_LOCKING) [N/y/?] (NEW)
Lock usage statistics (LOCK_STAT) [N/y/?] (NEW)
RT Mutex debugging, deadlock detection (DEBUG_RT_MUTEXES) [N/y/?] (NEW)
Spinlock and rw-lock debugging: basic checks (DEBUG_SPINLOCK) [N/y/?] (NEW)
Mutex debugging: basic checks (DEBUG_MUTEXES) [N/y/?] (NEW)
Wait/wound mutex debugging: Slowpath testing (DEBUG_WW_MUTEX_SLOWPATH) [N/y/?] (NEW)
RW Semaphore debugging: basic checks (DEBUG_RWSEMS) [N/y/?] (NEW)
Lock debugging: detect incorrect freeing of live locks (DEBUG_LOCK_ALLOC) [N/y/?] (NEW)
Sleep inside atomic section checking (DEBUG_ATOMIC_SLEEP) [N/y/?] (NEW)
Locking API boot-time self-tests (DEBUG_LOCKING_API_SELFTESTS) [N/y/?] (NEW)
torture tests for locking (LOCK_TORTURE_TEST) [N/m/y/?] (NEW)
Wait/wound mutex selftests (WW_MUTEX_SELFTEST) [N/m/y/?] (NEW)
Stack backtrace support (STACKTRACE) [Y/?] (NEW) y
Warn for all uses of unseeded randomness (WARN_ALL_UNSEEDED_RANDOM) [N/y/?] (NEW)
kobject debugging (DEBUG_KOBJECT) [N/y/?] (NEW)
Verbose BUG() reporting (adds 70K) (DEBUG_BUGVERBOSE) [Y/n/?] (NEW)
Debug linked list manipulation (DEBUG_LIST) [Y/n/?] y
Debug priority linked list manipulation (DEBUG_PLIST) [N/y/?] (NEW)
Debug SG table operations (DEBUG_SG) [N/y/?] (NEW)
Debug notifier call chains (DEBUG_NOTIFIERS) [N/y/?] (NEW)
Debug credential management (DEBUG_CREDENTIALS) [N/y/?] (NEW)
*
* RCU Debugging
*
performance tests for RCU (RCU_PERF_TEST) [N/m/y/?] (NEW)
torture tests for RCU (RCU_TORTURE_TEST) [N/m/y/?] (NEW)
RCU CPU stall timeout in seconds (RCU_CPU_STALL_TIMEOUT) [21] (NEW)
Enable tracing for RCU (RCU_TRACE) [Y/n/?] (NEW)
Provide debugging asserts for adding NO_HZ support to an arch (RCU_EQS_DEBUG) [N/y/?] (NEW)
Force round-robin CPU selection for unbound work items (DEBUG_WQ_FORCE_RR_CPU) [N/y/?] (NEW)
Force extended block device numbers and spread them (DEBUG_BLOCK_EXT_DEVT) [N/y/?] (NEW)
Enable CPU hotplug state control (CPU_HOTPLUG_STATE_CONTROL) [N/y/?] (NEW)
Notifier error injection (NOTIFIER_ERROR_INJECTION) [N/m/y/?] (NEW)
Fault-injection framework (FAULT_INJECTION) [N/y/?] (NEW)
Latency measuring infrastructure (LATENCYTOP) [N/y/?] (NEW)
I had to press and hold enter to avoid and this means it will compile everything asked. I think this is due to the custom config file? which I pulled from here
Here is my PKGBUILD
Currently using qemu to test if my pkgbuild would start but now I am letting it continue and see the result, Will get back to you on this. But any advice on the config file and the questions asked before it starts compiling? Thanks
Just run
./build.sh importconfig
./build.sh
If you encounter ethernet-problems (no traffic or packet-drops) try setting trgmii in dts to rgmii twice
Btw. Are you further with lima? and you get no questions about config-options
I don’t think I can use build.sh, as I need to make a package along with compiling the kernel.
I cant get this know, but maybe once I get stuck with this then I might understand.
No I had to terminate the compiling process for some reason. Will try again tonight, but what about questions ask before the start of the compilation? How can I avoid it? They’re so many to write in config and I will have to go through it one by one?
You need to set arch and your crosscompiler (which does build.sh to ubuntus linaro toolchain) and import defconfig before running make (modules/…)
export ARCH=arm;export CROSS_COMPILE='ccache arm-linux-gnueabihf-'
make mt7623n_evb_fwu_defconfig
I understand this, but I am following a different method cause I want to compile it along with package it to be directly installed using ‘pacman’ while making a bootable image.
I hope you understand. The method I have to follow is a bit different.
Even if I follow the method you have advised it will still ask all the questions before compiling, is that correct?
i understand that your process is different, but you need to set arch and your crosscompiler if you not compile on r2 directly or an armv7-machine (like in qemu,vbox,…)
and if you import the defconfig (make-line i’ve posted) you should not get any questions on “compile-make”, else you will not get the desired result
the generic flow is:
make clean/mrproper (optionally)
make <defconfig file> / make oldconfig (if you have valid .config for your device)
make menuconfig (optionally if you want to change options interactively)
make
make modules
make modules_install (maybe with modules-target set by env-variable)
Ok to make things clear, I am using spawn into the armv7 rootfs using qemu and compiling through it.
Spawn is similar to chroot.
Ok I will follow this on the spawn and see how it reacts. Maybe I am missing something here.
I will try adding ‘make .config’ before ‘make modules’ and report back to you.
Thanks for the quick replies
make .config does not make sense if your .config is wrong (actual configuration where you got asked)
Then how can I solve it ? I am bit confused now
like i’ve posted above
this sets correct settings and activates all modules which are set in my prebuild kernels
Ok So I am using this as follows
cat "$(srcdir)/config" > ./.config
make prepare
make mt7623n_evb_fwu_defconfig
make uImage modules dtbs
Hope I am doing it correct now?
imho only step 3 and 4 are needed…what does prepare?
This commands simply prepare the sources for compilation. It is there is all the Arch Linux Kernel Package PKGBUILD. I am just following the standard practice.
I think I understood it now. Thanks again for your patience and effort to help me understand the R2 build method.
Trying to test this now just will terminate it if it starts compiling without asking the questions. Will do it properly at night with proper cooling
Edit: I am still getting the questions here
inux-bpir2-5.4.0-0.1]$ makepkg -sc --noconfirm
==> Making package: linux-bpir2-5.4.0-0.1 5.4.0-0.1 (Fri Oct 18 13:39:08 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found BPI-R2-4.14-d82866fdb13cb0ff8997ea36b19b8967eb8268c7.tar.gz
-> Found config
-> Found linux.preset
-> Found bpi-r2-sd-boot1m-2019.img
-> Found 60-linux.hook
-> Found 90-linux.hook
-> Found 91-uInitrd.hook
==> Validating source files with md5sums...
BPI-R2-4.14-d82866fdb13cb0ff8997ea36b19b8967eb8268c7.tar.gz ... Skipped
config ... Skipped
linux.preset ... Skipped
bpi-r2-sd-boot1m-2019.img ... Skipped
60-linux.hook ... Skipped
90-linux.hook ... Skipped
91-uInitrd.hook ... Skipped
==> Extracting sources...
-> Extracting BPI-R2-4.14-d82866fdb13cb0ff8997ea36b19b8967eb8268c7.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
scripts/kconfig/conf --syncconfig Kconfig
*
* Restart config...
*
*
* General setup
*
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] (NEW) n
Compile test headers that should be standalone compilable (HEADER_TEST) [N/y/?] (NEW) n
Local version - append to kernel release (LOCALVERSION) [-Arch-bpi-r2] -Arch-bpi-r2
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Build ID Salt (BUILD_SALT) [] (NEW)
Kernel compression mode
> 1. Gzip (KERNEL_GZIP) (NEW)
2. LZMA (KERNEL_LZMA) (NEW)
3. XZ (KERNEL_XZ) (NEW)
4. LZO (KERNEL_LZO) (NEW)
5. LZ4 (KERNEL_LZ4) (NEW)
choice[1-5?]:
Default hostname (DEFAULT_HOSTNAME) [(none)] (NEW) BPI-R2
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] (NEW) n
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
Enable process_vm_readv/writev syscalls (CROSS_MEMORY_ATTACH) [Y/n/?] (NEW) n
uselib syscall (USELIB) [N/y/?] (NEW) n
Auditing support (AUDIT) [N/y/?] (NEW) n
*
* IRQ subsystem
*
Expose irq internals in debugfs (GENERIC_IRQ_DEBUGFS) [N/y/?] (NEW) n
*
* Timers subsystem
*
Timer tick handling
1. Periodic timer ticks (constant rate, no dynticks) (HZ_PERIODIC) (NEW)
> 2. Idle dynticks system (tickless idle) (NO_HZ_IDLE) (NEW)
3. Full dynticks system (tickless) (NO_HZ_FULL) (NEW)
choice[1-3?]:
Old Idle dynticks config (NO_HZ) [Y/n/?] y
High Resolution Timer Support (HIGH_RES_TIMERS) [Y/n/?] y
Preemption Model
> 1. No Forced Preemption (Server) (PREEMPT_NONE) (NEW)
2. Voluntary Kernel Preemption (Desktop) (PREEMPT_VOLUNTARY) (NEW)
3. Preemptible Kernel (Low-Latency Desktop) (PREEMPT) (NEW)
choice[1-3?]:
*
* CPU/Task time and stats accounting
*
Cputime accounting
> 1. Simple tick based cputime accounting (TICK_CPU_ACCOUNTING) (NEW)
2. Full dynticks CPU time accounting (VIRT_CPU_ACCOUNTING_GEN) (NEW)
choice[1-2?]:
Fine granularity task level IRQ time accounting (IRQ_TIME_ACCOUNTING) [N/y/?] (NEW) n
BSD Process Accounting (BSD_PROCESS_ACCT) [N/y/?] (NEW) n
Export task/process statistics through netlink (TASKSTATS) [N/y/?] (NEW) n
Pressure stall information tracking (PSI) [N/y/?] (NEW) n
CPU isolation (CPU_ISOLATION) [Y/n/?] (NEW) y
*
* RCU Subsystem
*
Make expert-level adjustments to RCU configuration (RCU_EXPERT) [N/y/?] (NEW)
What is the issue here?
defconfig is not imported…config starts from clean…
Well, I am using the defconfig file as config which is copied to ./.config Isnt it the right way ?