aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* bin: join the "append" kernel parameter into a single stringMiquel Sabaté Solà2026-06-221-7/+2
| | | | | | This apparently avoids weird problems when calling QEMU. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: set -x on the run-riscv-gdb scriptMiquel Sabaté Solà2026-06-221-2/+2
| | | | | | Also default to a better repository base directory. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* fetch-email: ditch GNU parallel as it's bailing on meMiquel Sabaté Solà2026-05-111-6/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: set execution for the installation scriptsMiquel Sabaté Solà2026-05-111-0/+3
| | | | | | | As we do when the '-l/--local' flag is provided, set execution mode for the install.sh and the uninstall.sh scripts when bundling too. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* Remove old backup systemMiquel Sabaté Solà2026-04-152-75/+0
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* doctor: do not make an exact match on the platformMiquel Sabaté Solà2026-03-181-2/+2
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: add the '-l/--local' flagMiquel Sabaté Solà2026-02-271-3/+36
| | | | | | | | | | This allows you to define that you are planning to deploy things in your current development box. This means that ARCH has to match whatever is currently on your system, and CROSS_COMPILE is needed. Moreover, we don't need an installation bundle, but we just need the install.sh/uninstall.sh scripts. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: cleanup the busybox /home only when a binary was providedMiquel Sabaté Solà2026-02-251-5/+4
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* e: add microemacsMiquel Sabaté Solà2026-02-191-2/+5
| | | | | | | It's impossible that the previous editors don't exist but microemacs does, but I still find it funny. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* do-backup: ignore old mailboxesMiquel Sabaté Solà2026-02-101-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: backup 'mihi' as wellMiquel Sabaté Solà2026-01-221-0/+6
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* run-riscv-qemu: move to KERNEL in error messagesMiquel Sabaté Solà2025-10-241-3/+4
| | | | | | | | Commit 295231706308 ("bin: Guess the QEMU_KERNEL to be used based on cwd") introduced QEMU_KERNEL into this script, but actually we have moved to KERNEL instead. Hence, use that as well in error messages. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: move profiles into .config/kbuildMiquel Sabaté Solà2025-10-241-177/+18
| | | | | | | | | | | | | | Instead of inlining shell scripts inside of the `kbuild` one, move them into subdirectories inside of the new $HOME/.config/kbuild directory. Each subdirectory will match a profile (i.e. no more hacky hardcoded values on `kbuild`), and it will contain the relevant install.sh/uninstall.sh files which matter for that profile. This also allows us more flexibility when it comes to GRUB configuration (e.g. picking the right UUID value without having to re-invent the wheel via esoteric new parameters). Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Prefer grub2-mkconfigMiquel Sabaté Solà2025-10-231-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Change 'vf2' to 'debian'Miquel Sabaté Solà2025-10-161-6/+8
| | | | | | | | | | | The folks at openSUSE were nice enough to provide an image that works with my VisionFive2 board. Hence, let's reformulate the "vf2" profile to "debian", as that's closer to what I was doing. That being said, I have left a TODO to denote that the UUID used in GRUB needs to be handled more gracefully. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: Add msmtp to the required packages listMiquel Sabaté Solà2025-10-131-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Be more specific on Linux kernel root pathMiquel Sabaté Solà2025-10-071-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Be more explicit on --skip-* flagsMiquel Sabaté Solà2025-10-071-6/+6
| | | | | | | | | I always end up forgetting which is which, and I have to turn into '-h/--help'. Hence, instead of providing a "clever" short version of each flag, let's scrap that and use a more explicit name for each --skip-* flag. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Adapt the uninstall.sh script to profilesMiquel Sabaté Solà2025-10-071-11/+22
| | | | | | | | | Moreover, some subtle fixes have been added, like using 'update-bootloader' instead of 'update-grub' in SUSE-like systems, and having -f in 'rm' commands so uninstall.sh can be run safely multiple times without erroring out. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* kbuild: Don't check on the profile before helpMiquel Sabaté Solà2025-10-071-14/+14
| | | | | | | | If the user asked for '-h/--help', the profile is irrelevant. Hence, the right order is: first check if '-h/--help' was provided, then the profile. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* Enable systemd timers on doctor.rbMiquel Sabaté Solà2025-10-031-0/+5
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* run-riscv-qemu.sh: Add '-k/--kernel' and '-d/--disk' parametersMiquel Sabaté Solà2025-10-031-47/+83
| | | | | | | | This allows this script to be more specific on the kernel being used, less hiden (as it was on an environment variable), and it easies up the route for a disk already containing a Linux system. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: Add 'profile' into kbuildMiquel Sabaté Solà2025-10-031-68/+103
| | | | | | | This allows this script to be more specific for the resulting 'install.sh', as the current situation wasn't quite working. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* run-riscv-qemu: Allocate at least 8G for memoryMiquel Sabaté Solà2025-09-241-0/+1
| | | | | | | I don't know what were the defaults for this, but it was certainly not enough in order to run some of the selftests from the Linux kernel. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: Guess the QEMU_KERNEL to be used based on cwdMiquel Sabaté Solà2025-09-231-4/+17
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: Add 'do-backup.sh'Miquel Sabaté Solà2025-09-172-0/+68
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* doctor.rb: Add more required binariesMiquel Sabaté Solà2025-09-171-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: Update 'kbuild' to also handle UbuntuMiquel Sabaté Solà2025-09-161-6/+55
| | | | | | | Relevant for my Framework RISC-V laptop, even if I need to get my hands dirty a bit more with it. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin: Add 'fetch-email'Miquel Sabaté Solà2025-09-161-0/+27
| | | | | | | | This is a glorified bash one-liner for fetching my email by syncing each channel via GNU parallel. This speeds up a bit from the usual 'mbsync -a', even if it's not a miracle. Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
* bin/doctor: Accept a VERBOSE environment variableMiquel Sabaté Solà2025-09-011-0/+4
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* bin/doctor: Allow ARM64 as wellMiquel Sabaté Solà2025-09-011-1/+2
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* bin: Introduce the doctor.rb install/update scriptMiquel Sabaté Solà2025-07-141-0/+192
| | | | | | | | | This replaces the good ol' install.sh script, and it allows me to not only install on a new system, but also upgrade dependencies, repair broken links, etc. This is certainly not Nix, but at least it's not as bad as it used to be. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* bin: Add zypper-rdup helper scriptMiquel Sabaté Solà2025-07-081-0/+20
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Streamline configuration for run-riscv-qemu.shMiquel Sabaté Solà2025-05-071-9/+15
| | | | | | | | | | | | | | Personal stuff like the location of the kernel image should go into my .bashrc file, and then require it on `run-riscv-qemu.sh`. Similarly, some environment variables were dropped, and some others removed. This brings some much needed consistency to the whole script. Last but not least, the `run-riscv-qemu.sh` now also had an extra configurable variable, which is used for the `-cpu` QEMU option. It defaults to 'max' so we can test the maximum amount of supported extensions as possible. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* bin: Force a busybox path when running QEMUMiquel Sabaté Solà2025-04-221-5/+23
| | | | | | | | | | | | | | | | | | When running QEMU/RISC-V, force the user to provide the `BUSYBOX_SRC` environment variable. This variable points to the path where busybox has been built. This way the path to the initramfs is not hardcoded. Moreover, this allows us to rebuilt the initramfs every time the `run-riscv-qemu.sh` is called, which in turn brings some consistency to the process. Plus, this opens the door for allowing files to be passed into a new `/home` directory for the current user. This way, someone can just statically compile a binary via cross compilation, and then run it in isolation with QEMU/RISC-V. Last but not least, also update the .bashrc file with a value for `BUSYBOX_SRC` on my system. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Simplify boot parametersMiquel Sabaté Solà2024-11-141-2/+2
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Fix typoMiquel Sabaté Solà2024-10-111-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* bin: Add helpers for gdb and qemu for RISC-VMiquel Sabaté Solà2024-10-112-0/+115
| | | | | | | | There are now two scripts that can be used in order to quickly test a locally built Linux kernel which has been cross compiled for the RISC-V architecture. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* e: Fix vi call and introduce nanoMiquel Sabaté Solà2024-09-191-3/+6
| | | | | | | | | The vi branch was calling vim anyways, which is not what we want in restricted environments. Moreover, I have also added nano. It would be extremely rare for GNU nano to be there and not vi, but let's exhaust any possibility before bailing out. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Remove the initrd image on uninstall.shMiquel Sabaté Solà2024-09-131-1/+2
| | | | | | | | The initrd image is created and installed dynamically via install.sh. Hence, this is not picked up by the files.txt list and so we need to remove it manually. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* bin: Remove more scripts which are no longer neededMiquel Sabaté Solà2024-09-062-123/+0
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Simplify handling of .config fileMiquel Sabaté Solà2024-09-061-34/+14
| | | | | | Instead of prompting the user, just do the right thing. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: make install should be silentMiquel Sabaté Solà2024-09-031-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: Use `make install` instead of manual copyMiquel Sabaté Solà2024-08-261-1/+1
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Make 'e' my new EDITORMiquel Sabaté Solà2024-08-262-26/+16
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: add a -h/--help commandMiquel Sabaté Solà2024-08-241-1/+22
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* Set a proper copyright noticeMiquel Sabaté Solà2024-08-2412-13/+13
| | | | Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: add --no-installMiquel Sabaté Solà2024-08-201-33/+43
| | | | | | | This way the heavy process of creating a tarball can be skipped on silly builds. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: add the `-s/--skip-build` optionMiquel Sabaté Solà2024-08-191-33/+60
| | | | | | | This allows me to skip the defconfig/menuconfig over and over again when writing a patch. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
* kbuild: append lines for extboot by defaultMiquel Sabaté Solà2024-08-131-2/+38
| | | | | | | | | Usually the configuration for extboot is just the same. For that, before starting the editor for it, append the configuration that I'd most likely be using. Then the editor session might just be deleting the old lines and removing the warning comment. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>