[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Petalinux Unofficial Bug Report
Hello,
I'm an Electrical Engineering student at the Rochester Institute of Technology. Over this past winter break I have been trying to put Petalinux on my Spartan 3e starter kit (Rev. D). I would like to share some of the problems I ran into while trying to get it to work. Hope this helps.
- Jose Torres
Problem 1
One of the first problems I ran into was when I tried to build petalogix under cygwin. I realize now that this isn't possible in the first release.
When I tried to run "petalinux-copy-autoconfig" I got an error saying realpath is not an executable binary. I coped the realpath from the cygwin /bin directory to the petalinux tools directory and it worked just fine.
Also, when the documentation states that I should run that command, it would be helpful to clarify that "petalinux-copy-autoconfig <myprojectname>.xmp" would also work. Before I knew this I had to rename my
system.xmp file.
Problem 2
Another problem is with the documentation. When it states that I need to run "make menuconfig" in the petalinux-dist folder, it never tells me that I need to rename the uclinux folder to "
linux-2.4.x" and copy it into the petalinux-dist folder.
Problem 3
There is a major problem during "make all" where it tried to read "
autoconf.h" but throws errors due to the way the file is formatted.
For example:
#define CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR (1
)
#define CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR (1
)
#define CONFIG_XILINX_MICROBLAZE0_UNALIGNED_EXCEPTIONS (0
)
When it should actually be:
#define CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR (1)
#define CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR (1)
#define CONFIG_XILINX_MICROBLAZE0_UNALIGNED_EXCEPTIONS (0)
I had to manually edit this file every time I ran "make menuconfig". I wrote a script that would copy the fixed file to the "petalinux-dist/linux-2.4.x/include/linux" folder.
Problem 4
The folder "petalinux-dist/board/pentalogix/microblaze-auto" is missing a file called "auto-config.h". I had to manually copy this file in order for it to build.
Problem 5
"PetaLinux\tools\linux-i386\microblaze-uclinux-tools\microblaze-uclinux\include" is missing a "asm" symlink to "asm-microblaze". I noticed this when "make all" threw an error saying that <asm/param.h> was missing.
Problem 6
I ran into an error with u-boot where after executing the command "autoscr $(fileaddr)" to execute
ub.config.img. It would say "cannot overwrite ethaddr". After searching around the internet for a while I found out that it is necessary to first set ethaddr to null with the command "setenv ethaddr="
Problem 7
Lastly, I tried running "coninfo" in uboot and was greeted with an infinite loop. Do not run this command at this time.