teodolit,
> The best solution would be to put u-boot+cfg +
> kernel+initRD on the FLASH and the rest on the
> USB/SATA.
Not so for this box. SPI flash is too small.
> Now; the stock NOR SPI M25P32 on ds411slim is 4MB
> only, it is too small to store so much data.
> So I soldered a new M25P128, 16MB NOR SPI instead.
> That way the hardware is done.
OK so you need the right u-boot to activate that.
> - your uboot.2017.07-tld-1.nsa325.motd0.kwb loads
> correctly over kwboot; network works, sata works,
> usb works, spi does not.
That's good. Meaning you can already boot Debian from USB or SATA rootfs.
> - the source of u-boot
> (https://source.denx.de/u-boot/u-boot.git) and
> compiled nsa325 from stratch; it loads OK, but no
> network, no sata, no usb, no spi.
That's to be expect. The hardware is different.
> - your uboot.2023.04-tld-1.nsa325.kwb loads OK; no
> network, no sata, no usb, no spi.
It's almost identical as in the mainline tree. So yes, a lot of things are not applicable to this DS411slim.
> Anyway I see a correlation: the newer the version
> - the less works.
> I see some tendency within the years to adopt the
> new hardware, forgetting the old one.
Yes, since 2017.07, u-boot SW architecture has changed substantially. Things got more precise, and code were more specific to the hardware (because of the DTS). Back then, we did things more generic, so boxes that has same SoC like NSA325 and DS411Slim would have more compatibility.
> 3). somehow adopt old u-boot?
I could roll a new u-boot 2017.07 for the DS411Slim, and let you test it. But probably in another 5 to 6 wekks.
> Do you know where can I get the source of
> relatively older u-boot for compiling NSA325 and
> tweaking it for ds411slim?
As I've mentioned in the
u-boot release thread, you can find my source code for NSA325 u-boot at
Quote
References:
1. U-Boot source code at GitHub (latest branch 2017.07-kirkwood-tld-1 and tag v2017.07-kirkwood-tld-1)
=======
What I would suggest is for now, booting from USB or SATA Debian rootfs using uboot.2017.07-tld-1.nsa325.mtd0.kwb using kwboot. And the kirkwood-ds411slim.dtb
I would not try to put kernel files on SPI, since you will have to store the rootfs on USB or SATA anyway, why not loading kernel files from the same place.
In the future, I could roll a new u-boot 2017.07 for the DS411Slim, and let you test it. I don't know what tech level you are at? As a policy, I don't want to spend my free time on kernel or u-boot building tutorials (because people can teach themselves with Google).
-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)