Skip to content

JH7110_VisionFive2_devel: jh7110.dtsi has wrong U-Boot fwenv data pointer #81

Open

Description

@strlcat

At https://doc-en.rvspace.org/VisionFive2/Boot_UG/JH7110_SDK/boot_address_allocation.html
I find that in 16M QSPI, I can reach U-Boot fw env block by reading from

0xF0000	0x10000	U-Boot environment variables

Now,

shows that offset is invalid - it was mistyped and contains extra 0. It shall be defined as:

	data@f0000 {
		reg = <0xf0000 0x10000>;
	};

With this, fw_printenv from Linux succeeds, I can see/edit U-Boot config.

My proposal would also be to define whole QSPI flash:

    partitions {
            compatible = "fixed-partitions";
            #address-cells = <0x01>;    
            #size-cells = <0x01>;       

            spl@0 {
                    reg = <0x00 0x20000>;       
            };

            env@f0000 {
                    reg = <0xf0000 0x10000>;    
            };

            uboot@100000 {
                    reg = <0x100000 0x400000>;  
            };

            bootdata@500000 {           
                    reg = <0x500000 0xb00000>;  
            };

            flashall@0 {
                    reg = <0x00 0x1000000>;     
            };
    };

Especially with flashall, I can read/write whole QSPI if desired.

Please review this. Thank you.

Activity

  1. MichaIng commented on Mar 15, 2023

    @MichaIng

    Just linking the related discussion here: https://forum.rvspace.org/t/emmc-boot-though-spi-flash/1320

  2. MichaIng commented on Mar 22, 2023

    @MichaIng

    Works perfectly. @electrorys would you mind to open a pull request for this change? At the moment there seems to be no activity regarding reviewing and merging pull requests, probably they are concentrating on mainline integration. However, it cannot hurt.

    I'd keep it the minimal correction for now. While it makes generally sense IMO to add all addresses, I'd leave the environment at mtd2 (even that it does not match its logical location after SPL but before U-Boot image), so current guides/instructions floating around and possible existing configs don't get broken.

  3. added a commit that references this issue on Mar 22, 2023
  4. strlcat commented on Mar 25, 2023

    @strlcat
    Author

    Hi,

    Meh it really took me two days of RTFM to learn how to make my first PR ever. You know, I don't have good git-fu :-)
    Please review #91

  5. MichaIng commented on Mar 25, 2023

    @MichaIng

    😄, hopefully you and/or the open source community will benefit from this learning curve. As said

    I'd keep it the minimal correction for now.

    i.e. the typo correction only, to maximise the chance that it gets merged soon. Then adding the additional areas in a second PR, as this is a matter of discussion, especially when device names change and hence currently published instructions about how to update the bootloader break.

  6. strlcat commented on Mar 26, 2023

    @strlcat
    Author

    Thanks, I hope aswell 💯
    Now you can do whatever you want with it, I don't mind, hopefully this PR will be helpful!

  7. MichaIng commented on Mar 26, 2023

    @MichaIng

    Now you can do whatever you want with it

    Just to avoid misunderstanding, I'm not related in any way with StarFive. I just saw your issue here, the related discussion on the rvspace forum, tested data@f00000 => data@f0000 and can verify it is working and without doubt a mandatory bug fix.

    So I am not doing anything with this PR, but StarFive are the ones who have to decide whether/what to do with it.

    I'm not sure how much efforts StarFive put into reviewing and in case adjusting PRs, so my suggestion to keep it minimal was to eliminate any points which may require discussion and any needs to edit the PR, hence minimising required efforts to merge it and maximising the chance that it will be merged 😉.

  8. strlcat commented on Mar 26, 2023

    @strlcat
    Author
  9. added a commit that references this issue on Apr 13, 2023
  10. 28 remaining items

  11. added a commit that references this issue on Jan 28, 2024
  12. added a commit that references this issue on Feb 23, 2024
  13. added a commit that references this issue on Mar 1, 2024
  14. added a commit that references this issue on Mar 9, 2024
  15. added a commit that references this issue on Mar 27, 2024
  16. added a commit that references this issue on Apr 29, 2024
  17. added a commit that references this issue on May 6, 2024
  18. added a commit that references this issue on May 17, 2024
  19. added a commit that references this issue on May 29, 2024
  20. added a commit that references this issue on Jul 5, 2024
  21. added a commit that references this issue on Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions