I just tried to load my standard kernel from the boot blocks (instead of using loader(8)), but I either get a hang before the kernel prints anything, or a BTX halted. Is this still supposed to work in 6- stable, or has it finally disappeared? Thanks, Stefan -- Stefan Bethke <stb@lassitu.de> Fon +49 170 346 0140
On Sun, Sep 10, 2006 at 09:10:26PM +0200, Stefan Bethke wrote:> I just tried to load my standard kernel from the boot blocks (instead > of using loader(8)), but I either get a hang before the kernel prints > anything, or a BTX halted. Is this still supposed to work in 6- > stable, or has it finally disappeared?Without access to the device.hints (either from loader or compiled in) you won't have a working console (and possibly other devices), so the kernel may appear to hang while booting. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060910/31dfe564/attachment.pgp
On Sun, Sep 10, 2006 at 09:10:26PM +0200, Stefan Bethke wrote:> I just tried to load my standard kernel from the boot blocks (instead > of using loader(8)), but I either get a hang before the kernel prints > anything, or a BTX halted. Is this still supposed to work in 6- > stable, or has it finally disappeared?You may be able to get this to work, but it is unsupported. -- Brooks -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060911/a0bc53c2/attachment.pgp
On Thursday 26 October 2006 15:18, Ruslan Ermilov wrote:> On Thu, Oct 26, 2006 at 11:38:24AM -0400, John Baldwin wrote: > > On Thursday 26 October 2006 10:42, Ruslan Ermilov wrote: > > > On Thu, Oct 26, 2006 at 10:28:09AM -0400, John Baldwin wrote: > > > > boot2 should do whatever loader does. > > > > > > > But this would be a regression, since loader(8) does the following, > > > in the ELF32 case: > > > > > > : 0 edoofus:ttyp2:/sys/boot/i386/libi386 >grep -w entry elf32_freebsd.c > > > : vm_offset_t entry, bootinfop, modulep, kernend; > > > : entry = ehdr->e_entry & 0xffffff; > > > : printf("Start @ 0x%lx ...\n", entry); > > > : __exec((void *)entry, boothowto, bootdev, 0, 0, 0, bootinfop, modulep, kernend); > > > > Ah, ok. Make them both just mask the top 8 bits then. :) > > > OK, I backed out your change to boot2.c.Sorry, I meant that both boot2 and loader should follow your proposal of masking 28 bits. Just masking the top 4 bits is probably sufficient. -- John Baldwin