2014-07-04 08:25:02

by Jean-Michel Hautbois

[permalink] [raw]
Subject: Lattice ECP3 load firmware

Hi !

I noticed you (Stefan) are using request_firmware_nowait() call. This
means user needs to explicitly call it using

$ echo 1 > /sys/class/firmware/lattice-ecp3.0/loading
$ cat lattice-ecp3.bit > /sys/class/firmware/lattice-ecp3.0/data
$ echo 0 > /sys/class/firmware/lattice-ecp3.0/loading

Or did I miss something ?
I would like to have it load the firmware bitstream when booting if
there is a specific .bit file in /lib/firmware. Maybe don't you want
to have this behaviour, though... ?

Thanks,
JM


2014-07-04 08:40:26

by Stefan Roese

[permalink] [raw]
Subject: Re: Lattice ECP3 load firmware

Hi Jean-Michel,

On 04.07.2014 10:24, Jean-Michel Hautbois wrote:
> I noticed you (Stefan) are using request_firmware_nowait() call. This
> means user needs to explicitly call it using
>
> $ echo 1 > /sys/class/firmware/lattice-ecp3.0/loading
> $ cat lattice-ecp3.bit > /sys/class/firmware/lattice-ecp3.0/data
> $ echo 0 > /sys/class/firmware/lattice-ecp3.0/loading
>
> Or did I miss something ?

No, thats correct. This is how we use it on our platform.

> I would like to have it load the firmware bitstream when booting if
> there is a specific .bit file in /lib/firmware. Maybe don't you want
> to have this behaviour, though... ?

No. We don't want this. Please don't ask me about the details. Its quite
a while ago that I worked on this platform. And I don't have access to
this platform any more.

Thanks,
Stefan