Commit Graph

37 Commits

Author SHA1 Message Date
PartialVolume
0c3cac944f New shutdown and reboot options
When the user types Control C to exit nwipe after the wipes
have completed or to abort nwipe before wipes complete, previously
ShredOS provided only one option which was press the spacebar to
restart nwipe. The user could also have pressed the power button to
shutdown the computer.

This commit now provides the option to reboot or shutdown using the
keyboard. The following message is displayed after nwipe exits.
"Paused, press r to reboot, s to shutdown, spacebar to restart nwipe"

As before if auto shutdown has been selected via the kernel command
line then auto shutdown overrides this new message.
2024-03-06 19:16:06 +00:00
PartialVolume
ef2810ae64 Exclude FAT boot disc from erasure.
This commit allows the user to exclude the fat
formatted USB flash drive that ShredOS was booted from.

Reasons why the user might want to do this are:

a:) avoid the possibility of accidently selecting the
USB FAT formatted boot drive for erasure in interactive mode

b:) Stop the USB FAT formatted boot drive being erased in
autonuke mode.

There are two methods available to do this. You should currently
not manually add -e, --exclude=DEVICES on the kernel command line
if using either method described below as the results may be
unpredictable as nwipe doesn't currently combine two -e or --exclude
options. A patch to nwipe will fix this in due course. Further to
this, ShredOS will only exclude ONE FAT formatted USB drive. If you
plugged multiple FAT formatted drives into the system it will only
exclude the first drive it comes across that it either recognises
as a ShredOS boot drive or is explicitly excluded by using the empty
file /etc/shredos/shredos_exclude_disc. This file will take precedence
over ShredOS attempting to detect a boot drive by examining version
information.

The two methods to exclude a FAT formatted boot drive from being wiped
are described below. Even though a drive is excluded from the wipe it
will still have reports and logs transferred  to it unless some other
transfer method has been selected such as lftp.

1. The user can now place a empty file called
/etc/shredos/shredos_exclude_disc on the FAT formatted drive.
This will cause ShredOS to use the nwipe exclude option to
exclude the drive from being displayed in nwipe's interactive
mode or erased in nwipe's autonuke mode. This is particularly
userful for Ventoy users as they would not need to edit the
ShredOS .img file or build the modified ShredOS .iso as required
by method 2 below when making changes to grub.cfg.
However this method is not only limited to Ventoy users but can
also be used on a ShredOS USB created by dd or Rufus.

2. The user can place the text string shredos_exclude_boot_disc
on the kernel command line in /boot/grub/grub.cfg and /EFI/BOOT/grub.cfg
As with the first method this will cause ShredOS to exclude the FAT
formatted boot drive from appearing in nwipe's interactive mode or
being erased in nwipe's autonuke mode.

In addition to the above features various improvements were made to
the log messages include prefixing with date.
2024-03-02 21:55:31 +00:00
PartialVolume
447f1ac5d0 Merge branch 'master' of github.com:PartialVolume/shredos.x86_64
Add fat16 to existing fat32 & exfat disc formats

We now accept fat16 as well as fat32 and exfat formats for
USB devices that can have the config files restored from &
sent to as well as saving PDF files.
2024-02-22 21:26:42 +00:00
PartialVolume
2acaff5c3f Multiple loop device test mode for developers & testers.
The main purpose of this commit is to allow the developer
or tester the ability to specify /dev/loop0 .. /dev/loopn on the
kernel command line in /boot/grub/grub.cfg and /EFI/BOOT/grub.cfg
where n is unlimited, although it is recommended that no more
than 20-30 loop devices are specified. The loop devices are of a
fixed size alternating between 500Kbytes and 1 MByte in size. Due
to their small size you would typically select 500 or 1000 rounds
when testing. To create loop devices append the following to
grub.cfg nwipe_options='--nousb /dev/loop0 /dev/loop1 ... /dev/loopn'
loop devices should be sequential starting at loop0, any break in
the sequence will cause creation of loop devices to stop.

This commit also includes a ffmpeg module
+BR2_PACKAGE_FFMPEG_SWSCALE=y for creation of
videos of the display. This may be useful for creating
training material, youtube videos etc using the command
ffmpeg -f fbdev -framerate 30 -i /dev/fb0 output.mp4

Initial work was started on excluding the boot disc if
the following shredos_exclude_boot_disc is appended
to the kernel command line.
2024-02-22 19:39:08 +00:00
PartialVolume
c9346c1f16 1. Now searches through multiple drives looking for exfat/fat32 shredos boot
discs including Ventoy.
2. The delay ShredOS introduces while it waits for USB devices to initialise
   previously printed a period symbol every second to show somethink was
   happening, instead, it now counts down numerically from 30. Most USB
   devices have initialised after about 10-15 seconds.
