Alpine Linux start up

Applications, development tools, FPGA, C, WEB
Post Reply
kasaudio
Posts: 50
Joined: Sun Mar 11, 2018 6:03 pm

Alpine Linux start up

Post by kasaudio » Tue Aug 04, 2020 1:08 pm

Hello all, although this guestion is most likely addresed to Pavel Demin :)

When RP with alpine linux distribution by Pavel Demin is started, the LED0 is blinking till the system is loaded and default application is started. That takes approx. 20 seconds.

Is it possible to change the blinking LED0 to some of the DIO pins? I guess that would require to change the "default" fpga image that is loaded at the very start.

Any comments/suggestions?

Again, Pavel thank you for your contribution.

pavel
Posts: 789
Joined: Sat May 23, 2015 5:22 pm

Re: Alpine Linux start up

Post by pavel » Tue Aug 04, 2020 1:38 pm

Yes, redirecting the blinking signal from LED0 to a GPIO pin requires a different FPGA image.

The connection to LED0 is defined on line 25 in led_blinker/block_design.tcl:
https://github.com/pavel-demin/red-pita ... gn.tcl#L25

Here is how to redirect the blinking signal to DIO0_P:
  • configure GPIO pins as output:

    Code: Select all

    # Delete input/output port
    delete_bd_objs [get_bd_ports exp_p_tri_io]
    
    # Create output port
    create_bd_port -dir O -from 7 -to 0 exp_p_tri_io
  • connect the blinking signal to GPIO pins:

    Code: Select all

    # Create port_slicer
    cell pavel-demin:user:port_slicer slice_0 {
      DIN_WIDTH 32 DIN_FROM 26 DIN_TO 26
    } {
      din cntr_0/Q
      dout exp_p_tri_io
    }

kasaudio
Posts: 50
Joined: Sun Mar 11, 2018 6:03 pm

Re: Alpine Linux start up

Post by kasaudio » Wed Aug 05, 2020 8:43 am

Thanks!

kasaudio
Posts: 50
Joined: Sun Mar 11, 2018 6:03 pm

Re: Alpine Linux start up

Post by kasaudio » Thu Aug 06, 2020 8:20 pm

Hello. I have another question. Where is this startup fpga image located? Thx.

pavel
Posts: 789
Joined: Sat May 23, 2015 5:22 pm

Re: Alpine Linux start up

Post by pavel » Thu Aug 06, 2020 8:58 pm

It was in boot.bin in previous versions of my SD card images. In the latest version (20200628), there is no startup FPGA image. So, to rebuild boot.bin with a startup FPGA image, you'll need Makefile from previous versions of the repository.

kasaudio
Posts: 50
Joined: Sun Mar 11, 2018 6:03 pm

Re: Alpine Linux start up

Post by kasaudio » Mon Sep 07, 2020 9:00 pm

Is there anything I can do to speed up boot time? I takes about half of a minute for my program to run as I power up RP?

BR, kas

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 21 guests