[Linux] [Debian] AMD64 Kernel

Dieses Thema im Forum "Linux & BSD" wurde erstellt von sammy1990, 21. September 2007 .

  1. 21. September 2007
    [Debian] AMD64 Kernel

    also ich versuche schon en ganzen tag en kernel für debian amd64 zu bauen und jedes fal tritt nach: make-kpkg --initrd --revision=Kernel.01 kernel_image fehler auf

    z.b.
    Code:
    Warning: You are using the initrd option, that may not
    work, depending on your kernel version and architecture,
    unless you have applied the initrd cramfs patch to
    the kernel, or modified mkinitrd not to use cramfs by
    default. The cramfs initrd patch, is included in the
    Debian supplied kernel sources. New kernels on most
    architectures do work fine.
    By default, I assume you know what you are doing, and I
    apologize for being so annoying. Should I abort[Ny]?
    
    und dann

    Code:
     Simplified Chinese charset (CP936, GB2312) (NLS_CODEPAGE_936) [N/m/y/?] n
     Traditional Chinese charset (Big5) (NLS_CODEPAGE_950) [N/m/y/?] n
     Japanese charsets (Shift-JIS, EUC-JP) (NLS_CODEPAGE_932) [N/m/y/?] n
     Korean charset (CP949, EUC-KR) (NLS_CODEPAGE_949) [N/m/y/?] n
     Thai charset (CP874, TIS-620) (NLS_CODEPAGE_874) [N/m/y/?] n
     Hebrew charsets (ISO-8859-8, CP1255) (NLS_ISO8859_8) [N/m/y/?] n
     Windows CP1250 (Slavic/Central European Languages) (NLS_CODEPAGE_1250) [N/m/y/?] n
     Windows CP1251 (Bulgarian, Belarusian) (NLS_CODEPAGE_1251) [N/m/y/?] n
     ASCII (United States) (NLS_ASCII) [Y/n/m/?] y
     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/?] n
     NLS ISO 8859-3 (Latin 3; Esperanto, Galician, Maltese, Turkish) (NLS_ISO8859_3) [N/m/y/?] n
     NLS ISO 8859-4 (Latin 4; old Baltic charset) (NLS_ISO8859_4) [N/m/y/?] n
     NLS ISO 8859-5 (Cyrillic) (NLS_ISO8859_5) [N/m/y/?] n
     NLS ISO 8859-6 (Arabic) (NLS_ISO8859_6) [N/m/y/?] n
     NLS ISO 8859-7 (Modern Greek) (NLS_ISO8859_7) [N/m/y/?] n
     NLS ISO 8859-9 (Latin 5; Turkish) (NLS_ISO8859_9) [N/m/y/?] n
     NLS ISO 8859-13 (Latin 7; Baltic) (NLS_ISO8859_13) [N/m/y/?] n
     NLS ISO 8859-14 (Latin 8; Celtic) (NLS_ISO8859_14) [N/m/y/?] n
     NLS ISO 8859-15 (Latin 9; Western European Languages with Euro) (NLS_ISO8859_15) [Y/n/m/?] y
     NLS KOI8-R (Russian) (NLS_KOI8_R) [N/m/y/?] n
     NLS KOI8-U/RU (Ukrainian, Belarusian) (NLS_KOI8_U) [N/m/y/?] n
     NLS UTF-8 (NLS_UTF8) [Y/n/m/?] y
    *
    * Distributed Lock Manager
    *
    Distributed Lock Manager (DLM) (DLM) [N/m/y/?] n
    *
    * Instrumentation Support
    *
    Profiling support (EXPERIMENTAL) (PROFILING) [N/y/?] n
    Kprobes (EXPERIMENTAL) (KPROBES) [N/y/?] n
    *
    * Kernel hacking
    *
    Show timing information on printks (PRINTK_TIME) [N/y/?] n
    Enable __must_check logic (ENABLE_MUST_CHECK) [Y/n/?] y
    Magic SysRq key (MAGIC_SYSRQ) [Y/n/?] y
    Enable unused/obsolete exported symbols (UNUSED_SYMBOLS) [Y/n/?] y
    Debug Filesystem (DEBUG_FS) [N/y/?] n
    Run 'make headers_check' when building vmlinux (HEADERS_CHECK) [N/y/?] n
    Kernel debugging (DEBUG_KERNEL) [Y/n/?] y
     Debug shared IRQ handlers (DEBUG_SHIRQ) [N/y/?] n
     Detect Soft Lockups (DETECT_SOFTLOCKUP) [Y/n/?] y
     Collect scheduler statistics (SCHEDSTATS) [N/y/?] n
     Collect kernel timers statistics (TIMER_STATS) [N/y/?] n
     Debug slab memory allocations (DEBUG_SLAB) [N/y/?] n
     Debug preemptible kernel (DEBUG_PREEMPT) [Y/n/?] y
     RT Mutex debugging, deadlock detection (DEBUG_RT_MUTEXES) [N/y/?] n
     Built-in scriptable tester for rt-mutexes (RT_MUTEX_TESTER) [N/y/?] n
     Spinlock and rw-lock debugging: basic checks (DEBUG_SPINLOCK) [N/y/?] n
     Mutex debugging: basic checks (DEBUG_MUTEXES) [Y/n/?] y
     Lock debugging: detect incorrect freeing of live locks (DEBUG_LOCK_ALLOC) [N/y/?] n
     Lock debugging: prove locking correctness (PROVE_LOCKING) [N/y/?] n
     Spinlock debugging: sleep-inside-spinlock checking (DEBUG_SPINLOCK_SLEEP) [N/y/?] n
     Locking API boot-time self-tests (DEBUG_LOCKING_API_SELFTESTS) [N/y/?] n
     kobject debugging (DEBUG_KOBJECT) [N/y/?] n
     Compile the kernel with debug info (DEBUG_INFO) [N/y/?] n
     Debug VM (DEBUG_VM) [N/y/?] n
     Debug linked list manipulation (DEBUG_LIST) [N/y/?] n
     Compile the kernel with frame pointers (FRAME_POINTER) [N/y/?] n
     Force gcc to inline functions marked 'inline' (FORCED_INLINING) [Y/n/?] y
     torture tests for RCU (RCU_TORTURE_TEST) [N/m/?] n
     Fault-injection framework (FAULT_INJECTION) [N/y/?] n
     Write protect kernel read-only data structures (DEBUG_RODATA) [N/y/?] n
     Enable IOMMU debugging (IOMMU_DEBUG) [N/y/?] n
     Check for stack overflows (DEBUG_STACKOVERFLOW) [N/y/?] n
     Stack utilization instrumentation (DEBUG_STACK_USAGE) [N/y/?] n
    *
    * Security options
    *
    Enable access key retention support (KEYS) [N/y/?] n
    Enable different security models (SECURITY) [N/y/?] n
    *
    * Cryptographic options
    *
    Cryptographic API (CRYPTO) [Y/?] y
     Cryptographic algorithm manager (CRYPTO_MANAGER) [Y/?] y
     HMAC support (CRYPTO_HMAC) [Y/n/m/?] y
     XCBC support (CRYPTO_XCBC) [N/m/y/?] n
     Null algorithms (CRYPTO_NULL) [N/m/y/?] n
     MD4 digest algorithm (CRYPTO_MD4) [N/m/y/?] n
     MD5 digest algorithm (CRYPTO_MD5) [Y/?] y
     SHA1 digest algorithm (CRYPTO_SHA1) [Y/n/m/?] y
     SHA256 digest algorithm (CRYPTO_SHA256) [Y/n/m/?] y
     SHA384 and SHA512 digest algorithms (CRYPTO_SHA512) [Y/n/m/?] y
     Whirlpool digest algorithms (CRYPTO_WP512) [N/m/y/?] n
     Tiger digest algorithms (CRYPTO_TGR192) [N/m/y/?] n
     GF(2^128) multiplication functions (EXPERIMENTAL) (CRYPTO_GF128MUL) [N/m/y/?] n
     ECB support (CRYPTO_ECB) [M/n/y/?] m
     CBC support (CRYPTO_CBC) [Y/?] y
     PCBC support (CRYPTO_PCBC) [M/n/y/?] m
     LRW support (EXPERIMENTAL) (CRYPTO_LRW) [N/m/y/?] n
     Software async crypto daemon (CRYPTO_CRYPTD) [N/m/y/?] n
     DES and Triple DES EDE cipher algorithms (CRYPTO_DES) [Y/?] y
     FCrypt cipher algorithm (CRYPTO_FCRYPT) [N/m/y/?] n
     Blowfish cipher algorithm (CRYPTO_BLOWFISH) [Y/n/m/?] y
     Twofish cipher algorithm (CRYPTO_TWOFISH) [N/m/y/?] n
     Twofish cipher algorithm (x86_64) (CRYPTO_TWOFISH_X86_64) [N/m/y/?] n
     Serpent cipher algorithm (CRYPTO_SERPENT) [N/m/y/?] n
     AES cipher algorithms (CRYPTO_AES) [Y/n/m/?] y
     AES cipher algorithms (x86_64) (CRYPTO_AES_X86_64) [Y/n/m/?] y
     CAST5 (CAST-128) cipher algorithm (CRYPTO_CAST5) [N/m/y/?] n
     CAST6 (CAST-256) cipher algorithm (CRYPTO_CAST6) [N/m/y/?] n
     TEA, XTEA and XETA cipher algorithms (CRYPTO_TEA) [N/m/y/?] n
     ARC4 cipher algorithm (CRYPTO_ARC4) [N/m/y/?] n
     Khazad cipher algorithm (CRYPTO_KHAZAD) [N/m/y/?] n
     Anubis cipher algorithm (CRYPTO_ANUBIS) [N/m/y/?] n
     Deflate compression algorithm (CRYPTO_DEFLATE) [Y/n/m/?] y
     Michael MIC keyed digest algorithm (CRYPTO_MICHAEL_MIC) [N/m/y/?] n
     CRC32c CRC algorithm (CRYPTO_CRC32C) [Y/n/m/?] y
     Camellia cipher algorithms (CRYPTO_CAMELLIA) [N/m/y/?] n
     Testing module (CRYPTO_TEST) [N/m/?] n
     *
     * Hardware crypto devices
     *
    *
    * Library routines
    *
    CRC-CCITT functions (CRC_CCITT) [Y/n/m/?] y
    CRC16 functions (CRC16) [Y/n/m/?] y
    CRC ITU-T V.41 functions (CRC_ITU_T) [N/m/y/?] n
    CRC32 functions (CRC32) [Y/?] y
    CRC32c (Castagnoli, et al) Cyclic Redundancy-Check (LIBCRC32C) [Y/?] y
    #
    # configuration written to .config
    #
    make[1]: Leaving directory `/root/kernel/linux-2.6.22'
    /usr/bin/make \
     ARCH=x86_64 prepare
    make[1]: Entering directory `/root/kernel/linux-2.6.22'
    scripts/kconfig/conf -s arch/x86_64/Kconfig
    make[1]: Leaving directory `/root/kernel/linux-2.6.22'
    make[1]: Entering directory `/root/kernel/linux-2.6.22'
     CHK include/linux/version.h
     UPD include/linux/version.h
     CHK include/linux/utsrelease.h
     UPD include/linux/utsrelease.h
     SYMLINK include/asm -> include/asm-x86_64
     CC arch/x86_64/kernel/asm-offsets.s
     GEN include/asm-x86_64/asm-offsets.h
     CALL scripts/checksyscalls.sh
    make[1]: Leaving directory `/root/kernel/linux-2.6.22'
    echo done > stamp-kernel-configure
    echo done > stamp-configure
    if [ -f include/linux/version.h ]; then \
     uts_ver=$(grep 'define UTS_RELEASE' include/linux/version.h | perl -nle 'm/^\s*\#define\s+UTS_RELEASE\s+("?)(\S+)\1/g && print $2;'); \
     if [ "X$uts_ver" != "X" ]; then \
     echo "The UTS Release version in include/linux/version.h"; \
     echo " \"$uts_ver\" "; \
     echo "does not match current version " ; \
     echo " \"2.6.22\" " ; \
     echo "Reconfiguring." ; \
     touch Makefile; \
     fi; \
    fi
    test -f stamp-configure || /usr/bin/make -f /usr/share/kernel-package/rules configure
    /usr/bin/make ARCH=x86_64 \
     bzImage
    make[1]: Entering directory `/root/kernel/linux-2.6.22'
     CHK include/linux/version.h
     CHK include/linux/utsrelease.h
     CALL scripts/checksyscalls.sh
     CC scripts/mod/empty.o
     HOSTCC scripts/mod/mk_elfconfig
     MKELF scripts/mod/elfconfig.h
     HOSTCC scripts/mod/file2alias.o
     HOSTCC scripts/mod/modpost.o
     HOSTCC scripts/mod/sumversion.o
     HOSTLD scripts/mod/modpost
     HOSTCC scripts/kallsyms
     HOSTCC scripts/conmakehash
     HOSTCC scripts/bin2c
     CC init/main.o
     CHK include/linux/compile.h
     UPD include/linux/compile.h
     CC init/version.o
     CC init/do_mounts.o
     CC init/do_mounts_rd.o
     CC init/do_mounts_initrd.o
     CC init/do_mounts_md.o
     LD init/mounts.o
     CC init/initramfs.o
     CC init/calibrate.o
     LD init/built-in.o
     HOSTCC usr/gen_init_cpio
     GEN usr/initramfs_data.cpio.gz
     AS usr/initramfs_data.o
     LD usr/built-in.o
     CC arch/x86_64/kernel/process.o
     CC arch/x86_64/kernel/signal.o
     AS arch/x86_64/kernel/entry.o
     CC arch/x86_64/kernel/traps.o
     CC arch/x86_64/kernel/irq.o
     CC arch/x86_64/kernel/ptrace.o
     CC arch/x86_64/kernel/time.o
    arch/x86_64/kernel/time.c: In function `time_init':
    arch/x86_64/kernel/time.c:387: error: `TICK_NSEC_HPET' undeclared (first use in this function)
    arch/x86_64/kernel/time.c:387: error: (Each undeclared identifier is reported only once
    arch/x86_64/kernel/time.c:387: error: for each function it appears in.)
    make[2]: *** [arch/x86_64/kernel/time.o] Error 1
    make[1]: *** [arch/x86_64/kernel] Error 2
    make[1]: Leaving directory `/root/kernel/linux-2.6.22'
    make: *** [stamp-build] Error 2
    
    kann mir jemand weiterhelfen?
     
  2. 22. September 2007
    AW: [Debian] AMD64 Kernel

    sieht so aus als würde die time.c datei fehlerhaft sein. aber es könnte auch sein, dass ein bestimmtes packet noch in den kernel muss, welches irgendwie zeitabhängig ist. in time.c fehlen sachen wie:

    Code:
    arch/x86_64/kernel/time.c: In function `time_init':
    arch/x86_64/kernel/time.c:387: error: `TICK_NSEC_HPET' undeclared (first use in this function)
    arch/x86_64/kernel/time.c:387: error: (Each undeclared identifier is reported only once
    arch/x86_64/kernel/time.c:387: error: for each function it appears in.)
    
    also irgendwelche header oder c dateien, die TICK_NSEC_HPET verwenden bzw deklarieren. versuchs mal mit dem ncurses: make menuconfig und kuck dir das da mal an.
     
  3. 22. September 2007
    AW: [Debian] AMD64 Kernel

    du kannst dir das leben aber auch leicht machen und dir einen kernel auf traditionellem wege bauen.

    make menuconfig
    make && make modules_install
    cp arch/x86_64/boot/bzImage /boot/deinneuerkernel

    nicht vergessen initramblödsinn aus der config zu nehmen, weil das brauchst eh nicht. muss es eigentlich überhaupt ein 2.6.22 kernel sein? reichen die stabilen 2.6.18er sources mit debianpatches nicht aus?
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.