Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10370
-gerrit
commit 0c834391685e8f54cd8cd3d22dd4a8b93dc26ba7
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Fri May 29 20:49:09 2015 +0200
autoport: Allow binary prerequisites to be placed in the autoport directory.
This allow an easy creation of standalone "autoport pack".
Change-Id: Ibe9e38aa3b4bbd7260104e1c2a11630790ff4d2f
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
util/autoport/log_maker.go | 22 ++++++++++++++++++++--
util/autoport/readme.md | 7 ++++++-
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/util/autoport/log_maker.go b/util/autoport/log_maker.go
index b991ea7..e2440b4 100644
--- a/util/autoport/log_maker.go
+++ b/util/autoport/log_maker.go
@@ -9,7 +9,7 @@ import (
"strings"
)
-func RunAndSave(output string, name string, arg ...string) {
+func TryRunAndSave(output string, name string, arg []string) error {
cmd := exec.Command(name, arg...)
f, err := os.Create(output)
@@ -22,9 +22,27 @@ func RunAndSave(output string, name string, arg ...string) {
err = cmd.Start()
if err != nil {
- log.Fatal(err)
+ return err
}
cmd.Wait()
+ return nil
+}
+
+func RunAndSave(output string, name string, arg ...string) {
+ err := TryRunAndSave(output, name, arg)
+ if err == nil {
+ return
+ }
+ idx := strings.LastIndex(name, "/")
+ relname := name
+ if idx >= 0 {
+ relname = name[idx+1:]
+ }
+ relname = "./" + relname
+ err = TryRunAndSave(output, relname, arg)
+ if err != nil {
+ log.Fatal(err)
+ }
}
func MakeLogs(outDir string) {
diff --git a/util/autoport/readme.md b/util/autoport/readme.md
index 2f525a9..8c139a3 100644
--- a/util/autoport/readme.md
+++ b/util/autoport/readme.md
@@ -30,7 +30,12 @@ This will allow autoport to detect as much as possible
make
cd ../autoport
go build
- ./autoport --input_log=logs --make_logs --coreboot_dir=../..
+ sudo ./autoport --input_log=logs --make_logs --coreboot_dir=../..
+
+ Note: in case you have problems getting gcc and golang to target machine
+ you can just compile on another machine and transfer binaries
+ `autoport`, `inteltool` and `ectool`. You'll still need other prerequisites
+ but you may place them in the same directory as autoport.
* Look for output unknown PCI devices. E.g.
Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10375
-gerrit
commit b8b903bbe76a172d3aef57c0b8b783a28fa0bcdd
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Fri May 29 22:12:33 2015 +0200
autoport: Add a note that slot labeling is unreliable.
Change-Id: I26c78d05524e5affcd44b528895d1e19905e924b
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
util/autoport/readme.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/util/autoport/readme.md b/util/autoport/readme.md
index 8c139a3..9a16fd2 100644
--- a/util/autoport/readme.md
+++ b/util/autoport/readme.md
@@ -126,6 +126,9 @@ the first entry in SPD map has to be `0x50`. Once you have SPD map your
You can and should omit lines which correspond to
slots not present on your machine.
+Note: slot labelling may be missing or unreliable. Use `inteltool` to see
+which slot have modules in them.
+
This way works well if your RAM is socketed. For soldered RAM if you see
its SPD, you're in luck and can proceed the same way although you may have to
guess some entries due to RAM not being removable.
Vladimir Serbinenko (phcoder(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10370
-gerrit
commit 9f754ac3505b7e80c5b4e4fb0f5800519a790f58
Author: Vladimir Serbinenko <phcoder(a)gmail.com>
Date: Fri May 29 20:49:09 2015 +0200
autoport: Allow binary prerequisites to be placed in the autoport directory.
This allow an easy creation of standalone "autoport pack".
Change-Id: Ibe9e38aa3b4bbd7260104e1c2a11630790ff4d2f
Signed-off-by: Vladimir Serbinenko <phcoder(a)gmail.com>
---
util/autoport/log_maker.go | 22 ++++++++++++++++++++--
util/autoport/readme.md | 7 ++++++-
2 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/util/autoport/log_maker.go b/util/autoport/log_maker.go
index b991ea7..fccc452 100644
--- a/util/autoport/log_maker.go
+++ b/util/autoport/log_maker.go
@@ -9,7 +9,7 @@ import (
"strings"
)
-func RunAndSave(output string, name string, arg ...string) {
+func TryRunAndSave(output string, name string, arg []string) error {
cmd := exec.Command(name, arg...)
f, err := os.Create(output)
@@ -22,9 +22,27 @@ func RunAndSave(output string, name string, arg ...string) {
err = cmd.Start()
if err != nil {
- log.Fatal(err)
+ return err
}
cmd.Wait()
+ return nil
+}
+
+func RunAndSave(output string, name string, arg ...string) {
+ err := TryRunAndSave(output, name, arg)
+ if err == nil {
+ return
+ }
+ idx:=strings.LastIndex(name, "/")
+ relname := name
+ if idx >= 0 {
+ relname = name[idx+1:]
+ }
+ relname = "./" + relname
+ err = TryRunAndSave(output, relname, arg)
+ if err != nil {
+ log.Fatal(err)
+ }
}
func MakeLogs(outDir string) {
diff --git a/util/autoport/readme.md b/util/autoport/readme.md
index 2f525a9..8c139a3 100644
--- a/util/autoport/readme.md
+++ b/util/autoport/readme.md
@@ -30,7 +30,12 @@ This will allow autoport to detect as much as possible
make
cd ../autoport
go build
- ./autoport --input_log=logs --make_logs --coreboot_dir=../..
+ sudo ./autoport --input_log=logs --make_logs --coreboot_dir=../..
+
+ Note: in case you have problems getting gcc and golang to target machine
+ you can just compile on another machine and transfer binaries
+ `autoport`, `inteltool` and `ectool`. You'll still need other prerequisites
+ but you may place them in the same directory as autoport.
* Look for output unknown PCI devices. E.g.