| 251 | | If you need add back or modify kernel features you can do so with: |
| | 251 | Perhaps an even more useful image would contain tools for provisioning a FLASH emmc device: |
| | 252 | {{{#!bash |
| | 253 | cat << EOF > configs/venice_example_defconfig |
| | 254 | # arm64 arch |
| | 255 | BR2_aarch64=y |
| | 256 | # toolchain |
| | 257 | BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y |
| | 258 | BR2_TOOLCHAIN_BUILDROOT_WCHAR=y |
| | 259 | BR2_TOOLCHAIN_BUILDROOT_CXX=y |
| | 260 | BR2_TOOLCHAIN_BUILDROOT_LOCALE=y |
| | 261 | BR2_TOOLCHAIN_BUILDROOT_GLIBC=y |
| | 262 | # kernel |
| | 263 | BR2_LINUX_KERNEL=y |
| | 264 | BR2_LINUX_KERNEL_CUSTOM_GIT=y |
| | 265 | BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/Gateworks/linux-venice.git" |
| | 266 | BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="v5.4.45-venice" |
| | 267 | BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y |
| | 268 | BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="venice_minimal_kernel_defconfig" |
| | 269 | # filesystem options |
| | 270 | BR2_TARGET_ROOTFS_CPIO_XZ=y |
| | 271 | BR2_TARGET_ROOTFS_INITRAMFS=y |
| | 272 | BR2_TARGET_ROOTFS_TAR_XZ=y |
| | 273 | # extra utils needed for basic testing and provisioning emmc |
| | 274 | BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y |
| | 275 | BR2_PACKAGE_COREUTILS=y |
| | 276 | BR2_PACKAGE_PV=y |
| | 277 | BR2_PACKAGE_STRESS=y |
| | 278 | BR2_PACKAGE_E2FSPROGS=y |
| | 279 | BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y |
| | 280 | BR2_PACKAGE_PARTED=y |
| | 281 | BR2_PACKAGE_EVTEST=y |
| | 282 | BR2_PACKAGE_GPTFDISK=y |
| | 283 | BR2_PACKAGE_GPTFDISK_SGDISK=y |
| | 284 | BR2_PACKAGE_I2C_TOOLS=y |
| | 285 | BR2_PACKAGE_MEMTESTER=y |
| | 286 | BR2_PACKAGE_PCIUTILS=y |
| | 287 | BR2_PACKAGE_PICOCOM=y |
| | 288 | BR2_PACKAGE_LIBUSB=y |
| | 289 | BR2_PACKAGE_TCPDUMP=y |
| | 290 | BR2_PACKAGE_SCREEN=y |
| | 291 | BR2_PACKAGE_UTIL_LINUX=y |
| | 292 | BR2_PACKAGE_UTIL_LINUX_BINARIES=y |
| | 293 | BR2_PACKAGE_TAR=y |
| | 294 | # extra utils needed for uboot images and env |
| | 295 | BR2_PACKAGE_UBOOT_TOOLS=y |
| | 296 | BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y |
| | 297 | # fetch minimal kernel config |
| | 298 | wget http://dev.gateworks.com/buildroot/newport/minimal/venice_minimal_kernel_defconfig |
| | 299 | make venice_example_defconfig |
| | 300 | make -j8 |
| | 301 | }}} |
| | 302 | * Note you can easily add your own files and scripts to this image by setting BR2_ROOTFS_OVERLAY to a directory or directories where your files are |
| | 303 | |
| | 304 | This produces a ~15MiB output/images/Image in 10 to 15 minutes of building on a typical Linux desktop. This is a kernel Image containing the root filesystem in a ramdisk. This is a really easy way to get a read-only minimal Linux image that boots fast and has the tools necessary to create a partition table and filesystems |
| | 305 | |
| | 306 | If you need to add back or modify kernel features you can do so with: |
| 273 | | A prebuilt image can be found [http://dev.gateworks.com/buildroot/venice/minimal here] which contains: |
| 274 | | * Gateworks Linux 5.4.45 kernel |
| 275 | | * resize2fs (BR2_PACKAGE_E2FSPROGS_RESIZE2FS) |
| 276 | | * uclibc |
| 277 | | * screen (BR2_PACKAGE_SCREEN) |
| 278 | | * pciutils (BR2_PACKAGE_PCIUTILS) |
| 279 | | * libusb (BR2_PACKAGE_LIBUSB) |
| 280 | | * eudev (BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV) (required for usbutils) |
| 281 | | * usbutils (BR2_PACKAGE_USBUTILS) |
| 282 | | * gdisk/sgdisk disk partitioning tools: |
| 283 | | - gdisk/sgdisk (BR2_PACKAGE_GPTFDISK/BR2_PACKAGE_GPTFDISK_SGDISK) |
| 284 | | * stress (BR2_PACKAGE_STRESS) |
| 285 | | * evtest (BR2_PACKAGE_EVTEST) |
| | 328 | A prebuilt image can be found [http://dev.gateworks.com/buildroot/venice/minimal here] which contains an image built from the above venice_example_defconfig |
| | 329 | - Gateworks Venice Linux 5.4.45 kernel |
| | 330 | - glibc with wide-char, locale, and g++ support |
| | 331 | - screen (BR2_PACKAGE_SCREEN) |
| | 332 | - pciutils (BR2_PACKAGE_PCIUTILS) |
| | 333 | - libusb (BR2_PACKAGE_LIBUSB) |
| | 334 | - eudev (BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV) (required for usbutils) |
| | 335 | - usbutils (BR2_PACKAGE_USBUTILS) |
| | 336 | - stress (BR2_PACKAGE_STRESS) |
| | 337 | - evtest (BR2_PACKAGE_EVTEST) |
| | 338 | - parted/gdisk/sgdisk disk partitioning tools |
| | 339 | - ext filesystem support mkfs/resize2fs (BR2_PACKAGE_E2FSPROGS_RESIZE2FS) |
| | 340 | - u-boot image creation tools (mkimage/fw_setenv/fw_printenv) |
| | 389 | Perhaps an even more useful image would contain tools for provisioning a FLASH emmc device: |
| | 390 | {{{#!bash |
| | 391 | cat << EOF > configs/newport_provision_defconfig |
| | 392 | # arm64 arch |
| | 393 | BR2_aarch64=y |
| | 394 | # toolchain |
| | 395 | BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4=y |
| | 396 | BR2_TOOLCHAIN_BUILDROOT_WCHAR=y |
| | 397 | BR2_TOOLCHAIN_BUILDROOT_CXX=y |
| | 398 | BR2_TOOLCHAIN_BUILDROOT_LOCALE=y |
| | 399 | BR2_TOOLCHAIN_BUILDROOT_GLIBC=y |
| | 400 | # kernel |
| | 401 | BR2_LINUX_KERNEL=y |
| | 402 | BR2_LINUX_KERNEL_CUSTOM_GIT=y |
| | 403 | BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/Gateworks/linux-newport.git" |
| | 404 | BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="v5.4.45-newport" |
| | 405 | BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y |
| | 406 | BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="newport_minimal_kernel_defconfig" |
| | 407 | # filesystem options |
| | 408 | BR2_TARGET_ROOTFS_CPIO_XZ=y |
| | 409 | BR2_TARGET_ROOTFS_INITRAMFS=y |
| | 410 | BR2_TARGET_ROOTFS_TAR_XZ=y |
| | 411 | # extra utils needed for basic testing and provisioning emmc |
| | 412 | BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y |
| | 413 | BR2_PACKAGE_COREUTILS=y |
| | 414 | BR2_PACKAGE_PV=y |
| | 415 | BR2_PACKAGE_STRESS=y |
| | 416 | BR2_PACKAGE_E2FSPROGS=y |
| | 417 | BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y |
| | 418 | BR2_PACKAGE_PARTED=y |
| | 419 | BR2_PACKAGE_EVTEST=y |
| | 420 | BR2_PACKAGE_GPTFDISK=y |
| | 421 | BR2_PACKAGE_GPTFDISK_SGDISK=y |
| | 422 | BR2_PACKAGE_I2C_TOOLS=y |
| | 423 | BR2_PACKAGE_MEMTESTER=y |
| | 424 | BR2_PACKAGE_PCIUTILS=y |
| | 425 | BR2_PACKAGE_PICOCOM=y |
| | 426 | BR2_PACKAGE_LIBUSB=y |
| | 427 | BR2_PACKAGE_TCPDUMP=y |
| | 428 | BR2_PACKAGE_SCREEN=y |
| | 429 | BR2_PACKAGE_UTIL_LINUX=y |
| | 430 | BR2_PACKAGE_UTIL_LINUX_BINARIES=y |
| | 431 | BR2_PACKAGE_TAR=y |
| | 432 | # extra utils needed for uboot images and env |
| | 433 | BR2_PACKAGE_UBOOT_TOOLS=y |
| | 434 | BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE=y |
| | 435 | EOF |
| | 436 | # fetch minimal kernel config |
| | 437 | wget http://dev.gateworks.com/buildroot/newport/minimal/newport_minimal_kernel_defconfig |
| | 438 | make newport_kernel_defconfig |
| | 439 | make -j8 |
| | 440 | }}} |
| | 441 | * Note you can easily add your own files and scripts to this image by setting BR2_ROOTFS_OVERLAY to a directory or directories where your files are |
| | 442 | |
| | 443 | This produces a ~15MiB output/images/Image in 10 to 15 minutes of building on a typical Linux desktop. This is a kernel Image containing the root filesystem in a ramdisk. This is a really easy way to get a read-only minimal Linux image that boots fast and has the tools necessary to create a partition table and filesystems |
| | 444 | |
| 348 | | A prebuilt image can be found here which contains: |
| 349 | | * Gateworks Linux 5.4.45 kernel |
| 350 | | * resize2fs (BR2_PACKAGE_E2FSPROGS_RESIZE2FS) |
| 351 | | * uclibc |
| 352 | | * screen (BR2_PACKAGE_SCREEN) |
| 353 | | * pciutils (BR2_PACKAGE_PCIUTILS) |
| 354 | | * libusb (BR2_PACKAGE_LIBUSB) |
| 355 | | * eudev (BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV) (required for usbutils) |
| 356 | | * usbutils (BR2_PACKAGE_USBUTILS) |
| 357 | | * gdisk/sgdisk disk partitioning tools: |
| 358 | | * gdisk/sgdisk (BR2_PACKAGE_GPTFDISK/BR2_PACKAGE_GPTFDISK_SGDISK) |
| 359 | | * stress (BR2_PACKAGE_STRESS) |
| 360 | | * evtest (BR2_PACKAGE_EVTEST) |
| | 459 | A prebuilt image can be found [http://dev.gateworks.com/buildroot/newport/minimal here] which contains an image built from the above newport_example_defconfig |
| | 460 | - Gateworks Newport Linux 5.4.45 kernel |
| | 461 | - glibc with wide-char, locale, and g++ support |
| | 462 | - screen (BR2_PACKAGE_SCREEN) |
| | 463 | - pciutils (BR2_PACKAGE_PCIUTILS) |
| | 464 | - libusb (BR2_PACKAGE_LIBUSB) |
| | 465 | - eudev (BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV) (required for usbutils) |
| | 466 | - usbutils (BR2_PACKAGE_USBUTILS) |
| | 467 | - stress (BR2_PACKAGE_STRESS) |
| | 468 | - evtest (BR2_PACKAGE_EVTEST) |
| | 469 | - parted/gdisk/sgdisk disk partitioning tools |
| | 470 | - ext filesystem support mkfs/resize2fs (BR2_PACKAGE_E2FSPROGS_RESIZE2FS) |
| | 471 | - u-boot image creation tools (mkimage/fw_setenv/fw_printenv) |