赞
踩

sudo apt-get install uuid-dev
a. Get the arm-none-eabi Toolchain from Code Sourcery:
cd $(WORKROOT)
wget http://www.codesourcery.com/sgpp/lite/arm/portal/package7813/public/arm-none-eabi/arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
tar xjf arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu.tar.bz2
b. Add the arm-none-eabi toolchain to your path
Add Support for ARMLINUXGCC
On a Ubuntu based-distribution, add the Linaro toolchain:
sudo add-apt-repository ppa:linaro-maintainers/toolchain
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabi
c. 环境变量设置:
切换到用户名下
gedit /home/username/.bashrc
添加
export PATH=$PATH:/my_new_path
执行
source /home/username/.bashrc
d. 输入aarch64-linux-gnu-gcc -v 看看有没有版本信息,如果Command not found说明没有成功,或者你的虚拟机是64位的,需要在虚拟机能连接网络情况下,输入命令
sudo apt-get install lib32z1 lib32stdc++6
工具下载地址如下:
With advanced power management (APM), power management is controlled by the BIOS independently of the operating system. When BIOS settings are exceeded, the BIOS turns off the screen or shuts down the hard drive. This creates an imperfect power management policy because it requires reimplementing the policy for each platform. Plug and play BIOS (PNPBIOS) specification is also unreliable.
With ACPI, power management moves from the BIOS to the operating system.
ACPICA code is fairly mature and implements the following:
chmod +x build.sh
./build.sh init
./build.sh r 编译release版BIOS
./build.sh d 编译debug版BIOS
编译出来的PHYTIUM.fd是不可以直接烧录到主板上启动的,需要把科大提供的PBF头整合到BIOS前面。在上电时会先跑PBP,然后PBP再把BIOS复制到内存里面执行。
PBP里面会初始化CPU、内存、PCI设备枚举和资源的分配以及AMD显卡的快速初始化。
整合BIOS&PBF
export PBF_DIR=PhytiumPkg/pbf
./${PBF_DIR}/fiptool update --nt-fw PHYTIUM.fd ${PBF_DIR}/fip.bin --align 0x10000 --out fipnew.bin
fw=ft2000plus.fd
cp ${PBF_DIR}/bl1.bin $fw
dd if=${PBF_DIR}/phyinit201707.bin of=$fw bs=1M seek=1
dd if=fipnew.bin of=$fw bs=1M seek=2
执行完上面几个步骤之后生成的ft2000plus.fd就是最终烧录到主板的BIOS镜像
备注:
使用麒麟系统编译时需要把下面一行添加到build.sh里面:
export LANGUAGE=en_US.UTF-8
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。