Welcome! Log In Create A New Profile

Advanced

Linux Kernel 4.19.0 Kirkwood package and Debian rootfs

Posted by bodhi 
Hello,

my rootfs is from davygravy's NSA320 image.
I was not able to run Jeff's scipts without errors.

Space is 1.4Gb in rootfs.

 cat /etc/apt/apt.conf
APT::Install-Recommends "0";
APT::Install-Suggests "0";
APT::Default-Release "testing";
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 11, 2013 12:50PM
Is it possible to add ZRAM module to next kernel release, iv used it in arch arm on low memory devices. Otherwise kernel is working great on my goflex home.



Edited 1 time(s). Last edit at 11/11/2013 01:00PM by ricke.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 11, 2013 03:17PM
Ricke,

No problem. Will do that.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 11, 2013 03:58PM
It looks like the reason my kernels were not booting was this: http://forum.doozan.com/read.php?2,13355 (Debian Kirkwood kernel 3.10.4 udev does not enumerate USB devices in rootfs pre-mount?)

I managed to get a booting kernel, though still having the same software issues. Thanks for your help bodhi, I will raise it with the strongswan software devs...It only seems to work every few releases which is totally frustrating.

On the plus side, I compiled a leaner kernel (uImage - 2.42 MB, uInitrd - 5.99 MB) that boots faster. I can probably get it to shrink a bit more, but I've spent enough time on this already. I took out lots of the stuff that I don't use (including wifi, and bluetooth). Anyone can try it here-It will ONLY WORK ON THE GOFLEX NET:

http://www.mediafire.com/?0af45dl9073lj1d



Edited 1 time(s). Last edit at 11/11/2013 03:59PM by gee-man.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 12, 2013 12:19AM
ricke Wrote:
-------------------------------------------------------
> Is it possible to add ZRAM module to next kernel
> release, iv used it in arch arm on low memory
> devices. Otherwise kernel is working great on my
> goflex home.

Are there great performance improvement with zram ?
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 12, 2013 12:46AM
Well, i don't know if i would call it great performance. It depends on your cpu/ram and workload and alot of other things, if your using swap on slow flash media with a device that has low ram and is expected to swap then yes i would call ZRAM a great improvment as ram even compressed is alot faster.



Edited 1 time(s). Last edit at 11/12/2013 12:47AM by ricke.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 13, 2013 01:51AM
@daveeeee,

Sorry, I'm out of ideas :) not sure what's in your rootfs would cause the auto-removal like that. We've tried the apt configuration files that I'm aware of.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 20, 2013 08:07PM
Hi bodhi,
Can I use your patch on kernel 3.2 for POGO-E02 LED ?
I have Logitech Sphere pan/tilt with Motion working well for years under 3.2.0 on pogo-E02.

I have been using your kernel on other and I really like it.
So I have tried your kernel and others for Logitech Sphere pan/tilt with Motion, the problem is the wencam works fine but the pan/tilt stop working. I found the kernel higher than 3.2 then pan/tilt stop working.

So I wonder if I can use your pacth on kernel 3.2.

Thanks for your help

Mark
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 20, 2013 11:56PM
Hi Mark,

It might work, but I'm not sure, though, because it was a little old. In fact, I have 3.2.26 and 3.2.28 kernels saved in my build folder! I could take a look to see how different the patch is for Pogo E02. But if you want to try the kernel 3.2.28 as it was built, then let me know and I'll upload it.

In the mean time, could you verify that you are running the latest uBoot? (it is not absolutely necessary, since my kernel config took care of the old uBoot L2 cache problem, but it's good info to know).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 21, 2013 07:30AM
Hi bodhi,
Yes my POGO-E02 has latest uBoot.
I would like to try your 3.2.26 and 3.2.28 kernel, I really appreciate your help.

Thanks again

Mark
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 21, 2013 09:48PM
Hi Mark,

I forgot :) I've already uploaded kernel 3.2.28 back in March. Try this and see if it has what you need.
http://forum.doozan.com/read.php?2,11601,11601#msg-11601

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 22, 2013 07:54AM
Hi bodhi,
Your Kernel 3.2.28 works, I set machid to dd6 then I have the LED in Green, and the pan/tilt work,too.

Thank you very much.

Mark
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 23, 2013 12:43AM
Cool! Glad it works well for you.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 24, 2013 10:59PM
ricke Wrote:
-------------------------------------------------------
> Is it possible to add ZRAM module to next kernel
> release, iv used it in arch arm on low memory
> devices. Otherwise kernel is working great on my
> goflex home.

Please try this and let me know if zRAM works for you in this kernel:
http://forum.doozan.com/read.php?2,14188,14233#msg-14233

And also, please share a little bit about how you use zRAM? on a typical plugs, we got 128MB. So how does it help? how much RAM do you allocate the zRAM to improve performance? (ie. what kind of service you're running?)

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



Edited 1 time(s). Last edit at 11/24/2013 11:14PM by bodhi.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 25, 2013 11:28AM
bodhi Wrote:

> Please try this and let me know if zRAM works for
> you in this kernel:
> http://forum.doozan.com/read.php?2,14188,14233#msg
> -14233
>
> And also, please share a little bit about how you
> use zRAM? on a typical plugs, we got 128MB. So how
> does it help? how much RAM do you allocate the
> zRAM to improve performance? (ie. what kind of
> service you're running?)

Thank you bodhi, kernel module seems to work fine. Im using zRAM as swap and priority over disk based swap, i need my mechanical disks to spindown and swap on a flash usb drive is to slow to be usable. I usually only compress between 25-50% of total RAM and use one blockdevice per cpu or core. On my GoFlex Home running Samba, Minidlna, Vsftpd, Transmission-daemon im using 35% of RAM for zRAM. Adjusting vm.swappiness is probably a good idea depending on services running and memory usage.

A working init.d script that autodetects number of cores, sets swap priority to 100 and lets you override the script default size with env ZRAM_USE_PERCENT etc.

A useful script for checking zram device stats can be found here.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 25, 2013 11:32PM
Thanks for the info ricke.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 26, 2013 06:13AM
Little off topic but why doesn't /var/log/messages gets updated with any actions ?
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 26, 2013 06:52PM
@ bodhi : Bodhi, thank you for doing this. I hope to try it out in December - life has shifted gears on me recently and I've not stayed up with developments and changes. Thanks again,

davy

=====================================================


Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 26, 2013 11:49PM
Hi Davy,

Welcome back! hope the life gear has shifted into a happier and better times for you!

-bodhi
eas
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 27, 2013 02:32AM
It would be great if you also enabled zswap support. It uses a dynamically allocated pool of RAM to divert pages that would be swapped to disk and instead compresses them and stores them in RAM.

I'm honestly not sure exactly how it differs from zram, but my impression is that it is more flexible and transparent that putting swap on a zram device, since the system can push compressed pages to disk if the RAM is needed. I'm thinking of trying both out.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 27, 2013 01:49PM
@eas,

Sure, will add zswap to the next update. I think it is a little more flexible than zram in that it can age out the pages to disk.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 27, 2013 02:09PM
dinjo Wrote:
-------------------------------------------------------
> Little off topic but why doesn't /var/log/messages
> gets updated with any actions ?

It's in the instruction in first post. syslogd logs to RAM.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 29, 2013 09:08PM
how can i get the hdd led's working on the nsa320, ide-trigger doesn't seem to work any more.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 29, 2013 11:44PM
fma965 Wrote:
-------------------------------------------------------
> how can i get the hdd led's working on the nsa320,
> ide-trigger doesn't seem to work any more.

There is so little info in your post so we have no way to know how help. What kernel you're using? what do you boot with (USB, HDD)…., what did you see before updating …..and any log file.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 30, 2013 07:15AM
bodhi Wrote:
-------------------------------------------------------
> fma965 Wrote:
> --------------------------------------------------
> -----
> > how can i get the hdd led's working on the
> nsa320,
> > ide-trigger doesn't seem to work any more.
>
> There is so little info in your post so we have no
> way to know how help. What kernel you're using?
> what do you boot with (USB, HDD)…., what did you
> see before updating …..and any log file.

pbg4 had a shell script that use ide-trigger for the LED's but it no longer works, ide-trigger is invalid argument.

I am using the latest version on the first post.
I am running it from a ext3 usb
I am using a NSA320,
I never updated, i am using just the rootfs and kernel on first post (this is my first run)

What else do you need to know?

EDIT: o i see its ide-disk1 and ide-disk2 not just ide-disk, still doesn't seem to work though.

EDIT: i got it working but i can't get it working on boot using rc.local any suggestions?

EDIT i added the follow to a init.d script. seems to work now, Whats the best format to have the HDD for samba performance? ext4 is mega slow,
#!/bin/bash
echo "Fixing LEDs"
echo none > /sys/class/leds/nsa320:orange:sys/trigger
echo default-on  > /sys/class/leds/nsa320:green:sys/trigger
echo ide-disk1  > /sys/class/leds/nsa320:green:hdd1/trigger
echo ide-disk2  > /sys/class/leds/nsa320:green:hdd2/trigger
echo default-on  > /sys/class/leds/nsa320:green:usb/trigger

How can i get this working on debian?
------Shutdown via Powerbutton-------
It is possible to shutdown the box by pressing power button.

Install input-event-daemon and put following to /etc/input-event-daemon.conf:
[Global]
listen = /dev/input/event0
[Keys]
POWER = shutdown -h now

i can't seem to compile input-event-deamon.

-----------------------------------------

How can i fix SMB write speed, its my only issue now, http://i.imgur.com/dbQQuqX.png (write speed image) and http://i.imgur.com/RzsIUkH.png (read speed)



Edited 6 time(s). Last edit at 11/30/2013 10:05AM by fma965.
Attachments:
open | download - dbQQuqX.png (10.6 KB)
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
November 30, 2013 04:28PM
Kernel 3.12.0-kirkwood-tld-3 package was uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner
eas
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
December 07, 2013 01:43PM
Thanks. I added zswap.enabled=1 to the boot parameters and it looks like it is working. Memory pressure on my system isn't all that high, but it does seem to have succeeded in avoiding writes to the physical swap.

I realize that a lot of the memory usage on this box is for read caching various structures, like inodes. So, I'm not sure that zswap is going to be a big win, but it is good to have the option and I plan to leave it running.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
December 13, 2013 12:21PM
Bodhi could you upload a rootfs with the latest kernel that supports the nsa325?

I am attempting to use this on my new nsa325 v2 which is supposed to have the same hardware but the latest 3.12 rootfs you uploaded (tld-1) keeps giving me the unsupported board message:

Error: unrecognized/unsupported machine ID (r1 = 0x0000020f)

im not at home at the minut so cannot setup a 32bit vm to mess around with it.

update:

I tried compileing my own kernel with the patch and config from your latest kernel but got the same result.

any ideas?



Edited 1 time(s). Last edit at 12/13/2013 02:41PM by Buttzy10169.
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
December 13, 2013 03:26PM
Buttzy,

I will upload a new rootfs tonight.

Your problem is still in uBoot. Nothing about kernel yet. Check the arcNumber for NSA325. It should match the machid.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Linux Kernel 3.12.0 Kirkwood package and rootfs (Non Flattened Device Tree)
December 13, 2013 03:43PM
I will have a check now. what should i look for? ans at the moment I have arch linux booting on it with arch's stock kernel. (that comes with the nsa325 instructions on the arch linux arm site.

what toolchain do you use for compileing your kernels is there any special commands im missing out on? I used to build kernels for my ix2-200 (before i bricked it) using the codesourcery toolchain.

update:

i see a loadaddress set in the uboot config loadaddr=0x02000000 is that specific do i have to use that one? and for the uInitrd is / will that be specific aswel? oh and the arcNumber=4495.



Edited 2 time(s). Last edit at 12/13/2013 03:50PM by Buttzy10169.
Sorry, you can't reply to this topic. It has been closed.