Skip to content

aarch64 bcm2711_defconfig fails to get to early console #3032

Closed

Description

@hvenev

aarch64 bcm2711_defconfig with CONFIG_BCM_VIDEOCORE disabled (see #3031) fails to get to early console with the kernel command line earlycon=pl011,0xfe201000 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=f2fs rootwait. The kernel7l.img provided in https://github.com/raspberrypi/firmware with the same kernel command line and firmware boots just fine (and indeed starts printing to the console earlier than when earlycon is not set).

Activity

  1. hvenev commented on Jun 28, 2019

    @hvenev
    ContributorAuthor

    This happens both on current rpi-4.19.y (e8a66b4) with firmware from raspberrypi/firmware@bcf40b5 and raspberrypi-kernel_1.20190620-1 (883a1a5) with firmware from 1.20190620+1 (raspberrypi/firmware@88ca908).

  2. pelwell commented on Jun 28, 2019

    @pelwell
    Contributor

    2711 v8 support is a work in progress. In particular, the v8 ARM stubs need GIC support.

  3. hvenev commented on Jun 28, 2019

    @hvenev
    ContributorAuthor

    Isn't early console initialized before the GIC?

  4. pelwell commented on Jun 28, 2019

    @pelwell
    Contributor

    Perhaps, but the L2 cache latencies need to be set before either of them.

  5. changed the title [-]aarch64 bcm2711_defconfig with VideoCore disabled fails to get to early console[/-] [+]aarch64 bcm2711_defconfig fails to get to early console[/+] on Jun 28, 2019
  6. hvenev commented on Jun 29, 2019

    @hvenev
    ContributorAuthor

    OK... How do I reproduce the results from cdb78ce? Is it enough to set total_mem=1024? Also, where are the L2 cache latencies set for 32-bit arm?

  7. agherzan commented on Jul 1, 2019

    @agherzan
    Contributor

    @pelwell I see that raspberrypi/tools@7f4a937#diff-d9d684ceaf48229906f8a534b4cac276 includes gic support for v8 arm stubs. Isn't this included?

  8. pelwell commented on Jul 1, 2019

    @pelwell
    Contributor

    It's not built into the firmware yet, but if you build it yourself and add armstub=... to config.txt it should work.

  9. agherzan commented on Jul 1, 2019

    @agherzan
    Contributor

    That was what I suspected. Thanks. I"ll try that. Are there any other known issues even with this stub added?

  10. pelwell commented on Jul 1, 2019

    @pelwell
    Contributor

    Not that I'm aware of, but as you can tell this isn't one of the use cases we tested pre-launch. The two related config.txt settings are arm_64bit and enable_gic: the former should be set automatically if kernel8.img is loaded, and the latter is set if the dtb includes an enabled GIC node.

  11. diegosueiro commented on Jul 2, 2019

    @diegosueiro

    @agherzan and @pelwell ,

    I can confirm that the 64-bit kernel boots having the following in the config.txt:

    kernel=kernel8.img                                                              
    arm_64bit=1
    device_tree=bcm2711-rpi-4-b.dtb
    enable_gic=1                                       
    armstub=armstub8-gic.bin
    

    I used Yocto and meta-raspberrypi (master branches) with some additions to have a raspberrypi4-64 machine and building the kernel and using the firmwares in the head of its branches (rpi-4.19.y and master).

    The tools/armstubs I had to compile separately to produce the armstub8-gic.bin.

  12. agherzan commented on Jul 2, 2019

    @agherzan
    Contributor

    Hi @diegosueiro. You'll have this in meta-raspberrypi master today. Also, I don't think you need the device tree set. Also I'd expect kernel8 to be picked up automatically too.

  13. diegosueiro commented on Jul 2, 2019

    @diegosueiro

    @agherzan,

    I was just extra cautious with the settings. 😉

  14. agherzan commented on Jul 2, 2019

    @agherzan
    Contributor

    @diegosueiro have you limit the total memory as well?

  15. diegosueiro commented on Jul 2, 2019

    @diegosueiro

    @agherzan, as far as I remember I haven't touch any memory configuration.

  16. 62 remaining items

  17. added a commit that references this issue on Aug 12, 2019
  18. added a commit that references this issue on Oct 6, 2019
  19. hvenev commented on Apr 22, 2020

    @hvenev
    ContributorAuthor

    This should have been closed ages ago.

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