github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/configs/arm_config.txt (about)

     1  # Kernel Configs Used for ARM Tests
     2  #
     3  # Build Linux:
     4  #
     5  #     export ARCH=arm
     6  #     export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
     7  #     make mrproper
     8  #     make tinyconfig
     9  #     cat arm_config.txt generic_config.txt >> .config
    10  #     make menuconfig  # Exit and save.
    11  #     make -j$(($(nproc) * 2 + 1))
    12  #
    13  # Cross-compile u-root:
    14  #
    15  #     go get github.com/u-root/u-root
    16  #     GOARCH=arm u-root -format=cpio -build=bb
    17  #
    18  # Test:
    19  #
    20  # 1. `qemu-system-arm -machine virt -kernel arch/arm/boot/zImage -initrd /tmp/initramfs.linux_arm.cpio -nographic -append 'console=ttyAMA0'`
    21  # 2. Exit with CTRL-A + X
    22  
    23  # Config settings specific to ARM hardware:
    24  
    25  CONFIG_MMU=y
    26  CONFIG_ARCH_MULTIPLATFORM=y
    27  CONFIG_ARCH_MULTI_V7=y
    28  CONFIG_ARCH_VIRT=y
    29  CONFIG_ARM_AMBA=y
    30  
    31  # Minimal kernel config needed for Go and serial port:
    32  
    33  CONFIG_BINFMT_ELF=y
    34  CONFIG_BLK_DEV_INITRD=y
    35  CONFIG_DEVTMPFS=y
    36  CONFIG_EPOLL=y
    37  CONFIG_FUTEX=y
    38  CONFIG_PRINTK=y
    39  CONFIG_PROC_FS=y
    40  CONFIG_TTY=y
    41  CONFIG_SERIAL_AMBA_PL011=y
    42  CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
    43  
    44  # Add /dev/mem for io command:
    45  
    46  CONFIG_DEVMEM=y