summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade
AgeCommit message (Collapse)AuthorFilesLines
2021-02-09meta-ampere: Set BMC MAC Address from FRU inventoryThang Q. Nguyen1-0/+1
Support to get BMC MAC address from FRU over the FRU inventory information (/xyz/openbmc_project/inventory/system/chassis/motherboard) and update to the eth0 Ethernet interface and set the eth1addr u-boot variable. Tested: 1. Boot to u-boot, clear the eth1addr variable, save and reboot. 2. Boot to Linux: - Check if the eth0 interface uses the MAC address in FRU. root@mtjade:~# ip addr show dev eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 70:e2:84:86:76:ba brd ff:ff:ff:ff:ff:ff - Check if the eth1addr u-boot variable uses the MAC address in FRU root@mtjade:~# fw_printenv eth1addr eth1addr=70:E2:84:86:76:BA Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ifb7eefbb17257545d026005f859d37ef562289b7
2021-02-09meta-ampere: mtjade: support FRU inventoryThang Q. Nguyen6-0/+177
Support to parse the Mt.Jade FRU device, map FRU data with inventory information and report FRU content via IPMI. Tested: 1. Run IPMI fru print command: root@mtjade:~# ipmitool fru print FRU Device Description : Builtin FRU Device (ID 0) Chassis Type : Rack Mount Chassis Chassis Serial : A1A1-A000-0000000000123 Board Mfg Date : Fri Feb 5 00:00:00 2021 UTC Board Mfg : WIWYNN Board Product : Mt.Jade Motherboard Board Serial : B8103010002500900019J0LB Board Part Number : B81.03010.0026 Product Manufacturer : WIWYNN Product Name : Mt.Jade Server System Product Part Number : B81.03001.0009 Product Version : EVT2 Product Serial : B810300100050130002DN0SD 2. Check FRU inventory reoirt from REST /xyz/openbmc_project/inventory/system/chassis/motherboard Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I231d5766b2f89a535d850eb437d63a9db84fb846
2021-02-01meta-ampere: mtjade: Add Host firmware update supportThang Q. Nguyen3-0/+139
Enable flash_bios feature and configure to use backend script to flash UEFI firmware via Redfish, WebUI and Rest. Tested: 1. Flash UEFI firmware via WebUI. 2. Flash UEFI firmware via Redfish UpdateService 3. Flash UEFI firmware via Rest interface. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I772e6a409414e374ed01e72e3c69985d0b413cb5
2021-02-01meta-ampere: Support solsshTung Nguyen16-0/+300
Support solssh for Mt.Jade system. It opens these ssh ports: 2200 - CPU console 2201 - SCP 0 concole 2202 - ATF console 2203 - SCP 1 console Tested: - connect to ssh ports - make sure the console are displayed correctly Signed-off-by: Tung Nguyen <tungnguyen@os.amperecomputing.com> Change-Id: Ic0be980f201c0176ca00fd07804c101f404e707a
2021-02-01meta-ampere:mtjade:u-boot: Pass system reset status to kernel via bootargsThang Q. Nguyen2-0/+181
Backport a patch file from meta-yadro/meta-nicole/recipes-bsp/u-boot/ to add the Aspeed reset reason to bootargs so kernel so kernel application can query it. Tested: /proc/cmdline must contain: - resetreason=power after A/C power - resetreason=watchdog after bmc reboot Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I7e75cccfa0fecfa9a66572e02de0f1c8c1d519a1
2021-02-01meta-ampere: mtjade: Enable Redfish support for on-board sensorsThang Q. Nguyen4-0/+115
Map FAN, temperature and voltage sensors with Redfish chassis instance and enables association feature in phosphor-inventory-manager. The bmcweb looks for the sensors associated with a chassis instance in the association list. The list, which is associations.json file in phosphor-inventory-manager, maps the dbus sensor objects to a chassis inventory. Tested: 1. Check power/voltage sensors reported in redfish/v1/Chassis/chassis/Power. 2. Check FANs/thermal sensors reported in redfish/v1/Chassis/chassis/Thermal. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ie62a1c1a4edeaf165f834f7456c26711b4b42701
2021-02-01meta-ampere: mtjade: Add on-board sensorsThang Q. Nguyen13-0/+373
Support for Mt. Jade on-board sensors including fans, battery, PSUs, voltage and temperature sensors. Tested: check sensor reading from WebUI. All on-board sensors are displayed with reasonable values. Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I60abc8ae946ef95c09903ebc5d95d15db6161c1a
2021-02-01meta-ampere: remove Mt.Jade dts patchThang Q. Nguyen2-600/+0
As the Mt.Jade device tree file was picked up to openbmc/linux repository, need to remove the dts patch file to avoid conflict Tested: compile Mt.Jade OpenBMC successfully Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I518888feb64bc2b806cbae113cded4d69135611b
2021-02-01meta-ampere: ipmi: Add device ID configThang Q. Nguyen2-0/+3
Add device ID configuration for IPMI mc info command. Tested: ran command `ipmitool mc info` and got responses Device ID : 32 Device Revision : 1 Firmware Revision : 0.00 IPMI Version : 2.0 Manufacturer ID : 52538 Manufacturer Name : Unknown (0xCD3A) Product ID : 130 (0x0082) Product Name : Unknown (0x82) Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I32a1e8443b0f202cbe2133cb048d66f08e866744
2021-02-01meta-ampere: Support virtual Ethernet over USB deviceThang Q. Nguyen2-0/+10
Implement systemd service to create an Ethernet over USB interface for communication between CPU and BMC. Tested: 1. Check usb0 ethernet interface in BMC console root@mtjade:~# ifconfig usb0 usb0 Link encap:Ethernet HWaddr DA:F7:E9:A3:5A:0C inet addr:192.168.0.10 Bcast:192.168.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:2 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:412 (412.0 B) 2. Check USB Ethernet device on Host Linux $ lsusb | grep Ethernet Bus 001 Device 004: ID 1d6b:0103 Linux Foundation NCM (Ethernet) Gadget Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Icb7c096df426233e8f2ee7318f2a1805f07ab3a7
2021-02-01meta-ampere: u-boot: Disable internal PD resistors for GPIOsThang Q. Nguyen2-0/+46
Configure SCU8C - Multi-function pin control 4 to disable internal pull down resistors for GPIOJ, GPIOG/GPIOAB, GPIOD/GPIOY, GPIOC/GPIOS as external resistors are already installed. Tested: scan I2C4 and check devices on the bus are detected Signed-off-by: Thinh Pham <thinh.pham@amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I5a4b682310b5243830bd9c7a66889b0a52c4770c
2021-02-01meta-ampere:mtjade:u-boot: Enable FANs to run at full speed on resetThang Q. Nguyen2-0/+92
When BMC is reseting, FANs do not run at all. This might cause heating issue in case the Host CPU is in high load. To protect the hardware, it is safe to set FANs run at full speed when BMC is booting. After it boots complete, phosphor-fan service will take control on FANs to make them work at the right speed. This commit adds patch to configure all PWM function pins to input GPIO mode to make FANs run at full speed. Tested: 1. Boot BMC to Linux. 2. Turn on Host by "ipmitool chassis power on" command 3. Reboot BMC and check if FAN speed is maximum at u-boot. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I38f1433a576a1700938347dc89eddacf3fb3bf60
2021-01-30meta-ampere:meta-jade Add skeleton configuationTung Nguyen2-0/+55
Add the Mt.Jade skeleton configuration to support the basic power control Tested: 1. Compile OpenBMC image and boot successfully on Mt.Jade 2. Check basic gpio get/set and the power control action successfully Signed-off-by: Tung Nguyen <tungnguyen@os.amperecomputing.com> Change-Id: Ifc4f5746c3fb7e8d5e30a12cf29dd3f02e5de953
2021-01-30meta-ampere: Add Mt.Jade machineThang Q. Nguyen9-0/+889
Add initial Mt.Jade platform support with minimal configuration so that the code can be compiled and booted on the Mt.Jade platform system. Tested: 1. Compile OpenBMC image for Mt.Jade successfully and can boot on Mt.Jade. 2. Login to console and WebUI successfully. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ib4c2c30be7fc0a13cc66f7eb1c8b9604e9a5292f