Welcome! Log In Create A New Profile

Advanced

Linux Kernel 5.9.3 MVEBU package and Debian armhf rootfs

Posted by bodhi 
Re: Linux Kernel 5.5.3 MVEBU package and Debian armhf rootfs
April 04, 2020 04:56PM
Thank you. Great Job!

I couldn't find DTB for
armada-385-wdmc-Ex2-Ultra
in your DTS folder in
linux-5.5.3-mvebu-tld-1-bodhi.tar.bz2 
so I tried

armada-375-wd-mycloud-gen2.dtb
- but it didn't boot.

Then I tried
armada-385-wd-ex2100.dtb
but it made uImage greater that 5Mb in size and didn't fit into the ROM.

Is it possible to make such a DTB file or give instuctions how I can compile it myself?
Re: Linux Kernel 5.5.3 MVEBU package and Debian armhf rootfs
April 04, 2020 05:35PM
vzhilov,

Unfortunately, we have not had anybody intertested in this WD EX2 Ultra box before. So there is no DTS/DTB for this. Please start a new thread in this Debian subforum "Debian on WD MyCloud EX2 Ultra".

And post the specs of this box. And if you have serial console, post serial console boot log. If you don't have serial console then post dmesg output.

Regarding the size of uImage, the kernel has grown to that size, so no way to trim it down other than recompile the kernel with some features removed. That I would think is too much (If you can run this box with the kernel and rootfs on USB or HDD, why storing the kernel in flash?).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 5.5.3 MVEBU package and Debian armhf rootfs
April 05, 2020 06:11AM
Thank you. I did that.

As I understood I store RAM Disk in /dev/mtdblock2 and kernel in /dev/mtdblock1. The device wouldn't be able to start without those. Where else I can put the kernel?
Re: Linux Kernel 5.5.3 MVEBU package and Debian armhf rootfs
April 05, 2020 07:21AM
vzhilov Wrote:
-------------------------------------------------------
> Thank you. I did that.
>
> As I understood I store RAM Disk in /dev/mtdblock2
> and kernel in /dev/mtdblock1. The device wouldn't
> be able to start without those. Where else I can
> put the kernel?

The discussion should be in the the new thread you've created! I will come back tomorrow to that thread and ask you for more info.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 5.5.3 MVEBU package and Debian armhf rootfs
September 01, 2020 10:36PM
Kernel 5.8.5-mvebu-tld-1 package has been uploaded. Please 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
September 01, 2020 11:47PM
Bodhi,

Can you explain what it is that requires a separate kernel for the Netgear RN102 and GTI Mirabox? I thought that using DTS was supposed to cover the differences for hardware using the same architecture/SOC.

Ray
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
September 02, 2020 03:44AM
Ray,

Yes, the purpose of the DTS is to specify hardware devices. And almost all the time, we can do that.

However, there are a few special cases where we can experience a memory conflict between u-boot and kernel. This is one of those case where the Marvell u-boot is old and was built with a specific memory map for UART that is no longer used by more modern u-boot. Mirabox, RN102, and a few other Armada 370/XP boxes are like this.

Most of the MVEBU SoCs NAS have newer u-boot, but there are a few older Armada 370/xp boxes that use an older u-boot (on the other hand, IIRC, there is Mirabox FW with new u-boot, perhaps V9).

New address:

CONFIG_DEBUG_UART_PHYS=0xf1012000
CONFIG_DEBUG_UART_VIRT=0xfed12000


Old address:

CONFIG_DEBUG_UART_PHYS=0xd0012000
CONFIG_DEBUG_UART_VIRT=0xfec12000


Mirabox (Armada 370) DTS excerpt:

soc {
                ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
                          MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
                          MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;

NAS326 (Armada 380) DTS excerpt:

soc {
                ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
                          MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
                          MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000      /* CESA0: PHYS=0xf1100000


The real solution is to build new u-boot, or installing new u-boot if it is available. However, I don't think that is going to be easy to find GPL source for these old boxes like Mirabox or Netgear RN102.

The other solution is taking out UART debugging capability. However, I did not want to do that because we do a lot of kernel hacking and UART debugging is a major tool to understand the kernel behavior.

The easiest solution was what I took. Build a kernel that conforms to the old u-boot so we can run these boxes now (instead of spending much more time working on a u-boot solution).

-bodhi
===========================
Forum Wiki
bodhi's corner
there is missing dtb for wd-ex2-ultra in 5.8.5 kernel??
any issue?
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
September 02, 2020 10:44PM
mcmg2,

> there is missing dtb for wd-ex2-ultra in 5.8.5
> kernel??
> any issue?

Yes. Looks like I've missed that DTS patch. I had a copy/paste typo in the patch command!

Please use the DTB file from linux-dtb-5.7.6-mvebu-tld-1.tar. Or if you're upgrading from 5.7.6, the DTB file should still be in the /boot/dts folder.


UPDATE:

I've uploaded the DTB here in this post.

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



Edited 1 time(s). Last edit at 09/02/2020 10:51PM by bodhi.
Attachments:
open | download - armada-385-wd-ex2-ultra.dtb (17.9 KB)
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
September 13, 2020 07:41AM
Hello my friends,
i have a WD MyCloud Gen2, but can't get it to work.

My problem is, that the last release is "Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2",
there is no "armada-375-wd-mycloud-gen2.dtb".
I tried with various .dtb, also the one for my device out of 5.8.5 kernel.

Can anybody give me a tut to install it on my device or push me in the right direction?

THANKS

P.S.
Debian Buster is running fine when installing with fox_exe tutorial, there i also didn't mange to build a new kernel.
The kernel for fox_exe is build with "mii" not "rgmii-id", this makes big problems in OMV5.

P.S.S.
If someone has a kernel 4.4... from https://github.com/MarvellEmbeddedProcessors/linux-marvell/ with "rgmii-id", i would also be very happy. I didn't manage to build one on my own, many errors and also a lot quetions i coul'd answer. :-(



Edited 2 time(s). Last edit at 09/13/2020 07:55AM by puxxi2003.
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
September 13, 2020 04:08PM
puxxi2003m

Take a look at these threads (the 1st one is a better match):

https://forum.doozan.com/read.php?2,94839,95014#msg-95014

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

And then either post in that thread, or create a new working thread for your issue.

UPDATE: see the next post.

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



Edited 3 time(s). Last edit at 09/13/2020 05:35PM by bodhi.
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
September 13, 2020 05:34PM
puxxi2003,


Ah! I remember now.

The armada-375-wd-mycloud-gen2.dtb is only available later in kernel linux-5.8.5-tld-1. So you need to download the tarball, extract the linux-dtb-5.8.5-mvebu-tld-1.tar and then copy the DTB to the 5.2.9 rootfs /boot/dts folder.

Quote

Updated 01 Sept 2020:

Kernel 5.8.5-mvebu-tld-1 package has been uploaded.

New in this release:

- Enable BFQ as the default IO scheduler in the kernel.
- Enabled ISCSI_TARGET as loadable module.

NOTE: I've missed the DTB file for the WD Ex2 Ultra (armada-385-wd-ex2-ultra.dtb). Please see this post to download the DTB file if you're upgrading kernel for the WD EX2 Ultra): https://forum.doozan.com/read.php?2,32146,106989#msg-106989.


Download at Dropbox

linux-5.8.5-mvebu-tld-1-bodhi.tar.bz2

md5:
c67819cee3ba5593989723e1a90400c4
sha256:
b52777e758730614ac680b27dc60b77e022597c9cc3536e45d3a4d29f5445579

Updated 01 Sept 2020:

Kernel 5.8.5-mvebu-tld-1 package has been uploaded.

New in this release:

- Enable BFQ as the default IO scheduler in the kernel.
- Enabled ISCSI_TARGET as loadable module.

NOTE: I've missed the DTB file for the WD Ex2 Ultra (armada-385-wd-ex2-ultra.dtb). Please see this post to download the DTB file if you're upgrading kernel for the WD EX2 Ultra): https://forum.doozan.com/read.php?2,32146,106989#msg-106989.


Download at Dropbox

linux-5.8.5-mvebu-tld-1-bodhi.tar.bz2

md5:
c67819cee3ba5593989723e1a90400c4
sha256:
b52777e758730614ac680b27dc60b77e022597c9cc3536e45d3a4d29f5445579

As always, please check the hash of your download!

There are 6 files in this tarball:

Quote

linux-image-5.8.5-mvebu-tld-1_1.0_armhf.deb
linux-headers-5.8.5-mvebu-tld-1_1.0_armhf.deb
zImage-5.8.5-mvebu-tld-1
config-5.8.5-mvebu-tld-1
linux-dtb-5.8.5-mvebu-tld-1.tar
linux-5.8.5-mvebu-tld-1.patch

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
November 07, 2020 11:40PM
Kernel 5.9.3-mvebu-tld-1 package has been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 5.8.5 MVEBU package and Debian armhf rootfs
November 08, 2020 03:59PM
Last post moved here:

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


Please create a new thread for any installation problem or questions.

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