Re: Newbie trying to build a new world
config: /usr/src/sys/i386/conf/MOAK:274: syntax error This means you have an error on line 274 of your kernel configuration file. Since line 274 is options PNPBIOS, I'm guessing that this option is deprecated and/or unavailable in 5.X. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie trying to build a new world
On Thursday 05 February 2004 03:15 am, Nicolas wrote: Hello. I am a newbie trying to build a new kernel. I have been following the handbook step by step but I still do something wrong. I copied GENERIC and did some changes and called my new kernel MOAK. I put it into /root/kernels and typed: ln -s /root/kernels/MOAK I cvsuped src all and ports all. Then and did: make -j4 buildworld. No problem. Then I rebooted and went into single user mode and typed: make buildkernel KERNCONF=MOAK. Then I get this output: config: /usr/src/sys/i386/conf/MOAK:274: syntax error Error code 1 stop in /usr/src error code 1 Stop in /usr/src Is there something wrong in MOAK (see attachment)??? Hope that somebody can offer me some help. Many thanks Nicolas Well, it is telling you that it doesn't like the options PNPBIOS. That is an option for 4.x. For right now, I would just comment it out. BTW, booting to single user mode to build the kernel doesn't help. You want to do that when you do the installworld. Part of the reason for booting to single user mode is to test the new kernel and you haven't installed it at this point. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie trying to build a new world
On Thu, 2004-02-05 at 13:15, Nicolas wrote: Hello. I am a newbie trying to build a new kernel. I have been following the handbook step by step but I still do something wrong. I copied GENERIC and did some changes and called my new kernel MOAK. I put it into /root/kernels and typed: ln -s /root/kernels/MOAK if that's all you typed then it's incorrect. Try: ln -s /root/kernels/MOAK /usr/src/sys/i386/conf/MOAK which basically just creates a shortcut to the original file residing in /root/kernels. I cvsuped src all and ports all. Then and did: make -j4 buildworld. No problem. good. Then I rebooted and went into single user mode and typed: make buildkernel KERNCONF=MOAK. that's fine, though the only time you really should boot into single user mode is when you doing a install world. Doesn't hurt though. Then I get this output: config: /usr/src/sys/i386/conf/MOAK:274: syntax error Error code 1 stop in /usr/src error code 1 Stop in /usr/src see above. Is there something wrong in MOAK (see attachment)??? Hope that somebody can offer me some help. Many thanks Nicolas you may also want to read /usr/src/UPDATING Regards, -- Nelis Lamprecht PGP: http://www.8ball.co.za/pgp/nelis.key Unix IS user friendly.. It's just selective about who its friends are. signature.asc Description: This is a digitally signed message part
Re: Newbie trying to build a new world
whoops, I misread your error, scratch my message...sorry. On Thu, 2004-02-05 at 13:38, Nelis Lamprecht wrote: On Thu, 2004-02-05 at 13:15, Nicolas wrote: Hello. I am a newbie trying to build a new kernel. I have been following the handbook step by step but I still do something wrong. I copied GENERIC and did some changes and called my new kernel MOAK. I put it into /root/kernels and typed: ln -s /root/kernels/MOAK if that's all you typed then it's incorrect. Try: ln -s /root/kernels/MOAK /usr/src/sys/i386/conf/MOAK which basically just creates a shortcut to the original file residing in /root/kernels. I cvsuped src all and ports all. Then and did: make -j4 buildworld. No problem. good. Then I rebooted and went into single user mode and typed: make buildkernel KERNCONF=MOAK. that's fine, though the only time you really should boot into single user mode is when you doing a install world. Doesn't hurt though. Then I get this output: config: /usr/src/sys/i386/conf/MOAK:274: syntax error Error code 1 stop in /usr/src error code 1 Stop in /usr/src see above. Is there something wrong in MOAK (see attachment)??? Hope that somebody can offer me some help. Many thanks Nicolas you may also want to read /usr/src/UPDATING Regards, -- Nelis Lamprecht PGP: http://www.8ball.co.za/pgp/nelis.key Unix IS user friendly.. It's just selective about who its friends are. signature.asc Description: This is a digitally signed message part
Re: Newbie trying to build a new world
On Thu, 5 Feb 2004 12:15:16 +0100 Nicolas [EMAIL PROTECTED] wrote: Hello. I am a newbie trying to build a new kernel. I have been following the handbook step by step but I still do something wrong. I copied GENERIC and did some changes and called my new kernel MOAK. I put it into /root/kernels and typed: ln -s /root/kernels/MOAK I cvsuped src all and ports all. Then and did: make -j4 buildworld. No problem. Then I rebooted and went into single user mode and typed: make buildkernel KERNCONF=MOAK. No need to build kernel in single user. Then I get this output: config: /usr/src/sys/i386/conf/MOAK:274: syntax error Error code 1 stop in /usr/src error code 1 Stop in /usr/src Is there something wrong in MOAK (see attachment)??? A lot. #options FFS #Berkeley Fast Filesystem optionsSOFTUPDATES #Enable FFS soft updates support What type of file system will you be using ? FFS=Berkeley Fast Filesystem it our fs and SOFTUPDATES, UFS_ACL require FFS optionsUFS_ACL #Support for access control lists #options UFS_DIRHASH #Improve performance on big directories I would keep this also. #options PROCFS #Process filesystem (requires PSEUDOFS) #options PSEUDOFS#Pseudo-filesystem framework I think you want also this (or you can load the /boot/kernel/ appropriate .ko) # Debugging for use in -current #options DDB #Enable the kernel debugger #options INVARIANTS #Enable calls of extra sanity checking optionsINVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS Use also INVARIANTS if you want this. # Pseudo devices - the number indicates how many units to allocate. #devicerandom # Entropy device 99.9% you do need random device loop# Network loopback #deviceether # Ethernet support Also this for networking. #devicepty # Pseudo-ttys (telnet etc) Probably this. #devicemd # Memory disks If you want MDROOT you probably want this to. # USB support device uhci# UHCI PCI-USB interface device ohci# OHCI PCI-USB interface device usb # USB Bus (required) #deviceudbp# USB Double Bulk Pipe devices #deviceugen# Generic #deviceuhid# Human Interface Devices #deviceukbd# Keyboard #deviceulpt# Printer #deviceumass # Disks/Mass storage - Requires scbus and da #deviceums # Mouse #deviceurio# Diamond Rio 500 MP3 player #deviceuscanner# Scanners # USB Ethernet, requires mii #deviceaue # ADMtek USB ethernet #deviceaxe # ASIX Electronics USB ethernet #devicecue # CATC USB ethernet #devicekue # Kawasaki LSI USB ethernet # FireWire support device firewire# FireWire bus code I have the feeling you want also scbus and da for this, not sure. #Sound device pcm You could load the appropriate .ko for your sound card. options PNPBIOS You don't need PNPBIOS in 5.x, despite the handbook. Hope that somebody can offer me some help. Many thanks Nicolas -- IOnut Unregistered ;) FreeBSD user ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Newbie trying to build a new world
Thank you all for answering. I tried all your solutions and I got one step further. I tried to: ln -s /root/kernels/MOAK /usr/src/sys/i386/conf/MOAK and got the answer that the file exists. I changed settings in MOAK. Then i ran: make installkernel KERNCONF=MOAK and it worked. But then I ran: make buildkernel KERNCONF=MOAK and I got this on my screen (last rows): install -p -m 555 -o root -g wheel kernel /boot/kernel install: /boot/kernel/kernel: Read-only file system Error code 71 Stop in /usr/obj/usr/src/sys/MOAK Error code 1 stop in /usr/src error code 1 Thank you again Nicolas ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie trying to build a new world
On Thu, 5 Feb 2004 18:13:50 +0100 Nicolas [EMAIL PROTECTED] wrote: Hello again. Sorry to bother you with this but I really dont know what went wrong this time. Ive done it on my old computer with 4,9 and it went smothe. This is the sequence that I followed: cd /usr/obj rm -Rf * cd /usr/src make buildworld Then: cd /usr/src make buildkernel KERNCONF=MOAK If you didn't reboot or drop to single user, the next step is bad. Then: fsck -p mount -u / mount -a -t ufs swapon -a cd /usr/src make installworld make installkernel KERNCONF=MOAK It is hard following the order in the handbook Nop. First you intallkernel, then you reboot, then from single user installworld. Note that the ultimate reference for all this is /usr/src/UPDATING; if something is told there, follow it. READ IT. Read it again. Follow it. I think it is a bit confusing to read. In my last mail I wrote it in the wrong order. Could be. But perhaps you should take a little pause, drink a coffee, etc. and retry a little later; often one makes the same mistakes again and again when tired; experience speaking ;) Second suggestion - print this and follow it (if it doesn't conflict with UPDATING, I don't know from what to what you are upgrading): cd /usr/obj chflags -R noschg * rm -Rf * cd /usr/src make clean all script /tmp/build_kernel_1 make buildkernel KERNCONF=GENERIC touch /tmp/done_Build_Kernel_G make installkernel KERNCONF=GENERIC touch /tmp/done_Install_Kernel_G CTRL+D if it breaks until here you have a problem with your sources; cvsup. reboot if everithing seems to be OK: script /tmp/mergemaster_p mergemaster -p CTRL+D script /tmp/build_w cd /usr/src make buildworld touch /tmp/done_Build_World make buildkernel KERNCONF=MOAK touch /tmp/done_Build_Kernel make installkernel KERNCONF=MOAK touch /tmp/done_Install_Kernel CTRL+D reboot in single user fsck -p mount -u / mount -a -t ufs swapon -a if needed (you don't have the BIOS clock on UTC) also : adjkerntz -i script /tmp/install_w make installworld CTRL+D reboot script /tmp/build_w maergemaster CTRL+D Of course, heaven only knows what exactly did you do until now; but with script we can try to figure out what goes wrong. The touch(1) are only to be easy to see where it breaks. If I try again do I have to do it all from the beginning (cvsup src and ports)? No. The hole make ... doesn't change the sources. -- IOnut Unregistered ;) FreeBSD user ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]