From: Mark Y. <may...@ya...> - 2008-01-28 18:53:52
|
I just solved the hostname part of this. When you install the coreutils package you get a different version of hostname. Without coreutils you get - BusyBox v1.1.2 (2008.01.09-12:30+0000) multi-call binary Usage: hostname [OPTION] {hostname | -F FILE} Get or set the hostname or DNS domain name. If a hostname is given (or FILE with the -F parameter), the host name will be set. Options: -s Short -i Addresses for the hostname -d DNS domain name -f Fully qualified domain name -F FILE Use the contents of FILE to specify the hostname With coreutils you get - # hostname --version hostname (GNU coreutils) 5.91 Copyright (C) 2005 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. Written by Jim Meyering. The latter does not accept a -F argument. In inittab hostname gets set by hostname -F /etc/hostname which won't work with hostname version 5.91. The [: <various>: binary operator expected problem is still there so there is likely something else that coreutils is replacing that causes this problem. ----- Original Message ---- From: "may...@ya..." <may...@ya...> To: gum...@li... Sent: Monday, January 28, 2008 12:21:33 PM Subject: [Gumstix-users] coreutils package breaking boot I've been working on creating a rootfs that will support uClibc builds. I'm using initramfs with a 2GB uSD card. Everythings seems to work find until I add the coreutils package. When I add coreutils hostname no longer gets set and the init.d scripts start returning a strange error "[: <various>: binary operator expected". I've been stuck with this problem for several days now and have run out of debugging ideas. I did a diff -r on /etc between pre and post coreutils package add and only ld.so.cache was different. Just for grins I replaced the ld.so.cache from the broken (with coreuitls) build with the ld.so.cache from the working (without coreutils) build; doing this made no difference. Any ideas or suggestions would be appreciated. I really need to get a working Gumstix based uClibc development system going (don't want to cross-compile). Here's the boot output following the start of the /init script after I add coreutils (with all of the uClibc development system packages installed except bash) - /init script running... [*] populating /dev...done [*] mounting /proc...done [*] mounting /sys...done [*] starting udevd...NET: Registered protocol family 1 done [*] Found MEDIA=MMC [*] loading mmc_block module...done [*] loading pxamci module...done mmcblk0: mmc0:fefc SU02G 1985024KiB mmcblk0: p1 p2 [*] running e2fsck on /dev/mmcblk0p2...e2fsck 1.38 (30-Jun-2005) /dev/mmcblk0p2 has gone 35804 days without being checked, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/mmcblk0p2: 1949/243360 files (0.1% non-contiguous), 43805/485856 blocks done [*] mounting /dev/mmcblk0p2 to /rfs...EXT2-fs warning (device mmcblk0p2): ext2_fill_super: mounting ext3 filesystem as ext2 done [*] Cleaning up...done [*] Switching to real root fs... eth0: LAN9117 (rev 2) at 0xc4852000 IRQ 131 eth0: Ethernet addr: 36:49:4c:71:92:90 Not netCF-vx board: using newer GPIO configuration CPLD responded with: ff usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pxa27x-ohci pxa27x-ohci: PXA27x OHCI pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number 1 pxa27x-ohci pxa27x-ohci: irq 3, io mem 0x4c000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports detected usb 1-2: new full speed USB device using pxa27x-ohci and address 2 usb 1-2: configuration #1 chosen from 1 choice usbcore: registered new interface driver usbserial drivers/usb/serial/usb-serial.c: USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic drivers/usb/serial/usb-serial.c: USB Serial Driver core drivers/usb/serial/usb-serial.c: USB Serftdi_sio 1-2:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232BM usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0 usbcore: registered new interface driver ftdi_sio drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver [: /etc/init.d/S20urandom: binary operator expected [: /dev/urandom: binary operator expected [: /etc/init.d/S25messagebus: binary operator expected [: /usr/bin/dbus-daemon: binary operator expected [: /etc/init.d/S30bluetooth: binary operator expected [: /etc/default/bluetooth: binary operator expected Starting 32kHz clock...Settled Bluetooth: Core ver 2.11 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP ver 2.8 Bluetooth: L2CAP socket layer initialized Bluetooth: BNEP (Ethernet Emulation) ver 1.2 Starting Bluetooth subsystem:[: /usr/sbin/hciattach: binary operator expected [: /usr/sbin/hcid: binary operator expected [: extra argument `]'[: extra argument `]'. [: /etc/init.d/S40network: binary operator expected Starting network... udhcpc (v0.9.9-pre) started Dec 31 16:20:30 udhcpc[472]: udhcpc (v0.9.9-pre) started [: deconfig: binary operator expected [: : binary operator expected [: : binary operator expected Nothing to flush. eth0: link down NET: Registered protocol family 17 [: /etc/init.d/S50bonjour: binary operator expected Starting Rendezvous: [: /etc/init.d/S50dropbear: binary operator expected [: /etc/dropbear: binary operator expected NET: Registered protocol family 10 ADDRCONF(NETDEV_UP): eth0: link is not ready Mobile IPv6 [: /usr/bin/dropbearkey: binary operator expected [: /etc/init.d/S50httpd: binary operator expected Starting httpd... gethostbyname:: Connection refused [: /etc/init.d/S80dhcp-relay: binary operator expected /etc/init.d/dhcp-relay not yet configured! - Aborting... [: /etc/init.d/S80dhcp-server: binary operator expected /etc/init.d/dhcp-server not yet configured! - Aborting... eth0: link up, 100Mbps, full-duplex, lpa 0x01E1 ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Welcome to the Gumstix Linux Distribution! (none) login: Here's the boot output following the start of the /init script before I add coreutils (with all of the uClibc development system packages installed except bash and coreutils) - /init script running... [*] populating /dev...done [*] mounting /proc...done [*] mounting /sys...done [*] starting udevd...NET: Registered protocol family 1 done [*] Found MEDIA=MMC [*] loading mmc_block module...done [*] loading pxamci module...done mmcblk0: mmc0:fefc SU02G 1985024KiB mmcblk0: p1 p2 [*] running e2fsck on /dev/mmcblk0p2...e2fsck 1.38 (30-Jun-2005) /dev/mmcblk0p2 was not cleanly unmounted 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/mmcblk0p2: ***** FILE SYSTEM WAS MODIFIED ***** /dev/mmcblk0p2: 8518/243360 files (0.2% non-contiguous), 73055/485856 blocks done [*] mounting /dev/mmcblk0p2 to /rfs...EXT2-fs warning (device mmcblk0p2): ext2_fill_super: mounting ext3 filesystem as ext2 done [*] Cleaning up...done [*] Switching to real root fs... eth0: LAN9117 (rev 2) at 0xc4852000 IRQ 131 eth0: Ethernet addr: 36:49:4c:71:92:90 Not netCF-vx board: using newer GPIO configuration CPLD responded with: ff usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb pxa27x-ohci pxa27x-ohci: PXA27x OHCI pxa27x-ohci pxa27x-ohci: new USB bus registered, assigned bus number 1 pxa27x-ohci pxa27x-ohci: irq 3, io mem 0x4c000000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 3 ports detected usb 1-2: new full speed USB device using pxa27x-ohci and address 2 usb 1-2: configuration #1 chosen from 1 choice usbcore: registered new interface driver usbserial drivers/usb/serial/usb-serial.c: USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic drivers/usb/serial/usb-serial.c: USB Serial Driver core drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device ftdi_sio 1-2:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232BM usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB0 usbcore: registered new interface driver ftdi_sio drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver Initializing random number generator... done. Starting system message bus: done Starting 32kHz clock...Settled Bluetooth: Core ver 2.11 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP ver 2.8 Bluetooth: L2CAP socket layer initialized Bluetooth: BNEP (Ethernet Emulation) ver 1.2 Starting Bluetooth subsystem:Trying baud rate 57600... Got response after resetling No response from BT module Trying baud rate 921600... Got response after reset... gobbling Detected bluetooth module at 921600 baud Got: status=0x00, hci_ver=0x03, hci_rev=0x62b9, lmp_ver=0x03, manuf=0x0009, lmp_subver=0x62b9 Bluetooth: HCI UART driver ver 2.2 Bluetooth: HCI H4 protocol initialized ttyS1 hcid hid2hci rfcommBluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM ver 1.8 Waiting for connection on channel 1 pand. Starting network... udhcpc (v0.9.9-pre) started Dec 31 16:01:06 udhcpc[530]: udhcpc (v0.9.9-pre) started Nothing to flush. eth0: link down NET: Registered protocol family 17 Starting Rendezvous: NET: Registered protocol family 10 ADDRCONF(NETDEV_UP): eth0: link is not ready Mobile IPv6 Starting dropbear sshd: OK Starting httpd... /etc/init.d/dhcp-relay not yet configured! - Aborting... /etc/init.d/dhcp-server not yet configured! - Aborting... eth0: link up, 100Mbps, full-duplex, lpa 0x01E1 ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Welcome to the Gumstix Linux Distribution! gumstix login: ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gumstix-users mailing list gum...@li... https://lists.sourceforge.net/lists/listinfo/gumstix-users ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |