Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
272 commits
Select commit Hold shift + click to select a range
ddd6a85
update kernel config
Lewis-Kang May 4, 2018
edbdbf4
Moodify onlp_psui_info_get to ignore not-support feature in PSU.
jostar-yang May 4, 2018
2bcaf1d
Update psui.c
jostar-yang May 4, 2018
5f2307a
add Intel 10GbE support
Lewis-Kang May 7, 2018
a0811d9
kernel config update
Lewis-Kang May 7, 2018
eb49db6
[Quanta-IX8] Update platform driver:
jonathantsai-qci May 4, 2018
b96bc43
Add Support for QuantaMesh T7032-IX7:
jonathantsai-qci May 10, 2018
1d5a289
update kernel config
Lewis-Kang May 10, 2018
c4fa324
support S4112F
zhouzi88 May 11, 2018
df42a8c
Merge pull request #373 from brandonchuang/as5712_54x
jnealtowns May 15, 2018
bc87c1e
Merge pull request #378 from carlroth/master
jnealtowns May 15, 2018
26e655a
Merge pull request #382 from jostar-yang/csp-9250
jnealtowns May 15, 2018
eedcaa0
Merge pull request #384 from jonathantsai-qci/master
jnealtowns May 15, 2018
3a6f48f
Merge pull request #385 from zhouzi88/swl-4496
jnealtowns May 15, 2018
1490aad
[as5812-54x] Add support for OOM driver(Fix eeprom unrecognized issue)
May 16, 2018
6b92f2a
[as5812-54t] Add support for OOM driver(Fix eeprom unrecognized issue)
May 16, 2018
0c313b1
as5812-54x to support Kernel 4.14
Lewis-Kang May 18, 2018
ab5f904
as6712-32x to support kernel 4.14 (from Brandon)
Lewis-Kang May 18, 2018
5fae078
as6812-32x to support kernel 4.14 (from Brandon)
Lewis-Kang May 18, 2018
d2b19b3
as5812-54t: modify onlp driver (from Brandon)
Lewis-Kang May 18, 2018
8ace58a
as5812_54t: modify sfpi.c and __init__.py (from Brandon)
Lewis-Kang May 18, 2018
76bfcf8
as5712-54x to support kernel 4.14 (from Brandon)
Lewis-Kang May 18, 2018
c5e33fa
as5916-54xm: modify sysi.c and __init__.py (from Brandon)
Lewis-Kang May 18, 2018
ed55d18
Merge pull request #386 from brandonchuang/as5812_54x
jnealtowns May 21, 2018
2f3c7b5
Merge pull request #387 from brandonchuang/as5812_54t
jnealtowns May 21, 2018
5173139
Revert "Revert "[as6812-32x] Add support for OOM""
jnealtowns May 21, 2018
be9b16f
Merge pull request #388 from opencomputeproject/revert-362-revert-339…
jnealtowns May 21, 2018
ea1fbec
Merge pull request #17 from opencomputeproject/master
Lewis-Kang May 22, 2018
ff42eb7
[ingrasys] Add support for S9180-32X with barefoot ASIC 32 QSFP ports
cytsai0409 May 22, 2018
cce4b6e
workaround to avoid the conflict while merging with master (will reve…
Lewis-Kang May 22, 2018
6c32a92
Merge branch 'master' into K4.14
Lewis-Kang May 22, 2018
1b76c8f
revert the previous merging conflict workaround modification
Lewis-Kang May 22, 2018
6c0d3e9
add ixgbe driver for intel broadwell cpu
cytsai0409 May 22, 2018
b1a32f9
Latest
jnealtowns May 22, 2018
3b28243
Suppress dmidecode warnings for KVM systems
carlroth May 24, 2018
394b3a2
update kernel config to add SPI device driver (compared with kernel c…
Lewis-Kang May 28, 2018
1ba1da8
update kernel config USB/GPIO/ACPI/DMA (compared with kernel config o…
Lewis-Kang May 29, 2018
b2e75a7
update kernel config CGROUP (compared with kernel config of version 3…
Lewis-Kang May 29, 2018
c57a2db
[Quanta-IX8] Update platform driver and ONLP:
jonathantsai-qci May 28, 2018
bcb9bc2
update kernel config: remove Sound support
Lewis-Kang May 29, 2018
bcaf264
update kernel config EEPROM/PCCARD (compared with kernel config of ve…
Lewis-Kang May 29, 2018
8168fdc
Merge pull request #392 from carlroth/master
jnealtowns May 29, 2018
e27316e
do not display PSU Model if it does not exist
zhouzi88 May 30, 2018
d9d247e
Merge pull request #394 from zhouzi88/swl-4557
jnealtowns May 30, 2018
4875b76
Merge pull request #390 from Lewis-Kang/K4.14
jnealtowns May 30, 2018
56bf7f1
Merge pull request #393 from jonathantsai-qci/master
jnealtowns May 30, 2018
f052295
update kernel config (compared with kernel config of version 3.16.53)
Lewis-Kang May 31, 2018
a681cf6
Support building systemd based system
Jun 1, 2018
0a833a8
update kernel config Graphics support (compared with kernel config of…
Lewis-Kang Jun 4, 2018
d6a0d54
update kernel config: CONFIG_PCI_REALLOC_ENABLE_AUTO=y
Lewis-Kang Jun 4, 2018
b8ff536
Fixed bug of showing shifted SFP EEPROM data
phani-karanam Jun 4, 2018
2c5f733
Collect output from modprobe.
jnealtowns Jun 4, 2018
8b8da3e
Add EFIVARS_FS
jnealtowns Jun 4, 2018
a9c5265
Add EFIVARS_FS, remove CONFIG_OVERLAYFS_INDEX.
jnealtowns Jun 4, 2018
ab14361
Merge pull request #396 from phani-karanam/BUG_FIX_SFP_EEPROM_DATA_SHIFT
jnealtowns Jun 4, 2018
deae964
Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux
jnealtowns Jun 4, 2018
6697ea1
Redirect stderr.
jnealtowns Jun 4, 2018
75b2233
[Ingrasys] Add support for S9280-64X with Barefoot ASIC and 64 QSFP p…
Jun 5, 2018
bff5f4e
Fixed SYSTEM LED RED and BLUE reversed wrong color issue
phani-karanam Jun 5, 2018
84c7279
update kernel config File systems (compared with kernel config of ver…
Lewis-Kang Jun 6, 2018
4b02b41
Merge branch 'master' into K4.14
Lewis-Kang Jun 6, 2018
b67df2d
Add new accton platform, AS5916-26XB.
Jun 7, 2018
58b564e
Merge pull request #400 from Lewis-Kang/K4.14
jnealtowns Jun 8, 2018
0643270
Update iptables and netfilter settings.
jnealtowns Jun 8, 2018
afae91c
Update to 4.14.48.
jnealtowns Jun 8, 2018
94b16db
Support 100G SWDM4 optics
zhouzi88 Jun 8, 2018
62f5cd8
support the AG8032 platfrom
Jun 11, 2018
803ecf5
Merge pull request #402 from zhouzi88/swl-4534
jnealtowns Jun 12, 2018
25be727
support 1G-ZX optic type
zhouzi88 Jun 12, 2018
769c43a
Merge pull request #404 from zhouzi88/swl-4588
jnealtowns Jun 12, 2018
f476d62
support DELL 4xCU cable with new part number
zhouzi88 Jun 12, 2018
52ad9d0
Merge pull request #405 from zhouzi88/swl-4598
jnealtowns Jun 12, 2018
6f718e2
Merge pull request #398 from phani-karanam/BUG_FIX_LED_MODE_WRONG_COLOR
jnealtowns Jun 13, 2018
5c141e0
Move to 3.16.56.
jnealtowns Jun 13, 2018
4c8d1ee
The 3.18.25 kernel for ARM64 is no longer in user. All ARM64 platform…
jnealtowns Jun 13, 2018
8a617ef
Ignore lib directory.
jnealtowns Jun 13, 2018
94f4a04
Move to 4.14.49.
jnealtowns Jun 13, 2018
8aef0fd
Update ignore.
jnealtowns Jun 13, 2018
587875b
Latest
jnealtowns Jun 13, 2018
78f9944
Merge pull request #389 from cytsai0409/master
jnealtowns Jun 13, 2018
28f465b
Merge pull request #397 from cytsai0409/master
jnealtowns Jun 13, 2018
22c654d
delete the debug information for ag8032
Jun 14, 2018
4d76fd2
Add support as5916-54xks platform
jostar-yang Jun 14, 2018
e0f7a24
Building.md: markdown syntax cleanup
toanju Jun 14, 2018
04d0cba
Initial support for 4.4 LTS with ARM IPROC support.
jnealtowns Jun 18, 2018
71993aa
Add top-level include for DTB compiles.
jnealtowns Jun 18, 2018
53b5591
Add 4.4 LTS ARM kernel.
jnealtowns Jun 18, 2018
d9b9d85
4.4-lts-arm-iproc build.
jnealtowns Jun 18, 2018
1d791ee
Older versions of the DTC compiler don't support the -i option. Addre…
jnealtowns Jun 18, 2018
0dad4b7
Add make.mk for build as5916-54xks onlp
jostar-yang Jun 19, 2018
37b77d6
Merge pull request #395 from ishidawataru/systemd
jnealtowns Jun 19, 2018
a2cb363
Merge pull request #403 from DeltaProducts/ag8032
jnealtowns Jun 19, 2018
16f97c4
Merge pull request #407 from toanju/patch-1
jnealtowns Jun 19, 2018
c1b7904
[as4610] Add support for OOM optoe driver
brandonchuang Jun 21, 2018
bde2ccb
Remove optoe.c under accton x86-64 folder, use the common one instead
brandonchuang Jun 22, 2018
29c198c
Merge branch 'master' into as5916_26xb
brandonchuang Jun 25, 2018
108acea
fixing the issue of wrong color of system LEDs
phani-karanam Jun 26, 2018
5c10874
Allow multistrap config sections to be filtered by architecture.
jnealtowns Jun 26, 2018
d0cbea5
Fixed onlp_sfp_eeprom_read shifts QSFP EEPROM data
phani-karanam Jun 28, 2018
264f0f8
Latest
jnealtowns Jul 2, 2018
7e83b99
[as5916-26xb] Add make.mk to fix the build failure
Jul 3, 2018
1629e9e
arm64-nxp-ls1088ardb use correct dtb
Jul 3, 2018
68a3487
mmc_bootcmds: mmc part does not take a param
Jun 24, 2018
261084a
Merge pull request #47 from opencomputeproject/master
XiongJunDelta Jul 4, 2018
0bd13c1
support the ag7648c platform
Jul 5, 2018
052b41b
Update NET_SCHED.
jnealtowns Jul 10, 2018
4f80370
rfs: fix bug that bash doesn't return on error
Jul 13, 2018
3e3df10
The SFF code module has been migrated from the ONL repository to the …
jnealtowns Jul 18, 2018
be72906
SFF module makefile fixes.
jnealtowns Jul 18, 2018
eac3f32
Merge pull request #420 from ishidawataru/rfs-bug-fix
jnealtowns Jul 18, 2018
ae92829
Merge pull request #417 from phani-karanam/fix_SFP_EEPROM_data_shift
jnealtowns Jul 18, 2018
88e6b1c
Merge pull request #418 from Ed-Swarthout-NXP/nxp-arm64-ls1088a
jnealtowns Jul 18, 2018
ae05372
Merge pull request #406 from jostar-yang/as5916-54xks
jnealtowns Jul 18, 2018
3b46bd4
Merge pull request #401 from brandonchuang/as5916_26xb
jnealtowns Jul 18, 2018
04501d7
Merge pull request #415 from phani-karanam/wrong_color_led_fix_65x
jnealtowns Jul 18, 2018
90789ef
Merge pull request #419 from DeltaProducts/ag7648c
jnealtowns Jul 18, 2018
90f72e7
Updates to the SFF module.
jnealtowns Jul 18, 2018
756d26b
builder9:1.2
jnealtowns Jul 19, 2018
994adf6
builder8:1.9
jnealtowns Jul 19, 2018
d87c2e9
Update builder{8,9} to latest.
jnealtowns Jul 19, 2018
e101c5e
[as5512-54x] Add support for OOM
Jul 23, 2018
3bc5f49
Add patches from upstream kernels - backport 4.17 - 4.19
ozohad Jul 23, 2018
a9074bd
Speed optimizations
carlroth Jul 25, 2018
cb19a16
Fix bootcmds for the LY2 after the change introduced by 68a34873656ba…
jnealtowns Jul 30, 2018
f53b90a
[as5916-54xk] Add support for OOM
Jul 31, 2018
3a19c91
[Quanta][LY8] modify port name initial method
11405267-CharlieHsu Aug 2, 2018
cf5e1b7
Implement thermal plan follow HW SPEC
jostar-yang Aug 6, 2018
ef79e64
fix PSU model display
zhouzi88 Aug 6, 2018
da1c13b
Merge pull request #427 from zhouzi88/swl-4522
jnealtowns Aug 6, 2018
79612e5
Merge pull request #426 from jostar-yang/as7326
jnealtowns Aug 6, 2018
73755f1
Latest SFF.
jnealtowns Aug 7, 2018
eea5db9
Fix symbolic link handling in the 'links' package section.
jnealtowns Aug 8, 2018
a9bf2fe
Latest SFF.
jnealtowns Aug 9, 2018
dad6acb
Latest
jnealtowns Aug 10, 2018
c4ed96a
1. Add support for S9230-64X with Nephos ASIC and 64 QSFP ports
Aug 10, 2018
941e8d7
[s9230] update front panel control according to beta HW release
Aug 13, 2018
1a9b44a
[s9230] add 10gmux init for mac to cpu
Aug 16, 2018
850c82c
Modify sysi to read eeprom via word_data due to block_data get error …
jostar-yang Aug 16, 2018
4c2a2b6
Initial Denverton support.
jnealtowns Aug 16, 2018
398084e
Add python-netaddr dependency.
jnealtowns Aug 16, 2018
f29aa90
The SFPI layer should not implement transmitter disable for QSFP modu…
jnealtowns Aug 17, 2018
dfe91c5
[as5916_54xm]Move LM75 from 0x48 to 0x4C for R0B board or later
roylee123 Aug 27, 2018
62b5e08
Latest bigcode.
Aug 27, 2018
d2f687a
Merge pull request #435 from wilmo119/master
jnealtowns Aug 27, 2018
cc32238
1. Let csp9250 support kernel-4.14. 2. Remove not need debug log
jostar-yang Aug 28, 2018
490aa69
Modify to use i2c word mode instead of use block mode for access syst…
jostar-yang Aug 29, 2018
f5c7e10
Use i2c word mode instead of use block mode for access sys eeprom
jostar-yang Aug 29, 2018
afd4c7a
Examine 0x4c to tell thermal1 address. It's 0x48 for R0A, otherwise 0x4C
roylee123 Aug 29, 2018
af627ba
Store thermal1 addr after 1st get.
roylee123 Aug 29, 2018
3633dd6
Add both 0x48 and 0x4C devnode, leave onlpdump to tell which one is v…
roylee123 Aug 29, 2018
c362442
Merge pull request #423 from MellanoxBSP/onl-back-porting
jnealtowns Aug 29, 2018
b0553f7
Initialize the SFP bitmap in presence_bitmap_get().
jnealtowns Aug 29, 2018
44d7d54
Merge pull request #431 from jostar-yang/as5916-54xks
jnealtowns Aug 29, 2018
5cc78a8
Merge pull request #436 from jostar-yang/csp-9250
jnealtowns Aug 29, 2018
5fbdaeb
Added OOM support for x86-64-accton-wedge100bf-32x
phani-karanam Aug 30, 2018
cd8555b
Added OOM support for x86-64-accton-wedge100-32x
phani-karanam Aug 31, 2018
030109b
[platform] accton new model as7316-26xb
roylee123 Sep 4, 2018
e67a4c9
[as5916-54xks] Update peripheral drivers to use BMC
Sep 4, 2018
d7975e6
[delta ak7448] Add Support for OOM.
JohnsonYJLu Sep 4, 2018
e847ba6
Added OOM support for x86-64-accton-wedge100bf-65x
phani-karanam Sep 5, 2018
2fedc3b
Add: fan_per_module parameter to common code. You can define
sholeksandr Mar 28, 2018
43e8d18
Add: QMB700/QMB700ES systems support
sholeksandr Apr 4, 2018
acc69bf
Change: System name QMB700 -> MQM8700
sholeksandr Jul 31, 2018
9c649d1
Fix: CPU sensors count on MQM8700 system
sholeksandr Jul 31, 2018
4d5d883
add i2c-ismt parameters to read JDSU PLRXPL-VI-S24-22 SFP EEPROM prop…
zhouzi88 Sep 5, 2018
810c6ae
Merge pull request #448 from zhouzi88/swl-4705
jnealtowns Sep 5, 2018
a9b3185
[as5916-54xks] Update ipmi timeout
Sep 6, 2018
e9409f1
platforms: netberg: Correct vendor-config enterprise number
sergeypopovich-ord Aug 6, 2018
6d394e7
platforms: netberg: Update hardware monitor driver
sergeypopovich-ord Aug 6, 2018
6dd61ba
platforms: netberg: Add Aurora 420 switch
sergeypopovich-ord Aug 6, 2018
05ce029
[as5916-54xks] Revise the sfp eeprom read length
Sep 10, 2018
af8fced
[as5916-54xks] Add tcam interrupt sysfs attributes
Sep 11, 2018
f5dd66b
[oom] Correct a panic inducing defect which is triggered on a read (o…
Sep 12, 2018
0aac34f
Latest bigcode
Sep 13, 2018
1b9bd4e
Add support for Accton AS7112-54X
viclin-ec Sep 17, 2018
4163206
[as5916-54xks] Add sfp/qsfp eeprom write capability
Sep 18, 2018
f036c69
[as5916-54xks] Fix LED auto mode display ON issue
Sep 18, 2018
45b9562
Fix typo
SnDream Sep 18, 2018
bbe52df
Merge pull request #452 from poolakiran/pim_nr
jnealtowns Sep 18, 2018
236b9a6
Merge pull request #454 from SnDream/patch-1
jnealtowns Sep 19, 2018
f938169
Merge pull request #450 from brandonchuang/optoe
jnealtowns Sep 19, 2018
4f56550
Fixed shell invocation bug in onie-sysinfo
carlroth Sep 21, 2018
2cd5d8a
Cleanups for execute method
carlroth Sep 21, 2018
8ac2f03
Cleanup mount point usage
carlroth Sep 21, 2018
5060404
Merge pull request #412 from brandonchuang/as4610_54t_b
jnealtowns Sep 25, 2018
c7e4939
Merge pull request #413 from brandonchuang/oom
jnealtowns Sep 25, 2018
6ca71d7
Merge pull request #422 from brandonchuang/as5512_54x
jnealtowns Sep 25, 2018
d1c5086
Merge pull request #424 from brandonchuang/as5916_54xk
jnealtowns Sep 25, 2018
2e503b8
Merge pull request #425 from Hsu-PC/master
jnealtowns Sep 25, 2018
89513d0
Merge pull request #429 from OrdnanceNetworks/netberg-aurora-420-support
jnealtowns Sep 25, 2018
14c3874
Merge pull request #455 from carlroth/roth_swl_4810_2
jnealtowns Sep 25, 2018
0106c6a
onl-boot-config: Support empty NETAUTO
sergeypopovich-ord Aug 6, 2018
cdad662
initrds: ifup: Do not apply any config if NETAUTO=none
sergeypopovich-ord Aug 6, 2018
e2c1fcc
initrds: ifup: Move NETRETRIES handling to "dhcp" code path
sergeypopovich-ord Aug 6, 2018
82ce411
all-base-packages: Add debconf and dialog
sergeypopovich-ord Aug 6, 2018
ef45c11
[as5916-54xks] Support onlp_sysi_platform_info_get()
Sep 27, 2018
1808b4f
change kernel config to suppport DELL FPGA opencore i2c driver
zhouzi88 Sep 28, 2018
37e9c2e
Merge pull request #456 from zhouzi88/swl-4628
jnealtowns Oct 1, 2018
5806f03
kernel config cleanup
zhouzi88 Oct 1, 2018
9676da3
Merge pull request #457 from zhouzi88/swl-4628
zhouzi88 Oct 1, 2018
fcd317b
Remove debug message.
jnealtowns Oct 1, 2018
c5ca78c
Merge branch 'master' of https://github.com/opencomputeproject/OpenNe…
jostar-yang Oct 3, 2018
edaff9f
Modify psu driver to support both 3y and delte power
jostar-yang Oct 3, 2018
a8ad495
Modify PSU driver to suuport delta and 3y power
jostar-yang Oct 3, 2018
f6e11cd
Merge pull request #428 from OrdnanceNetworks/onl-fixes
jnealtowns Oct 9, 2018
b602496
Merge pull request #437 from jostar-yang/as7816-64x
jnealtowns Oct 9, 2018
7861ad2
Merge pull request #441 from phani-karanam/add_OOM_support_for_x86_64…
jnealtowns Oct 9, 2018
3c320e9
Merge pull request #446 from phani-karanam/add_OOM_support_for_wedge1…
jnealtowns Oct 9, 2018
f37a2b2
Merge pull request #443 from phani-karanam/add_OOM_SUPPORT_for_accton…
jnealtowns Oct 9, 2018
fb6456b
Merge pull request #438 from jostar-yang/as7716-32x
jnealtowns Oct 9, 2018
5289377
Merge pull request #430 from linyutsung/master
jnealtowns Oct 9, 2018
52c0bc9
Merge pull request #449 from delta-JohnsonLu/delta_ak7448
jnealtowns Oct 9, 2018
b349044
Merge pull request #439 from roylee123/as5916_54xm_lm75_48to4c
jnealtowns Oct 9, 2018
73fe828
Merge pull request #445 from brandonchuang/as5916_54xks
jnealtowns Oct 9, 2018
2e13d79
Merge pull request #458 from jostar-yang/as7816_1003
jnealtowns Oct 9, 2018
a21b640
Merge pull request #444 from roylee123/add_platform_as7316_26xb
jnealtowns Oct 9, 2018
23e743a
Merge pull request #453 from vic-lin-accton/master
jnealtowns Oct 9, 2018
c5cfb37
Merge pull request #447 from MellanoxBSP/onl-jaguar-pull
jnealtowns Oct 9, 2018
88d6765
Add Silverstone platform config.
pjaipakdee Nov 19, 2018
60e0ad6
Add Port platform config to support Silverstone and disable monitor t…
pjaipakdee Nov 19, 2018
d8fc333
Update BSP to working correctly and Fix ONLP led bug.
pjaipakdee Jan 8, 2019
abb9e23
Add ipmitool and valgrind to onl.
pjaipakdee Jan 22, 2019
002d663
Update the kernel config for pktgen.ko and update ONLP.
pjaipakdee Feb 11, 2019
cf3b6b7
Add new platform for support x86_64_dellemc_z9332f_d1508.
pjaipakdee Mar 6, 2019
9b438ab
Add the sff standard for support QSFP-DD.
pjaipakdee Mar 6, 2019
3738040
Update submodule endpoint for support our QSFP-DD.
pjaipakdee Mar 15, 2019
a0ceda0
Update the submodule commit id.
pjaipakdee Mar 15, 2019
4999015
Add pre,post install script to make ONL install as DIAG-OS or Normal OS.
pjaipakdee Mar 15, 2019
b974e61
Update ipmitool command that r/w cpld/fan cpld to correct one.
pjaipakdee Mar 15, 2019
8eb47df
Change default size of ONL to 1Gb.
pjaipakdee Mar 15, 2019
0366b19
[Fixed] DiagOs grub entry is gone after install the customer os
pjaipakdee Apr 3, 2019
fe64f05
Update preinstall script condition for rename the correct partitions.
pjaipakdee May 28, 2019
1524860
Update virtual i2c device name from MAX6696 to 31730.
pjaipakdee May 28, 2019
c7ddfc7
Update ONLP for handle correct BMC thermal data.
pjaipakdee May 28, 2019
e70c431
Increase oid table size for handle more thermal data.
pjaipakdee May 29, 2019
59b11fa
Update install script to prevent installer to delete other OS.
pjaipakdee May 29, 2019
49a344a
Leverage code with mt.echo v0.4
pjaipakdee Jul 17, 2019
d79f8b7
Fix install issue, Onie update and uninstall OS issue.
pjaipakdee Aug 9, 2019
e2377b7
Update Linux config to put opencore build as module not buildin.
pjaipakdee Aug 9, 2019
1dd84fe
Update ONLP and BSP for support Opencore BSP.
pjaipakdee Aug 9, 2019
de1edd6
Update BSP platform name to not duplicate with kernel's ocores.
pjaipakdee Aug 16, 2019
69d6bd5
Optimize ONLP to reduce number of times that call BMC though ipmi pro…
pjaipakdee Aug 16, 2019
c8c2d67
Optimize onlp , remove possible memory leak and clean the code.
pjaipakdee Aug 30, 2019
2342d40
Update swtchboard-diag to v2.0.1
pjaipakdee Sep 2, 2019
1d64f2d
Fix the installer create wrong boot option and fix uninstall issue.
pjaipakdee Sep 10, 2019
08c1e10
Update BSP to v2.0.2 for fix rmmod issue.
pjaipakdee Sep 10, 2019
33ba10d
Update the onlp for display correct data.
pjaipakdee Sep 10, 2019
37e7d66
Remove hw-management from os.
pjaipakdee Sep 11, 2019
bbdb996
Update BSP to v2.0.3 to fix CPLD2 getreg issue.
pjaipakdee Sep 12, 2019
a38561a
Update platform.c to fix onlpdump clash when user pluged 1 PSU.
pjaipakdee Sep 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
url = http://github.com/floodlight/infra
[submodule "sm/bigcode"]
path = sm/bigcode
url = http://github.com/floodlight/bigcode
url = https://github.com/SW-CSV/bigcode
[submodule "packages/base/any/kernels/legacy/linux-3.8.13"]
path = packages/base/any/kernels/legacy/linux-3.8.13
url = http://github.com/opennetworklinux/linux-3.8.13
Expand Down
7 changes: 5 additions & 2 deletions builds/any/installer/installer.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ if has_boot_env onl_installer_debug; then installer_debug=1; fi
if test "$installer_debug"; then
echo "Debug mode"
set -x
installer_wait=30
else
installer_wait=3
fi

# Pickup ONIE defines for this machine.
Expand Down Expand Up @@ -254,7 +257,7 @@ if test "${onie_platform}"; then

installer_umount

if installer_reboot; then
if installer_reboot $installer_wait; then
:
else
sync
Expand Down Expand Up @@ -587,7 +590,7 @@ trap - 0 1
installer_umount

if test "${onie_platform}"; then
installer_reboot
installer_reboot $installer_wait
fi

exit
Expand Down
102 changes: 101 additions & 1 deletion builds/any/installer/sample-postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,104 @@ rootdir=$1; shift
echo "Hello from postinstall"
echo "Chroot is $rootdir"

exit 0
PATH_TMP='/tmp/os'
EFI_PATH_TMP='/tmp/efi'
DIAG_GRUB_DATA="function diag_bootcmd {
\$diag_grub_custom
}"

### Delete ONL boot partition
ONL_DIAG=$(efibootmgr | grep "Open Network Linux" | awk '{print $1}')
ONL_BOOT_NUM="${ONL_DIAG//Boot/}"
ONL_BOOT_NUM="${ONL_BOOT_NUM//\*/}"
# efibootmgr -b $ONL_BOOT_NUM -A # -B is inactive command
efibootmgr -b $ONL_BOOT_NUM -B # -B is delete command

### Change parition name with -DIAG, The uninstall operation must not modify or remove this partiion.
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-BOOT" | awk '{print $1}'):"ONL-BOOT-DIAG" /dev/sda
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-CONFIG" | awk '{print $1}'):"ONL-CONFIG-DIAG" /dev/sda
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-IMAGES" | awk ' {print $1}'):"ONL-IMAGES-DIAG" /dev/sda
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-DATA" | awk '{print $1}'):"ONL-DATA-DIAG" /dev/sda

### Set GPT system partition attribute bit (bit 0)
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-BOOT" | awk '{print $1}'):set:0 /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-CONFIG" | awk '{print $1}'):set:0 /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-IMAGES" | awk '{print $1}'):set:0 /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-DATA" | awk '{print $1}'):set:0 /dev/sda

### Read grub config and set back to ONIE Diag grub.
mkdir -p $PATH_TMP
mount -v /dev/sda$(sgdisk -p /dev/sda | grep "ONL-BOOT-DIAG" | awk '{print $1}') $PATH_TMP
ST_GRUB=$(cat $PATH_TMP/grub/grub.cfg | grep -n "menuentry \"Open Network Linux\" {" | head -n 1 | cut -d: -f1)
EN_GRUB=$(tail $PATH_TMP/grub/grub.cfg -n +$ST_GRUB | grep -n "}" |head -n 1 |cut -d: -f1)
EN_GRUB=$(($EN_GRUB+$ST_GRUB-1))

sed -n -e $(($ST_GRUB+1)),$(($EN_GRUB-1))p $PATH_TMP/grub/grub.cfg > /tmp/grub_tmp
# DIAG_GRUB="${DIAG_GRUB_DATA/"\$diag_grub_custom"/\"$DIAG_GRUB\"}"
cp $rootdir/mnt/onie-boot/grub/grub.cfg $rootdir/mnt/onie-boot/grub/grubNEW.cfg
cp $rootdir/mnt/onie-boot/grub/grub.cfg $rootdir/mnt/onie-boot/grub/grub_backup.cfg
echo "Installing Diag OS grub to grub.cfg ....."
echo "$(echo "}" | cat - $rootdir/mnt/onie-boot/grub/grubNEW.cfg)" > $rootdir/mnt/onie-boot/grub/grubNEW.cfg
cat /tmp/grub_tmp | cat - $rootdir/mnt/onie-boot/grub/grubNEW.cfg > $rootdir/mnt/onie-boot/grub/grub.cfg
echo "$(echo "function diag_bootcmd {" | cat - $rootdir/mnt/onie-boot/grub/grub.cfg)" > $rootdir/mnt/onie-boot/grub/grub.cfg
echo "$(echo diag_menu=\"CLS Diag OS\" | cat - $rootdir/mnt/onie-boot/grub/grub.cfg)" > $rootdir/mnt/onie-boot/grub/grub.cfg
rm -f $rootdir/mnt/onie-boot/grub/grubNEW.cfg


# DIAG_GRUB="${DIAG_GRUB_DATA/"\$diag_grub_custom"/\"$DIAG_GRUB\"}"
cp $rootdir/mnt/onie-boot/onie/grub/grub_backup.cfg $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg.cfg 2> /dev/null || :
cp $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg $rootdir/mnt/onie-boot/onie/grub/grub_backup.cfg

cp $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg $rootdir/mnt/onie-boot/onie/grub/grubNEW.cfg
echo "Installing Diag OS grub grub-extra.cfg ....."
echo "$(echo "}" | cat - $rootdir/mnt/onie-boot/onie/grub/grubNEW.cfg)" > $rootdir/mnt/onie-boot/onie/grub/grubNEW.cfg
cat /tmp/grub_tmp | cat - $rootdir/mnt/onie-boot/onie/grub/grubNEW.cfg > $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg
echo "$(echo "function diag_bootcmd {" | cat - $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg)" > $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg
echo "$(echo diag_menu=\"CLS Diag OS\" | cat - $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg)" > $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg
echo "$(echo "## Begin grub-extra.cfg" | cat - $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg)" > $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg
rm -f $rootdir/mnt/onie-boot/onie/grub/grubNEW.cfg

#Get boot order before create new one.
CURRENT_BOOT_ORDER=$(efibootmgr | grep BootOrder: | awk '{ print $2 }')
mkdir -p $EFI_PATH_TMP
mount -v /dev/sda$(sgdisk -p /dev/sda | grep "EFI System" | awk '{print $1}') $EFI_PATH_TMP
echo "Update EFI directory for ONL from /boot/efi/EFI/ONL to /boot/efi/EFI/ONL-DIAG"
if [ -d /tmp/efi/EFI/ONL ]; then
mv /tmp/efi/EFI/ONL /tmp/efi/EFI/ONL-DIAG
fi

boot_num=$(efibootmgr -v | grep "CLS-DIAG-OS" | grep ')/File(' | tail -n 1 | awk '{ print $1 }')
boot_num=${#boot_num}
if [ $boot_num -eq 0 ]; then
efibootmgr -c -L "CLS-DIAG-OS" -l '\EFI\ONL-DIAG\grubx64.efi'
fi

#*Reorder* move CLS-DIAG-OS to back of list.
boot_num=$(efibootmgr -v | grep "CLS-DIAG-OS" | grep ')/File(' | tail -n 1 | awk '{ print $1 }')
boot_num=${boot_num#Boot}
boot_num=${boot_num%\*}
new_boot_order="$(echo -n $CURRENT_BOOT_ORDER | sed -e s/,$boot_num// -e s/$boot_num,// -e s/$boot_num//)"
efibootmgr -o ${new_boot_order},${boot_num}

echo "Copy grub-extra.cfg to diag-boocmd.cfg to prevent command disappear after Onie update ..."
cp $rootdir/mnt/onie-boot/onie/grub/grub-extra.cfg $rootdir/mnt/onie-boot/onie/grub/diag-bootcmd.cfg

echo "Create dummy partition for CLS Diag OS for prevent being destroy by onie-updater"
# DUMMY_PARTITION_NUMBER_POST=$(sgdisk -p /dev/sda | grep CLS-DIAG | awk '{print $1}')
# if [[ $DUMMY_PARTITION_NUMBER_POST -gt 0 ]]
# then
# exit 0
# fi
START_POS=$(sgdisk -f /dev/sda)
END_POS=$(($START_POS+2048))
LAST_PARTITION_NUMBER=$(sgdisk -p /dev/sda | grep $(($START_POS-1)) | awk '{print $1}')
NEW_PARTITION_NUMBER=$((LAST_PARTITION_NUMBER+1))
sgdisk -n $NEW_PARTITION_NUMBER:$START_POS:$END_POS -t $NEW_PARTITION_NUMBER:0700 /dev/sda
sgdisk --change-name=$NEW_PARTITION_NUMBER:"CLS-DIAG" /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "CLS-DIAG" | awk '{print $1}'):set:0 /dev/sda
dd if=/dev/zero of=/dev/sda$NEW_PARTITION_NUMBER bs=1M count=1
mkfs.ext4 /dev/sda$NEW_PARTITION_NUMBER
partprobe /dev/sda
tune2fs -L "CLS-DIAG" /dev/sda$NEW_PARTITION_NUMBER

exit 0
31 changes: 31 additions & 0 deletions builds/any/installer/sample-preinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,35 @@ rootdir=$1; shift
echo "Hello from preinstall"
echo "Chroot is $rootdir"

### Change parition name with -DIAG, The uninstall operation must not modify or remove this partiion.
### clear GPT system partition attribute bit (bit 0)
if [ ! -z $(sgdisk -p /dev/sda | grep "ONL-BOOT-DIAG" | awk '{print $1}') ]; then
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-BOOT-DIAG" | awk '{print $1}'):"ONL-BOOT" /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-BOOT" | awk '{print $1}'):clear:0 /dev/sda
fi
if [ ! -z $(sgdisk -p /dev/sda | grep "ONL-CONFIG-DIAG" | awk '{print $1}') ]; then
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-CONFIG-DIAG" | awk '{print $1}'):"ONL-CONFIG" /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-CONFIG" | awk '{print $1}'):clear:0 /dev/sda
fi
if [ ! -z $(sgdisk -p /dev/sda | grep "ONL-IMAGES-DIAG" | awk '{print $1}') ]; then
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-IMAGES-DIAG" | awk ' {print $1}'):"ONL-IMAGES" /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-IMAGES" | awk '{print $1}'):clear:0 /dev/sda
fi
if [ ! -z $(sgdisk -p /dev/sda | grep "ONL-DATA-DIAG" | awk '{print $1}') ]; then
sgdisk --change-name=$(sgdisk -p /dev/sda | grep "ONL-DATA-DIAG" | awk '{print $1}'):"ONL-DATA" /dev/sda
sgdisk -A $(sgdisk -p /dev/sda | grep "ONL-DATA" | awk '{print $1}'):clear:0 /dev/sda
fi

## Remove Dummy partition CLS-DIAG if exist
if [ ! -z $(sgdisk -p /dev/sda | grep CLS-DIAG | awk '{print $1}') ]; then
DUMMY_PARTITION_NUMBER=$(sgdisk -p /dev/sda | grep CLS-DIAG | awk '{print $1}')
sgdisk -d $DUMMY_PARTITION_NUMBER /dev/sda
fi

## Move back the ONL efi partition for protect the conflict between install process.
if [ -d /boot/efi/EFI/ONL-DIAG ]; then
mv /boot/efi/EFI/ONL-DIAG /boot/efi/EFI/ONL
fi


exit 0
3 changes: 2 additions & 1 deletion builds/any/rootfs/jessie/common/all-base-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
#
############################################################
- base-files
- sysvinit-core
- locales
- python
- apt
- apt-utils
- debconf
- dialog
- procps
- net-tools
- iputils-ping
Expand Down
1 change: 1 addition & 0 deletions builds/any/rootfs/jessie/standard/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ variables:
!include $ONL/make/versions/version-onl.yml

Packages: &Packages
- !script $ONL/tools/onl-init-pkgs.py ${INIT}
- !include $ONL/builds/any/rootfs/$ONL_DEBIAN_SUITE/common/all-base-packages.yml
- !include $ONL/builds/any/rootfs/$ONL_DEBIAN_SUITE/common/${ARCH}-base-packages.yml
- !include $ONL/builds/any/rootfs/$ONL_DEBIAN_SUITE/common/${ARCH}-onl-packages.yml
Expand Down
3 changes: 2 additions & 1 deletion builds/any/rootfs/stretch/common/all-base-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
#
############################################################
- base-files
- sysvinit-core
- locales
- python
- apt
- apt-utils
- debconf
- dialog
- procps
- net-tools
- iputils-ping
Expand Down
4 changes: 3 additions & 1 deletion builds/any/rootfs/stretch/common/amd64-base-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
- smartmontools
- grub2
- onl-upgrade
- hw-management
#- hw-management
- onl-kernel-4.9-lts-x86-64-all-modules
- onl-kernel-4.14-lts-x86-64-all-modules
- efibootmgr
- gdisk
- ipmitool
- valgrind
5 changes: 3 additions & 2 deletions builds/any/rootfs/stretch/standard/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ variables:
!include $ONL/make/versions/version-onl.yml

Packages: &Packages
- !script $ONL/tools/onl-init-pkgs.py ${INIT}
- !include $ONL/builds/any/rootfs/$ONL_DEBIAN_SUITE/common/all-base-packages.yml
- !include $ONL/builds/any/rootfs/$ONL_DEBIAN_SUITE/common/${ARCH}-base-packages.yml
- !include $ONL/builds/any/rootfs/$ONL_DEBIAN_SUITE/common/${ARCH}-onl-packages.yml
Expand Down Expand Up @@ -66,9 +67,9 @@ Configure:

update-rc.d:
- 'faultd defaults'
- 'onlpd defaults'
- 'onlpd remove'
- 'snmpd defaults'
- 'onlp-snmpd defaults'
- 'onlp-snmpd remove'
- 'ssh defaults'
- 'openbsd-inetd remove'
- 'ntp remove'
Expand Down
2 changes: 2 additions & 0 deletions builds/any/rootfs/wheezy/common/all-base-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- python
- apt
- apt-utils
- debconf
- dialog
- procps
- net-tools
- iputils-ping
Expand Down
22 changes: 22 additions & 0 deletions docker/images/builder8/1.9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
############################################################
#
# Minor updates.
# - libelf-dev for kernel 4.14
# - cryptsetup-bin
#
############################################################
FROM opennetworklinux/builder8:1.8
MAINTAINER Jeffrey Townsend <jeffrey.townsend@bigswitch.com>

# LTS architecture fixes

RUN sudo sed -i s/'http:\/\/security'/'[arch=amd64,armel] http:\/\/security'/g /etc/apt/sources.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
apt-get install -y apt-transport-https

#
# Docker shell and other container tools.
#
COPY docker_shell /bin/docker_shell
COPY container-id /bin/container-id
19 changes: 19 additions & 0 deletions docker/images/builder8/1.9/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
VERSION=1.9
USER=opennetworklinux
REPO=builder8

TOOLS=../../../tools/docker_shell ../../../tools/container-id

build: check_version
cp $(TOOLS) .
docker build -t $(USER)/$(REPO):$(VERSION) .
rm -rf $(notdir $(TOOLS))

#
# Todo: Query remote repository to see if the request version already exists to avoid accidental overwrites
# when a new image is built but the VERSION variable is not updated.
#
check_version:

push:
docker push $(USER)/$(REPO):$(VERSION)
17 changes: 17 additions & 0 deletions docker/images/builder9/1.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
############################################################
#
# Update Packages for arm64.
# Additional build dependencies.
#
############################################################
FROM opennetworklinux/builder9:1.1
MAINTAINER Jeffrey Townsend <jeffrey.townsend@bigswitch.com>

RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y apt-transport-https

# Docker shell and other container tools.
#
COPY docker_shell /bin/docker_shell
COPY container-id /bin/container-id
19 changes: 19 additions & 0 deletions docker/images/builder9/1.2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
VERSION=1.2
USER=opennetworklinux
REPO=builder9

TOOLS=../../../tools/docker_shell ../../../tools/container-id

build: check_version
cp $(TOOLS) .
docker build -t $(USER)/$(REPO):$(VERSION) .
rm -rf $(notdir $(TOOLS))

#
# Todo: Query remote repository to see if the request version already exists to avoid accidental overwrites
# when a new image is built but the VERSION variable is not updated.
#
check_version:

push:
docker push $(USER)/$(REPO):$(VERSION)
4 changes: 2 additions & 2 deletions docker/tools/onlbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ g_current_uid = os.getuid()
g_timestamp = datetime.datetime.now().strftime("%Y-%m-%d.%H%M%S")

g_builder7_image_name="opennetworklinux/builder7:1.2"
g_builder8_image_name="opennetworklinux/builder8:1.8"
g_builder9_image_name="opennetworklinux/builder9:1.1"
g_builder8_image_name="opennetworklinux/builder8:1.9"
g_builder9_image_name="opennetworklinux/builder9:1.2"

g_default_image_name=g_builder8_image_name
g_default_container_name = "%s_%s" % (g_current_user, g_timestamp)
Expand Down
8 changes: 5 additions & 3 deletions docs/Building.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#How to Build Open Network Linux
How to Build Open Network Linux
============================================================

In case you are not interested in building ONL from scratch
(it takes a while) you can download pre-compiled binaries from
Expand Down Expand Up @@ -55,7 +56,8 @@ and the SWI files (if you want them) are in



#Installing Docker Gotchas
Installing Docker Gotchas
------------------------------------------------------------

Docker installer oneliner (for reference: see docker.com for details)

Expand All @@ -78,7 +80,7 @@ Consider enabling builds for non-privileged users with:
- If you run as non-root without this, you will get errors like `..: dial unix /var/run/docker.sock: permission denied`
- Building as root is fine as well (it immediately jumps into a root build shell), so this optional

#Additional Build Details
Additional Build Details
----------------------------------------------------------

The rest of this guide talks about how to build specific
Expand Down
4 changes: 4 additions & 0 deletions make/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export ONL_DEBIAN_SUITE_$(ONL_DEBIAN_SUITE)=1

export BUILD_DIR_BASE=BUILD/$(ONL_DEBIAN_SUITE)

# init system options sysvinit, systemd. default is sysvinit
ifndef INIT
export INIT := sysvinit
endif

# Use the new module database tool to resolve dependencies dynamically.
ifndef BUILDER_MODULE_DATABASE
Expand Down
Loading