1973 Commits

Author SHA1 Message Date
brandonchuang
c7a9f91270 [as5812-54x] Support serial number for YM-2401J PSU in psui.c 2018-11-08 11:23:55 +08:00
hans
93b1205e34 1. remove the unnecessary debug message
2. simplize and optimize the code.

Signed-off-by: hans <hans.tseng@deltaww.com>
2018-11-07 15:33:58 +08:00
Sergey Popovich
e12e40f335 ordnance: Initialize Linux Random Number Generator (RNG) early
We start using Linux RNG from initrd with low entropy pools and random
data quality might not be good. Kernel warns us about the problem with
following messages in dmesg(1):

  [    4.786307] random: onl-mounts: uninitialized urandom read (16 bytes read, 46 bits of entropy available)
  [    5.307536] random: onl-mounts: uninitialized urandom read (16 bytes read, 83 bits of entropy available)
  [    5.354480] random: blkid: uninitialized urandom read (6 bytes read, 89 bits of entropy available)
  [    5.366963] random: blkid: uninitialized urandom read (6 bytes read, 90 bits of entropy available)
  [    5.379385] random: blkid: uninitialized urandom read (6 bytes read, 90 bits of entropy available)
  [    5.391910] random: blkid: uninitialized urandom read (6 bytes read, 90 bits of entropy available)
  [    5.546389] random: onl-pki: uninitialized urandom read (16 bytes read, 96 bits of entropy available)
  [    8.881398] random: mktemp: uninitialized urandom read (6 bytes read, 109 bits of entropy available)
  [    9.026771] random: swiget: uninitialized urandom read (16 bytes read, 109 bits of entropy available)

Since main rootfs isn't mounted we can't load entropy saved from
previous runtime by systemd-random-seed (for systemd) and
/etc/init.d/urandom (for sysvinit).

Moreover even if we able to load this data, direct write to /dev/urandom
or /dev/random does not change entropy count according to random(4) man
page and /proc/sys/kernel/random/entropy_avail contents after loading
data to /dev/urandom or /dev/random.

To address this we should generate pseudo random data suitable for use
as RNG seed based on frequently changed information in system and use
some cryptographic grade hash to hide this info from RNG.

Use MIT licensed initrng.py Python implementation for Linux RNG early
init to seed RNG before executing onl-mounts and other stuff from early
userspace in initramfs.

Signed-off-by: Sergey Popovich <sergey.popovich@ordnance.co>
2018-11-07 08:16:27 +02:00
hans
403a9d4b26 1. read the fan's present bit from FANIO controller
2. improve the bus's access

Signed-off-by: hans <hans.tseng@deltaww.com>
2018-11-07 11:08:06 +08:00
brandonchuang
e631d732c5 [as5712-54x] Fix QSFP port mapping issue in sfpi.c 2018-11-07 11:06:39 +08:00
brandonchuang
4fd8ab8b5b [as5812-54x] Fix QSFP port mapping issue in sfpi.c 2018-11-07 11:02:03 +08:00
Jeffrey Townsend
a5ec39317e Add new port config 48x25+4x100+2x200. 2018-11-05 15:56:27 +00:00
brandonchuang
78e073afd5 [as7712-32x] Support ACBEL FSF019 PSU 2018-11-02 16:45:12 +08:00
roy_lee
200f35319a [platform]as5916-26xb/as7316-26xb: onlpdump get psu capabilities of DC or AC.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-11-01 15:17:06 +08:00
roy_lee
6f3598e330 [platform]as5916-26xb/as7316-26xb: take fan speed value to be unsigned to get correct RPM.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-11-01 15:12:36 +08:00
Jeffrey Townsend
17978ad957 Increase domain socket read timeout to 5 seconds. 2018-10-31 09:07:32 -07:00
brandonchuang
0d1dfb4d6d [as5916-54xks] Add cpld watchdog function and enhance the mutex protection of peripheral drivers 2018-10-30 17:22:16 +08:00
Jeffrey Townsend
0ce144ca07 Semi-failed attempt to modify for the 4.14 kernel 2018-10-26 00:07:34 +00:00
Jeffrey Townsend
1f7629399c AS4610-54 Kernel Module builds. The source should be migrated to common for 54/30 after all of this is sorted. 2018-10-26 00:05:55 +00:00
Jeffrey Townsend
ea149f0f3d The 4610 54/30 variants now share the same DTS file. 2018-10-26 00:00:50 +00:00
Jeffrey Townsend
192bb5ea4c Add kernel-4.14-arm-iproc configuration. 2018-10-25 23:59:01 +00:00
Jeffrey Townsend
c1298e9d59 Temporarily disable automatic loader upgrades until the ONL partitions are working. 2018-10-25 23:57:46 +00:00
Jeffrey Townsend
7b67db733b Initial Kernel 4.14 for IPROC 2018-10-25 23:56:32 +00:00
Aken Liu
fbf6f2adac enhance get data performance
1. old method: open UART and close UART whenever we need to get information from BMC.
       new method: open UART at beginning, then we use the UART(TTY) device directly.
    2. old method: use onlp_i2c_readw() to get all QSFP/SFP's eeprom data, it spends 128 times i2c access time.
       new method: use OOM's sysfs
                   we also correct the port mapping
    3. reduce the UART(TTY) retry time and timeout time
    4. add PSU's serial number information
2018-10-24 16:41:27 +08:00
Aken Liu
f1251d7c2b enhance get data performance
1. old method: open UART and close UART whenever we need to get information from BMC.
       new method: open UART at beginning, then we use the UART(TTY) device directly.
    2. old method: use onlp_i2c_readw() to get all QSFP/SFP's eeprom data, it spends 128 times i2c access time.
       new method: use OOM's sysfs
    3. reduce the UART(TTY) retry time and timeout time
    4. add PSU's serial number information
2018-10-24 14:43:56 +08:00
roy_lee
28f87aa59f [platform] Add missed port config for as7316_26xb, (PR##444).
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-10-16 09:18:49 +08:00
sholeksandr
7a17309531 Delete unnecessary file .project
.project file added by mistake. I deleted it.
2018-10-10 09:15:00 +03:00
Jeffrey Townsend
c5cfb37aa2 Merge pull request #447 from MellanoxBSP/onl-jaguar-pull
Added support for Mellanox MQM8700 system (jaguar)
2018-10-09 13:11:21 -07:00
Jeffrey Townsend
23e743aeff Merge pull request #453 from vic-lin-accton/master
Add support for Accton AS7112-54X
2018-10-09 13:05:20 -07:00
Jeffrey Townsend
a21b640614 Merge pull request #444 from roylee123/add_platform_as7316_26xb
[platform] add new model as7316-26xb
2018-10-09 13:03:31 -07:00
Jeffrey Townsend
2e13d7940d Merge pull request #458 from jostar-yang/as7816_1003
Modify PSU driver to suuport delta and 3y power
2018-10-09 12:50:52 -07:00
Jeffrey Townsend
73fe82862f Merge pull request #445 from brandonchuang/as5916_54xks
[as5916-54xks] Update peripheral drivers to use BMC
2018-10-09 12:50:28 -07:00
Jeffrey Townsend
b349044c34 Merge pull request #439 from roylee123/as5916_54xm_lm75_48to4c
[as5916_54xm]Change one thermal sensor's i2c address to be 0x4C or 0x48.
2018-10-09 12:50:01 -07:00
Jeffrey Townsend
52c0bc9f65 Merge pull request #449 from delta-JohnsonLu/delta_ak7448
[delta ak7448] Add Support for OOM.
2018-10-09 12:49:26 -07:00
Jeffrey Townsend
5289377134 Merge pull request #430 from linyutsung/master
Add support for S9230-64X with Nephos ASIC and 64 QSFP ports
2018-10-09 12:48:38 -07:00
Jeffrey Townsend
fb6456bb14 Merge pull request #438 from jostar-yang/as7716-32x
Use i2c word mode instead of use block mode for access sys eeprom
2018-10-09 12:43:12 -07:00
Jeffrey Townsend
f37a2b2091 Merge pull request #443 from phani-karanam/add_OOM_SUPPORT_for_accton_wedge100_32x
Added OOM support for x86-64-accton-wedge100-32x
2018-10-09 12:42:46 -07:00
Jeffrey Townsend
3c320e921d Merge pull request #446 from phani-karanam/add_OOM_support_for_wedge100BF-65x
Added OOM support for x86-64-accton-wedge100bf-65x
2018-10-09 12:42:25 -07:00
Jeffrey Townsend
7861ad22da Merge pull request #441 from phani-karanam/add_OOM_support_for_x86_64_accton_wedge100bf_32x
Added OOM support for x86-64-accton-wedge100bf-32x
2018-10-09 12:42:09 -07:00
Jeffrey Townsend
b6024968fd Merge pull request #437 from jostar-yang/as7816-64x
Use i2c word mode instead of use block mode for access sys eeprom
2018-10-09 12:41:50 -07:00
Jeffrey Townsend
f6e11cdecf Merge pull request #428 from OrdnanceNetworks/onl-fixes
Assorted set of fixes and improvements to ONL
2018-10-09 12:35:38 -07:00
roy_lee
b1f7d2880b [platform] add new platform "as5916-54xl".
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-10-09 10:13:30 +08:00
roy_lee
a019c2e82f [platform] accton-asxvolt16, change OnlPlatformPortConfig from 32x100 to 20x100.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-10-08 14:17:18 +08:00
roy_lee
ffe708627d [platform] add new platform accton-asxvolt16.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-10-08 10:20:08 +08:00
Jostar Yang
a8ad49568e Modify PSU driver to suuport delta and 3y power 2018-10-03 14:06:35 +08:00
Jostar Yang
edaff9f159 Modify psu driver to support both 3y and delte power 2018-10-03 11:05:15 +08:00
Jostar Yang
c5ca78c76b Merge branch 'master' of https://github.com/opencomputeproject/OpenNetworkLinux into as7816-64x 2018-10-03 10:34:32 +08:00
Jeffrey Townsend
fcd317b51b Remove debug message. 2018-10-01 21:34:36 +00:00
Zi Zhou
5806f03c72 kernel config cleanup 2018-10-01 09:10:23 -07:00
Zi Zhou
1808b4fca3 change kernel config to suppport DELL FPGA opencore i2c driver 2018-09-28 15:36:35 -07:00
brandonchuang
ef45c1123b [as5916-54xks] Support onlp_sysi_platform_info_get() 2018-09-27 10:20:38 +08: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