UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor npatil15
Visitor
5,468 Views
Registered: ‎06-14-2016

Error while compiling kernel for Zybo

HI everyone,

 

I.m trying to build OS on Zybo board but stuck on compiling kernel source code,

I got Source code from here, https://github.com/Xilinx/linux-xlnx

Compile like below,

make ARCH=arm CROSS_COMPILE=arm-xilinx-linux-gnueabi- uImage

Here is the error

make[1]: *** No rule to make target `block/genhd.o', needed by `block/built-in.o'.  Stop

I don't understand how do I get over it,

 

Please help me,

 

Thanking you in advanced

Tags (3)
0 Kudos
3 Replies
Observer brix
Observer
5,460 Views
Registered: ‎05-22-2016

Re: Error while compiling kernel for Zybo

What does the command ls -l block/genhd.c say?

0 Kudos
Visitor npatil15
Visitor
5,433 Views
Registered: ‎06-14-2016

Re: Error while compiling kernel for Zybo

First of all thanks to take attention towards my problem,

 

After typing this in kernel folder

ls -l block/genhd.h

it gives me this, i.e., no file found

ls: cannot access block/genhd.c: No such file or directory

So, shall I download that file copy their to resolve it ?

 

0 Kudos
Observer brix
Observer
5,416 Views
Registered: ‎05-22-2016

Re: Error while compiling kernel for Zybo

Well, the upstream Git repository, you are referring to, contains the file in question (I take it you meant to write genhd.c, not genhd.h):

https://github.com/Xilinx/linux-xlnx/blob/master/block/genhd.c

 

This implies that your local checkout is incomplete at best. I would suggest checking the sources out again.

0 Kudos