教育和學習︰ Up《grade》【一】

將要選擇什麼打造 PIXEL PC 呢?幾經考慮看上了類似樹莓派 3B 的 Up-board ︰

Welcome to the UP Board wiki!

The purpose of these wiki pages is to collect and share all useful technical information related to UP Board hardware, software, and its usage.

Feel free to contribute content and corrections which may be useful to others!

 

依著 Up Ubuntu 安裝步驟,先下載 Raspbian 映像檔。成功開機後就卡在

sudo add-apt-repository ppa:ubilinux/up

上也。即使手動加入 repo

pi@raspberry:/etc/apt/sources.list.d more up-ppa.list  deb http://ppa.launchpad.net/ubilinux/up/ubuntu xenial main contrib non-free pi@raspberry:/etc/apt/sources.list.d 

 

,或因 Ubuntu 套件相容性問題,無法安裝 Up-board kernel 哩︰

pi@raspberry:~ sudo apt-get install linux-image-generic-hwe-16.04-upboard 正在讀取套件清單... 完成 正在重建相依關係           正在讀取狀態資料... 完成 有些套件無法安裝。這可能意謂著您的要求難以解決,或是若您使用的是 unstable 發行版,可能有些必要的套件尚未建立,或是被移出 Incoming 了。 以下的資訊或許有助於解決當前的情況:  下列的套件有未滿足的相依關係:  linux-image-generic-hwe-16.04-upboard:amd64 : 相依關係: linux-firmware:amd64 但它卻無法安裝                                                推薦: thermald:amd64 但它卻將不會被安裝 E: 無法修正問題,您保留 (hold) 了損毀的套件。 pi@raspberry:~

 

只好鼻子摸著嘗試自行編譯的呦︰

Compile ubilinux kernel from source

How to compile a custom kernel for UP / UP Squared / Up Core

Build Environment Setup

The following instruction are base on Ubuntu 16.04 host gcc-4.9 is needed for the compilation of the upboard kernel

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install -y git build-essential kernel-package libncurses5-dev libssl-dev gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

Getting the source

git clone https://github.com/emutex/ubilinux-kernel.git -b upboard-4.9 linux-upboard
to get only the latest commit (faster):
git clone --depth=1 https://github.com/emutex/ubilinux-kernel.git -b upboard-4.9 linux-upboard

 

偏偏 Debian Stretch 預設程式庫中沒有 kernel-package 套件,還得在 /etc/apt/sources.list 裡添上

deb http://ftp.debian.org/debian stretch-backports main

repo 呀!

更別說一時哪尋 gcc-4.9 g++-4.9 耶?且用新版

gcc version 6.3.0 20170516 (Debian 6.3.0-18)

,死馬當活馬醫吧!?

近乎三小時的等待,終於產生了 □□.deb 檔︰

pi@raspberry:~ ls Desktop                                                         linux-upboard Documents                                                       Music Downloads                                                       oldconffiles linux-4.9.45-upboard_4.9.45-upboard-1_amd64.changes             Pictures linux-firmware-image-4.9.45-upboard_4.9.45-upboard-1_amd64.deb  Public linux-headers-4.9.45-upboard_4.9.45-upboard-1_amd64.deb         python_games linux-image-4.9.45-upboard_4.9.45-upboard-1_amd64.deb           Templates linux-libc-dev_4.9.45-upboard-1_amd64.deb                       Videos pi@raspberry:~

 

好佳在

sudo dpkg -i *.deb

成功乎?!

※ 有圖為證