blob: ec970fc50ae8d4efff8f0b351b62d739c9d632fc [file] [log] [blame]
Santosh Kumaraff594a2017-12-14 18:56:26 +05301#################Steps for Building Redfish service ##################
2
3 1. Setup ONL build environment
4 > git clone https://github.com/Lewis-Kang/OpenNetworkLinux.git -b kernel_3.7.10
5 > cd OpenNetworkLinux
6
7 2. Copy asfvolt16_redfish_service folder to OpenNetworkLinux directory
8 > cp -a asfvolt16_redfish_service OpenNetworkLinux/asfvolt16-driver
9
10 3. Enter into docker environment
11 > docker/tools/onlbuilder -8
12
13 4. Install the required packages for building Redfish service package using install_dependencies.sh script.
14 > sh asfvolt16-driver/asfvolt16_redfish_service/scripts/install_dependencies.sh
15
16 5. Execute build script
17 This will download IntelRSD and accton patch provided by Nick from the google drive and apply accton and calsoft patch and creates the binaries. For now rsd_org.tar.gz and the patch file is located in google drive. In future we may have to move this to github.
18 > sh asfvolt16-driver/asfvolt16_redfish_service/scripts/build_psme_prepare.sh
19
20 6. Packages will be created "$ONL_TOPDIR/asfvolt16-driver/asfvolt16_redfish_service/rsd_org/asfvolt16_rf_packages" and can be copied to OLT.
21 > ls "$ONL_TOPDIR/asfvolt16-driver/asfvolt16_redfish_service/rsd_org/asfvolt16_rf_packages"
22
23
24#################Steps for installing and running Redfish service in ASFVOLT16 OLT##################
25
260. Connect console cable , network cable to olt console port and management port.
27
281. Instll NOS image by ONIE
29
302. Use root/onl to login to olt ONL linux shell environment.
31
323. Config manage interface. (Depend on your network environment)
33 > ifconfig ma1 192.168.1.99
34 > route add default gw 192.168.1.2
35
364. use "scp" commond to upload *.deb image to OLT (Depend on your network environment,you can use your own method to upload *.deb package in ONL)
37
385. Install *.deb package in OLT
39 > sudo dpkg -i *.deb
40 > Please press enter to pass this prompt "Please select your platform (BDC-A or BDC-R):" appear.
41 > Please make sure that libgnutls-deb0-28 package is installed.
42 ls -lah /usr/lib/x86_64-linux-gnu/libgnutls-deb0.so.28.41.7
43 > update-rc.d psme defaults " To start psme at boot time"
44 > reboot
45
466. startup psme service manually
47 > service psme start
48
497. Check running daemon
50 > ps auxw
51
52 You can see following application is running.
53
54 root 15978 1.6 0.1 1005748 20736 ? Sl 00:05 0:13 /usr/local/bin/psme-rest-server /etc/rmm/psme.conf
55 root 16036 0.3 0.0 1030696 13280 ? Sl 00:05 0:03 /usr/local/bin/psme-chassis /etc/rmm/platform_info.conf
56
578. Please refer to "asfvolt16_redfish_uri.doc" document and use curl command for testing the Redfish service
58 Eg: curl -X GET https://192.168.122.5:8888/redfish/v1/Systems/1 -k
59
609. Uninstall *.deb before you install new *.deb
61 > sh remove.sh
62 It will stop psme service and remove *.deb