Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-03-25 Thread Nicolas Boulenguez
Hi.

You have quoted the following platforms, but I have found no matching
defconfig: an Olimex TERES-I DIY laptop, several Olimex arm64 boards,
pinetab.  Do you know if such defconfigs already exist?

Once crust is available, adapting u-boot should be simple because
similar changes have already been tested by Arnaud for Mobian.

--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
  arm-trusted-firmware (>= 2.4+dfsg) [arm64],
  bc,
  bison,
+ crust-firmware [arm64],
  debhelper-compat (= 13),
  device-tree-compiler,
  flex,
--- a/debian/targets.mk
+++ b/debian/targets.mk
@@ -187,7 +187,8 @@ ifeq (${DEB_HOST_ARCH},arm64)
 # Benoit Delcour  (1.2)
 # Arnaud Ferraris  (1.1, 1.2)
 u-boot-sunxi_platforms += pinephone
-  pinephone_assigns := BL31=/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin
+  pinephone_assigns := BL31=/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin \
+SCP=/usr/lib/crust-firmware/pinephone.bin
   pinephone_targets := arch/arm/dts/sun50i-a64-pinephone-1.1.dtb \
   arch/arm/dts/sun50i-a64-pinephone-1.2.dtb spl/sunxi-spl.bin \
   u-boot-nodtb.bin u-boot-sunxi-with-spl.fit.itb u-boot.bin uboot.elf



Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-02-18 Thread Jonas Smedegaard
Quoting Nicolas Boulenguez (2021-02-18 14:48:20)
> > > Feel free to add pristine-tar, but I am avoiding its complexity 
> > > now that other tools are converging towards reproducibility by 
> > > default.
> 
> > Please consider document your workflow in debian/README.Source - 
> > preferably only a short sentence which referenced a URL to some 
> > shared place e.g. at https://wiki.debian.org/ more elaborately 
> > covering the chosen workflow, to encourage reuse.
> 
> People that *do* expose preferences for non-standard tools like 
> pristine-tar should document their choice.  I try to avoid unneeded 
> steps for new contributors.

Thanks for considering.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-02-18 Thread Nicolas Boulenguez
> > Feel free to add pristine-tar, but I am avoiding its complexity now
> > that other tools are converging towards reproducibility by default.

> Please consider document your workflow in debian/README.Source -
> preferably only a short sentence which referenced a URL to some shared
> place e.g. at https://wiki.debian.org/ more elaborately covering the
> chosen workflow, to encourage reuse.

People that *do* expose preferences for non-standard tools like
pristine-tar should document their choice.  I try to avoid unneeded
steps for new contributors.



Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-02-18 Thread Jonas Smedegaard
Quoting Nicolas Boulenguez (2021-02-18 09:56:51)
> > It seems crust-firmware is missing upstream and pristine-tar
> > branches.
> 
> Fixed for 'upstream/master'.
> Feel free to add pristine-tar, but I am avoiding its complexity now 
> that other tools are converging towards reproducibility by default.

Please consider document your workflow in debian/README.Source - 
preferably only a short sentence which referenced a URL to some shared 
place e.g. at https://wiki.debian.org/ more elaborately covering the 
chosen workflow, to encourage reuse.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-02-18 Thread Nicolas Boulenguez
> It seems crust-firmware is missing upstream and pristine-tar
> branches.

Fixed for 'upstream/master'.
Feel free to add pristine-tar, but I am avoiding its complexity now
that other tools are converging towards reproducibility by default.



Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-02-17 Thread Jonas Smedegaard
Quoting Nicolas Boulenguez (2021-02-18 00:02:02)
> Hello.
> Do you think these packages are ready for an upload to experimental?
> Should the Maintainer become 'the Tinker team'?
> Do you agree with the Uploaders?
> https://salsa.debian.org/debian/binutils-or1k-elf
> https://salsa.debian.org/debian/gcc-or1k-elf
> https://salsa.debian.org/debian/crust-firmware

It seems crust-firmware is missing upstream and pristine-tar branches.

