[okl4-developer] cryptic error message from elfweaver?

Geoff White netengadmin at gmail.com
Mon May 26 15:17:25 EST 2008


On Sun, May 25, 2008 at 8:33 PM, Josh Matthews <jmatthews at ok-labs.com>
wrote:

> Hi Geoff,
>
> On Sat, May 24, 2008 at 3:48 PM, Geoff White <netengadmin at gmail.com>
> wrote:
>
>>
>> I'm trying to add a rather large app to the OKLinux side of things and it
>> seems that I'm dying in the final linking phase...
>>
>> make: Leaving directory
>> `/home/okl4user/okl4_2.1/oklinux_2.6.23.21/kernel-2.6.23-v2'
>> [XML ] build/images/weaver.xml
>> [ELF ] build/images/image.elf
>> Error: Physical pool "physical": Could not place %(this_item)s within
>> %(distance)#x bytes of %(last_item)s.
>> scons: *** [build/images/image.elf] Error 1
>>
>
> The most likely cause of this error is that the kernel and the kernel heap
> are being positioned too far apart - they must be within 64 MiB, and if an
> app greater than that is somehow being put down in between this error will
> result.
>
> How are defining the app in the build system? eg: are you defining your own
> SConscript, or leveraging the Iguana example app framework, or hacking
> weaver.xml directly?
>


Well, I have my own  SConscript but it is patterned after one of yours.
I'm definitely not hacking weaver.xml.
I'm trying to add erlang as an app :)  I was quite successful doing this
with scsh (Scheme) so I figured that I'd give Erlang a whirl since a
somewhat light weight Erlang VM would be pretty useful in a VMware
environment.  I think the app as it stands, is jut too darn BIG :)

>
>
> Could you post your weaver.xml? That would allow us to pinpoint the problem
> exactly.
>
> Best regards,
> Josh Matthews
>


Sure, here it is...


<?xml version="1.0"?>
<!DOCTYPE image SYSTEM "weaver-1.1.dtd">
<image>
    <machine>
        <word_size size="0x20" />
        <virtual_memory name="virtual">
            <region base="0x200000" size="0x3fe00000" />
        </virtual_memory>
        <physical_memory name="system_dram">
            <region base="0x0" size="0xa000" type="dedicated" />
        </physical_memory>
        <physical_memory name="bios">
            <region base="0xf0000" size="0x10000" type="dedicated" />
        </physical_memory>
        <physical_memory name="rom_expansion">
            <region base="0xc0000" size="0x30000" type="dedicated" />
        </physical_memory>
        <physical_memory name="physical">
            <region base="0x100000" size="0x7f00000" type="conventional" />
        </physical_memory>
        <phys_device name="timer_dev">
            <interrupt name="int_timer0" number="0" />
        </phys_device>
        <phys_device name="serial_dev">
            <interrupt name="int_serial0" number="4" />
        </phys_device>
        <phys_device name="rtc_dev">
        </phys_device>
        <page_size size="0x1000" />
        <page_size size="0x400000" />
    </machine>
    <physical_pool name="system_dram" direct="true">
        <memory src="system_dram" />
    </physical_pool>

    <virtual_pool name="virtual">
        <memory src="virtual" />
    </virtual_pool>

    <physical_pool name="bios" direct="true">
        <memory src="bios" />
    </physical_pool>

    <physical_pool name="rom_expansion" direct="true">
        <memory src="rom_expansion" />
    </physical_pool>

    <physical_pool name="physical" direct="true">
        <memory src="physical" />
    </physical_pool>

    <kernel file="/home/okl4user/okl4_2.1/build/pistachio/bin/kernel"
xip="false" >
        <dynamic max_threads="0x400" />
        <config>
            <option key="root_caps" value="4096"/>
        </config>
    </kernel>

    <rootprogram
file="/home/okl4user/okl4_2.1/build/iguana_server/bin/ig_server"
virtpool="virtual" physpool="physical" >
    </rootprogram>

    <program name="event"
file="/home/okl4user/okl4_2.1/build/iguana/bin/event" priority="200"
server="OKL4_EVENT_SERVER" >
    </program>

    <program name="vtimer"
file="/home/okl4user/okl4_2.1/build/iguana/bin/vtimer" priority="240"
server="OKL4_VTIMER_SERVER" >
        <virt_device name="vtimer0" />
        <virt_device name="vtimer1" />
        <environment>
            <entry key="TIMER_RESOURCE" cap="/dev/timer_dev" />
        </environment>
    </program>

    <program name="vserial"
file="/home/okl4user/okl4_2.1/build/iguana/bin/vserial" priority="110"
server="OKL4_VSERIAL_SERVER" >
        <virt_device name="vserial0" />
        <environment>
            <entry key="SERIAL_RESOURCE" cap="/dev/serial_dev" />
            <entry key="VTIMER" cap="/dev/vtimer0" />
        </environment>
    </program>

    <program name="vrtc"
file="/home/okl4user/okl4_2.1/build/iguana/bin/vrtc" priority="240"
server="OKL4_VRTC_SERVER" >
        <environment>
            <entry key="RTC_RESOURCE" cap="/dev/rtc_dev" />
        </environment>
    </program>

    <program name="vmlinux"
file="/home/okl4user/okl4_2.1/build/iguana/wombat/vmlinux"
server="OKL4_VMLINUX" >
        <stack size="0x2000" />
        <heap size="0x1400000" user_map="true" />
        <commandline>
            <arg value="vmlinux"/>
            <arg value="igms_name=ramdisk root=/dev/igms0"/>
        </commandline>
        <memsection name="rootfs"
file="/home/okl4user/okl4_2.1/build/linux/ext2ramdisk" size="149094400"
virt_addr="0x9050000" />
        <memsection name="vmalloc" size="0x400000" virt_addr="0x11e80000"
cache_policy="default" />
        <environment>
            <entry key="VTIMER" cap="/dev/vtimer1" />
            <entry key="VSERIAL" cap="/dev/vserial0" />
        </environment>
    </program>

</image>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20080525/bf15abff/attachment-0001.htm 


More information about the Developer mailing list