LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   compiling linux kernel for microblaze softcore virtex6 (https://www.linuxquestions.org/questions/linux-software-2/compiling-linux-kernel-for-microblaze-softcore-virtex6-4175595024/)

samirkuxd 12-08-2016 12:05 AM

compiling linux kernel for microblaze softcore virtex6
 
1 Attachment(s)
compiling linux kernel for microblaze stopped at below point I have configured linux kernel by menuconfig
here is the commands I used

export CROSS_COMPILE=/home/gnutools/microblazeel-unknown-linux-gnu/bin/microblazeel-unknown-linux-gnu-
make ARCH=microblaze clean
make ARCH=microblaze mrproper
make ARCH=microblaze menuconfig
make -j 8 ARCH=microblaze simpleImage.xilinx

----------------------------------------------------------------------------------------
AS arch/microblaze/kernel/mcount.o
CC arch/microblaze/kernel/kgdb.o
AS arch/microblaze/kernel/entry.o
LD arch/microblaze/kernel/built-in.o
AS arch/microblaze/kernel/head.o
arch/microblaze/kernel/head.S: Assembler messages:
arch/microblaze/kernel/head.S:68: Error: register expected, but saw 'rslr,r'
arch/microblaze/kernel/head.S:68: Error: register expected, but saw 'slr,r0'
arch/microblaze/kernel/head.S:68: Fatal error: invalid value for special purpose register
scripts/Makefile.build:327: recipe for target 'arch/microblaze/kernel/head.o' failed
make[1]: *** [arch/microblaze/kernel/head.o] Error 1
Makefile:959: recipe for target 'arch/microblaze/kernel' failed
make: *** [arch/microblaze/kernel] Error 2
tty@rom:~/$

---------------------------------------------------------------------------------------

Ztcoracat 12-08-2016 09:47 PM

The only thing I could find remotely close to your make error was this post.
https://ez.analog.com/thread/39708

Quote:

I used linux toolchain inside the xilinx installation directory(.../Xilinx/14.4/ISE_DS/EDK/gnu/microblaze/linux_toolchain) instead of git repository, and my problem go away
https://forums.xilinx.com/t5/Embedde...or/td-p/412865

If something is broken I honestly don't know what it is and with make errors there could be an error in the file itself or an array things. Sorry I don't know more.

Look through the Microblaze WiKi
http://xilinx.wikidot.com/microblaze-linux

Linux for MicroBlaze
The kernel configuration needs to be modified to match the MicroBlaze settings as specified in <hardware project>/implementation/system.mhs:

Ensure that you have the 'Tools' required and 'Environment Variables'
http://www.wiki.xilinx.com/Build+kernel


All times are GMT -5. The time now is 07:42 PM.