Tobias Waldekranz
3c6c2ec66d
mech: Import ietf-{interface,ip} models
2023-03-16 15:48:38 +01:00
Tobias Waldekranz
f7f6333b6f
mech: Generate a tree representation of the YANG model
...
If pyang is available, generate texual and HTML representations of the
system's YANG model.
2023-03-16 15:48:38 +01:00
Joachim Wiberg
4e46b60b6f
mech: deviation /sys:system/clock/timezone-utc-offset not-supported
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 08:26:21 +01:00
Joachim Wiberg
0185efeb3f
mech: add support for setting timezone, e.g. Europe/Stockholm
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 08:00:40 +01:00
Joachim Wiberg
f0e659c185
chrony: does not support SIGHUP, requires /var/lib/chrony
...
Chrony drops privs after startup to user chrony, when restarting it
writes its state in /var/lib/chrony, so the directory needs to have
the correct permissions for that user.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 07:26:40 +01:00
Joachim Wiberg
4ca2e2d8c4
mech: initial support for ietf-system ntp using chrony
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 07:26:40 +01:00
Joachim Wiberg
79f4baf519
board/common: enable syslog LOG_DEBUG messages to /var/log/debug
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 06:37:56 +01:00
Joachim Wiberg
fa45015140
mech: debug transactions
...
For observability. All transactions that reach ietf-system are logged
with LOG_DEBUG log level. See /var/log/debug for details.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 06:37:56 +01:00
Joachim Wiberg
17424a140f
mech: ensure clixon_backend always use syslog backend
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 06:37:56 +01:00
Joachim Wiberg
d130011f96
mech: common convenience library, currently only XML debug fns
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 06:37:56 +01:00
Joachim Wiberg
d01617a79e
board/amd64: enable RTC subsystem
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-16 06:37:56 +01:00
Joachim Wiberg
00daab72fc
package/mech: start clixon_backend as 'clixon', redirect stdout/err
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 20:32:38 +01:00
Joachim Wiberg
90b4a739b5
mech: always run initctl in batch mode when in non-interactive mode
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 20:31:50 +01:00
Joachim Wiberg
28b6cecb73
package/clixon: bump to 6.1.0+kkit
...
Tracking kkit branch (clixon 6.1+) w/a for issue #334 .
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 17:05:21 +01:00
Joachim Wiberg
48f819b315
package/cligen: bump to v6.1.0
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 17:05:00 +01:00
Joachim Wiberg
e9b252b514
buildroot: bump to 2023.02 LTS
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 16:07:15 +01:00
Joachim Wiberg
060af92a29
package/clixon: /var/clixon is a directory
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:38:08 +01:00
Joachim Wiberg
7a4fe98a3e
mech: remember hard-coded strings
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
f43b31b1f5
mech: system headers before clixon, skip sys/ prefix
...
The canonical location for syslog.h is in the root.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
1aac798041
mech: must specify model revision
...
Found when debugging output from "show state", which displayed NULL for
the infix model.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
77f6d5e82e
mech: use same pager as Clixon by default
...
Add configurable pager support to Clixon later.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
cc5453bfbd
mech: use new 'show -n' to skip shell user's help notice
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
3c4ff8cabb
board/common: add 'show -n' for no footer output
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
6fec738628
board/common: make sure to enable clixon_backend in NETCONF mode
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
6a591ddd5a
mech: use NOTICE file and spdx format for Apache 2.0 license
...
Recommendations on how to apply the Apache 2.0 license to a project from
https://www.linkedin.com/pulse/how-apply-apache-20-license-your-open-source-software-vladimír-gorej/
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
d8d761bfa4
mech: change license to Apache v2.0, same as Clixon package
...
To facilitate linking and circumvent any possible legal problems.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
2f7dbe110a
src/mech: add some basic 'show' commands
...
- Example of optional args (show log [FILE])
- Example of dynamic expansion
- Example of how to re-enable signals for external commands
- Example of hidden commands
- Add basic 'help' command for the current level
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
9041c54dbd
README: mention Clixon and add Qeneth as alternative to GNS3
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
9f74bac06c
README: fix footnote link
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Joachim Wiberg
70a393ec99
package/mech: minor, for Buildroot conformance
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-14 09:06:22 +01:00
Tobias Waldekranz
77d94e0ffd
doc: Expand boot procedure documentation
...
Provide more details on the boot procedure, different image types
used, how to configure the bootloader, and how to perform system
upgrades.
2023-03-13 23:20:01 +01:00
Tobias Waldekranz
19672fcc58
rauc: Initial support
...
Add support for firmware updates via RAUC on aarch64. The created RAUC
bundle (images/infix-$BR2_ARCH.pkg) is signed with the same key used
to sign the raw FIT image.
2023-03-13 14:46:37 +01:00
Tobias Waldekranz
e7112ca0c9
qemu: Support mounting host filesystem inside guest
...
This is mounted at /mnt/host in the guest. By default the images
directory is mounted.
2023-03-13 13:53:12 +01:00
Tobias Waldekranz
162f019574
aarch64: Remove U-Boot envimage generation from defconfig
...
This created a circular dependency that caused the build to fail. This
is now handled by the mkdisk.sh script instead.
2023-03-13 10:21:08 +01:00
Tobias Waldekranz
bf240e0d89
amd64: Update GNS3 appliance generation to use the disk image
...
The appliance now uses the same QEMU setup as when using `make run`
with OVMF loader.
2023-03-13 09:57:04 +01:00
Tobias Waldekranz
6cc26307b7
common: Mark output from Infix shell scripts similarly to Make
...
Similarly to how $(call IXMSG,"hello world") outputs a blue
information line from a makefile, provide `ixmsg` to accomplish the
same thing in shell scripts.
Use a different prefix (`#!:` vs `>>>`) to differentiate it from
makefile output.
2023-03-13 09:57:04 +01:00
Tobias Waldekranz
d777d59ee2
common: Prettify output from Infix extensions to the build system
...
This makes it easier to spot where we've added things (that might not
work :))
2023-03-13 09:57:04 +01:00
Tobias Waldekranz
3c720892dc
aarch64: Cleanup unused stuff from defconfig
...
Config options are now loaded internally by the post-image script.
We never use the EXT image for anything.
2023-03-13 09:57:04 +01:00
Tobias Waldekranz
f3304a6539
common: Unify disk image generation across aarch64 and amd64
...
On amd64, we use grub instead of U-Boot, because yours truly can't
figure out how to handle ACPI handover to the kernel.
The resulting image is now called disk.img instead of the old mmc.img,
since we can use it over any interface (e.g. virtio or SCSI).
2023-03-13 09:57:03 +01:00
Tobias Waldekranz
515d9f6e84
config: Replace $() with ${}
...
This lets us source .config from shell scripts
2023-03-13 09:56:37 +01:00
Tobias Waldekranz
96af542d40
qemu: Consolidate DTB extension handling in qemu.sh
2023-03-13 09:55:16 +01:00
Tobias Waldekranz
e9adde4100
qemu: Add option to start with UEFI instead of BIOS
2023-03-13 09:55:16 +01:00
Tobias Waldekranz
81f0276a31
qemu: Remove redundant enabling of KVM
2023-03-13 09:55:16 +01:00
Tobias Waldekranz
7ba2e0a0b1
qemu: Always use disk images when using U-Boot
...
The U-Boot scripts won't accept a raw squash.
2023-03-13 09:55:16 +01:00
Tobias Waldekranz
d1607cc2f3
doc: Document boot process and image formats
2023-03-13 09:55:16 +01:00
Tobias Waldekranz
9869c1a290
common: uboot: Update environment to new disk layout
...
- Adapt boot scripts to exepect the split FIT header/SquashFS image
layout.
- Make sure that we can boot from any kind of block device (most
importantly virtio for GNS3).
- Rename net -> dhcp as we might have more kinds of netboots in the
future (http).
2023-03-13 09:55:16 +01:00
Tobias Waldekranz
8296a98e61
common: Use plain SquashFS images on disk
...
Store FIT headers separately on aux, and place the raw SquashFS images
on primary/secondary. This removes the need to muck about with the
device mapper to setup the rootfs, and it allows us to boot using
syslinux files.
2023-03-13 09:55:16 +01:00
Joachim Wiberg
c328c41eff
package/profeth: document QEMU_NET_TAP_N=10 requirement
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-09 07:21:50 +01:00
Joachim Wiberg
6c1a53ffdb
package/skeleton-init-finit: add missing /etc/sysctl.d directory
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-09 07:17:21 +01:00
Joachim Wiberg
597207b7dd
profeth: drop copy of p-net headers, use library headers instead
...
Signed-off-by: Joachim Wiberg <troglobit@gmail.com >
2023-03-09 06:58:46 +01:00