Changes between Version 1 and Version 2 of buildroot
- Timestamp:
- 12/07/2017 05:48:17 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
buildroot
v1 v2 44 44 45 45 Make 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 49 52 50 53 If using buildbot to build kernel add the following to automatically build a kernel using to buildroot rootfs as an initramfs: … … 62 65 63 66 67 [=#newport] 68 == Newport (CN80XX/CN81XX) == 69 The following details pertain to buildroot 2017.11 although newer versions will likely be similar if not the same. 70 71 To 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 77 This builds a ~500KiB output/images/root.tar.xz in less than 5 minutes on a typical Linux desktop. 78 79 If 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 84 Adding the kernel build produces a ~21MB Image in less than 10 minutes on a typical Linux desktop. 85 86 To boot this on a Newport bootloader: 87 {{{#!bash 88 buildroot=tftpboot ${kernel_addr} newport/buildroot/Image && booti ${kernel_addr} - ${fdtcontroladdr} 89 }}} 90 91 Now you have a minimal Linux OS that booted in about 6 seconds. 92 93 A 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] 64 104 == Ventana (IMX6) == 105 The following details pertain to buildroot 2017.08 although newer versions will likely be similar if not the same. 106 65 107 To configure buildroot for the i.MX6 SoC found on the Ventana product family: 66 108 * Target options -> Target Architecture -> ARM (little endian) … … 70 112 * Target options -> Floating point strategy (NEON) (BR2_ARM_FPU_NEON=y) 71 113 * Filesystem images -> tar the root filesystem -> Compression method (xz) 72 * Filesystem images -> initial RAM filesystem linked into linux kernel73 114 74 This builds a 500KiB output/images/rootfs.tar.xz in less than 5 minutes on a typical Linux desktop.115 This builds a ~500KiB output/images/rootfs.tar.xz in less than 5 minutes on a typical Linux desktop. 75 116 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}}}:117 If 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}}}: 77 118 * Kernel -> Linux Kernel (BR2_LINUX_KERNEL) 78 119 * Kernel -> Defconfig name (imx_v6_v7) (BR2_LINUX_KERNEL_DEFCONFIG) … … 80 121 * Kernel -> load address (0x10008000) (BR2_LINUX_KERNEL_UIMAGE_LOADADDR) 81 122 * 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 82 124 83 Adding the kernel build produces a 6.1MB uImage in less than 10 minutes on a typical Linux desktop.125 Adding the kernel build produces a ~6MB uImage in less than 10 minutes on a typical Linux desktop. 84 126 85 127 To boot this on a Ventana bootloader: … … 90 132 Now you have a minimal Linux OS that booted in about 6 seconds. 91 133 92 Theprebuilt image of this can be found at: http://dev.gateworks.com/buildroot/ventana/minimal134 A prebuilt image of this can be found at: http://dev.gateworks.com/buildroot/ventana/minimal 93 135 94 136 Additional tools: