davygravy / rescue-dg Goto Github PK
View Code? Open in Web Editor NEWA NAND-flash rescue/utility root file system for Kirkwood SoC devices, produced using Buildroot
A NAND-flash rescue/utility root file system for Kirkwood SoC devices, produced using Buildroot
would be neat to have basic MTA working on this; may be doable with:
not wolfssl (tiny, but not suitable for msmtp w/o some non-trivial patching) [ https://forum.openwrt.org/t/ssmtp-for-21-02/103260 ]
ca-certificates # how to update ?
libgnutls ?
msmtp
~/.msmtprc ?
docs say that unless disabled at compile time, dropbear will great user w/ cat /etc/motd
.
must check this out. would be good to see version at login.
later: works using a symlink from /etc/motd -> /etc/issue, but will have to reformat it with the version release stamp.
rootfs.cfg
for creating the UBIFS seems to not make good use of space. Push out to 31MiB.
NOTE: at 32MiB, the UBIFS rootfs would not boot - VFS sync error and kernel panic at boot. vol_size=31MiB
gives more than 27MiB in df -h with about 3.8MIB unused.
root@rescue:~$ df -h
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 27.2M 23.4M 3.8M 86% /
devtmpfs 249.6M 0 249.6M 0% /dev
tmpfs 250.1M 0 250.1M 0% /dev/shm
tmpfs 250.1M 44.0K 250.0M 0% /tmp
tmpfs 250.1M 88.0K 250.0M 0% /run
/dev/sda1 7.4G 192.0M 6.9G 3% /media/usb0
Need to leave a stamp:
See what OpenWRT & other do.
Error thrown: "scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc';" u boot
This hit in 2020 and uboot code is now changed to avoid the problem.
We may just turn off uboot build as it is not essential here.
u-boot waits too long if $serverip can't be pinged. This is annoying and a waste of time.
This seems more reasonable on my network:
preboot_nc=setenv nc_ready 0; for pingstat in 1 2; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
The changes for uboot environment to boot rescue-usb are not sufficient. As shown, the are based on (mistaken) assumptions of default uboot env values. At least usb_init , and usb_boot need to be defined, but avoid colliding with bodhi's values.
refererences:
https://github.com/doozan/uBoot/blob/master/environment/uboot.environment.txt
https://www.dropbox.com/s/4smmw2wr4ugayz9/uboot.2016.05-tld-1.environment.bodhi.tar?file_subpath=%2Fuboot.2016.05-tld-1.environment
Not having ifplugd in the image means that if the device isn't connected at boot time, then the network interface is never raised. Since this is a headless box that is only connected to via network and serial console, it shouldn't be a deal breaker, but it would be better to have it built in.
Not sure if scripts would need to be fidgeted with to get the LED to behave...
These are needed for some routing and netfilter stuff regarding wireguard and tailscale.
udev doesn't seem to add much... maybe mdev would be better.
With space in NAND limited, maybe we could get better performance for less size.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.