Giter Club home page Giter Club logo

Comments (9)

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

Yeah my bad I thought I was working in a branch and updated master by mistake earlier, its the first line from mem
} to the end

Did a quick copy and paste to repair and must of missed the last character from the first line.
Please give us a shout if anything else as wasn't supposed to be working on master.

PS I have been wondering if I should but IRQ lines in ztab so you can also add affinity to cores?
Bad or good idea?

from zram-config.

yutayu avatar yutayu commented on June 8, 2024

still it occurs same errors.
I want to try to use it -> IRQ line

from zram-config.

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

I have not got a Pi setup check tomoz as it should be a simple fix but will need to run.
Its prob OK now

from zram-config.

yutayu avatar yutayu commented on June 8, 2024

before this change, we can install this to pi.
90f2bbf#diff-3fbb47e318cd8802bd325e7da9aaabe8

from zram-config.

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

The line 1 error should be clear just rm the zram-config dir clone again and try
I will have a look in the morning, plus it will have irq affinity lines so you can set affinity to say usb drive or network...

from zram-config.

yutayu avatar yutayu commented on June 8, 2024

pi@raspberrypi:~/Documents/zram-config $ sudo sh install.sh
Reading package lists... Done
Building dependency tree
Reading state information... Done
libattr1-dev is already the newest version (1:2.4.48-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cloning into 'overlayfs-tools'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 110 (delta 5), reused 0 (delta 0), pack-reused 96
Receiving objects: 100% (110/110), 40.44 KiB | 154.00 KiB/s, done.
Resolving deltas: 100% (61/61), done.
gcc -Wall -std=c99 -c main.c
In file included from main.c:16:
/usr/include/linux/stat.h:56:8: error: redefinition of ‘struct statx_timestamp’
struct statx_timestamp {
^~~~~~~~~~~~~~~
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:446,
from main.c:14:
/usr/include/arm-linux-gnueabihf/bits/statx.h:25:8: note: originally defined here
struct statx_timestamp
^~~~~~~~~~~~~~~
In file included from main.c:16:
/usr/include/linux/stat.h:99:8: error: redefinition of ‘struct statx’
struct statx {
^~~~~
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:446,
from main.c:14:
/usr/include/arm-linux-gnueabihf/bits/statx.h:36:8: note: originally defined here
struct statx
^~~~~
make: *** [makefile:11: main.o] Error 1
install: cannot stat 'overlayfs-tools/overlay': No such file or directory

Reboot to activate zram-config
edit /etc/ztab to configure options

I don't hurry :)
Good Night.

from zram-config.

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

Yeah looks like my push to the wrong branch I will have to just run up a Pi in the morn.
Thanks though and apols

Had a look and unsure how to change overlayfs-tools so that stretch and buster don't have header problems.
So just did a grep for os-release and install on that.

irq affinity to my surprise is not supported on pi to 3, 4 don't know but not going to include
I tried buster on a Pi4 and stretch on a Pi0 and all went well

fingers crossed that should sort things problem

from zram-config.

yutayu avatar yutayu commented on June 8, 2024

No error occurs :)
Perfect.

from zram-config.

StuartIanNaylor avatar StuartIanNaylor commented on June 8, 2024

Apols about that I was working in the wrong branch but actually made me use /etc/os-release which is far better.
I just wish the same libs with the same functionality would stop swapping function removals I guess its all optimisation and tidying but actually my c knowledge is extremely minimal. :)

Shame about IRQs on the PI until I tried I would of never expected affinity can not be set.
PS please feel free to branch clone copy so you have a version that is static and your own.

from zram-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.