Skip to content

Commit 7e0b178

Browse files
committed
I've given up on the merge commit messages. I merged master into a branch, OK?
2 parents 7e579c7 + 6abd7c2 commit 7e0b178

3 files changed

Lines changed: 24 additions & 10 deletions

File tree

docs/kernel-hackers-notebook/ev3-pru.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ title: EV3 PRU
33
subtitle: Programmable Runtime Unit
44
---
55

6-
The [AM1808 SoC](../ev3-processor) has 2 [Independent Programmable Realtime
7-
Unit](http://processors.wiki.ti.com/index.php/Programmable_Realtime_Unit_Subsystem) (PRU) Cores.
6+
The [AM1808 SoC](../ev3-processor) has 2 [Independent Programmable Realtime Unit]
7+
(PRU) Cores.
8+
9+
[Independent Programmable Realtime Unit]: http://processors.wiki.ti.com/index.php/Programmable_Realtime_Unit_Subsystem
810

911
## Usage
1012

@@ -18,16 +20,28 @@ __PRU1__: Not used.
1820

1921
## Firmware
2022

21-
The PRU requires firmware to implement the UART interfaces. We are using the firmware from LEGO (distributed in the [ev3dev-uart](package-ev3dev-uart) package).
23+
The PRU requires firmware to implement the UART interfaces. We are using the
24+
firmware from LEGO (distributed in the [firmware-ev3] package).
2225

2326
/lib/firmware/PRU_SUART.bin
2427

28+
[firmware-ev3]: https://github.com/ev3dev/firmware-ev3
29+
2530
## Device Driver
2631

2732
### Origin
2833

29-
The device driver originally comes from TI and was ported from LMS2012. LMS2012 had 2 copies of this driver, one in the [linux kernel source](https://github.com/mindboards/ev3sources/tree/master/extra/linux-03.20.00.13/pru-firmware-05-31-2011-1423-v3.0) and one in the [LMS2012 source](https://github.com/mindboards/ev3sources/tree/master/lms2012/d_uart/Linuxmod_AM1808/pru-firmware-05-31-2011-1423-v3.0). We are using the one from the kernel. The one in the LSM2012 section has been modified by LEGO to work with their d_uart.c driver.
34+
The device driver originally comes from TI and was ported from LMS2012. LMS2012
35+
had 2 copies of this driver, one in the [linux kernel source] and one in the
36+
[LMS2012 source]. We are using the one from the kernel. The one in the LSM2012
37+
section has been modified by LEGO to work with their d_uart.c driver.
38+
39+
[linux kernel source]: https://github.com/mindboards/ev3sources/tree/master/extra/linux-03.20.00.13/pru-firmware-05-31-2011-1423-v3.0
40+
[LMS2012 source]: https://github.com/mindboards/ev3sources/tree/master/lms2012/d_uart/Linuxmod_AM1808/pru-firmware-05-31-2011-1423-v3.0
3041

3142
### ev3dev Implementation
3243

33-
Only slight modifications were made to this driver to get it to work with the 3.16 kernel. Code is [here](https://github.com/ev3dev/ev3dev-kernel/tree/uart-sensors/drivers/tty/serial/omapl_pru).
44+
Only slight modifications were made to this driver to get it to work with the
45+
3.16 kernel. Code is [here][source code].
46+
47+
[source code]: https://github.com/ev3dev/ev3-kernel/tree/ev3dev-jessie/drivers/tty/serial/omapl_pru

docs/tutorials/using-brickstrap-to-cross-compile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ filesystem of your host computer on the EV3.
145145
You have a couple of options to do this:
146146

147147
* [Use nfs](https://github.com/mindboards/ev3dev/wiki/Set-Up-An-nfs-FileShare)
148-
* [Use sshfs]()
148+
* [Use sshfs] TOTO: find link or write tutorial.
149149

150150
Both of these options essentially do the same thing, just using a different
151151
network protocol. They make files that physically exist on your host computer

publish.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
# --test '<command>' will run <command> in a shell and return the result. The
1818
# working directory will be a temporary directory containing the fixed up files.
1919
#
20-
# Use BASENAME environment variable to override basename. Use "@TMP@" as a
21-
# placeholder for the temporary directory that is created.
20+
# Use BASENAME environment variable to override basename. Use "@FULL_PATH@" as a
21+
# placeholder for the full path to the temporary directory that is created.
2222

2323
require 'tmpdir'
2424

@@ -32,7 +32,7 @@
3232
Dir.chdir tmp
3333
system "git init"
3434

35-
if ARGV[0] != "--test"
35+
unless ARGV.include? "--test"
3636
git_url = ARGV[0]
3737
if not git_url.include? "/"
3838
git_url = "git@github.com:#{ARGV[0]}/ev3dev.github.io.git"
@@ -53,7 +53,7 @@
5353

5454
# prepend ev3dev.github.io to all root-relative urls
5555
basename = ENV['BASENAME'] || "/ev3dev.github.io"
56-
basename = basename.gsub(/@TMP@/, tmp)
56+
basename = basename.gsub(/@FULL_PATH@/, tmp)
5757
system "git add ."
5858
file_names = `git ls-files | grep '.html$'`
5959
file_names.each_line do |file_name|

0 commit comments

Comments
 (0)