试图在fedora 28上为来自FriendlyARM的纳米sd卡创建一个可引导的sd卡,并使用“fedora-arm映像-安装程序”,但是安装失败了,缺少了两个文件,“sunxi-pl.bin”和"u-boot.itb“。
我需要哪个附加的rpm包,或者如何创建这些文件以供安装?
fedora-arm-image-installer \
--image=Fedora-Mate-armhfp-28-1.1-sda.raw.xz \
--target=nanopi_a64 \
--media=/dev/sdb \
--selinux=OFF \
--norootpass \
--resizefs \
-y完整的执行记录。错误出现在最后10行。
=====================================================
= Selected Image:
= Fedora-Mate-armhfp-28-1.1-sda.raw.xz
= Selected Media : /dev/sdb
= U-Boot Target : nanopi_a64
= SELINUX = OFF
= Root Password will be removed.
= Root partition will be resized
=====================================================
*****************************************************
*****************************************************
******** WARNING! ALL DATA WILL BE DESTROYED ********
*****************************************************
*****************************************************
= Writing:
= Fedora-Mate-armhfp-28-1.1-sda.raw.xz
= To: /dev/sdb ....
0+801784 records in
0+801784 records out
7396655104 bytes (7.4 GB, 6.9 GiB) copied, 281.967 s, 26.2 MB/s
= Writing image complete!
= Resizing /dev/sdb ....
Checking that no-one is using this disk right now ... OK
Disk /dev/sdb: 7.4 GiB, 7948206080 bytes, 15523840 sectors
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: dos
Disk identifier: 0xad3c1ff1
Old situation:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 61439 59392 29M c W95 FAT32 (LBA)
/dev/sdb2 * 61440 1060863 999424 488M 83 Linux
/dev/sdb3 1060864 2060287 999424 488M 82 Linux swap / Solaris
/dev/sdb4 2060288 13778943 11718656 5.6G 83 Linux
/dev/sdb4:
New situation:
Disklabel type: dos
Disk identifier: 0xad3c1ff1
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 61439 59392 29M c W95 FAT32 (LBA)
/dev/sdb2 * 61440 1060863 999424 488M 83 Linux
/dev/sdb3 1060864 2060287 999424 488M 82 Linux swap / Solaris
/dev/sdb4 2060288 15523839 13463552 6.4G 83 Linux
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
Syncing disks.
e2fsck 1.43.8 (1-Jan-2018)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
_/: 166928/366480 files (0.7% non-contiguous), 1228157/1464832 blocks
resize2fs 1.43.8 (1-Jan-2018)
Resizing the filesystem on /dev/sdb4 to 1682944 (4k) blocks.
The filesystem on /dev/sdb4 is now 1682944 (4k) blocks long.
= Turning SELinux off ...
= Removing the root password.
= Writing sunxi-spl.bin for nanopi_a64 ....
dd: failed to open '/tmp/root/usr/share/uboot/nanopi_a64/sunxi-spl.bin': No such file or directory
= Writing u-boot FIT image for nanopi_a64 ....
dd: failed to open '/tmp/root/usr/share/uboot/nanopi_a64/u-boot.itb': No such file or directory
= Installation Complete! Insert into the nanopi_a64 and boot.发布于 2018-06-26 10:52:10
通常,基于ARMv8-A的设备的sunxi-spl.bin和u-boot.itb文件(如NanoPi A64 )是由uboot-images-armv8包提供的。
但是,在编写本报告时,该包似乎不包括专门用于sunxi-spl.bin A64板的NanoPi和u-boot.itb文件的版本。
sunxi社区wiki (开源社区聚集在Allwinner SoCs周围)表明,从软件的角度来看,NanoPi A64与Pine64类似(基于相同的Allwinner四核ARM A53 64位处理器、类似的DRAM、相同的以太网和电源管理IC),不幸的是,Pine64映像(包含在uboot-images-armv8中)无法在NanoPi A64上启动,可能是由于不同的PMIC配置。
这样就可以自己构建一个合适的u引导和Linux内核映像,或者按照松溪社区wiki的人工构建方法使用用于u引导的nanopi_a64_defconfig构建目标和用于Linux内核的sun50i-a64-nanopi-a64.dtb设备树二进制,或者遵循使用他们的董事会支援计划的FriendlyARM wiki上的制造商说明。
https://unix.stackexchange.com/questions/451974
复制相似问题