Как привильно собирать в /usr/src?

syn аватар

в /usr/src сказал так...
./build.sh -m i386 -j4 -T /usr/src/tools -O /usr/obj -u tools
в итоге получаю такое...

updating cache ../config.cache
creating ./config.status

*** Failed target:  .configure_done
*** Failed command: (cd build && CC=cc CFLAGS=-O CPPFLAGS= CXX=c++ CXXFLAGS=-O INSTALL=/usr/src/tools/bin/nbinstall\
-c\ -p\ -r LDFLAGS= AR=ar RANLIB=ranlib LEX=/usr/src/tools/bin/nblex MAKE=/usr/src/tools/bin/nbmake\
PATH="/usr/src/tools/bin:$PATH" YACC=/usr/src/tools/bin/nbyacc sh /usr/src/tools/gcc/../../gnu/dist/gcc/configure\
--target=i386--netbsdelf --disable-nls --enable-long-long --disable-multilib --enable-threads\
--program-transform-name="s,^,i386--netbsdelf-,"\
--enable-languages="c c++ objc f77" --prefix=/usr/src/tools)
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/gcc

*** Failed target:  dependall
*** Failed command: cd /usr/src/tools/gcc; /usr/src/tools/bin/nbmake realall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools/gcc

*** Failed target:  dependall-gcc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/";\
real="${dir}" ;; .) this=""; real="/usr/src/tools" ;; *) this="${dir}/"; real="/usr/src/tools/${dir}" ;; esac;\
show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/tools/bin/nbmake\
_THISDIR_="${this}" "$@" ${target}; }; _makedirtarget gcc dependall
*** Error code 1

Stop.
nbmake: stopped in /usr/src/tools

что не так?

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".
syn аватар

В итоге таки

В итоге таки собралось, странно, но только после очередного квс_а.
Собрал ядро XEN3_DOM0, постаивл, бесконечно перезагружается с ним, как только наступает
начало бута сервак ребутится, потом по новой. Конфиг ядра не трогал, Сервак поддерждиват
Виртуализацию, включал/выключал - без толку, все равно ребутиться.
Кто-нибуть запускал Дом0 на 4.99?? Или не Бета?

syn аватар

Собрал свой

Собрал свой конифг ядра, сборка ломается так

mmon/lib/libc/arch/i386/string  -I/usr/src/sys/dist/pf  -c vers.c
--- netbsd ---
#      link  GENERIC.MP/netbsd
/usr/src/tooldir/bin/i386--netbsdelf-ld -Map netbsd.map --cref -T
/usr/src/sys/arch/i386/conf/kern.ldscript -Ttext c0100000 -e start -X -o netbsd
${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
ioconf.o:(.data+0x3608): undefined reference to `stfattach'
*** [netbsd] Error code 1
1 error

nbmake: stopped in /usr/obj/obj_dir/sys/arch/i386/compile/GENERIC.MP

ERROR: Failed to make all in /usr/obj/obj_dir/sys/arch/i386/compile/GENERIC.MP
*** BUILD ABORTED ***

конфиг..
#  cat /usr/src/sys/arch/i386/conf/GENERIC| grep -vE '^(#.*|\s*)$'
include         "arch/i386/conf/std.i386"
options         I486_CPU
options         I586_CPU
options         I686_CPU
options         ENHANCED_SPEEDSTEP
options         POWERNOW_K7
options         POWERNOW_K8
options         NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM
options         WS_KERNEL_FG=WSCOL_GREEN
options         PCKBD_CNATTACH_MAY_FAIL
options         PCDISPLAY_SOFTCURSOR
options         VGA_CONSOLE_ATI_BROKEN_FONTSEL
options         WSDISPLAY_SCROLLSUPPORT
config          netbsd  root on ? type ?
mainbus0 at root
cpu* at mainbus?
ioapic* at mainbus?
acpi0           at mainbus0
wsmouse*        at spic?
vald* at acpi?
pci*    at mainbus? bus ?
pci*    at pchb? bus ?
pci*    at ppb? bus ?
gpio*   at elansc?
agp*    at pchb?
isa0    at piixpcib?
isa0    at mainbus?
isa0    at pceb?
isa0    at pcib?
pcmcia* at pcic? controller ? socket ?
pcmcia* at tcic? controller ? socket ?
mca0    at mainbus?
pcic0   at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
pcic1   at isa? port 0x3e2 iomem 0xe0000 iosiz 0x4000
pcic2   at isa? port 0x3e4 iomem 0xe0000 iosiz 0x4000
tcic0   at isa? port 0x240 iomem 0xd0000 iosiz 0x10000
pcic0   at pci? dev? function ?
isapnp0 at isa?
pcic*   at isapnp?
cbb*            at pci? dev ? function ?
cardslot*       at cbb?
cardbus*        at cardslot?
pcmcia*         at cardslot?
vga0            at isa?
vga*            at pci? dev ? function ?
wsdisplay*      at vga? console ?
wsdisplay*      at pcdisplay? console ?
wskbd*          at pckbd? console ?
wsmouse*        at pms? mux 0
attimer0        at isa?
pcppi0          at isa?
sysbeep0        at pcppi?
com1    at isa? port 0x2f8 irq 3
com2    at isa? port 0x3e8 irq 5
lpt1    at isa? port 0x278
lpt2    at isa? port 0x3bc
scsibus* at scsi?
wdc*    at isapnp?
wdc*    at pcmcia? function ?
wdc0    at isa? port 0x1f0 irq 14 flags 0x00
wdc1    at isa? port 0x170 irq 15 flags 0x00
atabus* at ata?
wd*     at atabus? drive ? flags 0x0000
atapibus* at atapi?
ed*     at edc?
le*     at nele?
le*     at bicc?
ne1     at isa? port 0x300 irq 10
we1     at isa? port 0x300 iomem 0xcc000 irq 10
usb*    at ehci?
usb*    at ohci?
usb*    at uhci?
uhub*   at usb?
uhub*   at uhub? port ?
uhidev* at uhub? port ? configuration ? interface ?
ums*    at uhidev? reportid ?
wsmouse* at ums? mux 0
uep*    at uhub? port ?
wsmouse* at uep? mux 0
ukbd*   at uhidev? reportid ?
wskbd*  at ukbd? console ? mux 1
ucycom* at uhidev? reportid ?
uhid*   at uhidev? reportid ?
ulpt*   at uhub? port ? configuration ? interface ?
umodem* at uhub? port ? configuration ?
ucom*   at umodem?
umass*  at uhub? port ? configuration ? interface ?
wd*     at umass?
uirda* at uhub? port ? configuration ? interface ?
irframe* at uirda?
ustir* at uhub? port ?
irframe* at ustir?
upl*    at uhub? port ?
ucom*   at ubsa? portno ?
ucom*   at uftdi? portno ?
ucom*   at uipaq? portno ?
ucom*   at umct? portno ?
ucom*   at uplcom? portno ?
ucom*   at uvscom? portno ?
urio*   at uhub? port ?
uvisor* at uhub? port ?
ucom*   at uvisor?
ukyopon* at uhub? port ?
ucom*   at ukyopon? portno ?
uscanner* at uhub? port ?
utoppy* at uhub? port ?
uyap* at uhub? port ?
udsbr*  at uhub? port ?
radio*  at udsbr?
ugen*   at uhub? port ?
options UGEN_BULK_RA_WB
oboe*   at pci? dev ? function ?
irframe* at oboe?
opl*    at cmpci? flags 1
opl*    at eso?
opl*    at fms?
opl*    at sb?
opl*    at sv?
opl*    at wss?
opl*    at yds?
opl*    at ym?
audio*  at audiobus?
mpu*    at isapnp?
mpu*    at cmpci?
mpu*    at eso?
mpu*    at fms?
mpu*    at sb?
mpu*    at yds?
mpu*    at ym?
midi*   at midibus?
ubt* at uhub? port ?
bthub* at bt3c?
bthub* at btuart?
bthub* at ubt?
bthidev* at bthub?
btms* at bthidev? reportid ?
wsmouse* at btms? mux 0
btkbd* at bthidev? reportid ?
wskbd* at btkbd? console ? mux 1
btsco* at bthub?
lms1    at isa? port 0x238 irq 5
mms1    at isa? port 0x238 irq 5
wsmouse*        at lms? mux 0
wsmouse*        at mms? mux 0
weasel* at pci?
include "arch/i386/conf/GENERIC.local"
pseudo-device   wsfont
pseudo-device   veriexec
options VERIFIED_EXEC_FP_RMD160
options VERIFIED_EXEC_FP_SHA256
options VERIFIED_EXEC_FP_SHA384
options VERIFIED_EXEC_FP_SHA512
options VERIFIED_EXEC_FP_SHA1
options VERIFIED_EXEC_FP_MD5

asau аватар

Очень не

Очень не советую править то, что лежит в дереве, лучше сделать
свой, отдельный файл. А так можно словить проблемы с тем, что
доступа к сети нет, а GENERIC --- правленный.

> options I486_CPU
> options I586_CPU

Ты собираешься когда-нибудь сидеть под старыми процессорами?

> options POWERNOW_K7
> options POWERNOW_K8

У тебя который AMD?

> options NFS_BOOT_DHCP,NFS_BOOT_BOOTPARAM

У тебя большая сетка с NFS?

> lpt1 at isa? port 0x278
> lpt2 at isa? port 0x3bc

Сколько у тебя принтеров?
У тебя вообще --- разъёмы есть эти? Ты туда что-нибудь втыкаешь?

> wdc0 at isa? port 0x1f0 irq 14 flags 0x00
> wdc1 at isa? port 0x170 irq 15 flags 0x00

И много у тебя этого музейного барахла?

> opl* at cmpci? flags 1
> opl* at eso?
> opl* at fms?
...
> opl* at ym?
> mpu* at isapnp?
> mpu* at cmpci?
...
> mpu* at ym?

Давно у тебя MIDI-синтезатор?

> lms1 at isa? port 0x238 irq 5
> mms1 at isa? port 0x238 irq 5

Ты вообще хоть раз видел такие мыши?

У тебя система на ISA? EISA?
Если нет, тогда зачем тебе эта поддержка?

> ioconf.o:(.data+0x3608): undefined reference to `stfattach'

Потри объектники и попробуй с чистого места.
Кстати, ядро какое, HEAD?

asau аватар

Лучше всего

Лучше всего начинать изучать сборку ядра с чистки.
Загружаешь штатное GENERIC, GENERIC.MP, смотришь dmesg,
запоминаешь, что у тебя там есть. Всё, чего нет и чего не
требуется, подтираешь. Собираешь ядро, добавляешь излишне
стёртое, перезагружаешься, смотришь, чего удалил лишнего,
добавляешь, перезагружаешься. Ну и так далее.

Очень советую изучить RCS: man rcs, man ci, man co.

syn аватар

почистил,

почистил, выключил ИСА и ЕИСА, выключил то что выше, теперь такое...

--- mca_machdep.d ---
/usr/src/sys/arch/i386/mca/mca_machdep.c:210:2: error: #error mca_intr_(dis)establish: needs ISA to be configured into kernel
nbmkdep: compile failed.
*** [mca_machdep.d] Error code 1
1 error

nbmake: stopped in /usr/obj/obj_dir/sys/arch/i386/compile/GENERIC.MP

ERROR: Failed to make depend in /usr/obj/obj_dir/sys/arch/i386/compile/GENERIC.MP
*** BUILD ABORTED ***

asau аватар

>

> /usr/src/sys/arch/i386/mca/mca_machdep.c:210:2: error: #error mca_intr_(dis)establish: needs ISA to be configured into kernel

$ wtf mca
MCA, mca_intr_establish, mca_intr_disestablish, mca_intr_evcnt, mca_conf_read, mca_conf_write (9) - MicroChannel Architecture bus
mca (4) - introduction to machine-independent MCA bus support and drivers
$ whatis mca
MCA, mca_intr_establish, mca_intr_disestablish, mca_intr_evcnt, mca_conf_read, mca_conf_write (9) - MicroChannel Architecture bus
mca (4) - introduction to machine-independent MCA bus support and drivers

Google for "mca bus", и ты придёшь сюда:
http://www.pcguide.com/ref/mbsys/buses/types/olderMCA-c.html

"With the PS/2 now discontinued, MCA is dead on the PC platform"

Как видишь, это не настолько сложно.

syn аватар

М, да, окаазлось

М, да, окаазлось в небсд граздо сложнее собрать ядро под свой конфиг.

#      link  GENERIC.MP/netbsd
/usr/src/tooldir/bin/i386--netbsdelf-ld -Map netbsd.map --cref -T /usr/src/sys/arch/i386/conf/kern.ldscript
 -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
ioconf.o:(.data+0x27a8): undefined reference to `stfattach'
ioconf.o:(.rodata+0xf10): undefined reference to `sysbeep_ca'
kern_clock.o: In function `statclock':
kern_clock.c:(.text+0x1d4): undefined reference to `setstatclockrate'
kern_clock.c:(.text+0x30a): undefined reference to `setstatclockrate'
lapic.o: In function `lapic_calibrate_timer':
lapic.c:(.text+0x440): undefined reference to `gettick'
lapic.c:(.text+0x471): undefined reference to `gettick'
lapic.c:(.text+0x491): undefined reference to `gettick'
lapic.c:(.text+0x4a9): undefined reference to `gettick'
lapic.c:(.text+0x4c9): undefined reference to `rtclock_tval'
lapic.c:(.text+0x619): undefined reference to `initrtclock'
pciide_machdep.o: In function `pciide_machdep_compat_intr_establish':
pciide_machdep.c:(.text+0x46): undefined reference to `isa_intr_establish'
autoconf.o: In function `cpu_configure':
autoconf.c:(.text+0x7): undefined reference to `startrtclock'
machdep.o:(.data+0x20): undefined reference to `i8254_delay'
machdep.o:(.data+0x24): undefined reference to `i8254_initclocks'
identcpu.o: In function `cyrix6x86_cpu_setup':
identcpu.c:(.text+0xaa9): undefined reference to `clock_broken_latch'
pcic_pci_machdep.o: In function `pcic_pci_machdep_pcic_intr_establish':
pcic_pci_machdep.c:(.text+0x63): undefined reference to `isa_intr_alloc'
pcic_pci_machdep.c:(.text+0xb9): undefined reference to `isa_intr_establish'
cpu.o: In function `cpu_hatch':
cpu.c:(.text+0x3af): undefined reference to `npxinit'
i82365_isasubr.o: In function `pcic_isa_chip_intr_disestablish':
i82365_isasubr.c:(.text+0x1d): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_chip_intr_establish':
i82365_isasubr.c:(.text+0xc2): undefined reference to `isa_intr_alloc'
i82365_isasubr.c:(.text+0x11a): undefined reference to `isa_intr_establish'
i82365_isasubr.o: In function `pcic_isa_count_intr':
i82365_isasubr.c:(.text+0x274): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_probe_interrupts':
i82365_isasubr.c:(.text+0x3da): undefined reference to `isa_intr_alloc'
i82365_isasubr.c:(.text+0x4a3): undefined reference to `isa_intr_establish'
i82365_isasubr.c:(.text+0x580): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_config_interrupts':
i82365_isasubr.c:(.text+0x81f): undefined reference to `isa_intr_establish'
i82365_isasubr.c:(.text+0x8b7): undefined reference to `isa_intr_alloc'
mpu_acpi.o: In function `mpu_acpi_attach':
mpu_acpi.c:(.text+0x146): undefined reference to `isa_intr_establish'
acpi_wakeup.o: In function `acpi_md_sleep':
acpi_wakeup.c:(.text+0x5f6): undefined reference to `npxinit'
acpi_wakeup.c:(.text+0x60c): undefined reference to `initrtclock'
*** [netbsd] Error code 1

Может я чего лишнего заремарил?
include         "arch/i386/conf/std.i386"
options         INCLUDE_CONFIG_FILE     # embed config file in kernel binary
maxusers        32              # estimated number of users
options         I686_CPU
makeoptions     CPUFLAGS="-march=i486 -mtune=pentiumpro" # Assume at least 486,
                                                        # tune for more modern
options         USER_LDT        # user-settable LDT; used by WINE
options         ENHANCED_SPEEDSTEP
options         MTRR            # memory-type range register syscall support
options         MULTIBOOT       # Multiboot support (see multiboot(8))
options         CPURESET_DELAY=2000
options         INSECURE        # disable kernel security levels - X needs this
options         RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
options         NTP             # NTP phase/frequency locked loop
                                # Improves time behavior under VMware.
options         KTRACE          # system call tracing via ktrace(1)
options         SYSVMSG         # System V-like message queues
options         SYSVSEM         # System V-like semaphores
options         SEMMNI=512      # number of semaphore identifiers
options         SEMMNS=1024     # number of semaphores in system
options         SEMMNU=512      # number of undo structures in system
options         SYSVSHM         # System V-like memory sharing
options         SHMMAXPGS=59400 # 2048 pages is the default
options         P1003_1B_SEMAPHORE      # p1003.1b semaphore support
options         LKM             # loadable kernel modules
options         USERCONF        # userconf(4) support
options         SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
options         DDB             # in-kernel debugger
options         DDB_HISTORY_SIZE=512    # enable history editing in DDB
options         COMPAT_NOMID    # NetBSD 0.8, 386BSD, and BSDI
options         COMPAT_09       # NetBSD 0.9
options         COMPAT_10       # NetBSD 1.0
options         COMPAT_11       # NetBSD 1.1
options         COMPAT_12       # NetBSD 1.2, 386BSD, and BSDI
options         COMPAT_13       # NetBSD 1.3, 386BSD, and BSDI
options         COMPAT_14       # NetBSD 1.4
options         COMPAT_15       # NetBSD 1.5
options         COMPAT_16       # NetBSD 1.6
options         COMPAT_20       # NetBSD 2.0
options         COMPAT_30       # NetBSD 3.0
options         COMPAT_43       # 4.3BSD, 386BSD, and BSDI
options         COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility
options         COMPAT_SVR4     # binary compatibility with SVR4
options         COMPAT_IBCS2    # binary compatibility with SCO and ISC
options         COMPAT_LINUX    # binary compatibility with Linux
options         COMPAT_FREEBSD  # binary compatibility with FreeBSD
options         COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
file-system     FFS             # UFS
file-system     EXT2FS          # second extended file system (linux)
file-system     LFS             # log-structured file system
file-system     MFS             # memory file system
file-system     NFS             # Network File System client
file-system     NTFS            # Windows/NT file system (experimental)
file-system     CD9660          # ISO 9660 + Rock Ridge file system
file-system     MSDOSFS         # MS-DOS file system
file-system     FDESC           # /dev/fd
file-system     KERNFS          # /kern
file-system     NULLFS          # loopback file system
file-system     OVERLAY         # overlay file system
file-system     PORTAL          # portal filesystem (still experimental)
file-system     PROCFS          # /proc
file-system     UMAPFS          # NULLFS + uid and gid remapping
file-system     UNION           # union file system
file-system     CODA            # Coda File System; also needs vcoda (below)
file-system     SMBFS           # experimental - CIFS; also needs nsmb (below)
file-system     PTYFS           # /dev/ptm support
file-system     TMPFS           # Efficient memory file-system
options         QUOTA           # UFS quotas
options         SOFTDEP         # FFS soft updates support.
options         NFSSERVER       # Network File System server
                                # immutable) behave as system flags.
options         INET            # IP + ICMP + TCP + UDP
options         ISO,TPIP        # OSI
options         PPP_BSDCOMP     # BSD-Compress compression support for PPP
options         PPP_DEFLATE     # Deflate compression support for PPP
options         PPP_FILTER      # Active filter support for PPP (requires bpf)
options         PFIL_HOOKS      # pfil(9) packet filter hooks
options         ACPIVERBOSE     # verbose ACPI device autoconfig messages
options         MIIVERBOSE      # verbose PHY autoconfig messages
options         PCIVERBOSE      # verbose PCI device autoconfig messages
options         USBVERBOSE      # verbose USB device autoconfig messages
options         I2OVERBOSE      # verbose I2O driver messages
options         WSEMUL_VT100            # VT100 / VT220 emulation
options         WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8)
options         WS_KERNEL_FG=WSCOL_GREEN
options         WSDISPLAY_CUSTOM_BORDER # custom border colors via wsconsctl(8)
options         WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
options         WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
options         WSDISPLAY_COMPAT_USL            # VT handling
options         WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
options         PCKBD_CNATTACH_MAY_FAIL
options         PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for pckbd driver
options         UKBD_LAYOUT="(KB_DE | KB_NODEAD)"  # for ukbd driver
options         PCDISPLAY_SOFTCURSOR
options         VGA_CONSOLE_ATI_BROKEN_FONTSEL
options         WSDISPLAY_SCROLLSUPPORT
config          netbsd  root on ? type ?
mainbus0 at root
cpu* at mainbus?
ioapic* at mainbus?
options         ACPI_SCANPCI    # find PCI roots using ACPI
acpi0           at mainbus0
apm*            at acpi?                # ACPI apm emulation
acpiacad*       at acpi?                # ACPI AC Adapter
acpibat*        at acpi?                # ACPI Battery
acpibut*        at acpi?                # ACPI Button
acpiec*         at acpi?                # ACPI Embedded Controller
acpilid*        at acpi?                # ACPI Lid Switch
acpitz*         at acpi?                # ACPI Thermal Zone
attimer*        at acpi?                # AT Timer
hpet*           at acpi?                # High Precision Event Timer
mpu*            at acpi?                # Roland MPU-401 MIDI UART
pcppi*          at acpi?                # AT-style speaker sound
spic*           at acpi?                # Sony Programmable I/O Controller
wsmouse*        at spic?
sony*           at acpi?                # Sony Miscellaneous Controller
vald* at acpi?
pci*    at mainbus? bus ?
pci*    at pchb? bus ?
pci*    at ppb? bus ?
                                        # L2/L3 work, but should not be enabled
                                        # on anything else.
                                        # work, but should not be enabled
                                        # on anything else.
elansc* at pci? dev ? function ?        # AMD Elan SC520 System Controller
gpio*   at elansc?
                                        # SpeedStep support
pchb*   at pci? dev ? function ?        # PCI-Host bridges
ppb*    at pci? dev ? function ?        # PCI-PCI bridges
puc*    at pci? dev ? function ?        # PCI "universal" comm. cards
agp*    at pchb?
pcmcia* at pcic? controller ? socket ?
pcic0   at pci? dev? function ?
cbb*            at pci? dev ? function ?
cardslot*       at cbb?
cardbus*        at cardslot?
pcmcia*         at cardslot?
vga*            at pci? dev ? function ?
wsdisplay*      at vga? console ?
sysbeep0        at pcppi?
com*    at puc? port ?                  # 16x50s on "universal" comm boards
cy*     at pci? dev ? function ?        # Cyclades Cyclom-Y serial boards
cz*     at pci? dev ? function ?        # Cyclades-Z multi-port serial boards
com*    at pcmcia? function ?           # Modems and serial cards
pcmcom* at pcmcia? function ?           # PCMCIA multi-port serial cards
com*    at pcmcom? slave ?              # ...and the slave devices
com*    at cardbus? function ?  # Modems and serial cards
lpt*    at puc? port ?                  # || ports on "universal" comm boards
amdpm*  at pci? dev ? function ?        # RNG and SMBus 1.0 interface
piixpm* at pci? dev ? function ?        # PIIX4 compatible PM controller
iic*    at piixpm?                      # SMBus on PIIX4
iop*    at pci? dev ? function ?        # I/O processor
ld*     at iop? tid ?                   # block devices
dpti*   at iop? tid 0                   # DPT/Adaptec control interface
mpt*    at pci? dev ? function ?        # LSI Fusion SCSI/FC
scsibus* at scsi?
pciide*         at pci? dev ? function ? flags 0x0000   # GENERIC pciide driver
acardide*       at pci? dev ? function ?        # Acard IDE controllers
aceride*        at pci? dev ? function ?        # Acer Lab IDE controllers
ahcisata*       at pci? dev ? function ?        # AHCI SATA controllers
artsata*        at pci? dev ? function ?        # Intel i31244 SATA controller
cmdide*         at pci? dev ? function ?        # CMD tech IDE controllers
cypide*         at pci? dev ? function ?        # Cypress IDE controllers
geodeide*       at pci? dev ? function ?        # AMD Geode IDE controllers
hptide*         at pci? dev ? function ?        # Triones/HighPoint IDE controllers
iteide*         at pci? dev ? function ?        # IT Express IDE controllers
ixpide*         at pci? dev ? function ?        # ATI IXP IDE controllers
optiide*        at pci? dev ? function ?        # Opti IDE controllers
piixide*        at pci? dev ? function ?        # Intel IDE controllers
pdcide*         at pci? dev ? function ?        # Promise IDE controllers
pdcsata*        at pci? dev ? function ?        # Promise SATA150 controllers
rccide*         at pci? dev ? function ?        # ServerWorks IDE controllers
satalink*       at pci? dev ? function ?        # SiI SATALink controllers
siside*         at pci? dev ? function ?        # SiS IDE controllers
slide*          at pci? dev ? function ?        # Symphony Labs IDE controllers
svwsata*        at pci? dev ? function ?        # ServerWorks SATA controllers
stpcide*        at pci? dev ? function ?        # STMicro STPC IDE controllers
viaide*         at pci? dev ? function ?        # VIA/AMD/Nvidia IDE controllers
atabus* at ata?
wd*     at atabus? drive ? flags 0x0000
atapibus* at atapi?
cd*     at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives
sd*     at atapibus? drive ? flags 0x0000       # ATAPI disk drives
st*     at atapibus? drive ? flags 0x0000       # ATAPI tape drives
uk*     at atapibus? drive ? flags 0x0000       # ATAPI unknown
an*     at pci? dev ? function ?        # Aironet PC4500/PC4800 (802.11)
ath*    at pci? dev ? function ?        # Atheros 5210/5211/5212 802.11
atw*    at pci? dev ? function ?        # ADMtek ADM8211 (802.11)
bce*    at pci? dev ? function ?        # Broadcom 4401 10/100 Ethernet
bge*    at pci? dev ? function ?        # Broadcom 570x gigabit Ethernet
bnx*    at pci? dev ? function ?        # Broadcom NetXtremeII gigabit Ethernet
dge*    at pci? dev ? function ?        # Intel 82597 10GbE LR
en*     at pci? dev ? function ?        # ENI/Adaptec ATM
ep*     at pci? dev ? function ?        # 3Com 3c59x
epic*   at pci? dev ? function ?        # SMC EPIC/100 Ethernet
esh*    at pci? dev ? function ?        # Essential HIPPI card
ex*     at pci? dev ? function ?        # 3Com 90x[BC]
fpa*    at pci? dev ? function ?        # DEC DEFPA FDDI
fxp*    at pci? dev ? function ?        # Intel EtherExpress PRO 10+/100B
gsip*   at pci? dev ? function ?        # NS83820 Gigabit Ethernet
hme*    at pci? dev ? function ?        # Sun Microelectronics STP2002-STQ
le*     at pci? dev ? function ?        # PCnet-PCI Ethernet
lmc*    at pci? dev ? function ?        # Lan Media Corp SSI/HSSI/DS3
mskc*   at pci? dev ? function ?        # Marvell Yukon 2 Gigabit Ethernet
msk*    at mskc?                        # Marvell Yukon 2 Gigabit Ethernet
ne*     at pci? dev ? function ?        # NE2000-compatible Ethernet
skc*    at pci? dev ? function ?        # SysKonnect SK9821 Gigabit Ethernet
sk*     at skc?                         # SysKonnect SK9821 Gigabit Ethernet
ath*    at cardbus? function ?  # Atheros 5210/5211/5212 802.11
atw*    at cardbus? function ?  # ADMtek ADM8211 (802.11)
fxp*    at cardbus? function ?  # Intel i8255x
ikphy*  at mii? phy ?                   # Intel 82563 PHYs
inphy*  at mii? phy ?                   # Intel 82555 PHYs
iophy*  at mii? phy ?                   # Intel 82553 PHYs
nsphy*  at mii? phy ?                   # NS83840 PHYs
nsphyter* at mii? phy ?                 # NS83843 PHYs
ehci*   at pci? dev ? function ?        # Enhanced Host Controller
ohci*   at pci? dev ? function ?        # Open Host Controller
uhci*   at pci? dev ? function ?        # Universal Host Controller (Intel)
ehci*   at cardbus? function ?          # Enhanced Host Controller
ohci*   at cardbus? function ?          # Open Host Controller
uhci*   at cardbus? function ?          # Universal Host Controller (Intel)
usb*    at ehci?
usb*    at ohci?
usb*    at uhci?
uhub*   at usb?
uhub*   at uhub? port ?
uhidev* at uhub? port ? configuration ? interface ?
ums*    at uhidev? reportid ?
wsmouse* at ums? mux 0
uep*    at uhub? port ?
wsmouse* at uep? mux 0
ukbd*   at uhidev? reportid ?
wskbd*  at ukbd? console ? mux 1
ucycom* at uhidev? reportid ?
uhid*   at uhidev? reportid ?
ulpt*   at uhub? port ? configuration ? interface ?
umodem* at uhub? port ? configuration ?
ucom*   at umodem?
umass*  at uhub? port ? configuration ? interface ?
wd*     at umass?
uirda* at uhub? port ? configuration ? interface ?
irframe* at uirda?
ustir* at uhub? port ?
irframe* at ustir?
upl*    at uhub? port ?
ubsa*   at uhub? port ?         # Belkin serial adapter
ucom*   at ubsa? portno ?
uftdi*  at uhub? port ?         # FTDI FT8U100AX serial adapter
ucom*   at uftdi? portno ?
uipaq*  at uhub? port ?         # iPAQ PDAs
ucom*   at uipaq? portno ?
umct*   at uhub? port ?         # MCT USB-RS232 serial adapter
ucom*   at umct? portno ?
uplcom* at uhub? port ?         # I/O DATA USB-RSAQ2 serial adapter
ucom*   at uplcom? portno ?
uvscom* at uhub? port ?         # SUNTAC Slipper U VS-10U serial adapter
ucom*   at uvscom? portno ?
urio*   at uhub? port ?
uvisor* at uhub? port ?
ucom*   at uvisor?
ukyopon* at uhub? port ?
ucom*   at ukyopon? portno ?
uscanner* at uhub? port ?
utoppy* at uhub? port ?
uyap* at uhub? port ?
udsbr*  at uhub? port ?
radio*  at udsbr?
ugen*   at uhub? port ?
options UGEN_BULK_RA_WB
oboe*   at pci? dev ? function ?
irframe* at oboe?
auich*  at pci? dev ? function ?        # Intel ICH integrated AC'97 Audio
auixp*  at pci? dev ? function ?        # ATI IXP AC'97 Audio
autri*  at pci? dev ? function ?        # Trident 4DWAVE based AC'97 Audio
azalia* at pci? dev ? function ?        # High Definition Audio
cmpci*  at pci? dev ? function ?        # C-Media CMI8338/8738
fms*    at pci? dev ? function ?        # Forte Media FM801
sv*     at pci? dev ? function ?        # S3 SonicVibes
yds*    at pci? dev ? function ?        # Yamaha DS-1 PCI Audio
audio*  at audiobus?
bt3c* at pcmcia? function ?             # 3Com 3CRWB6096-A
ubt* at uhub? port ?
bthub* at bt3c?
bthub* at btuart?
bthub* at ubt?
bthidev* at bthub?
btms* at bthidev? reportid ?
wsmouse* at btms? mux 0
btkbd* at bthidev? reportid ?
wskbd* at btkbd? console ? mux 1
btsco* at bthub?
hifn*   at pci? dev ? function ?        # Hifn 7755/7811/795x
ubsec*  at pci? dev ? function ?        # Broadcom 5501/5601/580x/582x
geodegcb*  at pci? dev ? function ?     # Geode GCB area
geodewdog* at geodegcb?                 # AMD Geode SC1100 watchdog timer
geodecntr* at geodegcb?                 # AMD Geode SC1100 high res. counter
weasel* at pci?
include "arch/i386/conf/GENERIC.local"
pseudo-device   crypto          # /dev/crypto device
pseudo-device   swcrypto        # software crypto implementation
pseudo-device   ccd             4       # concatenated/striped disk devices
pseudo-device   fss             4       # file system snapshot device
pseudo-device   md              1       # memory disk device (ramdisk)
pseudo-device   vnd                     # disk-like interface to files
options         VND_COMPRESSION         # compressed vnd(4)
pseudo-device   bpfilter                # Berkeley packet filter
pseudo-device   loop                    # network loopback
pseudo-device   ppp                     # Point-to-Point Protocol
pseudo-device   pppoe                   # PPP over Ethernet (RFC 2516)
pseudo-device   sl                      # Serial Line IP
pseudo-device   strip                   # Starmode Radio IP (Metricom)
pseudo-device   irframetty              # IrDA frame line discipline
pseudo-device   tap                     # virtual Ethernet
pseudo-device   tun                     # network tunneling over tty
pseudo-device   gre                     # generic L3 over IP tunnel
pseudo-device   gif                     # IPv[46] over IPv[46] tunnel (RFC1933)
pseudo-device   stf                     # 6to4 IPv6 over IPv4 encapsulation
pseudo-device   vlan                    # IEEE 802.1q encapsulation
pseudo-device   bridge                  # simple inter-network bridging
pseudo-device   pf                      # PF packet filter
pseudo-device   pflog                   # PF log if
pseudo-device   pty                     # pseudo-terminals
pseudo-device   sequencer       1       # MIDI sequencer
pseudo-device   rnd                     # /dev/random and in-kernel generator
pseudo-device   clockctl                # user control of clock subsystem
pseudo-device   ksyms                   # /dev/ksyms
pseudo-device   lockstat                # lock profiling
pseudo-device   btuart                  # Bluetooth HCI UART (H4)
pseudo-device   vcoda           4       # coda minicache <-> venus comm.
pseudo-device   nsmb                    # experimental - SMB requester
pseudo-device   wsmux                   # mouse & keyboard multiplexor
pseudo-device   wsfont
options         FILEASSOC               # fileassoc(9) - required for Veriexec
pseudo-device   veriexec
options VERIFIED_EXEC_FP_RMD160
options VERIFIED_EXEC_FP_SHA256
options VERIFIED_EXEC_FP_SHA384
options VERIFIED_EXEC_FP_SHA512
options VERIFIED_EXEC_FP_SHA1
options VERIFIED_EXEC_FP_MD5
options PAX_MPROTECT=0                  # PaX mprotect(2) restrictions

нужны ли строчки для переключения раскладок?
options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for pckbd driver
options UKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for ukbd driver
если без них, то по статейке на опеннете- не выходит.

syn аватар

I. как собрать

I. как собрать образ, только что-бы он мне собрал не xfree, а xorg? Собирал такой строчкой, собирает хфри, хотя есть и хорг.

# ls -al /usr/xsrc
total 18
drwxr-xr-x   7 root  wheel   512 Aug 15 11:55 .
drwxr-xr-x  24 root  wheel  1024 Sep 10 14:48 ..
drwxr-xr-x   2 root  wheel   512 Aug 15 11:55 CVS
-rw-r--r--   1 root  wheel  3492 Mar 18  2005 Makefile
drwxr-xr-x   6 root  wheel   512 Apr 26 05:28 dist
drwxr-xr-x   4 root  wheel   512 Apr 26 05:28 local
drwxr-xr-x   4 root  wheel   512 Apr 26 05:28 xfree
drwxr-xr-x  12 root  wheel   512 Apr 26 06:40 xorg

/usr/src/build.sh -j 3 -x -O /usr/obj release iso-image

II. Почему граб может ругаться на ядра ксена и ядро нетки с поддержкой ксен?
http://runetbsd.ru/forum/obschii/grub_xen_kernel

syn аватар

Первое еще

Первое еще актуально. По второму, там по ссылке ответил...
Сейчас пытаюсь добавиь подержку многопроцессорности в ядро Xen Dom0

# cat XEN2_DOM0 | grep -vE '^(#.*|\s*)$'
include         "arch/xen/conf/std.xen"
options         INCLUDE_CONFIG_FILE     # embed config file in kernel binary
maxusers        64              # estimated number of users
options         XEN
options         DOM0OPS
options         APM_NO_IDLE
options         I686_CPU
makeoptions     CPUFLAGS="-march=i686"
options         VM86            # virtual 8086 emulation
options         USER_LDT        # user-settable LDT; used by WINE
options         CONSDEVNAME="\"xencons\""
options         CONS_OVERRIDE
options         INSECURE        # disable kernel security levels - X needs this
options         RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
options         NTP             # NTP phase/frequency locked loop
options         SYSVMSG         # System V-like message queues
options         SYSVSEM         # System V-like semaphores
options         SEMMNI=512      # number of semaphore identifiers
options         SEMMNS=1024     # number of semaphores in system
options         SEMUME=512      # max number of undo entries per process
options         SEMMNU=512      # number of undo structures in system
options         SYSVSHM         # System V-like memory sharing
options         SHMMAXPGS=59400 # 2048 pages is the default
options         P1003_1B_SEMAPHORE      # p1003.1b semaphore support
options         LKM             # loadable kernel modules
options         USERCONF        # userconf(4) support
options         SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
options         DIAGNOSTIC      # expensive kernel consistency checks
options         DEBUG           # expensive debugging checks/support
options         KMEMSTATS       # kernel memory statistics (vmstat -m)
options         DDB             # in-kernel debugger
options         DDB_ONPANIC=1   # see also sysctl(8): `ddb.onpanic'
options         DDB_HISTORY_SIZE=512    # enable history editing in DDB
makeoptions     DEBUG="-g"      # compile full symbol table
options         COMPAT_20       # NetBSD 2.0
options         COMPAT_30       # NetBSD 3.0 compatibility.
options         COMPAT_43       # 4.3BSD, 386BSD, and BSDI
options         COMPAT_386BSD_MBRPART # recognize old partition ID
options         COMPAT_LINUX    # binary compatibility with Linux
options         COMPAT_FREEBSD  # binary compatibility with FreeBSD
options         COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
file-system     FFS             # UFS
file-system     EXT2FS          # second extended file system (linux)
file-system     LFS             # log-structured file system
file-system     MFS             # memory file system
file-system     NFS             # Network File System client
file-system     NTFS            # Windows/NT file system (experimental)
file-system     CD9660          # ISO 9660 + Rock Ridge file system
file-system     MSDOSFS         # MS-DOS file system
file-system     FDESC           # /dev/fd
file-system     KERNFS          # /kern
file-system     NULLFS          # loopback file system
file-system     OVERLAY         # overlay file system
file-system     PORTAL          # portal filesystem (still experimental)
file-system     PROCFS          # /proc
file-system     UMAPFS          # NULLFS + uid and gid remapping
file-system     UNION           # union file system
file-system     SMBFS           # experimental - CIFS; also needs nsmb (below)
file-system     PTYFS           # /dev/pts/N support
file-system     TMPFS           # Efficient memory file-system
options         QUOTA           # UFS quotas
options         SOFTDEP         # FFS soft updates support.
options         NFSSERVER       # Network File System server
                                # immutable) behave as system flags.
options         GATEWAY         # packet forwarding
options         INET            # IP + ICMP + TCP + UDP
options         PPP_BSDCOMP     # BSD-Compress compression support for PPP
options         PPP_DEFLATE     # Deflate compression support for PPP
options         PPP_FILTER      # Active filter support for PPP (requires bpf)
options         PFIL_HOOKS      # pfil(9) packet filter hooks
options         TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
options         MIIVERBOSE      # verbose PHY autoconfig messages
options         PCIVERBOSE      # verbose PCI device autoconfig messages
options         USBVERBOSE      # verbose USB device autoconfig messages
options         I2OVERBOSE      # verbose I2O driver messages
options         WSEMUL_VT100            # VT100 / VT220 emulation
options         WS_KERNEL_FG=WSCOL_GREEN
options         WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
options         WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
options         WSDISPLAY_COMPAT_USL            # VT handling
options         WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
options         WSDISPLAY_DEFAULTSCREENS=4
options         WSDISPLAY_SCROLLSUPPORT
options         PCDISPLAY_SOFTCURSOR
config          netbsd  root on ? type ?
mainbus0 at root
cpu* at mainbus?
ipmi0           at mainbus?
hypervisor*     at mainbus?             # Xen hypervisor
npx0            at hypervisor?          # x86 math coprocessor
xencons*        at hypervisor?          # Xen virtual console
xennet*         at hypervisor?          # Xen virtual network interface
xbd*            at hypervisor?          # Xen virtual block device
pci*            at hypervisor? bus ?
pci*            at pchb? bus ?
pchb*   at pci? dev ? function ?        # PCI-Host bridges
ppb*    at pci? dev ? function ?        # PCI-PCI bridges
agp*    at pchb?
puc*    at pci? dev ? function ?        # PCI "universal" comm. cards
com*    at puc? port ?                  # 16x50s on "universal" comm boards
cy*     at pci? dev ? function ?        # Cyclades Cyclom-Y serial boards
cz*     at pci? dev ? function ?        # Cyclades-Z multi-port serial boards
amdpm*  at pci? dev ? function ?        # RNG and SMBus 1.0 interface
fxp*    at pci? dev ? function ?        # Intel EtherExpress PRO 10+/100B
ipw*    at pci? dev ? function ?        # Intel PRO/Wireless 2100
inphy*  at mii? phy ?                   # Intel 82555 PHYs
iop*    at pci? dev ? function ?        # I/O processor
ld*     at iop? tid ?                   # block devices
dpti*   at iop? tid 0                   # DPT/Adaptec control interface
piixide*        at pci? dev ? function ?        # Intel IDE controllers
atabus* at ata?
wd*     at atabus? drive ? flags 0x0000
atapibus* at atapi?
cd*     at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives
sd*     at atapibus? drive ? flags 0x0000       # ATAPI disk drives
st*     at atapibus? drive ? flags 0x0000       # ATAPI tape drives
uk*     at atapibus? drive ? flags 0x0000       # ATAPI unknown
vga*            at pci? dev ? function ?
wsdisplay*      at vga? console ?
ehci*   at pci? dev ? function ?        # Enhanced Host Controller
ohci*   at pci? dev ? function ?        # Open Host Controller
uhci*   at pci? dev ? function ?        # Universal Host Controller (Intel)
usb*    at ehci?
usb*    at ohci?
usb*    at uhci?
uhub*   at usb?
uhub*   at uhub? port ?
uhidev* at uhub? port ? configuration ? interface ?
ums*    at uhidev? reportid ?
wsmouse* at ums? mux 0
uep*    at uhub? port ?
wsmouse* at uep? mux 0
ukbd*   at uhidev? reportid ?
wskbd*  at ukbd? console ? mux 1
ucycom* at uhidev? reportid ?
uhid*   at uhidev? reportid ?
umodem* at uhub? port ? configuration ?
ucom*   at umodem?
umass*  at uhub? port ? configuration ? interface ?
wd*     at umass?
uaudio* at uhub? port ? configuration ?
ustir* at uhub? port ?
irframe* at ustir?
aue*    at uhub? port ?         # ADMtek AN986 Pegasus based adapters
axe*    at uhub? port ?         # ASIX AX88172 based adapters
cdce*   at uhub? port ?         # CDC, Ethernet Networking Control Model
cue*    at uhub? port ?         # CATC USB-EL1201A based adapters
kue*    at uhub? port ?         # Kawasaki LSI KL5KUSB101B based adapters
udav*   at uhub? port ?         # Davicom DM9601 based adapters
url*    at uhub? port ?         # Realtek RTL8150L based adapters
atu*    at uhub? port ?         # Atmel AT76C50XX based adapters
ral*    at uhub? port ?         # Ralink Technology RT25x0 802.11a/b/g
rum*    at uhub? port ?         # Ralink Technology RT2501/RT2601 802.11a/b/g
upl*    at uhub? port ?
ubsa*   at uhub? port ?         # Belkin serial adapter
ucom*   at ubsa? portno ?
uftdi*  at uhub? port ?         # FTDI FT8U100AX serial adapter
ucom*   at uftdi? portno ?
umct*   at uhub? port ?         # MCT USB-RS232 serial adapter
ucom*   at umct? portno ?
uplcom* at uhub? port ?         # I/O DATA USB-RSAQ2 serial adapter
ucom*   at uplcom? portno ?
uvscom* at uhub? port ?         # SUNTAC Slipper U VS-10U serial adapter
ucom*   at uvscom? portno ?
uvisor* at uhub? port ?
ucom*   at uvisor?
ukyopon* at uhub? port ?
ucom*   at ukyopon? portno ?
uscanner* at uhub? port ?
uyap* at uhub? port ?
ugen*   at uhub? port ?
fwohci* at pci? dev ? function ?        # IEEE1394 Open Host Controller
ieee1394if* at fwohci?
fwip*   at ieee1394if?                  # IP over IEEE1394
auich*  at pci? dev ? function ?        # Intel ICH integrated AC'97 Audio
audio*  at audiobus?
ubt* at uhub? port ?
bthub* at ubt?
bthidev* at bthub?
btms* at bthidev? reportid ?
wsmouse* at btms? mux 0
btkbd* at bthidev? reportid ?
wskbd* at btkbd? console ? mux 1
btsco* at bthub?
hifn*   at pci? dev ? function ?        # Hifn 7755/7811/795x
ubsec*  at pci? dev ? function ?        # Broadcom 5501/5601/580x/582x
include "arch/i386/conf/GENERIC.local"
pseudo-device   crypto          # /dev/crypto device
pseudo-device   swcrypto        # software crypto implementation
pseudo-device   ccd             4       # concatenated/striped disk devices
pseudo-device   fss             4       # file system snapshot device
pseudo-device   md              1       # memory disk device (ramdisk)
pseudo-device   vnd                     # disk-like interface to files
pseudo-device   loop                    # network loopback
pseudo-device   ppp                     # Point-to-Point Protocol
pseudo-device   pppoe                   # PPP over Ethernet (RFC 2516)
pseudo-device   sl                      # Serial Line IP
pseudo-device   strip                   # Starmode Radio IP (Metricom)
pseudo-device   irframetty              # IrDA frame line discipline
pseudo-device   tap                     # virtual Ethernet
pseudo-device   tun                     # network tunneling over tty
pseudo-device   gre                     # generic L3 over IP tunnel
pseudo-device   stf                     # 6to4 IPv6 over IPv4 encapsulation
pseudo-device   vlan                    # IEEE 802.1q encapsulation
pseudo-device   bridge                  # simple inter-network bridging
pseudo-device   pf                      # PF packet filter
pseudo-device   pflog                   # PF log if
pseudo-device   pty                     # pseudo-terminals
pseudo-device   rnd                     # /dev/random and in-kernel generator
pseudo-device   clockctl                # user control of clock subsystem
pseudo-device   ksyms                   # /dev/ksyms
pseudo-device   nsmb                    # experimental - SMB requester
pseudo-device   wsmux                   # mouse & keyboard multiplexor
pseudo-device   wsfont
pseudo-device   xenevt

сбока ломается вот так....
#   compile  XEN3_DOM0/bios32.o
/usr/src/tooldir/bin/i386--netbsdelf-gcc -ffreestanding -fno-zero-initialized-in-bss
 -march=i686 -g -O2 
-Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes 
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign 
-Wno-attributes -fno-strict-aliasing 
-Di386 -I. -I/usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0/xen-ma
 -I/usr/src/sys/../common/include -I/usr/src/sys/arch 
-I/usr/src/sys -nostdinc -DVM86 -DUSER_LDT -DCONSDEVNAME="xencons" -DCONS_OVERRIDE
 -DLKM -DDIAGNOSTIC -DDEBUG -DMSGBUFSIZE=24576
 -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad 
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
 -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string 
-I/usr/src/sys/dist/pf -c /usr/src/sys/arch/xen/i386/bios32.c
cc1: warnings being treated as errors
/usr/src/sys/arch/xen/i386/bios32.c: In function 'bios32_init':
/usr/src/sys/arch/xen/i386/bios32.c:168: warning: comparison of distinct pointer types lacks a cast
*** [bios32.o] Error code 1
1 error

nbmake: stopped in /usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0

ERROR: Failed to make all in /usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0
*** BUILD ABORTED ***

хотя в общем возможно это и не из-за MP, т.к. если собирать с
options MPBIOS
options MPDEBUG
options MPVERBOSE
options ACPIVERBOSE
options MULTIPROCESSOR
acpiacad* at acpi? # ACPI AC Adapter
acpibat* at acpi? # ACPI Battery
acpibut* at acpi? # ACPI Button
acpiec* at acpi? # ACPI Embedded Controller
acpilid* at acpi? # ACPI Lid Switch
ioapic* at mainbus?
ситуация не меняется.
но в целом конфиг ядра Дом0 меньше обычного генерика, там не так много isa, убрав которые не заметил никаких багов, а вот с многопроцессорностью загвостка вышла, жаль юзать всего пол проца:-\

syn аватар

В общем

В общем остановился на такой ошибке...

--- cpu.o ---
cc1: warnings being treated as errors
/usr/src/sys/arch/xen/i386/cpu.c: In function 'cpu_init_first':
/usr/src/sys/arch/xen/i386/cpu.c:213: warning: implicit declaration of function 'lapic_cpu_number'
/usr/src/sys/arch/xen/i386/cpu.c: In function 'cpu_hatch':
/usr/src/sys/arch/xen/i386/cpu.c:692: warning: implicit declaration of function 'lapic_enable'
/usr/src/sys/arch/xen/i386/cpu.c:693: warning: implicit declaration of function 'lapic_initclocks'
/usr/src/sys/arch/xen/i386/cpu.c:704: warning: implicit declaration of function 'lapic_set_lvt'
/usr/src/sys/arch/xen/i386/cpu.c:713: error: 'lapic_tpr' undeclared (first use in this function)
/usr/src/sys/arch/xen/i386/cpu.c:713: error: (Each undeclared identifier is reported only once
/usr/src/sys/arch/xen/i386/cpu.c:713: error: for each function it appears in.)
/usr/src/sys/arch/xen/i386/cpu.c: In function 'cpu_set_tss_gates':
/usr/src/sys/arch/xen/i386/cpu.c:826: warning: implicit declaration of function 'cpu_init_tss'
/usr/src/sys/arch/xen/i386/cpu.c:829: error: 'sd' undeclared (first use in this function)
*** [cpu.o] Error code 1
1 error

nbmake: stopped in /usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0

ERROR: Failed to make all in /usr/obj/obj_dir/sys/arch/i386/compile/XEN3_DOM0
*** BUILD ABORTED ***

Может есть какие-нибуть идеи по сборке Ксен для работы Дом0 в мультипроцессорном режиме?

syn аватар

конфиг

конфиг дефолтовй XEN2_DOM0, а в XEN3_DOM0 я добавил строчку
options MULTIPROCESSOR
остальное меня пока мало волнует.
Вот что сказал один из разработчиков:"xen kernels do not support this option yet. You can run Xen+NetBSD on
a SMP host, but each domain can only use one CPU."

syn аватар

>Текущая версия

>Текущая версия (от вчера) собирается без проблем.
Так это вы только XEN2_DOM0 собирали? Я собирал XEN3_DOM0, XEN2_DOM0 включает в себя опции XEN3_DOM0, если собирать XEN3_DOM0. Т.е. у вас получилось собрать Дом0 с поддержкой SMP? У меня карент 17, сейчас последний вроде 33, так у вас получилось на последнем собрать смп или чего?
>Судя по всему, ты не поднимешь написание кода для того, чтобы поддерживались,
а значит и браться не надо, есть более актуальные проблемы, чем поддержка Xen.
У меня пока мало опыта написательства, все никак времени не хватает или усидчивости, хм...
Вот было бы интересно узнать какие проблемы есть у нетки поважнее Ксена?

syn аватар

Еще один, вот

Еще один, вот что сказал...
Well, I'm not sure if I can help you but 4.99.17 is a very old -current.
We are now on 4.99.31, and we've seen a number of things changed in the
APIC area, along with other changes.

Maybe a more up to date set of sources would help? There should be some
from the autobuild farm.
прокавеесился от туда...
anoncvs.fr.NetBSD.org:/pub/NetBSD-CVS
cvs checkout -PA src
все равно, при начале сборки говорит что 4.99.17
в UPDATING первая строчка у меня такая...

20070412:
The pckbc driver on sgimips IP32 has been removed. Use macekbc
instead. See the GENERIC32_IP3x kernel configuration for an
example.
или может ещё на чистую прокавееситься, хм...

syn аватар

Спасибо за

Спасибо за советы, но уже прокавеесился на чистую. Теперь 4.99.31.
Зеркало выбрал на угад, просто иногда вылетают ошибки (что-то по сокету, ещё раз будет напишу...) и на тот квс-сервер уже не коннектиться, а на другой проходит.

Собрал с дефолтовым конфигом, после строчек загрузки ядра ксена комп ребутиться, а само ядро нетки не грузится.
(XEN) Dom0 has maximum 2 VCPUs
(XEN) Scrubbing Free RAM:.................done.
(XEN) Xen trace buffers: disabled
поудалял ненужное, сделал такой конфиг, все собралось, но не грузиться и все тут, старое(17) грузится.

# cat XEN2_DOM0 |grep -vE '^(#.*|\s*)$'
include         "arch/xen/conf/std.xen"
options         INCLUDE_CONFIG_FILE     # embed config file in kernel binary
options         UVMHIST
options         UVMHIST_PRINT
options         SYSCALL_DEBUG
maxusers        32              # estimated number of users
options         XEN
options         DOM0OPS
options         I686_CPU
makeoptions     CPUFLAGS="-march=i686"
options         INSECURE        # disable kernel security levels - X needs this
options         RTC_OFFSET=0    # hardware clock is this many mins. west of GMT
options         NTP             # NTP phase/frequency locked loop
options         KTRACE          # system call tracing via ktrace(1)
options         SYSTRACE        # system call vetting via systrace(1)
options         SYSVMSG         # System V-like message queues
options         SYSVSEM         # System V-like semaphores
options         SYSVSHM         # System V-like memory sharing
options         P1003_1B_SEMAPHORE      # p1003.1b semaphore support
options         LKM             # loadable kernel modules
options         USERCONF        # userconf(4) support
options         SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
options         DIAGNOSTIC      # expensive kernel consistency checks
options         DEBUG           # expensive debugging checks/support
options         KMEMSTATS       # kernel memory statistics (vmstat -m)
options         DDB             # in-kernel debugger
options         DDB_ONPANIC=1   # see also sysctl(8): `ddb.onpanic'
options         DDB_HISTORY_SIZE=512    # enable history editing in DDB
makeoptions     DEBUG="-g"      # compile full symbol table
options         COMPAT_20       # NetBSD 2.0
options         COMPAT_30       # NetBSD 3.0 compatibility.
options         COMPAT_40       # NetBSD 4.0
options         COMPAT_43       # 4.3BSD, 386BSD, and BSDI
options         COMPAT_386BSD_MBRPART # recognize old partition ID
options         COMPAT_LINUX    # binary compatibility with Linux
options         COMPAT_FREEBSD  # binary compatibility with FreeBSD
file-system     FFS             # UFS
file-system     EXT2FS          # second extended file system (linux)
file-system     LFS             # log-structured file system
file-system     MFS             # memory file system
file-system     NFS             # Network File System client
file-system     NTFS            # Windows/NT file system (experimental)
file-system     CD9660          # ISO 9660 + Rock Ridge file system
file-system     MSDOSFS         # MS-DOS file system
file-system     FDESC           # /dev/fd
file-system     KERNFS          # /kern
file-system     NULLFS          # loopback file system
file-system     OVERLAY         # overlay file system
file-system     PORTAL          # portal filesystem (still experimental)
file-system     PROCFS          # /proc
file-system     UMAPFS          # NULLFS + uid and gid remapping
file-system     UNION           # union file system
file-system     SMBFS           # experimental - CIFS; also needs nsmb (below)
file-system     PTYFS           # /dev/pts/N support
file-system     TMPFS           # Efficient memory file-system
options         QUOTA           # UFS quotas
options         SOFTDEP         # FFS soft updates support.
options         NFSSERVER       # Network File System server
                                # immutable) behave as system flags.
options         INET            # IP + ICMP + TCP + UDP
options         INET6           # IPV6
options         ISO,TPIP        # OSI
options         PPP_BSDCOMP     # BSD-Compress compression support for PPP
options         PPP_DEFLATE     # Deflate compression support for PPP
options         PPP_FILTER      # Active filter support for PPP (requires bpf)
options         PFIL_HOOKS      # pfil(9) packet filter hooks
options         MIIVERBOSE      # verbose PHY autoconfig messages
options         PCIVERBOSE      # verbose PCI device autoconfig messages
options         USBVERBOSE      # verbose USB device autoconfig messages
options         WSEMUL_VT100            # VT100 / VT220 emulation
options         WS_KERNEL_FG=WSCOL_GREEN
options         WSDISPLAY_COMPAT_PCVT           # emulate some ioctls
options         WSDISPLAY_COMPAT_SYSCONS        # emulate some ioctls
options         WSDISPLAY_COMPAT_USL            # VT handling
options         WSDISPLAY_COMPAT_RAWKBD         # can get raw scancodes
options         WSDISPLAY_DEFAULTSCREENS=4
options         WSDISPLAY_SCROLLSUPPORT
options         PCDISPLAY_SOFTCURSOR
config          netbsd  root on ? type ?
mainbus0 at root
cpu* at mainbus?
hypervisor*     at mainbus?             # Xen hypervisor
npx0            at hypervisor?          # x86 math coprocessor
xencons*        at hypervisor?          # Xen virtual console
pci*            at hypervisor? bus ?
pci*            at pchb? bus ?
                                        # watchdog and SpeedStep support
pcib*   at pci? dev ? function ?        # PCI-ISA bridges
pchb*   at pci? dev ? function ?        # PCI-Host bridges
ppb*    at pci? dev ? function ?        # PCI-PCI bridges
puc*    at pci? dev ? function ?        # PCI "universal" comm. cards
agp*    at pchb?
isa0    at pcib?
isa0    at hypervisor?
com*    at puc? port ?                  # 16x50s on "universal" comm boards
cy*     at pci? dev ? function ?        # Cyclades Cyclom-Y serial boards
cz*     at pci? dev ? function ?        # Cyclades-Z multi-port serial boards
com1    at isa? port 0x2f8 irq 3
bge*    at pci? dev ? function ?        # Broadcom 570x gigabit Ethernet
brgphy* at mii? phy ?                   # Broadcom BCM5400-family PHYs
iop*    at pci? dev ? function ?        # I/O processor
ld*     at iop? tid ?                   # block devices
piixide*        at pci? dev ? function ?        # Intel IDE controllers
atabus* at ata?
wd*     at atabus? drive ? flags 0x0000
atapibus* at atapi?
cd*     at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives
sd*     at atapibus? drive ? flags 0x0000       # ATAPI disk drives
st*     at atapibus? drive ? flags 0x0000       # ATAPI tape drives
uk*     at atapibus? drive ? flags 0x0000       # ATAPI unknown
pckbc0          at isa?                 # pc keyboard controller
pckbd*          at pckbc?               # PC keyboard
pms*            at pckbc?               # PS/2 mouse for wsmouse
vga*            at pci? dev ? function ?
wsdisplay*      at vga? console ?
wskbd*          at pckbd? console ?
wsmouse*        at pms? mux 0
ehci*   at pci? dev ? function ?        # Enhanced Host Controller
ohci*   at pci? dev ? function ?        # Open Host Controller
uhci*   at pci? dev ? function ?        # Universal Host Controller (Intel)
usb*    at ehci?
usb*    at ohci?
usb*    at uhci?
uhub*   at usb?
uhub*   at uhub? port ?
uhidev* at uhub? port ? configuration ? interface ?
ums*    at uhidev? reportid ?
wsmouse* at ums? mux 0
uep*    at uhub? port ?
wsmouse* at uep? mux 0
ukbd*   at uhidev? reportid ?
wskbd*  at ukbd? console ? mux 1
ucycom* at uhidev? reportid ?
uhid*   at uhidev? reportid ?
umodem* at uhub? port ? configuration ?
ucom*   at umodem?
umass*  at uhub? port ? configuration ? interface ?
wd*     at umass?
uaudio* at uhub? port ? configuration ?
umidi* at uhub? port ? configuration ?
aue*    at uhub? port ?         # ADMtek AN986 Pegasus based adapters
axe*    at uhub? port ?         # ASIX AX88172 based adapters
cdce*   at uhub? port ?         # CDC, Ethernet Networking Control Model
cue*    at uhub? port ?         # CATC USB-EL1201A based adapters
kue*    at uhub? port ?         # Kawasaki LSI KL5KUSB101B based adapters
udav*   at uhub? port ?         # Davicom DM9601 based adapters
url*    at uhub? port ?         # Realtek RTL8150L based adapters
atu*    at uhub? port ?         # Atmel AT76C50XX based adapters
ral*    at uhub? port ?         # Ralink Technology RT25x0 802.11a/b/g
rum*    at uhub? port ?         # Ralink Technology RT2501/RT2601 802.11a/b/g
upl*    at uhub? port ?
ubsa*   at uhub? port ?         # Belkin serial adapter
ucom*   at ubsa? portno ?
uftdi*  at uhub? port ?         # FTDI FT8U100AX serial adapter
ucom*   at uftdi? portno ?
umct*   at uhub? port ?         # MCT USB-RS232 serial adapter
ucom*   at umct? portno ?
uplcom* at uhub? port ?         # I/O DATA USB-RSAQ2 serial adapter
ucom*   at uplcom? portno ?
uvscom* at uhub? port ?         # SUNTAC Slipper U VS-10U serial adapter
ucom*   at uvscom? portno ?
uvisor* at uhub? port ?
ucom*   at uvisor?
ukyopon* at uhub? port ?
ucom*   at ukyopon? portno ?
uscanner* at uhub? port ?
uyap* at uhub? port ?
ugen*   at uhub? port ?
azalia* at pci? dev ? function ?        # High Definition Audio
audio*  at audiobus?
hifn*   at pci? dev ? function ?        # Hifn 7755/7811/795x
ubsec*  at pci? dev ? function ?        # Broadcom 5501/5601/580x/582x
include "arch/i386/conf/GENERIC.local"
pseudo-device   crypto          # /dev/crypto device
pseudo-device   swcrypto        # software crypto implementation
pseudo-device   ccd             4       # concatenated/striped disk devices
pseudo-device   fss             4       # file system snapshot device
pseudo-device   md              1       # memory disk device (ramdisk)
pseudo-device   vnd                     # disk-like interface to files
pseudo-device   bpfilter                # Berkeley packet filter
pseudo-device   loop                    # network loopback
pseudo-device   ppp                     # Point-to-Point Protocol
pseudo-device   pppoe                   # PPP over Ethernet (RFC 2516)
pseudo-device   sl                      # Serial Line IP
pseudo-device   strip                   # Starmode Radio IP (Metricom)
pseudo-device   tap                     # virtual Ethernet
pseudo-device   tun                     # network tunneling over tty
pseudo-device   gre                     # generic L3 over IP tunnel
pseudo-device   gif                     # IPv[46] over IPv[46] tunnel (RFC1933)
pseudo-device   stf                     # 6to4 IPv6 over IPv4 encapsulation
pseudo-device   vlan                    # IEEE 802.1q encapsulation
pseudo-device   bridge                  # simple inter-network bridging
pseudo-device   pf                      # PF packet filter
pseudo-device   pflog                   # PF log if
pseudo-device   pty                     # pseudo-terminals
pseudo-device   sequencer       1       # MIDI sequencer
pseudo-device   rnd                     # /dev/random and in-kernel generator
pseudo-device   clockctl                # user control of clock subsystem
pseudo-device   ksyms                   # /dev/ksyms
pseudo-device   nsmb                    # experimental - SMB requester
pseudo-device   wsmux                   # mouse & keyboard multiplexor
pseudo-device   wsfont
pseudo-device   xenevt