3. Two new kernel command line options are introduced. The first allows the
   user to determine whether PDF, log and dmesg files are sent using tftp or
   ftp protocols.
   i.e shredos_config=ftp:192.168.0.2:/home/joe/ftpdata/:jo:488993d:d
4. The second kernel command line option is:
   shredos_output=ftp:192.168.0.2:/home/joe/ftpdata/:jo:488993d:d which
   determines where the nwipe config files are retrieved from on ShredOS boot
   and saved on nwipe exit.
5. Added package openssh for sftp support
6. Added package telnetd which had inadvertently been removed on the last update.
2024-01-01 22:20:20 +00:00
PartialVolume
6acdce2eac ShredOS will now save & restore configuration files, dmesg.txt and PDF certificate files to Ventoy formatted USB flash drives. Instead of saving to the first FAT32 formatted disc found, it now examines the exFAT or FAT32 partition for version information that matches the currently booted version. The location of ../board/shredos/version.txt has been moved to board/shredos/fsoverlay/etc/shredos/version.txt. This file should be manually updated by the devs when new versions are released. The README.md file was updated with this new location for version.txt 2023-11-26 19:41:24 +00:00
PartialVolume
948b05bf49 Increased ShredOS's vfat partition size to 250MB which leaves about 25MB free space. This was done so that approximately 75 PDF certificates could be stored on the ShredOS partition. 2023-11-10 15:21:39 +00:00
PartialVolume
325b54a68d Fixed nwipe.conf being restored to incorrect location 2023-11-09 23:30:58 +00:00
PartialVolume
c9788147f2 - Nwipe reads /etc/nwipe/nwipe.conf and /etc/nwipe/nwipe_customers.csv from the USB flash drive at boot. Nwipe now writes /etc/nwipe/nwipe.conf and /etc/nwipe/nwipe_customers.csv from ShredOS's ram drive back to USB flash drive on nwipe exit. This means any changes to nwipe's configuration via nwipes configuration screen or any changes manually made to the files will be saved back to the flash drive. Initial commit, further debugging of nwipe.conf restore from USB to ram drive required. 2023-11-09 23:21:08 +00:00
PartialVolume
254d38ccae Correct typo in comment 2023-11-08 22:55:09 +00:00
PartialVolume
a044cc12bb ShredOS now waits for USB devices to initialise before launching nwipe. Nwipes's PDF report is now written to the ShredOS USB flash drive. 2023-11-08 22:48:00 +00:00
PartialVolume
cd2f20c834 Merge branch 'master' of github.com:PartialVolume/shredos.x86_64 2023-11-08 19:15:21 +00:00
PartialVolume
9e8d671b7c Update to buildroot 2023.08.2, updated nwipe to v0.35, added ChromeOS and Microsoft Surface drivers, fibre channel drivers. 2023-11-08 19:10:58 +00:00
Jamie (Bear) Murphy
9eaf465fea add option to post logfile to http endpoint 2023-07-27 22:30:23 +01:00
PartialVolume
a8a8be2f23 Added missing frame buffer devices, added MESA3D drivers, added USB serial adapter support to allow output of /dev/console via USB/RS232, plus other graphics related changes. 2023-07-10 22:11:51 +01:00
PartialVolume
2ad6760d0f Upgrade buildroot to 2023.05 (from 2021.08.2), kernel is upgraded to 6.3 (from 5.13.19). 2023-07-05 19:35:21 +01:00
PartialVolume
0840db9c8d Added the Matrox G200 and AST KMS server graphics drivers 2023-07-02 15:36:56 +01:00
PartialVolume
584b9ec5bd Fix a benign error /usr/bin/nwipe_launcher: line 126: [: ==: Unary operator expected, that occurs when nwipe exits. The error only occured if there were no nwipe_options specified on the linux command line in grub.cfg 2023-07-02 12:40:40 +01:00
PartialVolume
67bc6c91e0 Bump ShredOS version
Bump from 23.3 to 23.4.

aka 
2021.08.2_23.3_x86-64_0.34 to
2021.08.2_23.4_x86-64_0.34
2023-07-02 00:19:58 +01:00
PartialVolume
c721f615a6 Update Linux Firmware from 20210511 to 20230625, this adds at least a 100 extra AMD_GPU binaries 2023-07-02 00:06:46 +01:00
PartialVolume
98de170bb2 Add grub2 bootx64.efi modules for PXE booting
The EFI boot loader file bootx64.efi has been rebuilt with the extra grub2 modules,
all_video, video_cirrus, video_bochs, net, efinet, tftp and gzio. This will hopefully fix
the problem referenced here: [#147](https://github.com/PartialVolume/shredos.x86_64/issues/147). Also bumped version from v2021.08.2_23.2_x86-64_0.34 to v2021.08.2_23.3_x86-64_0.34
2023-06-05 14:54:21 +01:00
PartialVolume
77344223ce --Autopoweroff, virtual disks & dmesg
1. Fixes issue [#145](https://github.com/PartialVolume/shredos.x86_64/discussions/145)

2. Now creates /dev/loop0 & /dev/loop1 if user specifies those drives in grub.cfg

3. dmesg.txt now written to USB flash drive.
2023-06-05 14:48:46 +01:00
PartialVolume
8eb9aae052 Merge branch 'master' of github.com:PartialVolume/shredos.x86_64 2023-03-24 23:09:23 +00:00
PartialVolume
92276736a5 Merge pull request #135 from petski/improve-bnx2-approach
Improve bnx2 approach
2023-03-24 16:21:13 +00:00
PartialVolume
49e3e9c2f0 Added X2APIC support for server that require this.
Added Numachip support

Added ScaleMP vSMP

Added Locale, locale -a now works.
Added en_US.UTF-8 as required by tmux

Added tmux to allow the creation of multiple terminals viewable
simultaneously.
Added the command tmux4 which creates a 4 panes (terminals) in the
virtual terminal. This allows multiple nwipes /dev/sdx to be run
simultaneously for those that like to run one wipe in each terminal
for hot swapping.

Added DirectFB drivers for ATI128, Matrox and I830.

Added ascii_invaders for something to do while those discs wipe.

Increased size of FAT32 to 130MB with about 14MB free for PDF
wipe reports and logs.

Bumped minor version 23.1 to 23.2
2023-03-23 20:37:43 +00:00
Patrick Kuijvenhoven
010a8e2cea Revert "Added bnx2 ethernet firmware as an overlay as buildroot appears to have a bug and isn't adding this firmware"
This reverts commit 29e93aede5.
2023-03-23 20:40:26 +01:00
PartialVolume
5bbeef3e72 Preview update: Fix DRM frame buffer with some graphics displays,
especially AMD GPU and Radeon.

Also added traceroute, heirloom mailx, ntp, nmap.

Unfortunately this increased the overal size to 103MB, I expanded
the FAT32 partition to 114MB so there is about 11MB of free space
for logs and reports.

Full list of additions.

+CONFIG_DRM_DP_AUX_CHARDEV=y
+CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM=y
+CONFIG_DRM_DP_CEC=y
+CONFIG_DRM_I2C_NXP_TDA998X=y
+CONFIG_DRM_I2C_NXP_TDA9950=y
+CONFIG_DRM_RADEON_USERPTR=y
+CONFIG_DRM_AMDGPU_SI=y
+CONFIG_DRM_AMDGPU_CIK=y
+CONFIG_DRM_AMD_DC_HDCP=y
+CONFIG_DRM_AMD_DC_SI=y
+CONFIG_HSA_AMD=y
+CONFIG_DRM_QXL=y
+CONFIG_DRM_BOCHS=y
+CONFIG_DRM_VIRTIO_GPU=y
+CONFIG_TINYDRM_HX8357D=y
+CONFIG_TINYDRM_ILI9225=y
+CONFIG_TINYDRM_ILI9341=y
+CONFIG_TINYDRM_ILI9486=y
+CONFIG_TINYDRM_MI0283QT=y
+CONFIG_TINYDRM_REPAPER=y
+CONFIG_TINYDRM_ST7586=y
+CONFIG_TINYDRM_ST7735R=y
+CONFIG_DRM_VBOXVIDEO=y
+CONFIG_FB_CIRRUS=y
+CONFIG_FB_PM2=y
+CONFIG_FB_PM2_FIFO_DISCONNECT=y
+CONFIG_FB_CYBER2000=y
+CONFIG_FB_ARC=y
+CONFIG_FB_ASILIANT=y
+CONFIG_FB_IMSTT=y
+CONFIG_FB_HGA=y
+CONFIG_FB_OPENCORES=y
+CONFIG_FB_S1D13XXX=y
+CONFIG_FB_NVIDIA=y
+CONFIG_FB_NVIDIA_I2C=y
+CONFIG_FB_RIVA=y
+CONFIG_FB_RIVA_I2C=y
+CONFIG_FB_I740=y
+CONFIG_FB_LE80578=y
+CONFIG_FB_CARILLO_RANCH=y
+CONFIG_FB_MATROX=y
+CONFIG_FB_MATROX_MILLENIUM=y
+CONFIG_FB_MATROX_MYSTIQUE=y
+CONFIG_FB_MATROX_G=y
+CONFIG_FB_MATROX_I2C=y
+CONFIG_FB_MATROX_MAVEN=y
+CONFIG_FB_RADEON=y
+CONFIG_FB_ATY128=y
+CONFIG_FB_ATY=y
+CONFIG_FB_ATY_CT=y
+CONFIG_FB_ATY_GENERIC_LCD=y
+CONFIG_FB_ATY_GX=y
+CONFIG_FB_S3=y
+CONFIG_FB_SAVAGE=y
+CONFIG_FB_SAVAGE_I2C=y
+CONFIG_FB_SAVAGE_ACCEL=y
+CONFIG_FB_SIS=y
+CONFIG_FB_SIS_300=y
+CONFIG_FB_SIS_315=y
+CONFIG_FB_VIA=y
+CONFIG_FB_NEOMAGIC=y
+CONFIG_FB_KYRO=y
+CONFIG_FB_3DFX=y
+CONFIG_FB_3DFX_ACCEL=y
+CONFIG_FB_VOODOO1=y
+CONFIG_FB_VT8623=y
+CONFIG_FB_TRIDENT=y
+CONFIG_FB_ARK=y
+CONFIG_FB_PM3=y
+CONFIG_FB_CARMINE=y
+CONFIG_FB_SM501=y
+CONFIG_FB_SMSCUFX=y
+CONFIG_FB_UDL=y
+CONFIG_FB_IBM_GXT4500=y
+CONFIG_FB_VIRTUAL=y
+CONFIG_FB_METRONOME=y
+CONFIG_FB_MB862XX=y
+CONFIG_FB_SM712=y

+2021.08.2_23.1_x86-64_0.34

+BR2_PACKAGE_LINUX_FIRMWARE_AMDGPU=y
+BR2_PACKAGE_LINUX_FIRMWARE_I915=y
+BR2_PACKAGE_LINUX_FIRMWARE_RADEON=y
+BR2_PACKAGE_LINUX_FIRMWARE_QCOM_VENUS=y
+BR2_PACKAGE_LINUX_FIRMWARE_QCOM_ADRENO=y
+BR2_PACKAGE_LINUX_FIRMWARE_MFC_V8=y

+BR2_PACKAGE_HEIRLOOM_MAILX=y
+BR2_PACKAGE_NMAP=y
+BR2_PACKAGE_NTP=y
+BR2_PACKAGE_NTP_NTPDATE=y
+BR2_PACKAGE_TRACEROUTE=y
2023-03-20 21:57:07 +00:00
PartialVolume
44224926c5 Update ShredOS with nwipe version 0.34 2022-12-31 01:48:35 +00:00
PartialVolume
22d24229e1 New feature added, auto archive nwipe log files to ShredOS USB stick or any other FAT32 formatted device, currently if multiple FAT32 partitions are found the first one will always be used. This shouldn't be an issue for the vast majority of people, however this can be enhanced at a later date if anybody finds they have multiple FAT32 partitions on their system. 2022-12-29 15:15:47 +00:00
PartialVolume
8c777a2a77 Added Fusion mptsas drivers to hopefully fix non recognised LSISAS1068E and similiar controllers 2022-12-27 23:29:21 +00:00
PartialVolume
29e93aede5 Added bnx2 ethernet firmware as an overlay as buildroot appears to have a bug and isn't adding this firmware 2022-06-27 20:57:44 +01:00
PartialVolume
9e5afe9299 Increased vfat disk size to 80000000 bytes to accomodate the recently added ethernet firmware 2022-06-24 21:21:38 +01:00
PartialVolume
e9be64e3ab Add DRM drivers for AMDGPU, Radeon, Nouveau, I915, GMA500, UDL for improved functioning of suspend and re-wake from RAM required to unfreeze drives ready for upcoming secure erase implementation in nwipe. Added LCD devices L4F00242T03, LMS283GF05. Added Backlight KTD253, GPIO. Added boot logo support. Removed buildroot manual packages. 2022-02-20 14:52:42 +00:00
PartialVolume
abaa2fdabe Update version to 2021.08.2_20_x86-64_0.32.014
Update version to 2021.08.2_20_x86-64_0.32.014 ready for release.
2021-11-29 11:15:55 +00:00
PartialVolume
5ef824d395 New Feature: By adding telnetd=enable to the kernel command line, shredos will start a telnet server. From a system on the same network use nmap -p23 192.168.1.0/24 --open to search for open telnet ports in order to determine shredos's IP address. Replace 192.168.1.0/24 with your network details. telnet [shredos's IP] to access the shredos login, then to run nwipe, type nwipe. 2021-11-28 13:51:27 +00:00
PartialVolume
c92c6a6c04 Enabled EFI options in kernel, removed old framebuffer drivers that were recently introduced but appear to cause problems. Reduced framebuffer to just three of which the simple frame buffer will probably be used the most. Added execute permissions to shredos_net.sh. And finally this is a rebuilt GRUB bootx64.efi which now includes the efi_gop and efi_uga grub modules build-in. 2021-11-26 22:36:39 +00:00
PartialVolume
49625f0571 First commit of Shredos v2021.08.2_19_x86-64_0.32.014 2021-11-23 23:01:30 +00:00