View Full Version : tweak kernel for AMD
glpnet
07-31-2005, 07:36 AM
Is there a way to tweak the kernel for AMD xp2500?
This is 686 not 386.
Any Ideas/
Thanks
Is there a way to tweak the kernel for AMD xp2500?
This is 686 not 386.
Any Ideas/
Thanks
http://www.freebsd.org/doc/en_US.ISO885 ... onfig.html (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html)
glpnet
07-31-2005, 04:57 PM
according to the man. there is no athalon. whitch shouls I use? i386, alpha, amd64, ia64, powerpc, sparc64. Its already i386.
sblevin
07-31-2005, 05:44 PM
according to the man. there is no athalon. whitch shouls I use? i386, alpha, amd64, ia64, powerpc, sparc64. Its already i386.
I really don't think you have to to do anything - i386 means it's NOT a sparc, ppc, alpha etc. i386 just identifies it as an "itelyish sorta thingo", and it works out the CPU functionality from there.
There's lots you can do to tweak the kernel, but my experience is that it is not the Big Difference. The easiest things to do are to change the GENERIC kernel; comment out the lines for 486 and 586 CPUs, and leave the one for the 686. At least that is what you would do for FreeBSD, and I'm assuming that PC-BSD ships the same version of the generic kernel. Then recompile the kernel as usual.
You can also include the options for SMP if you have multiple processors, dual cores ones, or hyperthreading (but in this case there is a small risk for viruses). You can also comment out the debugging code if it is there in 5.4. This has a much larger effect than any of the other things.
DrJ
antik
08-01-2005, 09:54 AM
Is there a way to tweak the kernel for AMD xp2500?
This is 686 not 386.
Any Ideas/
Thanks
/etc/make.conf
CPUTYPE=athlon #i486, i586, i586/mmx, i686, p2, p3, p4, athlon, athlon64, opteron
CFLAGS= -O2 -march=athlon -pipe -funroll-loops -ffast-math #system
COPTFLAGS= -O2 -march=athlon -pipe -funroll-loops -ffast-math #kernel
if you set the CPUTYPE to Athlon you don't need the -march=athlon in the CFLAGS anymore!
glpnet
08-01-2005, 08:04 PM
Is there a way to tweak the kernel for AMD xp2500?
This is 686 not 386.
Any Ideas/
Thanks
/etc/make.conf
CPUTYPE=athlon #i486, i586, i586/mmx, i686, p2, p3, p4, athlon, athlon64, opteron
CFLAGS= -O2 -march=athlon -pipe -funroll-loops -ffast-math #system
COPTFLAGS= -O2 -march=athlon -pipe -funroll-loops -ffast-math #kernel
Do I have to recompile the kernel or do I copy this code?
Thanks
qratman
08-01-2005, 09:51 PM
Copy this code AND recompile kernel. I think you should also compile userland :roll:
glpnet
08-02-2005, 06:44 AM
I did the recompile following the guide posted above. All went well until I got to make. Im getting an error of-linking kernel
sbp.o(.text+0x24b): In function `sbp_post_busreset':
: undefined reference to `xpt_freeze_simq'
sbp.o(.text+0x38a): In function `sbp_free_ocb':
: undefined reference to `xpt_release_devq'
sbp.o(.text+0x41c): In function `sbp_cam_scan_lun':
: undefined reference to `xpt_setup_ccb'
sbp.o(.text+0x425): In function `sbp_cam_scan_lun':
: undefined reference to `xpt_action'
sbp.o(.text+0x434): In function `sbp_cam_scan_lun':
: undefined reference to `xpt_release_devq'
sbp.o(.text+0x4c2): In function `sbp_cam_scan_target':
: undefined reference to `xpt_setup_ccb'
sbp.o(.text+0x4e7): In function `sbp_cam_scan_target':
: undefined reference to `xpt_action'
sbp.o(.text+0x4f6): In function `sbp_cam_scan_target':
: undefined reference to `xpt_release_devq'
sbp.o(.text+0x57b): In function `sbp_do_attach':
: undefined reference to `xpt_periph'
sbp.o(.text+0x581): In function `sbp_do_attach':
: undefined reference to `xpt_create_path'
sbp.o(.text+0x664): In function `sbp_agent_reset_callback':
: undefined reference to `xpt_release_devq'
sbp.o(.text+0x8fc): In function `sbp_orb_pointer':
: undefined reference to `xpt_done'
sbp.o(.text+0x1545): In function `sbp_action':
: undefined reference to `xpt_freeze_devq'
sbp.o(.text+0x16d1): In function `sbp_action':
: undefined reference to `cam_calc_geometry'
sbp.o(.text+0x1815): In function `sbp_action':
: undefined reference to `xpt_done'
sbp.o(.text+0x1923): In function `sbp_abort_all_ocbs':
: undefined reference to `xpt_done'
sbp.o(.text+0x197d): In function `sbp_cam_detach_sdev':
: undefined reference to `xpt_release_devq'
sbp.o(.text+0x1992): In function `sbp_cam_detach_sdev':
: undefined reference to `xpt_async'
sbp.o(.text+0x199a): In function `sbp_cam_detach_sdev':
: undefined reference to `xpt_free_path'
sbp.o(.text+0x1a5f): In function `sbp_detach':
: undefined reference to `xpt_async'
sbp.o(.text+0x1a67): In function `sbp_detach':
: undefined reference to `xpt_free_path'
sbp.o(.text+0x1a75): In function `sbp_detach':
: undefined reference to `xpt_bus_deregister'
sbp.o(.text+0x1a7f): In function `sbp_detach':
: undefined reference to `cam_sim_free'
sbp.o(.text+0x2031): In function `sbp_recv':
: undefined reference to `xpt_freeze_devq'
sbp.o(.text+0x24e8): In function `sbp_recv':
: undefined reference to `xpt_done'
sbp.o(.text+0x25fe): In function `sbp_timeout':
: undefined reference to `xpt_freeze_devq'
sbp.o(.text+0x2666): In function `sbp_timeout':
: undefined reference to `xpt_freeze_devq'
sbp.o(.text+0x2e9d): In function `sbp_post_explore':
: undefined reference to `xpt_freeze_devq'
sbp.o(.text+0x303d): In function `sbp_post_explore':
: undefined reference to `xpt_freeze_devq'
sbp.o(.text+0x30a8): In function `sbp_post_explore':
: undefined reference to `xpt_release_simq'
sbp.o(.text+0x3180): In function `sbp_attach':
: undefined reference to `cam_simq_alloc'
sbp.o(.text+0x31d0): In function `sbp_attach':
: undefined reference to `cam_sim_alloc'
sbp.o(.text+0x31e0): In function `sbp_attach':
: undefined reference to `cam_simq_free'
sbp.o(.text+0x31ef): In function `sbp_attach':
: undefined reference to `xpt_bus_register'
sbp.o(.text+0x320c): In function `sbp_attach':
: undefined reference to `xpt_periph'
sbp.o(.text+0x3212): In function `sbp_attach':
: undefined reference to `xpt_create_path'
sbp.o(.text+0x3223): In function `sbp_attach':
: undefined reference to `xpt_bus_deregister'
sbp.o(.text+0x32ea): In function `sbp_attach':
: undefined reference to `xpt_async'
sbp.o(.text+0x32f8): In function `sbp_attach':
: undefined reference to `cam_sim_free'
umass.o(.text+0xdce): In function `umass_cam_rescan_callback':
: undefined reference to `xpt_free_path'
umass.o(.text+0xe1a): In function `umass_cam_rescan':
: undefined reference to `xpt_periph'
umass.o(.text+0xe20): In function `umass_cam_rescan':
: undefined reference to `xpt_create_path'
umass.o(.text+0xe31): In function `umass_cam_rescan':
: undefined reference to `xpt_setup_ccb'
umass.o(.text+0xe4c): In function `umass_cam_rescan':
: undefined reference to `xpt_action'
umass.o(.text+0xe66): In function `umass_cam_detach_sim':
: undefined reference to `xpt_bus_deregister'
umass.o(.text+0xe7a): In function `umass_cam_detach_sim':
: undefined reference to `cam_sim_free'
umass.o(.text+0x12f4): In function `umass_attach':
: undefined reference to `cam_simq_alloc'
umass.o(.text+0x1324): In function `umass_attach':
: undefined reference to `cam_sim_alloc'
umass.o(.text+0x1334): In function `umass_attach':
: undefined reference to `cam_simq_free'
umass.o(.text+0x134e): In function `umass_attach':
: undefined reference to `xpt_bus_register'
umass.o(.text+0x15d8): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1719): In function `umass_cam_action':
: undefined reference to `cam_calc_geometry'
umass.o(.text+0x171f): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1731): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x1762): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x1852): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x1891): In function `umass_cam_sense_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x1968): more undefined references to `xpt_done' follow
*** Error code 1
Stop in /usr/src/sys/i386/compile/NEW_KERNEL.
PCBSD#
Whats this about?
Thanks
antik
08-02-2005, 09:23 AM
Copy this code AND recompile kernel. I think you should also compile userland :roll:
# cd
# cvsup stable-supfile
# cd /usr/src
# make buildworld
# make buildkernel
# shutdown now
# make installkernel
# make installworld
# mergemaster
# reboot
cvsup stable-supfile you had to do if you do not have source yet. Then you can update all source and ports with following command:
cd /usr/src
make update
glpnet
08-02-2005, 04:56 PM
Sorry for all this mess and time but Im new at this. Im mentally challeged at this. Could someone please give a step by step code by code copy and paste lesson.
I get this when I tried the above code
PCBSD# cvsup stable-supfile
Cannot open "stable-supfile": No such file or directory
PCBSD# cd cvsup stable-supfile
cd: Too many arguments.
PCBSD# make buildworld
make: don't know how to make buildworld. Stop
PCBSD# CVSup
CVSup: Command not found.
PCBSD# cd
PCBSD# cvsup stable-supfile
Cannot open "stable-supfile": No such file or directory
PCBSD#
Sorry again, But I need help.
Thanks People.
1. open konsole
2. su
3. enter the root password
4. cvsup stable-supfile
5. ...
glpnet
08-02-2005, 08:31 PM
1. open konsole
2. su
3. enter the root password
4. cvsup stable-supfile
5. ...
I did that and I got=PCBSD# cvsup stable-supfile
Cannot open "stable-supfile": No such file or directory
PCBSD# cd cvsup stable-supfile.
But I figured it out with the man.
But, Iwas in the process of doing make buildworld and I had walked away of the computer for a few minutes and it had rebooted and said it was unproperly dismounted.
What would cause that?
Thanks
glpnet
08-03-2005, 04:05 AM
I GOT IT!
Thanks everyone. With the help of this forum and a few other manuals I got it done.
Thanks Again. :D
glpnet
08-03-2005, 06:29 AM
if you set the CPUTYPE to Athlon you don't need the -march=athlon in the CFLAGS anymore!
I had to leave this part in. That was one of the errors for some reason.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.