Project

General

Profile

make_sd.sh doesn't take command line parameters

Added by Maxim Kanevsky 29 days ago

We are trying to build the sd card image using documentation from https://support.criticallink.com/redmine/projects/mitysom_a5/wiki/Building_sd_2531pro

We are are using the git reference from https://support.criticallink.com/gitweb/?p=mitysom-a5e-ref.git;a=summary

Here are our environment variables :
export BUILD_PATH="/home/kanevsky/mitysom-a5e-ref/mitysom-a5e-ref-dma"
export TAR_PATH="/home/kanevsky/mitysom-a5e-ref/poky/build/tmp/work/mity_a5e-mitysom-linux/mitysom-image-base/1.0/deploy-mitysom-image-base-image-complete"

Here is the output of our console.

kanevsky@fpga-sm:~/mitysom-a5e-ref/mitysom-a5e-ref-dma/scripts$ sh make_sd.sh -a -o sd_card.img -d Agilex5 -f $BUILD_PATH/software/bootloader/u-boot-socfpga/u-boot.itb -f boot.scr -f config_pll.scr -r $BUILD_PATH/rootfs_overlay $TAR_PATH/mitysom-image-base-mity-a5e.rootfs.tar.gz

make_sd.sh: 88: [: yes: unexpected operator
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.331955 s, 3.2 GB/s
Creating partitions
Copying in rootfs
Copying in FAT files
Copying in root fs overlay
make_sd.sh: 208: [: Y: unexpected operator
make_sd.sh: 213: [: Y: unexpected operator


Replies (28)

RE: make_sd.sh doesn't take command line parameters - Added by Zachary Miller 20 days ago

Hi Max,

Apologies on the delay for your first question, my colleague who's more familiar with the DMA example is looking into that now. I'm not sure yet when we'll have an answer for you, but he is able to (intermittently) reproduce the RX failure here.

Regarding the dtbs, yes, these warnings are okay. They're from compiling Altera's device trees, so they're not really within our ability to fix, but our dev kits don't use the affected dtbs, so the warnings are harmless. You don't see them the second time because the build system knows those device trees haven't changed, so it doesn't have to recompile them.

Zach

RE: make_sd.sh doesn't take command line parameters - Added by Maxim Kanevsky 1 day ago

Hello Zach,

We are back to test DMA example design.
Do you have any update regarding the failure that we saw??

Thanks,
Max

RE: make_sd.sh doesn't take command line parameters - Added by Mike Fiorenza 1 day ago

Hi Max,

As mentioned in the HPS/FPGA Shared Memory thread the data errors you saw were caused by a bug in my xor data generator core. This will be resolved in our next release which hopefully should be in the next few weeks.

If you do not use my data generator and use your own data generation instead, this would be a non issue. I also have a few other tweaks planned for this example in the upcoming release that address cache maintenance fixes in my kernel shim / DMA write response support. Nothing that will prevent you from passing some buffers back and fourth between the HPS / FPGA for now but overall maintenance improvements.

- Mike

(26-28/28) Go to top
Add picture from clipboard (Maximum size: 1 GB)