[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mcm_boot: "Bootloader corrupt..."




Sirs, 

After having prepared a boot image (...make kernel...make images), when trying to boot an MCM-based board I get the following error message:

-------------------------
[sergio@xxxxxxx./mcm_boot
* size is 2710981 0x00295dc5
Using internal boot loader: INTERNAL - As DBG0 (default).
Bootloader corrupt. Should contain nops but dont. d3f3800
-------------------------

What does it means ? Do you see any obvious mistakes ?

My setup:

Host: Red Hat Linux 8.0
cris-dist-1.22.tar.gz
devboard sw: 2.1.0
Linux 2.4.14 (to be upgraded to 2.4.19 as soon as I get past this issue)
with MCM Patch

A similar setup works flawlessy on another development system.

I found the error message in this file:

lx210/axis/devboard_lx/tools/e100boot/sbl/e100boot.c

----------------

    /* Ignore the first two nops */
    st.st_size -= 4;
    buf += 4;

    if (*(udword*)&buf[size_pos] != 0x050fb67f) {
      printf("Bootloader corrupt. Should contain nops but dont. %x\n", *(udword*)&buf[size_pos]);
      exit(1);
    }
    *(udword*)(&buf[size_pos]) = st.st_size - DATA_SIZE; /* How much data to load except data in
                                                            first packet. */
    if (db3) printf("Inserting boot size 0x%x at 0x%x.\n", (unsigned int)st.st_size - DATA_SIZE,
                    (unsigned int)&buf[size_pos]);

    if (*(udword*)&buf[addr_pos] != 0x050fb67f) {
      printf("Bootloader corrupt. Should contain nops but dont.\n");
      exit(1);
    }

--------------------

Thanks,

	Sergio

-- 
______________________________________________________________________
Sergio Ruocco   CS PhD student    mailto:sergio.ruocco@xxxxxxx.it
building U7, 4th floor, room 472  UniversitÓ Statale di Milano-Bicocca
via Bicocca degli Arcimboldi 8               phone: ++39  02 6448 7874
20126 Milano                                  cell: ++39  347  2519828