diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 79: Add trial support for snowball boards

Message ID 20110721170131.16844.38813.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Paul Larson July 21, 2011, 5:01 p.m. UTC
------------------------------------------------------------
revno: 79
committer: Paul Larson <paul.larson@canonical.com>
branch nick: lava-dispatcher
timestamp: Thu 2011-07-21 11:47:16 -0500
message:
  Add trial support for snowball boards
modified:
  lava_dispatcher/android_config.py
  lava_dispatcher/client.py
  lava_dispatcher/config.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/android_config.py'
--- lava_dispatcher/android_config.py	2011-06-29 10:22:40 +0000
+++ lava_dispatcher/android_config.py	2011-07-21 16:47:16 +0000
@@ -54,6 +54,9 @@ 
 #boardid in jobfile.json
 BOARDS = {
         "beagle01": BeagleBoard,
+        "beagle02": BeagleBoard,
+        "beagle03": BeagleBoard,
+        "beagle04": BeagleBoard,
         "panda01": PandaBoard,
         "panda02": PandaBoard,
         "panda03": PandaBoard,

=== modified file 'lava_dispatcher/client.py'
--- lava_dispatcher/client.py	2011-07-20 05:27:33 +0000
+++ lava_dispatcher/client.py	2011-07-21 16:47:16 +0000
@@ -85,9 +85,11 @@ 
         self.proc.sendline(uboot_cmds[0])
         for line in range(1, len(uboot_cmds)):
             if self.board.type in ["mx51evk", "mx53loco"]:
-                self.proc.expect(">")
+                self.proc.expect(">", timeout=300)
+            elif self.board.type == "snowball_sd":
+                self.proc.expect("\$", timeout=300)
             else:
-                self.proc.expect("#")
+                self.proc.expect("#", timeout=300)
             self.proc.sendline(uboot_cmds[line])
         self.in_test_shell()
 

=== modified file 'lava_dispatcher/config.py'
--- lava_dispatcher/config.py	2011-06-29 10:22:40 +0000
+++ lava_dispatcher/config.py	2011-07-21 16:47:16 +0000
@@ -55,6 +55,19 @@ 
         "boot"]
     type = "panda"
 
+class Snowball(Board):
+    uboot_cmds = ["mmc init",
+        "mmc rescan 1",
+        "setenv bootcmd 'fat load mmc 1:3 0x00100000 /uImage;"
+        "bootm 0x00100000'",
+        "setenv bootargs 'console=tty0 console=ttyAMA2,115200n8 "
+        "root=LABEL=testrootfs rootwait ro earlyprintk rootdelay=1 "
+        "fixrtc nocompcache mem=96M@0 mem_modem=32M@96M mem=44M@128M "
+        "pmem=22M@172M mem=30M@194M mem_mali=32M@224M pmem_hwb=54M@256M "
+        "hwmem=48M@302M mem=152M@360M'",
+        "boot"]
+    type = "snowball_sd"
+
 class Mx51evkBoard(Board):
     boot_part = 2
     root_part = 3
@@ -88,8 +101,15 @@ 
         "panda03": PandaBoard,
         "panda04": PandaBoard,
         "beaglexm01": BeagleBoard,
+        "beaglexm02": BeagleBoard,
+        "beaglexm03": BeagleBoard,
+        "beaglexm04": BeagleBoard,
         "mx51evk01": Mx51evkBoard,
         "mx53loco01": Mx53locoBoard,
+        "snowball01": Snowball,
+        "snowball02": Snowball,
+        "snowball03": Snowball,
+        "snowball04": Snowball,
         }
 
 #Main LAVA server IP in the boards farm