BananaPi M1(BPi)灌新版的Armbian少了Script.bin檔案來客製硬體設定

趁現在終於找到沒人討論的細節,自己歸納找到的資料留存紀錄。
我的BPi現在Kernel版本是Linux bananapi 5.15.48-sunxi,OS安裝Ubuntu 20.04.5 LTS (Focal Fossa)版本的Armbian 22.05.3 Focal。
因為最近搞到一個從行車紀錄器拆下來的3吋LCD LVDS 40pin的TFT面板,看起來能直接把排線插到BPi M1的DSI顯示插槽。
但是要輸出畫面,一定要把設定啟動才會顯示,偏偏找不到/boot/script.bin這個關鍵檔案。

能確定的,要安裝sunxi-tools這個套件,才能把U-Boot系統的.bin互轉.fex。
方式:
sudo apt-get install libusb-1.0-0-dev pkg-config
git clone https://github.com/linux-sunxi/sunxi-tools/
cd sunxi-tools
make
(或是make all CROSS_COMPILE=arm-linux-gnueabihf- 、或 make all)
完成編譯後,就會產出可以執行的檔案在這個目錄下。

接下來,要去抓 LeMaker 預設做好的Script檔案。
git clone https://github.com/LeMaker/fex_configuration.git
cd fex_configuration
如果要直接用,就是把./fex_configuration/bin目錄下的適合的檔案複製到/boot/,檔名改成script.bin後重開機亦可。
像我的需求,則是到./fex_configuration/fex目錄下,提取需要的檔案,修改內容相關資料,存檔。
在sunxi-tools編譯好的執行檔,指令:fex2bin BananaPi.fex script.bin,轉檔放到/boot/後重開機亦可。

另外記錄我的/boot/armbianEnv.txt,關於顯示的部分修改:
#disp_mode=1920x1080p60
disp_mode=1280x720p60
disp_mem_reserves=on

參考文章:
https://osi.linux-sunxi.cn/orangepi/kai-shi-ru-keng/scriptbinde-pei-zhi-yu-zhuan-huan.html
https://linux-sunxi.org/Fex_Guide#.5Bdisp_init.5D
https://github.com/cubieplayer/Cubian/wiki/VGA-output
https://wiki.gentoo.org/wiki/Banana_Pi_the_Gentoo_Way#Script.bin
https://sites.google.com/site/cubiedocs/documents/armbian-vga-output-mode
https://lirobo.blogspot.com/2014/10/bbb-u-boot-201510.html

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

請輸入下列驗證碼計算後阿拉伯數字 (Translate it, if not Taiwanese to post reply) *