recompile, harddrive(partition) error

2005-02-09 Thread Damian-Fekete Andrei
Hello,
My first day with a BSD system so.. be gentle please.
:)

I've installed FreeBSD 5.3, which i've downloaded from
net a few days ago. I've recompiled my kernel to make
my world spin. I've copied stable-supfile from
/usr/share/examples/cvsup to /root/ and did a cvsup
for that file. I've than tried to compile the kernel
after editing GENERIC (==KERNEL) in
/usr/src/sys/i386/conf if i remember correct. I've got
some unexpected error about a "unwind.h" missing file;
i think something is broke with this "stable" thing.
Take a look at files in
/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/,
for example unwind-cxx.h which includes "unwind.h" not
; but there is no such file in that
directory. Also there are some references to
"bits/???.h" but also no directory "bits" there. I've
got the files from /usr/src/contrib/... but don't
really remember the exact path. So I've managed to
make buildkernel KERNCONF=GENERIC, make installkernel
KERNCONF=GENERIC. 
One more thing: before copying that unwind.h, bits/..
files and make buildworkd I've upgraded compiler from
3.3 to 3.4 to see if it works, but it didn't.
Some places on the web stated that the problem could
be from optimization. I had CXXFLAGS=-O2 -pipe
-funrool-loops but i've commented that line in
make.conf.
I don't know if I've missed a step or something, but
if I did, please let me know.

Finally, make buildkernel KERNCONF.. , make
installkernel KERNCONF.. worked. After reboot
surprise, surprise.

I'll paste all the log I've got through "boot -v" (a
few lines on top missing, hope that is not a real
problem):
--
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00,
addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0xd800-0xd81f
irq 5 at device 7.3 on pc0uhci1: Reserved 0x20 bytes
for rid 0x20 type 4 at 0xd800
uhci1: [GIANT-LOCKED]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00,
addr 1
uhub1: 2 ports with 2 removable, self powered
pci0:  at device 7.4 (no driver
attached)
pcm0:  port
0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff irq 11 at
0pcm0: Reserved 0x100 bytes for rid 0x10 type 4 at
0xdc00
pcm0: [GIANT-LOCKED]
pcm0: 
pcm0: Codec features headphone, 18 bit DAC, 18 bit
ADC, 5 bit master volume, Re7pcm0: Primary codec
extended features variable rate PCM, AMAP
pcm0: sndbuf_setmap 19a000, 1000; 0xc1066000 -> 19a000
pcm0: sndbuf_setmap 1dd000, 1000; 0xc1069000 -> 1dd000
rl0: Reserved 0x100 bytes for rid 0x10 type 4 at
0xe800
rl0:  port 0xe800-0xe8ff
mem 0xe700-0xe7ff i0miibus0:  on rl0
rlphy0:  on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX,
100baseTX-FDX, auto
rl0: bpf attached
rl0: Ethernet address: 00:40:f4:83:5a:2a
rl0: [MPSAFE]
fdc0:  port 0x3f7,0x3f0-0x3f5
irq 6 drq 2 on acpi0
fdc0: ic_type 90 part_id 80
fdc0: [MPSAFE]
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: irq maps: 0x1 0x11 0x1 0x1
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff
irq 4 flags 0x10 on acpi0
sio0: type 16550A, console
sio1: irq maps: 0x1 0x9 0x1 0x1
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff
irq 3 on acpi0
sio1: type 16550A
unknown: not probed (disabled)
ppc0: using extended I/O port range
ppc0: EPP SPP
ppc0:  port
0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0:  on ppc0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
unknown: not probed (disabled)
psmcpnp0:  irq 12 on acpi0
atkbdc0:  port 0x64,0x60
irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
kbd0 at atkbd0
kbd0: atkbd0, AT 101/102 (2), config:0x0,
flags:0x1d
atkbd0: [GIANT-LOCKED]
psm0: current command byte:0047
kbdc: TEST_AUX_PORT status:
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:
kbdc: RESET_AUX return code:00fa
kbdc: RESET_AUX status:00aa
kbdc: RESET_AUX ID:
psm: status 00 02 64
psm: status 00 00 64
psm: status 00 03 64
psm: status 00 03 64
psm: data 08 00 00
psm: status 00 02 64
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3-00, 3 buttons
psm0: config:, flags:0008, packet size:4
psm0: syncmask:08, syncbits:00
unknown: not probed (disabled)
unknown: not probed (disabled)
unknown: not probed (disabled)
ata: ata0 already exists; skipping it
ata: ata1 already exists; skipping it
atkbdc: atkbdc0 already exists; skipping it
fdc: fdc0 already exists; skipping it
ppc: ppc0 already exists; skipping it
sc: sc0 already exists; skipping it
sio: sio0 already exists; skipping it
sio: sio1 already exists; skipping it
vga: vga0 already exists; skipping it
Trying Read_Port at 203
Trying Read_Port at 243
Trying Read_Port at 283
Trying Read_Port at 2c3
Trying Read_Port at 303
Trying Read_Port at 343
Trying Read_Port at 383
Trying Read_Port at 3c3
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices

Re: recompile, harddrive(partition) error

2005-02-09 Thread Damian-Fekete Andrei

--- dima <[EMAIL PROTECTED]> wrote:

> > Hello,
> > My first day with a BSD system so.. be gentle
> please.
> > :)
> You have done something weird for sure...
> 1. unwind.h is only found in gcc and the kernel
> sources for ia64.
> 2. the FreeBSD kernel is pure C, so it does not use
> libstdc++.
> 3. 5.3 contains gcc version 3.4.2 as the default
> compiler.

1. Don't know what caused that..
2. I've had problems with libstdc++ while make
buildworld, not buildkernel.
3. You're right.
 
> Some common suggestions now:
> 1. it is highly recommended to keep the world and
> the kernel in sync (you can find the proper order of
> upgrade in /usr/src/Makefile comments).
> 2. the only safe compiler options for kernel/world
> builds are -O -pipe.
> 3. use security/errata branch (RELENG_5_3) for work
> since RELENG_5 can sometimes be broken during large
> commits.
> 

What I've done:
removed everything under /usr/src and /usr/obj
cvsup'ed sources with stable-supfile.
edited the GENERIC file for building the kernel
make buildworld -> no errors
make buildkernel -> no errors
make installkernel -> no errors

reboot... :( same stuff

Same problem. So? Any solution? I'd even reinstall
everything but I guess that's not the issue.
Another question is that I see that in the handbook it
says to edit the GENERIC (a copy of it) file under
/usr/src/sys/i386/conf/ . I've commented lines for
devices that I don't need (extra network cards etc.)
but is this the right way? Don't I have to do
something like "device rl = 0". I see that make
buildkernel compiles that as modules... I don't really
want that. Or do I? Should I edit files from
/usr/src/sys/conf (?) ?
I could post my GENRERIC modified file somewhere so
you could take a look or it (or mail it to you)... I
don't have any "outrageous" in make.conf (just cpu se
on pentium3, because i've got a celeron tualatin) and
CFLAGS= -O -pipe.

andrei



__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: recompile, harddrive(partition) error

2005-02-10 Thread Damian-Fekete Andrei

--- Damian-Fekete Andrei <[EMAIL PROTECTED]> wrote:

> Hello,
> My first day with a BSD system so.. be gentle
> please.
> :)
> 

Hello again...
I see that no one has come with ideas... so what i am
asking is this: where can i find the files
(GENERIC,make.conf etc) that were used in compiling
the default kernel that comes with the 5.3 Release? I
guess I'll have to start with that and modify and
compile and so on and so forth.. :( until I see what I
have done wrong.

Any other list where people could help me with this? I
guess this is not the right list.

Thanks,
andrei


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Re[2]: recompile, harddrive(partition) error

2005-02-11 Thread Damian-Fekete Andrei

--- dima <[EMAIL PROTECTED]> wrote:


> 1. if you edited GENERIC, not the copy of it, you
> can download a copy from cvsweb.freebsd.org or cvs
> it.
> 2. default /etc/make.conf should be empty.
> 3. you can get the security/errata patched sources
> of 5.3-RELEASE (actually called 5.3-RELEASE-p5) by
> changing the tag in your cvsup file to RELENG_5_3
> 
> The thing you could do wrong is probably removing
> too many lines from your kernel config file; read
> the comments in it carefully.
> 

Ohhh... still not working. :(
I've removed /etc/make.conf, I've done 
make buildkernel
make installkernel
on the unmodified GENERIC file. 

So? Anyone? Any idea?


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"