Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jun 2002 09:23:43 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        Andreas Bachmann <bachmann@feba-webdesign.ch>
Cc:        questions@FreeBSD.ORG
Subject:   Re: own kernel
Message-ID:  <3D03810F.60709@owt.com>
References:  <000101c20fb3$92652520$a5f8a2d9@feba1>

next in thread | previous in thread | raw e-mail | index | archive | help


Andreas Bachmann wrote:

> Hi!
> 
> I have a problem.


You have commented out the devices needed by umass. The line in the 
kernel looks like

#device         umass           # Disks/Mass storage -
Requires scbus and da

It was too long but you can see it needs scbus and da. You either have to commnet out umass like I did or uncomment scbus and da.


Kent


> 
> Greets
> 
> Andreas Bachmann
> 
> 
> That should be:
> 
>   /usr/src/Makefile
> 
>   Kernel and World
>   $ cd /usr/src
>   $ make buildworld
>   $ make buildkernel (KERNCONF=MYKERNEL)
>   $ make installkernel (KERNCONF=MYKERNEL)
>   $ reboot
>   ok boot -s
>   $ mergemaster -p
>   $ make installworld
>   $ mergemaster
>   $ reboot
> 
> That is:
> 
> #####
> # 1 #
> #####
> 
> - Install FreeBSD
> $ pkg_add -r cvs-without-gui
> 
> $ vi /etc/cvsupfile
> *default  host=cvsup.at.freebsd.org
> *default  base=/usr
> *default  prefix=/usr
> *default  release=cvs
> *default  tag=RELENG_4
> *default  delete use-rel-suffix
> src-all
> 
> $ /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile
> $ cd /usr/src
> $ make buildworld
> 
> ######
> # 2a #
> ######
> $ make buildkernel
> $ make installkernel
> $ reboot
> ok boot -s
> $ mergemaster -p
> mergemaster version 1.6.2.13
> Usage: mergemaster [-scrvahipC] [-m /path]
>          [-t /path] [-d] [-u N] [-w N] [-D /path]
> $ make installworld
> Read only Memory
> $ /sbin/mount /
> $ mergemaster -p
> mergemaster version 1.6.2.13
> Usage: mergemaster [-scrvahipC] [-m /path]
>          [-t /path] [-d] [-u N] [-w N] [-D /path]
> $ make installworld
> $ mergemaster
> $ reboot
> Additional daemons: syslogd
> Syslogd: /var/log/auth.log
> No such file or directory
> Configuring syscons: keymap keyrate blanktimevidcontrol: must be on a
> virtual console: in appropriate ioctl ...
> $ ps aux
> ps: proc size mismatch (23232 total, 1100 chunks)
> 
> ######
> # 2b #
> ######
> $ cp /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/MYKERNEL
> $ vi /usr/src/sys/i386/conf/MYKERNEL
> + QUOTA
> - SCSI and RAID
> $ make buildkernel KERNCONF=MYKERNEL
> [...]
> linking kernel
> umass.o: In function `umass_cam_attach_sim':
> umass.o(.text+0x12bf): undefined reference to `cam_simq_alloc'
> umass.o(.text+0x12e5): undefined reference to `cam_sim_alloc'
> umass.o(.text+0x12fe): undefined reference to `xpt_bus_register'
> umass.o(.text+0x130e): undefined reference to `cam_simq_free'
> umass.o: In function `umass_cam_rescan_callback':
> umass.o(.text+0x1327): undefined reference to `xpt_free_path'
> umass.o: In function `umass_cam_rescan':
> umass.o(.text+0x1371): undefined reference to `xpt_periph'
> umass.o(.text+0x137a): undefined reference to `xpt_create_path'
> umass.o(.text+0x138d): undefined reference to `xpt_setup_ccb'
> umass.o(.text+0x13a8): undefined reference to `xpt_action'
> umass.o: In function `umass_cam_detach_sim':
> umass.o(.text+0x145f): undefined reference to `xpt_bus_deregister'
> umass.o(.text+0x147d): undefined reference to `cam_sim_free'
> umass.o: In function `umass_cam_detach':
> umass.o(.text+0x14be): undefined reference to `xpt_create_path'
> umass.o(.text+0x14df): undefined reference to `xpt_async'
> umass.o(.text+0x14e7): undefined reference to `xpt_free_path'
> umass.o: In function `umass_cam_action':
> umass.o(.text+0x1805): undefined reference to `xpt_done'
> umass.o(.text+0x1815): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_cb':
> umass.o(.text+0x1911): undefined reference to `xpt_done'
> umass.o: In function `umass_cam_sense_cb':
> umass.o(.text+0x1988): undefined reference to `xpt_done'
> umass.o(.text+0x1999): undefined reference to `xpt_done'
> *** Error code 1
> 
> Stop in /usr/obj/usr/src/sys/MYKERNEL.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
> .
> 
> 


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D03810F.60709>