On Wed, 18 Mar 2009, afunix wrote:

> Wednesday 18 March 2009 19:51:19 maximilian attems писал:
> 
> > btw how did you install your box?
> 
> I've installed system on qemu-arm emulator with standard lenny kernel,
> than I've used custom kernel 2.6.21-hh9 for that hardware to boot
> already installed system.  it's not debian kernel, because standard
> kernel just doesn't starts and custom kernel, compiled with debian tools
> can't mount root.

ok thanks for the info. interesting box :D
 
> > > # ls /sys/block
> > > mmcblk0
> > i see this confuses me right now, will need more info, see below
> 
> I found that there wasn't /lib/modules/2.6.21-hh9 directory. I've copied 
> modules, but mkinitramfs-kpkg still failes:
> Setting up linux-image-2.6.26-1-versatile (2.6.26-13) ...
> Running depmod.
> Finding valid ramdisk creators.
> Using mkinitramfs-kpkg to build the ramdisk.
> Depreciation WARNING: use update-initramfs(8)
> mkinitramfs-kpkg failed to create initrd image.
> Failed to create initrd image.
> dpkg: error processing linux-image-2.6.26-1-versatile (--configure):

hmmm what does this output give:
cat /etc/kernel-img.conf 
 
> ++ modprobe --set-version=2.6.21-hh9 --ignore-install --show-depends ext3
> ++ awk '/^insmod/ { print $2 }'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + '[' /dev/mmcblk0p3 '!=' /dev/mmcblk0p3 ']'
> + block=mmcblk0p3
> + block=mmcblk
> + '[' -z mmcblk ']'
> + '[' '!' -e /sys/block/mmcblk ']'
> + echo 'mkinitramfs: missing mmcblk root /dev/mmcblk0p3 /sys entry'

i see, could you test with MODULES=dep belows patch:
(you might need to apply it to /usr/share/initramfs-tools/hook-functions

diff --git a/hook-functions b/hook-functions
index 353495f..82ffbef 100644
--- a/hook-functions
+++ b/hook-functions
@@ -292,6 +292,10 @@ dep_add_modules()
                if [ ! -e /sys/block/${block} ] ; then
                        block=${block%%[0-9]*}
                fi
+       # /dev/mmcblkXpX
+       elif [ "${root#/dev/mmcblk}" != "${root}" ]; then
+               block=${root#/dev/}
+               block=${block%%p[0-9]*}
        # classical root device
        else
                block=${root#/dev/}



--
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to