Dear User Group: This message is about an old problem I have not been able to resolve. Namely, that logging error messages in /var/log/messages does not work, and when one attempts to use syslogd for that purpose "init: /bin/syslogd respawning too fast" is periodically displayed on the console.
There have been a lot of suggestions about how to solve the problem which I will outline below. However, I have tried them and they don't work. The main problem I have observed is that the code references /dev/log which does not exist and in fact can't be created because /dev is a read only file system ! Worse yet, it can't be fixed by changing a .h file because the path to /dev/log exists in multiple .h files and is hardcoded in some .c files. The solutions I have seen are basically as follows: * Make /dev/log readable or link it to a readable path such as /var/log. How do you do this if /dev is read only ? * Variant: Add a /dev/log entry to the root file system. This requires updating the dev list in my vendor Makefile with the right major and minor numbers. What are those numbers ? * Use the IIRC code in uC-libc that write directly to the log file. I think uC-libc is different that the out of the box uClibc. In any case, it is not part of my standard distribution and I don't know what risks switching libraries entails. Finally, I have seen several reports of problems with the logging system indicating there are memory leaks etc. being fixed. This raises the following question. Is there a new version of syslogd.c or are there new versions of other relevant modules that fix this problem ? The following files are attached and contain all my configuration options except the CONFIG_BUSYBOX_SYSLOGD user option which is what triggers the respawning problem. 1) set.config.arch.txt: config.arch 2) set.config.linux.txt: Kernel options. 3) set.config.vendor.txt: User options 4) set.config.uClib.txt: uClibc options. 5) set.config.top: Main make options. I am using UC Linux version 2.4.27--pretty much out of the box, and the 2.4.X kernel. (i.e. The addition of a JFFS2 file system is an exception but has not changed the problem.) The version of syslog.c I am using is in uClibc/libc/misc/syslog.c. It does not have an embedded version number but, the newest comments indicate it was rewritten by Martin Mares on May 14, 1997. Best Regards, Paul R. -- Paul Romero RCOM Communications Software Phone/Fax: (510)339-2628 E-Mail: [EMAIL PROTECTED]
**** config.arch from top level *** .EXPORT_ALL_VARIABLES: CONSOLE_BAUD_RATE = 19200 *** COMMENT: Rationale for m5307 ? Known Problems ? CPUFLAGS = -m5307 -DCONFIG_COLDFIRE VENDOR_CFLAGS = include $(ROOTDIR)/vendors/config/m68knommu/config.arch
**** config-linux.2.4.x linux-2.4.x/.config from top level **** CONFIG_UCLINUX=y CONFIG_UID16=y CONFIG_RWSEM_GENERIC_SPINLOCK=y CONFIG_EXPERIMENTAL=y CONFIG_M5249=y CONFIG_COLDFIRE=y CONFIG_CLOCK_140MHz=y CONFIG_M5249C3=y CONFIG_MOTOROLA=y CONFIG_RAM8MB=y CONFIG_AUTOBIT=y CONFIG_RAMKERNEL=y CONFIG_NET=y CONFIG_SYSVIPC=y CONFIG_KCORE_AOUT=y CONFIG_BINFMT_FLAT=y *** COMMENT: For JFFS2 FS support CONFIG_MTD=y CONFIG_MTD_PARTITIONS=y CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y *** COMMENT: Tuned for JFFS2 FS support. CONFIG_MTD_CFI=y CONFIG_MTD_JEDECPROBE=y CONFIG_MTD_GEN_PROBE=y CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_PHYSMAP_START=FFE00000 CONFIG_MTD_PHYSMAP_LEN=00200000 CONFIG_MTD_PHYSMAP_BUSWIDTH=2 CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_BLK_DEV_BLKMEM=y CONFIG_NOFLASH=y *** COMMENT: Need this if you are not using tcpdump ? CONFIG_PACKET=y *** COMMENT; Need this for minimal apps. like ping ? CONFIG_UNIX=y CONFIG_INET=y CONFIG_NETDEVICES=y CONFIG_PPP=y CONFIG_PPP_ASYNC=y *** COMMENT: Need this if you are not using SLIP protocol ? (i.e. Regular PPP ) CONFIG_SLIP=y CONFIG_SLIP_COMPRESSED=y *** COMMENT: Can't find doc. Basic function ? CONFIG_COLDFIRE_SERIAL=y *** COMMENT: Need this for normal Unix/Linux FS ? CONFIG_FAT_FS=y CONFIG_JFFS2_FS=y CONFIG_JFFS2_FS_DEBUG=0 CONFIG_RAMFS=y CONFIG_PROC_FS=y *** COMMENT: Normal use ? CONFIG_ROMFS_FS=y CONFIG_EXT2_FS=y CONFIG_NFS_FS=y CONFIG_NFS_V3=y CONFIG_SUNRPC=y CONFIG_LOCKD=y CONFIG_LOCKD_V4=y CONFIG_COREDUMP_PRINTK=y *** COMMENT: Need this w/o SAMBA server ? CONFIG_NLS=y CONFIG_NLS_DEFAULT="iso8859-1" CONFIG_NLS_CODEPAGE_437=y *** COMMENT: Can't find doc. CONFIG_FULLDEBUG=y *** COMMENT: For JFFS2 FS support. CONFIG_BOOTPARAM=y CONFIG_BOOTPARAM_STRING="mtdparts=physmap:1280k(flash1),768k(flash2)" CONFIG_ZLIB_INFLATE=y CONFIG_ZLIB_DEFLATE=y
**** config.vendor-2.4.x config/.config from top level ***** CONFIG_USER_INIT_INIT=y CONFIG_USER_INIT_CONSOLE_SH=y CONFIG_USER_SASH_SH=y CONFIG_USER_SASH_REBOOT=y CONFIG_USER_INIT_EXPAND=y CONFIG_LIB_ZLIB_FORCE=y *** COMMENT: These options support a JFFS2 FS. CONFIG_USER_MTDUTILS=y CONFIG_USER_MTDUTILS_ERASE=y CONFIG_USER_MTDUTILS_ERASEALL=y CONFIG_USER_MTDUTILS_MKFSJFFS2=y CONFIG_LIB_ZLIB=y *** COMMENT: Is this necessary if you aren't running a server ? CONFIG_USER_BOA_SRC_BOA=y CONFIG_USER_DISCARD_DISCARD=y *** COMMENT: Options with _IMODEM_ are our proprietary stuff. CONFIG_USER_IMODEM_MAIN=y CONFIG_USER_IMODEM_CHATX=y CONFIG_USER_IMODEM_CONNECT=y CONFIG_USER_IMODEM_VMODEM=y CONFIG_USER_IMODEM_ISOCKD=y CONFIG_USER_IMODEM_RXMAILD=y CONFIG_USER_IMODEM_TXMAILD=y CONFIG_USER_IMODEM_FILEXFER=y CONFIG_USER_IMODEM_IPUP=y CONFIG_USER_IMODEM_RECHO=y CONFIG_USER_IMODEM_HANGUP=y CONFIG_USER_ROUTE_IFCONFIG=y CONFIG_USER_INETD_INETD=y CONFIG_USER_PING_PING=y CONFIG_USER_PORTMAP_PORTMAP=y CONFIG_USER_PPPD_PPPD_PPPD=y CONFIG_USER_ROUTE_ROUTE=y CONFIG_USER_CHAT_CHAT=y *** COMMENT: Does this require other options ? CONFIG_USER_GDBSERVER_GDBSERVER=y CONFIG_USER_TIP_TIP=y CONFIG_USER_LEVEE_VI=y *** COMMENT: Proprietary CONFIG_USER_CERME_TEST=y CONFIG_USER_BUSYBOX_BUSYBOX=y CONFIG_USER_BUSYBOX_MOUNT=y *** COMMENT: Do you need this if you are not running NFS ? CONFIG_USER_BUSYBOX_NFSMOUNT=y CONFIG_USER_BUSYBOX_UMOUNT=y CONFIG_USER_RAMIMAGE_RAMFS2048=y *** COMMENT: Need this ? What is CGI ? CONFIG_USER_CGI_GENERIC=y
**** config.uClibc from vendor directory. **** TARGET_m68k=y HAVE_ELF=y TARGET_ARCH="m68k" UCLIBC_HAS_SOFT_FLOAT=y ARCH_BIG_ENDIAN=y ARCH_HAS_NO_MMU=y UCLIBC_HAS_FLOATS=y DO_C99_MATH=y WARNINGS="-Wall" KERNEL_SOURCE="$(ROOTDIR)/$(LINUXDIR)/." UCLIBC_UCLINUX_BROKEN_MUNMAP=y EXCLUDE_BRK=y C_SYMBOL_PREFIX="" HAVE_DOT_CONFIG=y HAVE_NO_SHARED=y ARCH_HAS_NO_LDSO=y UCLIBC_CTOR_DTOR=y UCLIBC_HAS_LFS=y MALLOC_SIMPLE=y UCLIBC_DYNAMIC_ATEXIT=y UNIX98PTY_ONLY=y ASSUME_DEVPTS=y UCLIBC_HAS_TM_EXTENSIONS=y UCLIBC_HAS_TZ_FILE=y UCLIBC_HAS_TZ_FILE_READ_MANY=y UCLIBC_TZ_FILE_PATH="/etc/TZ" UCLIBC_HAS_RPC=y UCLIBC_HAS_FULL_RPC=y UCLIBC_HAS_CTYPE_TABLES=y UCLIBC_HAS_CTYPE_SIGNED=y UCLIBC_HAS_CTYPE_UNSAFE=y UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 UCLIBC_HAS_STDIO_BUFSIZ_256=y UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y UCLIBC_HAS_STDIO_GETC_MACRO=y UCLIBC_HAS_STDIO_PUTC_MACRO=y UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y UCLIBC_HAS_PRINTF_M_SPEC=y UCLIBC_HAS_ERRNO_MESSAGES=y UCLIBC_HAS_SYS_ERRLIST=y UCLIBC_HAS_SIGNUM_MESSAGES=y UCLIBC_HAS_GNU_GETOPT=y UCLIBC_HAS_REGEX=y UCLIBC_HAS_GLOB=y RUNTIME_PREFIX="/usr/$(TARGET_ARCH)-linux-uclibc/" DEVEL_PREFIX="/usr/$(TARGET_ARCH)-linux-uclibc"
***** .config from top level directory ***** CONFIG_DEFAULTS_CERMETEK=y CONFIG_DEFAULTS_CERMETEK_M5249C3=y CONFIG_DEFAULTS_KERNEL_2_4=y CONFIG_DEFAULTS_LIBC_UCLIBC=y CONFIG_VENDOR=CERMETEK CONFIG_PRODUCT=M5249C3 CONFIG_LINUXDIR=linux-2.4.x CONFIG_LIBCDIR=uClibc CONFIG_LANGUAGE=
_______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
