{"id":23440056,"url":"https://github.com/godmode2k/simple-bootloader-test","last_synced_at":"2026-05-06T04:02:56.704Z","repository":{"id":268334478,"uuid":"904012418","full_name":"godmode2k/simple-bootloader-test","owner":"godmode2k","description":"Simple Bootloader test (ARM)","archived":false,"fork":false,"pushed_at":"2024-12-16T05:02:47.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T20:16:39.113Z","etag":null,"topics":["aarch32","aarch64","arm","arm-assembly","arm64","bootloader","bootstrap","hello-world","qemu-aarch64","qemu-arm","qemu-system-aarch64","qemu-system-arm"],"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/godmode2k.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-12-16T04:47:58.000Z","updated_at":"2024-12-16T05:06:52.000Z","dependencies_parsed_at":"2024-12-16T06:18:14.962Z","dependency_job_id":"5a93968b-d3a8-4f47-8664-3719e6bd1fbc","html_url":"https://github.com/godmode2k/simple-bootloader-test","commit_stats":null,"previous_names":["godmode2k/simple-bootloader-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/godmode2k/simple-bootloader-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fsimple-bootloader-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fsimple-bootloader-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fsimple-bootloader-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fsimple-bootloader-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/godmode2k","download_url":"https://codeload.github.com/godmode2k/simple-bootloader-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godmode2k%2Fsimple-bootloader-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aarch32","aarch64","arm","arm-assembly","arm64","bootloader","bootstrap","hello-world","qemu-aarch64","qemu-arm","qemu-system-aarch64","qemu-system-arm"],"created_at":"2024-12-23T15:39:47.786Z","updated_at":"2026-05-06T04:02:56.670Z","avatar_url":"https://github.com/godmode2k.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Bootloader test\n\n\nReference\n----------\n```sh\nsource-based:\n - https://interrupt.memfault.com/blog/how-to-write-a-bootloader-from-scratch\n - https://interrupt.memfault.com/blog/how-to-write-a-bootloader-from-scratch\n - https://balau82.wordpress.com/2010/02/28/hello-world-for-bare-metal-arm-using-qemu\n - https://www.youtube.com/watch?v=cfNJ85cX-ms\n - https://www.youtube.com/watch?v=3brOzLJmeek\n```\n\n\nEnvironment\n----------\n    OS: Ubuntu 20.04 x64 LTS\n    VM: QEMU v7.2.11, v9.0.0 (https://www.qemu.org/)\n    ARM Toolchain: arm-gnu-toolchain-13.x\n\n\nARM Toolchain\n----------\n```sh\ndownload:\nhttps://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads\n\n$ cd $HOME\n$ mkdir arm-toolchain\n$ cd arm-toolchain\n\n1. AArch32\n// arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf\n$ wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz?rev=adb0c0238c934aeeaa12c09609c5e6fc\u0026hash=B119DA50CEFE6EE8E0E98B4ADCA4C55F\n$ tar xJvf arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz\n\n2. AArch64\n// arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu\n$ wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz?rev=22c39fc25e5541818967b4ff5a09ef3e\u0026hash=B9FEDC2947EB21151985C2DC534ECCEC\n$ tar xJvf arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-linux-gnu.tar.xz\n\n\n// AArch32 bare-metal target (arm-none-eabi)\n// for gdb (arm-none-eabi-gdb)\n$ sudo apt-get install libncursesw5 libncursesw5-dev\n\n\n// path\n$ echo \"export PATH=$PATH:/home/arm-toolchain/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-linux-gnu/bin\" \u003e\u003e $HOME/.profile\n$ echo \"export PATH=$PATH:/home/arm-toolchain/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-linux-gnueabihf/bin\" \u003e\u003e $HOME/.profile\n$ source $HOME/.profile\n```\n\n\nQEMU Build Instructions\n----------\n```sh\n$ cd $HOME\n\n$ sudo apt-get update\n$ sudo apt-get install build-essential gdb gdb-multiarch\n$ sudo apt-get install python3 python3-pip ninja-build\n$ sudo apt-get install pkg-config libglib2.0-dev\n$ sudo apt-get install libslirp-dev\n$ sudo apt-get install libpixman-1-dev\n$ pip install sphinx\n$ pip install sphinx_rtd_theme\n\n// download QEMU 7.2.11, 9.0.0\n$ wget https://download.qemu.org/qemu-7.2.11.tar.xz\n$ wget https://download.qemu.org/qemu-9.0.0.tar.xz\n$ tar xvJf qemu-7.2.11.tar.xz\n$ tar xvJf qemu-9.0.0.tar.xz\n\n$ cd qemu-7.2.11\n// or\n$ cd qemu-9.0.0\n\n\n// ARM, AARCH64, x86_64\n$ ./configure --target-list=\"arm-softmmu,arm-linux-user,aarch64-linux-user,aarch64-softmmu,x86_64-softmmu,x86_64-linux-user\"\n$ make\n\n// with enable GTK\n$ sudo apt-get install libgtk-3-dev\n$ ./configure --target-list=\"arm-softmmu,arm-linux-user,aarch64-linux-user,aarch64-softmmu,x86_64-softmmu,x86_64-linux-user\" --enable-gtk\n$ make\n\n\n// path\n$ ln -s $HOME/qemu-7.2.11/build/qemu-arm .\n$ ln -s $HOME/qemu-7.2.11/build/qemu-aarch64 .\n$ ln -s $HOME/qemu-7.2.11/build/qemu-system-arm .\n$ ln -s $HOME/qemu-7.2.11/build/qemu-system-aarch64 .\n// or\n$ ln -s $HOME/qemu-9.0.0/build/qemu-arm .\n$ ln -s $HOME/qemu-9.0.0/build/qemu-aarch64 .\n$ ln -s $HOME/qemu-9.0.0/build/qemu-system-arm .\n$ ln -s $HOME/qemu-9.0.0/build/qemu-system-aarch64 .\n```\n\n\nBuild and Run\n----------\n```sh\n1. Build\n\n$ git clone https://github.com/godmode2k/simple-bootloader-test.git\n$ cd simple-bootloader-test\n\n$ arm-none-linux-gnueabihf-as -g -o startup.o startup.s\n$ arm-none-linux-gnueabihf-gcc -g -Wall -Werror -O0 -Wl,--gc-sections -static -c -o bootloader2.o bootloader2.c\n$ arm-none-linux-gnueabihf-ld -Map bootloader2.map -T bootloader2.ld -o bootloader2.elf startup.o bootloader2.o\n$ arm-none-linux-gnueabihf-objdump -D bootloader2.elf \u003e bootloader2.list\n$ arm-none-linux-gnueabihf-objcopy bootloader2.elf bootloader2.bin\n$ arm-none-linux-gnueabihf-size bootloader2.bin\n\nor\n\n$ sh build.sh\n\n\n2. Run\n\n$ qemu-system-arm -M versatilepb -cpu cortex-a15 -nographic -kernel bootloader2.bin\n\nor\n\n$ sh qemu_bootloader_test.sh\n\nBootloader! hello, wo1abc\nBootloader! hello, wo2\nBootloader! hello, wo3\nBootloader! hello, wo4\nBootloader! hello, wo5\nBootloader! hello, wo6\nBootloader! hello, wo7\n\nQuit the QEMU: ctrl+a x\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodmode2k%2Fsimple-bootloader-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodmode2k%2Fsimple-bootloader-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodmode2k%2Fsimple-bootloader-test/lists"}