Chapter 7 Fastboot Mode

In FastBoot mode, rootfs runs in memory and requires enough memory, so the default FastBoot mode in the source code is for ssd202. If ssd201 is to be used, the release needs to be modifed Release_to_customer.sh

# vi Release_to_customer.sh
#build project
cd ${RELEASEDIR}/project
if [ "${flashtype}" = "nor" ]; then
    if [ "${fastboot}" = "fastboot" ]; then
        echo test fastboot
        ./setup_config.sh ./configs/nvr/i2m/8.2.1/nor.glibc-ramfs.011a.64
    else
        if [ "${chip}" = "ssd201" ]; then
            ./setup_config.sh ./configs/nvr/i2m/8.2.1/nor.glibc-squashfs.011a.64
        fi
        if [ "${chip}" = "ssd202" ]; then
            ./setup_config.sh ./configs/nvr/i2m/8.2.1/nor.glibc-squashfs.011a.128
        fi
    fi
else
    if [ "${fastboot}" = "fastboot" ]; then
        if [ "${chip}" = "ssd201" ]; then 
            ./setup_config.sh ./configs/nvr/i2m/8.2.1/spinand.ram-glibc-squashfs.011a.64
        elif [ "${chip}" = "ssd202" ]; then    
            ./setup_config.sh ./configs/nvr/i2m/8.2.1/spinand.ram-glibc-squashfs.011a.128
        fi
    else
        if [ "${chip}" = "ssd201" ]; then
            ./setup_config.sh ./configs/nvr/i2m/8.2.1/spinand.glibc.011a.64
        fi
        if [ "${chip}" = "ssd202" ]; then
            ./setup_config.sh ./configs/nvr/i2m/8.2.1/spinand.glibc.011a.128
        fi
    fi

fi

In order to start the system as fast as possible, we need to shut down the time-consuming tasks or wait for the system to start before executing them

# vi project/image/configs/i2m/rootfs_fastboot.mk

Configuration is as follows:

#echo "busybox telnetd&" >> $(OUTPUTDIR)/rootfs/etc/profile
#echo \/customer\/bin\/zkgui \& >> $(OUTPUTDIR)/rootfs/etc/profile;
#echo sleep 8 >> $(OUTPUTDIR)/rootfs/etc/profile;
#echo /customer/demo.sh >> $(OUTPUTDIR)/rootfs/etc/profile;

Compilation:

# ./Release_to_customer.sh -f nand -p ssd201 -q fastboot

After the update starts, you can see that uboot has been skipped in the startup process.
Turn off the network function to speed up the startup time:

# setenv autoestar 0
# saveenv
文档更新时间: 2021-10-19 18:40   作者:Aeeditor