インストールそのものは 次のyoutubeの step3からです
です
あ)ubuntu-24.04-desktop-k1-pad-10814-v2.0.1-upgradecard.zip がでました、これで長足の進歩を遂げました
GUI (gnome)の起動風景は
です。
このabemaの動画のときの負荷は
です
DC−ROMA 示唆は
http://120.92.155.32:8082/ui/native/virtOS/k1-107/
から
ubuntu-24.04-desktop-k1-pad-10814-v2.0.1-upgradecard.zipをダウンロードします。
書き込みツールは https://etcher.balena.io/ からのものです。
dpkg -i balena-etcher_1.19.25_amd64.deb
apt --fix-broken install
dpkg -i balena-etcher_1.19.25_amd64.deb
DSD/MMCスロットのある ノートPC(マウスパソコン)でしました
最後に
gdisk して p をしないとうまく マクロSDカードに書き込めなかったです
つまり こんなふうです
# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.10
Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
と 警告出てます
Command (? for help): p
Disk /dev/sda: 30277632 sectors, 14.4 GiB
Model: Flash Reader
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): AE526D82-2B64-4968-8DA5-A3E3F6E78B71
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 62333918
Partitions will be aligned on 256-sector boundaries
Total free space is 49113354 sectors (23.4 GiB)
Number Start (sector) End (sector) Size Code Name
1 256 767 256.0 KiB 8300 fsbl
2 768 895 64.0 KiB 8300 env
3 2048 4095 1024.0 KiB 8300 opensbi
4 4096 8191 2.0 MiB 8300 uboot
5 8192 13221938 6.3 GiB 8300 bootfs
あとは w で終わりです
なお これは arch linux で
Download/balenaEtcher-linux-x64 のフォルダで
balena-etcher
をしただけです
このあと SD カードを DC-ROMA PAD の SD カード スロットに挿入します。
PAD の電源をいれると、自動的にイメージが EMMC に書き込まれます。
まだ microSDカードを スロットにさして しばらく待つと
これでできあがりです
apt update ; apt upgarede したあとは
https://github.com/DC-DeepComputing/DC-ROMA_Pad_II_RV-P1B/issues/6
に従って
resize2fs /dev/mmcblk2p6
にて
# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 8142052 8 8142044 1% /dev/shm
tmpfs 8142052 16 8142036 1% /tmp
tmpfs 8142052 3776 8138276 1% /run
/dev/mmcblk2p6 119212488 4457836 109800576 4% /
tmpfs 5120 12 5108 1% /run/lock
tmpfs 1628408 148 1628260 1% /run/user/1000
して /dev/mmcblk2p6 の拡張できました。
# cat /etc/apt/sources.list
# Ubuntu sources have moved to the /etc/apt/sources.list.d/ubuntu.sources
# file, which uses the deb822 format. Use deb822-formatted .sources files
# to manage package sources in the /etc/apt/sources.list.d/ directory.
# See the sources.list(5) manual page for details.
--------------
# ls -l /etc/apt/sources.list.d
total 8
-rw-r--r-- 1 root root 198 Oct 26 00:38 bianbu.sources
-rw-r--r-- 1 root root 2565 Oct 26 00:38 ubuntu.sources
# cat /etc/apt/sources.list.d/bianbu.sources
Types: deb
URIs: http://archive.spacemit.com/bianbu/
Suites: noble-porting/snapshots/v2.0.1
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/bianbu-archive-keyring.gpg
# cat /etc/apt/sources.list.d/ubuntu.sources
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
## Ubuntu distribution repository
##
## The following settings can be adjusted to configure which packages to use from Ubuntu.
## Mirror your choices (except for URIs and Suites) in the security section below to
## ensure timely security updates.
##
## Types: Append deb-src to enable the fetching of source package.
## URIs: A URL to the repository (you may add multiple URLs)
## Suites: The following additional suites can be configured
## <name>-updates - Major bug fix updates produced after the final release of the
## distribution.
## <name>-backports - software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Components: Aside from main, the following components can be added to the list
## restricted - Software that may not be under a free license, or protected by patents.
## universe - Community maintained packages. Software in this repository receives maintenance
## from volunteers in the Ubuntu community, or a 10 year security maintenance
## commitment from Canonical when an Ubuntu Pro subscription is attached.
## multiverse - Community maintained of restricted. Software from this repository is
## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
## licence. Please satisfy yourself as to your rights to use the software.
## Also, please note that software in multiverse WILL NOT receive any
## review or updates from the Ubuntu security team.
##
## See the sources.list(5) manual page for further settings.
Types: deb
URIs: http://mirrors.ustc.edu.cn/ubuntu-ports/
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: http://mirrors.ustc.edu.cn/ubuntu-ports/
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
い) risc-v で C言語で「Hello, world!」を出力する
cat hello.c
#include <stdio.h>
int main() {
printf("Hello, world!\n");
return 0;
}
$ gcc hello.c -o hello
$ ls -l hello
-rwxrwxr-x 1 t2 t2 8552 Nov 20 03:59 hello
$ ./hello
Hello, world!
おー、できてます
## う)apt install build-essential できます
当たり前の話ですが
このrisc-vでつくったhelloは linux x86マシンでは実行できません
bash: ./hello: バイナリファイルを実行できません: 実行形式エラー |
---|
逆もそうです |
$ ls -ltr hello-*
-rwxrwxr-x 1 t2 t2 8552 Nov 20 06:51 hello-riscv
-rwxr-xr-x 1 t2 t2 15440 Nov 20 06:53 hello-x86
なので できあがったバイナリフィルはずっとrisc-vのほうが小さい (すげえ!)
このあとは 古い情報です
risc-v とは |
---|
https://www.youtube.com/watch?v=8mkX4_8k9O8 |
https://www.youtube.com/watch?v=NChfRKtKdvE&t=598s |
https://www.youtube.com/watch?v=iJuSlbLR1Nk&t=260s |
起動風景は
https://www.youtube.com/watch?v=mLMWBmBYHHU
ユーチュブは
https://www.youtube.com/watch?v=yqEnTw-Ezrs
と 雪を踏み とっとだけ道を作った 、ちょっとだけ
risc-v 解説 |
---|
https://www.youtube.com/watch?v=NChfRKtKdvE&t=1230s |
マニュアルは |
---|
https://github.com/DC-DeepComputing/DC-ROMA_Pad_II_RV-P1B/blob/main/DC-ROMA_Pad_II_Manual.pdf |
1) 使用開始です(2024/10/20)
日本語locale は |
---|
https://server-network-note.net/2022/05/ubuntu-2204-lts-server-system-locale-ja/ |
みました |
ibus-mozcで 日本語できます
ブルーツースを掘る
$ bluetoothctl
[bluetooth]# default-agent
[bluetooth]# power on
[bluetooth]# scan on
[bluetooth]# pair DF:D0:63:8D:AE:67
####################
keyboard は
pair DF:D0:63:8D:AE:67
だからです
./comment-out.bat /etc/bluetooth/main.conf
[General]
DiscoverableTimeout = 0
[BR]
[LE]
[GATT]
[CSIS]
[AVDTP]
[Policy]
AutoEnable=true
[AdvMon]
これにて自動再接続です
ここがわかりやすい