{"id":22370040,"url":"https://github.com/andreicherniaev/buildroot_cpio_i386_bios","last_synced_at":"2025-03-26T16:24:46.147Z","repository":{"id":259230497,"uuid":"877168274","full_name":"AndreiCherniaev/buildroot_cpio_i386_bios","owner":"AndreiCherniaev","description":"How to build Linux cpio (live) image","archived":false,"fork":false,"pushed_at":"2024-10-30T12:21:56.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T19:42:43.054Z","etag":null,"topics":["buildroot","example"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiCherniaev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-23T07:52:42.000Z","updated_at":"2024-10-30T12:22:00.000Z","dependencies_parsed_at":"2024-10-23T18:16:27.555Z","dependency_job_id":"a3d65948-ac5e-448b-a3f8-2c9fe2e2e859","html_url":"https://github.com/AndreiCherniaev/buildroot_cpio_i386_bios","commit_stats":null,"previous_names":["andreicherniaev/buildroot_cpio_i386_bios"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2Fbuildroot_cpio_i386_bios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2Fbuildroot_cpio_i386_bios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2Fbuildroot_cpio_i386_bios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiCherniaev%2Fbuildroot_cpio_i386_bios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiCherniaev","download_url":"https://codeload.github.com/AndreiCherniaev/buildroot_cpio_i386_bios/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245690528,"owners_count":20656601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buildroot","example"],"created_at":"2024-12-04T19:31:57.962Z","updated_at":"2025-03-26T16:24:46.122Z","avatar_url":"https://github.com/AndreiCherniaev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"How to build Linux cpio (live) image.\n## Clone\n```\ngit clone --remote-submodules --recurse-submodules -j8 https://github.com/AndreiCherniaev/buildroot_cpio_i386_bios.git\ncd buildroot_cpio_i386_bios/\n```\n\n## Make image\n```\nmake clean -C buildroot\nmake BR2_EXTERNAL=$PWD/my_external_tree -C $PWD/buildroot cpio_i386_bios_defconfig\nmake -C buildroot\n```\n## Save non-default buildroot .config\nTo save non-default buildroot's buildroot/.config to $PWD/my_external_tree/configs/cpio_i386_bios_defconfig\n```\nmake -C $PWD/buildroot savedefconfig BR2_DEFCONFIG=$PWD/my_external_tree/configs/cpio_i386_bios_defconfig\n```\n## rebuild grub2\n```\nmake grub2-dirclean -C buildroot\nmake grub2-rebuild -C buildroot\nmake -C buildroot\n```\n## Clean and build Kernel\n[linux-reconfigure.](https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi)\n```\nmake linux-menuconfig -C buildroot \nmake linux-rebuild -C buildroot \u0026\u0026 make -C buildroot\n```\n## Save non-default Linux .config\nTo save non-default Linux's .config to $PWD/my_external_tree/board/my_company/my_board/pc_x86_bios_kernel_5.4.228.config\n```\nmake -C $PWD/buildroot/ linux-update-defconfig BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=$PWD/my_external_tree/board/my_company/my_board/pc_x86_bios_kernel_5.4.228.config\n```\n\n## Start in QEMU\n```\nqemu-system-i386 -m 512 -kernel ../Buildroot.img\n```\n\n![QEMU err screen](QEMU_err.png)\n\n# Check rootfs.cpio\nLet's check what inside rootfs.cpio file. Unarchive rootfs.cpio to `archive/`\n```\nmkdir buildroot/output/images/archive \u0026\u0026 cd $_\ncpio --no-absolute-filenames -i -vd \u003c \"../rootfs.cpio\"\n```\nInside `boot/` there is `grub/` only, there is no bzImage in `boot/`...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreicherniaev%2Fbuildroot_cpio_i386_bios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreicherniaev%2Fbuildroot_cpio_i386_bios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreicherniaev%2Fbuildroot_cpio_i386_bios/lists"}