Giter Site home page Giter Site logo

Comments (9)

avafinger avatar avafinger commented on June 8, 2024

Currently, there is no support for dtb overlays. I will try to add support on next build with U-boot and Kernel update RC6.

from bananapi-zero-ubuntu-base-minimal.

avafinger avatar avafinger commented on June 8, 2024

Here is the support for DT Overlays. Assuming you asked for and known how to use DTO.
There is support for DTO on boot time.

Please, make a backup and try this:

https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v1.7

from bananapi-zero-ubuntu-base-minimal.

avafinger avatar avafinger commented on June 8, 2024

Updated with a sample, I think this should work.

from bananapi-zero-ubuntu-base-minimal.

avafinger avatar avafinger commented on June 8, 2024

Install fix.
https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v1.8

from bananapi-zero-ubuntu-base-minimal.

lbernstone avatar lbernstone commented on June 8, 2024

Sorry it took me so long to get back to this.
So, in order to use an overlay, I am going to have to rebuild the whole Uboot image? This seems like a much more intensive process than just recreating the dtb. Is it possible to use a wildcard in the ext4load line so it looks something like:
ext4load mmc 0 ${fdtovaddr} overlays/*.dto
and then any files added into the overlays folder will be included?

from bananapi-zero-ubuntu-base-minimal.

avafinger avatar avafinger commented on June 8, 2024

You need to update u-boot and kernel as described here: https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v1.8 (or later)
and https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/releases/tag/v1.7

Not sure if * will load all, but you can give it a try.

No need to rebuild anything, it is already built..

from bananapi-zero-ubuntu-base-minimal.

avafinger avatar avafinger commented on June 8, 2024

or you can store the files in a variable like this:
FIX

overlay=file1 file2 file3
for ov in ${overlay}; do
    echo overlaying ${ov}...
    load ${devtype} ${devnum}:${bootpart} ${fdtovaddr} /boot/overlays/${ov}.dto && fdt apply ${fdtovaddr}
done

from bananapi-zero-ubuntu-base-minimal.

lbernstone avatar lbernstone commented on June 8, 2024

I would have to run mkimage every time to change the overlays. This is not really useful for my use case (changing a couple lines in the dt). The overlays work, so I'll go ahead and close the issue.

from bananapi-zero-ubuntu-base-minimal.

avafinger avatar avafinger commented on June 8, 2024

I would have to run mkimage every time to change the overlays.

No need to run mkimage at any time. Just change dts and recompile, that's all you need.

from bananapi-zero-ubuntu-base-minimal.

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.