树莓派折腾笔记_1_uboot移植
uboot移植 准备工作 在移植之前,需准备以下相关source code和tools,因为在u-boot的主分支中已经支持raspberry,所以我们可以直接去官网下载最新的code,另外由于raspberry的firmware并没有开源,所以我们只能去github上拿最新的编好的二进制文件。 板子:Raspberry 3B v1.2 u-boot:u-boot-2019.07 https://ftp.denx.de/pub/u-boot/ firmware:master分支 https://github.com/raspberrypi/firmware.git tools: https://github.com/raspberrypi/tools.git 包含交叉编译工具 另需一张SD卡和SD卡读卡器 编译u-boot 准备了相关code和tools之后,我们首先需要搭建交叉编译环境 1、首先需要将交叉编译工具的地址加入PATH变量中(交叉编译工具我们可以在tools文件夹中找到) export PATH=/home/log/log/raspberryPi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/:$PATH 在这里需要说明的是,tools文件夹提供了以下六种编译工具