[meta-xilinx] How to verify that BITSTREAM is loaded...???

Alan DuBoff aland at softorchestra.com
Mon Feb 17 23:56:37 PST 2014


On Mon, February 17, 2014 10:35 pm, Mike Looijmans wrote:
> You can check in a shell script:
>      result=`cat /sys/devices/amba.[0123]/f8007000.devcfg/prog_done` if [
$result -ne 1 ]; then
>        echo "ERROR configuring FPGA, logic is not configured!"
>        exit 1
>      fi

Thanks, I'll just remember to check the prog_done to see what it in it. I have
0 in mine at the moment, so it didn't load it.

> I've been using /dev/xdevcfg from the beginning. The more natural place for
the bitstream is the root filesystem. Loading the bitstream from a
bootloader
> seems like a hack to me.

I agree that it seems more natural, I have only booted from flash in the past,
and that just seemed like a cleaner solution.

However, I agree with you in regard to being able to load logic at runtime. No
question that is convenient. What about using PL during the second stage boot
loader? You don't have that option with sysfs.

> And besides that, xdevcfg is the way to go to use partial configuration.

I need to use it before I comment possibly. I'm fairly new to using the zynq,
but this is my second project using one.

I notice some conflicting addresses in some of the tutorials.

Should the kernel be set for 0x800000 ? (using bootgen)

I've seen some of the tutorials using 0x300000, one was loading the devicetree
at 0x2a0000, ramdisk at 0x200000, and kernel at 0x300000. But somewhere I
thought I saw the kernel should be loaded at 0x800000...

-- 
Cheers,
Alan







More information about the meta-xilinx mailing list