https://bugzilla.redhat.com/show_bug.cgi?id=1835452
--- Comment #10 from Spencer Lingard spencer@mellanox.com --- New version.
Spec URL: https://download.copr.fedorainfracloud.org/results/slingard/mlxbf-bootctl/fe... SRPM URL: https://download.copr.fedorainfracloud.org/results/slingard/mlxbf-bootctl/fe... Scratch Koji URL: https://koji.fedoraproject.org/koji/taskinfo?taskID=46001191
(In reply to Honggang LI from comment #8)
(In reply to Spencer Lingard from comment #6)
Spec URL: https://download.copr.fedorainfracloud.org/results/slingard/mlxbf-bootctl/ fedora-rawhide-aarch64/01476093-mlxbf-bootctl/mlxbf-bootctl.spec
27 %build 28 %make_build
Need to setup the CFLAGS. Please insert %set_build_flags between line 27 and 28. see https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/ buildflags.md
Ok, done. I see the message
"annobin: mlxbf-bootctl.c: ICE: Should be 64-bit target"
when I build with these flags. Is this expected? The binaries appear to run fine.
(In reply to Alaa Hleihel (Mellanox) from comment #9)
I ran some tests, it seems OK:
[root@dhcp19-243-132 ~]# rpm -qf `which mlxbf-bootctl` mlxbf-bootctl-1.1-5.el8.aarch64 [root@dhcp19-243-132 ~]# [root@dhcp19-243-132 ~]# mlxbf-bootctl --help syntax: mlxbf-bootctl [--help|-h] [--swap|-s] [--device|-d MMCFILE] [--output|-o OUTPUT] [--read|-r INPUT] [--bootstream|-b BFBFILE] [--overwrite-current] [--watchdog-swap interval | --nowatchdog-swap]
[root@dhcp19-243-132 ~]# modprobe -rv mlxbf_bootctl rmmod mlxbf_bootctl [root@dhcp19-243-132 ~]# mlxbf-bootctl primary: /dev/mmcblk0boot0 backup: /dev/mmcblk0boot1 boot-bus-width: x8 reset to x1 after reboot: FALSE post_reset_wdog: No such file or directory [root@dhcp19-243-132 ~]# echo $? 1 [root@dhcp19-243-132 ~]# modprobe -v mlxbf_bootctl insmod /lib/modules/4.18.0-215.el8.aarch64/kernel/drivers/platform/mellanox/mlxbf- bootctl.ko.xz [root@dhcp19-243-132 ~]# mlxbf-bootctl primary: /dev/mmcblk0boot0 backup: /dev/mmcblk0boot1 boot-bus-width: x8 reset to x1 after reboot: FALSE watchdog-swap: disabled lifecycle state: GA Non-Secured secure boot key free slots: 4 [root@dhcp19-243-132 ~]# echo $? 0 [root@dhcp19-243-132 ~]#
For completeness I added a message that warns if you don't have the mlxbf_bootctl driver loaded, rather than printing "No such file or directory".