Welcome! Log In Create A New Profile

Advanced

Linux Kernel 4.4.38 Oxnas (OX820) Pogo V3 package and Debian rootfs

Posted by bodhi 
bodhi,

Thanks for the reply. Yes, dpkg creates initrd.img-3.17.0-oxnas-tld-1. But it doesn't seem to create initrd.img-4.1.0-oxnas-tld-1.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
March 30, 2016 04:27AM
bodhi,


Here is the log:

root@debian:/boot# dpkg -i linux-image-4.1.0-oxnas-tld-1_1.0_armel.deb 
Selecting previously unselected package linux-image-4.1.0-oxnas-tld-1.
(Reading database ... 27230 files and directories currently installed.)
Preparing to unpack linux-image-4.1.0-oxnas-tld-1_1.0_armel.deb ...
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(.*?)(\\)?\${ <-- HERE ([^{}]+)}(.*)$/ at /usr/share/perl5/Debconf/Question.pm line 72.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^}]+)}/ at /usr/share/perl5/Debconf/Config.pm line 30.
Examining /etc/kernel/preinst.d/
Done.
Unpacking linux-image-4.1.0-oxnas-tld-1 (1.0) ...
Setting up linux-image-4.1.0-oxnas-tld-1 (1.0) ...
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(.*?)(\\)?\${ <-- HERE ([^{}]+)}(.*)$/ at /usr/share/perl5/Debconf/Question.pm line 72.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^}]+)}/ at /usr/share/perl5/Debconf/Config.pm line 30.

 Hmm. There is a symbolic link /lib/modules/4.1.0-oxnas-tld-1/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/4.1.0-oxnas-tld-1/build


 Hmm. The package shipped with a symbolic link /lib/modules/4.1.0-oxnas-tld-1/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/4.1.0-oxnas-tld-1/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.1.0-oxnas-tld-1 /boot/vmlinuz-4.1.0-oxnas-tld-1
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.1.0-oxnas-tld-1 /boot/vmlinuz-4.1.0-oxnas-tld-1
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 4.1.0-oxnas-tld-1 /boot/vmlinuz-4.1.0-oxnas-tld-1
root@debian:/boot# ls -lart
total 93164
drwxr-xr-x 21 root root     4096 Jan  1  1970 ..
-rw-r--r--  1 root root    98866 Oct 25  2014 config-3.17.0-oxnas-tld-1
-rwxr-xr-x  1 root root  4102640 Oct 26  2014 zImage-3.17.0-oxnas-tld-1
-rwxr-xr-x  1 root root  4102640 Oct 26  2014 vmlinuz-3.17.0-oxnas-tld-1
-rw-r--r--  1 root root  1519590 Oct 26  2014 System.map-3.17.0-oxnas-tld-1
-rw-r--r--  1 root root  9105612 Oct 26  2014 linux-headers-3.17.0-oxnas-tld-1_1_armel.deb
-rw-r--r--  1 root root 11067364 Oct 26  2014 linux-image-3.17.0-oxnas-tld-1_1_armel.deb
-rw-r--r--  1 root root   561870 Oct 27  2014 linux-3.17.0-oxnas-tld-1.patch
-rw-r--r--  1 root root   107205 Jul  1  2015 config-4.1.0-oxnas-tld-1
-rwxr-xr-x  1 root root  4488456 Jul  1  2015 zImage-4.1.0-oxnas-tld-1
-rw-------  1 root root  4488456 Jul  1  2015 vmlinuz-4.1.0-oxnas-tld-1
-rw-------  1 root root  1670156 Jul  1  2015 System.map-4.1.0-oxnas-tld-1
-rw-r--r--  1 root root 11076358 Jul  1  2015 linux-image-4.1.0-oxnas-tld-1_1.0_armel.deb
-rw-r--r--  1 root root  7094560 Jul  1  2015 linux-headers-4.1.0-oxnas-tld-1_1.0_armel.deb
-rw-r--r--  1 root root   413793 Jul  2  2015 linux-4.1.0-oxnas-tld-1.patch
-rw-r--r--  1 root root  3344043 Mar 27 09:57 initrd.img-3.17.0-oxnas-tld-1
-rw-r--r--  1 root root 24498898 Mar 29 16:10 linux-3.17.0-oxnas-tld-1-bodhi.tar.bz2
drwxr-xr-x  2 root root     4096 Mar 29 16:11 dts
-rw-r--r--  1 root root  4102704 Mar 29 16:12 uImage
-rw-r--r--  1 root root  3344107 Mar 29 16:12 uInitrd
drwxr-xr-x  3 root root     4096 Mar 30 20:13 .
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
March 30, 2016 06:57PM
No luck. I might have messed up with the dpkg config files somehow.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
May 07, 2016 12:34AM
Now that I have some free time to get back to this subject for the new OXNAS kernel. I'm afraid the bad news is I'm going to wait out longer before building the OXNAS kernel. Since the 4.1 is a LTS kernel, it is basically 1 more year before it become obsolete.

