summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/run
Commit message (Collapse)AuthorAgeFilesLines
* qemu-run: don't evaluate selected_platformconfigRoland Hieber2023-10-201-7/+2
| | | | | | | | | | | | | | Even when a selected_platformconfig symlink exists, ptxdist can still be used with the --platformconfig=... option to override the platformconfig during the build. In this case, running the qemu script will search in the wrong build folder for the images. Don't use the selected_platformconfig link to find out the platform, instead determine it from the path of the qemu script itself. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/distrokit/20231010091028.3444582-1-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: run: start with barebox by defaultDistroKit-2023.09.0Roland Hieber2023-09-151-1/+1
| | | | | | | | | | | | | | Booting via 9p results in a machine that feeld very differently than any other boards in platform-v7a, mainly because there is no data partition, no barebox-state, and therefore no RAUC support. All of this is possible by booting from the emulated SD card image through barebox. Default to barebox so that qemu-vexpress feels as much as possible like booting from other boards. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230825110310.2948272-8-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platforms: revert to default systemd loglevelRoland Hieber2023-08-151-1/+1
| | | | | | | | | | | | | | | | | | By decreasing the systemd loglevel to "warning", the journal no longer contains useful lines like which units were started and stopped and when, which is quite sparse information for debugging. Remove the systemd.log_level from the kernel command line so systemd defaults to loglevel "info" (same level as loglevel=5 for the kernel). Keep the systemd.show_status setting on "auto" so that systemd only produces actual console output when the boot takes a significant amount of time, or produces error messages; so this change only changes the verbosity of the journal, not the console, on normal boots. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20230623124755.2292833-2-rhi@pengutronix.de [remove meanwile eliminated special environment for rock3a, see 8ed4f77e790a24bd8c0d4fb15f95731eb1490be6 for reference] Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* ptxdist: version bump 2022.01.0 -> 2022.02.0Robert Schwebel2022-03-011-1/+1
| | | | | | A new ptxdist version is out, update. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: run: really constrain the forwarded SSH port to <= 64000Roland Hieber2021-11-261-1/+1
| | | | | | | | | | The variable expansion braces should have been arithmetic evaluation parentheses, which had the effect that the PPID was always used as a port number (which incidentally works fine for PPIDs < 65535). Fixes: d975eb8b04087f8606d8 (2021-04-26, "v7a: run: make the SSH forwarding port multiprocess-compatible") Reported-by: Jürgen Borleis <jbe@pengutronix.de> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* platform-v7a: run: fix typoRobert Schwebel2021-09-171-1/+1
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: run: make the SSH forwarding port multiprocess-compatibleRoland Hieber2021-04-261-1/+2
| | | | | | | | | | | | | | | | | When multiple ./configs/platform-v7a/run scripts are run at the same time, the first qemu process will open port 4445, and following runs will fail. To prevent that, first look at the environment variable QEMU_SSH_PORT to determine the port to be used (so that users can set this in their shell to keep the port constant), or fall back to a port between 1025 and 65025 based on the shell's PID, which should have a good chance of choosing an unused, but stable port. Also print the port forwarding before starting qemu, so we don't have to bother about grepping the process list. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20210426100714.10944-1-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: run: remove telnet port forwardingRoland Hieber2021-04-261-7/+3
| | | | | | | | | Hopefully nobody uses telnet anymore these days. Our userland certainly doesn't. Remove the outdated qemu port forwarding. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20210426060526.32029-4-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: run: use security_model=mapped-file when possibleMichael Olbrich2020-04-091-3/+9
| | | | | | | | PTXdist can now provide the necessary metadata files for security_model=mapped-file. With this enabled, the rootfs on 9p has the correct ownership and permissions. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: vexpress: use only one core for bareboxMichael Olbrich2019-11-041-0/+1
| | | | | | Barebox does not start with more than one core. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: enable virtio hardware random number generatorMichael Olbrich2019-09-301-0/+1
| | | | | | | This speeds up the first boot in qemu quite a bit when ssh keys are generated. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: vexpress: run qemu with CPU 4 coresMichael Olbrich2019-05-201-1/+1
| | | | | | | | Newer versions of qemu can use multiple threads to emulate the CPU cores. This can speed up booting significantly: 22 seconds instead of 34 seconds for multi-user.target on on test machine. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* platform-v7a: silence reason-warning for barebox state dtb entryRobert Schwebel2017-10-271-1/+1
| | | | | | | | | | | As the 'reason' checker analyzes all <*>.dtb files in the imagedir and assumes they are all kernel dtbs, rename the barebox dtb from bb-vexpress-v2p-ca9.dtb to vexpress-v2p-ca9.dtb-bb. This silences a warning that kernel devicetrees should not contain barebox,state nodes. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: barebox: use a separate file name for the barebox DTBJan Luebbe2017-08-181-1/+3
| | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
* platform-v7a: vexpress: adapt run script, generic dtb nameRouven Czerwinski2017-07-041-8/+8
| | | | | | | | | | | | | | | The run script is adapted to the new image names for the vexpress hardware. The devicetree is used by qemu to pass it to barebox. To make the devicetree independend of the actual barebox-version, it is copied to the image directory. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> [split from riotboard, improve patch description] Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de> [generic dtb name] Signed-off-by: Chris Fiege <c.fiege@pengutronix.de>
* platform-v7a: add ssh forwarderRobert Schwebel2017-06-121-1/+5
| | | | | | | | | | | | This patch makes it possible to have a local ssh forward: if the BSP runs in qemu (started with configs/platform-v7a/run), the SSH port 22 is forwarded to port 4445 on localhost, so you can $ ssh localhost -p 4445 -l root and end up in the DistroKit system. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-v7a: change run script to use new qemu network definitionRobert Schwebel2017-05-161-3/+3
| | | | | | The old vlan=... variant is deprecated with qemu 2.9. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* run: move to new script with plan 9 filesystem supportRobert Schwebel2017-01-061-18/+169
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* platform-beaglebone: rename to platform-v7aRobert Schwebel2016-07-261-0/+21
In the meantime, in addition to beaglebone, this platform supports the other ARMv7 based boards (rpi2, vexpress), so rename it. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>