asau аватар

> М, да,

> М, да, окаазлось в небсд граздо сложнее собрать ядро под свой конфиг.

Ничего особенно сложного нет, просто надо сидеть и разбираться. Поехали.

#      link  GENERIC.MP/netbsd
/usr/src/tooldir/bin/i386--netbsdelf-ld -Map netbsd.map --cref -T /usr/src/sys/arch/i386/conf/kern.ldscript
 -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
ioconf.o:(.data+0x27a8): undefined reference to `stfattach'
ioconf.o:(.rodata+0xf10): undefined reference to `sysbeep_ca'
kern_clock.o: In function `statclock':
kern_clock.c:(.text+0x1d4): undefined reference to `setstatclockrate'
kern_clock.c:(.text+0x30a): undefined reference to `setstatclockrate'
lapic.o: In function `lapic_calibrate_timer':
lapic.c:(.text+0x440): undefined reference to `gettick'
lapic.c:(.text+0x471): undefined reference to `gettick'
lapic.c:(.text+0x491): undefined reference to `gettick'
lapic.c:(.text+0x4a9): undefined reference to `gettick'
lapic.c:(.text+0x4c9): undefined reference to `rtclock_tval'
lapic.c:(.text+0x619): undefined reference to `initrtclock'
pciide_machdep.o: In function `pciide_machdep_compat_intr_establish':
pciide_machdep.c:(.text+0x46): undefined reference to `isa_intr_establish'
autoconf.o: In function `cpu_configure':
autoconf.c:(.text+0x7): undefined reference to `startrtclock'
machdep.o:(.data+0x20): undefined reference to `i8254_delay'
machdep.o:(.data+0x24): undefined reference to `i8254_initclocks'
identcpu.o: In function `cyrix6x86_cpu_setup':
identcpu.c:(.text+0xaa9): undefined reference to `clock_broken_latch'
pcic_pci_machdep.o: In function `pcic_pci_machdep_pcic_intr_establish':
pcic_pci_machdep.c:(.text+0x63): undefined reference to `isa_intr_alloc'
pcic_pci_machdep.c:(.text+0xb9): undefined reference to `isa_intr_establish'
cpu.o: In function `cpu_hatch':
cpu.c:(.text+0x3af): undefined reference to `npxinit'
i82365_isasubr.o: In function `pcic_isa_chip_intr_disestablish':
i82365_isasubr.c:(.text+0x1d): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_chip_intr_establish':
i82365_isasubr.c:(.text+0xc2): undefined reference to `isa_intr_alloc'
i82365_isasubr.c:(.text+0x11a): undefined reference to `isa_intr_establish'
i82365_isasubr.o: In function `pcic_isa_count_intr':
i82365_isasubr.c:(.text+0x274): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_probe_interrupts':
i82365_isasubr.c:(.text+0x3da): undefined reference to `isa_intr_alloc'
i82365_isasubr.c:(.text+0x4a3): undefined reference to `isa_intr_establish'
i82365_isasubr.c:(.text+0x580): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_config_interrupts':
i82365_isasubr.c:(.text+0x81f): undefined reference to `isa_intr_establish'
i82365_isasubr.c:(.text+0x8b7): undefined reference to `isa_intr_alloc'
mpu_acpi.o: In function `mpu_acpi_attach':
mpu_acpi.c:(.text+0x146): undefined reference to `isa_intr_establish'
acpi_wakeup.o: In function `acpi_md_sleep':
acpi_wakeup.c:(.text+0x5f6): undefined reference to `npxinit'
acpi_wakeup.c:(.text+0x60c): undefined reference to `initrtclock'
*** [netbsd] Error code 1

Будем искать.

options         COMPAT_NOMID    # NetBSD 0.8, 386BSD, and BSDI
options         COMPAT_09       # NetBSD 0.9
options         COMPAT_10       # NetBSD 1.0
options         COMPAT_11       # NetBSD 1.1
options         COMPAT_12       # NetBSD 1.2, 386BSD, and BSDI
options         COMPAT_13       # NetBSD 1.3, 386BSD, and BSDI
options         COMPAT_14       # NetBSD 1.4
options         COMPAT_15       # NetBSD 1.5
options         COMPAT_16       # NetBSD 1.6
options         COMPAT_20       # NetBSD 2.0
options         COMPAT_30       # NetBSD 3.0
options         COMPAT_43       # 4.3BSD, 386BSD, and BSDI

Ты собираешься запускать бинарники от старых версий?
Даже от НетБСД 0.9 и БСДИ?

> options COMPAT_OSSAUDIO # OSS (Voxware) audio driver compatibility

Используешь этот драйвер?

options         COMPAT_SVR4     # binary compatibility with SVR4
options         COMPAT_IBCS2    # binary compatibility with SCO and ISC
options         COMPAT_LINUX    # binary compatibility with Linux
options         COMPAT_FREEBSD  # binary compatibility with FreeBSD

То же.

Исключение составляет, разве что COMPAT_LINUX.
Мне оно было нужно для лицензионного LispWorks, который был
только в бинарниках и только для Linux.

> options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.

А вот это может быть нужно.

file-system     FFS             # UFS
file-system     EXT2FS          # second extended file system (linux)
file-system     LFS             # log-structured file system
file-system     MFS             # memory file system
file-system     NFS             # Network File System client
file-system     NTFS            # Windows/NT file system (experimental)
file-system     CD9660          # ISO 9660 + Rock Ridge file system
file-system     MSDOSFS         # MS-DOS file system
file-system     FDESC           # /dev/fd
file-system     KERNFS          # /kern
file-system     NULLFS          # loopback file system
file-system     OVERLAY         # overlay file system
file-system     PORTAL          # portal filesystem (still experimental)
file-system     PROCFS          # /proc
file-system     UMAPFS          # NULLFS + uid and gid remapping
file-system     UNION           # union file system
file-system     CODA            # Coda File System; also needs vcoda (below)
file-system     SMBFS           # experimental - CIFS; also needs nsmb (below)
file-system     PTYFS           # /dev/ptm support
file-system     TMPFS           # Efficient memory file-system

Из этого набора не всё нужно. Навряд ли ты будешь использовать "Коду".

options         PCKBD_CNATTACH_MAY_FAIL
options         PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for pckbd driver
options         UKBD_LAYOUT="(KB_DE | KB_NODEAD)"  # for ukbd driver
options         PCDISPLAY_SOFTCURSOR
options         VGA_CONSOLE_ATI_BROKEN_FONTSEL
options         WSDISPLAY_SCROLLSUPPORT

Ты верные вопросы задал:

> нужны ли строчки для переключения раскладок?
> options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for pckbd driver
> options UKBD_LAYOUT="(KB_DE | KB_NODEAD)" # for ukbd driver

У тебя какая клавиатура? Немецкая? УСБ?

Из всего этого я использую только

> options PCDISPLAY_SOFTCURSOR

Вернёмся к ошибкам.

pcic_pci_machdep.c:(.text+0x63): undefined reference to `isa_intr_alloc'
pcic_pci_machdep.c:(.text+0xb9): undefined reference to `isa_intr_establish'

Где-то остались ссылки на ISA.
Судя по тому, что в конфиге нет, ты не почистил дерево.

i82365_isasubr.o: In function `pcic_isa_chip_intr_disestablish':
i82365_isasubr.o: In function `pcic_isa_chip_intr_establish':
i82365_isasubr.o: In function `pcic_isa_count_intr':
i82365_isasubr.c:(.text+0x274): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_probe_interrupts':
i82365_isasubr.c:(.text+0x3da): undefined reference to `isa_intr_alloc'
i82365_isasubr.c:(.text+0x4a3): undefined reference to `isa_intr_establish'
i82365_isasubr.c:(.text+0x580): undefined reference to `isa_intr_disestablish'
i82365_isasubr.o: In function `pcic_isa_config_interrupts':
i82365_isasubr.c:(.text+0x81f): undefined reference to `isa_intr_establish'
i82365_isasubr.c:(.text+0x8b7): undefined reference to `isa_intr_alloc'

Это ISA-устройство, что можно прочитать в /usr/src/sys/dev/isa/

mpu_acpi.c:(.text+0x146): undefined reference to `isa_intr_establish'

elansc* at pci? dev ? function ?        # AMD Elan SC520 System Controller
piixpm* at pci? dev ? function ?        # PIIX4 compatible PM controller

Определись, у тебя Intel или AMD.

> mpt* at pci? dev ? function ? # LSI Fusion SCSI/FC

Навряд ли у тебя SCSI.

pciide*         at pci? dev ? function ? flags 0x0000   # GENERIC pciide driver
acardide*       at pci? dev ? function ?        # Acard IDE controllers
aceride*        at pci? dev ? function ?        # Acer Lab IDE controllers
ahcisata*       at pci? dev ? function ?        # AHCI SATA controllers
artsata*        at pci? dev ? function ?        # Intel i31244 SATA controller
cmdide*         at pci? dev ? function ?        # CMD tech IDE controllers
cypide*         at pci? dev ? function ?        # Cypress IDE controllers
geodeide*       at pci? dev ? function ?        # AMD Geode IDE controllers
hptide*         at pci? dev ? function ?        # Triones/HighPoint IDE controllers
iteide*         at pci? dev ? function ?        # IT Express IDE controllers
ixpide*         at pci? dev ? function ?        # ATI IXP IDE controllers
optiide*        at pci? dev ? function ?        # Opti IDE controllers
piixide*        at pci? dev ? function ?        # Intel IDE controllers
pdcide*         at pci? dev ? function ?        # Promise IDE controllers
pdcsata*        at pci? dev ? function ?        # Promise SATA150 controllers
rccide*         at pci? dev ? function ?        # ServerWorks IDE controllers
satalink*       at pci? dev ? function ?        # SiI SATALink controllers
siside*         at pci? dev ? function ?        # SiS IDE controllers
slide*          at pci? dev ? function ?        # Symphony Labs IDE controllers
svwsata*        at pci? dev ? function ?        # ServerWorks SATA controllers
stpcide*        at pci? dev ? function ?        # STMicro STPC IDE controllers
viaide*         at pci? dev ? function ?        # VIA/AMD/Nvidia IDE controllers

Не так трудно определить, какой из них у тебя используется,
оставить только его и pciide. Прочитай свой dmesg.

> st* at atapibus? drive ? flags 0x0000 # ATAPI tape drives

У тебя есть ленточный накопитель?

an*     at pci? dev ? function ?        # Aironet PC4500/PC4800 (802.11)
ath*    at pci? dev ? function ?        # Atheros 5210/5211/5212 802.11
atw*    at pci? dev ? function ?        # ADMtek ADM8211 (802.11)
bce*    at pci? dev ? function ?        # Broadcom 4401 10/100 Ethernet
bge*    at pci? dev ? function ?        # Broadcom 570x gigabit Ethernet
bnx*    at pci? dev ? function ?        # Broadcom NetXtremeII gigabit Ethernet
dge*    at pci? dev ? function ?        # Intel 82597 10GbE LR
en*     at pci? dev ? function ?        # ENI/Adaptec ATM
ep*     at pci? dev ? function ?        # 3Com 3c59x
epic*   at pci? dev ? function ?        # SMC EPIC/100 Ethernet
esh*    at pci? dev ? function ?        # Essential HIPPI card
ex*     at pci? dev ? function ?        # 3Com 90x[BC]
fpa*    at pci? dev ? function ?        # DEC DEFPA FDDI
fxp*    at pci? dev ? function ?        # Intel EtherExpress PRO 10+/100B
gsip*   at pci? dev ? function ?        # NS83820 Gigabit Ethernet
hme*    at pci? dev ? function ?        # Sun Microelectronics STP2002-STQ
le*     at pci? dev ? function ?        # PCnet-PCI Ethernet
lmc*    at pci? dev ? function ?        # Lan Media Corp SSI/HSSI/DS3
mskc*   at pci? dev ? function ?        # Marvell Yukon 2 Gigabit Ethernet
msk*    at mskc?                        # Marvell Yukon 2 Gigabit Ethernet
ne*     at pci? dev ? function ?        # NE2000-compatible Ethernet
skc*    at pci? dev ? function ?        # SysKonnect SK9821 Gigabit Ethernet
sk*     at skc?                         # SysKonnect SK9821 Gigabit Ethernet
ath*    at cardbus? function ?  # Atheros 5210/5211/5212 802.11
atw*    at cardbus? function ?  # ADMtek ADM8211 (802.11)
fxp*    at cardbus? function ?  # Intel i8255x

У тебя какая сетевая карта? Это тоже определить нетрудно,
достаточно сказать "ifconfig -a" или прочитать "dmesg".

ehci*   at cardbus? function ?          # Enhanced Host Controller
ohci*   at cardbus? function ?          # Open Host Controller
uhci*   at cardbus? function ?          # Universal Host Controller (Intel)

Если у тебя нет PCMCIA и CardBus, то их тоже имеет смысл удалить.

uhidev* at uhub? port ? configuration ? interface ?
ums*    at uhidev? reportid ?
wsmouse* at ums? mux 0

А ты пользуешься USB мышью и остальным?

Определить, есть ли у тебя Bluetooth, IR-устройства, какие у
тебя есть USB-устройства, может быть имеет смысл оставить из
этого только

umodem* at uhub? port ? configuration ?
ucom* at umodem?
umass* at uhub? port ? configuration ? interface ?
wd* at umass?

Надо оставить:

ugen* at uhub? port ?

чтобы было видно, подсоединяется ли что-то новое и неизвестное.

auich*  at pci? dev ? function ?        # Intel ICH integrated AC'97 Audio
auixp*  at pci? dev ? function ?        # ATI IXP AC'97 Audio
autri*  at pci? dev ? function ?        # Trident 4DWAVE based AC'97 Audio
azalia* at pci? dev ? function ?        # High Definition Audio
cmpci*  at pci? dev ? function ?        # C-Media CMI8338/8738
fms*    at pci? dev ? function ?        # Forte Media FM801
sv*     at pci? dev ? function ?        # S3 SonicVibes
yds*    at pci? dev ? function ?        # Yamaha DS-1 PCI Audio

Определись, откуда у тебя звук.

> hifn* at pci? dev ? function ? # Hifn 7755/7811/795x

Навряд ли у тебя есть эта криптографическая байда.

Не забывай, что если у тебя свалилась сборка, а ты не понимаешь,
почему это произошло, надо потереть все объектники и попробовать
заново, с чистого места.

asau аватар

> I. как собрать

> I. как собрать образ, только что-бы он мне собрал не xfree, а xorg?
> Собирал такой строчкой, собирает хфри, хотя есть и хорг.

Господи! Ну неужели нельзя читать новости?

X.org is DEPRECATED.

Если не получается собрать, может быть, оно вовсе не поддерживается?

Либо переходи на модульный, либо обратно в XFree86.

У меня стоит и то, и другое. Использую модульный, собирал из pkgsrc.

> II. Почему граб может ругаться на ядра ксена и ядро нетки с поддержкой ксен?
> http://runetbsd.ru/forum/obschii/grub_xen_kernel

Не знаю.

asau аватар

Не

Не пойму.

Можешь как-нибудь в приличном виде выложить свой конфиг?
Чтобы я просто взял готовый файл, а не с web page.
Я лучше попробую просто взять и собрать,
а изменения опубликую патчем и даже с объяснениями.

asau аватар

> конфиг

> конфиг дефолтовй XEN2_DOM0,

Текущая версия (от вчера) собирается без проблем.

> а в XEN3_DOM0 я добавил строчку
> options MULTIPROCESSOR

От того, что ты добавишь одну строчку, поддержка не обязана появиться.

> Вот что сказал один из разработчиков:
> "xen kernels do not support this option yet. You can run Xen+NetBSD on a SMP host, but each domain can only use one CPU."

Значит, не поддерживается.

Судя по всему, ты не поднимешь написание кода для того, чтобы поддерживались,
а значит и браться не надо, есть более актуальные проблемы, чем поддержка Xen.

asau аватар

>> Текущая

>> Текущая версия (от вчера) собирается без проблем.

> Так это вы только XEN2_DOM0 собирали?

Я собирал XEN2_DOM0, XEN3_DOM0 и смотрел, что там с многопроцессорностью.
У меня нет сейчас свободного времени, чтобы даже понять суть проблемы,
но то, что многопроцессорность не сводится к "options MULTIPROCESSOR",
это очевидно.

> Т.е. у вас получилось собрать Дом0 с поддержкой SMP?

Нет. И учитывая, что даже разработчик написал "не поддерживается",
я предлагаю мудро не делать этого пока нет соответствующего опыта.

> У меня карент 17, сейчас последний вроде 33,

4.99.31
Tue Sep 18 06:56:59 MSD 2007
Две версии за два дня быстровато, но возможно.

>> Судя по всему, ты не поднимешь написание кода для того, чтобы поддерживались,
>> а значит и браться не надо, есть более актуальные проблемы, чем поддержка Xen.

> Вот было бы интересно узнать какие проблемы есть у нетки поважнее Ксена?

Ну, к примеру, LFS до сих пор плохо протестирована, слежение за питанием,
спящий режим, неизвестно как работающий и только с однопроцессорными ядрами...
Последние две или три недели очень популярны процессы, которые "parked" навечно.
USB-stack протухает.

В общем, дел полно и без ксенов.

asau аватар

> Еще один, вот

> Еще один, вот что сказал...
> Well, I'm not sure if I can help you but 4.99.17 is a very old -current.
> We are now on 4.99.31, and we've seen a number of things changed in the
> APIC area, along with other changes.

Верно.

> cvs checkout -PA src

Используй истинно арийский метод: cvs up -PfAd
Но я бы посоветовал ещё флажок "C" добавить.

> прокавеесился от туда...
> anoncvs.fr.NetBSD.org:/pub/NetBSD-CVS

Довольно странный выбор зеркала.

Ты где живёшь? Если в Рассее, то от нас ближе всего до fi & se,
далее de & uk & us. Примерно так, если я правильно помню.

> или может ещё на чистую прокавееситься, хм...

Ну, если трафика и времени не жалко...

shattered аватар

-j4 надо убрать,

-j4 надо убрать, работать не будет.

syn аватар

Убрал, такая же

Убрал, такая же ошибка...

shattered аватар

Даже после make

Даже после make cleandir?

syn аватар

да, взял те же

да, взял те же сырцы с соседнего компа, все собирается.

shattered аватар

А существует ли

А существует ли /usr/obj/usr/src/tools/gcc/build ?

EvAn аватар

Попробуй ту же

Попробуй ту же команду, только без -u.

syn аватар

скачал NetBSD version:

скачал NetBSD version: 4.99.17 при make cleandir получаю такое, уже вручную копирвл этот файлик с фтп, не помогло=(

cleandir ===> gnu/lib/libiberty
make: "/usr/src/gnu/lib/libiberty/Makefile" line 12: Could not find /usr/src/gnu/lib/libiberty/arch/i386/defs.mk
make: Fatal errors encountered -- cannot continue

./build.sh -m i386 -j4 -T /usr/src/tools -O /usr/obj -u tools

chmod +x /usr/src/tools/bin/nbhost-mkdep
--- dependall-compat ---
dependall ===> compat
nbmake: nbmake: don't know how to make rmd160.c. Stop
--- include/.stamp ---
*** [dependall-compat] Error code 2
1 error

nbmake: stopped in /usr/src/tools

ERROR: Failed to make dependall tools
*** BUILD ABORTED ***

p.s. вообще реально собрать систему из сырцов или это на грани фантастики?

shattered аватар

Реально. Но я

Реально. Но я бы начал со сборки чего-нибудь стабильного (3.1 RELEASE), а не -current :-)

-T /usr/src/tools выглядит странно -- -T указывает, куда положить уже собранные tools. Так что лучше /usr/tools.

syn аватар

Ха, так 3.1 я

Ха, так 3.1 я собрал(на другом компе совсем, на том так и не вышло хз почему), теперь речь о 4.0! но даже на том что вышо тперь не выходит, чачал не архивами, а так
wget "ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/*"

EvAn аватар

А причём тут

А причём тут current? Сами же пишете, что версия 4.99.xx. Это будущая "пятёрка". Для сборки "четвёрки" нужно загрузить архивы с исходниками:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-daily/netbsd-4
У меня всё собралось, вплоть до iso и установилось.