• Re: Help with testing u-boot!

    From gene heskett@21:1/5 to Diederik de Haas on Thu Dec 29 08:40:01 2022
    On 12/28/22 19:17, Diederik de Haas wrote:
    On Thursday, 29 December 2022 00:21:05 CET Vagrant Cascadian wrote:
    debian stable (2021.01*), testing (2022.04*), unstable (2022.10*)
    and experimental (2023.01-rc*)

    # arm64
    ...
    rock64-rk3328

    I don't recall ever having issues with u-boot on my Rock64's, so for me 2022.04 - 2022.10 surely work. I'll try the experimental version soon.

    I generate my own images for Rock64 and that uses 'dd ... seek=' of idbloader.img and u-boot.itb from the u-boot-rockchip package.
    I have been doing that since 2021-03, so it's very likely that I haven't seen an issue since then.

    HTH,
    Diederik

    Humm, I thought I'd see if dfu-util-0.11 worked so I just pulled the
    arm64 daily netinstall iso and put it on a u-sd card. But a bpi m5 makes
    no attempt to boot it, green led remains dim forever. I can mount it in
    my reader, a iso-9660 and its not a u-boot, its grub. So which of the
    arm64 iso's is u-booter?

    Thanks all.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vagrant Cascadian@21:1/5 to gene heskett on Thu Dec 29 11:10:02 2022
    On 2022-12-29, gene heskett wrote:
    On 12/28/22 19:17, Diederik de Haas wrote:
    On Thursday, 29 December 2022 00:21:05 CET Vagrant Cascadian wrote:
    debian stable (2021.01*), testing (2022.04*), unstable (2022.10*)
    and experimental (2023.01-rc*)
    ...
    But a bpi m5 makes no attempt to boot it green led remains dim
    forever.

    Presuming you mean bananapi-m5, it is not enabled yet in the Debian
    packages of u-boot...

    I can mount it in my reader, a iso-9660 and its not a u-boot, its
    grub. So which of the arm64 iso's is u-booter?

    None of the debian-installer iso images contain u-boot. They only work
    with systems with EFI firmware installed (which, somewhat confusingly,
    u-boot could provide in some cases).

    U-boot is board-specific, so a single image will almost never support
    booting more than a very small number of systems.

    Supported debian-installer platforms that have at some point in history
    been tested to work are:

    https://d-i.debian.org/daily-images/arm64/daily/u-boot/

    There are SD card images you can build, see the
    README.concatenatable_images at:

    https://d-i.debian.org/daily-images/arm64/daily/netboot/SD-card-images/

    You can typically using the firmware.none.img and manually add
    u-boot. Which offsets to write to are board-specific, though there are
    often common patterns for various board families (e.g. sunxi SoCs mostly
    have the same offsets, rockchip SoC mostly use same offsets)...


    The bananapi-m5 appears to be amlogic based, and there are a few other
    amlogic based boards enabled in Debian's u-boot-amlogic package, but unfortunately they require quite a few extra hoops to jump through that
    make it difficult for Debian to ship images that you can just write to
    boot media.

    There are hints at fixing part of the problem at u-boot.git/doc/board/amlogic/libretech-cc.rst:

    Note that Amlogic provides aml_encrypt_gxl as a 32-bit x86 binary with no
    source code. Should you prefer to avoid that, there are open source reverse
    engineered versions available:

    1. gxlimg <https://github.com/repk/gxlimg>, which comes with a handy
    Makefile that automates the whole process.
    2. meson-tools <https://github.com/afaerber/meson-tools>

    However, these community-developed alternatives are not endorsed by or
    supported by Amlogic.


    live well,
    vagrant

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCY61mZgAKCRDcUY/If5cW qmwPAP9mEW9JpMWFgJr0t93M/yvvWN69o0opvB6HzUM+OcfgTAEA6rYaV2aS156t b5vXISodj/eQzYnIpwDKYyqDlL6YBgk=ZG1W
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gene heskett@21:1/5 to Vagrant Cascadian on Fri Dec 30 06:30:01 2022
    On 12/29/22 05:06, Vagrant Cascadian wrote:
    On 2022-12-29, gene heskett wrote:
    On 12/28/22 19:17, Diederik de Haas wrote:
    On Thursday, 29 December 2022 00:21:05 CET Vagrant Cascadian wrote:
    debian stable (2021.01*), testing (2022.04*), unstable (2022.10*)
    and experimental (2023.01-rc*)
    ...
    But a bpi m5 makes no attempt to boot it green led remains dim
    forever.

    Presuming you mean bananapi-m5, it is not enabled yet in the Debian
    packages of u-boot...

    I can mount it in my reader, a iso-9660 and its not a u-boot, its
    grub. So which of the arm64 iso's is u-booter?

    None of the debian-installer iso images contain u-boot. They only work
    with systems with EFI firmware installed (which, somewhat confusingly,
    u-boot could provide in some cases).

    U-boot is board-specific, so a single image will almost never support
    booting more than a very small number of systems.

    Supported debian-installer platforms that have at some point in history
    been tested to work are:

    https://d-i.debian.org/daily-images/arm64/daily/u-boot/

    There are SD card images you can build, see the
    README.concatenatable_images at:

    https://d-i.debian.org/daily-images/arm64/daily/netboot/SD-card-images/

    You can typically using the firmware.none.img and manually add
    u-boot. Which offsets to write to are board-specific, though there are
    often common patterns for various board families (e.g. sunxi SoCs mostly
    have the same offsets, rockchip SoC mostly use same offsets)...


    The bananapi-m5 appears to be amlogic based, and there are a few other amlogic based boards enabled in Debian's u-boot-amlogic package, but unfortunately they require quite a few extra hoops to jump through that
    make it difficult for Debian to ship images that you can just write to
    boot media.

    There are hints at fixing part of the problem at u-boot.git/doc/board/amlogic/libretech-cc.rst:

    Note that Amlogic provides aml_encrypt_gxl as a 32-bit x86 binary with no
    source code. Should you prefer to avoid that, there are open source reverse
    engineered versions available:

    1. gxlimg <https://github.com/repk/gxlimg>, which comes with a handy
    Makefile that automates the whole process.
    2. meson-tools <https://github.com/afaerber/meson-tools>

    However, these community-developed alternatives are not endorsed by or
    supported by Amlogic.


    live well,
    vagrant
    You too. I did find out the dfu problem is the robin nano boards, I
    cloned the gitub version 0.11, built and installed it on the bpi5 only
    to get the exact same failure message, finding in an old old klipper
    config that dfu didn't work on robin nano boards but they also have a
    recipe to upload to a nano. But that build is for the wrong mcu.

    but the klipper board files are even older than Marlins so I'm still
    screwed.

    Thanks Vagrant.

    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)