<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Need a help with upgrading nsa 325 v2 kernel</title>
        <description> Hi
I&amp;#039;ve just started following the instructions to upgrade my box kernel to 6.13,,but I. Can&amp;#039;t seem to shrink initrd to a reasonable size: it always stands at 13 Mb: am I missing something?

And if I make the uenv.Txt file, somehow the HD I use as storage has raid partitions (so my disk is full of  /dev/mtdblock4 etc) shoulf I mention those partitions together with ide USB etc? And how?</description>
        <link>https://forum.doozan.com/read.php?2,139430,139430#msg-139430</link>
        <lastBuildDate>Thu, 12 Mar 2026 21:48:51 -0500</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139443#msg-139443</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139443#msg-139443</link>
            <description><![CDATA[ Thank you very much<br />
Somehow fw_pribt env wasn&#039;t installed so I had to follow some guide here on the forum<br />
I&#039;m. No expert but I see this line:<br />
<br />
<pre class="bbcode">
dtb_file=/boot/dts/kirkwood-nsa325.dtb</pre>
<br />
So I guess I&#039;m done]]></description>
            <dc:creator>Carlo</dc:creator>
            <category>Debian</category>
            <pubDate>Thu, 27 Mar 2025 06:06:01 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139442#msg-139442</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139442#msg-139442</link>
            <description><![CDATA[ &gt; One more question: you tell to keep note of the<br />
&gt; kirkwood tds model, say kirkwood-nsa325, but I<br />
&gt; haven&#039;t used it anywhere: do I miss something<br />
&gt; else?<br />
<br />
When you installed the u-boot 2017.07, you have defined the u-boot env <b>dtb_file</b>. It looks like this<br />
<pre class="bbcode">
dtb_file=/boot/dts/kirkwood-nsa325.dtb</pre>
You can do<br />
<pre class="bbcode">
fw_printenv</pre>
and it will list all u-boot envs, including that model name.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 15:38:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139441#msg-139441</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139441#msg-139441</link>
            <description><![CDATA[ One more question: you tell to keep note of the kirkwood tds model, say kirkwood-nsa325, but I haven&#039;t used it anywhere: do I miss something else?]]></description>
            <dc:creator>Carlo</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 14:49:51 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139440#msg-139440</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139440#msg-139440</link>
            <description><![CDATA[ &gt; ➜  /boot ls -lh /boot/uInitrd<br />
&gt; -rw-r--r-- 1 root root 6.4M Mar 26 20:40<br />
<br />
&gt; seems like it&#039;s not going to brick, is it?<br />
<br />
Looks good! no fear.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 14:46:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139439#msg-139439</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139439#msg-139439</link>
            <description><![CDATA[ my bad.. i thought i&#039;d had followed each and every step... but i was from mobile.. on a bus....<br />
<br />
<br />
let&#039;s see again:<br />
<br />
<br />
<pre class="bbcode">
➜  /boot dpkg -i linux-image-6.13.8-kirkwood-tld-1_1_armel.deb
(Reading database ... 43407 files and directories currently installed.)
Preparing to unpack linux-image-6.13.8-kirkwood-tld-1_1_armel.deb ...
Unpacking linux-image-6.13.8-kirkwood-tld-1 (1) over (1) ...
Setting up linux-image-6.13.8-kirkwood-tld-1 (1) ...
update-initramfs: Generating /boot/initrd.img-6.13.8-kirkwood-tld-1
➜  /boot mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.13.8-kirkwood-tld-1 -d initrd.img-6.13.8-kirkwood-tld-1 uInitrd

Image Name:   initramfs-6.13.8-kirkwood-tld-1
Created:      Wed Mar 26 20:40:22 2025
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    6614977 Bytes = 6459.94 KiB = 6.31 MiB
Load Address: 00000000
Entry Point:  00000000
➜  /boot sync
➜  /boot ls -lh /boot/uInitrd
-rw-r--r-- 1 root root 6.4M Mar 26 20:40 /boot/uInitrd</pre>
<br />
seems like it&#039;s not going to brick, is it?]]></description>
            <dc:creator>Carlo</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 14:42:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139438#msg-139438</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139438#msg-139438</link>
            <description><![CDATA[ Carlo,<br />
<br />
Hold on. Disregard my post above.<br />
<br />
You&#039;ve missed a step:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />3. Recreate the boot file uInitrd <br />
<br />
So now we have a new initrd.img-6.3.5-kirkwood-tld-1 file, we need to recreate uInitrd. <br />
<br />
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.3.5-kirkwood-tld-1  -d initrd.img-6.3.5-kirkwood-tld-1 uInitrd<br />
sync</div></blockquote>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 14:36:02 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139437#msg-139437</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139437#msg-139437</link>
            <description><![CDATA[ Carlo,<br />
<br />
&gt; Can I safely reboot without the uenv file and if<br />
&gt; the initrd is too big?<br />
<br />
It&#039;s depending on what version of u-boot you are running (2017.07 or newer)? and what your u-boot envs are.<br />
<br />
Do you have serial console? if you do, then you can boot and interrupt count down, and<br />
<pre class="bbcode">
printenv</pre>
Post the serial console log here. Don&#039;t boot until I can take a look.<br />
<br />
And if you don&#039;t have serial console, then while in Debian,<br />
<br />
<pre class="bbcode">
fw_printenv
cat /boot/uEnv.txt
ls -larth /boot</pre>
And post the log of the above commands here. Don&#039;t reboot until I can take a look.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 14:32:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139436#msg-139436</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139436#msg-139436</link>
            <description><![CDATA[ i&#039;ve changed a bit the /etc/initramfs-tools/initramfs.conf<br />
i&#039;ve set dep, and i&#039;ve used gzip, compress level 5 as compression, cause update initram tells me it&#039;s using gzip since it can&#039;t find zstd to compress things<br />
<br />
however the outcome is always the same:<br />
<br />
<pre class="bbcode">
➜  /boot nano  /etc/initramfs-tools/initramfs.conf
➜  /boot update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.13.8-kirkwood-tld-1
➜  /boot ls -lh /boot/uInitrd
-rw-r--r-- 1 root root 13M Mar 26 15:02 /boot/uInitrd
➜  /boot ls -larth /boot 
total 158M
-rwxr-xr-x  1 root root 4.8M Aug 18  2019 zImage-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root 162K Aug 18  2019 config-5.2.9-kirkwood-tld-1
-rw-------  1 root root 4.8M Aug 18  2019 vmlinuz-5.2.9-kirkwood-tld-1
-rw-------  1 root root 3.0M Aug 18  2019 System.map-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root 9.3M Aug 18  2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root  12M Mar 17 10:26 initrd.img-5.2.9-kirkwood-tld-1
-rwxr-xr-x  1 root root 5.8M Mar 24 20:59 vmlinuz-6.13.8-kirkwood-tld-1
-rw-r--r--  1 root root 194K Mar 24 20:59 config-6.13.8-kirkwood-tld-1
-rw-r--r--  1 root root 4.2M Mar 24 20:59 System.map-6.13.8-kirkwood-tld-1
-rwxr-xr-x  1 root root 5.8M Mar 24 22:34 zImage-6.13.8-kirkwood-tld-1
-rw-r--r--  1 root root 8.2M Mar 24 22:43 linux-headers-6.13.8-kirkwood-tld-1_1_armel.deb
-rw-r--r--  1 root root  31M Mar 24 22:43 linux-image-6.13.8-kirkwood-tld-1_1_armel.deb
drwxr-xr-x  2 root root 4.0K Mar 24 22:53 dts
-rw-r--r--  1 root root 1.5M Mar 24 22:54 linux-dtb-6.13.8-kirkwood-tld-1.tar
-rw-r--r--  1 root root 176K Mar 25 04:57 linux-6.13.8-kirkwood-tld-1.patch
drwxr-xr-x 20 root root 4.0K Mar 26 14:46 ..
-rw-r--r--  1 root root  45M Mar 26 14:48 linux-6.13.8-kirkwood-tld-1-bodhi.tar.bz2
-rw-r--r--  1 root root 5.8M Mar 26 15:00 uImage
-rw-r--r--  1 root root  13M Mar 26 15:02 uInitrd
-rw-r--r--  1 root root  105 Mar 26 15:15 uEnv.txt
-rw-r--r--  1 root root 6.4M Mar 26 20:26 initrd.img-6.13.8-kirkwood-tld-1
drwxr-xr-x  3 root root 4.0K Mar 26 20:26 .</pre>
uInitrd is 13 MB<br />
before anything bad happens i&#039;m going to edit the uEnv.txt this ways:<br />
<br />
<pre class="bbcode">
dtb_file=/boot/dts/kirkwood-nsa325.dtb
devices= usb ide
disks=0 1 2 3 4 5 6 7
load_dtb_addr=0x2c00000
</pre>]]></description>
            <dc:creator>Carlo</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 14:31:43 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139435#msg-139435</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139435#msg-139435</link>
            <description><![CDATA[ Can I safely reboot without the uenv file and if the initrd is too big?]]></description>
            <dc:creator>Carlo</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 13:52:10 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139432#msg-139432</guid>
            <title>Re: Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139432#msg-139432</link>
            <description><![CDATA[ Carlo,<br />
<br />
&gt; I&#039;ve just started following the instructions to<br />
&gt; upgrade my box kernel to 6.13,,but I. Can&#039;t seem<br />
&gt; to shrink initrd to a reasonable size: it always<br />
&gt; stands at 13 Mb: am I missing something?<br />
<br />
Make sure you run <i>update-initramfs -u</i><br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>https://forum.doozan.com/read.php?2,135322</strong><br />
<br />
1. Change the default modules loading to dep. <br />
<br />
Edit the file /etc/initramfs-tools/initramfs.conf <br />
<br />
# MODULES: [ most | netboot | dep | list ]<br />
# dep - Try and guess which modules to load.<br />
MODULES=dep<br />
<br />
2. Update initramfs <br />
<br />
I&#039;m using the kernel 6.3.5-kirkwood-tld-1 as an example here. Adjust this to the appropriate version number to the running kernel in your system (run uname -a to display current kernel version). <br />
cd /boot<br />
ls -lh initrd.img-6.3.5-kirkwood-tld-1<br />
update-initramfs -u</div></blockquote>
<br />
And then list the /boot directory to see the last file on this list<br />
<pre class="bbcode">
ls -larth /boot</pre>
<br />
If the new initrd corresponding to the currently running kernel is not created, then you might have a newer and different kernel version that you&#039;ve installed but not used.<br />
<br />
&gt; <br />
&gt; And if I make the uenv.Txt file, somehow the HD I<br />
&gt; use as storage has raid partitions (so my disk is<br />
&gt; full of  /dev/mtdblock4 etc) shoulf I mention<br />
&gt; those partitions together with ide USB etc? And<br />
&gt; how?<br />
<br />
mtdblock or RAID is not relevant for booting. So keep the devices env in uEnv.txt file to the order of the disk type that migth contain a rootfs.<br />
<pre class="bbcode">
devices=usb ide
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 12:38:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,139430,139430#msg-139430</guid>
            <title>Need a help with upgrading nsa 325 v2 kernel</title>
            <link>https://forum.doozan.com/read.php?2,139430,139430#msg-139430</link>
            <description><![CDATA[ Hi<br />
I&#039;ve just started following the instructions to upgrade my box kernel to 6.13,,but I. Can&#039;t seem to shrink initrd to a reasonable size: it always stands at 13 Mb: am I missing something?<br />
<br />
And if I make the uenv.Txt file, somehow the HD I use as storage has raid partitions (so my disk is full of  /dev/mtdblock4 etc) shoulf I mention those partitions together with ide USB etc? And how?]]></description>
            <dc:creator>Carlo</dc:creator>
            <category>Debian</category>
            <pubDate>Wed, 26 Mar 2025 09:26:54 -0500</pubDate>
        </item>
    </channel>
</rss>
