Commit Graph

412 Commits

Author SHA1 Message Date
Jeffrey Townsend
1791b37b28 Merge pull request #556 from JohnsonYJLu/agc7646slv1b
Delta agc7646slv1b
2019-07-05 10:55:52 -07:00
Zi Zhou
a7f2a4ea46 New OnlPlatformPortConfig for S5212/S5224 2019-07-02 13:23:13 -07:00
phani-karanam
79689df4f5 Added Accton AS7926_80xk support 2019-05-15 23:13:37 +08:00
Jeffrey Townsend
37cf5b32e7 Run depmod -a at early boot time. 2019-05-02 22:16:31 +00:00
Jeffrey Townsend
9888206e6e Merge pull request #543 from roylee123/add_platform_accton_minipack
Add platform accton-minipack.
2019-04-24 13:19:10 -07:00
johnson
ca9f55844d add platform agc7646slv1b
Signed-off-by: johnson <JOHNSON.LU@deltaww.com>
2019-04-17 10:32:31 +08:00
Jeffrey Townsend
c066f2f2d3 Initial. 2019-04-02 02:06:28 +00:00
Jeffrey Townsend
3bda70c64c Add armhf to the onlfit script. 2019-04-01 18:40:23 +00:00
Jeffrey Townsend
cd4d013a69 Custom init scripts can now be added to /etc/sysinit.d for execution prior autoboot. 2019-02-17 18:36:22 +00: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
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
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
91b007c63e Rename kernel-4.14-arm-iproc to kernel-4.14-armel-iproc. 2018-12-25 16:44:13 +00:00
Jeffrey Townsend
96a697bdcc Tool updates to support armhf. 2018-12-25 15:42:07 +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
roylee123
ff9df1b200 Add port config, 128x100G.
Correct the creating of QSFP eeprom devices.
Signed-off-by: roylee123 <roy_lee@accton.com>
2018-12-10 17:20:18 +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
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
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
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
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
Jeffrey Townsend
fcd317b51b Remove debug message. 2018-10-01 21:34:36 +00: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
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
398084e525 Add python-netaddr dependency. 2018-08-16 21:46:04 +00:00
Carl D. Roth
a9074bd492 Speed optimizations
- don't mount the filesystem if it's already mounted
2018-07-25 23:36:14 +00:00
Jeffrey Townsend
3b46bd4b58 Merge pull request #401 from brandonchuang/as5916_26xb
Add new accton platform, AS5916-26XB.
2018-07-18 11:26:17 -07:00
Ed Swarthout
68a3487365 mmc_bootcmds: mmc part does not take a param
Signed-off-by: Ed Swarthout <Ed.Swarthout@nxp.com>
2018-07-03 19:22:24 -05:00
brandonchuang
29c198ce2b Merge branch 'master' into as5916_26xb 2018-06-25 09:04:09 +08:00
Jeffrey Townsend
37b77d63a6 Merge pull request #395 from ishidawataru/systemd
Support building systemd based system
2018-06-19 15:45:46 -07:00
Jeffrey Townsend
53b55910c7 Add 4.4 LTS ARM kernel. 2018-06-18 21:34:05 +00:00
brandonchuang
b67df2def1 Add new accton platform, AS5916-26XB. 2018-06-07 10:42:13 +08:00
Jeffrey Townsend
6697ea1a52 Redirect stderr. 2018-06-04 21:14:27 +00:00
Jeffrey Townsend
2c5f7334e1 Collect output from modprobe. 2018-06-04 08:56:52 -07:00
Wataru Ishida
a681cf6c81 Support building systemd based system
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
2018-05-31 19:41:23 -07:00
Jeffrey Townsend
8168fdc1cf Merge pull request #392 from carlroth/master
Suppress dmidecode warnings for KVM systems
2018-05-29 13:12:52 -07:00
Carl D. Roth
3b28243ccb Suppress dmidecode warnings for KVM systems 2018-05-24 13:27:55 -07:00