Otherwise looks good to me (did a quick copyright check for 
crut-firmware but couldn't spot any flaws in your copyright file).


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-02-17 Thread Nicolas Boulenguez
Hello.
Do you think these packages are ready for an upload to experimental?
Should the Maintainer become 'the Tinker team'?
Do you agree with the Uploaders?
https://salsa.debian.org/debian/binutils-or1k-elf
https://salsa.debian.org/debian/gcc-or1k-elf
https://salsa.debian.org/debian/crust-firmware



Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-01-08 Thread Jonas Smedegaard
Quoting Vagrant Cascadian (2021-01-08 02:38:23)
> On 2021-01-07, Jonas Smedegaard wrote:
> > Quoting Arnaud Ferraris (2021-01-07 00:17:49)
> >> Le 05/01/2021 à 12:35, Jonas Smedegaard a écrit :
> >> > * Package name: crust
> > [...]
> >> > Personally I own an Olimex TERES-I DIY laptop
> >> > and several Olimex arm64 boards,
> >> > but would prefer to maintain this package as a team-effort
> >> > with owners of other Allwinner boards involved as well.
> >> 
> >> As I own (and develop for) a PinePhone and PineTab, I'll gladly 
> >> co-maintain this package with you.
> >
> > Great!
> 
> Also very interested; thanks for intiating the ITP process!
> 
> I have a pinebook (14), two pinebook 1080p, a few pine64+, and it 
> would be nice to add support for them.

Great!


> > I propose that we use the Tinker team as platform for this - if fine 
> > with you then please subscribe to the mailinglist and join the irc 
> > channel as listed at https://wiki.debian.org/Teams/Tinker :-)
> 
> Would you be amenable to maintaining it in the Debian group, along 
> with u-boot and arm-trusted-firmware?


My idea is to have the Tinker team be maintainer of the package but host 
it in the Debian area of Salsa, to ease collaboration from any Debian 
members.  I am open to other arrangements, though.


> The Tinker team sounds interesting, though. :)

Weird that I haven't thought of promoting the Tinker team to you, 
Vagrant: I got the idea for that team while visiting KEK in Kerala, 
India in 2016¹, but you are possibly the first true tinkerer that I have 
collaborated with: Please do consider joining :-)


 - Jonas

¹ https://couchdesign.dk/india/

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-01-07 Thread Vagrant Cascadian
On 2021-01-07, Jonas Smedegaard wrote:
> Quoting Arnaud Ferraris (2021-01-07 00:17:49)
>> Le 05/01/2021 à 12:35, Jonas Smedegaard a écrit :
>> > * Package name: crust
> [...]
>> > Personally I own an Olimex TERES-I DIY laptop
>> > and several Olimex arm64 boards,
>> > but would prefer to maintain this package as a team-effort
>> > with owners of other Allwinner boards involved as well.
>> 
>> As I own (and develop for) a PinePhone and PineTab, I'll gladly 
>> co-maintain this package with you.
>
> Great!

Also very interested; thanks for intiating the ITP process!

I have a pinebook (14), two pinebook 1080p, a few pine64+, and it would
be nice to add support for them.


> I propose that we use the Tinker team as platform for this - if fine 
> with you then please subscribe to the mailinglist and join the irc 
> channel as listed at https://wiki.debian.org/Teams/Tinker :-)

Would you be amenable to maintaining it in the Debian group, along with
u-boot and arm-trusted-firmware? The Tinker team sounds interesting,
though. :)


live well,
  vagrant


signature.asc
Description: PGP signature


Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-01-06 Thread Jonas Smedegaard
Hi Arnaud,

Quoting Arnaud Ferraris (2021-01-07 00:17:49)
> Le 05/01/2021 à 12:35, Jonas Smedegaard a écrit :
> > * Package name: crust
[...]
> > Personally I own an Olimex TERES-I DIY laptop
> > and several Olimex arm64 boards,
> > but would prefer to maintain this package as a team-effort
> > with owners of other Allwinner boards involved as well.
> 
> As I own (and develop for) a PinePhone and PineTab, I'll gladly 
> co-maintain this package with you.

Great!

I propose that we use the Tinker team as platform for this - if fine 
with you then please subscribe to the mailinglist and join the irc 
channel as listed at https://wiki.debian.org/Teams/Tinker :-)


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-01-06 Thread Arnaud Ferraris

Hi Jonas,

Le 05/01/2021 à 12:35, Jonas Smedegaard a écrit :

Package: wnpp
Severity: wishlist
Owner: Jonas Smedegaard 
X-Debbugs-Cc: debian-de...@lists.debian.org

* Package name: crust
  Version : 0.3
  Upstream Author : Samuel Holland 
