[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux] BINFMT_FLAT: reloc outside program 0x18c8000
Hi,
I had this problem for a few months, and I finally solved it.
Add this to your makefile:
FLTFLAGS += -v
And add this to the linker command line:
-elf2flt="$(FLTFLAGS)"
From there, you can observe the microblaze linker relocation output, and search for the offensive reloc address.
Rgds,
Victor Yeo
-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of gewent
Sent: Wednesday, October 24, 2007 1:14 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: [microblaze-uclinux] BINFMT_FLAT: reloc outside program 0x18c8000
Hi,
Thanks a lot to John and Benny. I got the board to boot almost to the
uClinux login prompt. It hangs with the following message.
Mounting proc:
BINFMT_FLAT: reloc outside program 0x18c8000 (0 - 0x4f534/0x34bc0),
killing mount!
I think it's something to do with the RAM size of some memory
configure issue. I experimented with "make real_clean" but this
problem still happens. Any suggestion is appreciated.
Thanks,
gewent
======================
HW/SW configuration
======================
Spartan-3E Starter Kit Rev.D (with XC3S500)
Linux version 2.4.32-uco
uClinux source is from xapp934 (VMWare+Centos 3.x+2.4x uclinux)
Microblaze 6.00.b
uClinux BSP v1.00d
ISEwebpack 9.1, With all service pack (Windows version)
XPS9.1, With all service pack (Windows version)
Microblaze passes the simple memory test apps.
======================
==============================
Partial Kernel boot log
==============================
dow -data image.bin 0x44000000
con 0x44000000
.......
.......
.......
Linux NET4.0 for
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0x40600000 (irq = 2) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0x40000000 mapped to 0x40000000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
eth0: using fifo mode.
eth0: Xilinx EMAC #0 at 0x40C00000 mapped to 0x40C00000, irq=1
eth0: id 2.0l; block id 11, type 1
MicroBlaze auto-config ram probe(0x4416b0a0,847872,4): cf000 at 4416b0a0
Creating 1 MTD partitions on "RAM":
0x00000000-0x000cf000 : "Romfs"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Freeing init memory: 56K
Mounting proc:
BINFMT_FLAT: reloc outside program 0x18c8000 (0 - 0x4f534/0x34bc0),
killing mount!
====================================
On 10/22/07, John Williams <jwilliams@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> gewent wrote:
>
> > I noticed my linux-2.4.x/incude/linux/autoconfig.h has the old
> > addresses and not updated each time I do a make???
> >
> > The file "auto-config.in" in directory
> > linux-2.4.x/arch/microblaze/platform/uclinux-auto/ is up to date.
> >
> > What tool do I use to force update of "autoconfig.h" from "auto-config.in"??
>
> In PetaLinux, this is done automatically when you use the
> petalinux-copy-autoconfig tool, however in your case you can do
>
> $ yes "" | make oldconfig
>
> from the uClinux-dist directory.
>
> Regards,
>
> John
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/