跳轉到內容

Libreboot/安裝/ThinkPad X60 和 T60

來自華夏公益教科書

備份原始 BIOS

[編輯 | 編輯原始碼]

如果您選擇備份,請單擊右側的[展開],並按照說明操作。

  1. libreboot_bin/ 資料夾中,進入flashrom/ 資料夾。
    cd flashrom 
  2. 執行這兩個命令將 BIOS 備份到factory.bin (不要驚慌,還沒有安裝任何東西)
    sudo ./flashrom_lenovobios_sst -p internal -r factory.bin
sudo ./flashrom_lenovobios_macronix -p internal -r factory.bin 
  1. 如果在flashrom/ 資料夾中建立了factory.bin 檔案,則已成功備份了聯想 BIOS。 如果沒有,請重試這些命令。 將此轉儲複製到安全的位置。
  2. 返回libreboot_bin/ 資料夾。
    cd .. 

Libreboot 首次刷寫

[編輯 | 編輯原始碼]

如果您是第一次刷寫 Libreboot,並且是在執行聯想 BIOS 的未修改 ThinkPad 上,則需要按照此特殊過程進行操作。

  1. 執行聯想 BIOS 的第一個刷寫指令碼
    sudo ./lenovobios_firstflash bin/YOURBOARD/YOURROM
  2. 等待該過程完成。 期待在刷寫過程中看到“嚴重錯誤”,但不要驚慌; 繼續執行下一步以檢查刷寫是否已正確執行。
  3. 如果成功啟用bucts 1,則會顯示下面的行。
    Updated BUC.TS=1 - 64kb address ranges at 0xFFFE0000 and 0xFFFF0000 are swapped.
  1. 如果flashrom 正確安裝了 Libreboot,則會顯示以下“錯誤”。 輸出必須非常相似(flashrom 的更高版本可能有細微的差異)。
    Reading old flash chip contents... done.
    Erasing and writing flash chip... spi_block_erase_20 failed during command execution at address 0x0
    Reading current flash chip contents... done. spi_block_erase_52 failed during command execution at address 0x0
    Reading current flash chip contents... done. Transaction error!
    spi_block_erase_d8 failed during command execution at address 0x1f0000
    Reading current flash chip contents... done. spi_chip_erase_60 failed during command execution
    Reading current flash chip contents... done. spi_chip_erase_c7 failed during command execution
    FAILED!
    Uh oh. Erase/write failed. Checking if anything changed.
    Your flash chip is in an unknown state.
  1. 如果“錯誤”與上面的行非常接近,則關閉筆記型電腦(不要重啟)。
  2. 等待幾秒鐘,然後啟動。 Libreboot 將啟動。
  3. 如果正常選單選項不起作用,請使用搜尋本地儲存上的 GRUB 配置 選項。
  4. 啟動到 Linux 後,繼續執行Libreboot 第二次刷寫

啟用指點杆

[編輯 | 編輯原始碼]

在極少數的 X60 變體中,指點杆滑鼠可能無法開箱即用。 不用擔心,只需使用 Libreboot 軟體包中的nvramtool 來啟用它。

  1. 啟動並登入到 Linux。(您可能需要使用文字模式,找到鍵盤快捷鍵)
  2. 開啟一個終端(以某種方式... 無法使用滑鼠。 希望您安裝了 Yakuake!)
  3. 導航到libreboot_bin/nvramtool 資料夾。
  4. 使用make 構建nvramtool
    make 
  5. 使用nvramtool 啟用指點杆滑鼠。
    sudo ./nvramtool -w trackpoint=Enable 
  6. 重啟筆記型電腦(使用sudo reboot),指點杆將被啟用。 如果它仍然無法使用,請嘗試以下命令
    sudo ./nvramtool -y ../../src/mainboard/lenovo/x60/cmos.layout -w trackpoint=Enable 

Libreboot 第二次刷寫

[編輯 | 編輯原始碼]

現在 Libreboot 已安裝並正在執行,必須再次刷寫它才能完全刪除聯想 BIOS。

  1. 開啟一個終端並導航到libreboot_bin 目錄。
  2. 執行以下命令以第二次刷寫 Libreboot。
    sudo ./lenovobios_secondflash /path/to/libreboot.rom
  1. 如果將bucts 重新設定為0,則會顯示以下行。 如果未將其設定為 0,請重新執行指令碼。
    Updated BUC.TS=0 - 128kb address range 0xFFFE0000-0xFFFFFFFF is untranslated 
  2. 以下也應顯示,沒有任何錯誤
    Verifying flash... VERIFIED. 
  3. 再次關閉,等待幾秒鐘,然後啟動。 Libreboot 已成功安裝。

更換無線網絡卡

[編輯 | 編輯原始碼]

如果您計劃使用 Trisquel 或其他 FSF 批准的 GNU/Linux 發行版,則必須將 Intel mPCI 無線網絡卡替換為Atheros Wireless-N mPCI 網絡卡(10-15 美元)。

英特爾網絡卡需要專有 blob,會使掌託非常熱,並且只支援速度較慢的 Wireless-G; 所以升級非常值得。

  1. 按照X60/X60s 的指南 或 HMM 的X60 平板電腦指南來移除掌託。
  2. 移除 Intel 3945bgn WiFi 網絡卡。
  3. 用 Atheros Wireless-N MiniPCI 網絡卡替換它。

(需要更多資訊和照片)

更新 Libreboot 或安裝自定義 ROM

[編輯 | 編輯原始碼]

將來,如果您想在 X60 上更新 Libreboot(或恢復出廠 BIOS),請按照以下過程進行操作。

  1. 下載並解壓縮最新的Libreboot 二進位制發行版
  2. 開啟一個終端,並導航到libreboot_bin 目錄。
  3. 執行以下命令以刷寫您選擇的 rom
    sudo ./flash /path/to/libreboot.rom
  1. 以下應顯示,沒有任何錯誤
    Verifying flash... VERIFIED. 
  2. 再次關閉,等待幾秒鐘,然後啟動。 Libreboot 已成功更新。

華夏公益教科書