Forum Discussion

hhshsh's avatar
hhshsh
Icon for New Contributor rankNew Contributor
7 years ago

Unable to read file u-boot.scr

2 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello hhshsh,

    Would you let me know how did you create this scr file?

    I have seen this issue before, and it was due to my wrong compilation of the txt file to scr. I did modify the original scr file and made it unreadable.

    The script file u-boot.scr was obtained with the following procedure

    1. On host PC, create text file u-boot.txt with the following contents:

    fatload mmc 0:1 $fpgadata soc_system.rbf;

    fpga load 0 $fpgadata $filesize;

    run bridge_enable_handoff;

    run mmcload;

    run mmcboot;

    2. Add the U-boot header to the u-boot.txt script file to create the

    u-boot.scr file:

    $mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "My script" -d u-boot.txt u-boot.scr

    3. Write the file on the SD card.

    please let me know if this can help. If not, I can send you a sample scr file.

    Thanks