Skip to content

Bootloader UART setup #18

Closed
Closed

Description

@bootc

Could the bootloader set up the PL011 UART before it hands over to the kernel? Currently I have code in bootc/linux@a91fe13 that sets up the serial port during the kernel decompression stage so that it can be used during decompression and then during early printk.

It would really be ideal if that was done outside the kernel as is more customary, and would mean you could boot compressed or uncompressed kernels and get the same behaviour.

Activity

  1. popcornmix commented on May 9, 2012

    @popcornmix
    Collaborator

    You would like the code inside your arch_decomp_setup (5 peripheral writes) to be done by GPU before kernel starts?
    Sounds okay.

  2. bootc commented on May 9, 2012

    @bootc
    ContributorAuthor

    Yep, just so the UART is good to go. Perhaps even have a config.txt option to change the baud rate if someone wants a different speed.

  3. popcornmix commented on May 11, 2012

    @popcornmix
    Collaborator

    This link is no longer valid:
    bootc/linux@a91fe13

    I'd quite like to see the code in that commit.

  4. bootc commented on May 12, 2012

    @bootc
    ContributorAuthor

    Ahh sorry I had a bit of a reorganisation on github so it's moved to:
    bootc@a91fe13

  5. bootc commented on May 12, 2012

    @bootc
    ContributorAuthor

    I should add, I will happily provide you with the generated ARM assembly if that's any help.

  6. popcornmix commented on May 15, 2012

    @popcornmix
    Collaborator

    Can you try:
    http://dl.dropbox.com/u/3669512/start.elf

    which should set up UART to 115200 with a 3MHz clock as requested elsewhere. You can modify these:
    CONFIG(init_uart_baud)
    CONFIG(init_uart_clock)

  7. nomis commented on May 15, 2012

    @nomis
    Contributor

    This is the same start.elf from #16 and writes to the UART without prior initialisation by the kernel worked too.

  8. popcornmix commented on May 16, 2012

    @popcornmix
    Collaborator

    Firmware now pushed to github. Please close issue if happy.

  9. bootc commented on May 18, 2012

    @bootc
    ContributorAuthor

    I haven't actually managed to test this myself yet, but Simon has and assures me it's fine. So I'll close it for now and reopen it if I run into any trouble.

    Thanks!
    Chris

  10. Stonie commented on Sep 6, 2012

    @Stonie

    This is not working for me, please see: #105

  11. 225 remaining items

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