Forums » Software Development »
make_sd.sh doesn't take command line parameters
Added by Maxim Kanevsky about 2 months 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 (33)
RE: make_sd.sh doesn't take command line parameters - Added by Zachary Miller about 1 month 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 25 days 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 25 days 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
RE: make_sd.sh doesn't take command line parameters - Added by Mike Fiorenza 11 days ago
Hi Max,
I just wanted to follow up and tell you that I have published a new DMA reference design to our repository and updated the Wiki page A5E-DMA-Example
Let me know if you have any questions regarding the updated design.
- Mike
RE: make_sd.sh doesn't take command line parameters - Added by Maxim Kanevsky 2 days ago
Hello Mike,
Thanks for this update.
Just to make sure, I just need to pull latest update from the following repository:
pro_25.3.1_stable git://support.criticallink.com/home/git/mitysom-a5e-ref.git
Thanks,
Max
RE: make_sd.sh doesn't take command line parameters - Added by Mike Fiorenza 2 days ago
Max,
That is correct! And check out my latest updates to the Wiki page for it as well: https://support.criticallink.com/redmine/projects/mitysom_a5/wiki/A5E-DMA-Example
Let me know if you run into any issues!
- Mike
RE: make_sd.sh doesn't take command line parameters - Added by Samuel Paul about 22 hours ago
We have tried the new DMA driver and FPGA.
We have the following situation on each reboot.
The first test pass.
The second and third test fail.
The fourth hangs.
Is it expected behavior ?
Thank you for your time,
Samuel 
| MitySOM 2026-06-11.txt (2.18 KB) MitySOM 2026-06-11.txt |
RE: make_sd.sh doesn't take command line parameters - Added by Mike Fiorenza about 21 hours ago
Hi Samuel,
Did you follow the instructions here and are still seeing this issue: https://support.criticallink.com/redmine/projects/mitysom_a5/wiki/A5E-DMA-Example#The-application-hangs-or-reports-errors-on-the-second-and-later-runs
- Mike
- « Previous
- 1
- 2
- Next »