# PiBoot **Repository Path**: nathanjoy/PiBoot ## Basic Information - **Project Name**: PiBoot - **Description**: 树莓派b3 uboot启动 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-11 - **Last Updated**: 2025-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 编译u-boot - Version u-boot-2025.07.tar.bz2 - 前置编译安装软件 ``` bash sudo apt install git build-essential gcc-aarch64-linux-gnu device-tree-compiler bc libssl-dev libgnutls28-dev genimage mtools u-boot-tools ``` - conf ``` bash CONFIG_DM_SERIAL=y CONFIG_PL011_SERIAL=y CONFIG_BOOTDELAY=5 CONFIG_AUTOBOOT_KEYED=y ``` ``` bash make rpi_3_defconfig bear -- make CROSS_COMPILE=aarch64-linux-gnu- -j$(nproc) aarch64-linux-gnu-objdump -S u-boot > u-boot.S ``` # 调试 ``` bash qemu-system-aarch64 -M raspi3b -m 1024 -kernel u-boot/u-boot.bin -dtb u-boot/arch/arm/dts/bcm2837-rpi-3-b.dtb -drive file=out/images/sdimage.img,format=raw,if=sd -device usb-kbd -serial mon:stdio -nographic -S -gdb tcp::1234 gdb-multiarch -ex "set architecture aarch64" -ex "target remote localhost:1234" u-boot/u-boot b *0x8002c ```