grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are BSD partitions not supported?


From: C. P. Ghost
Subject: Re: Are BSD partitions not supported?
Date: Wed, 19 May 2010 21:12:10 +0200

2010/5/19 Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden>:
>> /usr/local/bin/gcc44 -o kernel.img kernel_img-kern_i386_pc_startup.o
>> kernel_img-kern_i386_misc.o kernel_img-kern_main.o
>> kernel_img-kern_device.o kernel_img-kern_disk.o kernel_img-kern_dl.o
>> kernel_img-kern_file.o kernel_img-kern_fs.o kernel_img-kern_err.o
>> kernel_img-kern_misc.o kernel_img-kern_mm.o kernel_img-kern_term.o
>> kernel_img-kern_rescue_parser.o kernel_img-kern_rescue_reader.o
>> kernel_img-kern_time.o kernel_img-kern_list.o
>> kernel_img-kern_handler.o kernel_img-kern_command.o
>> kernel_img-kern_corecmd.o kernel_img-kern___target_cpu__dl.o
>> kernel_img-kern_i386_pc_init.o kernel_img-kern_i386_pc_mmap.o
>> kernel_img-kern_parser.o kernel_img-kern_partition.o
>> kernel_img-kern_i386_tsc.o kernel_img-kern_i386_pit.o
>> kernel_img-kern_generic_rtc_get_time_ms.o
>> kernel_img-kern_generic_millisleep.o kernel_img-kern_env.o
>> kernel_img-term_i386_pc_console.o kernel_img-term_i386_vga_common.o
>> kernel_img-symlist.o -nostdlib -static-libgcc  -m32
>> -Wl,--build-id=none -lgcc  -nostdlib -Wl,-N  -Wl,-Ttext,0x8200 -mrtd
>> -mregparm=3
>> /usr/local/bin/ld: skipping incompatible
>> /usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd8.0/4.4.4/libgcc.a when
>> searching for -lgcc
>> /usr/local/bin/ld: skipping incompatible /usr/lib/libgcc.a when
>> searching for -lgcc
>> /usr/local/bin/ld: cannot find -lgcc
>> collect2: ld returned 1 exit status
>> gmake: *** [kernel.img] Error 1
>>
> Normally you need 32-bit libgcc. As a test build you can just remove
> -lgcc but this isn't supported.

Ah, okay. If I remove -lgcc manually, everything compiles.

This is what I get now (after reformatting the partition with newfs):

phenom# grub-install --root-directory=/mnt --modules=ufs2 /dev/md5555
/usr/local/sbin/grub-setup: warn: Your embedding area is unusually
small.  core.img won't fit in it..
/usr/local/sbin/grub-setup: warn: Embedding is not possible.  GRUB can
only be installed in this setup by using blocklists.  However,
blocklists are UNRELIABLE and their use is discouraged..
/usr/local/sbin/grub-setup: error: if you really want blocklists, use --force.

Using --force:

phenom# grub-install --force --root-directory=/mnt --modules=ufs2 /dev/md5555
/usr/local/sbin/grub-setup: warn: Your embedding area is unusually
small.  core.img won't fit in it..
/usr/local/sbin/grub-setup: warn: Embedding is not possible.  GRUB can
only be installed in this setup by using blocklists.  However,
blocklists are UNRELIABLE and their use is discouraged..
Installation finished. No error reported.

If I boot now with qemu:

% qemu -hda bsddisk.img
GRUB loading...
Welcome to GRUB!

error: no such partition.
Entering rescue mode...
grub rescue> _

I compressed the image again: here it is now:

http://www.cordula.ws/tempdir/bsddisk_2.7z

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]