Commit Graph

2607 Commits

Author SHA1 Message Date
Jostar Yang
3a227eb67a Fix IR3570A issue that cause read eeprom problem 2019-06-27 16:23:58 +08:00
Jeffrey Townsend
d43cf0638f Update for latest patch. 2019-06-25 01:42:19 +00:00
Jeffrey Townsend
4a75a86d28 Update for latest patch. 2019-06-25 01:40:24 +00:00
Jeffrey Townsend
4a9f191b02 Merge pull request #569 from zhouzi88/max6620
add max6620(fan controller) driver patch to kernel 4.14(for s4000/6000)
2019-06-24 12:12:27 -07:00
Zi Zhou
242dfacf86 add max6620(fan controller) driver patch to kernel 4.14(for s4000/6000) 2019-06-24 10:57:16 -07:00
Jeffrey Townsend
748f23269b Check for the existance of /etc/inittab before attempting to modify it. 2019-06-13 16:23:36 +00:00
Jeffrey Townsend
3f4bb55187 [Issue 546] Enable boot.d when running systemd init.
This change separates the overlays for sysvinit and systemd builds.

- The inittab is overlayed if using sysvinit.
- /sbin/init is replaced by a script which calls the boot.d sequence and then execs /lib/systemd/systemd when using systemd.
2019-06-13 16:19:18 +00:00
Jeffrey Townsend
db1fa214dd These were lost in the initial commit. 2019-06-13 14:27:15 +00:00
Jeffrey Townsend
0c430e597f Merge pull request #565 from netbergtw/master
Netberg Aurora 710 initial support
2019-06-12 10:50:58 -07:00
Jeffrey Townsend
1132d6647b Merge pull request #563 from CynthiaINV/master
Add new platform Inventec D10056 and support ONLP
2019-06-12 10:49:08 -07:00
Jeffrey Townsend
ab0156545f Merge pull request #560 from jostar-yang/as9716_20190521
Add as9716-32d thermal plan
2019-06-12 10:46:55 -07:00
Jeffrey Townsend
f1c8a3243b Merge pull request #558 from phani-karanam/Adding_AS7926_80xk
Added Accton AS7926_80xk support
2019-06-12 10:46:27 -07:00
Jeffrey Townsend
51459ae750 Merge pull request #554 from jcsteven/2019-0425-fixed-tg3
Add broadcom tg3 support 100M/10M feature.
2019-06-12 10:37:39 -07:00
Jeffrey Townsend
62380e2b69 Merge pull request #564 from MellanoxBSP/onl-tigris-upstream_merge
Add Mellanox MSN3800 (Tigris) system support
2019-06-12 10:35:56 -07:00
cynthia
1fa0149434 Fix ONLP psu model not show bug 2019-06-12 14:53:11 +08:00
Jeffrey Townsend
0df1c0e5aa Fix bug in add_package() when the realpath of the package contains an underscore.
When a package is added to the REPO any duplicates are supposed to be removed automatically.
The (package-name, version, arch) was determined by splitting the (fullpath) name by underscore.

If an underscore was present in any of the parent directories then the split did not yield
the correct information. As a result any duplicate packages were not removed and were instead
left in the REPO.

This fix splits the package basename instead of the package path.

You may now clone your ONL worktree as JEFF_IS_STUPID and it should work now.
2019-06-11 17:10:45 +00:00
Jeffrey Townsend
041a45b85f Use new simplifying macros. 2019-06-06 15:14:56 +00:00
Jeffrey Townsend
32c0839b60 Minor improvements. 2019-06-06 15:13:22 +00:00
Andrew Sapronov
ab4883b6c5 Netberg Aurora 710 initial support 2019-06-05 18:46:41 +03:00
Artemy Kovalyov
2c6f911438 Update Mellanox kernel patches
1. Add 4.9 kernel patch for I2C access optimization
2. Add gearbox kernel patch
3. Add Watchdog introduce patch

Oleksandr shamray <oleksandrs@mellanox.com>
2019-05-31 14:49:10 +00:00
Oleksandr Shamray
5e744cfaa9 Add kernel patches
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2019-05-31 12:27:30 +00:00
Oleksandr Shamray
1b61335a67 Fix PSU type for MSN3800 system
Fix LED for MSN3800 system
Fix LED for systems with single-FAN drawer systems
Add kernel patches

Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2019-05-31 12:27:30 +00:00
Mykola Kostenok
49dff57c94 remove outdated script call.
Signed-off-by: Mykola Kostenok <c_mykolak@mellanox.com>
2019-05-31 12:27:21 +00:00
Oleksandr Shamray
2f665c22c1 Fixed LED name, PSU type and kernel start arguments for MSN3800 (Tigris) system
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2019-05-31 12:26:34 +00:00
Oleksandr Shamray
2bf4e604da Adding "0023-hwmon-pmbus-Fix-driver-info-initialization-in-probe-.patch" and "0024-mlxsw-thermal-disable-highest-zone-calculation.patch" patches
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2019-05-31 12:25:14 +00:00
Oleksandr Shamray
c301f5a348 Fixed sensor name for Tigris(MSN3800) system
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2019-05-31 12:25:14 +00:00
Oleksandr Shamray
c5051955d5 fix CPU temp sensors count for MSN3800 (Tigris) system
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2019-05-31 12:25:13 +00:00
Oleksandr Shamray
7b844f2df1 add: MSN3800 (Tigris) system support
Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2019-05-31 12:24:56 +00:00
Jeffrey Townsend
96aa9d850f Revert the no_build_missing change. 2019-05-29 10:47:10 -07:00
cynthia
5e936a4475 Add new platform Inventec D10056 and support ONLP 2019-05-29 18:11:49 +08:00
Jeffrey Townsend
caf8fb7fbf Automatically include local makefile. 2019-05-28 17:55:40 +00:00
Jeffrey Townsend
0c97f63d1d Merge pull request #561 from opencomputeproject/parallel
Build improvements.
2019-05-28 09:05:41 -07:00
Jeffrey Townsend
e3c67d6001 Package Build Fixes
- Fix the OnlPackageRepo lock.
  The lock for the package repo has always been broken for some requests due to the nested nature of some of the calls.
  This would cause the repo lock to be release prematurely in the middle of operations.
  This becomes obvious once large parallel package builds are enabled.

  The OnlPackageRepo class has been renamed to OnlPackageRepoLocked() and all locking has been removed.
  All operations performed by the OnlPackageRepoLocked() class are now assumed to be non-concurrent.

  The OnlPackageRepo class is now a wrapper around the OnlPackageRepoLocked class with acquires the lock
  prior to requesting any operations. This change is transparent to the callers but ensures
  that no nested locks (and premature unlocks) are performed.

