Armadilloフォーラム

インストールディスクで起動しない

mod-mm

2025年2月12日 17時09分

Armadillo-640でクリーンインストールすべくSSDカードで起動しようとしましたが、起動できていないようです。
正しい設定手順をご教授願います。

・以下の製品マニュアルを参照しています。
https://manual.atmark-techno.com/armadillo-640/armadillo-640_product_ma…
・3.3.5.1. 初期化インストールディスクの作成に従って、SDカードにイメージファイルを展開し、
 Armarillo-640にSDカードをセットし電源を投入しましたが、
 LED(グリーンのLEDでしょうか)が点灯→消灯せずに消灯のままです。(レッドのLEDも消灯のまま)
なお、SDカード無しでJP1のみショートの場合は電源投入でグリーン点灯→しばらくしてレッド点灯→しばらくしてレッド消灯です
 ・ジャンパはJP1とJP2のどちらもショートさせています
 ・SDカードの中身は下欄です
 ・ホストはUbuntu(24.04)です
 ・同一のローカルネットワーク上にホストとArmadilloを設置しVSCodeで”Scanning Armadillo on the network”を実行させると
  Armadillo on the network found, so scan first. になります

(SDカード)
total 85568
drwxr-xr-x 1 root root 966 Jan 29 13:03 bin
drwxr-xr-x 1 root root 578 Jan 29 13:20 boot
-rw-r--r-- 1 root root 15 Jan 29 13:20 boot.filename
-rw-r--r-- 1 root root 461608 Jan 29 13:20 boot.lzo
-rw-r--r-- 1 root root 25 Jan 29 13:20 boot.xxh
drwxr-xr-x 1 root root 0 Jan 29 13:03 dev
drwxr-xr-x 1 root root 1380 Jan 29 13:20 etc
drwxr-xr-x 1 root root 12 Jan 29 13:03 home
-rw-r--r-- 1 root root 27 Jan 29 13:20 image.filename
-rw-r--r-- 1 root root 87101831 Jan 29 13:20 image.lzo
-rw-r--r-- 1 root root 27 Jan 29 13:20 image.xxh
-rw-r--r-- 1 root root 175 Jan 29 13:20 installer.conf
-rwxr-xr-x 1 root root 19033 Jan 29 13:20 installer.sh
-rw-r--r-- 1 root root 5788 Jan 29 13:20 installer_overrides.sh.sample
-rw-r--r-- 1 root root 436 Jan 29 13:20 ip_config.txt.sample
drwxr-xr-x 1 root root 1598 Jan 29 13:03 lib
drwxr-xr-x 1 root root 0 Jan 29 13:03 live
drwxr-xr-x 1 root root 0 Jan 29 13:20 mnt
drwxr-xr-x 1 root root 16 Jan 29 13:03 opt
dr-xr-xr-x 1 root root 0 Jan 29 13:03 proc
drwx------ 1 root root 0 Jan 29 13:03 root
drwxr-xr-x 1 root root 0 Jan 29 13:03 run
drwxr-xr-x 1 root root 3354 Jan 29 13:20 sbin
drwxr-xr-x 1 root root 0 Jan 29 13:03 sys
drwxr-xr-x 1 root root 0 Jan 29 13:03 target
drwxrwxrwt 1 root root 0 Jan 29 13:03 tmp
drwxr-xr-x 1 root root 54 Jan 29 13:03 usr
drwxr-xr-x 1 root root 98 Jan 29 13:03 var

以上、よろしくお願いいたします。

コメント

at_satoshi.ohta

2025年2月12日 18時41分

太田です。

念の為、はじめに1点確認させていただきたいのですが JP1 とJP2 の位置はお間違いないでしょうか?
以下のマニュアルを参照していただければと思います。

https://manual.atmark-techno.com/armadillo-640/armadillo-640_product_ma…

その上で、以下の手順でシリアルコンソールに表示されるSDブート時のログを取得して、そのログをご提供いただけますか?

1. . JP1 とJP2をオープンの状態で、minicomなどを用いてシリアルコンソールでArmadillo上のターミナルに問題なく入り操作できることをご確認ください。
2. その状態でArmadilloの電源を切ってください。
3. JP1 とJP2をショートさせてください。
4. Armadilloに初期化インストールディスクイメージが書き込まれたmicroSDカードをCON1にセットしてください。
5. 電源を投入してください。
6. SDブート時のログがターミナル上に表示されるはずです。

そのログをコピーして添付していただければ幸いです。

よろしくお願いいたします。

太田様

早速の返信ありがとうございます。

①>6. SDブート時のログがターミナル上に表示されるはずです。

以下にログを示します。

U-Boot 2020.04-at24 (Jun 25 2024 - 05:19:56 +0000)

CPU: i.MX6ULL rev1.0 at 396 MHz
Model: Atmark Techno Armadillo-600 Series
DRAM: 512 MiB
setup_rtc_disarm_alarm: Can't find bus
WDT: Started with servicing (10s timeout)
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - No block device, using default environment

In: mxc_serial
Out: mxc_serial
Err: mxc_serial
switch to partitions #0, OK
mmc1 is current device
flash target is MMC:1
MMC card init failed!
*** ERROR: Can't read GPT header ***
*** ERROR: Can't read GPT header ***
find_valid_gpt: *** ERROR: Invalid Backup GPT ***
Net: eth0: ethernet@2188000
Fastboot: Normal
Saving Environment to MMC... Writing to redundant MMC(1)... failed
Failed (1)
Normal Boot
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
=>

②マウントして中身確認
total 84M
drwxr-xr-x 1 root root 398 Jan 29 13:20 .
drwxr-xr-x 23 root root 4.0K Jan 15 23:13 ..
drwxr-xr-x 1 root root 966 Jan 29 13:03 bin
drwxr-xr-x 1 root root 578 Jan 29 13:20 boot
-rw-r--r-- 1 root root 15 Jan 29 13:20 boot.filename
-rw-r--r-- 1 root root 451K Jan 29 13:20 boot.lzo
-rw-r--r-- 1 root root 25 Jan 29 13:20 boot.xxh
drwxr-xr-x 1 root root 0 Jan 29 13:03 dev
drwxr-xr-x 1 root root 1.4K Jan 29 13:20 etc
drwxr-xr-x 1 root root 12 Jan 29 13:03 home
-rw-r--r-- 1 root root 27 Jan 29 13:20 image.filename
-rw-r--r-- 1 root root 84M Jan 29 13:20 image.lzo
-rw-r--r-- 1 root root 27 Jan 29 13:20 image.xxh
-rw-r--r-- 1 root root 175 Jan 29 13:20 installer.conf
-rwxr-xr-x 1 root root 19K Jan 29 13:20 installer.sh
-rw-r--r-- 1 root root 5.7K Jan 29 13:20 installer_overrides.sh.sample
-rw-r--r-- 1 root root 436 Jan 29 13:20 ip_config.txt.sample
drwxr-xr-x 1 root root 1.6K Jan 29 13:03 lib
drwxr-xr-x 1 root root 0 Jan 29 13:03 live
drwxr-xr-x 1 root root 0 Jan 29 13:20 mnt
drwxr-xr-x 1 root root 16 Jan 29 13:03 opt
dr-xr-xr-x 1 root root 0 Jan 29 13:03 proc
drwx------ 1 root root 0 Jan 29 13:03 root
drwxr-xr-x 1 root root 0 Jan 29 13:03 run
drwxr-xr-x 1 root root 3.3K Jan 29 13:20 sbin
drwxr-xr-x 1 root root 0 Jan 29 13:03 sys
drwxr-xr-x 1 root root 0 Jan 29 13:03 target
drwxrwxrwt 1 root root 0 Jan 29 13:03 tmp
drwxr-xr-x 1 root root 54 Jan 29 13:03 usr
drwxr-xr-x 1 root root 98 Jan 29 13:03 var

③BTRFS ファイルシステムのチェック
 問題ないようです
btrfs check /dev/sda1
Opening filesystem to check...
Checking filesystem on /dev/sda1
UUID: 861bd2c3-4583-4dde-b1c5-bf333c3bd903
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 158126080 bytes used, no error found
total csum bytes: 150772
total tree bytes: 3735552
total fs tree bytes: 3178496
total extent tree bytes: 278528
btree space waste bytes: 613342
file data blocks allocated: 154390528
referenced 237281280

④SDカードのパーティション状態の確認
 GPT テーブルに不一致があり、バックアップ GPT テーブルが正しい位置にないとなりました
fdisk -l /dev/sda
GPT PMBR size mismatch (849919 != 15523839) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk /dev/sda: 7.4 GiB, 7948206080 bytes, 15523840 sectors
Disk model: SD/MMC CRW
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
 →gdiskでGPTテーブルを修正しても現象は変わりませんでした。

⑤SDカードに不良セクタがないか確認
badblocks -v /dev/sda
Checking blocks 0 to 7761919
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found. (0/0/0 errors)
 →ファイル操作をする限りではSDカードの不良は見受けられませんでしたが、
  使用しているSDカードは1枚のみです。

⑥ddによる書き込みの検証のためimg と SD カードの内容の比較
cmp baseos-600-installer-3.20.5-at.8.img /dev/sda
cmp: EOF on baseos-600-installer-3.20.5-at.8.img after byte 435159040, in line 629302
 →内容が一致しないとエラーが出ました。

⑦imgファイルが正しいかを調査するためハッシュ値を確認
 上記を踏まえてハッシュ値を確認しました
$ sha256sum baseos-600-installer-3.20.5-at.8.img
44be1ed90a2b0a5c1af8fe0052a52198761b083992e9f821795d4e011b43c675 baseos-600-installer-3.20.5-at.8.img

以上、ご確認をよろしくお願いいたします。

at_satoshi.ohta

2025年2月13日 16時34分

太田です。

ログの添付をありがとうございます。

こちらのエラーは他のSDカードを使用した場合でも同様のエラーが発生するのでしょうか?
差し支えなければ、原因の切り分けのためにも、マニュアルの手順に従って他のSDカードにArmadillo Base OSの初期化インストールディスクイメージを書き込んで、SDブートしてみて頂いてもよろしいでしょうか?

もしエラーが発生するようでしたら、お手数ですが、その時のログもいただければ幸いです。

どうぞよろしくお願いいたします。

太田様

SDカードの破損が原因でした。
新規でSDカードを入手し試したところ起動することが確認できました。

お忙しい中、お手を煩わせてしまい申し訳ありません。
ただ、別問題が発生していて解決ができていません。
別問題はタイトルとは違う内容のため、改めて質問させてください。
ご面倒をおかけしますが、よろしくお願いいたします。

at_satoshi.ohta

2025年2月14日 16時53分

太田です。

> 新規でSDカードを入手し試したところ起動することが確認できました。

SDカードを替えたところ起動したとのことで安心しました。

> 別問題はタイトルとは違う内容のため、改めて質問させてください。

ご配慮いただきありがとうございます。
どうぞよろしくお願いいたします。