owenson/tiny-linux-bootloader

Add support for initrd-less systems

KSPAtlas opened this issue · 1 comments

i have a distro with no initrd id like to try and setting initrd to /dev/null does not work

open the bsect.asm file and remove this portion of the code

;load initrd
    mov eax, 0x7fab000; this is the address qemu loads it at
    mov [highmove_addr],eax ; end of kernel and initrd load address
    ;mov eax, [highmove_addr] ; end of kernel and initrd load address
    ;add eax, 4096
    ;and eax, 0xfffff000
    ;mov [highmove_addr],eax ; end of kernel and initrd load address

    mov [es:0x218], eax
    mov edx, [initRdSize] ; ramdisk size in bytes
    mov [es:0x21c], edx ; ramdisk size into kernel header
    call loader

The bootloader will not load the initrd.