Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of using F1 RTL after a rule has been added to the security group to allow access to the SSH port

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to use f1 RTL after rules have been added to the security group to allow SSH port access? This problem may be our daily study or work often see. I hope you learned something from this question. The following is the reference content brought to you by Xiaobian. Let's take a look together!

Use f1 RTL

This article describes how to use f1 RTL (Register Transfer Level).

Description:

All operations described in this article must be performed by the same account in the same region.

It is highly recommended that you use RAM users to operate FaaS instances. To prevent accidental actions, you need to let RAM users perform only necessary actions. When operating FPGA mirroring and downloading, because you need to download the original DCP project from the specified OSS Bucket, you must create a role for the FaaS administrative account and grant temporary permissions for the FaaS administrative account to access the specified OSS Bucket. If IP encryption is required, RAM users must be granted KMS-related permissions. If permission checking is required, permission to view user resources must be granted.

prerequisite

Create an instance of f1, ensure that the instance can access the public network, and that rules have been added to the security group where the instance is located to allow access to SSH (22) port.

Note: f1 instances can only use FaaS F1 base mirrors for mirror marketplaces. For more information, see Creating f1 Instances.

You are logged into the ECS admin console, and on the details page of the f1 instance, get the instance ID.

You must first turn on the OSS service and create an OSS Bucket to upload your files. Bucket and f1 instance must belong to the same account and region.

If encryption services are required, you will also need to turn on Key Management Services (KMS).

To operate the FPGA using RAM, the user must complete the following operations:

Create RAM users and authorize them.

Create RAM roles and authorise them.

Get AccessKey ID and AccessKey Secret.

operation steps

Follow these steps to use f1 RTL.

Step 1. Remote connection f1 instance

Remotely connect to Linux instances.

Step 2. Configure the base environment

Run the following script to configure the base environment.

source /opt/dcp1_0/script/f1_env_set.sh

Step 3. compilation engineering

Run the following command:

cd /opt/dcp1_0/hw/samples/dma_afurun.sh

Note: Compilation time is long, please wait patiently.

Step 4. create an image

Follow these steps to create a mirror image:

Run the command to initialize faascmd.

#Add environment variables and run permissions if needed export PATH=$PATH:/opt/dcp1_0/script/chmod +x /opt/dcp1_0/script/faascmd#Replace hereIsYourSecretId with your AccessKey ID, hereIsYourSecretKey with your AccessKey Secretfaascmd config --id=hereIsYourSecretId --key=hereIsYourSecretKey#Replace hereIsYourBucket with OSS Bucket Name faascmd auth --bucket=hereIsYourBucket in East China 1 Region

Make sure you upload the gbs file by running the following command in the directory/opt/dcp1_0/hw/samples/dma_afu.

faascmd upload_object --object=dma_afu.gbs --file=dma_afu.gbs

Run the following command to create an image.

#Replace hereIsYourImageName with your mirror name faascmd create_image --object=dma_afu.gbs --fpgatype=intel --name=hereIsYourImageName --tags=hereIsYourImageTag --encrypted=false --shell=V0.11

Step 5. download mirror

Follow these steps to download the mirror to the f1 instance:

To check if the image was successfully created, run faascmd list_images.

In the returned result, if "State":"success" appears, it means that the mirror is successfully made. Please note the FpgaImageUUID displayed in the returned result, which will be used later.

Run the command to get the FPGA ID.

#Replace hereIsYourInstanceId with your f1 instance IDfaascmd list_instances --instanceId=hereIsYourInstanceId

The following are the results returned. Please note FpgaUUID.

Run the command Download FPGA image to f1 instance.

#replace hereIsYourInstanceID with the instance ID you just saved; replace hereIsFpgaUUID with the FpgaUUID you wrote down in the previous command; replace hereIsImageUUID

Replace with FpgaImageUUID noted in previous step

faascmd download_image --instanceId=hereIsYourInstanceID --fpgauuid=hereIsFpgaUUID --fpgatype=intel --imageuuid=hereIsImageUUID --imagetype=afu --shell=V0.11

Run the command to check if the download was successful.

#Replace hereIsYourInstanceID with the instance ID you just saved; replace hereIsFpgaUUID with the FpgaUUID noted in the previous command;faascmd fpga_status --instanceId=hereIsYourInstanceID --fpgauuid=hereIsFpgaUUID

If "TaskStatus":"operating" appears in the returned result, and the FpgaImageUUID is consistent with the FpgaImageUUID when downloading the image, it means that the download is successful.

Step 6. test

Run the following commands in sequence.

cd /opt/dcp1_0/hw/samples/dma_afu/swmakesudo LD_LIBRARY_PATH=/opt/dcp1_0/hw/samples/dma_afu/sw:$LD_LIBRARY_PATH ./ fpga_dma_test 0

If you see the output shown in the figure, the test is complete.

Thank you for reading! After reading the above content, do you have a general understanding of the method of using f1 RTL after adding rules to the security group to allow access to SSH ports? I hope the content of this article is helpful to everyone. If you want to know more about related articles, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report