[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] help with build of uCLinux for Xilinx XUP board, with EDK 7.1.1
Hi,
I just tried a build of uCLinux (recent CVS checkout, kernel 2.4.x,
20050215 patches applied) for the Xilinx XUP board, with EDK 7.1.1.,
on a Linux Fedora Core 3 system.
1. Since the compiler is new (mb-gcc 3.4.1) a few little changes in
source code were necessary:
- in linux-2.4.x/include/asm-microblaze/unistd.h:
#define SYSCALL_CLOBBERS "cc", "r4", "r11", "r14"
since "r3" and "r12" are used for return value and syscall number,
and mb-gcc 3.4.1 balks at this.
- in user/busybox/modutils/insmod.c, I needed to
#define __microblaze__
which the compiler does not seem to do.
- in user/net-tools/hostname.c, user/net-tools/lib/inet_sr.c and
user/sysutils/ps.c there were some points where a label in a block
without an instruction behind was not accepted, like
{
case 1: x++; break;
case 2: y++; break;
default:
}
2. Had to
mkdir -p romfs/lib/modules/2.4.29-uc1/kernel
hope that was the intention.
3. Now my build is almost done, but it stops at:
mb-flthdr -z /home/krish/edk/xup-uclinux/uclinux-src/uClinux-dist
/romfs/bin/*
Cannot read header of /home/krish/edk/xup-uclinux/uclinux-src/
uClinux-dist/romfs/bin/[
zflat /home/krish/edk/xup-uclinux/uclinux-src/uClinux-dist/romfs/bin
agetty --> /home/krish/edk/xup-uclinux/uclinux-src/uClinux-dist/
romfs/bin/agetty
can't run cmd gzip -9 -f >> /tmp/flatF92eni
Which gives me a sinking feeling.
Can anybody help me or give a hint?
Tx, Kris.
--
Kris Heyrman, Hogeschool Gent, Belgium
The primary purpose of the DATA statement is to give names to constants;
instead of referring to pi as 3.141592653589793 at every appearance, the
variable PI can be given that value with a DATA statement and used instead
of the longer form of the constant. This also simplifies modifying the
program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/