[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] using icap driver
Hello,
I've added the device node in the Linux kernel. I can see /dev/icap.
I now run into errors using "cat bitsream.bit > /dev/icap".
# cat /tmp/bistream/partial_add.bit > /dev/icap
/dev/icap: cannot create
#
Icap device node was created with read only access right.
# ls -l /dev/icap
crw-r--r-- 1 root 0 10, 200 Jan 1 00:00 /dev/icap
#
I can't change the device node permissions with chmod command.
# chmod 666 /dev/icap
/dev/icap: Read-only file system
#
I unsuccessfully tried to change it in the linux source (software/petalinux-dist/vendors/config/config.dev).
DEVICE_ICAP= -group=icap -mode=0666
DEVICE += $(DEVICE_ICAP) icap,c,10,200
Can anyone give hints on the way to change those permissions?
Thanks.
Jean-Loup
> -----Message d'origine-----
> De : LEROY Jean-Loup
> Envoyé : jeudi 12 avril 2007 13:55
> À : 'microblaze-uclinux@xxxxxxxxxxxxxx'
> Objet : RE: [microblaze-uclinux] using icap driver
>
> Thanks a lot. We've made the modification in the driver to support Virtex
> 4 devices. I've already read your paper about your icap driver. I'm going
> to add the node in the kernel and try again.
>
> Regards,
>
> Jean-Loup
>
> > -----Message d'origine-----
> > De : owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-
> > uclinux@xxxxxxxxxxxxxx] De la part de John Williams
> > Envoyé : jeudi 12 avril 2007 13:44
> > À : microblaze-uclinux@xxxxxxxxxxxxxx
> > Objet : Re: [microblaze-uclinux] using icap driver
> >
> > LEROY Jean-Loup wrote:
> >
> > > I add J.W's Icap driver to the petalinux kernel. I successfully build
> > > the kernel and then download it to my ML402 board.
> > >
> > > Then, what do I have to do? Do I have to load hwicap module with
> insmod
> > > command or something else?
> > >
> > > I can't see /dev/icap node.
> >
> > cat /proc/devices - or /proc/misc - it will tell you the major/minor
> > number of the icap driver. Or, look in the driver source itself.
> >
> > Then edit the file
> >
> > software/petalinux-dist/vendors/PetaLogix/common/common.mak
> >
> > and add a device node in the manner similar to the other ones there
> >
> > it will be something like
> >
> > DEVICES += icap,c,MAJ,MIN
> >
> > replacing MAJ/MIN with the correct major and minor numbers respectively.
> >
> > Rebuild the romfs and image targets, and now your system will boot with
> > a dev node for the icap.
> >
> > Be aware that the ICAP has changed with the V4 FPGA family - I have no
> > idea if the driver will still work. You should subscribe to the
> > partial-reconfig list (same server, just a different list), and ask
> there.
> >
> > I no longer use the driver, but I believe some people on the
> > partial-reconfig list are.
> >
> > If you haven't already, you should read the paper I wrote about the
> > driver, it will give you a lot more info (reprinted at linuxdevices.com
> > a couple of years ago):
> >
> > http://linuxdevices.com/articles/AT7708331794.html
> >
> > Regards,
> >
> > John
> >
> >
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@xxxxxxxxxxxxxx
> > Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> > Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-
> > uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/