Installer Windows Sur Raspberry Pi 2
WoR-flasher
Use a Linux machine to install Windows 10 or Windows 11 on a Raspberry Pi SD menu.
A yr ago, this was flat-out impossible.
In July 2021, this required following a complicated tutorial.
Now, using the new WoR-flasher, it's a piece of cake.
Useful information
- This tool is 100% legal. All proprietary Windows components are downloaded directly from Microsoft's update servers using uupdump. Consider reading this argue that took place on the Raspberry Pi Forums. At the conclusion of the thread, Raspberry Pi employees confirm that WoR is completely legal. The OS is unlicenced just like a regular Windows ISO, which can be activated via an activation fundamental or by logging in with a pre-licensed Microsoft account.
- In theory, this tool will run correctly on any Debian-based Linux, ARM or x86. However, this tool has only been tested to run correctly on Raspberry Pi OS 32-bit. Botspot (the programmer of this tool) cannot be held responsible for information loss!
- Demand help using the WoR-flasher tool? You can open an issue or ask for help in the Botspot Software discord server.
- Need help using Windows on Raspberry (The operating system)? Contact the WoR developers through email or join their Discord server.
- By default, WoR volition limit your usable RAM to 3GB due to a complexity in the Pi4's CPU blueprint. At that place is a workaround, but it's not the default. Click here for details
- WoR does not currently support WiFi. The necessary drivers only do not exist. (withal) See this page for current commuter status.
- Y'all won't be able to debloat the OS because the Wine tool is unable to run NTLite. Performance is most the same, debloated or not, merely there will exist actress apps you'll take to manually remove if you wish to remove the actress preinstalled apps.
WoR-flasher walkthrough
Install WoR-flasher
The fastest way to get WoR-flasher running on a RPi is by using the Pi-Apps app store for Raspberry Pi:
Installing WoR-flasher from Pi-Apps has several advantages: it creates a convenient button in the Start menu, uninstalling takes one click, and updates are handled seamlessly.
To manually download WoR-flasher
git clone https://github.com/Botspot/wor-flasher
This will download the scripts to a new directory named wor-flasher
.
Dependencies: No need to install packages manually. Running the script volition automatically install these: yad
aria2
cabextract
wimtools
chntpw
genisoimage
exfat-fuse
exfat-utils
wget
To run WoR-flasher using the graphical interface
~/wor-flasher/install-wor-gui.sh
To run WoR-flasher using the last interface
~/wor-flasher/install-wor.sh
Example terminal walkthrough (click to expand)
$ ~/wor-flasher/install-wor.sh Choose Windows version: 1) Windows 11 2) Windows 10 3) Custom... Enter 1, 2 or iii: 1 Cull linguistic communication: en-the states Choose Raspberry Pi model to deploy Windows on: 1) Raspberry Pi 4 / 400 2) Raspberry Pi 2 rev 1.2 / three / CM3 Enter 1 or ii: ane Available devices: /dev/sdb - 59.5GB - USB Storage Choose a device to wink the Windows setup files to: /dev/sdb ane) Create an installation drive (minimum 25 GB) capable of installing Windows to itself 2) Create a recovery drive (minimum 7 GB) to install Windows on other >16 GB drives Choose the installation mode (1 or 2): 1 Input configuration: DL_DIR: /home/pi/wor-flasher-files RUN_MODE: cli RPI_MODEL: 4 DEVICE: /dev/sdb CAN_INSTALL_ON_SAME_DRIVE: i UUID: 6f7de912-4143-431b-b605-924c22ab9b1f WIN_LANG: en-us Formatting /dev/sdb Generating partitions Generating filesystems # script output continues... It generates a Windows prototype legally, downloads all necessary drivers, the BIOS, the bootloader, and the modified kernel. One time done information technology ejects the drive.
Environment variable options
The install-wor.sh
script is designed to be used within other, larger bash scripts. For automation and customization, install-wor.sh
will detect and obey certain environment variables:
-
DL_DIR
: Set this variable to modify the default download location. By default, it's~/wor-flasher-files
. -
UUID
: Fix this variable to choose an verbal Windows update ID. Example value: "db8ec987-d136-4421-afb8-2ef109396b00
". When this variable is set,install-wor.sh
volition not inquire the user which Windows version to use. -
WIN_LANG
: Set up this variable to choose a linguistic communication for the Windows image. Example value: "en-us
". When this variable is set,install-wor.sh
will not enquire the user which language to use. -
RPI_MODEL
: Prepare this variable to cull Raspberry Pi model. Allowed values: "iii
", "four
". When this variable is ready,install-wor.sh
will not enquire the user which Raspberry Pi model to use. -
DEVICE
: Gear up this variable to the device you want to flash. Instance value: "/dev/sda
" When this variable is prepare,install-wor.sh
volition not ask the user which device to use. -
CAN_INSTALL_ON_SAME_DRIVE
: Set this variable to "i
" if the device is larger than 25GB and you wish to install Windows on itself. Otherwise, fix it to "0
". -
CONFIG_TXT
: Set this variable to customize the/kicking/config.txt
of the resulting drive. This is commonly used for overclocking or to change HDMI settings. This is the default value. -
RUN_MODE
: Set this to "gui
" if you wantinstall-wor.sh
to brandish graphical error messages. -
DRY_RUN
: Set this variable to "1
" to keep through the setup as normal, merely to exit afterwards downloading everything. This prevents the device from existence flashed.
Example usage:
DL_DIR=/media/pi/my-big-wink-drive DEVICE=/dev/sdg DRY_RUN=1 UUID=db8ec987-d136-4421-afb8-2ef109396b00 RPI_MODEL=four WIN_LANG=en-u.s.a. ~/wor-flasher/install-wor-gui.sh
Functions
The install-wor.sh
script is designed to be used inside other, larger bash scripts. For improved integration, install-wor.sh
is equipped with a variety of useful functions that frontend scripts like install-wor-gui.sh
can utilise.
To source the script and then the functions are available:
source ~/wor-flasher/install-wor.sh source
Question: why does that command say "source
" twice? Respond: The first "source
" is a command, and the second "source
" is a command-line flag that is passed to the script to permit information technology know yous are sourcing it. In one case the script is sourced, these new commands (also known as functions) become available:
-
error
- a simple role that Botspot uses in bash scripts to warn the user that something failed and to go out the script with a failure code. (1)
Input: cord containing the error message
Usage:
command-that-downloads-windows || fault "Windows failed to download! Check your internet connection and endeavor once again."
-
echo_white
- a elementary frontend to therepeat
control that displays your desired message every bit white text instead of the usual light-grey.
Input: string containing message
Usage:
echo_white "Now, downloading windows... please wait"
-
package_available
- Determines if a packet is possible to install from the apt repositories Input: 1 name of a package Usage:
if package_available yad ;so echo "yad can exist installed" fi
-
install_packages
- Checks for and installs a quoted list of packages.
Input: string containing a infinite-separated list of packages
Usage:
install_packages 'yad aria2 cabextract wimtools chntpw genisoimage exfat-fuse exfat-utils wget'
-
download_from_gdrive
- Downloads a publically shared large-file from Google Drive. Here'south the tutorial I adapted information technology from.
Inputs: File ID, output filename
Usage:
download_from_gdrive 1WHyHFYjM4WPAAGH2PICGEhT4R5TlxlJC WoR-PE_Package.zilch
-
get_partition
- A clean, reliable style to determine the block-device of a partition.
Input: block device of drive, sectionalisation number
Usage:
get_partition /dev/sda 2 #Bold division two exists, the above command returns "/dev/sda2" get_partition /dev/mmcblk0 2 #Assuming partition 2 exists, the above command returns "/dev/mmcblk0p2" get_partition /dev/mmcblk0 all #Returns every partition inside the drive, each one on a line
-
get_name
- Determine a human-readable name for the given storage drive.
Input: block device of drive
Usage:
-
get_size_raw
- Determines the size of a drive in bytes.
Input: block device of bulldoze
Usage:
-
list_devs
- list available storage drives in a human-readable, colored format.
Usage:
-
get_uuid
- Get the latest Windows update ID for either Windows 10 or Windows xi
Input: "10
" or "11
" Usage:
-
get_space_free
- Get the available disk space of a folder
Input: path to folder to bank check Usage:
get_space_free ~/wor-flasher-files
-
check-uuid
- Decide if the given UUID is a valid format. (Windows update IDs are in a UUID format)
Input: UUID to check
Usage:
check_uuid db8ec987-d136-4421-afb8-2ef109396b00 #this command will return an exit code of naught if valid, otherwise it will return en leave code of 1
-
get_os_name
- Get human-readable name of operating organisation.
Input: valid Windows update ID
Usage:
get_os_name db8ec987-d136-4421-afb8-2ef109396b00
Example function and variable usage
This code will non-interactively flash Windows 11 to /dev/sda
and add overclock settings. You tin copy and paste the code into a terminal, or relieve this as a beat out script.
#brand all variables we set to be visible to the script (but necessary if you run this in a last) set -a #First, source the script and then its functions are available source ~/wor-flasher/install-wor.sh source #Make up one's mind the latest Windows 11 update ID using a part UUID= " $(get_uuid eleven) " #set destination RPi model RPI_MODEL=four #cull language WIN_LANG=en-us #prepare the device to flash DEVICE=/dev/sda #set a custom config.txt CONFIG_TXT= "over_voltage=half dozen arm_freq=2147 gpu_freq=750 # don't modify anything below this point # arm_64bit=1 enable_uart=1 uart_2ndstage=1 enable_gic=one armstub=RPI_EFI.fd disable_commandline_tags=i disable_overscan=1 device_tree_address=0x1f0000 device_tree_end=0x200000 dtoverlay=miniuart-bt" #point that drive is large enough to install Windows to itself CAN_INSTALL_ON_SAME_DRIVE=1 ~/wor-flasher/install-wor.sh
Installer Windows Sur Raspberry Pi 2,
Source: https://github.com/Botspot/wor-flasher
Posted by: caldwellguttend1964.blogspot.com
0 Response to "Installer Windows Sur Raspberry Pi 2"
Post a Comment