Re: gptzfsboot error using HP Smart Array P410i Controller

From: Christoph Hoffmann <christoph_hoffmann_at_me.com>
Date: Mon, 22 Aug 2011 14:58:50 +0200
Hello Everybody,

As per Dimitry request, please find set of gzip'ed zfsboot.s files (61223 bytes).
 
Due to size of the attachments which exceeded 200 KB, the original message 
has been rejected. 

Thank you very much indeed for your help and I am sorry of this spam. 

Regards,

Christoph



--
Christoph Hoffmann

On Aug 22, 2011, at 12:23 PM, Christoph Hoffmann wrote:

> Hello Dimitry,
> 
> Please find attached zfsboot.s files. 
> 
> Thank you very much indeed for your help.
> 
> Best Regards,
> 
> Christoph
> 
> <zfsboot.s.orig-order><zfsboot.s.re-ordered>
> 
> --
> Christoph Hoffmann
> 
> On Aug 21, 2011, at 12:03 AM, Dimitry Andric wrote:
> 
>> On 2011-08-18 18:30, Christoph Hoffmann wrote:
>> ...
>>> Changing the order of execution in zfsboot.c main() function to
>>> 
>>> […]
>>> int
>>> main(void)
>>> {
>>> […]
>>>    bios_getmem();
>>> 
>>>    if (high_heap_size>  0) {
>>> […]
>>>    bootinfo.bi_version = BOOTINFO_VERSION;
>>>    bootinfo.bi_size = sizeof(bootinfo);
>>>    bootinfo.bi_basemem = bios_basemem / 1024;
>>>    bootinfo.bi_extmem = bios_extmem / 1024;
>>>    bootinfo.bi_memsizes_valid++;
>>> /*  bootinfo.bi_bios_dev = dsk->drive; */
>>>    bootinfo.bi_bios_dev = *(uint8_t *)PTOV(ARGS);
>>> 
>>>    dsk = malloc(sizeof(struct dsk));
>>>    dsk->drive = *(uint8_t *)PTOV(ARGS);
>>>    dsk->type = dsk->drive&  DRV_HARD ? TYPE_AD : TYPE_FD;
>>>    dsk->unit = dsk->drive&  DRV_MASK;
>>>    dsk->slice = *(uint8_t *)PTOV(ARGS + 1) + 1;
>>>    dsk->part = 0;
>>>    dsk->start = 0;
>>>    dsk->init = 0;
>>> 
>>>    bootdev = MAKEBOOTDEV(dev_maj[dsk->type],
>>>                          dsk->slice, dsk->unit, dsk->part),
>>> […]
>>> 
>>> 
>>> fixes the problem.
>> 
>> Can you please use -save-temps to save the intermediate zfsboot.s files,
>> both before and after you change this order, then post them here?  It's
>> easiest to just do:
>> 
>> DEBUG_FLAGS=-save-temps make -C /usr/src/sys/boot/i386/gptzfsboot clean all
>> 
>> then save /usr/obj/usr/src/sys/boot/i386/gptzfsboot/zfsboot.s somewhere.
>> 
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> 
Received on Mon Aug 22 2011 - 10:58:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:17 UTC