yamada_masa
2024年9月10日 17時04分
問題
microSD カードにインストールディスクイメージ作成するために、
abos-ctrl make-installerコマンドを実行したところ製品マニュアルと異なる文言が出力された。
質問
このまま進めてもインストールディスクは作成できるでしょうか。
できない場合、他に必要な手順などご教示いただけないでしょうか。
実行時の出力結果
/home/atmark # abos-ctrl make-installer Checking if /dev/mmcblk1 can be used safely... It looks like your SD card does not contain an installer image Download baseos-x2-installer-latest.zip image from armadillo.atmark-techno.com (~150M) ? [y/N] WARNING: it will overwrite your SD card!!
Armadillo-X2 製品マニュアル Version 2.9.0での出力内容
https://armadillo.atmark-techno.com/files/downloads/armadillo-x2/docume…
[armadillo /]# abos-ctrl make-installer An installer system is already available on SD card. Use it? [Y/n] Would you like to create a windows partition? That partition would only be used for customization script at the end of install, leave at 0 to skip creating it. Custom partition size (MB, [0] - 30026): 500 Checking and growing installer main partition GPT data structures destroyed! You may now partition the disk using fdisk or other utilities. ・ ・ ・
以上、よろしくお願いいたします。
コメント
yamada_masa
最新マニュアルのご教示ありがとうございます。
Copying rootfsにてエラーが発生しました。
解決方法についてご教示いただけますでしょうか。
/home/atmark # abos-ctrl make-installer Checking if /dev/mmcblk1 can be used safely... It looks like your SD card does not contain an installer image Download baseos-x2-installer-latest.zip image from armadillo.atmark-techno.com (~150M) ? [y/N] WARNING: it will overwrite your SD card!! y Downloading and extracting image to SD card... Finished writing baseos-x2-installer-3.20.2-at.2.img, verifying written content... Would you like to create a windows partition? That partition would only be used for customization script at the end of install, leave at 0 to skip creating it. Custom partition size (MB, [0] or 16 - 29416): 500 Checking and growing installer main partition Trying to install mkfs.exfat (exfatprogs) in memory from internet fetch https://download.atmark-techno.com/alpine/v3.19/atmark/aarch64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz (1/1) Installing exfatprogs (1.2.2-r0) 16% █████████████████████ 32% ██████████████████████████████████████████ 48% ███████████████████████████████████████████████████████████████ 64% █████████████████████████████████████████████████████████████████ 80% █████████████████████████████████████████████████████████████████ 100% █████████████████████████████████████████████████████████████████ Executing busybox-1.36.1-r18.trigger OK: 222 MiB in 200 packages exfatprogs version : 1.2.2 Creating exFAT filesystem(/dev/mmcblk1p2, cluster size=32768) Writing volume boot record: done Writing backup volume boot record: done Fat table creation: done Allocation bitmap creation: done Upcase table creation: done Writing root directory entry: done Synchronizing... exFAT format complete! Resize device id 1 (/dev/mmcblk1p1) from 394.00MiB to max Copying boot image Copying rootfs ERROR: e2fsck failed for rootfs, aborting: e2fsck 1.47.0 (5-Feb-2023) Warning! /dev/mmcblk2p2 is in use. Pass 1: Checking inodes, blocks, and sizes Inodes that were part of a corrupted orphan linked list found. Fix? no Inode 2624 was part of the orphaned inode list. IGNORED. Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information rootfs_1: ********** WARNING: Filesystem still has errors ********** rootfs_1: 3968/76912 files (0.4% non-contiguous), 246440/307200 blocks Terminating, cleaning up...
補足
マニュアルでは、「Enter キーを押下します。」となっていましたが、「y 入力しEnterキー押下」しました。
/home/atmark # abos-ctrl make-installer Checking if /dev/mmcblk1 can be used safely... It looks like your SD card does not contain an installer image Download baseos-x2-installer-latest.zip image from armadillo.atmark-techno.com (~150M) ? [y/N] WARNING: it will overwrite your SD card!! y
at_makoto.sato
yamada_masa
> この armadillo 上で persist_file コマンドの実行中に電源を切ったりしたことはありますでしょうか?
インストールディスク作成前にpersist_fileコマンドのテストしていたため可能性はあります。
コマンド実行後応答が帰ってきてから電源を切るようにしておりましたが、それでよろしかったでしょうか。
persist_file コマンドでファイル更新後、persist_file -l などでリスト確認してから電源OFFしておりました。
ご教示いただいたコマンドの実行結果は下記になります。
ユーザーで実行したところPermission deniedとなったため、再度rootでコマンドを実行しました。
実行結果
armadillo:~$ find /live/rootfs -inum 2624 find: /live/rootfs/lost+found: Permission denied find: /live/rootfs/var/lib/NetworkManager: Permission denied find: /live/rootfs/root: Permission denied find: /live/rootfs/etc/atmark/abos_web/tokens: Permission denied find: /live/rootfs/etc/doas.d: Permission denied find: /live/rootfs/lib/apk/exec: Permission denied armadillo:~$ su Password: /home/atmark # find /live/rootfs -inum 2624
yamada_masa
at_makoto.sato
yamada_masa
佐藤様
ご教示いただいたコマンド実行後、abos-ctrl make-installer" を実行しました。
ロールバックにより古いソフトバージョンになったためか出力結果は最新のマニュアルと異なりますが成功しました。
ありがとうございます。
ABOSのバージョンを確認する方法はござますでしょうか。
実行結果
/home/atmark # abos-ctrl make-installer Checking if /dev/mmcblk1 can be used safely... An installer system is already available on SD card. Use it? [Y/n] Copying boot image Copying rootfs Copying /opt/firmware filesystem Copying appfs At subvol app/snapshots/volumes At subvol app/snapshots/boot_volumes At subvol app/snapshots/boot_containers_storage Cleaning up and syncing changes to disk... Installer updated successfully! /home/atmark #
バージョン
armadillo:~$ uname -a Linux armadillo 5.10.218-0-at #1-Alpine SMP PREEMPT Tue May 28 01:05:46 UTC 2024 aarch64 Linux armadillo:~$ cat /etc/os-release NAME="Alpine Linux" ID=alpine VERSION_ID=3.19.1 PRETTY_NAME="Alpine Linux v3.19" HOME_URL="https://alpinelinux.org/" BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
at_makoto.sato
yamada_masa
佐藤様
ありがとうございます。バージョンを確認することができました。
バージョンは、v3.19.1-at.4でした。
●問題
作成したmicroSD カードでインストールを実施したところSSH接続ができなくなりました。
シリアルコンソールで接続したところ下記のログが繰り返し表示されております。
●質問
インストールに失敗しているでしょうか。
失敗している場合、復旧手順や失敗原因についてご教示いただけると助かります。
●再現手順
1)電源OFF
2)JP1をショート、microSDカードはインストールディスク作成時に挿入済み
3)電源ON、LED点灯消灯を待つ
4)電源OFF、JP1のジャンパー取り外し
5)電源ON
6)SSH接続できず
7)シリアルコンソールで接続、ログ①が繰り返し表示される
8)「Hit any key to stop autoboot: 」の表示タイミングでEnter押下
9)ログ②が表示され、u-bootのコマンド待ち受けとなる。
電源OFFしSDカードを取り外し電源ONしたが症状変わらず。
インストールディスクを作成したArmadillo-X2と同一個体で実施しています。
ログ①
U-Boot SPL 2020.04-at23 (Mar 25 2024 - 06:25:39 +0000) DDRINFO: start DRAM init DDRINFO: DRAM rate 4000MTS DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done Normal Boot Trying to boot from BOOTROM image offset 0x0, pagesize 0x200, ivt offset 0x0 NOTICE: BL31: v2.4(release):2020.04-at19 NOTICE: BL31: Built : 08:29:47, Dec 14 2023 U-Boot 2020.04-at23 (Mar 25 2024 - 06:25:39 +0000) CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz) CPU: Industrial temperature grade (-40C to 105C) at 45C Model: Atmark-Techno Armadillo X2 Series DRAM: Hold key pressed for tests: t (fast) / T (slow) 2 GiB WDT: Started with servicing (10s timeout) MMC: FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... OK In: serial Out: serial Err: serial BuildInfo: - ATF 2020.04 - U-Boot 2020.04-at23 reset cause: watchdog log_wdt_reset() reset by wdt ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unable to write file /atlog ** switch to partitions #0, OK mmc2(part 0) is current device flash target is MMC:2 Net: eth0: ethernet@30be0000 [PRIME] Fastboot: Normal Saving Environment to MMC... Writing to redundant MMC(2)... OK Normal Boot Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc2(part 0) is current device switch to partitions #1, OK mmc2(part 1) is current device MMC read: dev # 2, block # 10240, count 51200 ... 51200 blocks read: OK switch to partitions #0, OK mmc2(part 0) is current device loadimage() Could not load linux image! ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unable to write file /atlog ** rollback() Rollback target is not ready, refusing to rollback. ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unable to write file /atlog ** Saving Environment to MMC... Writing to MMC(2)... OK resetting ... ・ ・ ・
ログ②
「Hit any key to stop autoboot: 」と表示されたタイミングでEnter押下
U-Boot SPL 2020.04-at23 (Mar 25 2024 - 06:25:39 +0000) DDRINFO: start DRAM init DDRINFO: DRAM rate 4000MTS DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done Normal Boot Trying to boot from BOOTROM image offset 0x0, pagesize 0x200, ivt offset 0x0 NOTICE: BL31: v2.4(release):2020.04-at19 NOTICE: BL31: Built : 08:29:47, Dec 14 2023 U-Boot 2020.04-at23 (Mar 25 2024 - 06:25:39 +0000) CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz) CPU: Industrial temperature grade (-40C to 105C) at 45C Model: Atmark-Techno Armadillo X2 Series DRAM: Hold key pressed for tests: t (fast) / T (slow) 2 GiB WDT: Started with servicing (10s timeout) MMC: FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... OK In: serial Out: serial Err: serial BuildInfo: - ATF 2020.04 - U-Boot 2020.04-at23 reset cause: watchdog log_wdt_reset() reset by wdt ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unrecognized filesystem type ** Could not set blkdev mmc 2.5 (ext) ** Unable to write file /atlog ** switch to partitions #0, OK mmc2(part 0) is current device flash target is MMC:2 Net: eth0: ethernet@30be0000 [PRIME] Fastboot: Normal Saving Environment to MMC... Writing to redundant MMC(2)... OK Normal Boot Hit any key to stop autoboot: 0 u-boot=>
at_makoto.sato
yamada_masa
佐藤様
シリアルコンソールを接続した状態でJP1をショート、microSDカードを挿入した状態で電源ONしました。
ログを取得いたしましたのでご確認のほどよろしくお願いいたします。
ログ
U-Boot SPL 2020.04-at24 (Jun 25 2024 - 05:23:49 +0000) DDRINFO: start DRAM init DDRINFO: DRAM rate 4000MTS DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done Normal Boot Trying to boot from BOOTROM image offset 0x8000, pagesize 0x200, ivt offset 0x0 NOTICE: BL31: v2.4(release):2020.04-at19 NOTICE: BL31: Built : 08:29:47, Dec 14 2023 U-Boot 2020.04-at24 (Jun 25 2024 - 05:23:49 +0000) CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz) CPU: Industrial temperature grade (-40C to 105C) at 40C Model: Atmark-Techno Armadillo X2 Series DRAM: Hold key pressed for tests: t (fast) / T (slow) 2 GiB WDT: Started with servicing (10s timeout) MMC: FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... OK In: serial Out: serial Err: serial BuildInfo: - ATF 2020.04 - U-Boot 2020.04-at24 reset cause: first boot since power on switch to partitions #0, OK mmc1 is current device flash target is MMC:1 Net: eth0: ethernet@30be0000 [PRIME] Fastboot: Normal Normal Boot Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Cannot lookup file boot/boot.scr 22384648 bytes read in 2891 ms (7.4 MiB/s) Booting from mmc ... 78989 bytes read in 83 ms (928.7 KiB/s) Loading fdt boot/armadillo.dtb Cannot lookup file boot/overlays.txt ## Flattened Device Tree blob at 45000000 Booting using the fdt blob at 0x45000000 Loading Device Tree to 0000000052bbe000, end 0000000052bf4fff ... OK Starting kernel ... [ 0.418373] rtc-rv8803 1-0032: hctosys: unable to read the hardware clock Starting image installer script Erasing eMMC data... ok Writing rootfs image... [ 11.596359] BTRFS error (device mmcblk1p1): bdev /dev/root errs: wr 0, rd 0, flush 0, corrupt 1, gen 0 [ 11.607079] BTRFS error (device mmcblk1p1): bdev /dev/root errs: wr 0, rd 0, flush 0, corrupt 2, gen 0 [ 11.640066] BTRFS error (device mmcblk1p1): bdev /dev/root errs: wr 0, rd 0, flush 0, corrupt 3, gen 0 [ 11.649381] BTRFS error (device mmcblk1p1): bdev /dev/root errs: wr 0, rd 0, flush 0, corrupt 4, gen 0 [ 11.662855] BTRFS error (device mmcblk1p1): bdev /dev/root errs: wr 0, rd 0, flush 0, corrupt 5, gen 0 lzopcat: short read image in /dev/mmcblk2p1 does not match expected checksum (expected 398c988e6bf19a9b, got dabf5d37143897b1) OpenRC 0.54 is starting up Linux 5.10.224-0-at (aarch64) * /proc is already mounted * /run/lock: creating directory * /run/lock: correcting owner * Caching service dependencies ... [ ok ] * Clock skew detected with `/etc/init.d' * Adjusting mtime of `/run/openrc/deptree' to Wed Aug 28 02:45:32 2024 * WARNING: clock skew detected! klogd | * Stopping busybox klogd ... [ ok ] syslog | * Stopping busybox syslog ... [ ok ] devfs | * Remounting devtmpfs on /dev ...sysfs | * Mounting security filesystem ... [ ok ] [ ok ] sysfs | * Mounting config filesystem ... [ ok ] udev | * Starting udev ... [ ok ] fsck | * Checking local filesystems ... [ ok ] fsck_atlog | * Checking log filesystems ... [ ok ] localmount | * Mounting local filesystems ... [ ok ] * WARNING: clock skew detected! sysctl | * Configuring kernel parameters ...udev-trigger | * Generating a rule to create a /dev/root symlink ...hostname | * Setting hostname ... [ ok ] [ ok ] [ ok ] udev-trigger | * Populating /dev with existing devices through uevents ... [ ok ] bootmisc | * Migrating /var/lock to /run/lock ... [ ok ] bootmisc | * Creating user login records ... [ ok ] bootmisc | * Wiping /var/tmp directory ... [ ok ] micron-emmc-reten | * Starting micron-emmc-reten syslog | * Starting busybox syslog ...dbus | * /run/dbus: creating directory dbus | * /run/dbus: correcting owner [ ok ] klogd | * Starting busybox klogd ... [ ok ] dbus | * Starting System Message Bus ... [ ok ] micron-emmc-reten | [ ok ] networkmanager | * Starting networkmanager ... [ ok ] dnsmasq | * /var/lib/misc/dnsmasq.leases: creating file dnsmasq | * /var/lib/misc/dnsmasq.leases: correcting owner dnsmasq | * Starting dnsmasq ... [ ok ] * WARNING: clock skew detected! buttond | * Starting button watching daemon ...reset_bootcount | * Resetting bootcount in bootloader env ... [ ok ] Environment OK, copy 1 reset_bootcount | [ ok ] zramswap | * Creating zram swap device ...chronyd | * Starting chronyd ...podman-atmark | * Starting configured podman contain ers ... [ ok ] [ ok ] abos-web | * Skipping abos-web start without password on installed system [ ok ] local | * Starting local ... [ ok ] Welcome to Alpine Linux 3.20 Kernel 5.10.224-0-at on an aarch64 (/dev/ttymxc1) localhost.localdomain login:
at_makoto.sato
yamada_masa
yamada_masa
佐藤様
別のSDカードで再度"abos-ctrl make-installer"を実行しました。
インストールディスクの製造は成功しました。
abos-ctrl make-installer実行結果
/home/atmark # abos-ctrl make-installer Checking if /dev/mmcblk1 can be used safely... It looks like your SD card does not contain an installer image Download baseos-x2-installer-latest.zip image from armadillo.atmark-techno.com (~150M) ? [y/N] WARNING: it will overwrite your SD card!! y Downloading and extracting image to SD card... Finished writing baseos-x2-installer-3.20.2-at.2.img, verifying written content... Would you like to create a windows partition? That partition would only be used for customization script at the end of install, leave at 0 to skip creating it. Custom partition size (MB, [0] or 16 - 29126): 500 Checking and growing installer main partition Trying to install mkfs.exfat (exfatprogs) in memory from internet fetch https://download.atmark-techno.com/alpine/v3.20/atmark/aarch64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/aarch64/APKINDEX.tar.gz (1/1) Installing exfatprogs (1.2.2-r0) Executing busybox-1.36.1-r29.trigger OK: 225 MiB in 197 packages ██████████████████████████████████████████████████████ exfatprogs version : 1.2.2 Creating exFAT filesystem(/dev/mmcblk1p2, cluster size=32768) Writing volume boot record: done Writing backup volume boot record: done Fat table creation: done Allocation bitmap creation: done Upcase table creation: done Writing root directory entry: done Synchronizing... exFAT format complete! Resize device id 1 (/dev/mmcblk1p1) from 394.00MiB to max Copying boot image Copying rootfs Copying appfs At subvol app/snapshots/volumes At subvol app/snapshots/boot_volumes At subvol app/snapshots/boot_containers_storage Cleaning up and syncing changes to disk... Installer updated successfully!
●インストールディスクの動作確認
Armadillo-X2が1台しかないため、同一ハードでインストールのテストを行います。
インストールの成否判定方法
インストールディスク作成後に下記ファイルを作成し、インストール後ファイルが消えていることでインストールの成否を判定します。
/var/app/volumes/test /home/atmark/test2 #←persist_fileを実施する。
動作確認ができましたら投稿します。
yamada_masa
佐藤様
インストールに成功しました。
ご教示ありがとうございました。
以下にインストール時のログなど添付します。
●インストール実行時のログ
armadillo:~$ U-Boot SPL 2020.04-at24 (Jun 25 2024 - 05:23:49 +0000) DDRINFO: start DRAM init DDRINFO: DRAM rate 4000MTS DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done Normal Boot Trying to boot from BOOTROM image offset 0x8000, pagesize 0x200, ivt offset 0x0 NOTICE: BL31: v2.4(release):2020.04-at19 NOTICE: BL31: Built : 08:29:47, Dec 14 2023 U-Boot 2020.04-at24 (Jun 25 2024 - 05:23:49 +0000) CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz) CPU: Industrial temperature grade (-40C to 105C) at 31C Model: Atmark-Techno Armadillo X2 Series DRAM: Hold key pressed for tests: t (fast) / T (slow) 2 GiB WDT: Started with servicing (10s timeout) MMC: FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... OK In: serial Out: serial Err: serial BuildInfo: - ATF 2020.04 - U-Boot 2020.04-at24 reset cause: first boot since power on switch to partitions #0, OK mmc1 is current device flash target is MMC:1 Net: eth0: ethernet@30be0000 [PRIME] Fastboot: Normal Normal Boot Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Cannot lookup file boot/boot.scr 22384648 bytes read in 3026 ms (7.1 MiB/s) Booting from mmc ... 78989 bytes read in 82 ms (940.4 KiB/s) Loading fdt boot/armadillo.dtb Cannot lookup file boot/overlays.txt ## Flattened Device Tree blob at 45000000 Booting using the fdt blob at 0x45000000 Loading Device Tree to 0000000052bbe000, end 0000000052bf4fff ... OK Starting kernel ... [ 0.414270] rtc-rv8803 1-0032: hctosys: unable to read the hardware clock Starting image installer script Erasing eMMC data... ok Writing rootfs image... ok Writing boot loader... ok Preparing app partition... ok Finishing installation... At subvol volumes At subvol boot_volumes At subvol boot_containers_storage Opening filesystem to check... [1/7] checking root items [2/7] checking extents [3/7] checking free space tree [4/7] checking fs roots [5/7] checking csums against data [6/7] checking root refs [7/7] checking quota groups skipped (not enabled on this FS) Checking filesystem on /dev/mmcblk2p5 UUID: 5e858518-e77e-487b-b4d7-6ee237894cd2 found 344064 bytes used, no error found total csum bytes: 0 total tree bytes: 344064 total fs tree bytes: 229376 total extent tree bytes: 16384 btree space waste bytes: 305872 file data blocks allocated: 0 referenced 0 Finished writing mmc. powering off now [ 29.052522] imx2-wdt 30280000.watchdog: Device shutdown: Expect reboot! [ 29.059765] reboot: Power down
●インストール結果の確認(ファイルが消えていることの確認)
armadillo:~$ pwd /home/atmark armadillo:~$ ls readme.txt armadillo:~$ ls /var/app/volumes/ armadillo:~$
at_makoto.sato
at_makoto.sato
2024年9月10日 17時19分
佐藤です。
> 質問
> このまま進めてもインストールディスクは作成できるでしょうか。
> できない場合、他に必要な手順などご教示いただけないでしょうか。
以下の現在の最新のマニュアル内での表記内容と同じですので、このまま進めても問題ありません。
https://armadillo.atmark-techno.com/files/downloads/armadillo-x2/docume…