zhemao / zhemao.github.com

Github pages page
http://zhemao.github.com
Other
4 stars 1 forks source link

building the kernel (No rule to make target 'uImage') #10

Closed scottwilson46 closed 10 years ago

scottwilson46 commented 10 years ago

Hi, I am following the steps in part II for building linux for the sockit and am stuck on building the kernel. When I run: armmake uImage LOADADDR=0x8000

I get:


*\ Configuration file ".config" not found!


* Please run some configurator (e.g. "make oldconfig" or * "make menuconfig" or "make xconfig").


/home/saw/work/sockit/linux_sockit/linux-socfpga/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed make[2]: * [silentoldconfig] Error 1 /home/saw/work/sockit/linux_sockit/linux-socfpga/Makefile:503: recipe for target 'silentoldconfig' failed make[1]: * [silentoldconfig] Error 2 make: *\ No rule to make target 'uImage'. Stop.

Regards, Scott

zhemao commented 10 years ago

I think you just forgot to choose the configuration first.

armmake socfpga_defconfig
scottwilson46 commented 10 years ago

This seemed to work, must have missed a step: make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm socfpga_defconfig

I also get a load of questions when I run armmake -j2 uImage LOADADDR=0x8000

it seems to want to restart config...

$ armmake -j2 uImage LOADADDR=0x8000 scripts/kconfig/conf --silentoldconfig Kconfig *

This looks like it hasn't pulled in the config that was created in the previous step?

On Thu, Feb 6, 2014 at 5:39 PM, Howard Mao notifications@github.com wrote:

I think you just forgot to choose the configuration first.

armmake socfpga_defconfig

Reply to this email directly or view it on GitHubhttps://github.com/zhemao/zhemao.github.com/issues/10#issuecomment-34349052 .

zhemao commented 10 years ago

Wait, do you have armmake aliased correctly? Your output makes it seem like you are building an x86 kernel instead of an ARM kernel.

scottwilson46 commented 10 years ago

Hi, You were right, there was something wrong with my alias. I fi ijust ran:

make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm uImage LOADADDR=0x8000

it all sees to get going. Many thanks for your help so far.

Regards, Scott

On Fri, Feb 7, 2014 at 10:39 PM, Howard Mao notifications@github.comwrote:

Wait, do you have armmake aliased correctly? Your output makes it seem like you are building an x86 kernel instead of an ARM kernel.

Reply to this email directly or view it on GitHubhttps://github.com/zhemao/zhemao.github.com/issues/10#issuecomment-34515345 .

zhemao commented 10 years ago

No problem. Hope you have fun with the SoCKit.