Welcome! Log In Create A New Profile

Advanced

SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3

Posted by odonatax 
SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 06:37PM
Hello all,
After many years of faithful service, I'm doing some out-of-the-box hacking to my Pogoplug Pro (with PCI). Currently I have two problems, but will focus on the "easy" one first. I'm doing native SATA boot, bypassing flash memory entirely - no problems here. The system was working fine with 4.4.54, and I upgraded to 4.4.201 without issue. I just tried 4.14.176, and it appears that the native SATA port is not picked up by the kernel. It hangs waiting for a root device, and the bootlog is missing any evidence of sata_oxnas, or indeed any SATA device. I've not dug too deeply, but I did notice that the .dtb files have changed between versions.
Any thoughts ? I have bootlogs I can post if that's helpful. Thanks !
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 06:47PM
odonatax,

> the native SATA port is not picked up by the
> kernel. It hangs waiting for a root device, and
> the bootlog is missing any evidence of sata_oxnas,
> or indeed any SATA device.

Please post serial bootlog.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 06:54PM
odonatax,

No need to post bootlog!

Sorry about that.

This is a new set of patches for 4.14, I've just double-checked, and it is indeed that the Pogo Pro DTS is missing SATA. Let me recompile and upload another DTB file here. I might have to do a review for all these DTS to catch any missing devices.

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



Edited 1 time(s). Last edit at 05/05/2020 07:38PM by bodhi.
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 07:32PM
Wow, you are fast ! Hopefully it is as simple as a device tree mistake :) Then we can move on to the more *interesting* problem.
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 07:35PM
Here is the new DTB for Pogo V3 Pro.

Please copy it to /boot/dts folder of your rootfs. And reboot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - ox820-pogoplug-pro.dtb (8.8 KB)
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 07:38PM
odonatax Wrote:
-------------------------------------------------------
> Wow, you are fast ! Hopefully it is as simple as
> a device tree mistake :) Then we can move on to
> the more *interesting* problem.

Yes it was the DTS. I've uploaded the new DTB above!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 09:46PM
Thank you Bodhi, the new DTB appears to work. System boots normally now.

And as an extra bonus, it appears that the 4.14.176 kernel has fixed my other problem ! I am attempting to use a mini-PCIe SATA controller to give the Pogo an additional 4 SATA ports. Both the 4.4.54 and 4.4.201 kernels would throw an OOPS during boot when the SATA controller was installed. I am not well versed in reading backtraces, but it appeared that the OOPS occurred after probing the SATA controller, either just before or during the subsequent probe of the MTD. Happily, the 4.14.176 appears to boot flawlessly with the SATA controller installed.

So I think we're done here - thank you !
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 05, 2020 11:42PM
Cool!

Quote

Happily, the 4.14.176 appears to boot flawlessly with the SATA controller installed.

There was a siginicant improvement in this sata-oxnas driver.

Also, I've reviewed all other ox820 boxes DTS. They should be OK. Nothing is missing.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 06, 2020 12:52PM
works great, however somehow on reboot I lost the ip settings. After some looking it appeared that the WRT32x router had no longer identified the plug and gave it a new IP rather than the static one I had set up. So if your static IP is lost on reboot it is most likely the router settings. If wired simply look for a new device and as in my case remove old static IP and put in new one then reboot your plug, it should come back up.

Echowarrior108

device: pogoplug-pro v3

Currently running:
Debian GNU/Linux Bullseye 12-9-22
Linux 5.4.224-oxnas-tld-1 armv6l GNU/Linux 11-27-22
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 06, 2020 03:52PM
echowarrior108,

That's the behavior with random MAC address.

https://forum.doozan.com/read.php?2,101384,101479#msg-101479

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 07, 2020 09:58AM
Thanks for heads up,I had done some changes when trying out the usb wifi and hadn't put it back because it always loaded back up to the static IP set on the router. lol, The router must have detected a change of some kind and thought it was a new device. I will set the new setting back on the plug:)

Echowarrior108

device: pogoplug-pro v3

Currently running:
Debian GNU/Linux Bullseye 12-9-22
Linux 5.4.224-oxnas-tld-1 armv6l GNU/Linux 11-27-22
Re: SATA - Linux Kernel 4.14.176 Oxnas (OX820) Pogo V3
May 07, 2020 04:47PM
echowarrior108,

> Thanks for heads up,I had done some changes when
> trying out the usb wifi and hadn't put it back
> because it always loaded back up to the static IP
> set on the router. lol, The router must have
> detected a change of some kind and thought it was
> a new device.

The different MAC address told the router this is a different computer wants to have this IP.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: