This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Close but no cigar


So I've got GRUB installed on my flash drive, figured I'd see if I could get the to work first, and work backwards. Long story short, Grub won't load my redboot.elf file.

In menu.lst I added

#
# Start Redboot
#
title Redboot (ECOS)
root (hd0,0,a)
kernel /ecos/redboot
savedefault

I've also got FreeBSD on the flash now (proved to myself Grub could boot something) and its an alternative option.

When I select redboot I get the message
-------------------------------------------------------------
root(hd0,0,a)
  Filesystem type is ufs2, partition type is 0xa5

kernel /ecos/redboot.elf
[Multiboot-elf, <0x108000:0xdd80:0x73c4>, shtab=0x11e2a8(bad)

Error 28: Selected item cannot fit into memory

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

Basically created a basic redboot with
ecosconfig new pc redboot

edited ecos.ecc and added GRUB startup option then
ecosconfig tree
gmake

(no errors reported)

And transferred the resulting redboot.elf file over to the flash. An objdump on my FreeBSD machine shows :

demon - % objdump -h redboot.elf

redboot.elf: file format elf32-i386-freebsd

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .vectors      00000000  00108000  00108000  0000ed80  2**0
                  CONTENTS
  1 .text         0000b472  00108000  00108000  00001000  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .fini         00000000  00113474  00113474  0000ed80  2**0
                  CONTENTS
  3 .rodata1      00000000  00113478  00113478  0000ed80  2**0
                  CONTENTS
  4 .rodata       00002230  00113478  00113478  0000c478  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .fixup        00000000  001156a8  001156a8  0000ed80  2**0
                  CONTENTS
  6 .gcc_except_table 00000000  001156a8  001156a8  0000ed80  2**0
                  CONTENTS
  7 .data         000006d8  001156a8  001156a8  0000e6a8  2**5
                  CONTENTS, ALLOC, LOAD, DATA
  8 .sbss         00000000  00115d80  00115d80  0000ed80  2**0
                  CONTENTS
  9 .bss          000073c4  00115d80  00115d80  0000ed80  2**5
                  ALLOC
 10 .stab         000210d8  00000000  00000000  0000ed80  2**2
                  CONTENTS, READONLY, DEBUGGING
 11 .stabstr      000147aa  00000000  00000000  0002fe58  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .comment      00000384  00000000  00000000  00044602  2**0
                  CONTENTS, READONLY
demon - %


Any thoughts?


--Chuck




-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]