Commit Graph

928 Commits

Author SHA1 Message Date
Jeffrey Townsend
7e34979bbd Merge pull request #503 from jeffchen1988/master
Add delta platform agc7648sv1
2019-01-07 10:03:00 -08:00
Jeffrey Townsend
a5ed0a0976 The $PARCH variable is no longer available in the installer environment. Set to amd64 for now as that is the only grub-supported architecture. 2019-01-02 19:00:59 +00:00
Jeffrey Townsend
af83f5f441 Don't take an exception in the loader or installer whilst trying to be clever. 2018-12-28 16:35:29 +00:00
Jeffrey Townsend
e197853272 armhf base packages. 2018-12-28 15:47:04 +00:00
Jeffrey Townsend
fabc7436ce Add 4.14-lts for armhf. 2018-12-28 15:43:53 +00:00
Jeffrey Townsend
504e168051 Use dpkg --print-architecture to determine the local package architecture. 2018-12-28 15:39:48 +00:00
Jeffrey Townsend
2ec855b8b3 Add armhf 4.14 kernel and distinguish between the armel and armhf itbs. 2018-12-28 15:37:47 +00:00
Jeffrey Townsend
53348c09c0 Update version to include -armel and fix TMPFS settings. 2018-12-28 15:35:05 +00:00
Jeffrey Townsend
311b1c7b08 Merge pull request #478 from OrdnanceNetworks/fix-low-entrypy-at-boot
ordnance: Initialize Linux Random Number Generator (RNG) early
2018-12-26 09:15:38 -08:00
Jeffrey Townsend
663642e817 Merge pull request #459 from roylee123/new_platform_accton-asxvolt16
Add New platform accton asxvolt16
2018-12-26 09:07:25 -08:00
Jeffrey Townsend
4825296fe1 Restore loader upgrade policy. 2018-12-26 15:43:38 +00:00
Jeffrey Townsend
c70abf3bf9 All platforms using the 3.2 kernel are restricted to Jessie.
The ancient 3.2 ARM kernel for Helix4 has finally been replaced with 4.14.
The 3.2 kernel is too old to build under Stretch so any platforms still using it must be restricted to Jessie only.
Once these platforms are ported 4.14 the restriction can be removed.
2018-12-25 16:48:42 +00:00
Jeffrey Townsend
a3036091cc Allow the platform to specify the distribution list. 2018-12-25 16:47:03 +00:00
Jeffrey Townsend
91b007c63e Rename kernel-4.14-arm-iproc to kernel-4.14-armel-iproc. 2018-12-25 16:44:13 +00:00
Jeffrey Townsend
a4c7072330 The 4.4 LTS kernel will not be used. 2018-12-25 16:08:04 +00:00
Jeffrey Townsend
96a697bdcc Tool updates to support armhf. 2018-12-25 15:42:07 +00:00
Jeffrey Townsend
f1e7d728fe The optoe change for the AS4610 has been been temporarily reverted to unblock to transition to the 4.14 kernel.
Revert "[as4610] Add support for OOM optoe driver"
This reverts commit c1b7904d34.
2018-12-24 15:44:23 +00:00
Jeffrey Townsend
1e9fbe9932 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux into iproc-4.14
Conflicts:
	packages/base/any/kernels/modules/ym2651y.c
	packages/platforms/accton/armel/arm-accton-as4610/arm-accton-as4610-30/platform-config/r0/builds/dtb/arm-accton-as4610-54-r0.dts
	packages/platforms/accton/armel/arm-accton-as4610/arm-accton-as4610-54/platform-config/r0/builds/dtb/arm-accton-as4610-54-r0.dts
2018-12-20 07:34:35 -08:00
Jeffrey Townsend
c5a06736a6 Edgecore 4.14 updates. 2018-12-17 15:12:40 +00:00
Jeffrey Townsend
63e100cf41 Edgcore updates. 2018-12-17 15:12:06 +00:00
Jeffrey Townsend
de5a09c1d1 Edgcore 4.14 kernel patches for the AS4610. 2018-12-17 15:11:03 +00:00
Jeff Chen
316de4d518 1. Add tmp401 and gpio_pca953x module config.
2. Remove tmp401 driver in local path.
3. Read fantray present by gpio attribute instead of i2c access.
2018-12-07 18:27:22 +08:00
Jeffrey Townsend
e885ccba45 Move imports of urllib2 into wget() as it has caused some tricky issues with downstream code. 2018-12-04 22:49:20 +00:00
Jeffrey Townsend
4404a41f68 Make the onlswi script marginally less stupid. 2018-12-04 14:27:30 +00:00
Jeffrey Townsend
3c7c37f706 Add Platform Revision field. 2018-11-30 22:50:38 +00:00
Jeffrey Townsend
2a6d72a59c Merge pull request #492 from MellanoxBSP/onl-kernel_patches
Added kernel 4.9 patches for mlx-platform
2018-11-27 13:34:58 -08:00
Jeffrey Townsend
2a7854275b Merge pull request #484 from jostar-yang/as9716_1113
Add suport as9716-32d onlp
2018-11-27 13:30:49 -08:00
Jeffrey Townsend
c43294c428 Merge pull request #483 from roylee123/Add_lm_sensor_for_as5912-54x
Add lm-sensor package and update kernel modules of as5912-54x for it.
2018-11-27 13:28:10 -08:00
Oleksandr Shamray
4edfc7bebe Added kernel 4.9 patches
- mlx-platform: backport patches from 4.19
- mlx-platform: Add support for register CPLD3_VER, RST_CUSE
  Add NG system type support

Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com>
2018-11-21 11:45:50 +00:00
Jostar Yang
b33ee3aea9 Add suport as9716-32d onlp 2018-11-13 18:13:50 +08:00
roy_lee
433dc32dab Duplicate attributes that follows lm-sensor naming.
Signed-off-by: roy_lee <roy_lee@accton.com>
2018-11-13 06:55:38 +00:00
wanda
ab7032cf47 Add new platform for Inventec d5254
1.Add new platform for Inventec d5254
  2.Add onlp support for d5254
  3.Add kernel patch for lpc_ich, let gpio recognize Broadwell-de
2018-11-12 17:22:53 +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
Jeffrey Townsend
a5ec39317e Add new port config 48x25+4x100+2x200. 2018-11-05 15:56:27 +00:00
Jeffrey Townsend
17978ad957 Increase domain socket read timeout to 5 seconds. 2018-10-31 09:07:32 -07: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
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
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
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
Jostar Yang
edaff9f159 Modify psu driver to support both 3y and delte power 2018-10-03 11:05:15 +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
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