https://armadillo.atmark-techno.com/blog/615/3357 なぜかUSBメモリを破壊するのでやめたほうがいい 入荷製品は3.14が入っているし、boot.scrも入っていないので あまり使い物にならないwwww 1)atde-7起動 2)USBメモリを接続 3)umountで自動接続を解除 umount /dev/sdb1 4)パーティション設定 fdisk /dev/sdb1 Command (m for help): o ★ Created a new DOS disklabel with disk identifier 0x2b685734. Command (m for help): n ★ Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): ★ Using default response p. Partition number (1-4, default 1): ★ First sector (2048-7761919, default 2048): ★ Last sector, +sectors or +size{K,M,G,T,P} (2048-7761919, default 7761919): +128M ★ Created a new partition 1 of type 'Linux' and of size 128 MiB. Command (m for help): n ★ Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): ★ Using default response p. Partition number (2-4, default 2): ★ First sector (264192-7761919, default 264192): ★ Last sector, +sectors or +size{K,M,G,T,P} (264192-7761919, default 7761919): ★ Created a new partition 2 of type 'Linux' and of size 3.6 GiB. Command (m for help): t ★ Partition number (1,2, default 2): 1 ★ Hex code (type L to list all codes): b ★ If you have created or modified any DOS 6.x partitions, please see the fdisk documentation for additional information. Changed type of partition 'Linux' to 'W95 FAT32'. Command (m for help): w ★ The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Linuxファイルシステムが構築される 5)USBメモリフォーマット mkfs.vfat -F 32 /dev/sdb1 mkfs.ext4 /dev/sdb2 6)ブートローダを転送 dd if=u-boot-x1.bin of=/dev/sdb bs=1k skip=1 seek=1 7)ルートファイルシステム展開 mount -t ext4 /dev/sdb2 /mnt/sd tar zxf debian-stretch-armhf_ax1_20200728.tar.gz -C /mnt/sd sync umount /mnt/sd 8)カーネル転送 mount -t vfat /dev/sdb1 /mnt/sd cp uImage /mnt/sd/uImage cp armadillo_x1.dtb /mnt/sd/armadillo_x1.dtb umount /mnt/sd 9)boot.scrの生成 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d boot.txt boot.scr 10)boot.scrの配置 armadilloにboot.scrを転送(/home/osaki/boot.scr) mount /dev/mmcblk2p1 /mnt cp /home/osaki/boot.scr /mnt/boot.scr 11)USBメモリの最終設定 mount -t vfat /dev/sdb1 /mnt/sd touch /mnt/sd/usbboot_enable sync umount /mnt/sd