From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (hermes.mlbassoc.com [64.234.241.98]) by mx1.pokylinux.org (Postfix) with ESMTP id 7B21C4C80579 for ; Fri, 8 Apr 2011 08:20:03 -0500 (CDT) Received: by mail.chez-thomas.org (Postfix, from userid 999) id 2250F166037A; Fri, 8 Apr 2011 07:20:03 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.3.2-r929478 (2010-03-31) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00, T_FRT_CONTACT autolearn=unavailable version=3.3.2-r929478 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by mail.chez-thomas.org (Postfix) with ESMTP id 101D31660334; Fri, 8 Apr 2011 07:20:02 -0600 (MDT) Message-ID: <4D9F0B82.9080803@mlbassoc.com> Date: Fri, 08 Apr 2011 07:20:02 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 MIME-Version: 1.0 To: Poky Project Subject: Early image startup X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 13:20:03 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have a Poky image which uses a number of kernel modules. For whatever reason, the raw image has not had the modules configured (no /lib/modules/.../modules.dep) This file is created by 'update-modules' but that is run too late in the boot process. The problem is that other code, e.g. I'm using iptables via modules, requires the modules be configured early and this fails. If I reboot (after 'update-modules' has run), everything is fine. My system is PowerPC and I'm using ipk packaging. Here's a snippet from my initial boot log: Please wait: booting... Starting udev Configuring network interfaces... udhcpc (v1.17.3) started Setting IP address 0.0.0.0 on eth0 Sending discover... PHY: mdio@ff024520:01 - Link is Up - 1000/Full Sending discover... Sending select for 192.168.12.140... Lease of 192.168.12.140 obtained, lease time 600 Setting IP address 192.168.12.140 on eth0 Deleting routers Adding router 192.168.12.1 Recreating /etc/resolv.conf Adding DNS server 192.168.12.1 done. modprobe: can't open 'modules.dep': No such file or directory iptables v1.4.9: can't initialize iptables table `filter': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. Starting DHCP server: . Fri Apr 8 12:29:00 UTC 2011 Configuring update-modules. Configuring kernel-image-2.6.37.3. Configuring kernel-module-nf-conntrack. Configuring kernel-module-x-tables. Configuring kernel-module-ip-tables. Configuring kernel-module-nf-defrag-ipv4. Configuring kernel-module-nf-conntrack-ipv4. Configuring kernel-module-iptable-mangle. Configuring kernel-module-xt-state. Configuring kernel-module-nf-nat. Configuring kernel-module-nf-conntrack-tftp. Configuring kernel-module-nf-nat-tftp. Configuring kernel-module-ipt-masquerade. Configuring kernel-module-iptable-nat. Configuring kernel-module-iptable-filter. Configuring netkit-tftpd. Configuring kernel-module-xt-tcpudp. So, what decides when these 'configuring' steps run? Thanks -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------