Modify make files to build on Ubuntu trusty#1
Open
vbendeb wants to merge 11 commits intopaulburton:masterfrom
Open
Modify make files to build on Ubuntu trusty#1vbendeb wants to merge 11 commits intopaulburton:masterfrom
vbendeb wants to merge 11 commits intopaulburton:masterfrom
Conversation
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>
Author
|
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 |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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