This was my conlusion after researching. There is an inherent problem with SMP in the ARM11MPCore, that people have been trying to solve. If anybody is interested, read the whole thread. This is cache cohenrency problem that's inherent in ARM11MPCore:
http://www.spinics.net/lists/arm-kernel/msg177415.html

Basically, why OpenWrt patch for OXNAS works: PREEMPT is not used. So OpenWrt kernel is a desktop oriented kernel, not preemptive. Our kernel is preemptive (which in layman speak: more responsive), while a non-preemptive kernel is time-shared (less responsive, more suited for multi-user system). That brought me to do more research, and my finding seems to indicate that all OpenWrt kernels are non-preemptive.

Now the show stopper. I've built the OXNAS kernel using the exact configuration that OpenWrt used, and it runs fine! However, as soon as I added Debian features (such as initrd) to the configuration, the cache coherency problem surfaced :) So it is either I did not get all the necessary patches in, or it is just an issue of OpenWrt patch is not enough to work around this fundemental problem. Note that it cannot be solved, just working around.

We've been running this kernel up until 4.1 without problem. But apparently something changed in the newer kernel that has brought out this architectural problem in ARM11MPCore once again.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
hi,
i installed the Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 package and rebooted.
all fine. then i made a dist-upgrade to jessie and got the warning:

Please upgrade your kernel before or while upgrading udev.

AT YOUR OWN RISK, you can force the installation of this version of udev
WHICH DOES NOT WORK WITH YOUR RUNNING KERNEL AND WILL BREAK YOUR SYSTEM
AT THE NEXT REBOOT by creating the /etc/udev/kernel-upgrade file.
There is always a safer way to upgrade, do not try this unless you
understand what you are doing!


dpkg: error processing archive /var/cache/apt/archives/udev_215-17+deb8u4_armel.deb (--unpack):
subprocess new pre-installation script returned error exit status 1

what should i do at best? (didnt i read that 3.17.0 is already jessie ready?)
jay
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
May 11, 2016 10:05PM
jay,

Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 is still wheezy. So when you upgrade to jessie, you will need to

1. Install the latest kernel 4.1 in the 1st post. Make sure it works first.

2. change apt source list (adjust the mirror to your location)

cat /etc/apt/sources.list
deb http://ftp.us.debian.org/debian jessie main
deb http://security.debian.org/ jessie/updates main contrib non-free

deb     http://http.debian.net/debian jessie-updates main contrib
deb-src http://http.debian.net/debian jessie-updates main contrib

3. And then do
apt-get dist-upgrade

4. Most likely you will need to regenerate uInitrd after the upgrade in step 3.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
hi bodhi,
thanks.
then i misinterpreted the info.
i will try again with first updating to kernel 4.1...

meanwhile i tried to finish the upgrade by creating the /etc/udev/kernel-upgrade file and complete the dist-upgrade

now it boots fine with the 3.17 kernel. but one bad thing:

on boot:

[ OK ] Started LSB: Starts klogd.
[ TIME ] Timed out waiting for device dev-ttyS0.device.
[DEPEND] Dependency failed for Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Update UTMP about System Runlevel Changes.

and the serial console is dead...

if i connect by ssh, i can see the boot was sucsessful.
what could be wrong with ttys0?

edit:
i recall my question:
I found out that a newer version of systemd requires a kernel with configuration option CONFIG_FHANDLE=y
so it seems that this is also a kernel issue...

tnx
jay



Edited 1 time(s). Last edit at 05/11/2016 10:47PM by jay.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
May 11, 2016 11:31PM
Just go back to sysvinit. And you can always boot systemd whenever you feel like it later.

To go back to sysvinit

apt-get install sysvinit-core sysvinit sysvinit-utils

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 05/11/2016 11:32PM by bodhi.
Hi There
Just got my bricked pogoplug connected (physically) to my ubuntu computer, OK that's as far as I got, after which there are full instructions on how to make the Dolphin valves expurgate the thribble device without extruding the plong matrix (I'm a tad confused as the instructions assume a certain level of competence, which I am sadly lacking) .

So, is there a dummies guide?

I want to know how to compile the UBOOT file (and where it is when I have done so) Pogoplug E02 (Pink)

How to connect to my pogoplug using JTAG and read the information (what terminal window and what utility to use)

How to flash UBOOT to the NAND on my pogoplug

(I know that I'm asking a huge one, but all the how tos I have read are assuming that I "simply" do certain actions, I have been back and forth serching for answers and they aren't defined (I'm assuming that this is due to the multiple pathways that can be taken) can we have an instruction set that plots it out in steps that newbies can get their heads around please, with pictures would be lovely)
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 24, 2016 05:24PM
Rob Malkin,

> So, is there a dummies guide?

No, there is no dummies guide. It's a hacking forum, so generally the guides assume you have some basic knowledge of Linux, and you can use the man page to learn command line syntax.

To start learning how people do certain things, look at the Wiki thread:
http://forum.doozan.com/read.php?2,23630

> How to flash UBOOT to the NAND on my pogoplug

See the u-boot thread for Pogo V3 (Note that it is different from the Pogo E02).
http://forum.doozan.com/read.php?3,16017

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 2 time(s). Last edit at 08/24/2016 05:27PM by bodhi.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
September 21, 2016 03:53PM
Hi bodhi,

do you have any plans to compile a new kernel for the Pogo?

Thanks
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
September 21, 2016 07:16PM
schnee Wrote:
-------------------------------------------------------
> Hi bodhi,
>
> do you have any plans to compile a new kernel for
> the Pogo?
>
> Thanks

Not atm. Since there is some developer actively trying to mainline thix box, I am waiting to see if that effort is successful before renewing this subject.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
September 23, 2016 11:19AM
bodhi Wrote:
-------------------------------------------------------
> Not atm. Since there is some developer actively trying to mainline thix box, I am waiting to see
> if that effort is successful before renewing this subject.

It's good to hear that there may be that possibility. In the mean time though I have discovered that the patch for kernel version 4.1.0 provided in bodhi's tarball in the original post works on the latest 4.1-series kernel (4.1.33). It took around seven hours for my pogoplug to compile it, but it works:

user@pogoplug:~$ uname -r
4.1.33-oxnas-tld-1
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
September 24, 2016 06:07PM
multiplex'd Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
> > Not atm. Since there is some developer actively
> trying to mainline thix box, I am waiting to see
> > if that effort is successful before renewing
> this subject.
>
> It's good to hear that there may be that
> possibility. In the mean time though I have
> discovered that the patch for kernel version 4.1.0
> provided in bodhi's tarball in the original post
> works on the latest 4.1-series kernel (4.1.33). It
> took around seven hours for my pogoplug to compile
> it, but it works:
>
>
> user@pogoplug:~$ uname -r
> 4.1.33-oxnas-tld-1
>

Thanks for the report!

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
September 24, 2016 09:06PM
Update to my earlier post:

Kernel version 4.1.34 has been released, and that seems to work with bodhi's 4.1.0 patch as well:

user@pogoplug:~$ uname -r
4.1.34-oxnas-tld-1
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
November 21, 2016 09:25PM
Good news! There is activity upstream for the Pogo V3. Will see if I will be able restart this kernel too.

Update:

This activity looks very promising.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 11/22/2016 12:45AM by bodhi.
Hi,

I'm currently upstreaming the OXNAS platform, on my spare time, a few patches by kernel version.

As for 4.9, OX810SE is booting, as for 4.10 which will released in february 2017, OX820 will have SMP, NAND & Ethernet support.
The Upstream kernel does not implement the FIQ SMP fixup, but a less performant but more generic fixup inherited from ARM's MPCore platform.
USB support needs some quirks and PLL support, which must be evaluated.
PCI needs cleaning a pushing the driver, but I only own a PogoPlug V3 without PCIe.
I will maybe be able so push a single-slot SATA driver, but USB is my priority for next development period.

If someone wants to collaborate, there is a mailing list at : linux-oxnas@lists.tuxfamily.org
A patchwork sub-project : https://patchwork.kernel.org/project/linux-oxnas/list/
and a Linux repository clone at https://github.com/OXNAS/linux with all the work pushed here.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
December 05, 2016 04:39AM
Hi Neil,

Welcome to the forum! Thanks for doing all the hard works upstreaming this box.

> I'm currently upstreaming the OXNAS platform, on
> my spare time, a few patches by kernel version.
>
> As for 4.9, OX810SE is booting, as for 4.10 which
> will released in february 2017, OX820 will have
> SMP, NAND & Ethernet support.
> The Upstream kernel does not implement the FIQ SMP
> fixup, but a less performant but more generic
> fixup inherited from ARM's MPCore platform.
> USB support needs some quirks and PLL support,
> which must be evaluated.
> PCI needs cleaning a pushing the driver, but I
> only own a PogoPlug V3 without PCIe.

Several of us here own the Pro version with PCIe.

> I will maybe be able so push a single-slot SATA
> driver, but USB is my priority for next
> development period.
>
> If someone wants to collaborate, there is a
> mailing list at : linux-oxnas@lists.tuxfamily.org
> A patchwork sub-project :
> https://patchwork.kernel.org/project/linux-oxnas/l
> ist/
> and a Linux repository clone at
> https://github.com/OXNAS/linux with all the work
> pushed here.

I will build a test kernel from the OXNAS Git as you have set it up, and provide it here so anyone who is interested will jump in and help with testing.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
December 08, 2016 07:09AM
Thanks to Superna for the inspiration and the information from upstream code :) Between that and OpenWrt patches and some google-fu, I've finally tracked down the root cause of the SMP kernel panic.

So I should be able to restart distribution for this kernel again in the near future.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Linux Kernel 4.4.38 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
December 12, 2016 04:45PM
Re: Linux Kernel 4.4.38 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 07, 2017 02:01AM
Re: Linux Kernel 4.4.38 Oxnas (OX820) Pogo V3 package and Debian rootfs
February 24, 2017 10:20PM
where to download Latest released rootfs: Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 (02 Nov 2014)?
Re: Linux Kernel 4.4.38 Oxnas (OX820) Pogo V3 package and Debian rootfs
February 24, 2017 11:22PM
youxiaojie Wrote:
-------------------------------------------------------
> where to download Latest released rootfs: Debian-
> 3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 (02 Nov 20
> 14)?

Scroll down and find the section:

Quote

Updated 02 Nov 2014:

Rootfs Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded. This rootfs is to keep in sync with kernel Linux-3.17.0-oxnas-tld-1.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
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: