674fac21c1
- Improve random number generation during early Sonic initialization by providing SW updates to Linux entropy value. - Improve handling of platform In-Band management port This commit provides the following updates to the Nokia ixs7215 platform 1. The Marvell Armada-38x SOC requires SW assistance to improve the system entropy value available early on in the Sonic boot sequence. 2. The Nokia ixs7215 platform does not have a dedicated Out-Of-Band (OOB) mgmt port and thus requires additional logic to optionally support configuring front panel port 48 as an In-Band mgmt port. This commit provides additional logic to manage and maintain the operation of this In-Band mgmt port.
39 lines
910 B
Bash
Executable File
39 lines
910 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'
|
|
|
|
demo_part=$(sgdisk -p /dev/sda | grep -e "SONiC-OS")
|
|
if [ -z "$demo_part" ]; then
|
|
# ET6448M Board - For Backward compatibility
|
|
FW_ENV_DEFAULT='/dev/mtd0 0x00500000 0x80000 0x100000 8'
|
|
fi
|
|
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"
|
|
|
|
python /etc/entropy.py &
|
|
/bin/sh /etc/inband_mgmt.sh
|
|
}
|
|
|
|
main $@
|