编译补充说明


1. 注意事项

  1. 对于uboot和kernel的config, 如果是spinand flash,则config的文件名中会包含spinand字眼,而spi nor 则不包含,例如spinand flash版本的uboot config为"infinity6b0_ufu_spinand_defconfig",而spi nor flash则是"infinity6b0_ufu_defconfig"。

  2. 336/338的相关配置同9351,339同9381.


2. 编译boot

declare -x ARCH="arm"
  1. 333/335/337(DE)

    declare -x CROSS_COMPILE="arm-buildroot-linux-uclibcgnueabihf"
    make infinity6b0_ufu_defconfig
    //nand flash用infinity6b0_ufu_spinand_defconfig
    
  2. 93x1

    declare x CROSS_COMPILE=" arm-linux-gnueabihf-9.1.0"
    make infinity6e_ufu_spinand_defconfig;
    make clean;
    make
    cp u-boot.xz.img.bin(u-boot_spinand.xz.img.bin for spinand) ${ your_release_path } //可在project目录下find 该文件
    
  3. 268G

    declare -x PATH="/tools/toolchain/gcc-sigmastar-9.1.0-2020.07-x86_64_arm-linux-gnueabihf/bin":$PATH
    declare -x ARCH="arm"
    declare -x CROSS_COMPILE="arm-linux-gnueabihf-"
    

nor:

make mercury6_defconfig
make clean; make -j4

nand:

make mercury6_spinand_defconfig
make clean; make -j4

3. 编译kernel

declare -x ARCH="arm"
  1. 333/335/337(DE)

    declare -x CROSS_COMPILE="arm-buildroot-linux-uclibcgnueabihf"
    make infinity6b0_ssc009a_s01a_usbcam_defconfig
    //后缀含DE的是用infinity6b0_ssc009b_s01a_usbcam_defconfig
    
  2. 93x1

    # declare x CROSS_COMPILE="arm-linux-gnueabihf-9.1.0"
    

    9351:

    # make infinity6e_ssc012b_s01a_spinand_usbcam_defconfig
    

    9381:

    # make infinity6e_ssc013a_s01a_spinand_usbcam_defconfig
    make clean;
    make -j8
    cp arch/arm/boot/uImage.xz ${ your_release_path }//可在project目录下find 该文件
    
  3. 268G

不要单独编译kernel,在project编译时候会自动选择对应的kernel config


4. 编译SDK

cd $/{Alkaid}/project
  1. 333/335/337(DE)

    ./setup_config.sh ./configs/usbcam/i6b0/nor.uclibc-squashfs.009a.64.qfn88
    //后缀含DE的是用 nor.uclibc-squashfs.009b.128.qfn128
    
    1. 9351/9381

    9351D:

    # ./setup_config.sh ./configs/usbcam/i6e/spinand.glibc-squashfs.012b.128.qfn128
    

    9351Q:

    # ./setup_config.sh ./configs/usbcam/i6e/spinand.glibc-squashfs.012b.256.qfn128
    

    9381G

    # ./setup_config.sh ./configs/usbcam/i6e/spinand.glibc-squashfs.013a.256.bga
    make image
    cd ${Alkaid}/project/image/output/images
    
  2. 268G

    Nand:

    make usbcam_m6_spinand.glibc-9.1.0-squashfs.016a.512x512.bga2_defconfig
    make clean;make image
    

    NOR:

    make usbcam_m6_nor.glibc-9.1.0-squashfs.016a.512x512.bga2_defconfig
    make clean;make image