Re: [Discuss OpenCPI] Programming SD card for Zed

From: Jerry Darko <jerry.darko_at_cnftech.com>
Date: Wed, 25 Sep 19 15:03:32 +0000

Peter,

If believe "cp -rL" is what you're looking for, for the symlink issue. The -L option: "always follow symbolic links in SOURCE". The platform specific getting starting guides tell you to use cp -rL when copying the opencpi directory within the sdcard directory. For example the ZedBoard Getting Starting Guide says for xilinx13_3 run:
cp -rL /opt/opencpi/cdk/zed/sdcard-xilinx13_3/opencpi run/media/<user>/<partition>/



Regards,

Jerry
________________________________
From: discuss <discuss-bounces_at_lists.opencpi.org> on behalf of James Kulp <jek_at_parera.com>
Sent: Wednesday, September 25, 2019 10:46 AM
To: Miller, Peter <PeterM_at_signalscape.com>; discuss_at_lists.opencpi.org <discuss_at_lists.opencpi.org>
Subject: Re: [Discuss OpenCPI] Programming SD card for Zed

I have certainly had problems with symlinks when mounting a "host" file
system into a VM. I solve it by always using NFS, even between a VM and
its host.
I'm not sure that is your issue...

Yes, that is the intention of that directory.

I'm actually doing something similar later today to test some new FPGA
loading code...

Jim





On 9/25/19 10:39 AM, Miller, Peter wrote:
> Do you confirm that copying from /opt/opencpi/cdk/zed/sdcard-xilinx13_4/* is correct?
> Media is write-able - this issue with sym links is a VM problem and I wondered if you had a simple workaround. I'll either chase it down or go to a native linux machine to copy it.
>
> Sincerely,
> Peter B. Miller
> Potomac: (301) 765-9668
>
> -----Original Message-----
> From: discuss <discuss-bounces_at_lists.opencpi.org> On Behalf Of James Kulp
> Sent: Wednesday, September 25, 2019 10:32 AM
> To: discuss_at_lists.opencpi.org
> Subject: Re: [Discuss OpenCPI] Programming SD card for Zed
>
> This is a source-install vs. rpm-install issue, and the docs should be clearer about this distinction. This is in fact a current work item.
>
> If looks like the /media was mounted read-only?
>
> Both RPM and source installations should allow you to do this.
>
> Not sure what the "VM symbolic link issue" is. Other email?
>
>
>
> On 9/25/19 10:21 AM, Miller, Peter wrote:
>> Installed using the instructions at https://www.opencpi.org/services
>> * sudo yum install yum-utils epel-release
>> * sudo yum-config-manager --add-repo=http://opencpi.github.io/repo/opencpi.repo
>> * sudo yum install 'opencpi*'
>> To prepare the Zed SD card, instructions in https://opencpi.github.io/OpenCPI_Installation.pdf Page 23 say:
>> " ...OpenCPI source tree, its path is: projects/core/rcc/platforms/xilinx13_4"
>> which is not there. Instead I find the desired content at:
>> "/opt/opencpi/cdk/zed/sdcard-xilinx13_4"
>>
>> The specified procedure to copy to SD in a CentOS7 VM fails:
>> $ sudo cp -r /opt/opencpi/cdk/zed/sdcard-xilinx13_4/*
>> /media/sf_SD_card
>> cp: cannot create symbolic link
>> '/media/sf_SD_card/opencpi/xilinx13_4/bin/ntpd': Read-only file system
>> cp: cannot create symbolic link
>> '/media/sf_SD_card/opencpi/xilinx13_4/lib/libgmp.so': Read-only file
>> system
>> cp: cannot create symbolic link
>> '/media/sf_SD_card/opencpi/xilinx13_4/lib/libgmp.so.10': Read-only
>> file system
>> cp: cannot create symbolic link
>> '/media/sf_SD_card/opencpi/xilinx13_4/lib/libgmpxx.so': Read-only file
>> system
>> cp: cannot create symbolic link
>> '/media/sf_SD_card/opencpi/xilinx13_4/lib/libgmpxx.so.4': Read-only
>> file system
>> cp: cannot create symbolic link
>> '/media/sf_SD_card/opencpi/xilinx13_4/lib/liblzma.so': Read-only file
>> system
>> cp: cannot create symbolic link
>> '/media/sf_SD_card/opencpi/xilinx13_4/lib/liblzma.so.5': Read-only file system Resulting SD card won't boot the Zedboard.
>>
>> Q1. Is the Installation Guide just out of date regarding the location of the content to copy to the SD card?
>> Q2. Any suggestions for the VM symbolic link copy issue?
>> Q3. Better to install from source as in "OpenCPI_Installation" rather than from RPMs?
>>
>> Sincerely,
>> Peter B. Miller
>> Potomac: (301) 765-9668
>>
>> --------------------------- This email and any files transmitted with it are confidential and intended solely for the use of Signalscape, Inc. and the addressed individual or entity. If you have received this email in error please delete it. Information in this email may be subject to the Privacy Act of 1974 and any unauthorized review, use, disclosure, or distribution is strictly prohibited. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
>> -------------- next part -------------- An HTML attachment was
>> scrubbed...
>> URL:
>> <http://lists.opencpi.org/pipermail/discuss_lists.opencpi.org/attachme
>> nts/20190925/6d8acfb1/attachment.html>
>> _______________________________________________
>> discuss mailing list
>> discuss_at_lists.opencpi.org
>> http://lists.opencpi.org/mailman/listinfo/discuss_lists.opencpi.org
>
>
> _______________________________________________
> discuss mailing list
> discuss_at_lists.opencpi.org
> http://lists.opencpi.org/mailman/listinfo/discuss_lists.opencpi.org
> --------------------------- This email and any files transmitted with it are confidential and intended solely for the use of Signalscape, Inc. and the addressed individual or entity. If you have received this email in error please delete it. Information in this email may be subject to the Privacy Act of 1974 and any unauthorized review, use, disclosure, or distribution is strictly prohibited. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



_______________________________________________
discuss mailing list
discuss_at_lists.opencpi.org
http://lists.opencpi.org/mailman/listinfo/discuss_lists.opencpi.org


Received on Wed Sep 25 2019 - 15:03:32 CDT

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT