AFI load error with -F flag?

0

Hi, I have one AFI created OK and I can check out it status as below--it is not public.

            "State": {
                "Code": "available"
            },

            "Tags": [],
            "Public": false

Now when I try to load it I got below error report:

~/aws-fpga$ sudo fpga-load-local-image -S 0 -H -I -F agfi-XXXXXXXXX
Error: (5) invalid-afi-id
The agfi id passed is invalid or you do not have permission to load the AFI.

However, if not using -F flag, I can load it correctly:

~/aws-fpga$ sudo fpga-load-local-image -S 0 -H -I agfi-XXXXXXXXX
Type  FpgaImageSlot  FpgaImageId             StatusName    StatusCode   ErrorName    ErrorCode   ShVersion
AFI          0       agfi-XXXXXXXXX            loaded            0        ok               0       0x04261818
Type  FpgaImageSlot  VendorId    DeviceId    DBDF
AFIDEVICE    0       0x1d0f      0xf000      0000:00:1d.0

why does that happen? I checked the fpga-load-local-image -F means

-F, --force-shell-reload
          Reload the FPGA shell on AFI load, even if the next AFI
          doesn't require it.

Will that "-F" flag really matter?
If not using -F flag, shell (which by my understanding is PCIE driver, interface stuff) shall always in FPGA? this should be fine

질문됨 5년 전257회 조회
2개 답변
0

Just find if I put -F to end of the command there is no issue, so this is a false alarm.

답변함 5년 전
0

Thanks! Looks like you figured it out.

-I, --fpga-image-id",
" The ID of the FPGA image. agfi-<number>",

Which is why the command you had with "-I -F agfi-XXXXXXXXX" does not work.

AWS
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