atmark@atde9:~$ cd sdboot atmark@atde9:~/sdboot$ sudo apt install podman btrfs-progs xxhash [sudo] atmark のパスワード: パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 btrfs-progs はすでに最新バージョン (5.10.1-2) です。 podman はすでに最新バージョン (3.0.1+dfsg1-3+deb11u4) です。 xxhash はすでに最新バージョン (0.8.0-2) です。 以下のパッケージが自動でインストールされましたが、もう必要とされていません: libopengl0 linux-headers-5.10.0-20-amd64 linux-headers-5.10.0-20-common linux-image-5.10.0-20-amd64 これを削除するには 'sudo apt autoremove' を利用してください。 アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 14 個。 atmark@atde9:~/sdboot$ wget https://download.atmark-techno.com/armadillo-iot-a6e/tool/build-rootfs-latest.tar.gz --2023-11-29 16:32:18-- https://download.atmark-techno.com/armadillo-iot-a6e/tool/build-rootfs-latest.tar.gz download.atmark-techno.com (download.atmark-techno.com) をDNSに問いあわせています... 54.64.102.35, 18.181.73.254, 18.178.129.128 download.atmark-techno.com (download.atmark-techno.com)|54.64.102.35|:443 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 85718 (84K) [application/x-gzip] `build-rootfs-latest.tar.gz' に保存中 build-rootfs-latest.tar.gz 100%[=====================================================================================================================>] 83.71K --.-KB/s 時間 0.05s 2023-11-29 16:32:19 (1.49 MB/s) - `build-rootfs-latest.tar.gz' へ保存完了 [85718/85718] atmark@atde9:~/sdboot$ tar xf build-rootfs-latest.tar.gz atmark@atde9:~/sdboot$ cd build-rootfs-v3.18-at.6/ atmark@atde9:~/sdboot/build-rootfs-v3.18-at.6$ cd .. atmark@atde9:~/sdboot$ wget https://armadillo.atmark-techno.com/files/downloads/armadillo-iot-a6e/bootloader/u-boot-2020.04-at20.tar.gz --2023-11-29 16:33:56-- https://armadillo.atmark-techno.com/files/downloads/armadillo-iot-a6e/bootloader/u-boot-2020.04-at20.tar.gz armadillo.atmark-techno.com (armadillo.atmark-techno.com) をDNSに問いあわせています... 54.64.102.35, 18.181.73.254, 18.178.129.128 armadillo.atmark-techno.com (armadillo.atmark-techno.com)|54.64.102.35|:443 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 20540132 (20M) [application/x-gzip] `u-boot-2020.04-at20.tar.gz' に保存中 u-boot-2020.04-at20.tar.gz 100%[=====================================================================================================================>] 19.59M 5.06MB/s 時間 3.9s 2023-11-29 16:34:00 (5.06 MB/s) - `u-boot-2020.04-at20.tar.gz' へ保存完了 [20540132/20540132] atmark@atde9:~/sdboot$ tar xf u-boot-2020.04-at20.tar.gz.tar.gz u-boot-2020.04-at20.tar.gz atmark@atde9:~/sdboot$ tar xf u-boot-2020.04-at20.tar.gz.tar.gz u-boot-2020.04-at20.tar.gz atmark@atde9:~/sdboot$ tar xf u-boot-2020.04-at20.tar.gz atmark@atde9:~/sdboot$ cd u-boot-2020.04-at20/ atmark@atde9:~/sdboot/u-boot-2020.04-at20$ ls Kbuild Licenses Makefile api board common configs doc dts examples include localversion post test Kconfig MAINTAINERS README arch cmd config.mk disk drivers env fs lib net scripts tools atmark@atde9:~/sdboot/u-boot-2020.04-at20$ cd .. atmark@atde9:~/sdboot$ cd build-rootfs-v3.18-at.6/ atmark@atde9:~/sdboot/build-rootfs-v3.18-at.6$ ls Changelog LICENSE README.md README.org a600 a6e alpine-version atmark-version ax1 ax2 build_image.sh build_initrd.sh build_rootfs.sh build_sbom.sh common initrd qemu submodules tools atmark@atde9:~/sdboot/build-rootfs-v3.18-at.6$ sudo ./build_i build_image.sh build_initrd.sh atmark@atde9:~/sdboot/build-rootfs-v3.18-at.6$ ls Changelog README.md a600 alpine-version ax1 baseos-6e-3.18.4-at.6.tar.zst build_initrd.sh build_sbom.sh initrd submodules u-boot-aiotg-a6e-v2020.04-at20.imx LICENSE README.org a6e atmark-version ax2 build_image.sh build_rootfs.sh common qemu tools atmark@atde9:~/sdboot/build-rootfs-v3.18-at.6$ sudo ./build_image.sh --board a6e --boot u-boot-aiotg-a6e-v2020.04-at20.imx --rootfs baseos-6e-3.18.4-at.6.tar.zst use default(outdir=/home/atmark/sdboot/build-rootfs-v3.18-at.6) use default(output=baseos-6e-3.18.4-at.6.img) Warning: Partition table header claims that the size of partition table entries is 0 bytes, but this program supports only 128-byte entries. Adjusting accordingly, but partition table may be garbage. Warning: Partition table header claims that the size of partition table entries is 0 bytes, but this program supports only 128-byte entries. Adjusting accordingly, but partition table may be garbage. Creating new GPT entries in memory. Warning: The kernel is still using the old partition table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) GPT data structures destroyed! You may now partition the disk using fdisk or other utilities. Setting name! partNum is 0 Warning: The kernel is still using the old partition table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) The operation has completed successfully. mke2fs 1.46.2 (28-Feb-2021) Found a gpt partition table in baseos-6e-3.18.4-at.6.img Discarding device blocks: done Creating filesystem with 307200 1k blocks and 76912 inodes Filesystem UUID: df84cdbd-614d-42be-9d79-73f26ab9dc75 Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729, 204801, 221185 Allocating group tables: done Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done Successfully built /home/atmark/sdboot/build-rootfs-v3.18-at.6/baseos-6e-3.18.4-at.6.img atmark@atde9:~/sdboot/build-rootfs-v3.18-at.6$ ls baseos-6e*.img baseos-6e-3.18.4-at.6.img atmark@atde9:~/sdboot/build-rootfs-v3.18-at.6$ cd .. atmark@atde9:~/sdboot$ cd .. atmark@atde9:~$ ls /dev/sd? /dev/sda /dev/sdc atmark@atde9:~$ sudo fdisk -l /dev/sdc GPT PMBR size mismatch (657407 != 15693823) will be corrected by write. Disk /dev/sdc: 7.48 GiB, 8035237888 bytes, 15693824 sectors Disk model: MassStorageClass Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: E1F6D663-20ED-4CC6-8E29-854AEA429FB3 Device Start End Sectors Size Type /dev/sdc1 20480 634879 614400 300M Linux filesystem /dev/sdc2 634880 1249279 614400 300M Linux filesystem /dev/sdc3 1249280 1351679 102400 50M Linux filesystem /dev/sdc4 1351680 1761279 409600 200M Linux filesystem /dev/sdc5 1761280 15693790 13932511 6.6G Linux filesystem atmark@atde9:~$ mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=1978456k,nr_inodes=494614,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=401388k,mode=755) /dev/mapper/atde9--vg-root on / type ext4 (rw,relatime,errors=remount-ro) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12289) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) /dev/sda1 on /boot type ext2 (rw,relatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) /home/atmark/share on /home/atmark/share type vboxsf (rw,nodev,relatime,iocharset=utf8,uid=0,gid=998,dmode=0770,fmode=0770,tag=VBoxAutomounter) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=401384k,nr_inodes=100346,mode=700,uid=1000,gid=1000) portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/sdb5 on /media/atmark/app type btrfs (rw,nosuid,nodev,relatime,space_cache=v2,subvolid=5,subvol=/,uhelper=udisks2) /dev/sr0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,noexec,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8,user=atmark) tmpfs on /run/netns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=401388k,mode=755) /dev/sdc3 on /media/atmark/logs type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2) /dev/sdc5 on /media/atmark/app1 type btrfs (rw,nosuid,nodev,relatime,space_cache=v2,subvolid=5,subvol=/,uhelper=udisks2) /dev/sdc1 on /media/atmark/rootfs_0 type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2) atmark@atde9:~$ sudo umount /dev/sdc1 atmark@atde9:~$ sudo umount /dev/sdc5 atmark@atde9:~$ sudo umount /dev/sdc3 atmark@atde9:~$ mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=1978456k,nr_inodes=494614,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=401388k,mode=755) /dev/mapper/atde9--vg-root on / type ext4 (rw,relatime,errors=remount-ro) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12289) mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime) tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime) configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime) /dev/sda1 on /boot type ext2 (rw,relatime) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime) /home/atmark/share on /home/atmark/share type vboxsf (rw,nodev,relatime,iocharset=utf8,uid=0,gid=998,dmode=0770,fmode=0770,tag=VBoxAutomounter) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=401384k,nr_inodes=100346,mode=700,uid=1000,gid=1000) portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) /dev/sdb5 on /media/atmark/app type btrfs (rw,nosuid,nodev,relatime,space_cache=v2,subvolid=5,subvol=/,uhelper=udisks2) /dev/sr0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,noexec,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8,user=atmark) tmpfs on /run/netns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=401388k,mode=755) atmark@atde9:~$ sudo dd if=~/sdboot/build-rootfs-/baseos-6e-[VERSION].img \ of=/dev/sdb bs=1M oflag=direct status=progress build-rootfs-latest.tar.gz build-rootfs-v3.18-at.6/ atmark@atde9:~$ sudo dd if=~/sdboot/build-rootfs-v3.18-at.6/baseos-6e-3.18.4-at.6.img \ of=/dev/sdc bs=1M oflag=direct status=progress 207618048 bytes (208 MB, 198 MiB) copied, 20 s, 10.4 MB/s dd: '/dev/sdc' の書き込みエラー: 入力/出力エラーです 208+0 レコード入力 207+0 レコード出力 217055232 bytes (217 MB, 207 MiB) copied, 53.6301 s, 4.0 MB/s atmark@atde9:~$ sudo dd if=~/sdboot/build-rootfs-v3.18-at.6/baseos-6e-3.18.4-at.6.img of=/dev/sdc bs=1M oflag=direct status=progress 336592896 bytes (337 MB, 321 MiB) copied, 56 s, 6.0 MB/s 321+0 レコード入力 321+0 レコード出力 336592896 bytes (337 MB, 321 MiB) copied, 56.0571 s, 6.0 MB/s atmark@atde9:~$ sudo gdisk -l /dev/sdc GPT fdisk (gdisk) version 1.0.6 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Disk /dev/sdc: 15693824 sectors, 7.5 GiB Model: MassStorageClass Sector size (logical/physical): 512/512 bytes Disk identifier (GUID): D20F10DA-A32C-4CF6-868F-AAB81D7DACB9 Partition table holds up to 128 entries Main partition table begins at sector 20448 and ends at sector 20479 First usable sector is 20480, last usable sector is 657374 Partitions will be aligned on 2048-sector boundaries Total free space is 22495 sectors (11.0 MiB) Number Start (sector) End (sector) Size Code Name 1 20480 634879 300.0 MiB 8300 rootfs_0 atmark@atde9:~$