- spl:https://gitee.com/weiwei382-163-com/nand_spl
- 主线uboot:https://gitee.com/weiwei382-163-com/t113-s3-u-boot
- 主线kernel:https://gitee.com/weiwei382-163-com/linux-t113-5.4
- 交叉编译器下载地址:http://releases.linaro.org/components/toolchain/binaries/latest-7/arm-linux-gnueabihf/
# 编译nand spl
make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 nand
# 编译mmc spl
make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 mmc
有错误!!
# 编译uboot
make t113_defconfig
make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 u-boot.bin
# 编译 Linux kernel
export ARCH=arm && export CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- && make t113_s3_ok_defconfig && make uImage LOADADDR=0x40008000 -j16
离线
编译spl mmc版本报错:
liefyuan@ubuntu:~/t113/nand_spl-master$ make ARCH=arm CROSS_COMPILE=/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j16 mmc
/home/liefyuan/t113/nand_spl-master/tools/generate_hash_header_file.sh > /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
if [ -r /home/liefyuan/t113/nand_spl-master/include/commit_info.h ] && cmp -s /home/liefyuan/t113/nand_spl-master/include/commit_info.h /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; then rm -f /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp; else echo ' UPD /home/liefyuan/t113/nand_spl-master/include/commit_info.h'; mv /home/liefyuan/t113/nand_spl-master/include/commit_info.h.tmp /home/liefyuan/t113/nand_spl-master/include/commit_info.h; fi
make -C /home/liefyuan/t113/nand_spl-master/nboot mmc
CHK /home/liefyuan/t113/nand_spl-master/include/config.h
CHK /home/liefyuan/t113/nand_spl-master/autoconf.mk
UPD /home/liefyuan/t113/nand_spl-master/include/config.h
UPD /home/liefyuan/t113/nand_spl-master/autoconf.mk
make -C /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/
make -C /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/common/
make -C /home/liefyuan/t113/nand_spl-master/drivers/
make -C /home/liefyuan/t113/nand_spl-master/nboot/main/
make[2]: Nothing to be done for 'all'.
CC boot0_entry.S ...
CC boot0_head.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/
make -C /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/
make -C /home/liefyuan/t113/nand_spl-master/drivers/power/
make -C /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/
CC watchdog.c ...
CC serial.c ...
CC boot0_main.c ...
make -C /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/
CC rtc.c ...
make -C lib-dram
CC sunxi_dram.c ...
make[5]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
CC load_image.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libmain.o load_image.o
make[5]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
CC axp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libpower.o axp.o
rm -f libdram.o; /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar rcs libdram.o
CC pinmux.c ...
# -s libdram.o
cp libdram.o ../libdram
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libdram.o sunxi_dram.o /home/liefyuan/t113/nand_spl-master/drivers/dram/sun20iw1p1/libdram
CC load_image_sdmmc.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libloadmmc.o load_image_sdmmc.o
CC eabi_compat.c ...
CC iobase_sunxi.c ...
CC memset_sunxi.c ...
CC boot_utils.c ...
CC debug.c ...
CC memcpy_sunxi.c ...
CC malloc.c ...
CC crc32.c ...
CC gunzip.c ...
CC string.c ...
CC printf.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libcommon.o string.o printf.o boot_utils.o eabi_compat.o malloc.o iobase_sunxi.o memset_sunxi.o memcpy_sunxi.o debug.o crc32.o gunzip.o zlib/zlib.o lz4/lz4_wrapper.o lzma/LzmaDec.o lzma/LzmaTools.o
CC mmc.c ...
CC mmc_bsp.c ...
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libmmc.o mmc.o mmc_bsp.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libdrivers.o serial.o pinmux.o rtc.o watchdog.o /home/liefyuan/t113/nand_spl-master/drivers/dram/libdram.o /home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/libmmc.o /home/liefyuan/t113/nand_spl-master/drivers/power/libpower.o /home/liefyuan/t113/nand_spl-master/nboot/load_image_mmc/libloadmmc.o
bootaddr is 0x20000
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld -r -o libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/arch/arm/cpu/armv7/libarch.o /home/liefyuan/t113/nand_spl-master/board/sun20iw1p1/libboard.o /home/liefyuan/t113/nand_spl-master/common/libcommon.o /home/liefyuan/t113/nand_spl-master/drivers/libdrivers.o /home/liefyuan/t113/nand_spl-master/nboot/main/libmain.o
/usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld --allow-multiple-definition libsun20iw1p1_sdcard.o /home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o -L /usr/local/arm/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.5.0 -lgcc --gc-sections --gc-sections -Tboot0.lds -o boot0_sdcard.elf -Map boot0_sdcard.map -L/home/liefyuan/t113/nand_spl-master/nboot -lsun8iw20p1_nand
libsun20iw1p1_sdcard.o: In function `mmc_trans_data_by_dma':
/home/liefyuan/t113/nand_spl-master/drivers/mmc/sun20iw1p1/mmc_bsp.c:1168: undefined reference to `wmb'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.o: In function `main':
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para_len'
/home/liefyuan/t113/nand_spl-master/nboot/main/boot0_main.c:46: undefined reference to `spi_nand_para'
make[1]: *** [Makefile:117: mmc] Error 1
make: *** [Makefile:189: mmc] Error 2
离线