summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-06-05Upgrade to 2018.4Corentin LABBE10-62/+556
This patch upgrade lava-docker to LAVA 2018.4
2018-06-05Implement MultipleslaveCorentin LABBE16-337/+576
This patch implement multiple slave support. Instead of having a maximum of one master and one slave in one docker image, it is now possible to have multiple slave accross several docker host. For helping this change, a new boards.yaml format is introduced (See README.md for details) Note that tokens.yaml is also squashed in boards.yaml
2018-04-13Permit to add custom option in board filesCorentin LABBE1-0/+3
Some board need some jinja options (ex: nanopik2 need use_vendor_uboot) but adding all possible options is not worth the cost. So this patch adds a custom way to add option to board file.
2018-04-13Rename macaddr to uboot_macaddrCorentin LABBE3-4/+4
For clarify the use of macaddr, rename it to uboot_macaddr.
2018-04-13Add uboot_ipaddrCorentin LABBE2-0/+3
Some boards have broken uboot dhcp, so we need to set a static ip in uboot. This patch add a way to specify such IP via uboot_ipaddr.
2018-03-08labalab-gen.sh: clean all generated filesCorentin LABBE1-0/+3
Some generated files are not cleaned, add them to the toclean list
2018-03-08Reorder start of slave servicesCorentin LABBE1-5/+7
Starting lava-slave too early is dangerous since some services it needs are not started yet. Always start lava-slave in last.
2018-03-08Rename lab to workerCorentin LABBE2-22/+22
This patch fix the misleading name lab to the more proper worker since a lab could be a group of workers.
2018-03-08Move copy of helper scriptsCorentin LABBE1-4/+4
Since nothing depends on them, copy them at last step. This prevents rebuild of all docker steps when changing them.
2018-03-08Install qemu-kvm only on x86/x86_64Corentin LABBE2-2/+4
qemu-kvm is not availlable on ARM. Install it only on supported x86/x86_64
2018-03-07Ensure that tty can be read by cuCorentin LABBE1-0/+2
On some OS, the rights/user from host are not duplicated on guest. So the tty is owned by root and cu could not read it. Force the owning of all tty by uucp
2018-02-26Merge pull request #24 from montjoie/fixmisckhilman1-1/+1
Fix "Remove tty/stdin options"
2018-02-23Fix "Remove tty/stdin options"Corentin LABBE1-1/+1
The commit "Remove tty/stdin options" miss a part of the changes, since Dockerfile still exec bash. Remove bash and replace it with a forever sleep
2018-02-16Merge pull request #23 from montjoie/misckhilman4-14/+10
Misc
2018-02-16Remove tty/stdin optionsCorentin LABBE1-2/+0
Keeping stdin open is not necessary since a long time. Remove thoses unused options
2018-02-16README: Fix vendor/product ID formatCorentin LABBE1-6/+6
The format for vendor/product ID need to be prefixed by 0x.
2018-02-16Add healths check jobsCorentin LABBE1-0/+2
2018-02-15Clean argument parsingCorentin LABBE1-6/+2
lavalab-gen.py does not handle arguments, lets remove all arg parsing stuff.
2018-02-14Merge pull request #22 from montjoie/hexidkhilman3-30/+36
Support python3, fix handling of hex values for vendor/product IDs.
2018-02-14Merge pull request #21 from montjoie/enablekvmkhilman3-10/+18
Allow KVM support for slaves
2018-02-14Force the use of hexadecimal values for product/vendor IDsCorentin LABBE3-16/+22
Using "idproduct: 6001" let python convert 6001 to 24577 and so corrupt the UDEV line.
2018-02-14Made lavalab-gen.py python3 compatibleCorentin LABBE1-14/+14
lavalab-gen.py cannot be used with python3. This patch made it compatible with both python2 and python3.
2018-02-14Document host_has_cpuflag_kvmCorentin LABBE1-0/+1
Now host_has_cpuflag_kvm is used, we need to document it.
2018-02-14Remove old devices nodeCorentin LABBE1-4/+0
The "devices" node is now automaticly generated and added, so remove them from docker-compose.template.
2018-02-14Reintroduce qemu KVM supportCorentin LABBE1-1/+11
Since lava-docker must run on all arch, and that KVM is x86 specific, KVM support was disabled for qemu. Reintroduce it now as an option for each lab via the host_has_cpuflag_kvm flag.
2018-02-14Remove hardcoded devices for lava-slaveCorentin LABBE1-4/+5
The node devices was hardcoded for lava-slave. For example, lava-master could never have devices. Remove that hard-coding and made devices dynamic for any labname.
2018-02-14Fix the lab-slave-0 nameCorentin LABBE1-1/+1
The boards.yaml documentation state that lava-slave should be named lab-slave-XXX but docker-compose.template does not use this convention. This force the use of this convention.
2018-02-08Merge pull request #20 from montjoie/documentationkhilman2-54/+332
Documentation: document lava-docker
2018-02-07Merge pull request #19 from montjoie/more_board_attributeskhilman1-4/+23
More board attributes
2018-02-06Merge pull request #18 from montjoie/rework-udevkhilman2-4/+6
Rework udev
2018-02-05Merge pull request #17 from montjoie/pdugenerickhilman3-33/+12
Pdugeneric
2018-02-05Merge pull request #16 from montjoie/rework-misckhilman3-83/+45
Rework misc
2018-02-02Merge pull request #15 from montjoie/lavastablekhilman4-41/+153
stick to 2017.11
2018-02-02Documentation: document lava-dockerCorentin LABBE2-54/+332
Ths patch documenent lava-docker and add a boards.yaml.example
2018-02-02Handle optional macaddrCorentin LABBE1-0/+3
Some boards need to have a macaddr set in uboot (like meson-gxl-s905x-libretech-cc) This patch add support for it.
2018-02-02Implement connection_commandCorentin LABBE1-0/+6
connection_command is a generic way to get console from devices. It could ran telnet for accessin ser2net for example.
2018-02-02lavalab-gen.py: Handle non-FTDI UART via devpathCorentin LABBE1-4/+14
This patch add support for non-FTDI UART by adding a devpath member. Since both FTDI and non-FTDI need also idevendor/idproduct, this patch introduce them.
2018-02-02Generate udev rules in udev directoryCorentin LABBE2-3/+5
2018-02-02produce non-duplicate udev filesCorentin LABBE1-1/+1
When more than one "lab" is referenced (like lava-master + lab-slave-0), udev content is duplicated. This patch reset the udev_line variable for producing non-duplicate udev files.
2018-02-02Remove lavapdu support and replace with pdu_genericCorentin LABBE3-31/+10
Recent lavapdu is unpackaged and buggy. Remove it and replace with a generic PDU command line wrapper
2018-02-02A pdu is optionnalCorentin LABBE1-2/+2
2018-02-02Create a working default boards.yamlCorentin LABBE1-54/+2
The boards.yaml need to be more minimal and working for everybody.
2018-02-02Handle boards without uartCorentin LABBE1-10/+14
Some boards could not have uart like qemu. This patch made having an uart optionnal.
2018-02-02Move conmux and slaves directory creationCorentin LABBE1-4/+10
Thoses two directory are necessary even with setup without conmux and slaves. (Due to Dockerfile COPY). This patch move the creation of thoses two directory at start of lavalav-gen.py
2018-02-02Change misleading lab-slave-name exampleCorentin LABBE1-1/+1
2018-02-02Permit to customize dispatcher_ipCorentin LABBE2-5/+7
dispatcher_ip is the IP used by boards for contacting/downloading images/dtb/etc... For the moment it was harcoded to 192.168.66.1. This patch permit to easily change it.
2018-02-02Place board under boardlistCorentin LABBE3-65/+67
We need to add some information to lab node, so we need to move all boards under a list("boardlist")
2018-02-02stick to LAVA 2017.11Corentin LABBE4-41/+153
Since LAVA packages are ephemeral, this patch permit to build a know release of LAVA. Introducing scripts/build-lava which builds from source any LAVA compoments from any version tag. In the same time, stick to 2017.11 as its a know working release for lava-docker.
2018-01-25Merge pull request #14 from montjoie/stafftokenskhilman5-8/+28
Permit to create staff/superuser users
2018-01-24Merge pull request #13 from montjoie/bugfixkhilman9-15/+66
Bugfix