Hello, Muhammad and roberbot,
I thing the best way to learn programming FPGA and all about it is following the following article at RocketBoards: https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide. It is really well written, even if it has not cautch the latest changes of Linux kernel. Another very good source for beginners are guides for their board and their Golder Reference Software or Hardware Designes, e.g. here: https://rocketboards.org/foswiki/Documentation/AlteraSoCDevelopmentBoard
Roberbot is right, loading RBF files at boot-time is usualy the most suitable way. Everything about it is described at the linked article as well. The only trick would be that You need to place Yours RBF file onto FAT partition of the SD card and name it “soc_system.rbf”. As You will learn the base, You can find out how to load different RBF files via different names, from different partitions of SD card or even how to load them while Operating system running (I written the last possibility at the forum https://forum.rocketboards.org/t/problem-with-fpga2hps-bridge/990/11. Yours operating systems needs config filesystem enabled and mounted, however.).
The loading of RBF file with bootloader, as described at linked articles, is done by das U-Boot bootloader on the base of its script - You will observe its content and generation at the Embedded Linux Beginners Guided linked above. The same (default) U-Boot script is placed at FAT partition of Yours reference SDcard content.
Can I ask You, Muhammad, how is not allowed copying RBF file to Your SD card? This is the right way for doing this operation. At Windows host computer, You only need to copy the RBF file onto FAT partition with Explorer or Total Commander, e.g. At Linux host computer, You need to copy it onto FAT partition (not EXT2/3/4 partition!) and You even need not SuperUser (=root) permissions.
WinSCP is really the best way for transfering files to Your board (WinSCP from Windows or scp command from Linux). But You need mounted FAT partition of Yours SD card, which is not so easy task for beginners. I do not want to complicate it here more, so I recommend You to copy RBF file from host computer, now. Or do You Muhammad observe any obstacles during this?
PS: To answer Yours question: to permit root login via SSH for WinSCP could be done as follow (for OpenSSH package):
- open configuration file /etc/ssh/sshd_config at Your board with yours text editor (e.g. vi, nano, … which You have)
- find the line “# PermitRootLogin prohibit-password” and change it to “PermitRootLogin yes”.
- save the changes
- Now, You should be able to connect with WinSCP as root. No restart is needed.
This procedure is described at manual of OpneSSH package https://www.openssh.com/