樹莓派CLI連bbs用映像檔與製作法-gentoo - Linux
By Olivia
at 2021-04-17T09:40
at 2021-04-17T09:40
Table of Contents
前些時候 分享了新版 在x86_64上用的小型多重開機片 iso與loopfile
然後也想在樹莓派上做一個
幾番試驗發現linuxrc內的寫法與x86_64不同
if [ ]; then 改成
if [ ] ;
then 就可以了
linuxrc存於initrd8_5_10_11內
再來正好看前幾篇提到復古風 lynx, 看圖的, media player...
還有想說我的樹莓派3B+ RAM少 但是上PTT比pc省電
所以google了文字模式console的中文顯示與輸入
必需安裝fbterm, fcitx, fcitx-fbterm 與要用的輸入法 (參考blog大樹爸爸)
因為要用到locale 猜想不能再靠busybox 一夫當關了
用gentoo + 正常的glibc與一些少量相依packages 做出來有500MiB
壓成squashfs有100MiB
下載url, 同一行
https://drive.google.com/file/d/1HUsxtchABwmt-WFELYudsrvevZvaY_Cp/view?
usp=drivesdk
安裝方式Installation:
1. copy kernel8_5_10_11 and initrd8_5_10_11 to Boot_Partition( /dev/mmcblk0p1 )
2. copy cmdline.txt to Boot_Partition( /dev/mmcblk0p1 )
and change
ovl_dev0=
ovl_mnt0=
ovl_loopfile0=
to fit the real position where the file fbterm_a64_9.sqfs stored.
3. change or add these 2 lines to your Boot_Partition/config.txt
kernel=kernel8_5_10_11
initramfs initrd8_5_10_11
使用Usage:
1. boot and login as root or demo
user/passwd: root/root demo/rpi64
2. run /opt/bin/fbterm.sh
3. LeftCTRL-SPACE to toggle fcitx on/off.
4. LeftCTRL-LeftShift to swith input methods (chewing/xiamy) when fcitx is on.
用Gentoo製作過程How I Build using gentoo:
1. prepare a new ext4 partition mounted at /somewhere
2. ROOT=/somewhere emerge -a some_packages
3. some_packages are choosed from the list below ( package name with a leading
number is required)
000_baselayout
00_sys-process_procps
01_openrc
02_udev-init-scripts
03_e2fsprogs
04_openssh
05_coreutils
06_sys-apps_kbd
07_sys-apps_net-tools
08_bash
09_acct-user_messagebus
10_fbterm
11_fcitx
12_fcitx-fbterm (get it from sourceforge and install manually)
fcitx-chewing
wpa_supplicant ( if using wifi )
bluez ( if using bluethooth keyboard )
busybox
vim
bc
sys-apps_portage
gentoolkit
@system (superset of system packages)
應該可以用到X86_64版本上
ps:rpi3-bluetooth rpi3-ondemaind come from Sakaki's genpi64.img .
--
然後也想在樹莓派上做一個
幾番試驗發現linuxrc內的寫法與x86_64不同
if [ ]; then 改成
if [ ] ;
then 就可以了
linuxrc存於initrd8_5_10_11內
再來正好看前幾篇提到復古風 lynx, 看圖的, media player...
還有想說我的樹莓派3B+ RAM少 但是上PTT比pc省電
所以google了文字模式console的中文顯示與輸入
必需安裝fbterm, fcitx, fcitx-fbterm 與要用的輸入法 (參考blog大樹爸爸)
因為要用到locale 猜想不能再靠busybox 一夫當關了
用gentoo + 正常的glibc與一些少量相依packages 做出來有500MiB
壓成squashfs有100MiB
下載url, 同一行
https://drive.google.com/file/d/1HUsxtchABwmt-WFELYudsrvevZvaY_Cp/view?
usp=drivesdk
安裝方式Installation:
1. copy kernel8_5_10_11 and initrd8_5_10_11 to Boot_Partition( /dev/mmcblk0p1 )
2. copy cmdline.txt to Boot_Partition( /dev/mmcblk0p1 )
and change
ovl_dev0=
ovl_mnt0=
ovl_loopfile0=
to fit the real position where the file fbterm_a64_9.sqfs stored.
3. change or add these 2 lines to your Boot_Partition/config.txt
kernel=kernel8_5_10_11
initramfs initrd8_5_10_11
使用Usage:
1. boot and login as root or demo
user/passwd: root/root demo/rpi64
2. run /opt/bin/fbterm.sh
3. LeftCTRL-SPACE to toggle fcitx on/off.
4. LeftCTRL-LeftShift to swith input methods (chewing/xiamy) when fcitx is on.
用Gentoo製作過程How I Build using gentoo:
1. prepare a new ext4 partition mounted at /somewhere
2. ROOT=/somewhere emerge -a some_packages
3. some_packages are choosed from the list below ( package name with a leading
number is required)
000_baselayout
00_sys-process_procps
01_openrc
02_udev-init-scripts
03_e2fsprogs
04_openssh
05_coreutils
06_sys-apps_kbd
07_sys-apps_net-tools
08_bash
09_acct-user_messagebus
10_fbterm
11_fcitx
12_fcitx-fbterm (get it from sourceforge and install manually)
fcitx-chewing
wpa_supplicant ( if using wifi )
bluez ( if using bluethooth keyboard )
busybox
vim
bc
sys-apps_portage
gentoolkit
@system (superset of system packages)
應該可以用到X86_64版本上
ps:rpi3-bluetooth rpi3-ondemaind come from Sakaki's genpi64.img .
--
Tags:
Linux
All Comments
By Linda
at 2021-04-21T04:16
at 2021-04-21T04:16
By Edith
at 2021-04-24T22:51
at 2021-04-24T22:51
By Valerie
at 2021-04-28T17:27
at 2021-04-28T17:27
By Hazel
at 2021-05-02T12:02
at 2021-05-02T12:02
Related Posts
PVE 硬碟直通 NFS 卸載
By Gilbert
at 2021-04-16T19:01
at 2021-04-16T19:01
linux裝驅動程式的問題
By Mary
at 2021-04-13T21:11
at 2021-04-13T21:11
postfix ssl憑證設定請教
By Yedda
at 2021-04-13T10:46
at 2021-04-13T10:46
2.4G 無線滑鼠鍵盤憑甚麼關我筆電?
By Callum
at 2021-04-10T01:39
at 2021-04-10T01:39
想問user權限問題
By Emma
at 2021-04-09T20:26
at 2021-04-09T20:26