Eric W. Biederman wrote:
>>[root@ollie winfast-elf]# nm linuxbios |grep stream
>>0008514c r doc_mil_stream
>>0008515c R estreams
>>0008514b R streams
>>
>
> Nope streams != doc_mil_stream
>
> So adding the alignment is definentily necessary. It looks like
> my linuxBIOS builds were just lucky.
>
With ELF image like this
ollie mkelfImage 48:objdump -h elfImage
elfImage: file format elf32-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000795 00050000 00050000 00001000 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .rodata 000000ab 00050795 00050795 00001795 2**5
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .data 0000000c 00050840 00050840 00001840 2**2
CONTENTS, ALLOC, LOAD, DATA
3 .bss 00004014 0005084c 0005084c 0000184c 2**5
ALLOC
4 .nokill 0000002c 00091000 00091000 00002000 2**0
CONTENTS, ALLOC, LOAD, CODE
5 .kernel 00154660 00100000 00100000 00003000 2**0
CONTENTS, ALLOC, LOAD, DATA
I got
Welcome to elfboot, the open sourced starter.
January 2002, Eric Biederman.
Version 0.99999
init doc mil
43:fill_inbuf() - ram buffer:0x00007a08
53:fill_inbuf() - nvram:0x00010000 block_count:0
Found ELF candiate at offset 0
Clearing Section: addr: 0x000000000005084c memsz: 0x0000000000004014
Loading Section: addr: 0x0000000000050000 memsz: 0x0000000000004860
filesz: 0x000000000000084c
dest 00050000
end 00054860
len 2124
middle 329804
start_offset 4096
elfboot skip 0
elfboot read to 0005084c size 0
Loading Section: addr: 0x0000000000091000 memsz: 0x000000000000002c
filesz: 0x000000000000002c
dest 00091000
end 0009102c
len 44
middle 593964
start_offset 8192
elfboot skip 0
elfboot read to 00091000 size 44
Loading Section: addr: 0x0000000000100000 memsz: 0x0000000000154660
filesz: 0x0000000000154660
dest 00100000
end 00254660
len 1394272
middle 2442848
start_offset 12288
elfboot skip 4052
elfboot read to 00100000 size 1394272
53:fill_inbuf() - nvram:0x00020000 block_count:1
53:fill_inbuf() - nvram:0x00030000 block_count:2
53:fill_inbuf() - nvram:0x00040000 block_count:3
53:fill_inbuf() - nvram:0x00050000 block_count:4
53:fill_inbuf() - nvram:0x00060000 block_count:5
53:fill_inbuf() - nvram:0x00070000 block_count:6
53:fill_inbuf() - nvram:0x00080000 block_count:7
53:fill_inbuf() - nvram:0x00090000 block_count:8
53:fill_inbuf() - nvram:0x000a0000 block_count:9
53:fill_inbuf() - nvram:0x000b0000 block_count:10
53:fill_inbuf() - nvram:0x000c0000 block_count:11
53:fill_inbuf() - nvram:0x000d0000 block_count:12
53:fill_inbuf() - nvram:0x000e0000 block_count:13
53:fill_inbuf() - nvram:0x000f0000 block_count:14
53:fill_inbuf() - nvram:0x00100000 block_count:15
53:fill_inbuf() - nvram:0x00110000 block_count:16
53:fill_inbuf() - nvram:0x00120000 block_count:17
53:fill_inbuf() - nvram:0x00130000 block_count:18
53:fill_inbuf() - nvram:0x00140000 block_count:19
53:fill_inbuf() - nvram:0x00150000 block_count:20
53:fill_inbuf() - nvram:0x00160000 block_count:21
Jumping to boot code
EXT_MEM_K=0x00000000
ALT_MEM_K=0x00000000
But the kernel is not started at all. Any idea ??
Ollie