Message ID | 20200312051107.1454880-8-damien.lemoal@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Kendryte k210 SoC boards support | expand |
On Wed, Mar 11, 2020 at 10:11 PM Damien Le Moal <damien.lemoal@wdc.com> wrote: > > This patch adds a defconfig file to build No-MMU kernels meant for > boards based on the Kendryte K210 SoC. > > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> > Reviewed-by: Anup Patel <anup@brainfault.org> > Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> > --- > arch/riscv/configs/nommu_k210_defconfig | 68 +++++++++++++++++++++++++ > 1 file changed, 68 insertions(+) > create mode 100644 arch/riscv/configs/nommu_k210_defconfig > > diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig > new file mode 100644 > index 000000000000..00ded8f0bc55 > --- /dev/null > +++ b/arch/riscv/configs/nommu_k210_defconfig > @@ -0,0 +1,68 @@ > +# CONFIG_CPU_ISOLATION is not set > +CONFIG_LOG_BUF_SHIFT=15 > +CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=12 > +CONFIG_BLK_DEV_INITRD=y > +CONFIG_INITRAMFS_SOURCE="k210.cpio" I don't think it is a common practice to provide a default rootfs file in defconfig if it is not part of the kernel. I may be wrong but I have not seen an example before. It is expected that developers will generate their own rootfs and modify it here. It may also raise compiler errors for auto builders in absence of k210.cpio. > +CONFIG_INITRAMFS_FORCE=y > +# CONFIG_RD_BZIP2 is not set > +# CONFIG_RD_LZMA is not set > +# CONFIG_RD_XZ is not set > +# CONFIG_RD_LZO is not set > +# CONFIG_RD_LZ4 is not set > +# CONFIG_BOOT_CONFIG is not set > +CONFIG_CC_OPTIMIZE_FOR_SIZE=y > +# CONFIG_SYSFS_SYSCALL is not set > +# CONFIG_FHANDLE is not set > +# CONFIG_BASE_FULL is not set > +# CONFIG_EPOLL is not set > +# CONFIG_SIGNALFD is not set > +# CONFIG_TIMERFD is not set > +# CONFIG_EVENTFD is not set > +# CONFIG_AIO is not set > +# CONFIG_IO_URING is not set > +# CONFIG_ADVISE_SYSCALLS is not set > +# CONFIG_MEMBARRIER is not set > +# CONFIG_KALLSYMS is not set > +CONFIG_EMBEDDED=y > +# CONFIG_VM_EVENT_COUNTERS is not set > +# CONFIG_COMPAT_BRK is not set > +CONFIG_SLOB=y > +# CONFIG_SLAB_MERGE_DEFAULT is not set > +# CONFIG_MMU is not set > +CONFIG_SOC_KENDRYTE=y > +CONFIG_MAXPHYSMEM_2GB=y > +CONFIG_SMP=y > +CONFIG_NR_CPUS=2 > +CONFIG_CMDLINE="earlycon console=ttySIF0" > +CONFIG_CMDLINE_FORCE=y > +CONFIG_USE_BUILTIN_DTB=y > +CONFIG_BUILTIN_DTB_SOURCE="kendryte/k210" > +# CONFIG_BLOCK is not set > +CONFIG_BINFMT_FLAT=y > +# CONFIG_COREDUMP is not set > +CONFIG_DEVTMPFS=y > +CONFIG_DEVTMPFS_MOUNT=y > +# CONFIG_FW_LOADER is not set > +# CONFIG_ALLOW_DEV_COREDUMP is not set > +# CONFIG_INPUT_KEYBOARD is not set > +# CONFIG_INPUT_MOUSE is not set > +# CONFIG_SERIO is not set > +# CONFIG_LEGACY_PTYS is not set > +# CONFIG_LDISC_AUTOLOAD is not set > +# CONFIG_DEVMEM is not set > +# CONFIG_HW_RANDOM is not set > +# CONFIG_HWMON is not set > +# CONFIG_VGA_CONSOLE is not set > +# CONFIG_HID is not set > +# CONFIG_USB_SUPPORT is not set > +# CONFIG_VIRTIO_MENU is not set > +# CONFIG_DNOTIFY is not set > +# CONFIG_INOTIFY_USER is not set > +# CONFIG_MISC_FILESYSTEMS is not set > +CONFIG_LSM="[]" > +CONFIG_PRINTK_TIME=y > +# CONFIG_DEBUG_MISC is not set > +# CONFIG_SCHED_DEBUG is not set > +# CONFIG_RCU_TRACE is not set > +# CONFIG_FTRACE is not set > +# CONFIG_RUNTIME_TESTING_MENU is not set > -- > 2.24.1 > >
On Thu, 2020-03-12 at 12:03 -0700, Atish Patra wrote: > On Wed, Mar 11, 2020 at 10:11 PM Damien Le Moal <damien.lemoal@wdc.com> wrote: > > This patch adds a defconfig file to build No-MMU kernels meant for > > boards based on the Kendryte K210 SoC. > > > > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> > > Reviewed-by: Anup Patel <anup@brainfault.org> > > Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> > > --- > > arch/riscv/configs/nommu_k210_defconfig | 68 +++++++++++++++++++++++++ > > 1 file changed, 68 insertions(+) > > create mode 100644 arch/riscv/configs/nommu_k210_defconfig > > > > diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig > > new file mode 100644 > > index 000000000000..00ded8f0bc55 > > --- /dev/null > > +++ b/arch/riscv/configs/nommu_k210_defconfig > > @@ -0,0 +1,68 @@ > > +# CONFIG_CPU_ISOLATION is not set > > +CONFIG_LOG_BUF_SHIFT=15 > > +CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=12 > > +CONFIG_BLK_DEV_INITRD=y > > +CONFIG_INITRAMFS_SOURCE="k210.cpio" > > I don't think it is a common practice to provide a default rootfs file > in defconfig if it is not > part of the kernel. I may be wrong but I have not seen an example before. > It is expected that developers will generate their own rootfs and > modify it here. > > It may also raise compiler errors for auto builders in absence of k210.cpio. Good point. Will remove it. > > > +CONFIG_INITRAMFS_FORCE=y > > +# CONFIG_RD_BZIP2 is not set > > +# CONFIG_RD_LZMA is not set > > +# CONFIG_RD_XZ is not set > > +# CONFIG_RD_LZO is not set > > +# CONFIG_RD_LZ4 is not set > > +# CONFIG_BOOT_CONFIG is not set > > +CONFIG_CC_OPTIMIZE_FOR_SIZE=y > > +# CONFIG_SYSFS_SYSCALL is not set > > +# CONFIG_FHANDLE is not set > > +# CONFIG_BASE_FULL is not set > > +# CONFIG_EPOLL is not set > > +# CONFIG_SIGNALFD is not set > > +# CONFIG_TIMERFD is not set > > +# CONFIG_EVENTFD is not set > > +# CONFIG_AIO is not set > > +# CONFIG_IO_URING is not set > > +# CONFIG_ADVISE_SYSCALLS is not set > > +# CONFIG_MEMBARRIER is not set > > +# CONFIG_KALLSYMS is not set > > +CONFIG_EMBEDDED=y > > +# CONFIG_VM_EVENT_COUNTERS is not set > > +# CONFIG_COMPAT_BRK is not set > > +CONFIG_SLOB=y > > +# CONFIG_SLAB_MERGE_DEFAULT is not set > > +# CONFIG_MMU is not set > > +CONFIG_SOC_KENDRYTE=y > > +CONFIG_MAXPHYSMEM_2GB=y > > +CONFIG_SMP=y > > +CONFIG_NR_CPUS=2 > > +CONFIG_CMDLINE="earlycon console=ttySIF0" > > +CONFIG_CMDLINE_FORCE=y > > +CONFIG_USE_BUILTIN_DTB=y > > +CONFIG_BUILTIN_DTB_SOURCE="kendryte/k210" > > +# CONFIG_BLOCK is not set > > +CONFIG_BINFMT_FLAT=y > > +# CONFIG_COREDUMP is not set > > +CONFIG_DEVTMPFS=y > > +CONFIG_DEVTMPFS_MOUNT=y > > +# CONFIG_FW_LOADER is not set > > +# CONFIG_ALLOW_DEV_COREDUMP is not set > > +# CONFIG_INPUT_KEYBOARD is not set > > +# CONFIG_INPUT_MOUSE is not set > > +# CONFIG_SERIO is not set > > +# CONFIG_LEGACY_PTYS is not set > > +# CONFIG_LDISC_AUTOLOAD is not set > > +# CONFIG_DEVMEM is not set > > +# CONFIG_HW_RANDOM is not set > > +# CONFIG_HWMON is not set > > +# CONFIG_VGA_CONSOLE is not set > > +# CONFIG_HID is not set > > +# CONFIG_USB_SUPPORT is not set > > +# CONFIG_VIRTIO_MENU is not set > > +# CONFIG_DNOTIFY is not set > > +# CONFIG_INOTIFY_USER is not set > > +# CONFIG_MISC_FILESYSTEMS is not set > > +CONFIG_LSM="[]" > > +CONFIG_PRINTK_TIME=y > > +# CONFIG_DEBUG_MISC is not set > > +# CONFIG_SCHED_DEBUG is not set > > +# CONFIG_RCU_TRACE is not set > > +# CONFIG_FTRACE is not set > > +# CONFIG_RUNTIME_TESTING_MENU is not set > > -- > > 2.24.1 > > > > > >
diff --git a/arch/riscv/configs/nommu_k210_defconfig b/arch/riscv/configs/nommu_k210_defconfig new file mode 100644 index 000000000000..00ded8f0bc55 --- /dev/null +++ b/arch/riscv/configs/nommu_k210_defconfig @@ -0,0 +1,68 @@ +# CONFIG_CPU_ISOLATION is not set +CONFIG_LOG_BUF_SHIFT=15 +CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=12 +CONFIG_BLK_DEV_INITRD=y +CONFIG_INITRAMFS_SOURCE="k210.cpio" +CONFIG_INITRAMFS_FORCE=y +# CONFIG_RD_BZIP2 is not set +# CONFIG_RD_LZMA is not set +# CONFIG_RD_XZ is not set +# CONFIG_RD_LZO is not set +# CONFIG_RD_LZ4 is not set +# CONFIG_BOOT_CONFIG is not set +CONFIG_CC_OPTIMIZE_FOR_SIZE=y +# CONFIG_SYSFS_SYSCALL is not set +# CONFIG_FHANDLE is not set +# CONFIG_BASE_FULL is not set +# CONFIG_EPOLL is not set +# CONFIG_SIGNALFD is not set +# CONFIG_TIMERFD is not set +# CONFIG_EVENTFD is not set +# CONFIG_AIO is not set +# CONFIG_IO_URING is not set +# CONFIG_ADVISE_SYSCALLS is not set +# CONFIG_MEMBARRIER is not set +# CONFIG_KALLSYMS is not set +CONFIG_EMBEDDED=y +# CONFIG_VM_EVENT_COUNTERS is not set +# CONFIG_COMPAT_BRK is not set +CONFIG_SLOB=y +# CONFIG_SLAB_MERGE_DEFAULT is not set +# CONFIG_MMU is not set +CONFIG_SOC_KENDRYTE=y +CONFIG_MAXPHYSMEM_2GB=y +CONFIG_SMP=y +CONFIG_NR_CPUS=2 +CONFIG_CMDLINE="earlycon console=ttySIF0" +CONFIG_CMDLINE_FORCE=y +CONFIG_USE_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_SOURCE="kendryte/k210" +# CONFIG_BLOCK is not set +CONFIG_BINFMT_FLAT=y +# CONFIG_COREDUMP is not set +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y +# CONFIG_FW_LOADER is not set +# CONFIG_ALLOW_DEV_COREDUMP is not set +# CONFIG_INPUT_KEYBOARD is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_SERIO is not set +# CONFIG_LEGACY_PTYS is not set +# CONFIG_LDISC_AUTOLOAD is not set +# CONFIG_DEVMEM is not set +# CONFIG_HW_RANDOM is not set +# CONFIG_HWMON is not set +# CONFIG_VGA_CONSOLE is not set +# CONFIG_HID is not set +# CONFIG_USB_SUPPORT is not set +# CONFIG_VIRTIO_MENU is not set +# CONFIG_DNOTIFY is not set +# CONFIG_INOTIFY_USER is not set +# CONFIG_MISC_FILESYSTEMS is not set +CONFIG_LSM="[]" +CONFIG_PRINTK_TIME=y +# CONFIG_DEBUG_MISC is not set +# CONFIG_SCHED_DEBUG is not set +# CONFIG_RCU_TRACE is not set +# CONFIG_FTRACE is not set +# CONFIG_RUNTIME_TESTING_MENU is not set