git clone https://github.com/macromorgan/chip-debroot.git
cd chip-debroot
git clone https://source.denx.de/u-boot/u-boot.git
cd u-boot
git checkout v2022.01
cd ..
cd u-boot_files/
cp *.patch /home/xuefei/chip-debroot/u-boot/
cp *.config /home/xuefei/chip-debroot/u-boot/
cd ..
cd u-boot
mv chip.config .config
git am --signoff < 0001-board-Add-support-for-Source-Parts-Original-Popcorn.patch
git am --signoff < 0001-i2c-mvtwsi-Add-compatible-string-for-allwinner-sun4i.patch
git am --signoff < 0001-sunxi-Add-option-to-prevent-power-on-when-plug-in.patch
git am --signoff < 0001-sunxi-Add-support-for-slc-emulation-on-mlc-NAND.patch
git am --signoff < 0001-sunxi-nand-Undo-removal-of-DMA-specific-code-that-br.patch
git am --signoff < 0001-w1-Loosen-timings-for-w1-reset.patch

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
看错误,缺少什么装什么
列出一部分
sudo apt install gcc-arm-linux-gnueabihf bison flex swig libarchive-tools python3-dev

编译u-boot
暂时未测试是否可用
2022.4.14测试发现 生成的spl/sunxi-spl.bin 无法刷入
执行 sunxi-fel spl spl/sunxi-spl.bin 会出现usb_bulk_send() ERROR -7: Operation timed out
但macromorgan的可以刷入,这就很奇怪……

标签: none

添加新评论