Code Monkey home page Code Monkey logo

Comments (12)

tehn avatar tehn commented on August 21, 2024 1

see https://github.com/tehn/norns-image/blob/master/readme-hardware.md for exhaustive peripheral information, please let me know if you see any holes or need further details

from norns-image.

simonvanderveldt avatar simonvanderveldt commented on August 21, 2024 1

I think we can close this one. The current kernel including config lives here https://github.com/simonvanderveldt/linux/tree/norns-20171029-1
I'll transfer ownership and make public once norns is released/at the moment we decide to make all sources public :)

from norns-image.

simonvanderveldt avatar simonvanderveldt commented on August 21, 2024

From #9 (comment)

also-- way long ago when we were doing the sound codec driver, murray attempted a travis CI for the kernel and it ran up against travis' time limit for the process-- perhaps there's a way around this with a cross-compiling config.

I've got something basic working that automatically compiles the (stock) raspbian kernel and (currently) creates deb packages (which probably won't work on raspbian/arm because of a different device tree structure):

$ ls -ahl
total 28M
drwxr-xr-x 2 root root    7 Feb  3 21:30 .
drwxr-xr-x 3 root root    3 Feb  3 21:15 ..
-rw-r--r-- 1 root root 143K Feb  3 21:17 4.9.79-v7+.config
-rw-r--r-- 1 root root 179K Feb  3 21:30 linux-firmware-image-4.9.79-v7+_4.9.79-v7+-1_armhf.deb
-rw-r--r-- 1 root root  11M Feb  3 21:30 linux-headers-4.9.79-v7+_4.9.79-v7+-1_armhf.deb
-rw-r--r-- 1 root root  16M Feb  3 21:30 linux-image-4.9.79-v7+_4.9.79-v7+-1_armhf.deb
-rw-r--r-- 1 root root 830K Feb  3 21:30 linux-libc-dev_4.9.79-v7+-1_armhf.deb

This takes +-14 minutes from scratch on my machine whilst I'm doing other stuff.

It includes cloning the https://github.com/raspberrypi/linux.git repo (with --depth 1) which takes over 3 minutes.

Also, it includes a gazillion modules, many of which we don't need because they can never be used with the norns hardware (shields for example, but there are many more things in there).

I think we should be able to get all of this working within the 50 mins Travis time limit without a lot of problems.

from norns-image.

simonvanderveldt avatar simonvanderveldt commented on August 21, 2024

So the basics are working, build took 41 minutes on Travis, quiet a bit longer than I was expecting, but still within the 50 minutes mark :)
https://travis-ci.org/simonvanderveldt/rpi3-kernel/builds/337069175
Full log here https://api.travis-ci.org/v3/job/337069176/log.txt

Will have a look at cleaning up the config tomorrow and figuring out how to build something that can be run using QEMU

from norns-image.

simonvanderveldt avatar simonvanderveldt commented on August 21, 2024

Tried to get a minimal kernel build going today, but (of course :P) the defconfig provided by the raspberry foundation then creates a config that doesn't compile. Fun times! ;)
For reference raspberrypi/linux#2366

from norns-image.

simonvanderveldt avatar simonvanderveldt commented on August 21, 2024

All right, got the minimal config working as well, building that took 23minutes on travis :)
https://travis-ci.org/simonvanderveldt/rpi3-kernel/builds/337258984

This still includes some modules we don't need, but it's probably also missing some modules we do need.
Still, quiet a good start :)

from norns-image.

tehn avatar tehn commented on August 21, 2024

great! one thing that is imperative to getting anything out of the norns:

inside /boot/config.txt:
enable_uart=1

otherwise it'll appear bricked. i'm not sure if they made this a default in more recent builds (they may have)

from norns-image.

tehn avatar tehn commented on August 21, 2024

Also there was mention of using https://github.com/raspberrypi/linux/blob/5433720f3e8d6d06a59b30cce44210d814f34b0b/drivers/input/misc/rotary_encoder.c in the norns repo, is this still something we want?

i believe yes--- i need to test the approach. i'm not sure immediately how to do multiple encoders, but i haven't looked hard at this yet.

from norns-image.

simonvanderveldt avatar simonvanderveldt commented on August 21, 2024

@tehn I believe you mentioned something about the encoders on Slack the other day.
Is there anything that needs to be done for this? Or is it enough to enable CONFIG_INPUT_GPIO_ROTARY_ENCODER?

from norns-image.

tehn avatar tehn commented on August 21, 2024

i believe that should be sufficient at this point. eventually i'll have some dtoverlay files to be included once i test thoroughly.

from norns-image.

simonvanderveldt avatar simonvanderveldt commented on August 21, 2024

@tehn OK. Are the three enc overlay files in https://github.com/tehn/norns-image/tree/master/overlays necessary till that point?

from norns-image.

tehn avatar tehn commented on August 21, 2024

that is them. i'm certain there's a way to combine all three definitions into one file, but i haven't gotten that far into the DTS syntax, so for now this is fine.

not that if these are loaded, the GPIOs will be claimed and then the norns software (via init-norns.sh) won't be able to use them... so i have to get the norns reading the events instead/first

from norns-image.

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.