Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 18, 2016 03:13PM
it seems that the network chip has gone in 4.5 (NSA310s, haven't tested the NSA320s yet)


Edit

seems to work on my NSA320s


[    0.000000] Linux version 4.5.0-kirkwood-rm-1 (root@debianNSA325v2) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Tue Mar 15 00:45:49 CET 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Zyxel NSA320S

...
...

[    1.581628] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.653578] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 
[   18.827156] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled


Edit 2

I' see another thing in the log:

[/code]
[ 1.565096] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1: Whitelisted compatible string. Please remove

[/code]

Edit 3

the -rm1 was unpatched ... the -rm2 is now patched
now, the NSA320s is booting fine again but the NSA310s not ...

http://pastebin.com/37gxGV9A



Edited 5 time(s). Last edit at 03/18/2016 03:38PM by pengu.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 18, 2016 04:14PM
> seems to work on my NSA320s

Now that's a puzzle! 310s and 320s are identical.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 18, 2016 04:44PM
me too ...

and the only "change" I've found (4.5-rc3) is this one:

Nicolas Schichan (1):
      net: mv643xx_eth: fix packet corruption with TSO and tiny
unaligned packets.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 18, 2016 05:51PM
pengu,

Could you verify it again by running the same stick on NSA310S and NSA320S?

The PHY is completly absent. So the above patch would not have been the cause.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/18/2016 05:53PM by bodhi.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 18, 2016 06:45PM
There is another PHY related change that is more likeky the cause.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 19, 2016 04:55AM
OK. I finally figured out this problem with the NSA310S Ethernet. It was the Marvell PHY code change.

So kernel 4.5 is working OK. I will release it when I can.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 19, 2016 05:58AM
@pengu,

There is still something I don't understand and not sure how to make changes for NSA320S: Why did it work on your NSA320S.

Could you verify it again by running the same stick on NSA310S and NSA320S? and post dmesg for the NSA320S.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/19/2016 05:59AM by bodhi.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 19, 2016 03:47PM
bodhi Wrote:
-------------------------------------------------------
> OK. I finally figured out this problem with the
> NSA310S Ethernet. It was the Marvell PHY code
> change.
>
> So kernel 4.5 is working OK. I will release it
> when I can.


Beautiful! /bow to you
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 19, 2016 05:28PM
Johnny,

As soon as pengu can report about the NSA320S then I'd know it's good for release or not.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Sir, where're initramfs*gz ?
NVM, sir, you could write somewhere that we need to generate it ourselvs, but where can I download 4.4.0 kernel sources? IN https://cdn.kernel.org/pub/linux/kernel/v4.x/ no such kernel...
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 07:59AM
eine,

Quote
eine
> Sir, where're initramfs*gz ?
> NVM, sir, you could write somewhere that we need
> to generate it ourselvs

Thoroughly read the first post of this thread, the info is there, you must have skipped it. (Yes, I know it's a very crowded post and a pain to read at this stage, but...just do it. :-p).
Also, be aware that after every update/package install that changes initramfs you need to run the mkimage command again to regenerate uInitrd from teh new initrd.img*.


Quote
eine
>, but where can I download
> 4.4.0 kernel sources? IN
> https://cdn.kernel.org/pub/linux/kernel/v4.x/ no
> such kernel...


The kernel is there, you just wrongly assumed that 4.4.0 would be nominated like this, with the trailing zero. It is not, look for 4.4, it is there. TBH, it tricked me too for a couple of seconds. ;-)

https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.4.tar.gz
https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.4.tar.sign
https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.4.tar.xz

https://www.kernel.org/pub/linux/kernel/v4.x/patch-4.4.gz
https://www.kernel.org/pub/linux/kernel/v4.x/patch-4.4.sign
https://www.kernel.org/pub/linux/kernel/v4.x/patch-4.4.xz

Cheers,
Val.



Edited 3 time(s). Last edit at 03/20/2016 08:29AM by vcheche.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 11:56AM
@bodhi;

the same kernel / stick was used on NSA310s and NSA320s.
With unpatched ethernet driver, the LAN / PHY is absent as you mentioned.
With patched ethernet driver, I get the mentionend error while initializing the LAN / PHY.
On NSA320s it's no problem with both Kernels (unpatched 4.5 rm-1 and patched 4.5 rm-2)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 12:23PM
> On NSA320s it's no problem with both Kernels
> (unpatched 4.5 rm-1 and patched 4.5 rm-2)

Not sure I understand this. The NSA320S is not in the mainline kernel. If it is not patched, then you can't run it.

Is the kirkwood-nsa320s.dtb in the stick /boot/dts folder? if it is then it was already patched.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 03/20/2016 12:27PM by bodhi.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 03:11PM
@pengu,

Appreciate the boot logs you sent. You know what? I think you might have a different Ethernet chip in your box. At least it behaves like one.

I think it's OK for me to release new kernel, and let users who have the NSA320S report the finding. If you could, try it in a new USB rootfs for the NSA320S, to make sure that it work for others.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 03:41PM
I've splitted eine post into a different topic.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.5 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 04:01PM
Kernel linux-4.5.0-kirkwood-tld-1 package has been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.5 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 05:42PM
Thanks for this Bodhi !
Im going to wait till the link appears for the full rootfs and then check my instructions against it.
I may have a request for a couple of modules to be included in the next release if you could?
Re: Linux Kernel 4.5 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 20, 2016 05:48PM
Gravelrash Wrote:
-------------------------------------------------------
> Thanks for this Bodhi !
> Im going to wait till the link appears for the
> full rootfs and then check my instructions against
> it.
> I may have a request for a couple of modules to be
> included in the next release if you could?

Sure! post new module names if you know the exact names. Or post specific devices, if you're not sure about name.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 22, 2016 06:19AM
bodhi Wrote:
-------------------------------------------------------
> > On NSA320s it's no problem with both Kernels
> > (unpatched 4.5 rm-1 and patched 4.5 rm-2)
>
> Not sure I understand this. The NSA320S is not in
> the mainline kernel. If it is not patched, then
> you can't run it.
>
> Is the kirkwood-nsa320s.dtb in the stick /boot/dts
> folder? if it is then it was already patched.

I'm using the NSA320s dtb created by "make dtbs" on a patched earlier kernel.
(4.2 or 4.4 I think)


Edit

new situation:

your just released 4.5 kernel isn't working on my NSA320s while my unpatched 4,5 and the second one patched with the 4.4 patches is working fine



Edited 2 time(s). Last edit at 03/22/2016 07:01AM by pengu.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 22, 2016 12:56PM
pengu,

> your just released 4.5 kernel isn't working on my
> NSA320s while my unpatched 4,5 and the second one
> patched with the 4.4 patches is working fine

Would you please use a new test rootfs 4.4 on a stick, install the complete kernel (meaning extract the DTB also).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 22, 2016 03:17PM
bodhi Wrote:

>would you please use a new test rootfs 4.4 on a
> stick, install the complete kernel (meaning
> extract the DTB also).



done ... with the new rootfs .. kernel 4.4.0 .. the NSA320s is booting fine.
After installing linux-4.5 (haven't touched the DTBs) it's also booting fine ...
deleted the "dts" folder and unpacked the "new" one ...
rebooted .. I couldn't reach the box same as with my modified rootfs based on your 3.18.5 "rootfs"

seems that I have to look at the serial :-(


Edit

Serial attached .. the LAN is now gone on my NSA320s

http://pastebin.com/02GWuUEw



Edited 1 time(s). Last edit at 03/22/2016 03:32PM by pengu.
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 22, 2016 06:07PM
Now use the same stick, but with the old DTB from kernel 4.4.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 22, 2016 07:40PM
bodhi Wrote:
-------------------------------------------------------
> Now use the same stick, but with the old DTB from
> kernel 4.4.


then it's working fine on NSA320s
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 22, 2016 09:12PM
pengu Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
> > Now use the same stick, but with the old DTB
> from
> > kernel 4.4.
>
>
> then it's working fine on NSA320s

Thanks pengu!

That's why I found it strange. Your box ethernet acts as though it is not the same chip as the one in NSA310s. And we "knew" that it is the same!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
CV
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 24, 2016 08:46AM
Just wanted to say hello to everybody!

Greetings from me, my t5325 and kernel 4.5
cv@debian:~$ uname -a
Linux debian 4.5.0-kirkwood-tld-1 #4 PREEMPT Fri Mar 18 21:36:04 PDT 2016 armv5tel GNU/Linux
cv@debian:~$

Sofar everything also works with new the kernel.
Module "marvell_cesa" is loaded.

Tonight I will check sata booting - soldering the tiny caps was a pita but seems to have worked.

Cheers,
CV
Re: Linux Kernel 4.4 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 27, 2016 02:58AM
CV,

> Tonight I will check sata booting - soldering the
> tiny caps was a pita but seems to have worked.


Thanks for the report. How was the SATA mod? I'd love to see the pic!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.5 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 28, 2016 05:38AM
Just wanna confirm 'kirkwood-nsa310b-lmsensor-redusbled.dtb' works great on my NSA310. Hardware monitoring and all LEDs work as they should.
Re: Linux Kernel 4.5 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
March 28, 2016 02:01PM
sebr,

Thanks for the report!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.5 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
April 21, 2016 11:35PM
Last post was moved to its own topic.

If you have problem booting and need help, please make a new topic. This is the kernel release thread !

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Sorry, you can't reply to this topic. It has been closed.