As you can see from, when the flash type is selected as nand, the chip type is selected as ssd201, and the fastboot mode is not turned on, the following is executed in the project directory:
#./ ./configs/nvr/i2m/8.2.1/spinand.glibc.011a.64

#vi project/configs/nvr/i2m/8.2.1/spinand.glibc.011a.64

Spinand.glibc.011a.64 defines:
IMAGE_CONFIG (partition configuration)=spinand.ubifs.p2.partition.config
CUSTOMER_TAILOR (APP configuration)
BOOTLOGO_FILE(logo file name)=sigmastar1024_600.jpg
DISP_OUT_NAME (screen model)=SAT070CP50

    #vi project/image/configs/i2m/spinand.ubifs.p2.partition.config

    It can be seen that the function of this file is to define the partition information of the system mirror.
    #vi project/release/customer_tailor/

    This file is about the switch and APP configuration of some kernel modules. For example, interface_wlan will add the wifi function according to whether it is enabled or not when building rootfs:
    #vi project/image/configs/i2m/

    When building rootfs, it will choose which APP to load according to the configuration of this file:
    #vi sdk/verify/application/
    #vi project/image/

    As you can see, the boot logo image BOOTLOGO_FILE should be placed in the project/board/ini/misc/ directory:
    project/image/makefiletools/bin/dispcfggen is used to initialize the screen:

    As you can see, DISP_OUT_NAME is passed to dispcfggen as a parameter, and dispcfggen is provided by project/image/makefiletools/src/rawgenerator/disp_data_main.c:

    #vi project/image/makefiletools/src/rawgenerator/disp_data_main.c

    The final initialization uses stPanel_SAT070CP50_1024x600, from project/image/makefiletools/src/rawgenerator/pnl/SAT070CP50_1024x600.h:

    In summary, if we want to add a screen, we need to perform the following steps:
  1. Modify the value of DISP_OUT_NAME in project/configs/nvr/i2m/8.2.1/spinand.glibc.011a.64;
  2. Put the screen parameter header file ${DISP_OUT_NAME}.h in the project/image/makefiletools/src/rawgenerator/pnl/ directory;
  3. Modify project/image/makefiletools/src/rawgenerator/disp_data_main.c, and add the new screen parameter header file;
  4. Add a new screen parameter in stTable[] of project/image/makefiletools/src/rawgenerator/disp_data_main.c;
  5. Modify the screen resolution in project/board/i2m/SSC011A-S01A/config/fbdev.ini:

    Then executed:
    #./ -k ${RELEASEDIR}/kernel -b 011A -p nvr -f spinand -c i2m -l glibc -v 8.2.1

    Mainly define some platform parameters:
    #vi project/kbuild/4.9.84/

    Finally, make image-nocheck was executed in the project directory
    #vi project/makefile

    $(MAKE) -C image all means, enter project/images and execute make all
    #vi project/image/makefile
  • rootfs
    #vi project/image/configs/i2m/

    #vi sdk/verify/application/

    Here it is assumed that verify_smarttalk=enable (can be configured in project/release/customer_tailor/$(CUSTOMER_TAILOR).
    #vi sdk/verify/application/smarttalk/
  • rootfs_recovery
    #vi project/image/configs/i2m/
  • images
    #vi project/image/configs/i2m/
    IMAGE_LIST comes from image/configs/i2m/spinand.ubifs.p2.partition.config
  • boot_images
    #vi project/image/configs/i2m/
  • scripts
    #vi project/image/configs/i2m/
    Used to generate network upgrade script (execute estar in uboot)
文档更新时间: 2020-10-24 17:34   作者:admin