Skip to content

Commit 626d516

Browse files
mlok-nokiayxieca
authored andcommitted
[Nokia] Update Nokia platform IXR7250E device data (#11611)
Signed-off-by: mlok <[email protected]>
1 parent d3612c1 commit 626d516

File tree

6 files changed

+132
-2
lines changed

6 files changed

+132
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"module": {
3+
"LINE-CARD": {
4+
"component": {}
5+
},
6+
"SUPERVISOR0": {
7+
"component": {}
8+
}
9+
},
10+
"chassis": {
11+
"Nokia-IXR7250E-36x400G": {
12+
"component": {
13+
"FPGA2": {},
14+
"FPGA1": {},
15+
"BIOS": {}
16+
}
17+
}
18+
}
19+
}

device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/platform_ndk.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"options": [
33
{
4-
"key": "sfp_init_tx_en",
5-
"stringval": "yes"
4+
"key": "module_direct_ipc_ue",
5+
"stringval": "no"
66
},
77
{
88
"key": "midplane_subnet",
@@ -39,6 +39,10 @@
3939
{
4040
"key": "enable_firmware_update",
4141
"intval": 0
42+
},
43+
{
44+
"key": "sonic_log_level",
45+
"stringval": "error"
4246
}
4347
]
4448
}

device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/platform_reboot

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
#!/bin/bash
22

3+
update_reboot_cause_for_supervisor_reboot()
4+
{
5+
DEVICE_MGR_REBOOT_FILE=/tmp/device_mgr_reboot
6+
REBOOT_CAUSE_FILE=/host/reboot-cause/reboot-cause.txt
7+
TMP_REBOOT_CAUSE_FILE=/tmp/tmp-reboot-cause.txt
8+
if [ -f $DEVICE_MGR_REBOOT_FILE ]; then
9+
if [ -f $REBOOT_CAUSE_FILE ]; then
10+
t1=`sudo grep "User: ," $REBOOT_CAUSE_FILE`
11+
if [ ! -z "$t1" ]; then
12+
echo $t1 | sed 's/reboot/reboot from Supervisor/g' | sed 's/User: /User: admin/g' > $TMP_REBOOT_CAUSE_FILE
13+
cp $TMP_REBOOT_CAUSE_FILE $REBOOT_CAUSE_FILE
14+
fi
15+
fi
16+
fi
17+
}
18+
19+
# update the reboot_cuase file when reboot is trigger by device-mgr
20+
update_reboot_cause_for_supervisor_reboot
21+
322
systemctl stop nokia-watchdog.service
423
sleep 2
524
echo "w" > /dev/watchdog

device/nokia/x86_64-nokia_ixr7250e_sup-r0/Nokia-IXR7250E-SUP-10/platform.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
},
88
{
99
"name": "FPGA1"
10+
},
11+
{
12+
"name": "SFM-FPGA"
1013
}
1114
],
1215
"watchdog": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"chassis": {
3+
"Nokia-IXR7250E-SUP-10": {
4+
"component": {
5+
"BIOS": { },
6+
"FPGA1": { },
7+
"SFM-FPGA": { }
8+
}
9+
}
10+
},
11+
"module": {
12+
"SUPERVISOR0": {
13+
"component": {
14+
}
15+
},
16+
"LINE-CARD0": {
17+
"component": {
18+
}
19+
},
20+
"LINE-CARD1": {
21+
"component": {
22+
}
23+
},
24+
"LINE-CARD2": {
25+
"component": {
26+
}
27+
},
28+
"LINE-CARD3": {
29+
"component": {
30+
}
31+
},
32+
"LINE-CARD4": {
33+
"component": {
34+
}
35+
},
36+
"LINE-CARD5": {
37+
"component": {
38+
}
39+
},
40+
"LINE-CARD6": {
41+
"component": {
42+
}
43+
},
44+
"LINE-CARD7": {
45+
"component": {
46+
}
47+
},
48+
"FABRIC-CARD0": {
49+
"component": {
50+
}
51+
},
52+
"FABRIC-CARD1": {
53+
"component": {
54+
}
55+
},
56+
"FABRIC-CARD2": {
57+
"component": {
58+
}
59+
},
60+
"FABRIC-CARD3": {
61+
"component": {
62+
}
63+
},
64+
"FABRIC-CARD4": {
65+
"component": {
66+
}
67+
},
68+
"FABRIC-CARD5": {
69+
"component": {
70+
}
71+
},
72+
"FABRIC-CARD6": {
73+
"component": {
74+
}
75+
},
76+
"FABRIC-CARD7": {
77+
"component": {
78+
}
79+
}
80+
}
81+
}

device/nokia/x86_64-nokia_ixr7250e_sup-r0/platform_ndk.json

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
{
2828
"key": "enable_firmware_update",
2929
"intval": 0
30+
},
31+
{
32+
"key": "sonic_log_level",
33+
"stringval": "error"
3034
}
3135
]
3236
}

0 commit comments

Comments
 (0)