* URL : https://github.com/crust-firmware/crust
* License : BSD-1-clause and BSD-3-clause and Expat and GPL-2
  Programming Lang: C
  Description : SCP firmware for sunxi SoCs

 The crust is the lowest-level component of a delicious fruit pie.
 Similarly, Crust is the lowest-level firmware component
 that runs on $FRUIT (Banana, Orange, Lichee) Pi single-board computers
 and other Allwinner-based devices,
 such as the Pine64 Pinebook and PinePhone.
 .
 Crust improves battery life and thermal performance
 by implementing a deep sleep state.
 During deep sleep,
 the CPU cores, the DRAM controller, and most onboard peripherals
 are powered down, reducing power consumption by 80% or more
 compared to an idle device.
 On boards without a PMIC,
 Crust is also responsible
 for orderly power-off and power-on of the device.
 .
 For this to work,
 Crust runs outside the main CPU and DRAM,
 on a dedicated always-on microprocessor
 called a System Control Processor (SCP).
 Crust is designed to run on a specific SCP implementation,
 Allwinner's AR100.

This package requires a gcc cross-compiler for or1k (see bug#979323)
and may also require patches to linux and u-boot
(but possibly those are optional for an added power consumption).

Personally I own an Olimex TERES-I DIY laptop
and several Olimex arm64 boards,
but would prefer to maintain this package as a team-effort
with owners of other Allwinner boards involved as well.


As I own (and develop for) a PinePhone and PineTab, I'll gladly 
co-maintain this package with you.


Cheers,
Arnaud



Bug#979326: ITP: crust -- SCP firmware for sunxi SoCs

2021-01-05 Thread Jonas Smedegaard
Package: wnpp
Severity: wishlist
Owner: Jonas Smedegaard 
X-Debbugs-Cc: debian-de...@lists.debian.org

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

* Package name: crust
  Version : 0.3
  Upstream Author : Samuel Holland 
* URL : https://github.com/crust-firmware/crust
* License : BSD-1-clause and BSD-3-clause and Expat and GPL-2
  Programming Lang: C
  Description : SCP firmware for sunxi SoCs

 The crust is the lowest-level component of a delicious fruit pie.
 Similarly, Crust is the lowest-level firmware component
 that runs on $FRUIT (Banana, Orange, Lichee) Pi single-board computers
 and other Allwinner-based devices,
 such as the Pine64 Pinebook and PinePhone.
 .
 Crust improves battery life and thermal performance
 by implementing a deep sleep state.
 During deep sleep,
 the CPU cores, the DRAM controller, and most onboard peripherals
 are powered down, reducing power consumption by 80% or more
 compared to an idle device.
 On boards without a PMIC,
 Crust is also responsible
 for orderly power-off and power-on of the device.
 .
 For this to work,
 Crust runs outside the main CPU and DRAM,
 on a dedicated always-on microprocessor
 called a System Control Processor (SCP).
 Crust is designed to run on a specific SCP implementation,
 Allwinner's AR100.

This package requires a gcc cross-compiler for or1k (see bug#979323)
and may also require patches to linux and u-boot
(but possibly those are optional for an added power consumption).

Personally I own an Olimex TERES-I DIY laptop
and several Olimex arm64 boards,
but would prefer to maintain this package as a team-effort
with owners of other Allwinner boards involved as well.

-BEGIN PGP SIGNATURE-

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAl/0Tv4ACgkQLHwxRsGg
ASFQkBAApHgCFb7ULKBWG8pyLyqIEK060cLVzJcfWh9g/P74mULRBfiX/gd0HOHw
LYhcUYQ5y0P6t7A83zkSzLUDtWR8HHZOKq6dI6wA1XDUrhHYJUI/wlUy/K7oJuLI
qnOtQOD8D06OKQyd41naynmB1NV2IINg+8uOMiLeT+x9TzqeiGntQfiLtYvVLy/R
7bXxJalaed67ViyOKqFy9b6u4YBM4s0mD7xB0PYx6KXQE/ion9PPdN0ORVZHdlkr
DhRPyXP0rQTQhDwYJC0Y+1atwTTcFwcwZ2NlJ/sK8VVNw4bQNXdi/GXGvxdN2+MZ
apl+hy4H10f2HtTtguRrx0KziMoDyFjUhc7PsnbZ1xPQaQw03zDB/aOVuJZobDWS
7DkL23GzGXsDyyk+L5KvezWY54F+lUAzhBNwF/W+EvHn5Lof5sXGl9o2Ehx7BvGB
8FBmwScGtzx37VSYREhRApb4vQC738FWGl5btPUCgc9cwu9ZZD21oe1l9Qermue9
OZRre8QfSvjdwuy3Xvmmf70onP98y9ioFh2mX0uFmbcZrvWxN42Tasq/4ifZTU76
feB8op9kSMf1nfds6HTzBckzYZZb1ODA93WlEY5q1dGCjKkfNptiFxXTkGwSGxGo
FJeaaphTOp6R9X3ivY4hFHy2mPbCvQnrWeQaf/619TzR9x8i3DM=
=O+5B
-END PGP SIGNATURE-