* kernel build for mikasa-primo
@ 1999-08-09 20:34 James Barriault USG
1999-08-09 21:46 ` Peter Rival
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: James Barriault USG @ 1999-08-09 20:34 UTC (permalink / raw)
To: axp-list
hi,
I have a AS1000 5/400 which I am trying to build a kernel for. Now
regardless of the platform I try to build it on I get the following
errors. i have tried this with the kernel soucre provided by redhat 6.0
as well as 2.2.9 and 10. All with the same results. I'm hoping that it is
something obvious that I am missing. Anyone have any ideas?
ld -static -T arch/alpha/vmlinux.lds arch/alpha/kernel/head.o init/main.o
init/version.o \
--start-group \
arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o arch/alpha/math-emu/math-emu.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
drivers/pci/pci.a drivers/video/video.a \
/usr/src/linux-2.2.10/arch/alpha/lib/lib.a
/usr/src/linux-2.2.10/lib/lib.a /usr/src/linux-2.2.10/arch/alpha/lib/lib.a
\
--end-group \
-o vmlinux
arch/alpha/kernel/kernel.o: In function `mikasa_machine_check':
sys_mikasa.c(.text+0xbd2c): undefined reference to `apecs_mcheck_expected'
sys_mikasa.c(.text+0xbd88): undefined reference to `apecs_mcheck_taken'
sys_mikasa.c(.text+0xbda0): undefined reference to `apecs_pci_clr_err'
sys_mikasa.c(.text+0xbda4): undefined reference to `apecs_pci_clr_err'
make: *** [vmlinux] Error 1
config file:
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y
#
# General setup
#
CONFIG_ALPHA_MIKASA=y
CONFIG_ALPHA_PRIMO=y
CONFIG_ALPHA_EV5=y
CONFIG_ALPHA_CIA=y
CONFIG_PCI=y
CONFIG_ALPHA_SRM=y
CONFIG_ALPHA_EISA=y
CONFIG_PCI_QUIRKS=y
CONFIG_PCI_OLD_PROC=y
CONFIG_NET=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_EM86=y
# Block devices
CONFIG_BLK_DEV_FD=y
CONFIG_PARIDE_PARPORT=y
# Networking options
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_SKB_LARGE=y
# SCSI support
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_BLK_DEV_SR=y
CONFIG_SCSI_CONSTANTS=y
# SCSI low-level drivers
CONFIG_SCSI_NCR53C8XX=y
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=8
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=20
# Network device support
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
CONFIG_NET_ETHERNET=y
CONFIG_NET_EISA=y
CONFIG_DE4X5=y
# Character devices
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_MOUSE=y
# Mice
CONFIG_PSMOUSE=y
# Filesystems
CONFIG_ISO9660_FS=y
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
CONFIG_EXT2_FS=y
# Network File Systems
CONFIG_NFS_FS=y
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
# Partition Types
CONFIG_BSD_DISKLABEL=y
# Console drivers
CONFIG_VGA_CONSOLE=y
# Kernel hacking
CONFIG_MATHEMU=y
-Jim
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: kernel build for mikasa-primo 1999-08-09 20:34 kernel build for mikasa-primo James Barriault USG @ 1999-08-09 21:46 ` Peter Rival 1999-08-10 0:12 ` RH6.0 Install! Antonio S. Martins Jr. 1999-08-10 4:25 ` kernel build for mikasa-primo Richard Henderson 2 siblings, 0 replies; 6+ messages in thread From: Peter Rival @ 1999-08-09 21:46 UTC (permalink / raw) To: axp-list James Barriault USG wrote: > hi, > > I have a AS1000 5/400 which I am trying to build a kernel for. Now > regardless of the platform I try to build it on I get the following > errors. i have tried this with the kernel soucre provided by redhat 6.0 > as well as 2.2.9 and 10. All with the same results. I'm hoping that it is > something obvious that I am missing. Anyone have any ideas? > > ld -static -T arch/alpha/vmlinux.lds arch/alpha/kernel/head.o init/main.o > init/version.o \ > --start-group \ > arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o > mm/mm.o fs/fs.o ipc/ipc.o arch/alpha/math-emu/math-emu.o \ > fs/filesystems.a \ > net/network.a \ > drivers/block/block.a drivers/char/char.a drivers/misc/misc.a > drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a > drivers/pci/pci.a drivers/video/video.a \ > /usr/src/linux-2.2.10/arch/alpha/lib/lib.a > /usr/src/linux-2.2.10/lib/lib.a /usr/src/linux-2.2.10/arch/alpha/lib/lib.a > \ > --end-group \ > -o vmlinux > arch/alpha/kernel/kernel.o: In function `mikasa_machine_check': > sys_mikasa.c(.text+0xbd2c): undefined reference to `apecs_mcheck_expected' > sys_mikasa.c(.text+0xbd88): undefined reference to `apecs_mcheck_taken' > sys_mikasa.c(.text+0xbda0): undefined reference to `apecs_pci_clr_err' > sys_mikasa.c(.text+0xbda4): undefined reference to `apecs_pci_clr_err' > make: *** [vmlinux] Error 1 > I just dug through real quickly under the 2.3.13-presomething base and it appears that the problem comes from the fact that these are defined in arch/alpha/kernel/core_apecs.c, which is never linked into arch/alpha/kernel/kernel.o. However (I'm loving this...no...really) if you just quickly fiddle bits in the .config file to get core_apecs.o to link in instead of core_cia.o, there are problems with things existing in core_cia.o not being defined in the final link. Fine, you say - add them both. Nope - complains endlessly about core_cia.o trying to redefine things such as cia_srm_writeq (IIRC) which it insists is defined first in core_apecs.o. Funny tho - core_apecs.c doesn't refer to cia_srm anything. I'm confused at this point, and dreadfully short on both energy and caffeine...if I get a chance I'll look at it tomorrow. It smells like a buggered Makefile/config setting, but I just don't have the <pick adjective> to dig into that unless no one else knows what's up. - Pete ^ permalink raw reply [flat|nested] 6+ messages in thread
* RH6.0 Install! 1999-08-09 20:34 kernel build for mikasa-primo James Barriault USG 1999-08-09 21:46 ` Peter Rival @ 1999-08-10 0:12 ` Antonio S. Martins Jr. 1999-08-10 0:33 ` Xiaozhou Qiu 1999-08-10 4:25 ` kernel build for mikasa-primo Richard Henderson 2 siblings, 1 reply; 6+ messages in thread From: Antonio S. Martins Jr. @ 1999-08-10 0:12 UTC (permalink / raw) To: axp-list Hi there, I'm trying to put RH6.0 on a Digital AlphaServer 400 4/166 (Avanti). I had created 3 disks: - a MILO image (from /milo/images/avanti.img) - a GENERIC disk (from /images/generic.img) - a RAMDISK disk (from /images/ramdisk.img) I can't understand what to do with it! I'm trying to boot the install software from the MILO disk with the command via SRM: >>boot dva0 -file vmlinux.gz -flags "root=/dev/fd0 loadramdisk=1" but it didn't work. It work on the _generic_ floppy, but it stops asking for the _root disk_ and if I put any one of them I get a Kernel Panic message! There is some docs where I can get this thing up? I had already installed Linux on countless Intels, and some Sparc machines. Can someone point me the right direction? thanks in advance, Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist | "Only The Shadow Knows | | WorldNet Internet Maringa - PR - Brasil | what evil lurks in the | | E-Mail: shadow@wnet.com.br | Heart of Men!" | | shadow@uem.br | !!! Linux User: 52392 !!! | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ This e-mail message is 100% Microsoft free! /"\ \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL / \ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: RH6.0 Install! 1999-08-10 0:12 ` RH6.0 Install! Antonio S. Martins Jr. @ 1999-08-10 0:33 ` Xiaozhou Qiu 0 siblings, 0 replies; 6+ messages in thread From: Xiaozhou Qiu @ 1999-08-10 0:33 UTC (permalink / raw) To: axp-list You don't need the milo disk if you use SRM to boot. First use generic.img, then use ramdisk.img when prompted. If you still get kernel panic, try downloading the updated ramdisk image from ftp.cc.gatech.edu/pub/Linux/distributions/redhat/updates/6.0/images/alpha If it still doesn't work, you can also try specify CD-ROM as root. boot dva0 -fi vmlinux.gz -fl "root=/dev/scd0 load_ramdisk=1". You may come to my website for more information about alpha Linux installation. sincerely yours Xiaozhou Qiu http://www.iol.unh.edu/linux/alpha Linux Consorsium Interoperability Lab University of New Hampshire Durham, NH 03824 (603)862-1908 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel build for mikasa-primo 1999-08-09 20:34 kernel build for mikasa-primo James Barriault USG 1999-08-09 21:46 ` Peter Rival 1999-08-10 0:12 ` RH6.0 Install! Antonio S. Martins Jr. @ 1999-08-10 4:25 ` Richard Henderson 1999-08-10 11:11 ` Peter Rival 2 siblings, 1 reply; 6+ messages in thread From: Richard Henderson @ 1999-08-10 4:25 UTC (permalink / raw) To: axp-list > arch/alpha/kernel/kernel.o: In function `mikasa_machine_check': > sys_mikasa.c(.text+0xbd2c): undefined reference to `apecs_mcheck_expected' > sys_mikasa.c(.text+0xbd88): undefined reference to `apecs_mcheck_taken' > sys_mikasa.c(.text+0xbda0): undefined reference to `apecs_pci_clr_err' > sys_mikasa.c(.text+0xbda4): undefined reference to `apecs_pci_clr_err' The following probably works. Question: Surely primo should be using cia_machine_check, since it's a cia based machine? r~ --- 2.3.13-6/arch/alpha/kernel/sys_mikasa.c Sun Sep 6 10:34:33 1998 +++ 2.3.13-axp/arch/alpha/kernel/sys_mikasa.c Mon Aug 9 21:22:50 1999 @@ -151,6 +151,7 @@ mikasa_primo_pci_fixup(void) common_pci_fixup(mikasa_map_irq, common_swizzle); } +#if defined(CONFIG_ALPHA_GENERIC) || !defined(CONFIG_ALPHA_PRIMO) static void mikasa_machine_check(unsigned long vector, unsigned long la_ptr, struct pt_regs * regs) @@ -236,6 +237,7 @@ mikasa_machine_check(unsigned long vecto #endif } } +#endif /* GENERIC || !PRIMO */ /* @@ -274,7 +276,7 @@ struct alpha_machine_vector mikasa_primo DO_DEFAULT_RTC, DO_CIA_IO, DO_CIA_BUS, - machine_check: mikasa_machine_check, + machine_check: cia_machine_check, max_dma_address: ALPHA_MAX_DMA_ADDRESS, nr_irqs: 32, ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel build for mikasa-primo 1999-08-10 4:25 ` kernel build for mikasa-primo Richard Henderson @ 1999-08-10 11:11 ` Peter Rival 0 siblings, 0 replies; 6+ messages in thread From: Peter Rival @ 1999-08-10 11:11 UTC (permalink / raw) To: axp-list Richard Henderson wrote: > > arch/alpha/kernel/kernel.o: In function `mikasa_machine_check': > > sys_mikasa.c(.text+0xbd2c): undefined reference to `apecs_mcheck_expected' > > sys_mikasa.c(.text+0xbd88): undefined reference to `apecs_mcheck_taken' > > sys_mikasa.c(.text+0xbda0): undefined reference to `apecs_pci_clr_err' > > sys_mikasa.c(.text+0xbda4): undefined reference to `apecs_pci_clr_err' > > The following probably works. Question: Surely primo should > be using cia_machine_check, since it's a cia based machine? > Thank you for confirming that I'm not a moron. That's what I had expected all along, but the code didn't exactly seem to jive with that. Who knows...probably am still a moron... ;) - Pete ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-08-10 11:15 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1999-08-09 20:34 kernel build for mikasa-primo James Barriault USG 1999-08-09 21:46 ` Peter Rival 1999-08-10 0:12 ` RH6.0 Install! Antonio S. Martins Jr. 1999-08-10 0:33 ` Xiaozhou Qiu 1999-08-10 4:25 ` kernel build for mikasa-primo Richard Henderson 1999-08-10 11:11 ` Peter Rival
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox