From manningc2@actrix.gen.nz Wed May 26 03:18:30 2010
Received: from smtp.firstline.co.nz ([203.167.210.162] helo=scorch.co.nz)
	by stoneboat.aleph1.co.uk with smtp (Exim 4.69)
	(envelope-from <manningc2@actrix.gen.nz>) id 1OH6CP-00035I-E9
	for balloon@balloonboard.org; Wed, 26 May 2010 03:18:29 +0100
Received: (qmail 6251 invoked by uid 453); 26 May 2010 02:18:17 -0000
X-Virus-Checked: Checked by ClamAV on scorch.co.nz
Received: from Unknown (HELO linux-dual-head.local) (10.14.210.25)
	by scorch.co.nz (qpsmtpd/0.40) with ESMTP;
	Wed, 26 May 2010 14:18:17 +1200
From: Charles Manning <manningc2@actrix.gen.nz>
To: balloon@balloonboard.org
Date: Wed, 26 May 2010 14:18:16 +1200
User-Agent: KMail/1.9.10
References: <201005241726.48789.manningc2@actrix.gen.nz>
In-Reply-To: <201005241726.48789.manningc2@actrix.gen.nz>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <201005261418.16447.manningc2@actrix.gen.nz>
X-SA-Exim-Connect-IP: 203.167.210.162
X-SA-Exim-Mail-From: manningc2@actrix.gen.nz
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=4.5 tests=AWL,BAYES_50,SPF_NEUTRAL
	autolearn=no version=3.2.5
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Subject: Re: [Balloon] Fixing the depmod problem
X-BeenThere: balloon@balloonboard.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: Balloon List <balloon.balloonboard.org>
List-Unsubscribe: <http://balloonboard.org/mailman/options/balloon>,
	<mailto:balloon-request@balloonboard.org?subject=unsubscribe>
List-Archive: <http://balloonboard.org/lurker/list/balloon.html>
List-Post: <mailto:balloon@balloonboard.org>
List-Help: <mailto:balloon-request@balloonboard.org?subject=help>
List-Subscribe: <http://balloonboard.org/mailman/listinfo/balloon>,
	<mailto:balloon-request@balloonboard.org?subject=subscribe>
X-List-Received-Date: Wed, 26 May 2010 02:18:32 -0000

On Monday 24 May 2010 17:26:48 Charles Manning wrote:
> Until we have a modules.dep with absolute paths, the modprobe won't work.
> Until that happens I guess I really don't have an easy way to transfer test
> scripts etc onto the board.
>
> I thought it would be easy to use sed  to massage the modules.dep  but for
> some reason the places I added them in the Makefile to didn't get called.
> Clearly I don't understand the make dependencies properly.
>
> Any hints on where to inject such sedness welcome.

I updated to r1115 but Wookey's fix didn't work for me. I have DEPMODVER of 
3.11.1 which the sed-based logic does not handle. I changed that to cut and 
it works for me.

With this I get loading modules :-) and setup is doing its thing as I write 
this...


Thanks to all, particularly  Wookey...


Here's a patch against r1115 that works for me:

Index: initrd/Makefile
===================================================================
--- initrd/Makefile	(revision 1115)
+++ initrd/Makefile	(working copy)
@@ -47,7 +47,7 @@
 	#fixup relative paths if depmod is newer than 3.4
 	#should check buildroot version too...
 	case $(DEPMODVER) in 3.*) \
-	    if expr `echo $(DEPMODVER) | sed -e"s/3.//;s/[-~].*$$//"` \> 4 ;then\
+	    if expr `echo $(DEPMODVER) | cut -d. -f2 ` \> 4 ;then\
 	      sed -i -e"s_kernel_/lib/modules/$(KERNVER)-pxa270/kernel_g" 
$(TARGETSKEL)/lib/modules/$(KERNVER)-pxa270/modules.dep ;\
 	    fi ;\
 	    ;; \


