{"id":18694249,"url":"https://github.com/9elements/u-boot-acpi-project","last_synced_at":"2025-09-05T08:14:03.071Z","repository":{"id":246433065,"uuid":"817853143","full_name":"9elements/u-boot-acpi-project","owner":"9elements","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-30T12:55:38.000Z","size":481632,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T08:41:31.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/9elements.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-06-20T15:15:56.000Z","updated_at":"2024-10-30T12:55:41.000Z","dependencies_parsed_at":"2025-05-18T23:20:56.666Z","dependency_job_id":null,"html_url":"https://github.com/9elements/u-boot-acpi-project","commit_stats":null,"previous_names":["9elements/u-boot-acpi-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/9elements/u-boot-acpi-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elements%2Fu-boot-acpi-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elements%2Fu-boot-acpi-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elements%2Fu-boot-acpi-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elements%2Fu-boot-acpi-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9elements","download_url":"https://codeload.github.com/9elements/u-boot-acpi-project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9elements%2Fu-boot-acpi-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273728476,"owners_count":25157212,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T11:08:59.165Z","updated_at":"2025-09-05T08:13:58.024Z","avatar_url":"https://github.com/9elements.png","language":"Go","readme":"# Building the project\n\nIn order to build and test the project, we need a couple of ingridients.\nThe ingridients have been added as git submodules:\n\nbranch: rpi-6.9.y-mcfg-quirk, remote: https://github.com/9elements/linux/\nbranch: main,                 remote: https://github.com/u-root/u-root.git\nbranch: master,             remote: https://github.com/9elements/u-boot-acpi\n\nIt is expected by the reader, that he/she has already installed the neccessary toolchain (aarch64-linux-gnu).\nThis can be as easy as installing it using your package manager of choice.\nIt is also required that the `go` toolchain is installed as well as some typical system binaries that Linux needs in order to compile.\n\n## Building u-root\n```\ncd u-root\ngo build .\nGOARCH=arm64 ./u-root -defaultsh gosh -o initramfs.cpio boot coreboot-app ./cmds/core/* ./cmds/boot/*\ncd -\n```\n\n## Building Linux kernel\n\n```\ncd linux\nexport ARCH=arm64\nexport CROSS_COMPILE=aarch64-linux-gnu-\nmake bcm2711_defconfig\n./scripts/kconfig/merge_config.sh .config ../acpi.conf ../uroot_initramfs.conf\nmake Image -j$(nproc)\nmake dtbs -j$(nproc)\ncd -\n```\n\n## Building u-boot\n\n```\ncd u-boot\nARCH=arm CROSS_COMPILE=aarch64-linux-gnu- make rpi_4_acpi_defconfig\nARCH=arm CROSS_COMPILE=aarch64-linux-gnu- make -j$(nproc)\ncd -\n```\n\n## Build u-boot enviroment\n\n```\ncd u-boot\n./tools/mkimage -A arm64 -O linux -T script -C none -d ../boot_cmd.txt boot.scr\ncd -\n```\n\n## Flash contents to sdcard\n\nYour SD card should have at least one partition:\n512M FAT32 EFI partition\n\nmount your sd card and copy all ingridients onto the SD Card\n```\nmount /dev/mmcblk0p0 /mnt\ncp linux/arch/arm64/boot/Image /mnt\ncp linux/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb /mnt\ncp u-boot/u-boot.bin /mnt\ncp u-boot/boot.scr /mnt\ncp config.txt /mnt\ncp bootcode.bin /mnt\ncp start4.elf /mnt\nunmount /mnt\n```\n\nNow plug out the SD card and put it into the raspberry PI 4 B\n\n## Workflow\n\n## Testing in QEMU:\n\nStarting with QEMU 9.0 you can run the RPI 4 in qemu:\n\nUpdate boot_cmd.txt:\n```\nfatload mmc 1:1 ${kernel_addr_r} Image\nfatsize mmc 1:1 Image\n#setenv bootargs \"console=ttyS0,115200 console=tty1\"\nbootefi ${kernel_addr_r}:${filesize} -\n```\n\nTo run u-boot and boot from MMC run:\n```\nqemu-system-aarch64 -machine raspi4b -kernel u-boot/u-boot.bin -cpu cortex-a72 -smp 4 -m 2G -drive file=raspbian.img,format=raw,index=0 -dtb linux/arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb -nographic\n```\nNote: Assumes you have *Image* copied into the raspbian.img image.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9elements%2Fu-boot-acpi-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9elements%2Fu-boot-acpi-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9elements%2Fu-boot-acpi-project/lists"}