[Bug 1907056] Re: Please add meta/kernel.yaml

2022-05-26 Thread Maciej Borzecki
** Changed in: snapd
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-06-24 Thread Dimitri John Ledkov
I think this change has now been pulled into the regular UC18 builds
https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux-
snap/+git/bionic/commit/?h=pi-5.3=658d5bf2320612589f41f5a0aa05e0d99040abd8

However, it has been reported that the other snaps are not ready for
this in the 18* tracks, and the kernel snaps have now been reverted.

Please advise when one can start using 'assumes: [ kernel-assets ]' in
18* tracks of pi-kernel.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-05-10 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: snapd (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-05-10 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
  This should also add "assumes: [kernel-assets]" to the meta/snap.yaml so
  that the updated kernel/gadget are only used by a snap version that
  understand this, see https://github.com/snapcore/snapd/pull/
  
  $ cat meta/kernel.yaml
  assets:
    pidtbs:
  update: true
  content:
- - dtbs/broadcom/
- - dtbs/overlays/
+ - dtbs/
  
- This will allow the gadget to select DTBs from the kernel. The gadget
- needs to be updated to have all dtb files removed. And the gadget.yaml
- needs to change to something like
+ This will allow the gadget to select DTBs from the kernel. The arm64
+ gadget needs to be updated to have all dtb files removed. And the
+ gadget.yaml needs to change to something like
  
  $ head -20 meta/gadget.yaml
  device-tree: bcm2709-rpi-3-b-plus
  volumes:
    pi:
  schema: mbr
  bootloader: u-boot
  structure:
    - name: ubuntu-seed
  role: system-seed
  filesystem: vfat
  type: 0C
  size: 1200M
  content:
    - source: $kernel:pidtbs/dtbs/broadcom/
  target: /
    - source: $kernel:pidtbs/dtbs/overlays/
  target: /overlays
    - source: boot-assets/
  target: /
    - name: ubuntu-boot
  role: system-boot
  ...
  
+ 
+ AFAICT the armhf needs to be updated differently because the layout
+ of the dtbs folder is different in the armhf kernel:
+ 
+ $ head -20 meta/gadget.yaml
+ volumes:
+   pi:
+ schema: mbr
+ bootloader: u-boot
+ structure:
+   - name: ubuntu-seed
+ role: system-seed
+ filesystem: vfat
+ type: 0C
+ size: 1200M
+ content:
+   - source: $kernel:pidtbs/dtbs/
+ target: /
+   - source: boot-assets/
+ target: /
+   - name: ubuntu-boot
+ role: system-boot
+ 
+ 
+ 
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-04-06 Thread Juerg Haefliger
The armhf listing in the previous comment is from an 'old' pi-kernel
snap. With a new snap, there should be an overlays directory and not an
overlays.tgz tarball:

https://dashboard.snapcraft.io/snaps/pi-kernel/revisions/263/ (armhf)
https://dashboard.snapcraft.io/snaps/pi-kernel/revisions/264/ (arm64)

Note that this change is currently only visible in the test snap #263.
The modification hasn't been pushed to the regular snap build rule yet.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-04-06 Thread Michael Vogt
Fwiw, the dtbs/ dir:
$ ls pi-kernel-armhf-rev266/dtbs/
bcm2708-rpi-b.dtb bcm2710-rpi-cm3.dtb  bcm2835-rpi-zero.dtb
bcm2708-rpi-b-plus.dtbbcm2711-rpi-400.dtb  bcm2835-rpi-zero-w.dtb
bcm2708-rpi-b-rev1.dtbbcm2711-rpi-4-b.dtb  bcm2836-rpi-2-b.dtb
bcm2708-rpi-cm.dtbbcm2711-rpi-cm4.dtb  bcm2837-rpi-3-a-plus.dtb
bcm2708-rpi-zero.dtb  bcm2835-rpi-a.dtbbcm2837-rpi-3-b.dtb
bcm2708-rpi-zero-w.dtbbcm2835-rpi-a-plus.dtb   bcm2837-rpi-3-b-plus.dtb
bcm2709-rpi-2-b.dtb   bcm2835-rpi-b.dtbbcm2837-rpi-cm3-io3.dtb
bcm2710-rpi-2-b.dtb   bcm2835-rpi-b-plus.dtb   overlays.tgz
bcm2710-rpi-3-b.dtb   bcm2835-rpi-b-rev2.dtb
bcm2710-rpi-3-b-plus.dtb  bcm2835-rpi-cm1-io1.dtb

$ ls pi-kernel-arm64-rev264/dtbs/
broadcom/  overlays/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-04-06 Thread Michael Vogt
The kernel wants to use:
```
assets:
  pidtbs:
update: true
content:
  - dtbs/
```

instead of the one suggested above because the pi-kernel on arm64 and
armhf have different dtbs/ dir layout:

arm64: dtbs/broadcom/*.dtb, dtbs/overlays
armhf: dtbs/*.dtb, dtbs/overlays

So the armhf has all the dtb files under dtbs/ directly and the arm64 has it 
under broadcom/.
 The suggestion is then that the gadget maps it from here to the right places.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-03-04 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
- WE ALSO NEED TO UPDATE THE ASSUMES in the meta/snap.yaml, diff will
- follow shortly.
+ This should also add "assumes: [kernel-assets]" to the meta/snap.yaml so
+ that the updated kernel/gadget are only used by a snap version that
+ understand this, see https://github.com/snapcore/snapd/pull/
  
  $ cat meta/kernel.yaml
  assets:
    pidtbs:
  update: true
  content:
  - dtbs/broadcom/
  - dtbs/overlays/
  
  This will allow the gadget to select DTBs from the kernel. The gadget
  needs to be updated to have all dtb files removed. And the gadget.yaml
  needs to change to something like
  
  $ head -20 meta/gadget.yaml
  device-tree: bcm2709-rpi-3-b-plus
  volumes:
    pi:
  schema: mbr
  bootloader: u-boot
  structure:
    - name: ubuntu-seed
  role: system-seed
  filesystem: vfat
  type: 0C
  size: 1200M
  content:
    - source: $kernel:pidtbs/dtbs/broadcom/
  target: /
    - source: $kernel:pidtbs/dtbs/overlays/
  target: /overlays
    - source: boot-assets/
  target: /
    - name: ubuntu-boot
  role: system-boot
  ...
  
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-03-04 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
+ 
+ WE ALSO NEED TO UPDATE THE ASSUMES in the meta/snap.yaml, diff will
+ follow shortly.
  
  $ cat meta/kernel.yaml
  assets:
    pidtbs:
  update: true
  content:
  - dtbs/broadcom/
  - dtbs/overlays/
  
  This will allow the gadget to select DTBs from the kernel. The gadget
  needs to be updated to have all dtb files removed. And the gadget.yaml
  needs to change to something like
  
- $ head -20 meta/gadget.yaml 
+ $ head -20 meta/gadget.yaml
  device-tree: bcm2709-rpi-3-b-plus
  volumes:
-   pi:
- schema: mbr
- bootloader: u-boot
- structure:
-   - name: ubuntu-seed
- role: system-seed
- filesystem: vfat
- type: 0C
- size: 1200M
- content:
-   - source: $kernel:pidtbs/dtbs/broadcom/
- target: /
-   - source: $kernel:pidtbs/dtbs/overlays/
- target: /overlays
-   - source: boot-assets/
- target: /
-   - name: ubuntu-boot
- role: system-boot
+   pi:
+ schema: mbr
+ bootloader: u-boot
+ structure:
+   - name: ubuntu-seed
+ role: system-seed
+ filesystem: vfat
+ type: 0C
+ size: 1200M
+ content:
+   - source: $kernel:pidtbs/dtbs/broadcom/
+ target: /
+   - source: $kernel:pidtbs/dtbs/overlays/
+ target: /overlays
+   - source: boot-assets/
+ target: /
+   - name: ubuntu-boot
+ role: system-boot
  ...
  
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-02-05 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
  $ cat meta/kernel.yaml
  assets:
    pidtbs:
  update: true
  content:
  - dtbs/broadcom/
- - dtbs/overlays/
+ - dtbs/overlays/
  
- This will allow the gadget to select DTBs from the kernel via:
- $ diff -u meta/gadget.yaml.orig meta/gadget.yaml
- --- meta/gadget.yaml.orig 2020-12-07 10:10:16.775139010 +0100
- +++ meta/gadget.yaml  2020-12-07 10:11:33.482871026 +0100
- @@ -10,8 +10,10 @@
-  type: 0C
-  size: 1200M
-  content:
- -  - source: boot-assets/
- +  - source: $kernel:pidtbs/dtbs/broadcom/
-  target: /
- +  - source: $kernel:pidtbs/dtbs/overlays/
- +target: /overlays
-    - name: ubuntu-boot
-  role: system-boot
-  filesystem: vfat
+ This will allow the gadget to select DTBs from the kernel. The gadget
+ needs to be updated to have all dtb files removed. And the gadget.yaml
+ needs to change to something like
+ 
+ $ head -20 meta/gadget.yaml 
+ device-tree: bcm2709-rpi-3-b-plus
+ volumes:
+   pi:
+ schema: mbr
+ bootloader: u-boot
+ structure:
+   - name: ubuntu-seed
+ role: system-seed
+ filesystem: vfat
+ type: 0C
+ size: 1200M
+ content:
+   - source: $kernel:pidtbs/dtbs/broadcom/
+ target: /
+   - source: $kernel:pidtbs/dtbs/overlays/
+ target: /overlays
+   - source: boot-assets/
+ target: /
+   - name: ubuntu-boot
+ role: system-boot
+ ...
  
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2021-02-04 Thread Michael Vogt
** Also affects: snapd
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2020-12-09 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
  $ cat meta/kernel.yaml
  assets:
    pidtbs:
  update: true
  content:
- - dtbs/
+ - dtbs/broadcom/
+ - dtbs/overlays/
  
  This will allow the gadget to select DTBs from the kernel via:
  $ diff -u meta/gadget.yaml.orig meta/gadget.yaml
  --- meta/gadget.yaml.orig 2020-12-07 10:10:16.775139010 +0100
  +++ meta/gadget.yaml  2020-12-07 10:11:33.482871026 +0100
  @@ -10,8 +10,10 @@
   type: 0C
   size: 1200M
   content:
  -  - source: boot-assets/
- +  - source: $kernel:pidtbs/broadcom/
+ +  - source: $kernel:pidtbs/dtbs/broadcom/
   target: /
- +  - source: $kernel:pidtbs/overlays/
+ +  - source: $kernel:pidtbs/dtbs/overlays/
  +target: /overlays
     - name: ubuntu-boot
   role: system-boot
   filesystem: vfat
  
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2020-12-09 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
  $ cat meta/kernel.yaml
  assets:
-   pi-dtbs:
+   pidtbs:
  update: true
  content:
  - dtbs/
  
  This will allow the gadget to select DTBs from the kernel via:
  $ diff -u meta/gadget.yaml.orig meta/gadget.yaml
  --- meta/gadget.yaml.orig 2020-12-07 10:10:16.775139010 +0100
  +++ meta/gadget.yaml  2020-12-07 10:11:33.482871026 +0100
  @@ -10,8 +10,10 @@
   type: 0C
   size: 1200M
   content:
  -  - source: boot-assets/
- +  - source: $kernel:pi-dtbs/broadcom/
+ +  - source: $kernel:pidtbs/broadcom/
   target: /
- +  - source: $kernel:pi-dtbs/overlays/
+ +  - source: $kernel:pidtbs/overlays/
  +target: /overlays
     - name: ubuntu-boot
   role: system-boot
   filesystem: vfat
  
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2020-12-09 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
  $ cat meta/kernel.yaml
  assets:
    pi-dtbs:
  update: true
  content:
- - dtbs
+ - dtbs/
  
  This will allow the gadget to select DTBs from the kernel via:
  $ diff -u meta/gadget.yaml.orig meta/gadget.yaml
  --- meta/gadget.yaml.orig 2020-12-07 10:10:16.775139010 +0100
  +++ meta/gadget.yaml  2020-12-07 10:11:33.482871026 +0100
  @@ -10,8 +10,10 @@
   type: 0C
   size: 1200M
   content:
  -  - source: boot-assets/
- +  - source: $kernel:pi-dtbs/broadcom
+ +  - source: $kernel:pi-dtbs/broadcom/
   target: /
- +  - source: $kernel:pi-dtbs/overlays
+ +  - source: $kernel:pi-dtbs/overlays/
  +target: /overlays
     - name: ubuntu-boot
   role: system-boot
   filesystem: vfat
  
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1907056] Re: Please add meta/kernel.yaml

2020-12-07 Thread Michael Vogt
** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
  $ cat meta/kernel.yaml
  assets:
-   pi-dtbs:
- update: true
- content:
- - dtbs
+   pi-dtbs:
+ update: true
+ content:
+ - dtbs
  
  This will allow the gadget to select DTBs from the kernel via:
  $ diff -u meta/gadget.yaml.orig meta/gadget.yaml
  --- meta/gadget.yaml.orig 2020-12-07 10:10:16.775139010 +0100
  +++ meta/gadget.yaml  2020-12-07 10:11:33.482871026 +0100
  @@ -10,8 +10,10 @@
-  type: 0C
-  size: 1200M
-  content:
+  type: 0C
+  size: 1200M
+  content:
  -  - source: boot-assets/
  +  - source: $kernel:pi-dtbs/broadcom
-  target: /
+  target: /
  +  - source: $kernel:pi-dtbs/overlays
  +target: /overlays
-- name: ubuntu-boot
-  role: system-boot
-  filesystem: vfat
+    - name: ubuntu-boot
+  role: system-boot
+  filesystem: vfat
+ 
+ If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs