Welcome! Log In Create A New Profile

Advanced

Linux Kernel 4.17.2 Kirkwood package and Debian rootfs

Posted by bodhi 
Re: Linux Kernel 4.16.1 Kirkwood package and Debian rootfs
April 18, 2018 01:50AM
mpmc,

> On the B however, it was a little harder as there
> was no "initrd.img-4.16.1-kirkwood-tld-1" included
> to the tars so couldn't generate the uinitrd.
> Thankfully I was able to copy it over from the S &
> it booted up fine!

Copy the initrd.img-4.16.1-kirkwood-tld-1 over from a running system would work, as you did! However, that 's is just a temporary work around. The correct thing to do is to install the kernel with dpkg.

https://forum.doozan.com/read.php?2,12096

3. And install it with dpkg. Remove flash-kernel first to avoid potential problem (It is much better to generate uImage and uInitrd manually anyway): 

cd /boot
apt-get remove flash-kernel 
dpkg -i linux-image-4.16.1-kirkwood-tld-1_1.0_armel.deb

dpkg installs the kernel and put these kernel files in /boot.

-rw-r--r--  1 root root 154K Apr  9 00:49 config-4.16.1-kirkwood-tld-1
-rw-------  1 root root 2.6M Apr  9 06:34 System.map-4.16.1-kirkwood-tld-1
-rw-------  1 root root 3.9M Apr  9 06:34 vmlinuz-4.16.1-kirkwood-tld-1
-rw-r--r--  1 root root 7.9M Apr 11 17:12 initrd.img-4.16.1-kirkwood-tld-1

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 4.16.1 Kirkwood package and Debian rootfs
April 18, 2018 01:53AM
bodhi Wrote:
-------------------------------------------------------
> mpmc,
>
> > On the B however, it was a little harder as
> there
> > was no "initrd.img-4.16.1-kirkwood-tld-1"
> included
> > to the tars so couldn't generate the uinitrd.
> > Thankfully I was able to copy it over from the S
> &
> > it booted up fine!
>
> Copy the initrd.img-4.16.1-kirkwood-tld-1 over
> from a running system would work, as you did!
> However, that 's is just a temporary work around.
> The correct thing to do is to install the kernel
> with dpkg.
>
> https://forum.doozan.com/read.php?2,12096
>
>
> 3. And install it with dpkg. Remove flash-kernel
> first to avoid potential problem (It is much
> better to generate uImage and uInitrd manually
> anyway): 
> 
> cd /boot
> apt-get remove flash-kernel 
> dpkg -i
> linux-image-4.16.1-kirkwood-tld-1_1.0_armel.deb
>
>
> dpkg installs the kernel and put these kernel
> files in /boot.
>
>
> -rw-r--r--  1 root root 154K Apr  9 00:49
> config-4.16.1-kirkwood-tld-1
> -rw-------  1 root root 2.6M Apr  9 06:34
> System.map-4.16.1-kirkwood-tld-1
> -rw-------  1 root root 3.9M Apr  9 06:34
> vmlinuz-4.16.1-kirkwood-tld-1
> -rw-r--r--  1 root root 7.9M Apr 11 17:12
> initrd.img-4.16.1-kirkwood-tld-1
>

I did dpkg the packages :), all but the initrd was installed, it's very odd!
Re: Linux Kernel 4.16.1 Kirkwood package and Debian rootfs
April 18, 2018 02:12AM
> I did dpkg the packages :), all but the initrd was
> installed, it's very odd!

List the /boot in chronological order. It must be there. If not, there is something wrong!

ls -lart /boot

And you can always reinstall the same kernel on top of the same running one.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 04/18/2018 02:12AM by bodhi.
Re: Linux Kernel 4.16.1 Kirkwood package and Debian rootfs
April 18, 2018 03:07AM
mark@nsa310s:~$ ls -lart /boot
total 26348
drwxr-xr-x 21 root root    4096 Nov 29 20:12 ..
-rw-r--r--  1 root root  157130 Apr  9 08:49 config-4.16.1-kirkwood-tld-1
-rw-------  1 root root 2633202 Apr  9 14:34 System.map-4.16.1-kirkwood-tld-1
-rw-------  1 root root 4065544 Apr  9 14:34 vmlinuz-4.16.1-kirkwood-tld-1
drwxr-xr-x  2 root root    4096 Apr 10 06:56 dts
-rw-r--r--  1 root root 8016208 Apr 17 13:25 initrd.img-4.16.1-kirkwood-tld-1
-rw-r--r--  1 root root 4065608 Apr 17 13:26 uImage
drwxr-xr-x  3 root root    4096 Apr 17 13:26 .
-rw-r--r--  1 root root 8016272 Apr 17 13:26 uInitrd
mark@nsa310s:~$

mark@nsa310a:~$ ls -lart /boot
total 34444
drwxr-xr-x 21 root root    4096 Apr 27  2017 ..
-rw-r--r--  1 root root  157130 Apr  9 08:49 config-4.16.1-kirkwood-tld-1
-rw-------  1 root root 2633202 Apr  9 14:34 System.map-4.16.1-kirkwood-tld-1
-rw-------  1 root root 4065544 Apr  9 14:34 vmlinuz-4.16.1-kirkwood-tld-1
drwxr-xr-x  2 root root    3072 Apr 17 13:37 dts
-rwxr-xr-x  1 root root 4065544 Apr 17 13:40 zImage-4.16.1-kirkwood-tld-1
-rwxr-xr-x  1 root root 4077826 Apr 17 13:41 zImage.fdt
-rw-r--r--  1 root root 4077890 Apr 17 13:43 uImage
drwxr-xr-x  3 root root    1024 Apr 17 13:51 .
-rw-r--r--  1 root root 8016208 Apr 17 13:52 initrd.img-4.16.1-kirkwood-tld-1
-rw-r--r--  1 root root 8016272 Apr 17 13:52 uInitrd

(a = the b, I just haven't changed the hostname)
Re: Linux Kernel 4.17.2 Kirkwood package and Debian rootfs
June 23, 2018 06:46PM
Kernel linux-4.17.2-kirkwood-tld-1 package has been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: