Welcome! Log In Create A New Profile

Advanced

Linux Kernel 4.12.8 Kirkwood package and Debian rootfs

Posted by bodhi 
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 09, 2016 06:00PM
In case anybody wondering, I've built kernel 4.7 without incidence. However it does not not have any thing interesting added, so decided not to release it and wait for 4.8.

-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
I'm new to all of this but interested in getting two bricked ix4-200d boxes back up and running. Is there a link to a tutorial and required equipment to get started? I've read the OP but still don't know where to get started. Thanks!
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 25, 2016 09:04PM
red9r Wrote:
-------------------------------------------------------
> I'm new to all of this but interested in getting
> two bricked ix4-200d boxes back up and running. Is
> there a link to a tutorial and required equipment
> to get started? I've read the OP but still don't
> know where to get started. Thanks!

You need to connect serial console:
http://forum.doozan.com/read.php?8,13263

And the use Uart booting.
http://forum.doozan.com/read.php?3,12381

Once you have serial console, come back and I wll help you pick the uboot image to use in unbricking.

-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
Thank you Bodhi!

I have my serial console in hand and looking forward to learning the process.
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
August 29, 2016 02:52PM
red9r Wrote:
-------------------------------------------------------
> Thank you Bodhi!
>
> I have my serial console in hand and looking
> forward to learning the process.

Please create a new thread in U-Boot subforum when you're ready with serial console.

-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.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
September 18, 2016 11:52AM
Hi Bodhi,
i would like to try install docker on my NSA310, but when i checked dependences for than I stuck with missing CONFIG_MEMCG in your kernel 4.6. So my question is... Is it possible to include this module to your next kernel release?

Thx for you work !
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
September 18, 2016 03:47PM
sodd Wrote:
-------------------------------------------------------
> Hi Bodhi,
> i would like to try install docker on my NSA310,
> but when i checked dependences for than I stuck
> with missing CONFIG_MEMCG in your kernel 4.6. So
> my question is... Is it possible to include this
> module to your next kernel release?
>
> Thx for you work !

Sure, I could add it and keep it disabled by default, if it does not cost too much memory for people who are not using it. A lot of Kirkwwood plugs only have 128MB.

-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.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 03, 2016 03:51PM
Re: Linux Kernel 4.8 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and Debian rootfs
October 11, 2016 01:29AM
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 12, 2016 04:13PM
sodd Wrote:
-------------------------------------------------------
> Hi Bodhi,
> i would like to try install docker on my NSA310,
> but when i checked dependences for than I stuck
> with missing CONFIG_MEMCG in your kernel 4.6. So
> my question is... Is it possible to include this
> module to your next kernel release?
>
> Thx for you work !

Hi sodd,

I did not have time to investigate the memory usage of this MEMCG so I did not include it in this 4.8 release. Will try that 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.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 13, 2016 01:33AM
Problem with PCI (i.e. USB 3.0 and other PCIe interfaces) in kernel 4.8.

Fixed in the following 3 posts.

-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 10/13/2016 05:05AM by bodhi.
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 13, 2016 03:39AM
Looks like PCI is broken in kernel 4.8 due to the difference in DTS. So if you have the NSA325 v1/v2, the Pogo V4, and the Iomega ix4 200d, please replace the DTB with the kernel 4.6 DTB (attached in this post).

mv  /boot/dts/kirkwood-nsa325.dtb  /boot/dts/kirkwood-nsa325.dtb.v4.8
cp -a  kirkwood-nsa325.dtb /boot/dts/

mv  /boot/dts/kirkwood-pogoplug_v4.dtb  /boot/dts/kirkwood-pogoplug_v4.dtb.v4.8
cp -a  kirkwood-pogoplug_v4.dtb /boot/dts/

mv  /boot/dts/kirkwood-iomega_ix4_200d.dtb  /boot/dts/kirkwood-iomega_ix4_200d.dtb.v4.8
cp -a kirkwood-iomega_ix4_200d.dtb /boot/dts/

-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 10/13/2016 03:53AM by bodhi.
Attachments:
open | download - kirkwood-nsa325.dtb (14.2 KB)
open | download - kirkwood-pogoplug_v4.dtb (10 KB)
open | download - kirkwood-iomega_ix4_200d.dtb (9.3 KB)
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 13, 2016 04:19AM
DTBs for Asus_m25, Netgear_Stora, Qizhitong_501m_v2.

-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 10/13/2016 04:48AM by bodhi.
Attachments:
open | download - kirkwood-netgear_stora_ms2000.dtb (11.6 KB)
open | download - kirkwood-asus_m25.dtb (13.2 KB)
open | download - kirkwood-qizhitong_501m_v2.dtb (9.9 KB)
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 13, 2016 04:26AM
DTBs for Nsa310s and Nsa320s.

-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 10/13/2016 04:47AM by bodhi.
Attachments:
open | download - kirkwood-nsa310s.dtb (13 KB)
open | download - kirkwood-nsa320s.dtb (13 KB)
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 13, 2016 04:26AM
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 13, 2016 06:09PM
he bodhi.

i'm using zram on all my small ram devices to "enlarge" RAM before using slow swap. Have you tought about updating the rootfs with the zram option by default?

its just adding this script to startup: ZRAM on Debian
Re: Linux Kernel 4.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 13, 2016 08:35PM
Sash Wrote:
-------------------------------------------------------
> he bodhi.
>
> i'm using zram on all my small ram devices to
> "enlarge" RAM before using slow swap. Have you
> tought about updating the rootfs with the zram
> option by default?
>
> its just adding this script to startup:
> ZRAM on
> Debian


I have zswap enabled in the kernel. It is better.

-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.6 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and rootfs
October 16, 2016 04:59AM
No problem, I'm patient :)
Any plan to release a new Kirkwood kernel to address CVE-2016-5195. See LWN article

Ray
Re: Linux Kernel 4.8 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and Debian rootfs
October 21, 2016 05:43PM
Of course.

However, if your box is not facing the internet, no need to worry. Just be careful, as always: don't run any software that you cant tell whether it is from a reputable repo (such as Debian distribution).

-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.8.3 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and Debian rootfs
October 25, 2016 12:48AM
Re: Linux Kernel 4.8.3 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and Debian rootfs
October 26, 2016 03:59PM
Just updated to kernel 4.8.3 (from 3.16.0, I believe) on my Dockstar and now I'm getting a ton of ECC errors on boot:
[   22.951509] __nand_correct_data: uncorrectable ECC error
[   22.956878] Buffer I/O error on dev mtdblock1, logical block 0, async page read
[   22.964449] __nand_correct_data: uncorrectable ECC error
[   22.970005] __nand_correct_data: uncorrectable ECC error
[   22.975587] __nand_correct_data: uncorrectable ECC error
[   22.981132] __nand_correct_data: uncorrectable ECC error
...
My U-Boot is "U-Boot 2014.07-tld-2 (Sep 20 2014 - 01:10:10)", so I followed the "4b" steps.

I found a similar reference in a U-Boot thread that seemed to indicate that it may be harmless, but it sure is disconcerting. It takes a good 10 seconds for the boot process to get through all the errors. Everything seems to be working ok once it boots. I'm still on wheezy if it matters. My next step was to update to jessie.

-JT
Re: Linux Kernel 4.8.3 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and Debian rootfs
November 05, 2016 05:09PM
JT,

Yes, update to jessie should get rid of the error message. But it is really harmless. This error occur when the command you issued does not understand NAND mtdblock device. And your system boot process most likey has executed one of those.

-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
Thanks! Will update in the next couple of days.

-JT
Update: After completing the kernel and dist upgrade, I still get the ECC errors:
[   23.932658] __nand_correct_data: uncorrectable ECC error
[   23.938095] blk_update_request: I/O error, dev mtdblock0, sector 2040
[   23.944841] __nand_correct_data: uncorrectable ECC error
[   23.950196] blk_update_request: I/O error, dev mtdblock0, sector 2040
[   23.956669] Buffer I/O error on dev mtdblock0, logical block 255, async page read
There's only 1 or two seconds worth of error messages now instead of 10 seconds, so I guess that's an improvement.

-JT
Re: Linux Kernel 4.8.3 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and Debian rootfs
November 09, 2016 01:36AM
renojim Wrote:
-------------------------------------------------------
> Update: After completing the kernel and dist
> upgrade, I still get the ECC errors:
[  
> 23.932658] __nand_correct_data: uncorrectable ECC
> error
> [   23.938095] blk_update_request: I/O error, dev
> mtdblock0, sector 2040
> [   23.944841] __nand_correct_data: uncorrectable
> ECC error
> [   23.950196] blk_update_request: I/O error, dev
> mtdblock0, sector 2040
> [   23.956669] Buffer I/O error on dev mtdblock0,
> logical block 255, async page read
> There's only 1 or two seconds worth of error
> messages now instead of 10 seconds, so I guess
> that's an improvement.
>
> -JT

This is odd. Do you have bad blocks on NAND?

dmesg | grep -i bad

-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
[    5.730994] Scanning device for bad blocks
[    5.790733] Bad eraseblock 723 at 0x000005a60000
[    5.854769] Bad eraseblock 1496 at 0x00000bb00000
Is that bad? So it had nothing to do with the kernel update? I just noticed the original ECC errors were on mtdblock1 and these are mtdblock0. I never noticed the mtdblock0 ECC errors, but that doesn't mean they weren't there.

-JT
Re: Linux Kernel 4.8.3 Kirkwood (FDT) and 3.16 Kirkwood (non-FDT) package and Debian rootfs
November 09, 2016 05:00AM
JT,

[ 5.730994] Scanning device for bad
> blocks
> [ 5.790733] Bad eraseblock 723 at
> 0x000005a60000
> [ 5.854769] Bad eraseblock 1496 at
> 0x00000bb00000[/code]

> Is that bad? So it had nothing to do with the
> kernel update? I just noticed the original ECC
> errors were on mtdblock1 and these are mtdblock0.
> I never noticed the mtdblock0 ECC errors, but that
> doesn't mean they weren't there.
>
> -JT

I just want to confirm. The ECC error in dmesg is a red-herring, not real (mtdblock0 is only 1MB so that number is bogus). The bad blocks in this post are real, and they are not in mtd0. I would trust these 2 messages and note the bad blocks for future reference.

> [ 5.790733] Bad eraseblock 723 at
> 0x000005a60000
> [ 5.854769] Bad eraseblock 1496 at
> 0x00000bb00000[/code]

So nothing to worry about. Except that something try to load/check NAND during the kernel boot, and we dont know what it is. At that time, that program does not know how to interpret NAND info.

-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
Can I install grub to enable apparmor on pogo?
GRUB_CMDLINE_LINUX="$1 apparmor=1 security=apparmor"
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: