Skip to content

Commit

Permalink
kamel: Questone2: NX4808xxv and R1N25A SKU
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd committed Dec 23, 2024
1 parent 1c3613e commit 5d89bc0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,18 @@ start)
done

# One platform support two hwskus, auto select the correct hwsku
# If label is not either Questone-II or Questone-IIA, then Questone-IIA is used by default
# If label is not either Questone-II or Questone-IIA, then Questone-IIA is used by default
# Also, the Arctica NX4808xxv and R1N25A is a branded Questone-II.
hwsku_file="/usr/share/sonic/device/x86_64-cel_questone_2-r0/default_sku"
if [ ! -f $hwsku_file ]; then
platform_path="/usr/share/sonic/device/x86_64-cel_questone_2-r0"

sleep 1 # Wait for EEPROM driver initialization
hwsku=$(decode-syseeprom | grep "Label" | awk '{print $5}')
hwsku=$(decode-syseeprom | grep "Label" | awk '{print $5 $6}')

cd ${platform_path}
if [ x$hwsku = x"Questone-II" ];then
if [ x$hwsku = x"Questone-II" ] || [ x$hwsku = x"ArcticaNX4808xxv" ] || \
[ x$hwsku = x"R1N25A" ]; then
echo "Questone_2 t1" > $hwsku_file
ln -sf ./Questone_2/platform.json platform.json
ln -sf ./Questone_2/platform_components.json platform_components.json
Expand Down

0 comments on commit 5d89bc0

Please sign in to comment.