Misc

Q1: Whether 84 degrees of IC surface temperature is within the range, will it affect the use time??

The junction temperature of the chip can reach up to 125 degrees, which can be viewed through cat /sys/devices/virtual/mstar/msys/TEMP_R (the error is about 5 degrees)

The chip ambient temperature range is -20~85 degrees.

Q2: What is the cause when printing as follows?

[MI ERR ]: _MI_SYS_IMPL_OnAllocationFreeCB[474]: In _MI_SYS_IMPL_OnAllocationFreeCB, output magic number[0xc0905800] incorrect, maybe you meet race condition between dev unregister & buf release!!!

Generally, the SDK module does not exit normally, which causes a conflict between resource release and module exit. Check whether the corresponding SDK module has a normal exit process.

Q3: How to use cipher based on SigmaStar?

The default cipher module has been opened, you can refer to the use of demo under kernel\drivers\sstar\crypto\cryptodev\examples.

Q4: Whether to support gpio input double edge trigger?

Only the following two pins support:

#define PAD_HDMITX_HPD 89
#define PAD_SATA_GPIO 90

Q5: How to dynamically adjust cpu frequency?

  1. In the kernel dts location: kernel\arch\arm\boot\dts\infinity2m.dtsi, open the cpu frequency that needs to be turned on (if need to fix a certain frequency, you only need to release the corresponding frequency);

  2. Configure the shell terminal on the board as follows (when dts opens the corresponding option, you can directly configure the frequency):

    echo 1000000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
    echo 1000000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
    

Q6: How to set up to run only one cpu?

Add nosmp after bootargs (note that single-core cpu cannot be dynamically set, it can only be set at boot: default ipl has a kernel into wfi (Wait for interrupt), it will wake up after entering the kernel, and it cannot be turned off after wakeup; if If nosmp kernel is added, it will not wake up):

...