<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>updating kernel - what else do you need to do after copying uimage &amp;amp; modules ?</title>
        <description> Hi,

just cross compiled a new kernel (for my kirkwood based iconnect) ... and have the uimage and modules and copied them across to the existing wkg (old kernel - 3.2.0-4) boot usb flash drive  ... it all boots up fine and in to the new kernel .. but i get an error on apt-get when it tries 2 update using initramfs-tools the old kernel version of the files (3.2.0-4) rather than the new version of the files  

which gives me the error message

update-initramfs: Generating /boot/initrd.img-3.2.0-4-kirkwood
Unsupported platform.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1

Can anyone give me the instructions to update the files on the boot partition to the new kernel version which im hoping will get rid of the error and a proper boot process

thx

ian</description>
        <link>https://forum.doozan.com/read.php?2,11799,11799#msg-11799</link>
        <lastBuildDate>Thu, 05 Mar 2026 20:56:56 -0600</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11970#msg-11970</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11970#msg-11970</link>
            <description><![CDATA[ shv,<br />
<br />
hi .. thx for this <br />
<br />
I kind of found this out the hard way when the message reappeared so I uninstalled it &quot;by chance&quot;  <br />
<br />
.. works perfectly now .. thx a lot for you help]]></description>
            <dc:creator>hyena</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 17 Mar 2013 16:28:16 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11964#msg-11964</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11964#msg-11964</link>
            <description><![CDATA[ hyena Wrote:<br />
-------------------------------------------------------<br />
&gt; did the apt-get update/install after and it seems<br />
&gt; to have done the job fingers crossed :-)  deleted<br />
&gt; all the 3.2.0-4 files in /boot &amp; lib/modules as a<br />
&gt; test and it seemed to boot ok as well :-)<br />
<br />
Instead of just deleting the old kernel files you should deinstall them.<br />
<br />
First find out the name of the old kernel package to delete:<br />
<pre class="bbcode">
dpkg -l | grep linux-image</pre>
then remove the old kernel package:<br />
<pre class="bbcode">
apt-get remove --purge linux-image-3.2....
apt-get autoremove
</pre>]]></description>
            <dc:creator>shv</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 17 Mar 2013 05:56:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11955#msg-11955</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11955#msg-11955</link>
            <description><![CDATA[ shv,<br />
<br />
hi,many thx for this<br />
<br />
just installed the tools first ... apt-get install u-boot-tools uboot-mkimage  then ...<br />
<br />
tried your commands .. first command worked fine, second didn&#039;t .. figured second should be something like this (which seemed to work)<br />
<br />
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d initrd.img-3.5.0-hyena-iconnect /boot/uInitrd<br />
<br />
<br />
did the apt-get update/install after and it seems to have done the job fingers crossed :-)  deleted all the 3.2.0-4 files in /boot &amp; lib/modules as a test and it seemed to boot ok as well :-)  .. thx a lot for the help !<br />
<br />
a good reference for those ppl doing a kernel update on these devices ...   <br />
<br />
---------------------------------------------------------------------------------------<br />
The following packages will be upgraded:<br />
  linux-image-3.2.0-4-kirkwood<br />
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br />
Need to get 15.2 MB of archives.<br />
After this operation, 114 kB of additional disk space will be used.<br />
Do you want to continue [Y/n]? y<br />
Get:1 <a href="http://mirror.ox.ac.uk/debian/"  rel="nofollow">http://mirror.ox.ac.uk/debian/</a> wheezy/main linux-image-3.2.0-4-kirkwood ar                        mel 3.2.39-2 [15.2 MB]<br />
Fetched 15.2 MB in 14s (1,071 kB/s)<br />
Reading changelogs... Done<br />
Preconfiguring packages ...<br />
(Reading database ... 22870 files and directories currently installed.)<br />
Preparing to replace linux-image-3.2.0-4-kirkwood 3.2.35-2 (using .../linux-imag                        e-3.2.0-4-kirkwood_3.2.39-2_armel.deb) ...<br />
Examining /etc/kernel/preinst.d/<br />
Unpacking replacement linux-image-3.2.0-4-kirkwood ...<br />
Examining /etc/kernel/postrm.d .<br />
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-4-kirkwood /boot/vmlinuz-3.2.0-4-kirkwood<br />
run-parts: executing /etc/kernel/postrm.d/zz-flash-kernel 3.2.0-4-kirkwood /boot/vmlinuz-3.2.0-4-kirkwood<br />
Setting up linux-image-3.2.0-4-kirkwood (3.2.39-2) ...<br />
Running depmod.<br />
Examining /etc/kernel/postinst.d.<br />
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-4-kirkwood /boot/vmlinuz-3.2.0-4-kirkwood<br />
update-initramfs: Generating /boot/initrd.img-3.2.0-4-kirkwood<br />
Ignoring old or unknown version 3.2.0-4-kirkwood (latest is 3.5.0-hyena-iconnect)<br />
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 3.2.0-4-kirkwood /boot/vmlinuz-3.2.0-4-kirkwood<br />
Ignoring old or unknown version 3.2.0-4-kirkwood (latest is 3.5.0-hyena-iconnect)<br />
------------------------------------------------------------------------]]></description>
            <dc:creator>hyena</dc:creator>
            <category>Debian</category>
            <pubDate>Sat, 16 Mar 2013 20:40:52 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11928#msg-11928</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11928#msg-11928</link>
            <description><![CDATA[ And then generate new uImage and uInitrd:<br />
<br />
<pre class="bbcode">
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.5.0-iconnect -d /boot/vmlinuz-3.5.0-hyena-iconnect /boot/uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.5.0-iconnect -d /boot/initrd.img-3.5.0-hyena-iconnect /boot/uInitrd
</pre>]]></description>
            <dc:creator>shv</dc:creator>
            <category>Debian</category>
            <pubDate>Sat, 16 Mar 2013 05:07:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11922#msg-11922</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11922#msg-11922</link>
            <description><![CDATA[ @hyena,<br />
<br />
I&#039;m not sure I understand. What files did you get on your /boot ? did you get<br />
<br />
/boot/initrd.img-3.5.0-hyena-iconnect <br />
/boot/vmlinuz-3.5.0-hyena-iconnect <br />
<br />
If you did, then ignore the error, it was caused by flash-kernel, and you don&#039;t really need it to automatically generate your uImage and uInitrd.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Fri, 15 Mar 2013 18:05:02 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11919#msg-11919</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11919#msg-11919</link>
            <description><![CDATA[ Shv, thanks for this .. had a try and generated the .deb and installed <br />
<br />
but still the same error message ... on apt-get<br />
<br />
-------------------------------<br />
Setting up linux-image-3.5.0-hyena-iconnect (1.0) ...<br />
<br />
 Hmm. There is a symbolic link /lib/modules/3.5.0-hyena-iconnect/build<br />
 However, I can not read it: No such file or directory<br />
 Therefore, I am deleting /lib/modules/3.5.0-hyena-iconnect/build<br />
<br />
<br />
 Hmm. The package shipped with a symbolic link /lib/modules/3.5.0-hyena-iconnect/source<br />
 However, I can not read the target: No such file or directory<br />
 Therefore, I am deleting /lib/modules/3.5.0-hyena-iconnect/source<br />
<br />
Running depmod.<br />
Examining /etc/kernel/postinst.d.<br />
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.5.0-hyena-iconnect /boot/vmlinuz-3.5.0-hyena-iconnect<br />
update-initramfs: Generating /boot/initrd.img-3.5.0-hyena-iconnect<br />
flash-kernel: deferring update (trigger activated)<br />
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 3.5.0-hyena-iconnect /boot/vmlinuz-3.5.0-hyena-iconnect<br />
flash-kernel: deferring update (trigger activated)<br />
Processing triggers for flash-kernel ...<br />
Unsupported platform.<br />
dpkg: error processing flash-kernel (--install):<br />
 subprocess installed post-installation script returned error exit status 1<br />
Errors were encountered while processing:<br />
 flash-kernel<br />
-----------------------------------------------------]]></description>
            <dc:creator>hyena</dc:creator>
            <category>Debian</category>
            <pubDate>Fri, 15 Mar 2013 16:42:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11880#msg-11880</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11880#msg-11880</link>
            <description><![CDATA[ Installing Linaro ARM Cross Toolchain on Ubuntu:<br />
<br />
apt-get install gcc-arm-linux-gnueabi<br />
apt-get install kernel-package<br />
<br />
You can use the following command to cross compile the kernel and get the necessary .deb file:<br />
<br />
DEB_HOST_ARCH=armel fakeroot make-kpkg --arch arm --cross-compile arm-linux-gnueabi- --append-to-version=-hyena --revision=1.0 --initrd -j 5 kernel_image<br />
<br />
I am not sure if the option -j 5 is similar to CONCURRENCY_LEVEL=5 to use some processor cores in parallel to speed up the build time.]]></description>
            <dc:creator>shv</dc:creator>
            <category>Debian</category>
            <pubDate>Thu, 14 Mar 2013 13:02:03 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11873#msg-11873</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11873#msg-11873</link>
            <description><![CDATA[ Got rid of the apt-get error by &quot;dumb ignorant brutality&quot; - deleted /var/lib/intramfs-tools/3.2.0.4-kirkwood and ran apt-get update/apt-get upgrade and error message gone .. not very satisfactory as I&#039;m sure the boot process is still falling over but falling over to boot eventually the new kernel]]></description>
            <dc:creator>hyena</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 13 Mar 2013 13:40:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11810#msg-11810</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11810#msg-11810</link>
            <description><![CDATA[ Ian,<br />
<br />
So you&#039;re cross-compiling the kernel on you PC? I compiled it natively. Perhaps shv can answer this question, since shv has recently cross-compiled a 3.x.x kernel. <br />
<br />
- bodhi]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Mon, 11 Mar 2013 00:13:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11807#msg-11807</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11807#msg-11807</link>
            <description><![CDATA[ Bodhi,<br />
<br />
hi,<br />
<br />
I&#039;m struggling to find the files .. heres what i did to compile the kernel :<br />
<br />
download source and patch it for iconnect<br />
/usr/src/linux-3.5<br />
<br />
make ARCH=arm menuconfig         &lt;&lt;i then configure kernel and save&gt;&gt;<br />
make -j4 ARCH=arm CROSS_COMPILE=../arm-2010q1/bin/arm-none-eabi-uImage<br />
make -j4 ARCH=arm CROSS_COMPILE=../arm-2010q1/bin/arm-none-eabi-modules<br />
make -j4 ARCH=arm CROSS_COMPILE=../arm-2010q1/bin/arm-none-eabi-INSTALL_MOD_PATH=../ modules_install<br />
<br />
this gives me a uimage (in usr/src/linux-3.5/arch/arm/boot) and a directory of modules (3.5.0-iconnect in usr/src/lib/modules)<br />
<br />
it would be great to find out how both to modify the above to generate the .deb to apply in the way you described <br />
<br />
plus the alternative which is to copy across the uimage and the directory of modules to a working boot flash drive and how to get at the the &quot;missing files&quot; needed to replace the old kernel files on /boot<br />
<br />
<br />
thx<br />
<br />
ian]]></description>
            <dc:creator>hyena</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 10 Mar 2013 18:31:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11804#msg-11804</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11804#msg-11804</link>
            <description><![CDATA[ hyena Wrote:<br />
-------------------------------------------------------<br />
&gt; Bodhi,<br />
&gt; <br />
&gt; hi<br />
&gt; <br />
&gt; thx for this, <br />
&gt; <br />
&gt; my /boot on the iconnect flash drive consists of<br />
&gt; :<br />
&gt; <br />
&gt; config-3.2.0-4-kirkwood               <br />
&gt; System.map-3.2.0-4-kirkwood<br />
&gt; initrd.img                            <br />
&gt; uImage<br />
&gt; initrd.img-3.2.0-4-kirkwood           <br />
&gt; vmlinuz<br />
&gt; initrd.img-3.2.0-4-kirkwood.dpkg-bak  <br />
&gt; vmlinuz-3.2.0-4-kirkwood<br />
&gt; <br />
&gt; the uimage being the new kernel  (3.5.0-iconnect)<br />
&gt; <br />
&gt; i dont have a .deb file, so just get the no file<br />
&gt; found message <br />
&gt; <br />
&gt; thx<br />
&gt; <br />
&gt; ian<br />
<br />
Ian,<br />
<br />
You also need to copy <br />
<br />
config-3.5.0-iconnect               <br />
System.map-3.5.0-iconnect<br />
initrd.img-3.5.0-iconnect         <br />
vmlinuz-3.5.0-iconnect<br />
<br />
-bodhi]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 10 Mar 2013 16:46:46 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11803#msg-11803</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11803#msg-11803</link>
            <description><![CDATA[ After you compiled the kernel, it should give you a .deb file?<br />
<br />
In any case, I think if you look somewhere in post install for initramfs (I don&#039;t remmeber where, if I can find it in the  log, I&#039;ll post here), I recall there is a file where the kernel name is written in during dpkg installation.<br />
<br />
P.S.<br />
<br />
-You can see the old kernel still installed with<br />
apt-cache search linux-image<br />
<br />
- Ok, found it: look for post install stuff in /etc/kernel]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 10 Mar 2013 16:31:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11802#msg-11802</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11802#msg-11802</link>
            <description><![CDATA[ Bodhi,<br />
<br />
hi<br />
<br />
thx for this, <br />
<br />
my /boot on the iconnect flash drive consists of :<br />
<br />
config-3.2.0-4-kirkwood               <br />
System.map-3.2.0-4-kirkwood<br />
initrd.img                            <br />
uImage<br />
initrd.img-3.2.0-4-kirkwood           <br />
vmlinuz<br />
initrd.img-3.2.0-4-kirkwood.dpkg-bak  <br />
vmlinuz-3.2.0-4-kirkwood<br />
<br />
the uimage being the new kernel  (3.5.0-iconnect)<br />
<br />
i dont have a .deb file, so just get the no file found message <br />
<br />
thx<br />
<br />
ian]]></description>
            <dc:creator>hyena</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 10 Mar 2013 16:26:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11801#msg-11801</guid>
            <title>Re: updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11801#msg-11801</link>
            <description><![CDATA[ Ian,<br />
<br />
I think because you did not run <i>dpkg -i your-new-kernel-name.deb</i>. Because dpkg modifies the hooks in initramfs to use the new kernel, IIRC. So somewhere in there the hooks still point to the old kernel.<br />
<br />
So rather finding the hooks files and manually change it, you can just run <br />
<pre class="bbcode">
cd /boot
dpkg -i your-new-kernel-name.deb</pre>
<br />
to install everything into the correct location.<br />
<br />
-bodhi]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 10 Mar 2013 16:16:42 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,11799,11799#msg-11799</guid>
            <title>updating kernel - what else do you need to do after copying uimage &amp; modules ?</title>
            <link>https://forum.doozan.com/read.php?2,11799,11799#msg-11799</link>
            <description><![CDATA[ Hi,<br />
<br />
just cross compiled a new kernel (for my kirkwood based iconnect) ... and have the uimage and modules and copied them across to the existing wkg (old kernel - 3.2.0-4) boot usb flash drive  ... it all boots up fine and in to the new kernel .. but i get an error on apt-get when it tries 2 update using initramfs-tools the old kernel version of the files (3.2.0-4) rather than the new version of the files  <br />
<br />
which gives me the error message<br />
<br />
update-initramfs: Generating /boot/initrd.img-3.2.0-4-kirkwood<br />
Unsupported platform.<br />
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1<br />
dpkg: error processing initramfs-tools (--configure):<br />
 subprocess installed post-installation script returned error exit status 1<br />
<br />
Can anyone give me the instructions to update the files on the boot partition to the new kernel version which im hoping will get rid of the error and a proper boot process<br />
<br />
thx<br />
<br />
ian]]></description>
            <dc:creator>hyena</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 10 Mar 2013 13:50:44 -0500</pubDate>
        </item>
    </channel>
</rss>
