How to make Windows IoT Core offline install media for Raspberry Pi
The previous few days on the Raspberry Pi update receiver for Linux 13.4, and try to install visual Studio Code on the PI, the result that the system is a bit abnormal, so I intend to brush again.
The previous system used a one-gigabyte TF card, which was installed directly using Noobs Lite. Previously said that the installation has the advantage that the installation file itself does not occupy too much space, more space can be used for the system.
But...... The download is very slow ah ... The most important thing is that when you download Windows IoT Core, it always goes wrong! Finally download finished, the installation of the end of the MBR hash error!
The reason is estimated to be GFW interference with HTTPS, SSL communication, you understand.
N Times on-line installation failed, I am angry, get an offline install card!
It's easy to say, it's difficult to do. Raspbian has an offline installation of the noobs download, is the official website about 1 GB of the compression package. But what about Windows IoT core?
Search for half a day, no progress. Later I noticed that when the network failed, noobs would be prompted to download the content from a site failure. This site appears to be a CDN in Azure:
https://iottools.blob.core.windows.net/win10iotnoobs/
As a result, the failed request for several files was obtained by disconnecting the human-made network:
Windows_iot.png, Os.json, Partitions.json, partition_setup.sh, Marketing.tar
Check the installation directory of raspberry and feel the lack of installation boot image and installation image. I remember before the installation there will be an ffu file in Windows IoT installation directory, try it out, no. Open the Marketing.tar, and the SLIDES_VGA directory of the same, first solve a pressure put.
Back to the system that failed to install Windows IoT, open it up by Raspbian the few partitions that were mounted. There is a partition called Srcatch attracted me, there are a large number of log files, the most important, there is an ISO file, is this the installation image? Copy it over here first! There are some files under Linux such as installtool-1.0. Try to start again, of course, failed ...
It is not enough to feel this way. Now that Windows creates these partitions itself, the initialization of these downloads and replications must be a trace, well, the clues should be in the JSON file and the sh file.
First open the Partitions.json, from the name, this is a partition description file, soon let me find clues:
650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/88/5C/wKiom1fyLk6j_ J5faaegrmn5ubs453.png "width=" 606 "height=" 283 "/>
The highlighted section of the figure is a compressed package similar to the boot installation environment. The "tarball" parameter that you see has been replaced by my guess-local path instead of the remote path that needs to be downloaded. Of course, I also downloaded a copy in front of me to do in the folder.
In this case, the files needed to start up are already in line. Can be installed again, or go online download, offline failure ...
Go on. Next I looked at partition_setup.sh, and I felt that the file completed the entire installation process. In order to understand the process, I this Linux small white carefully read the shell file. Look at the two sides, feel the need to change two places, one is the URL (later found that this is generated by Instaltool, there is time to study it), one is the image path. So, the first parameter is also changed to my guess the mount path.
650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/88/5C/ Wkiom1fylk-rx0ugaag3trmxb4g108.png "width=" 604 "height=" 282 "/>
Start noobs again, and finally can be installed offline ... Tears ran ... But why is there no icon when Windows IoT chooses noobs? I'm not a Virgo, but I can't bear it ...
Continue to change Os.json.
650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/88/5C/ Wkiom1fyllczzudhaadmxshlxh0355.png "width=" 604 "height=" 282 "/>
This time, finally perfect ...
By the way, in fact, I failed in the beginning many times, is to finish the card after the start, has been stuck in the noobs initialization stage, and so on a night is not good. So I went to noobs on GitHub to see the description:
Https://github.com/raspberrypi/noobs
Recoevry.cmdline in the test of a lot of parameters, have no effect. Finally, a mysterious parameter is found: Runinstaller. This parameter automatically turns on the partition adjustment and then launches the Noobs installation process.
For convenience, you can download the modified JSON and SH files directly from GitHub:
Https://github.com/HaoHoo/Windows-10-IoT
If you need the ISO file, you can leave a message I put the net disk.
Finally, let's summarize the whole process:
1, using Sdformatter to format the SD/TF card, if you have already done noobs, you can use DiskPart clean to clear all the partitions on the card. When formatting, be sure to turn on "logical resizing"
650) this.width=650; "title=" clip_image001 "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image001 "src=" http://s3.51cto.com/wyfs02/M01/88/5C/ Wkiom1fyllhaqrojaach3jpmomo642.png "width=" "height=" 243 "/> 650" this.width=650; "title=" clip_image001[4] " Style= "border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" clip_image001[4] "src=" http://s3.51cto.com/wyfs02/M02/88/5D/ Wkiom1fyllgdov6faaaoau7arw4610.png "width=" 266 "height=" 183 "/>
2, download noobs compression package, you can choose 1 GB, extract to SD/TF card
3. In the OS directory, create a new Windows_10_iot_core directory and copy all the previously mentioned files. Remember, Linux is case-sensitive!
4, modify the Recovery.cmdline file, add Runinstaller. (The first extracted file contains, optional.) If you change the card again later, remember to change it)
5. Insert card to start the Raspberry Pi, start the installation process.
Windows IoT Core has a higher requirement for SD/TF cards than Raspbian, and if you can, choosing a card with 16GB Class 10 is preferred.
Play the Raspberry Pi--make offline installation media with Windows IoT Core and Raspbian