Bug 795 - No console output from ls2 builds
Summary: No console output from ls2 builds
Status: RESOLVED FIXED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: Other Linux
: --- major
Assignee: Luke Kenneth Casson Leighton
URL:
Depends on:
Blocks: 690
  Show dependency treegraph
 
Reported: 2022-03-30 19:02 BST by tpearson
Modified: 2023-08-02 18:57 BST (History)
1 user (show)

See Also:
NLnet milestone: NLNet.2019.10.043.Wishbone
total budget (EUR) for completion of task and all subtasks: 2000
budget (EUR) for this task, excluding subtasks' budget: 2000
parent task for budget allocation: 249
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:
tpearson={amount=2000,submitted=2022-04-02,paid=2022-07-21}


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tpearson 2022-03-30 19:02:15 BST
LS2 builds are failing to produce console output on real hardware.
Comment 1 tpearson 2022-03-30 19:03:15 BST
After a marathon debugging session, digging into potential differences between our ppc64le server and Luke's x86 box, we've narrowed down the most likely candidate to a problem in the external UART core.
Comment 2 tpearson 2022-03-30 21:44:22 BST
Confirming this issue is solved by uncommenting the "`define DATA_BUS_WIDTH_8" line in uart16550/rtl/verilog/uart_defines.v.

A full build on the ppc64le server followed by a test on the Raptor Versa 85 board resulted in coldboot starting up and printing correct data to UART as expected.
Comment 3 Luke Kenneth Casson Leighton 2022-03-30 23:28:33 BST
(In reply to tpearson from comment #2)
> Confirming this issue is solved by uncommenting the "`define
> DATA_BUS_WIDTH_8" line in uart16550/rtl/verilog/uart_defines.v.
> 
> A full build on the ppc64le server followed by a test on the Raptor Versa 85
> board resulted in coldboot starting up and printing correct data to UART as
> expected.

unnnbelievable. about frickin time that was found.
microwatt "solved" this by having a local copy of the
HDL.

basically we need automated setup. which was always the plan,
but time pressure is getting in the way.

do you happen to know how to set defines *without* altering
the source code? icarus verilog which is an emulator has "-D XXXX"
just like in c.

i don't know if that's possible with yosys or if it is possible
to create a define in another file that is picked up by all .v
files? (are defines global in other words)