Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 05 Feb 2004 07:50 PM by  ajayb@renuelectronics.com
problem loading 'elf VMLINUX'
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
ajayb@renuelectronics.com
New Member
New Member
Posts:


--
31 Jan 2004 10:10 PM
    hi
    I have a 256 MB CF card, on which i have made the partitions as mentioned in teh readme and copied VMLINUX on the fat partition(bootable).
    when i try the command -
    load elf VMLINUX
    through tera term , I am getting the following error-
    (i have pasted the whole screen for reference)


    losh> mount fatfs /f
    act c h s type c h s lba sects
    part 0: 00 001 01 00 83 00e 30 7a 00000030 000159c0 unknown type
    part 1: 80 000 01 7b 06 00e 30 af 000159f0 00009510 FAT16 >32MB
    part 2: 00 000 00 00 00 000 00 00 00000000 00000000 empty
    part 3: 00 000 00 00 00 000 00 00 00000000 00000000 empty
    losh> cd /f
    losh> ls
    r: VMLINUX 1452824
    losh> load elf VMLINUX
    RAM
    ata_read: lba too big 109 at 1752426481
    fatfs_read: ata_read failed ffffffff
    error reading image file (0)
    elf boot failed.

    Can someone pls help.
    miket@logicpd.com
    New Member
    New Member
    Posts:


    --
    02 Feb 2004 11:33 AM
    maybe try switching the order of the partitions around, so the smaller FATFS
    partition is first on the disk and the linux fs second. the linux root image
    will turn into /dev/hda2 instead of /dev/hda1.
    ajayb@renuelectronics.com
    New Member
    New Member
    Posts:


    --
    02 Feb 2004 03:32 PM
    thanks for the reply.
    If i change the parition orders, will I need to do any changes to the build process (while building the bsp)?
    or it will work as it is?
    miket@logicpd.com
    New Member
    New Member
    Posts:


    --
    02 Feb 2004 05:06 PM
    i doubt it, you should just be able to pass in root=/dev/hda2 instead of root=/dev/hda1
    ajayb@renuelectronics.com
    New Member
    New Member
    Posts:


    --
    02 Feb 2004 07:05 PM
    sorry, I did realise it shud not give a problem.
    but i tried redoing the partitions.
    FAT 16 - 10M+
    Linux 45M+

    and now i am still getting the same error
    losh> mount fatfs /f
    act c h s type c h s lba sects
    part 0: 80 001 01 00 06 00e 30 1b 00000030 00004e90 FAT16 >32MB
    part 1: 00 000 01 1c 83 00e 30 b1 00004ec0 0001a5e0 unknown type
    part 2: 00 000 00 00 00 000 00 00 00000000 00000000 empty
    part 3: 00 000 00 00 00 000 00 00 00000000 00000000 empty
    losh> cd /f
    losh> ls
    r: VMLINUX 1452824
    losh> load elf VMLINUX
    RAM
    ata_read: lba too big 124 at 250767865
    fatfs_read: ata_read failed ffffffff
    error reading image file (0)
    elf boot failed.

    could the problem be with the creation of the boot image (vmlinux) or the CF card. or anything like i might now have enuf memeory to load the boot image on the card engine.
    Pls let me know wht seems likely?
    miket@logicpd.com
    New Member
    New Member
    Posts:


    --
    03 Feb 2004 04:40 PM
    i guess the most likely thing is that the elf image is incorrect
    somehow. use the arm-elf-objdump tool to see if the program
    header (which is what lolo uses to load an image) is correct.
    use the -x option. the offset should be non-zero.
    ajayb@renuelectronics.com
    New Member
    New Member
    Posts:


    --
    05 Feb 2004 07:50 PM
    this is the output of objdump it looks good enuf?
    I realy need to get this bsp working fast, is there somethign I can do?


    /opt/Embedix/bdk/lh79520/build/rpmdir/BUILD/linux/vmlinux: file format elf32-little
    /opt/Embedix/bdk/lh79520/build/rpmdir/BUILD/linux/vmlinux
    architecture: UNKNOWN!, flags 0x00000102:
    EXEC_P, D_PAGED
    start address 0x200c8000

    Program Header:
    LOAD off 0x00008000 vaddr 0x200c8000 paddr 0x200c8000 align 2**15
    filesz 0x00157c73 memsz 0x0017f39c flags rwx

    Sections:
    Idx Name Size VMA LMA File off Algn
    0 .init 00013000 200c8000 200c8000 00008000 2**5
    CONTENTS, ALLOC, LOAD, CODE
    1 .text 0012d2f8 200db000 200db000 0001b000 2**5
    CONTENTS, ALLOC, LOAD, READONLY, CODE
    2 .kstrtab 00003fbc 202082f8 202082f8 001482f8 2**2
    CONTENTS, ALLOC, LOAD, READONLY, DATA
    3 __ex_table 00000910 2020c2c0 2020c2c0 0014c2c0 2**3
    CONTENTS, ALLOC, LOAD, DATA
    4 __ksymtab 00001ed0 2020cbd0 2020cbd0 0014cbd0 2**2
    CONTENTS, ALLOC, LOAD, DATA
    5 .data 0000fc73 20210000 20210000 00150000 2**5
    CONTENTS, ALLOC, LOAD, DATA
    6 .bss 0002771c 2021fc80 2021fc80 0015fc80 2**5
    ALLOC
    7 .comment 00002cae 60000000 60000000 0015fc80 2**0
    CONTENTS, READONLY
    SYMBOL TABLE:
    no symbols
    You are not authorized to post a reply.