kernel 2.4.2 build fails when I enable modules support

machael dony.he at huawei.com.cn
Fri Apr 6 16:46:22 EST 2001


Hi, Marcio, You should make such modifications in
arch/ppc/kernel/ppc_ksyms.c

+#ifdef CONFIG_VT
    EXPORT_SYMBOL(kd_mksound);
+#endif

+#ifdef CONFIG_ALL_PPC
    EXPORT_SYMBOL(sys_ctrler);
+#endif

Cheers,

machael


----- Original Message -----
From: "Marcio Koch" <koch at inf.pucrs.br>
To: "LinuxPPC-Embedded" <linuxppc-embedded at lists.linuxppc.org>
Sent: Friday, April 06, 2001 2:49 AM
Subject: kernel 2.4.2 build fails when I enable modules support


>
> Hi,
>
> I'm trying to build kernel 2.4.2 for the mpc860 with modules, but it fails
> in make zImage (more details, below the .config).
>
> Here is the .config I'm using:
>
> #
> # Automatically generated by make menuconfig: don't edit
> #
> # CONFIG_UID16 is not set
>
> #
> # Code maturity level options
> #
> CONFIG_EXPERIMENTAL=y
>
> #
> # Loadable module support
> #
> CONFIG_MODULES=y
> CONFIG_MODVERSIONS=y
> CONFIG_KMOD=y
>
> #
> # Platform support
> #
> CONFIG_PPC=y
> # CONFIG_6xx is not set
> # CONFIG_4xx is not set
> # CONFIG_POWER3 is not set
> # CONFIG_POWER4 is not set
> CONFIG_8xx=y
> CONFIG_SERIAL_CONSOLE=y
> # CONFIG_RPXLITE is not set
> # CONFIG_RPXCLASSIC is not set
> CONFIG_BSEIP=y
> # CONFIG_TQM8xxL is not set
> # CONFIG_TQM860L is not set
> # CONFIG_TQM860 is not set
> # CONFIG_MBX is not set
> # CONFIG_WINCEPT is not set
> # CONFIG_PPC601_SYNC_FIX is not set
> # CONFIG_ALL_PPC is not set
> # CONFIG_SMP is not set
> CONFIG_MACH_SPECIFIC=y
> CONFIG_MATH_EMULATION=y
>
> #
> # General setup
> #
> # CONFIG_HIGHMEM is not set
> # CONFIG_MOL is not set
> # CONFIG_ISA is not set
> # CONFIG_EISA is not set
> # CONFIG_SBUS is not set
> # CONFIG_MCA is not set
> # CONFIG_PCI_QSPAN is not set
> # CONFIG_PCI is not set
> CONFIG_NET=y
> CONFIG_SYSCTL=y
> CONFIG_SYSVIPC=y
> # CONFIG_BSD_PROCESS_ACCT is not set
> CONFIG_KCORE_ELF=y
> CONFIG_BINFMT_ELF=y
> CONFIG_KERNEL_ELF=y
> # CONFIG_BINFMT_MISC is not set
> # CONFIG_HOTPLUG is not set
> # CONFIG_PCMCIA is not set
>
> #
> # Parallel port support
> #
> # CONFIG_PARPORT is not set
>
> #
> # Memory Technology Devices (MTD)
> #
> CONFIG_MTD=m
> CONFIG_MTD_DEBUG=y
> CONFIG_MTD_DEBUG_VERBOSE=3
> # CONFIG_MTD_DOC1000 is not set
> # CONFIG_MTD_DOC2000 is not set
> # CONFIG_MTD_DOC2001 is not set
> # CONFIG_MTD_DOCPROBE is not set
> # CONFIG_MTD_SLRAM is not set
> # CONFIG_MTD_PMC551 is not set
> # CONFIG_MTD_MTDRAM is not set
> CONFIG_MTD_CFI=m
> # CONFIG_MTD_CFI_INTELEXT is not set
> # CONFIG_MTD_CFI_AMDSTD is not set
> # CONFIG_MTD_RAM is not set
> CONFIG_MTD_ROM=m
> # CONFIG_MTD_JEDEC is not set
> # CONFIG_MTD_PHYSMAP is not set
> # CONFIG_MTD_MIXMEM is not set
> # CONFIG_MTD_NORA is not set
> # CONFIG_MTD_OCTAGON is not set
> # CONFIG_MTD_PNC2000 is not set
> CONFIG_MTD_RPXLITE=m
> # CONFIG_MTD_VMAX is not set
> # CONFIG_MTD_CHAR is not set
> # CONFIG_MTD_BLOCK is not set
> # CONFIG_FTL is not set
> # CONFIG_NFTL is not set
>
> #
> # Plug and Play configuration
> #
> # CONFIG_PNP is not set
> # CONFIG_ISAPNP is not set
>
> #
> # Block devices
> #
> # CONFIG_BLK_DEV_FD is not set
> # CONFIG_BLK_DEV_XD is not set
> # CONFIG_PARIDE is not set
> # CONFIG_BLK_CPQ_DA is not set
> # CONFIG_BLK_CPQ_CISS_DA is not set
> # CONFIG_BLK_DEV_DAC960 is not set
> # CONFIG_BLK_DEV_LOOP is not set
> # CONFIG_BLK_DEV_NBD is not set
> # CONFIG_BLK_DEV_RAM is not set
> # CONFIG_BLK_DEV_INITRD is not set
>
> #
> # Multi-device support (RAID and LVM)
> #
> # CONFIG_MD is not set
> # CONFIG_BLK_DEV_MD is not set
> # CONFIG_MD_LINEAR is not set
> # CONFIG_MD_RAID0 is not set
> # CONFIG_MD_RAID1 is not set
> # CONFIG_MD_RAID5 is not set
> # CONFIG_BLK_DEV_LVM is not set
>
> #
> # Networking options
> #
> CONFIG_PACKET=y
> # CONFIG_PACKET_MMAP is not set
> CONFIG_NETLINK=y
> # CONFIG_RTNETLINK is not set
> # CONFIG_NETLINK_DEV is not set
> # CONFIG_NETFILTER is not set
> # CONFIG_FILTER is not set
> CONFIG_UNIX=y
> CONFIG_INET=y
> CONFIG_IP_MULTICAST=y
> # CONFIG_IP_ADVANCED_ROUTER is not set
> CONFIG_IP_PNP=y
> CONFIG_IP_PNP_BOOTP=y
> # CONFIG_IP_PNP_RARP is not set
> # CONFIG_NET_IPIP is not set
> # CONFIG_NET_IPGRE is not set
> # CONFIG_IP_MROUTE is not set
> # CONFIG_INET_ECN is not set
> # CONFIG_SYN_COOKIES is not set
> # CONFIG_IPV6 is not set
> # CONFIG_KHTTPD is not set
> # CONFIG_ATM is not set
> # CONFIG_IPX is not set
> # CONFIG_ATALK is not set
> # CONFIG_DECNET is not set
> # CONFIG_BRIDGE is not set
> # CONFIG_X25 is not set
> # CONFIG_LAPB is not set
> # CONFIG_LLC is not set
> # CONFIG_NET_DIVERT is not set
> # CONFIG_ECONET is not set
> # CONFIG_WAN_ROUTER is not set
> # CONFIG_NET_FASTROUTE is not set
> # CONFIG_NET_HW_FLOWCONTROL is not set
>
> #
> # QoS and/or fair queueing
> #
> # CONFIG_NET_SCHED is not set
>
> #
> # ATA/IDE/MFM/RLL support
> #
> # CONFIG_IDE is not set
> # CONFIG_BLK_DEV_IDE_MODES is not set
> # CONFIG_BLK_DEV_HD is not set
>
> #
> # SCSI support
> #
> # CONFIG_SCSI is not set
>
> #
> # Network device support
> #
> CONFIG_NETDEVICES=y
>
> #
> # ARCnet devices
> #
> # CONFIG_ARCNET is not set
> # CONFIG_DUMMY is not set
> # CONFIG_BONDING is not set
> # CONFIG_EQUALIZER is not set
> # CONFIG_TUN is not set
> # CONFIG_ETHERTAP is not set
> # CONFIG_NET_SB1000 is not set
>
> #
> # Ethernet (10 or 100Mbit)
> #
> CONFIG_NET_ETHERNET=y
> # CONFIG_MACE is not set
> # CONFIG_BMAC is not set
> # CONFIG_GMAC is not set
> # CONFIG_NCR885E is not set
> # CONFIG_OAKNET is not set
> # CONFIG_NET_VENDOR_3COM is not set
> # CONFIG_LANCE is not set
> # CONFIG_NET_VENDOR_SMC is not set
> # CONFIG_NET_VENDOR_RACAL is not set
> # CONFIG_AT1700 is not set
> # CONFIG_DEPCA is not set
> # CONFIG_NET_ISA is not set
> CONFIG_NET_PCI=y
> # CONFIG_PCNET32 is not set
> # CONFIG_ADAPTEC_STARFIRE is not set
> # CONFIG_APRICOT is not set
> # CONFIG_CS89x0 is not set
> # CONFIG_TULIP is not set
> # CONFIG_DM9102 is not set
> # CONFIG_EEPRO100 is not set
> # CONFIG_EEPRO100_PM is not set
> # CONFIG_LNE390 is not set
> # CONFIG_NATSEMI is not set
> # CONFIG_NE2K_PCI is not set
> # CONFIG_NE3210 is not set
> # CONFIG_ES3210 is not set
> # CONFIG_8139TOO is not set
> # CONFIG_RTL8129 is not set
> # CONFIG_SIS900 is not set
> # CONFIG_EPIC100 is not set
> # CONFIG_SUNDANCE is not set
> # CONFIG_VIA_RHINE is not set
> # CONFIG_WINBOND_840 is not set
> # CONFIG_HAPPYMEAL is not set
> # CONFIG_NET_POCKET is not set
>
> #
> # Ethernet (1000 Mbit)
> #
> # CONFIG_ACENIC is not set
> # CONFIG_HAMACHI is not set
> # CONFIG_YELLOWFIN is not set
> # CONFIG_SK98LIN is not set
> # CONFIG_FDDI is not set
> # CONFIG_HIPPI is not set
> # CONFIG_PPP is not set
> # CONFIG_SLIP is not set
>
> #
> # Wireless LAN (non-hamradio)
> #
> # CONFIG_NET_RADIO is not set
>
> #
> # Token Ring devices
> #
> # CONFIG_TR is not set
> # CONFIG_NET_FC is not set
> # CONFIG_RCPCI is not set
> # CONFIG_SHAPER is not set
>
> #
> # Wan interfaces
> #
> # CONFIG_WAN is not set
>
> #
> # Amateur Radio support
> #
> # CONFIG_HAMRADIO is not set
>
> #
> # IrDA (infrared) support
> #
> # CONFIG_IRDA is not set
>
> #
> # ISDN subsystem
> #
> # CONFIG_ISDN is not set
>
> #
> # Old CD-ROM drivers (not SCSI, not IDE)
> #
> # CONFIG_CD_NO_IDESCSI is not set
>
> #
> # Console drivers
> #
>
> #
> # Frame-buffer support
> #
> # CONFIG_FB is not set
>
> #
> # Input core support
> #
> # CONFIG_INPUT is not set
>
> #
> # Macintosh device drivers
> #
>
> #
> # Character devices
> #
> # CONFIG_VT is not set
> # CONFIG_SERIAL is not set
> # CONFIG_SERIAL_EXTENDED is not set
> # CONFIG_SERIAL_NONSTANDARD is not set
> CONFIG_UNIX98_PTYS=y
> CONFIG_UNIX98_PTY_COUNT=256
>
> #
> # I2C support
> #
> # CONFIG_I2C is not set
>
> #
> # Mice
> #
> # CONFIG_BUSMOUSE is not set
> # CONFIG_MOUSE is not set
>
> #
> # Joysticks
> #
> # CONFIG_JOYSTICK is not set
> # CONFIG_QIC02_TAPE is not set
>
> #
> # Watchdog Cards
> #
> # CONFIG_WATCHDOG is not set
> # CONFIG_INTEL_RNG is not set
> # CONFIG_NVRAM is not set
> # CONFIG_RTC is not set
> # CONFIG_DTLK is not set
> # CONFIG_R3964 is not set
> # CONFIG_APPLICOM is not set
>
> #
> # Ftape, the floppy tape device driver
> #
> # CONFIG_FTAPE is not set
> # CONFIG_AGP is not set
> # CONFIG_DRM is not set
>
> #
> # Multimedia devices
> #
> # CONFIG_VIDEO_DEV is not set
>
> #
> # File systems
> #
> # CONFIG_QUOTA is not set
> # CONFIG_AUTOFS_FS is not set
> # CONFIG_AUTOFS4_FS is not set
> # CONFIG_REISERFS_FS is not set
> # CONFIG_REISERFS_CHECK is not set
> # CONFIG_ADFS_FS is not set
> # CONFIG_ADFS_FS_RW is not set
> # CONFIG_AFFS_FS is not set
> # CONFIG_HFS_FS is not set
> # CONFIG_BFS_FS is not set
> # CONFIG_FAT_FS is not set
> # CONFIG_MSDOS_FS is not set
> # CONFIG_UMSDOS_FS is not set
> # CONFIG_VFAT_FS is not set
> # CONFIG_EFS_FS is not set
> CONFIG_JFFS_FS=m
> CONFIG_JFFS_FS_VERBOSE=3
> # CONFIG_CRAMFS is not set
> # CONFIG_RAMFS is not set
> # CONFIG_ISO9660_FS is not set
> # CONFIG_JOLIET is not set
> # CONFIG_MINIX_FS is not set
> # CONFIG_NTFS_FS is not set
> # CONFIG_NTFS_RW is not set
> # CONFIG_HPFS_FS is not set
> CONFIG_PROC_FS=y
> # CONFIG_DEVFS_FS is not set
> # CONFIG_DEVFS_MOUNT is not set
> # CONFIG_DEVFS_DEBUG is not set
> CONFIG_DEVPTS_FS=y
> # CONFIG_QNX4FS_FS is not set
> # CONFIG_QNX4FS_RW is not set
> # CONFIG_ROMFS_FS is not set
> CONFIG_EXT2_FS=y
> # CONFIG_SYSV_FS is not set
> # CONFIG_SYSV_FS_WRITE is not set
> # CONFIG_UDF_FS is not set
> # CONFIG_UDF_RW is not set
> # CONFIG_UFS_FS is not set
> # CONFIG_UFS_FS_WRITE is not set
>
> #
> # Network File Systems
> #
> # CONFIG_CODA_FS is not set
> CONFIG_NFS_FS=y
> # CONFIG_NFS_V3 is not set
> CONFIG_ROOT_NFS=y
> # CONFIG_NFSD is not set
> # CONFIG_NFSD_V3 is not set
> CONFIG_SUNRPC=y
> CONFIG_LOCKD=y
> # CONFIG_SMB_FS is not set
> # CONFIG_NCP_FS is not set
> # CONFIG_NCPFS_PACKET_SIGNING is not set
> # CONFIG_NCPFS_IOCTL_LOCKING is not set
> # CONFIG_NCPFS_STRONG is not set
> # CONFIG_NCPFS_NFS_NS is not set
> # CONFIG_NCPFS_OS2_NS is not set
> # CONFIG_NCPFS_SMALLDOS is not set
> # CONFIG_NCPFS_NLS is not set
> # CONFIG_NCPFS_EXTRAS is not set
>
> #
> # Partition Types
> #
> CONFIG_PARTITION_ADVANCED=y
> # CONFIG_ACORN_PARTITION is not set
> # CONFIG_OSF_PARTITION is not set
> # CONFIG_AMIGA_PARTITION is not set
> # CONFIG_ATARI_PARTITION is not set
> # CONFIG_MAC_PARTITION is not set
> # CONFIG_MSDOS_PARTITION is not set
> # CONFIG_SGI_PARTITION is not set
> # CONFIG_ULTRIX_PARTITION is not set
> # CONFIG_SUN_PARTITION is not set
> # CONFIG_SMB_NLS is not set
> # CONFIG_NLS is not set
>
> #
> # Sound
> #
> # CONFIG_SOUND is not set
>
> #
> # MPC8xx CPM Options
> #
> CONFIG_SCC_ENET=y
> # CONFIG_SCC1_ENET is not set
> CONFIG_SCC2_ENET=y
> # CONFIG_FEC_ENET is not set
> # CONFIG_ENET_BIG_BUFFERS is not set
> # CONFIG_8xxSMC2 is not set
> # CONFIG_8xxSCC is not set
> # CONFIG_8xx_COPYBACK is not set
> # CONFIG_8xx_CPU6 is not set
>
> #
> # USB support
> #
> # CONFIG_USB is not set
>
> #
> # Kernel hacking
> #
> # CONFIG_MAGIC_SYSRQ is not set
> # CONFIG_KGDB is not set
> # CONFIG_XMON is not set
>
>
> Here is the kernel build error:
>
> ..
> /opt/hardhat/devkit/ppc/8xx/bin/ppc_8xx-ld -T arch/ppc/vmlinux.lds -Ttext
> 0xc0000000 -Bstatic arch/ppc/kernel/head_8xx.o init/main.o init/version.o
\
> --start-group \
> arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o
> kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/ppc/math-emu/math-emu.o \
> drivers/block/block.o drivers/char/char.o drivers/misc/misc.o
> drivers/net/net.o drivers/media/media.o  arch/ppc/8xx_io/8xx_io.o \
> net/network.o \
> /usr/local/src/linux-2.4.2/lib/lib.a \
> --end-group \
> -o vmlinux
> arch/ppc/kernel/kernel.o(__ksymtab+0x210): undefined reference to
> `sys_ctrler'
> arch/ppc/kernel/kernel.o(__ksymtab+0x218): undefined reference to
> `kd_mksound'
> make: ** [vmlinux] Erro 1
>
>
> I'm using gcc version:
>
> Reading specs from
/opt/hardhat/devkit/ppc/8xx/lib/gcc-lib/powerpc-hardhat-linux/2.95.2/specs
> gcc version 2.95.2 19991030 (2.95.3 prerelease/franzo)
>
>
> Is this kernel the most apropriate for PPC embedded development? Because
> I've tryied the RTLinux-kernel-2.4 and the MVista linux-2.4.0-test2 and
had
> no success.
>
> I have to compile the kernel with modules support so I can debug the
> mtd-jffs on the flash.
>
>
> Any help ? What may be causing this error ?
>
>
> Best regards,
>
> Marcio Koch
> koch at inf.pucrs.br
> PUCRS/ELinux
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/






More information about the Linuxppc-embedded mailing list