Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cel develop #7

Open
wants to merge 269 commits into
base: cel_develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
269 commits
Select commit Hold shift + click to select a range
6c7759a
change AS58xx-CL baudrate 115200 to 9600
MickeyZhan Aug 30, 2018
17a9bac
Merge pull request #5 from SW-CSA/cel_develop
MickeyZhan Aug 30, 2018
e0b22c5
Add AS58xx_CL bios_upgrade & come_reset & come_boot_info functions
Aug 31, 2018
08aa788
Add AS58xx_CL bios_upgrade & come_reset & come_boot_info functions
Aug 31, 2018
ea38c2b
Merge pull request #6 from SW-CSA/cel_develop
MickeyZhan Aug 31, 2018
cc9303b
upload AS58XX porting code
MickeyZhan Sep 5, 2018
74c4d63
Merge pull request #7 from SW-CSA/cel_develop
MickeyZhan Sep 5, 2018
4daf33d
fix mTerm; add restful fru status node
MickeyZhan Sep 6, 2018
f46b47b
fix psu restful show type
MickeyZhan Sep 7, 2018
ea12cda
After HW remove CD resistor, EMMC works; remove EMMC debug info
MickeyZhan Sep 7, 2018
7fd1021
Merge pull request #8 from SW-CSA/cel_develop
MickeyZhan Sep 7, 2018
0315fb3
1. Delete duplicate code. \n\n2. Add COMe power ADC value.
Sep 8, 2018
20849cb
Add file last commit forgot to add.
Sep 8, 2018
54dab85
power status check change
Sep 8, 2018
da39f4f
Merge pull request #11 from SW-CSA/cel_develop
MickeyZhan Sep 8, 2018
15c1b70
mount emmc and change SOL log to EMMC
MickeyZhan Sep 8, 2018
8cfba49
Merge pull request #12 from SW-CSA/cel_develop
MickeyZhan Sep 8, 2018
3c862dc
fix the issue that management port 100M does not works
MickeyZhan Sep 10, 2018
968eac4
Merge pull request #13 from SW-CSA/cel_develop
MickeyZhan Sep 10, 2018
f7b8e8e
add COMe IR358x power chip
MickeyZhan Sep 10, 2018
72aa237
add Management port LED function
MickeyZhan Sep 11, 2018
512040a
Merge pull request #14 from SW-CSA/cel_develop
MickeyZhan Sep 11, 2018
97cfdb0
fix the bug that sensors show info not corrent
MickeyZhan Sep 12, 2018
2f814e5
Merge pull request #15 from SW-CSA/cel_develop
MickeyZhan Sep 12, 2018
0c8256b
change eth0 to manual setting
MickeyZhan Sep 13, 2018
91d3ee9
Add switch chip temperature to sensors command.
Sep 15, 2018
612107d
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Sep 15, 2018
ff05499
Add CPU temperature to restful function.
Sep 18, 2018
a46938d
change PSU input power threshold
MickeyZhan Sep 20, 2018
d408548
1. Fix restful fru-utils fan missing information.
Sep 21, 2018
dd01119
Change Optical temp cpld driver node.
Sep 21, 2018
4899b9e
change power chip name
MickeyZhan Sep 25, 2018
cca7b7b
change the order of fan fru
MickeyZhan Sep 26, 2018
50b1d8d
Fix RJ45 port led not off when no link.
Sep 29, 2018
f1fc63a
Fix last commit error code.
Sep 29, 2018
6df9c31
Add FRU utility
MickeyZhan Sep 29, 2018
9d39daa
Add PSU eeprom data analysis app.
Sep 30, 2018
3ab7f4d
Change PSU i2c driver name.
Sep 30, 2018
ca43f03
Change PSU EEPROM data analysis app help information.
Oct 1, 2018
c72fc5e
1. change temp threshold name; 2.change fan control policy
MickeyZhan Oct 2, 2018
7008c66
1. sys_led mix mode not support on option.
Oct 2, 2018
b30ab6b
1. Change fru-util status display messages when psu not powered.
Oct 2, 2018
8ffda5f
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Oct 2, 2018
70c0647
Configure BMC MAC from system EEPROM
MickeyZhan Oct 3, 2018
ee4c3bd
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
MickeyZhan Oct 3, 2018
4d9cac9
change PSU fan threshold
MickeyZhan Oct 3, 2018
24e4707
Fix fru-util cmd fan wrong status message.
Oct 3, 2018
038cdcd
porting FSC and add PSU speed R/W sysnode
MickeyZhan Oct 8, 2018
f2d1daf
update thermal policy
MickeyZhan Oct 10, 2018
7a22faa
1. Add COMe power cycle command.
Oct 11, 2018
718fd2a
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Oct 11, 2018
3b9e650
1. Change PSU & FAN order.
Oct 15, 2018
7fa2ede
Add ipmitool to read ME info, and add ipmibd, PECI function
MickeyZhan Oct 16, 2018
2615d1d
1. Add PCA9506 booting setup.
Oct 18, 2018
914186c
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Oct 18, 2018
6538ca1
Add Fishbone i2c missing fan eeprom drivers.
Oct 18, 2018
520608d
1. add ethtool; 2. fix emmc reprot error after force power off
MickeyZhan Oct 22, 2018
b0aaaa9
1. Change PCA9506 driver loading.
Oct 23, 2018
9c9d246
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Oct 23, 2018
7987519
Fix the bug that return 01 when the last byte is character
MickeyZhan Oct 25, 2018
75b829d
remove duplicate Fan EEPROM setting
MickeyZhan Oct 25, 2018
df99707
1.Phalanx support FRU function.
Oct 27, 2018
40e82fc
1. Fix restful Phalanx FRU fan number.
Oct 28, 2018
f58fa1d
Fix restful FRU fan numbers.
Oct 29, 2018
d40e0cc
1. Change Phalanx PSU i2c bus.
Oct 29, 2018
bd465d5
Fix compile error.
Oct 31, 2018
15fad7c
1. Change board_type cmd.
Oct 31, 2018
c649e81
Phalanx driver id & driver name.
Oct 31, 2018
23cdf5b
1. Add isl68137 driver.
Nov 1, 2018
a79bb44
PSU eeprom data format change.
Nov 1, 2018
1fa448f
Fix Fan control get speed error
alexzhangCel Nov 1, 2018
071204f
1. Change FSC policy; 2. Add BMC login timeout
MickeyZhan Nov 2, 2018
1f22bd6
Add max31730 i2c driver.
Nov 2, 2018
4c91b86
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Nov 2, 2018
6ce79e8
add psu auto-detect
MickeyZhan Nov 2, 2018
ad95b7c
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
MickeyZhan Nov 2, 2018
d358ac7
Fix max31730 temperature calculate error.
Nov 2, 2018
f6cc65f
change thermal control policy
MickeyZhan Nov 5, 2018
e387903
1. pal.c code style change.
Nov 5, 2018
6a43177
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Nov 5, 2018
856d2c5
1. Add max31730 temperature to sensors command.
Nov 6, 2018
bd2871a
1. Change Fru psu eeprom command to use eeprom_data App.
Nov 6, 2018
faa834f
1. Fix sensors DC-DC chip information.
Nov 7, 2018
b325f50
update FSC
MickeyZhan Nov 8, 2018
f851728
Restful temp change to use sys_temp command.
Nov 8, 2018
8af4cd0
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Nov 8, 2018
0e11f84
Fix fruid-util all errors on Fishbone
Nov 8, 2018
d969bc2
Add USB function
MickeyZhan Nov 12, 2018
adbe134
Fix restful FRU status null info.
Nov 14, 2018
30e6fd0
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Nov 16, 2018
ce4b2e6
change 4088 ip to 240.1.1.1;
MickeyZhan Nov 16, 2018
bf52971
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Nov 20, 2018
f4358f5
separate Fishbone and Phalanx projects
MickeyZhan Nov 20, 2018
6684e4d
remove phalanx configure in fishbone project
MickeyZhan Nov 20, 2018
32bbf70
add COMe reset status monitor
MickeyZhan Nov 20, 2018
b2b4cca
Remove Phalanx related code in Fishbone project.
Nov 21, 2018
af3def3
Remove Fishbone code in Phalanx project.
Nov 22, 2018
f5719f1
change timezone to GMT+8
MickeyZhan Nov 22, 2018
b47a5f6
add COMe reset monitor function
MickeyZhan Nov 22, 2018
91e42cb
adjust PSU status sysfs node offset
MickeyZhan Nov 23, 2018
9790bd0
Fix the bug that restful have '{}'
MickeyZhan Nov 23, 2018
09a7cc7
1. Add disk information to restful API.
Nov 28, 2018
151b6f5
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Nov 28, 2018
af2314d
1. Restful bmc API add u-boot version.
Nov 29, 2018
2b1418e
Change SOl log to /var/log/console.log
MickeyZhan Dec 1, 2018
75e32be
Remove ethernet led control and disable print eth0.4088 error.
Dec 3, 2018
0105ed6
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Dec 3, 2018
ddef6ca
isl68137 driver remove channel 1 output.
Dec 3, 2018
280b2ff
Add fand_v2 for fan control policy.
Dec 3, 2018
f6b6e7c
Change fan order in sensors command.
Dec 3, 2018
99220e7
Change NTP listen from SONiC
MickeyZhan Dec 5, 2018
17992b5
1. Change fan order in fishbone sensors command.
Dec 5, 2018
f3270db
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Dec 5, 2018
d99f96b
Fix FSC line policy slope.
Dec 5, 2018
5540667
Update fishbone FSC PID params.
Dec 5, 2018
4725a13
Fishbone FSC direction detection change & pid params change.
Dec 6, 2018
f0a6db1
Remove debug log.
Dec 6, 2018
879a791
1. Phalanx add bmc/cpld/u-boot version to restful bmc api.
Dec 6, 2018
ba3729c
remove disable WDT1 functin after BMC booting
MickeyZhan Dec 6, 2018
9bb1794
add read cpu temperature function
MickeyZhan Dec 7, 2018
37e4158
fishbone FSC log once when PSU or fan not present.
Dec 7, 2018
e6e6799
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Dec 7, 2018
b236f4f
Fishbone FSC some OTP warning information change.
Dec 12, 2018
c1fa961
1. Fishbone fru-utils command PSU order change.
Dec 13, 2018
5c6a116
Change Phalanx FSC the same as Fishbone.
Dec 13, 2018
965c88a
Fishbone32 FSC change switch name.
Dec 13, 2018
12a544c
Add inlet sensors revise function
MickeyZhan Dec 13, 2018
b4e8b8d
sync CPU temp
MickeyZhan Dec 13, 2018
592ac2f
Fishbone FSC switch name chage resume.
Dec 13, 2018
f59ac9b
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Dec 13, 2018
a6d5c17
1. Fishbone FSC add fans & PSU direction check dynamicly.
Dec 20, 2018
79bed7a
Fix fishbone FSC major max speed bugs.
Dec 20, 2018
70a0862
merge fishbone and phalanx projects
MickeyZhan Dec 23, 2018
831bdc2
porting fand and pal
MickeyZhan Dec 23, 2018
ad06459
Fishbone FSC add PSU led control.
Dec 24, 2018
6559979
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Dec 24, 2018
f54b6e5
Add FSC code.
Dec 25, 2018
3657c56
Add abnormal monitor
MickeyZhan Dec 25, 2018
73f57ac
1. Close FSC app on Phalanx.
Dec 25, 2018
79c00bf
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Dec 25, 2018
7e6fa2d
Fix the ntp can not sync the time automatically from SONiC
MickeyZhan Dec 25, 2018
0c3b08d
Fishbone FSC set fan speep 10% who's direction not right.
Dec 26, 2018
8c2d9b1
Add FSC header file.
Dec 26, 2018
3e7767c
1. Remove ftgmac error print;
MickeyZhan Dec 26, 2018
e881b82
Fishbone fan max value & Phalanx sensors value change.
Dec 26, 2018
e732ae7
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Dec 26, 2018
64c344c
Phalanx fan FRU restful support and decrease the response time
Dec 27, 2018
94759ae
1. Fix Fishbone FSC max speed when PSU not power.
Dec 27, 2018
a960579
Phalanx FSC PSU control speed itself
Dec 27, 2018
dbe8929
Phalanx set isl68137 output while booting up.
Dec 28, 2018
a4c5742
1. Add power on COMe when BMC booting.
MickeyZhan Jan 1, 2019
965737a
support upgrade BMC from RESTful
MickeyZhan Jan 3, 2019
2a74004
1. FSC thermal direction judge condition change
Jan 4, 2019
78f2211
FSC direction field change.
Jan 4, 2019
aa3f05c
FSC sensor lost & high warning recovery time calibration
Jan 4, 2019
5e4eb47
Fix FSC error
Jan 4, 2019
e95c17a
Add LED location function
MickeyZhan Jan 7, 2019
8e60b6b
remove ftgmac100 hw checksum
MickeyZhan Jan 7, 2019
d3394ba
1. Remove FSC debug info.
Jan 9, 2019
435bb95
Fix Phalanx isl68137 max value of iout2
Jan 9, 2019
589d387
1. FSC fan direction field change
Jan 10, 2019
89d7be6
Workaround for Delta FRU PSU
MickeyZhan Jan 10, 2019
cbbe2d4
Add COMe status check when read cpu temp
MickeyZhan Jan 10, 2019
e5750ea
fix the name error of led location scrpt
MickeyZhan Jan 10, 2019
6e2a4e3
Add python pexpect
MickeyZhan Jan 16, 2019
36f360c
FSC changes
Jan 21, 2019
c8443e5
1. Add restful API to add user or change user's password of BMC.
Jan 22, 2019
c2db895
add sonic upgrade bmc restful command
MickeyZhan Jan 22, 2019
81c219e
Fix boot_from command could switch to master when booting from slave
Jan 23, 2019
4889b1e
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Jan 23, 2019
82fdfe9
1. Fishbone & Phalanx sensors name change.
Jan 25, 2019
33e2176
Disabling loading driver when psu power is not ok on fishbone
Jan 25, 2019
5d27614
Fix last commit psu present status error.
Jan 25, 2019
076e6a2
Phalanx switch thermal sensor correction change
Feb 1, 2019
7ac846a
Jenkins test
MickeyZhan Feb 14, 2019
4153692
Jenkins test
MickeyZhan Feb 14, 2019
cb29cf3
Jenkins test
MickeyZhan Feb 14, 2019
c45d983
Jenkins test
MickeyZhan Feb 14, 2019
4a51ea2
1. fru-util command support Phalanx line card eeprom
Feb 15, 2019
f7adfd4
Merge branch 'cel_develop' of https://github.com/SW-CSA/openbmc into …
Feb 15, 2019
c743147
FSC update fan & PSU direction when connection changed.
Feb 15, 2019
969e832
Fix CPU temp not updates when it's power off
Feb 19, 2019
55d0978
Correct the exception handling time of FSC
Feb 21, 2019
ab488d2
1. Fix FSC file node error log when PSU power off
Feb 27, 2019
6104898
1. Add cpld_upgrade command for convenience when upgrade cpld.
Feb 27, 2019
cea1577
1. Add restful API for upgrading cpld & bios
Feb 27, 2019
ab60fe1
Fix get bmc info from restful API fail issue
Feb 28, 2019
f58aa3e
1. Remove useless sensors on fishbone.
Mar 1, 2019
7d46665
Fix log CATERR continually & add recovery log
Mar 1, 2019
e6ce519
Add CATERR recover log
Mar 1, 2019
ccd3f0e
Fix power monitor list index out of range issue
Mar 4, 2019
d9bf19e
Decrease CPLD upgrade time
Mar 7, 2019
fe32d3c
Add BIOS/BMC upgrade log
Mar 13, 2019
afa94b9
FSC change
Mar 14, 2019
5bad8db
Fix getting bmc restful api failed while no emmc card issue
Mar 18, 2019
5674084
last commit wrong code fixed
Mar 18, 2019
4fc0535
1. Phalanx switch TH3 outlet sensor max temp value change.
Mar 19, 2019
ea626f0
1. Upload I2C fault-tolerant capability code
Mar 26, 2019
95f7e78
i2c fault-tolerant porting
MickeyZhan Mar 26, 2019
332409c
1. change PSU low speed to 35% when insert difference PSU.
MickeyZhan Mar 27, 2019
c477e25
add I2C tolerant in FRU
MickeyZhan Mar 28, 2019
f25bec3
change fand log info
MickeyZhan Mar 29, 2019
1c700b6
regress the rest_fruid.py modify
MickeyZhan Apr 2, 2019
e0d34ac
Remove fru update func about i2c torelant
MickeyZhan Apr 3, 2019
e33222d
change PCA954x driver to module
MickeyZhan Apr 3, 2019
01614a4
remove I2C tolerant process
MickeyZhan Apr 3, 2019
d6c87a6
change rsyslog PORT to 514
MickeyZhan Apr 3, 2019
c3c49b4
1. change host name.
MickeyZhan Apr 4, 2019
00b954b
add PCA9548 reset after I2C hang
MickeyZhan Apr 4, 2019
766e34c
change CPU error to GPIO interrupt mode
MickeyZhan Apr 4, 2019
4ad1c49
remove log in syscpld
MickeyZhan Apr 4, 2019
8a3e265
1. remove dhc6 daemon.
MickeyZhan Apr 8, 2019
17e5916
change syslog level of fishbone power monitor
MickeyZhan Apr 10, 2019
f8ba289
1. ignore pca9548 driver probe.
MickeyZhan Apr 11, 2019
1a18616
1. remove optical temp.
MickeyZhan Apr 11, 2019
f399990
change bmc hostname
MickeyZhan Apr 11, 2019
58914c8
add rsyslog restart
MickeyZhan Apr 12, 2019
e6920f6
sync kernel code to build success
MickeyZhan Apr 12, 2019
146b7d9
Add PSU power monitor
MickeyZhan Apr 17, 2019
84eb2bc
Add power and led_location comands
MickeyZhan Apr 17, 2019
8787cd5
sync kernel code
MickeyZhan Apr 18, 2019
6c75668
add wrong module print log
MickeyZhan Apr 23, 2019
669cad2
remove dirty field when release version
MickeyZhan Apr 23, 2019
832d204
1. Fix the bug that only print revoered info when cpu error triggered.
MickeyZhan Apr 26, 2019
a9f14d9
1. Change linux and u-boot code base to SW-CSA.
MickeyZhan Apr 28, 2019
764b8bc
fix the bug that it impact the power status command after add S0 status
MickeyZhan May 5, 2019
090c65b
Fix the but power command return fail after add CPU S0 status
MickeyZhan May 9, 2019
848f266
Fix the bug that all PSU VIN thresholds changed when modify one
MickeyZhan May 16, 2019
56748f3
Fix the but that us_monitor crashed in phalanx
MickeyZhan May 20, 2019
6dff49a
1. add rebooting BMC interface for SONiC.
MickeyZhan May 20, 2019
b68c736
fix CPLD refresh interface for SONiC
MickeyZhan May 21, 2019
48a6fe1
1. add cpld_refresh to support two refresh files.
MickeyZhan May 23, 2019
58bae65
modify syslog type and content
MickeyZhan May 28, 2019
1b6d87c
change messages log size
MickeyZhan May 28, 2019
5dcb5ca
change syslog
MickeyZhan May 28, 2019
2f7ce91
change syslog type in fand
MickeyZhan May 29, 2019
7b42d84
Fix the bug that reading wrong FAN/PSU PN module
MickeyZhan Jun 4, 2019
1032d53
fix the print type % of fand
MickeyZhan Jun 4, 2019
6003271
change phalanx PSU number
MickeyZhan Jun 4, 2019
cb6f121
syslog file change and add power cycle command
MickeyZhan Jun 7, 2019
71ef519
add auto dump function of cpu error detected
MickeyZhan Jun 10, 2019
9284a75
1. update PSU threshold
MickeyZhan Jul 3, 2019
186b3ed
change BIOS check time to 120s
MickeyZhan Jul 3, 2019
fa8c0fd
change max threshold of Switch_PVDD_0.8V Voltage to 0.88V
MickeyZhan Jul 5, 2019
11fb625
Change the min threshold of power chip
MickeyZhan Jul 17, 2019
881f670
change SOL log name and rechange config to upload it to remote log
MickeyZhan Jul 18, 2019
a50556e
[2]change SOL log name and rechange config to upload it to remote log
MickeyZhan Jul 19, 2019
7e20c54
Fix the bug that the flag can not be stored after running bmc_reboot …
MickeyZhan Aug 20, 2019
5db804c
Fix the bug syslog show the hostname (none)
MickeyZhan Sep 24, 2019
9d997f5
rename rest_watchdog.py to rest_wdt.py
Nov 7, 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 classes/openbmc_version.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_openbmc_version(d):
gitdir = os.path.join(cur, '.git')
if cur and is_openbmc_root:
cmd = ['git', '--git-dir=%s' % gitdir , '--work-tree=%s' % cur,
'describe', '--tags', '--dirty', '--always']
'describe', '--tags', '--always']
exitstatus, output = oe.utils.getstatusoutput(' '.join(cmd))
if exitstatus != 0:
output = ''
Expand Down
10 changes: 5 additions & 5 deletions common/recipes-core/initscripts/files/hostname.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Default-Stop:
# Short-Description: Set hostname based on /etc/hostname
### END INIT INFO
HOSTNAME="bmc-oob"
HOSTNAME="bmc"

set_hostname() {
local name=$1
Expand Down Expand Up @@ -46,10 +46,10 @@ update_hostname() {
fi
}

if [ -e /mnt/data/hostname ]; then
# Use the cached copy to set the hostname
HOSTNAME=$(cat /mnt/data/hostname)
fi
#if [ -e /mnt/data/hostname ]; then
# # Use the cached copy to set the hostname
# HOSTNAME=$(cat /mnt/data/hostname)
#fi
set_hostname $HOSTNAME
# Start the update process in the background so
# we may update the cached copy if it has changed.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
From 073d5a3cc2a94152adac850ee9813284c32ab59e Mon Sep 17 00:00:00 2001
From: zmzhan <mzhan@celestica.com>
Date: Mon, 6 Aug 2018 18:31:39 +0800
From 6f801805c1f29db1b22d12c1b935d79fc15a97fd Mon Sep 17 00:00:00 2001
From: Xuth <tianhui@celestica.com>
Date: Fri, 12 Oct 2018 16:02:14 +0800
Subject: [PATCH] Support Celestica Questone2 and AS58XX-CL projects

---
arch/arm/Kconfig | 11 ++
board/celestica/Kconfig | 25 ++++
board/celestica/MAINTAINERS | 8 ++
configs/cel_as58xx-cl_defconfig | 26 +++++
configs/cel_questone2_defconfig | 26 +++++
include/configs/cel_as58xx-cl.h | 252 ++++++++++++++++++++++++++++++++++++++++
include/configs/cel_questone2.h | 252 ++++++++++++++++++++++++++++++++++++++++
7 files changed, 600 insertions(+)
configs/cel_as58xx-cl_defconfig | 26 ++++
configs/cel_questone2_defconfig | 26 ++++
drivers/net/aspeednic.c | 16 +++
include/configs/cel_as58xx-cl.h | 261 ++++++++++++++++++++++++++++++++++++++++
include/configs/cel_questone2.h | 252 ++++++++++++++++++++++++++++++++++++++
8 files changed, 625 insertions(+)
create mode 100644 board/celestica/Kconfig
create mode 100644 board/celestica/MAINTAINERS
create mode 100644 configs/cel_as58xx-cl_defconfig
Expand Down Expand Up @@ -95,7 +96,7 @@ index 0000000..46c2f0e
+F: configs/cel_as58xx-cl_defconfig
diff --git a/configs/cel_as58xx-cl_defconfig b/configs/cel_as58xx-cl_defconfig
new file mode 100644
index 0000000..aac79b4
index 0000000..f607d82
--- /dev/null
+++ b/configs/cel_as58xx-cl_defconfig
@@ -0,0 +1,26 @@
Expand All @@ -118,7 +119,7 @@ index 0000000..aac79b4
+CONFIG_PHYLIB=y
+CONFIG_NETDEVICES=y
+CONFIG_DEBUG_UART=y
+CONFIG_DEBUG_UART_BASE=0x1E78E000
+CONFIG_DEBUG_UART_BASE=0x1E784000
+CONFIG_DEBUG_UART_CLOCK=24000000
+CONFIG_SYS_NS16550=y
+CONFIG_SPI_FLASH=y
Expand Down Expand Up @@ -157,12 +158,46 @@ index 0000000..ed9c090
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_MTD=y
+CONFIG_SYS_PROMPT="Cel-boot=> "
diff --git a/drivers/net/aspeednic.c b/drivers/net/aspeednic.c
index 473aee2..8ea8e08 100644
--- a/drivers/net/aspeednic.c
+++ b/drivers/net/aspeednic.c
@@ -1114,6 +1114,9 @@ static void aspeednic_probe_phy(struct eth_device *dev)

/* Check if the PHY is up to snuff..., max phy addr is 0x1f */
for (phy_addr = 0; phy_addr <= 0x1f; phy_addr++) {
+#ifdef CONFIG_CEL_AS58XX_CL
+ phy_addr = CONFIG_BCM54616S_PHY_ADDR;
+#endif
phy_id = phy_read_register(dev, MII_PHYSID1, phy_addr);
/*
* When it is unable to found PHY,
@@ -1139,6 +1142,19 @@ static int aspeednic_init(struct eth_device* dev, bd_t* bis)

aspeednic_write_hwaddr(dev);

+#ifdef CONFIG_CEL_AS58XX_CL
+ /*configure Gbe PHY 100M auto-nego enable*/
+ phy_write_register(dev, 0x04, 0x0e, 0x01e1);
+ phy_write_register(dev, 0x1c, 0x0e, 0x8804);
+ phy_write_register(dev, 0x1c, 0x0e, 0xb4e3);
+ phy_write_register(dev, 0x1c, 0x0e, 0xb864);
+
+ phy_write_register(dev, 0x04, 0x0f, 0x01e1);
+ phy_write_register(dev, 0x1c, 0x0f, 0x8804);
+ phy_write_register(dev, 0x1c, 0x0f, 0xb4e3);
+ phy_write_register(dev, 0x1c, 0x0f, 0xb864);
+#endif
+
for (i = 0; i < NUM_RX_DESC; i++) {
rx_ring[i].status = cpu_to_le32(RXPKT_RDY);
rx_ring[i].buf = (u32)(&rx_buffer[i]);
diff --git a/include/configs/cel_as58xx-cl.h b/include/configs/cel_as58xx-cl.h
new file mode 100644
index 0000000..f4ee99c
index 0000000..3f21d67
--- /dev/null
+++ b/include/configs/cel_as58xx-cl.h
@@ -0,0 +1,252 @@
@@ -0,0 +1,261 @@
+/**
+ * (C) Copyright 2018, Celestica Inc.
+ *
Expand All @@ -175,15 +210,15 @@ index 0000000..f4ee99c
+
+#define CONFIG_SYS_LONGHELP
+
+#define CONFIG_BOOTARGS "debug console=ttyS3,9600n8 root=/dev/ram rw"
+#define CONFIG_BOOTARGS "debug console=ttyS0,9600n8 root=/dev/ram rw"
+#define CONFIG_BOOTFILE "flash-cel_as58xx-cl"
+
+/*
+ * Serial configuration
+ */
+#define CONFIG_SYS_NS16550_COM3 AST_UART3_BASE
+#define CONFIG_CONS_INDEX 3
+#define CONFIG_ASPEED_COM AST_UART3_BASE
+#define CONFIG_SYS_NS16550_COM1 AST_UART0_BASE
+#define CONFIG_CONS_INDEX 1
+#define CONFIG_ASPEED_COM AST_UART0_BASE
+#define CONFIG_BAUDRATE 9600
+
+/*
Expand All @@ -196,15 +231,24 @@ index 0000000..f4ee99c
+#define CONFIG_ASPEED_UART3_ENABLE
+#define CONFIG_ASPEED_UART4_ENABLE
+#define CONFIG_ASPEED_UART5_MAP_IO6
+#define CONFIG_DRAM_UART_TO_UART3
+
+/*
+ * NIC configuration
+ */
+#define CONFIG_BCM54616S_PHY_ADDR 0xd
+#define CONFIG_MAC2_ENABLE
+#define CONFIG_MAC1_PHY_SETTING 0
+#define CONFIG_MAC2_PHY_SETTING 0
+#define CONFIG_ASPEED_MAC_NUMBER 2
+#define CONFIG_ASPEED_MAC_CONFIG 2
+#define _PHY_SETTING_CONCAT(mac) CONFIG_MAC##mac##_PHY_SETTING
+#define _GET_MAC_PHY_SETTING(mac) _PHY_SETTING_CONCAT(mac)
+#define CONFIG_ASPEED_MAC_PHY_SETTING \
+ _GET_MAC_PHY_SETTING(CONFIG_ASPEED_MAC_CONFIG)
+#define CONFIG_MAC_INTERFACE_CLOCK_DELAY 0x2255
+#define CONFIG_RANDOM_MACADDR
+
+
+/*
+ * Watchdog configuration
Expand Down
2 changes: 1 addition & 1 deletion meta-aspeed/recipes-bsp/u-boot/u-boot-fw-utils_2016.07.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DEPENDS = "mtd-utils"
SRCBRANCH = "openbmc/helium/v2016.07"
SRCREV = "AUTOINC"

SRC_URI = "git://github.com/theopolis/u-boot.git;branch=${SRCBRANCH};protocol=https \
SRC_URI = "git://github.com/SW-CSA/u-boot.git;branch=${SRCBRANCH};protocol=https \
file://fw_env.config \
file://0001-Support-Celestica-Questone2-and-AS58XX-CL-projects.patch \
"
Expand Down
2 changes: 1 addition & 1 deletion meta-aspeed/recipes-bsp/u-boot/u-boot-mkimage_2016.07.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DEPENDS = "openssl"
SRCBRANCH = "openbmc/helium/v2016.07"
SRCREV = "AUTOINC"

SRC_URI = "git://github.com/theopolis/u-boot.git;branch=${SRCBRANCH};protocol=https \
SRC_URI = "git://github.com/SW-CSA/u-boot.git;branch=${SRCBRANCH};protocol=https \
file://fw_env.config \
"

Expand Down
2 changes: 1 addition & 1 deletion meta-aspeed/recipes-bsp/u-boot/u-boot_2016.07.bb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DEPENDS += "dtc-native bc-native"
SRCBRANCH = "openbmc/helium/v2016.07"
SRCREV = "AUTOINC"

SRC_URI = "git://github.com/theopolis/u-boot.git;branch=${SRCBRANCH};protocol=https \
SRC_URI = "git://github.com/SW-CSA/u-boot.git;branch=${SRCBRANCH};protocol=https \
file://fw_env.config \
file://fw_env.config.full \
file://0001-Support-Celestica-Questone2-and-AS58XX-CL-projects.patch \
Expand Down
2 changes: 1 addition & 1 deletion meta-aspeed/recipes-kernel/linux/linux-aspeed_4.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SRCBRANCH = "openbmc/helium/4.1"
SRCREV = "AUTOINC"

SRC_URI = "git://github.com/theopolis/linux.git;branch=${SRCBRANCH};protocol=https \
SRC_URI = "git://github.com/SW-CSA/linux.git;branch=${SRCBRANCH};protocol=https \
"

LINUX_VERSION ?= "4.1.51"
Expand Down
1 change: 1 addition & 0 deletions meta-celestica/meta-as58xx-cl/conf/bblayers.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ BBLAYERS ?= " \
##OEROOT##/../../../meta-facebook \
##OEROOT##/../../../meta-facebook/meta-python3 \
##OEROOT##/../../../meta-celestica \
##OEROOT##/../../../meta-celestica/meta-python3 \
##OEROOT##/../../../meta-celestica/meta-as58xx-cl \
"

Expand Down
1 change: 1 addition & 0 deletions meta-celestica/meta-as58xx-cl/conf/local.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ MACHINE ??= "as58xx-cl"
# OpenBMC distro settings
DISTRO ?= "openbmc-fb"

DEFAULT_TIMEZONE = "Asia/Shanghai"
1 change: 1 addition & 0 deletions meta-celestica/meta-as58xx-cl/conf/templateconf.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/zmzhan/workstations/openbmc/AS58xx-CL/SW_CSA/2018_09_21/openbmc/meta-celestica/meta-as58xx-cl/conf//conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
CONFIG_SH_MATH_SUPPORT_64=y
CONFIG_DEVMEM=y
CONFIG_LSUSB=y
CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS=y
CONFIG_RX=y
CONFIG_FLASHCP=y
CONFIG_FLASH_LOCK=y
CONFIG_FLASH_UNLOCK=y
CONFIG_FLASH_ERASEALL=y
CONFIG_TRACEROUTE6=y
CONFIG_VCONFIG=y
# we use the standalone ip util
CONFIG_IP=n
# use dhclient, as udhcpc will flush all v6 link local addresses during renew
CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP=y
CONFIG_UDHCPD=n
CONFIG_UDHCPC=n
CONFIG_UDHCPC6=n

# runit
CONFIG_RUNSV=y
CONFIG_RUNSVDIR=y
CONFIG_SV=y
CONFIG_SV_DEFAULT_SERVICE_DIR="/etc/sv"
CONFIG_SVLOGD=y
CONFIG_CHPST=y
CONFIG_SETUIDGID=y
CONFIG_ENVUIDGID=y
CONFIG_ENVDIR=y
CONFIG_SOFTLIMIT=y

#crond
CONFIG_CROND=y
CONFIG_CRONTAB=y

# cov's favorites
CONFIG_BASE64=y
CONFIG_CKSUM=y
CONFIG_SHA512=y
CONFIG_TAC=y
CONFIG_CHPASSWD=y
CONFIG_NC_SERVER=y
CONFIG_PKILL=y
CONFIG_FEATURE_PREFER_IPV4_ADDRESS=n
CONFIG_TIMEOUT=y

CONFIG_WATCHDOG=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += " \
file://busybox.cfg \
"
13 changes: 11 additions & 2 deletions meta-celestica/meta-as58xx-cl/recipes-core/fan-ctrl/fan-ctrl/Makefile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,21 @@
# 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301 USA

all: fand
all: fand fand_v2 fand32_v2 fand_phalanx

fand: fand.cpp watchdog.cpp
$(CXX) $(CXXFLAGS) -pthread -o $@ $^ $(LDFLAGS)

fand_v2: fand_v2.cpp watchdog.cpp
$(CXX) $(CXXFLAGS) -pthread -o $@ $^ $(LDFLAGS)

fand32_v2: fand32_v2.cpp watchdog.cpp
$(CXX) $(CXXFLAGS) -pthread -o $@ $^ $(LDFLAGS)

fand_phalanx: fand_phalanx.cpp watchdog.cpp
$(CXX) $(CXXFLAGS) -pthread -o $@ $^ $(LDFLAGS)

.PHONY: clean

clean:
rm -rf *.o fand
rm -rf *.o fand fand_v2 fand32_v2 fand_phalanx
Loading