<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Chris Liou on Medium]]></title>
        <description><![CDATA[Stories by Chris Liou on Medium]]></description>
        <link>https://medium.com/@lioukiki1?source=rss-547a72c246e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kYmMnEfSk4trvPg_zZTtWQ.jpeg</url>
            <title>Stories by Chris Liou on Medium</title>
            <link>https://medium.com/@lioukiki1?source=rss-547a72c246e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 12:01:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lioukiki1/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BMC是什麼? 能吃嗎?]]></title>
            <link>https://medium.com/@lioukiki1/bmc%E6%98%AF%E4%BB%80%E9%BA%BC-%E8%83%BD%E5%90%83%E5%97%8E-bee457ea5c37?source=rss-547a72c246e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/bee457ea5c37</guid>
            <category><![CDATA[bmc]]></category>
            <category><![CDATA[c]]></category>
            <category><![CDATA[韌體]]></category>
            <category><![CDATA[ipmi]]></category>
            <dc:creator><![CDATA[Chris Liou]]></dc:creator>
            <pubDate>Thu, 31 May 2018 14:43:42 GMT</pubDate>
            <atom:updated>2018-05-31T14:43:42.160Z</atom:updated>
            <content:encoded><![CDATA[<p>BMC是什麼? <br>踏進這產業兩年多，每次跟同學談到在做什麼...我回答完就會聽到的問句<br>每次跟同學談論到工作....我都只能談他們的工作內容...<br>大家比較瞭解的是Web front-end, Java/C# software, Android/IOS App…etc.</p><p>似乎沒什麼人知道BMC是什麼 ( 還是其實是我們太無知</p><p>要進入這個世界，首先你得先學會兩串英文</p><pre>BMC  ( Baseboard Management Controller )</pre><pre>IPMI ( Intelligent Platform Management Interface )</pre><p><strong>BMC ( Baseboard Management Controller )</strong></p><p>BMC是在Server Mother board上一顆可以獨立運作的SoC (System on Chip)<br>系統的架構大概是長這樣:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*Hbz-gAFmyqgPn794SOLE4Q.jpeg" /><figcaption>圖片來源 Aspeed <a href="https://www.aspeedtech.com/products.php?fPath=20&amp;rId=440">官網</a> (關於這解析度...請原諒我，官網就是放這張</figcaption></figure><p>上圖左邊就是BMC Chip(目前常用的有Ast2400, Ast2500, Pilot4…etc.)<br>是ARM architecture的Chip，內部使用的Firmware主要是使用Embedded Linux為基礎，在上面開發各式各樣的功能<br>對外是透過I2C/IPMB, LPC, Uart/COM port, Lan 跟其他設備或是外界溝通</p><blockquote><em>再來是最重要的部分拉!<br></em><strong><em>既然是韌體，寫Code的語言當然主要是C，但是其實裡面做很多事情，因為有一些介面要跟外界溝通，像是Web, iKVM，所以實際上還會需要用到一點Web, Java的程式<br>還有些地方用到最近幾年因為machine learning變紅的 Lua，但實際上我也還沒研究這一塊，不知道是拿來做什麼</em></strong></blockquote><p><em>我們主要做的事情是什麼呢?</em></p><p>先看名子，我們叫Management Controller，當然主要就是做管理的事情<br>像是Server上的風扇轉速讀取/控制、各地溫度讀取與啟動保護機制、提供介面讓使用者可以完全掌控這台Server的狀況</p><pre>常用的方式整理如下:</pre><pre>  <strong>I2C/IPMB：</strong>跟其他Chip溝通使用，像是下command給Hardware monitor取得溫度資料<br>  <strong>Uart/COM port：</strong>主要用於跟MCU, Expander溝通<br>  <strong>Lan：</strong>主要是讓使用者可以透過這個介面來存取BMC的資料</pre><pre><strong>PS:</strong>上述用法並沒有一定，例如有些MCU其實可以透過I2C存取</pre><p><strong>IPMI ( Intelligent Platform Management Interface )</strong></p><p>這不是硬體設備，只是BMC上最常用也最廣泛應用的軟體溝通介面!<br>而這個介面有一個有力(利)的乾爹在撐腰, Intel<br>整本Spec.可以在Intel下載到(<a href="https://www.intel.com.tw/content/www/tw/zh/servers/ipmi/ipmi-second-gen-interface-spec-v2-rev1-1.html">IPMI Specification, V2.0, Rev. 1.1: Document</a>)</p><p>這個軟體的Interface可以做什麼呢?</p><p>目前為止，只要是使用BMC都離不開IPMI <br>雖然說現在市面上還有另一個正在研發階段的RedFish，目標是要完全取代IPMI<br>但目前路還很長...甚至有些公司做出來是把RedFish架構在原有的IPMI之上<br>所以還是脫離不了IPMI!!</p><p>通常都是如何使用IPMI呢?</p><p>通常都是使用一個Open source tool &quot;IPMI TOOL&quot; <br>我們可以在遠端透過網路對BMC下command，也可以在本機端<br>根據上述提到的IPMI Spec.裡面有上百道Standard的Command可以使用<br>如果在加上各個公司自己開發的OEM Command就更多了!</p><pre>例如: <br>要對系統的power做控制，可以下 <br>ipmitool power on / off / status<br>or<br>ipmitool -I lan -H [BMC IP] -U [User account] -P [User password] power on / off / status</pre><p>就先寫到這邊...<br>更多細節之後會在別篇介紹，希望對想要進入這個世界的工程師有幫助 <br>(有人要進來嗎!? 我們公司韌體部門缺人...快來當我同事拜託</p><pre>參考資料:<br><a href="http://kezeodsnx.pixnet.net/blog/post/33963900-ipmi%E7%B0%A1%E4%BB%8B">IPMI簡介</a><br><a href="https://en.wikipedia.org/wiki/Intelligent_Platform_Management_Interface">IPMI Wiki</a><br><a href="http://ming10633.blogspot.com/2012/07/baseboard-management-controller-bmc.html">BMC簡介</a><br><a href="http://benjr.tw/11240">BMC/IPMI</a></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bee457ea5c37" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>