Changes between Version 1 and Version 2 of buildroot


Ignore:
Timestamp:
12/07/2017 05:48:17 PM (7 years ago)
Author:
Tim Harvey
Comment:

added newport buildroot details

Legend:

Unmodified
Added
Removed
Modified
  • buildroot

    v1 v2  
    4444
    4545Make sure your kernel has the following:
    46  - CONFIG_DEVTMPFS=y, to get devtmpfs support, to provide a dynamic /dev
    47  - CONFIG_INITRAMFS_SOURCE="/path/to/buildroot/output/images/rootfs.cpio"
    48  - CONFIG_INITRAMFS_COMPRESSION_GZIP=y or some other compression algorithm
     46 - CONFIG_DEVTMPFS=y - to get devtmpfs support, to provide a dynamic /dev
     47 - CONFIG_INITRAMFS_SOURCE="/path/to/buildroot/output/images/rootfs.cpio" - path to your cpio
     48 - CONFIG_INITRAMFS_COMPRESSION_GZIP=y - compression algorithm
     49 - CONFIG_INITRAMFS_ROOT_UID=0 - root user id
     50 - CONFIG_INITRAMFS_ROOT_GID=0 - root group id
     51
    4952
    5053If using buildbot to build kernel add the following to automatically build a kernel using to buildroot rootfs as an initramfs:
     
    6265
    6366
     67[=#newport]
     68== Newport (CN80XX/CN81XX) ==
     69The following details pertain to buildroot 2017.11 although newer versions will likely be similar if not the same.
     70
     71To configure buildroot for the Cavium CN80XX/CN81XX SoC found on the Newport product family:
     72 * Target options -> Target Architecture -> AArch64 (little endian)
     73 * Filesystem images -> tar the root filesystem -> Compression method (xz)
     74 * Filesystem images -> cpio the root filesystem
     75 * Filesystem images -> Compression method (xz)
     76
     77This builds a ~500KiB output/images/root.tar.xz in less than 5 minutes on a typical Linux desktop.
     78 
     79If you also want buildroot to build a kernel provided from buildroot using the buildroot rootfs embedded as an initramfs then enable the following to create a kernel suitable for aarch64 and booting via U-Boot {{{booti}}}:
     80 * Kernel -> Linux Kernel (BR2_LINUX_KERNEL)
     81 * Kernel -> Kernel configuration (Using a custom (def)config file) -> newport_defconfig
     82 * Filesystem images -> initial RAM filesystem linked into linux kernel
     83
     84Adding the kernel build produces a ~21MB Image in less than 10 minutes on a typical Linux desktop.
     85
     86To boot this on a Newport bootloader:
     87{{{#!bash
     88buildroot=tftpboot ${kernel_addr} newport/buildroot/Image && booti ${kernel_addr} - ${fdtcontroladdr}
     89}}}
     90
     91Now you have a minimal Linux OS that booted in about 6 seconds.
     92
     93A prebuilt image can be found [http://dev.gateworks.com/buildroot/newport/minimal here] which contains:
     94 * Linux 4.14 kernel with ThunderX periperhals enabled
     95 * resize2fs (BR2_PACKAGE_E2FSPROGS_RESIZE2FS)
     96 * screen (BR2_PACKAGE_SCREEN)
     97 * pciutils (BR2_PACKAGE_PCIUTILS)
     98 * libusb (BR2_PACKAGE_LIBUSB)
     99 * eudev (BR2_PACKAGE_HAS_UDEV)
     100 * usbutils (BR2_PACKAGE_USBUTILS)
     101 * disk partitioning tools
     102
     103[=#ventana]
    64104== Ventana (IMX6) ==
     105The following details pertain to buildroot 2017.08 although newer versions will likely be similar if not the same.
     106
    65107To configure buildroot for the i.MX6 SoC found on the Ventana product family:
    66108 * Target options -> Target Architecture -> ARM (little endian)
     
    70112 * Target options -> Floating point strategy (NEON) (BR2_ARM_FPU_NEON=y)
    71113 * Filesystem images -> tar the root filesystem -> Compression method (xz)
    72  * Filesystem images -> initial RAM filesystem linked into linux kernel
    73114
    74 This builds a 500KiB output/images/rootfs.tar.xz in less than 5 minutes on a typical Linux desktop.
     115This builds a ~500KiB output/images/rootfs.tar.xz in less than 5 minutes on a typical Linux desktop.
    75116
    76 If you also want buildroot to build a kernel using the buildroot rootfs embedded as an initramfs then enable the following to create a kernel suitable for imx_v6_v7 and booting via U-Boot {{{bootm}}}:
     117If you also want buildroot to build a kernel provided from buildroot using the buildroot rootfs embedded as an initramfs then enable the following to create a kernel suitable for imx_v6_v7 and booting via U-Boot {{{bootm}}}:
    77118 * Kernel -> Linux Kernel (BR2_LINUX_KERNEL)
    78119 * Kernel -> Defconfig name (imx_v6_v7) (BR2_LINUX_KERNEL_DEFCONFIG)
     
    80121 * Kernel -> load address (0x10008000) (BR2_LINUX_KERNEL_UIMAGE_LOADADDR)
    81122 * Kernel -> Device Tree Source file names (imx6dl-gw54xx imx6q-gw54xx imx6dl-gw53xx imx6q-gw53xx imx6dl-gw52xx imx6q-gw52xx imx6dl-gw51xx imx6q-gw51xx imx6dl-gw551x imx6q-gw551x imx6dl-gw552x imx6q-gw552x imx6dl-gw553x imx6q-gw553x) (BR2_LINUX_KERNEL_INTREE_DTS_NAME)
     123 * Filesystem images -> initial RAM filesystem linked into linux kernel
    82124
    83 Adding the kernel build produces a 6.1MB uImage in less than 10 minutes on a typical Linux desktop.
     125Adding the kernel build produces a ~6MB uImage in less than 10 minutes on a typical Linux desktop.
    84126
    85127To boot this on a Ventana bootloader:
     
    90132Now you have a minimal Linux OS that booted in about 6 seconds.
    91133
    92 The prebuilt image of this can be found at: http://dev.gateworks.com/buildroot/ventana/minimal
     134A prebuilt image of this can be found at: http://dev.gateworks.com/buildroot/ventana/minimal
    93135
    94136Additional tools: