2732 Commits

Author SHA1 Message Date
brandonchuang
ef45c1123b [as5916-54xks] Support onlp_sysi_platform_info_get() 2018-09-27 10:20:38 +08:00
Sergey Popovich
82ce411571 all-base-packages: Add debconf and dialog
First installed as dependency for multiple packages and second is used
by debconf, but not installed as it's dependency. This enables package
configuration during install or dpkg-reconfigure(7) from debconf.

This removes following messages on console during package install:

  debconf: unable to initialize frontend: Dialog
  debconf: (No usable dialog-like program is installed, so the dialog \
based frontend cannot be used. at \
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 11.)
  debconf: falling back to frontend: Readline

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-09-26 11:08:15 +03:00
Sergey Popovich
e2c1fcc335 initrds: ifup: Move NETRETRIES handling to "dhcp" code path
This variable is only required and used for dynamic network configs:
validating and configuring it for rest of the paths isn't necessary.

While there split warning message to two lines to make code and
runtime output more readable.

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-09-26 11:08:15 +03:00
Sergey Popovich
cdad662745 initrds: ifup: Do not apply any config if NETAUTO=none
There are three types of value accepted by NETAUTO:

    1) "dhcp" for automatic network settings via DHCP
    2) "up" to bring link up, wait for IPv6 tentative and link up
       operstate
    3) anything else: apply static configuration, wait for IPv6
       tentative and link up operstate

Note that empty ("") value is subset of 3) and we only skip link up
operstate monitoring for it since commit 3e89468cd0
("Don't require link-up on ma1 if NETAUTO is not specified.").

Add fourth case with NETAUTO=none to skip all but NETHW (hardware
address) from boot-config file and support different management
adapter config methods (e.g. Debian network config system).

This also fixes incorrect "return" statement usage outside of function
introduced with commit 3e89468cd0
("Don't require link-up on ma1 if NETAUTO is not specified.") and adds
newline before wait_link_up() to make code more readable.

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-09-26 11:08:15 +03:00
Sergey Popovich
0106c6a542 onl-boot-config: Support empty NETAUTO
Since empty NETAUTO= in /mnt/onl/boot/boot-config is valud according to
rules in initramfs /boot/ifup, follow this behavior in onl-boot-config
to get rid of incorrect message:

  root@localhost:/# onl-boot-config --show
  NETDEV=ma1
  BOOTMODE=INSTALLED
  SWI=images::latest
  NETAUTO=
  The NETAUTO value '' is invalid.
  The boot configuration has not been changed.

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-09-26 11:08:15 +03:00
Jeffrey Townsend
14c387475b Merge pull request #455 from carlroth/roth_swl_4810_2
Cleanups for PKI, mounts points, logging, onie-sysinfo
2018-09-25 14:08:10 -07:00
Jeffrey Townsend
89513d0489 Merge pull request #429 from OrdnanceNetworks/netberg-aurora-420-support
[netberg-aurora-420] Add Netberg Aurora 420 switch support
2018-09-25 11:19:50 -07:00
Jeffrey Townsend
2e503b83bb Merge pull request #425 from Hsu-PC/master
[Quanta][LY8] modify port name initial method
2018-09-25 11:15:34 -07:00
Jeffrey Townsend
d1c5086c28 Merge pull request #424 from brandonchuang/as5916_54xk
[as5916-54xk] Add support for OOM
2018-09-25 11:14:55 -07:00
Jeffrey Townsend
6ca71d738f Merge pull request #422 from brandonchuang/as5512_54x
[as5512-54x] Add support for OOM
2018-09-25 11:14:38 -07:00
Jeffrey Townsend
c7e493982a Merge pull request #413 from brandonchuang/oom
Remove optoe.c under accton x86-64 folder, use the common one instead
2018-09-25 11:14:19 -07:00
Jeffrey Townsend
5060404140 Merge pull request #412 from brandonchuang/as4610_54t_b
[as4610] Add support for OOM optoe driver
2018-09-25 11:13:51 -07:00
Carl D. Roth
8ac2f0330b Cleanup mount point usage
- cut down on nested mount invocations
2018-09-20 18:19:00 -07:00
Carl D. Roth
2cd5d8afe2 Cleanups for execute method
- support tuple arguments
- send stdout/stderr output to the logger
2018-09-20 18:18:55 -07:00
Carl D. Roth
4f5655060d Fixed shell invocation bug in onie-sysinfo 2018-09-20 18:18:48 -07:00
Jeffrey Townsend
f93816925a Merge pull request #450 from brandonchuang/optoe
[oom] Correct a panic inducing defect which is triggered on a read (or write)
2018-09-19 06:33:48 -07:00
Jeffrey Townsend
236b9a668b Merge pull request #454 from SnDream/patch-1
Fix typo
2018-09-19 06:33:31 -07:00
Jeffrey Townsend
bbe52dfa94 Merge pull request #452 from poolakiran/pim_nr
Latest bigcode
2018-09-18 12:21:52 -07:00
SnDream
45b9562676 Fix typo 2018-09-18 19:55:33 +08:00
brandonchuang
f036c69ef2 [as5916-54xks] Fix LED auto mode display ON issue 2018-09-18 10:07:10 +08:00
brandonchuang
4163206ebc [as5916-54xks] Add sfp/qsfp eeprom write capability 2018-09-18 09:59:24 +08:00
Vic Lin
1b9bd4ec7a Add support for Accton AS7112-54X 2018-09-17 15:22:01 +08:00
Kiran Poola
0aac34fe7c Latest bigcode
Support for PIM null register message in PPE
2018-09-13 11:01:16 -07:00
Oleksandr Shamray
8afec0ff0e Add: MSN2100-b system support
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-09-12 17:45:19 +00:00
brandonchuang
f5dd66b4aa [oom] Correct a panic inducing defect which is triggered on a read (or write) 2018-09-12 13:49:12 +08:00
brandonchuang
af8fcede82 [as5916-54xks] Add tcam interrupt sysfs attributes 2018-09-11 15:56:58 +08:00
brandonchuang
05ce02934e [as5916-54xks] Revise the sfp eeprom read length 2018-09-10 15:23:51 +08:00
Sergey Popovich
6dd61ba65a platforms: netberg: Add Aurora 420 switch
It is very similar to Aurora 420, even onlp shared object part from
Aurora 620 considered as example when porting support for 420 (see
the diff between 620 and 420 to find differences if necessary).

Main difference in onlp is that we have four LEDs (1 SYS STAT, 2 PSU
and 1 for FAN), 7 thermal (4 for two PSU, 1 for MAC, 1 for front and
1 for rear) and 6 fans (4 for board, 2 for PSU).

New 420, as well as 620 and 720 requires upstream ONIE to install
correctly. Install and boot tested with ONIE "master-201805301609".

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-09-07 21:35:34 +03:00
Sergey Popovich
6d394e7418 platforms: netberg: Update hardware monitor driver
Following enhancements come with this change:

  o New ASTERION board
  o New/updated sysfs interface to:
     + detect rxlos (rxlos1..rxlos4)
     + set tx_disable (tx_disable1..tx_disable4)
     + detect tx_fault (tx_fault1..tx_fault4)
     + read/update sfp_copper eeprom

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-09-07 21:35:34 +03:00
Sergey Popovich
e9409f1295 platforms: netberg: Correct vendor-config enterprise number
According to IANA assignments for enterprise Netberg company has number
50424, not 47294. Correct this to match one in ONIE.

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-09-07 21:35:34 +03:00
brandonchuang
a9b318548d [as5916-54xks] Update ipmi timeout 2018-09-06 16:17:06 +08:00
Jeffrey Townsend
810c6ae04b Merge pull request #448 from zhouzi88/swl-4705
add i2c-ismt parameters to read JDSU PLRXPL-VI-S24-22 SFP EEPROM prop…
2018-09-05 11:13:27 -07:00
Zi Zhou
4d5d8832e0 add i2c-ismt parameters to read JDSU PLRXPL-VI-S24-22 SFP EEPROM properly 2018-09-05 10:45:14 -07:00
Oleksandr Shamray
9c649d16e1 Fix: CPU sensors count on MQM8700 system
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-09-05 10:12:37 +00:00
Oleksandr Shamray
acc69bfa90 Change: System name QMB700 -> MQM8700
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-09-05 10:12:00 +00:00
Oleksandr Shamray
43e8d1848b Add: QMB700/QMB700ES systems support
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-09-05 10:12:00 +00:00
Oleksandr Shamray
2fedc3b2f9 Add: fan_per_module parameter to common code. You can define
fan_count in module instead of defining
     by FAN_TYPE_NO_EEPROM/FAN_TYPE_EEPROM before
Add: Orange LED support to common code.
Add: manage_leds_type3 to support future systems
     with 12 FAN's in 6 modules and using Orange led instead of Red.
FIX: remove unnecessary LED color2 from led_colors_map
FIX: change FAN LED description for systems with 2 fans pre module
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-09-05 10:11:25 +00:00
phani-karanam
e847ba6cb8 Added OOM support for x86-64-accton-wedge100bf-65x 2018-09-05 11:23:56 +08:00
johnson
d7975e68ed [delta ak7448] Add Support for OOM.
Signed-off-by: johnson <JOHNSON.LU@deltaww.com>
2018-09-04 17:18:11 +08:00
brandonchuang
e67a4c937c [as5916-54xks] Update peripheral drivers to use BMC 2018-09-04 15:32:40 +08:00
roy_lee
030109b992 [platform] accton new model as7316-26xb
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-09-04 06:01:18 +00:00
phani-karanam
cd8555b113 Added OOM support for x86-64-accton-wedge100-32x 2018-08-31 18:30:34 +08:00
phani-karanam
5fbdaebe81 Added OOM support for x86-64-accton-wedge100bf-32x 2018-08-30 20:28:16 +08:00
Jeffrey Townsend
5cc78a80ce Merge pull request #436 from jostar-yang/csp-9250
Modify csp9250  drv to support kernel-4.14
2018-08-29 11:35:03 -07:00
Jeffrey Townsend
44d7d54830 Merge pull request #431 from jostar-yang/as5916-54xks
Modify sysi to read eeprom via word_data.
2018-08-29 11:32:18 -07:00
Jeffrey Townsend
b0553f7e0c Initialize the SFP bitmap in presence_bitmap_get(). 2018-08-29 18:27:36 +00:00
Jeffrey Townsend
c3624424c0 Merge pull request #423 from MellanoxBSP/onl-back-porting
Add patches from upstream kernels - backport 4.17 - 4.19
2018-08-29 11:19:10 -07:00
roy_lee
3633dd660d Add both 0x48 and 0x4C devnode, leave onlpdump to tell which one is valid.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-08-29 09:16:47 +00:00
roy_lee
af627ba96a Store thermal1 addr after 1st get.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-08-29 09:15:22 +00:00
roy_lee
afd4c7a045 Examine 0x4c to tell thermal1 address. It's 0x48 for R0A, otherwise 0x4C
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-08-29 09:04:56 +00:00