mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: <lkml@reliableembeddedsystems.com>
To: balbir@linux.vnet.ibm.com
Cc: Sam Ravnborg <sam@ravnborg.org>,
	Robert Berger <robert.berger@reliableembeddedsystems.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: http://patchwork.kernel.org/patch/26483/ broke my system boot
Date: Thu, 04 Jun 2009 01:47:18 -0500	[thread overview]
Message-ID: <21fac393599ff68ff8edab1bade68ab2@reliableembeddedsystems.com> (raw)
In-Reply-To: <20090604063144.GB7504@balbir.in.ibm.com>

Hi Balbir and all,

Sorry for the trouble and the missing changelog. I'm still learning;)

Can you please elaborate a bit more what exactly is broken?
Are you cross- or native compiling?

Here is what I tried to fix:

In my cross build environment (ELDK4.2) the following is defined:

export | grep DEPMOD
declare -x DEPMOD="/opt/eldk-4.2-ppc_4xx/usr/bin/depmod.pl"

without my patch it breaks like this:

 make V=1 ARCH=powerpc CROSS_COMPILE=ppc_4xx-
INSTALL_MOD_PATH=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx modules_install
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
make -f
/opt/eldk-4.2-ppc_4xx/usr/src/linux-v2.6.29.1/scripts/Makefile.modinst
  mkdir -p
/opt/eldk-4.2-ppc_4xx/ppc_4xx/lib/modules/2.6.30-rc5-01317-g982dd86/kernel/drivers/scsi;
cp drivers/scsi/scsi_wait_scan.ko
/opt/eldk-4.2-ppc_4xx/ppc_4xx/lib/modules/2.6.30-rc5-01317-g982dd86/kernel/drivers/scsi
; true
/opt/eldk-4.2-ppc_4xx/ppc_4xx/lib/modules/2.6.30-rc5-01317-g982dd86/kernel/drivers/scsi/scsi_wait_scan.ko
make -f
/opt/eldk-4.2-ppc_4xx/usr/src/linux-v2.6.29.1/scripts/Makefile.fwinst
obj=firmware __fw_modinst
  if [ -r System.map -a -x /opt/eldk-4.2-ppc_4xx/usr/bin/depmod.pl ]; then
/opt/eldk-4.2-ppc_4xx/usr/bin/depmod.pl -ae -F System.map  -b
/opt/eldk-4.2-ppc_4xx/ppc_4xx  2.6.30-rc5-01317-g982dd86; fi
make: *** [_modinst_post] Error 1

with my patch it is more happy:

 make V=1 ARCH=powerpc CROSS_COMPILE=ppc_4xx-
INSTALL_MOD_PATH=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx modules_install
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
make -f
/opt/eldk-4.2-ppc_4xx/usr/src/linux-v2.6.29.1/scripts/Makefile.modinst
  mkdir -p
/opt/eldk-4.2-ppc_4xx/ppc_4xx/lib/modules/2.6.30-rc5-01317-g982dd86/kernel/drivers/scsi;
cp drivers/scsi/scsi_wait_scan.ko
/opt/eldk-4.2-ppc_4xx/ppc_4xx/lib/modules/2.6.30-rc5-01317-g982dd86/kernel/drivers/scsi
; true
/opt/eldk-4.2-ppc_4xx/ppc_4xx/lib/modules/2.6.30-rc5-01317-g982dd86/kernel/drivers/scsi/scsi_wait_scan.ko
make -f
/opt/eldk-4.2-ppc_4xx/usr/src/linux-v2.6.29.1/scripts/Makefile.fwinst
obj=firmware __fw_modinst

I could most likely just undefine DEPMOD in the environment.

(here DEPMOD is not defined):

make v=1 ARCH=powerpc CROSS_COMPILE=ppc_4xx-
INSTALL_MOD_PATH=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx modules_install
  INSTALL drivers/scsi/scsi_wait_scan.ko
  DEPMOD  2.6.30-rc5-01317-g982dd86

This seems to be working fine as well.

I did not try the native compilation. Maybe the problem is there?

Regards,

Robert


On Thu, 4 Jun 2009 14:31:44 +0800, Balbir Singh <balbir@linux.vnet.ibm.com>
wrote:
> * Sam Ravnborg <sam@ravnborg.org> [2009-06-03 21:45:26]:
> 
>> On Wed, Jun 03, 2009 at 10:39:44PM +0800, Balbir Singh wrote:
>> > After spending some time figuring out why my system failed to reboot,
>> > checking config options, kernel version, modules installed. I figured
>> > out that the patch in http://patchwork.kernel.org/patch/26483/ broke
>> > the system boot on the latest mmotm. Reverting it helped my system
>> > call depmod and hence boot.
>> > 
>> > The patch is really unhelpful, since the changelog is completely
>> > empty. Sigh!
>> 
>> Yeah, sorry for not nak'ing it earlier. Has been busy.
>> Andrew removed it from -mm and I notified the author about the
>> problems with the patch (in private mail it seems - I just replied to
>> what I had).
> 
> Cool! Thanks for the update. I'll get the latest mmotm and test as
> well.

  reply	other threads:[~2009-06-04  6:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-03 14:39 Balbir Singh
2009-06-03 19:45 ` Sam Ravnborg
2009-06-04  6:31   ` Balbir Singh
2009-06-04  6:47     ` lkml [this message]
2009-06-04  7:32       ` Balbir Singh
2009-06-04 12:19         ` lkml
2009-06-05  7:17     ` Jon Masters
2009-06-05 19:49       ` Sam Ravnborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21fac393599ff68ff8edab1bade68ab2@reliableembeddedsystems.com \
    --to=lkml@reliableembeddedsystems.com \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robert.berger@reliableembeddedsystems.com \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome