Skip to content

Modify make files to build on Ubuntu trusty#1

Open
vbendeb wants to merge 11 commits intopaulburton:masterfrom
vbendeb:master
Open

Modify make files to build on Ubuntu trusty#1
vbendeb wants to merge 11 commits intopaulburton:masterfrom
vbendeb:master

Conversation

@vbendeb
Copy link

@vbendeb vbendeb commented Apr 11, 2015

The 2014.05-27 Mentor Graphics MIPS toolchain by default does not look
back at the libraries once they have been processed, this causes
linker to throw unresolved name errors even when the names are present
in the earlier processed libraries.

Another issue is that libusbdev-1.0 library required by the utilities
is not included unless explicitly mentioned in the command line.

With these suggested changes running 'make' in the top level directory
on Ubuntu 14.04 does not fail any more.

Signed-off-by: Vadim Bendebury vbendeb@chromium.org

The 2014.05-27 Mentor Graphics MIPS toolchain by default does not look
back at the libraries once they have been processed, this causes
linker to throw unresolved name errors even when the names are present
in the earlier processed libraries.

Another issue is that libusbdev-1.0 library required by the utilities
is not included unless explicitly mentioned in the command line.

With these suggested changes running 'make' in the top level directory
on Ubuntu 14.04 does not fail any more.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
@vbendeb
Copy link
Author

vbendeb commented Apr 11, 2015

Paul,

sorry, I generally don't use github, do please forgive me if this request is missing some required attributes.

First of all, thank you for providing the tools to manage the ci20 board.

I tried building them on ubuntu 14.04 (trusty) and hit some problems. which are alleviated by this patch. Still not sure if I am doing something wrong which causes my build problems.

-vb

Vadim Bendebury added 10 commits April 17, 2015 08:49
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Instead of adding \r to every \n, modify putc() to do this
automatically.

Verified that debug output is still properly delineated.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
The ci20 UART TX FIFO is 64 bytes in size. In case the code crashes
and restarts for whatever reason, the actual debug printouts can lag
way behind, as the CPU is running much faster than the characters get
pushed out of the serial transmitter.

One way to solve this problem is to write characters to the TX FIFO
only when it is empty. This way the maximum output text loss is one
character.

Tested when debugging the remote reset command, observed all
expected characters printed before device reset.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Write appropriate values into the watchdog registers to have the board
reset itself. This is handy to be able to load new firmware.

Tested with a USB extension, triggering board reset when host sends
the appropriate command.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Add another control option to trigger board reset, when host requests
it.

Tested with the host side USB addition generating the new command.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Use the new control option to signal the target that watchdog reset is
required.

Verified that the target indeed gets reset when this command is sent.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Use information from the programmer's manual to figure out settings
for different uart ports. Note that uaer3 is not supported by this
code as it requires some additional configuration (disabling JTAG,
enabling internal registers, etc.).

Tested by changing the port number in fw/debug.h between 4 and 0,
observed both cases working fine.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant