Re: 4.7R - Kernel Compile (old way) "Error code 1"
On 2003-01-24 18:28, Danny <[EMAIL PROTECTED]> wrote: > From: "Giorgos Keramidas" <[EMAIL PROTECTED]> > > There is nothing wrong with the "old way" if you haven't touched the > > sources since your last buildworld. > > I think you read that wrong. I was not implying that the "old way" > was bad in anyway, I was just qouting the handbook reference to > being the "old way". Aye. That works too. I should bite the bullet and update the section that speaks about kernel compiles one of these days. Thanks for being patient with my previous hasty reply. > > You are obviously missing stuff that is required for SCSI support. > > I do not have any SCSI, USB, PCMCIA, and RAID hardware, so > I removed all that stuff, which could be part of the problem-o. :) Not all. Looking carefully at your posted config file I could spot at least three SCSI controllers left in there :( # adv: All Narrow SCSI bus AdvanSys controllers. # bt: Most Buslogic controllers: including BT-445, BT-54x, BT-64x, BT-74x, # BT-75x, BT-946, BT-948, BT-956, BT-958, SDC3211B, SDC3211F, SDC3222F # ncr: NCR 53C810, 53C825 self-contained SCSI host adapters. > Some of these, (even if one does not have the hardware) must be > required no matter what, then? Some options depend on the presense of others. > > # cd /usr/src/sys/i386/conf > > # cp GENERIC RANCID > > > > then make a few modifications to RANCID and build your kernel: > > > > # vi RANCID > > # config -d /usr/obj/usr/src/sys/RANCID RANCID > > # cd /usr/obj/usr/src/sys/RANCID > > # make depend && make clean && make all > > Another user suggested: > > # cd /usr/src/sys/compile > # rm -R name_of_kernel_dir > > To remove reminisce of the partial make? > > Now back to start: > > # cd /usr/src/sys/i386/conf > # cp GENERIC MYKERNEL > Edit lightly > # ee MYKERNEL > # /usr/sbin/config MYKERNEL > # cd ../.../compile/MYKERNEL > # make depend > # make > # make install > > Could you please elaborate on your differences? I am new to most of > this, so I am interested in different users experiences. The makefiles in /usr/src/Makefile* include a "buildkernel" target that builds the kernel in /usr/obj/usr/src/sys/MYKERNEL instead of /usr/src/sys/i386/MYKERNEL. This is what the commands I suggested will do. This has the added advantage that it supposed to work fine even if /usr/src is read-only. Plus, you keep the build files outside of /usr/src and you won't risk losing them when you run CVSup again. The best way for upgrading is by far to read /usr/src/UPDATING though, especially the part near: To update from 4.0-RELEASE or later to the most current 4.x-STABLE -- I hope I havn't confused you with all this. Good luck with your next upgrade attempt :-) - Giorgos To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: 4.7R - Kernel Compile (old way) "Error code 1"
From: "Giorgos Keramidas" <[EMAIL PROTECTED]> > There is nothing wrong with the "old way" if you haven't touched the > sources since your last buildworld. I think you read that wrong. I was not implying that the "old way" was bad in anyway, I was just qouting the handbook reference to being the "old way". > You are obviously missing stuff that is required for SCSI support. I do not have any SCSI, USB, PCMCIA, and RAID hardware, so I removed all that stuff, which could be part of the problem-o. :) Some of these, (even if one does not have the hardware) must be required no matter what, then? > Right now, it seems that you're missing at least "device pass" and > related stuff... I'd recommend starting over by: > > # cd /usr/src/sys/i386/conf > # cp GENERIC RANCID > > then make a few modifications to RANCID and build your kernel: > > # vi RANCID > # config -d /usr/obj/usr/src/sys/RANCID RANCID > # cd /usr/obj/usr/src/sys/RANCID > # make depend && make clean && make all Another user suggested: # cd /usr/src/sys/compile # rm -R name_of_kernel_dir To remove reminisce of the partial make? Now back to start: # cd /usr/src/sys/i386/conf # cp GENERIC MYKERNEL Edit lightly # ee MYKERNEL # /usr/sbin/config MYKERNEL # cd ../.../compile/MYKERNEL # make depend # make # make install Could you please elaborate on your differences? I am new to most of this, so I am interested in different users experiences. Thank you! Danny To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: 4.7R - Kernel Compile (old way) "Error code 1"
From: "Michael K. Smith" <[EMAIL PROTECTED]> > > > scsi_low.o: In function `scsi_low_cam_rescan_callback': > > scsi_low.o(.text+0x1e7): undefined reference to `xpt_free_path' > > scsi_low.o: In function `scsi_low_rescan_bus_cam': > > scsi_low.o(.text+0x233): undefined reference to `xpt_periph' > > scsi_low.o(.text+0x23c): undefined reference to `xpt_create_path' > > scsi_low.o(.text+0x24f): undefined reference to `xpt_setup_ccb' > > scsi_low.o(.text+0x26a): undefined reference to `xpt_action' > > *** Error code 1 > > > > It would appear you have removed critical entries to the SCSI subsystem in > your kernel. If the kernel you included was the total output of your > options, then you are definitely missing something from the SCSI config. Jezz, you guys are fast at responding. :) Thank you, I hope to help out in the future once I learn some more. I obviously missed a few notes in the handbook, because I do not have any SCSI, RAID, USB, or PCMCIA hardware in the system, so I thought I would just remove all that stuff. :D Scary eh? :) I am just playing around with custom kernels, nothing production. > Maybe this perhaps: > > # SCSI peripherals > device scbus # SCSI bus (required) I will add that in and give it go. Regards, Danny To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: 4.7R - Kernel Compile (old way) "Error code 1"
On 2003-01-24 17:32, Danny <[EMAIL PROTECTED]> wrote: > Greetings, > > I am trying to build a custom kernel, but I recieved a stop error after > (90% sure it was) executing "make" - based on the "old way" instructions > in the handbook (printed out, but it maybe a release or two old). > > Please let me know if any further information is required. There is nothing wrong with the "old way" if you haven't touched the sources since your last buildworld. You are obviously missing stuff that is required for SCSI support. Try copying GENERIC and making modifications to it one step at a time. Your current config fil is too different for someone to check for missing options :-( > opt_global.h -elf -mpreferred-stack-boundary=2 vers.c linking kernel > scsi_low.o: In function `scsi_low_cam_rescan_callback': > scsi_low.o(.text+0x1e7): undefined reference to `xpt_free_path' > scsi_low.o: In function `scsi_low_rescan_bus_cam': > scsi_low.o(.text+0x233): undefined reference to `xpt_periph' > scsi_low.o(.text+0x23c): undefined reference to `xpt_create_path' > scsi_low.o(.text+0x24f): undefined reference to `xpt_setup_ccb' > scsi_low.o(.text+0x26a): undefined reference to `xpt_action' [...] > *** Error code 1 > > Stop in /usr/src/sys/compile/RANCIDKRN. > rancid# Right now, it seems that you're missing at least "device pass" and related stuff... I'd recommend starting over by: # cd /usr/src/sys/i386/conf # cp GENERIC RANCID then make a few modifications to RANCID and build your kernel: # vi RANCID # config -d /usr/obj/usr/src/sys/RANCID RANCID # cd /usr/obj/usr/src/sys/RANCID # make depend && make clean && make all and move on... - Giorgos To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: 4.7R - Kernel Compile (old way) "Error code 1"
Hello Danny: On Fri, 24 Jan 2003, Danny wrote: > Greetings, > > I am trying to build a custom kernel, but I recieved a stop error after > (90% sure it was) executing "make" - based on the "old way" instructions > in the handbook (printed out, but it maybe a release or two old). > > Please let me know if any further information is required. > > Thank you for your time and assistance! > > scsi_low.o: In function `scsi_low_cam_rescan_callback': > scsi_low.o(.text+0x1e7): undefined reference to `xpt_free_path' > scsi_low.o: In function `scsi_low_rescan_bus_cam': > scsi_low.o(.text+0x233): undefined reference to `xpt_periph' > scsi_low.o(.text+0x23c): undefined reference to `xpt_create_path' > scsi_low.o(.text+0x24f): undefined reference to `xpt_setup_ccb' > scsi_low.o(.text+0x26a): undefined reference to `xpt_action' > *** Error code 1 > It would appear you have removed critical entries to the SCSI subsystem in your kernel. If the kernel you included was the total output of your options, then you are definitely missing something from the SCSI config. Maybe this perhaps: # SCSI peripherals device scbus # SCSI bus (required) Mike To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message