ae67185253
Why I did it High CPU utilization by entropy.py How I did it Remove entropy script as it does not work anymore and is no longer needed for bullseye(202205). In Buster(202012) the max available poolsize (entropy_avail) for entropy is 4096 and our entropy.py script was based on this value. With the change in kernel to bullseye on 202205 this entropy poolsize was changed to 256 which also causes our script to fail. This script was initially added to provide SW assistance to improve the system entropy value available early on in the Sonic boot sequence on buster. On bullseye (Linux kernel 5.10) this is no longer needed as this feature has been improved. How to verify it run "top" command to check CPU usage. Co-authored-by: Pavan-Nokia <120486223+Pavan-Nokia@users.noreply.github.com>
32 lines
645 B
Bash
Executable File
32 lines
645 B
Bash
Executable File
#!/bin/bash
|
|
|
|
fw_uboot_env_cfg()
|
|
{
|
|
echo "Setting up U-Boot environment..."
|
|
|
|
MACH_FILE="/host/machine.conf"
|
|
PLATFORM=`sed -n 's/onie_platform=\(.*\)/\1/p' $MACH_FILE`
|
|
|
|
if [ "$PLATFORM" = "armhf-nokia_ixs7215_52x-r0" ]; then
|
|
# Ixs7215 / IPD6448M board Uboot ENV offset
|
|
FW_ENV_DEFAULT='/dev/mtd0 0x00100000 0x10000 0x10000'
|
|
else
|
|
FW_ENV_DEFAULT='/dev/mtd0 0x00500000 0x80000 0x100000 8'
|
|
fi
|
|
|
|
echo "Using pre-configured uboot env"
|
|
echo $FW_ENV_DEFAULT > /etc/fw_env.config
|
|
|
|
}
|
|
|
|
|
|
main()
|
|
{
|
|
fw_uboot_env_cfg
|
|
echo "Nokia-IXS7215: /dev/mtd0 FW_ENV_DEFAULT"
|
|
|
|
/bin/sh /etc/inband_mgmt.sh
|
|
}
|
|
|
|
main $@
|