I can't even count the number of times I thought to myself "Wouldn't it be great if OpenBSD ran on the Linksys WRT boxes?" I still haven't managed to find the time to learn how to port OpenBSD, but I have found an alternate solution. The OpenWRT project has finally released a stable build of Kamikaze which consists of a major rewrite and architecture shift from the previous White Russian build. The most noticeable change with Kamikaze is that userspace configuration is no longer stored in NVRAM, which solves a whole slew of issues that could arise if you accidentally wiped the wrong mtd device or something (not that anybody would ever do that...) All of the configuration is now stored in a sensible /etc/config folder with a common format for all of the options and separate files for different bits of functionality. The most useful of which being /etc/config/network, which has some pretty nifty ways of creating new pseudo-interfaces and bridges. This type of setup also makes it a lot easier to play around with
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile | |
index 3b8dc2f56f..3150a68740 100644 | |
--- a/arch/arm/dts/Makefile | |
+++ b/arch/arm/dts/Makefile | |
@@ -485,7 +485,8 @@ dtb-$(CONFIG_MACH_SUN8I_A33) += \ | |
sun8i-a33-sinlinx-sina33.dtb \ | |
sun8i-r16-bananapi-m2m.dtb \ | |
sun8i-r16-nintendo-nes-classic-edition.dtb \ | |
- sun8i-r16-parrot.dtb | |
+ sun8i-r16-parrot.dtb \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with Ada.Text_IO; | |
procedure Example is | |
use Ada.Text_IO; | |
begin | |
Put_Line ("Foo"); -- This is Ada.Text_IO.Put_Line if we don't have the use statement. | |
end Example; |
I hereby claim:
- I am jeremygrosser on github.
- I am synack (https://keybase.io/synack) on keybase.
- I have a public key ASAWqaCxiyGPdTnmnhMFLa3ReTgDP0cR5r3puJWZIosnSwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package body Generic_Nested is | |
package body Inner_Nested is | |
procedure Test (A : A_Type; B : B_Type) is | |
begin | |
null; | |
end Test; | |
end Inner_Nested; | |
end Generic_Nested; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure Main is | |
generic | |
type A_Type is private; | |
procedure Outer (A : A_Type); | |
procedure Outer (A : A_Type) is | |
generic | |
type B_Type is private; | |
procedure Inner (A : A_Type; B : B_Type); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux version 5.10.0-7-cloud-arm64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) # | |
1 SMP Debian 5.10.40-1 (2021-05-28) | |
root@ip-10-0-1-183:/home/admin# kexec -l /boot/vmlinuz-5.10.0-8-cloud-arm64 --initrd=/boot/initrd.img-5.10.0-8-cloud-arm64 --append="$(cat /proc/cmdline)" | |
root@ip-10-0-1-183:/home/admin# kexec -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with "config/hello_pico_config.gpr"; | |
with "pico_bsp.gpr"; | |
project Hello_Pico is | |
for Target use "arm-eabi"; | |
for Runtime ("Ada") use "zfp-cortex-m0p"; | |
package Linker is | |
for Switches ("Ada") use Pico_BSP.Linker_Switches; | |
end Linker; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains common pin mappings for Ultimaker Original with the v1.5.6 | |
# board. To use this config, the firmware should be compiled for the AVR | |
# atmega2560. | |
# See docs/Config_Reference.md for a description of parameters. | |
[stepper_x] | |
step_pin: PA3 | |
dir_pin: !PA1 | |
enable_pin: !PA5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
synack@polar ~/build/hal(master) $ cat hal.gpr | |
project HAL is | |
for Source_Dirs use ("src"); | |
for Library_Name use "hal"; | |
for Object_Dir use "obj"; | |
for Library_Dir use "lib"; | |
for Library_Kind use "static"; |
OlderNewer