- Improve the parallel makefile generation.
  - Set pipefail to that targets fail even with the log tee.
  - Allow packages with broken dependencies to set their stage explicitly.
  - Parallel package builds require that the package cache be treated as read-only.
  - Packages must specify their package prerequisites properly in their PKG file.
    - In order to detect and correct this situation packages will no longer
      be implicitly built as part of calls to onlpm find and link operations.
      We may be able to relax this restriction once the build is tight.

- Package Cache Corruption
  - If the package cache is corrupt (usually due to an aborted operation) then it we will
    automatically rebuild it instead of just whining about it.
2019-05-27 19:22:14 +00:00
Jeffrey Townsend
d7dc76c954 Call the onlpm_find_file template. 2019-05-27 19:18:11 +00:00
Jeffrey Townsend
1c834b7c0a Set to parallel stage 3 until the platform dependencies can be fixed. 2019-05-27 19:17:47 +00:00
Jeffrey Townsend
e9b45a5382 Set the parallel stage 3 until the platform dependencies can be fixed. 2019-05-27 19:16:42 +00:00
Jeffrey Townsend
cfb711ade9 Call the onlpm_find_file template. 2019-05-27 19:16:09 +00:00
Jeffrey Townsend
98649533a5 Call onlpm_find_file template. 2019-05-27 19:09:18 +00:00
Jeffrey Townsend
85f5711eae Add onlp package dependency. 2019-05-27 19:08:42 +00:00
Jeffrey Townsend
165009cd8d Add an error-checking template for Makefile shell calls onlpm --find-file.
Makefiles that call $(shell onlpm --find-file *) have always failed poorly
when the file cannot be found.

The onlp_find_file template can be called to both assign and check the
results. If an error occurred in getting the value then a Makefile error is raised.
2019-05-27 18:56:46 +00:00
Jeffrey Townsend
28a1802136 Enable lock debug. 2019-05-27 18:55:37 +00:00
Jeffrey Townsend
f0b66d8ec3 The 3.18 kernel for arm64 has been removed. 2019-05-27 18:39:59 +00:00
Jeffrey Townsend
0d874645da Add the ability to pause and continue the service process. 2019-05-21 22:10:45 +00:00
Jostar Yang
76059c482d Remove testing ocde 2019-05-21 16:45:53 +08:00
Jostar Yang
aefd94e009 Add as9716-32d thermal plan 2019-05-21 16:41:32 +08:00
phani-karanam
79689df4f5 Added Accton AS7926_80xk support 2019-05-15 23:13:37 +08:00
Jeffrey Townsend
16916d4f5b Updates for the latest hw-management packages. 2019-05-15 06:14:13 -07:00
Jeffrey Townsend
8b1dfdb4b8 Show the PKG_DEFAULT file generating an exception and allow dot versions. 2019-05-10 15:36:36 +00:00
Jeffrey Townsend
04c54acb14 Get the package defaults at initial yaml load time so the default dict can be used for all variables in the initial load. 2019-05-09 18:23:21 +00:00
Jeffrey Townsend
b00271f297 Improve Package Field Generation
Specifying useful package fields has been historically pretty lazy since most systems have been built as self-contained images without dynamic package updates.
This commit hopes to improve the situation.

The recommended package organization for ONL and for systems built with ONL as the base follow the pattern of $project/packages/base/$arch/* and $project/packages/platforms/$vendor/$arch/
The heirarchy of directories in which the packages reside also provide a natural inheritence heirarchy for debian package fields.

This property is now exploited to allow default package keys to be specified base on their location in the filesystem heirarchy as follows:

Before a PKG.yml file is evaluated its parent directory heirarchy is traversed looking for either or both of these files:

PKG_DEFAULTS.yml -- This is an onlyaml file which can specify the values of package keys.
PKG_DEFAULTS     -- If this file is executable it is expected to output valid yaml containing package keys.

All of these values are then combined in reverse order to provide a default dict for the package.

Example usages:
- Fields global to all packages in the project (like Vendor, Maintainer, Version [for coherent builds], maintainer, etc) can be specified in the top-most PKG_DEFAULTS.
- Archicture can be specified in the $arch/PKG_DEFAULTS.
- Platform Vendors can specify their information at the top of their platform directory.

By specifying your own PKG_DEFAULTS you can coexist the ONL versions and your own version without ineheriting any of the defaults from ONL itself.

These are only the defaults for keys not specified in the PKG file. You can still obviously override every field in each package declaration.

The ONL package files will be updated in a separate commit to use this new hierarchical approach.

Package version numbers, copyrights, and general information fields have all
2019-05-09 16:47:59 +00:00