syb999 / uboot-onecloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

## OneCloud u-boot 
测试环境:deepin 22.09
请先安装32位的zlib库
sudo apt-get update
sudo apt-get install zlib1g:i386


打开shell:
wget https://github.com/syb999/uboot-onecloud/archive/refs/heads/main.zip
unzip main.zip
cd main
tar xvf ./gcc-linaro-arm-none-eabi-4.8-2014.04_linux.tar.xz
export PATH="$PATH:$(pwd)/gcc-linaro-arm-none-eabi-4.8-2014.04_linux/bin"
make distclean
make m8b_onecloud_config
make

./AmlImg res_pack build/resource.img resource/
cp build/ddr_init.bin pack/DDR.USB
cp build/u-boot-comp.bin pack/UBOOT_COMP.USB

cp build/u-boot.bin pack/bootloader.img
echo -n "sha1sum $(sha1sum pack/bootloader.img | awk '{print $1}')" >pack/bootloader.VERIFY

cp build/resource.img pack/resource.img
echo -n "sha1sum $(sha1sum pack/resource.img | awk '{print $1}')" >pack/resource.VERIFY

./AmlImg pack build/eMMC.burn.img pack/
运行后,会在build目录生成目标文件eMMC.burn.img(即支持只从emmc启动玩客云的uboot.img)。



About

License:Other


Languages

Language:C 94.9%Language:Assembly 2.7%Language:Makefile 1.9%Language:Perl 0.3%Language:Shell 0.1%Language:PHP 0.1%Language:xBase 0.1%Language:Python 0.0%Language:Batchfile 0.0%Language:CSS 0.0%Language:GDB 0.0%Language:sed 0.0%Language:Awk 0.0%