Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Play with raspberry pie & mdash;— to make offline installation media including Windows 10 IoT Core and Raspbian

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How to make Windows 10 IoT Core offline install media for Raspberry Pi

A few days ago, I updated Receiver for Linux 13.4 on raspberry pie and tried to install Visual Studio Code on Pi. I thought there was something wrong with the system, so I planned to brush it again.

The previous system used a 16 GB TF card, which was installed online using NOOBS lite directly. As mentioned earlier, the advantage of this installation is that the installation file itself does not take up too much space, and more space can be used by the system.

But. Download is so slow. The most important thing is that there is always an error when downloading Windows 10 IoT Core! It was not easy to download, and there was a HASH error in MBR at the end of installation.

The reason is probably the interference of GFW to HTTPS, SSL communication, you know.

After N online installation failures, I got angry and got an offline installation card!

Easier said than done. Raspbian has NOOBS downloads installed offline, which is the compression package of about 1 GB on the official website. But what about Windows 10 IoT Core?

After searching for a long time, there was no progress. Later I noticed that when the network failed, NOOBS would indicate that downloading content from a site had failed. The site appears to be on Azure's CDN:

Https://iottools.blob.core.windows.net/win10iotnoobs/

As a result, through the disconnection of the artificial manufacturing network, several failed requests for files were obtained:

Windows_IoT.png, os.json, partitions.json, partition_setup.sh, marketing.tar

Compared with the installation directory of Raspberry, I feel that the installation boot image and installation image are still missing. I remember there was a FFU file in the Windows IoT installation directory during the previous installation. I tried it, but I couldn't. Open marketing.tar, which is the same as the slides_vga directory, and unpack it first.

Go back to the system that failed to install Windows IoT and open the partitions mounted by Raspbian one by one. There is a partition called Srcatch that attracts me, there are a lot of LOG files in it, and most importantly, there is an ISO file. Is this the installation image? Copy it first! There are also some files under Linux, such as installtool-1.0. Try to start again, of course, failed.

It feels like it's not enough. Since Windows creates these partitions on its own, there must be traces of these download and copy initialization actions, well, clues should be in the json file and the sh file.

Open partitions.json first, and according to the name, this is a partition description file, which soon gives me a clue:

The highlighted part of the figure is a compression package similar to starting the installation environment. The "tarball" parameter you see has been replaced by me with the guessed local path instead of the remote path that needs to be downloaded. Of course, I also downloaded a copy and put it in the folder I made earlier.

From this point of view, all the files needed to start up have been completed. Can be installed again, or go to the Internet to download, offline failure.

Go ahead. The next step is to check the partition_setup.sh. I feel that this file completes the installation process. In order to understand this process, my Linux rookie read the Shell file carefully. After looking at both sides, I feel that I need to change two places, one is URL (it turns out that this was generated by instaltool, I have time to study it), and the other is the Image path. So, change the first parameter to the mount path I guessed.

Start NOOBS again and finally install it offline. Burst into tears. However, why does Windows IoT have no icon when choosing NOOBS? I'm not a seat, but I can't stand it either.

Continue to change os.json.

This time, it's finally perfect.

By the way, in fact, I failed many times at the beginning, that is, after the card was started, it was stuck in the initialization stage of NOOBS, and it didn't work all night. So I went to NOOBS's github to read the instructions:

Https://github.com/raspberrypi/noobs

A lot of parameters were tried in recoevry.cmdline, but they didn't work. Finally, a mysterious parameter is found: runinstaller. This parameter automatically turns on partition adjustment and then starts the NOOBS installation process.

For convenience, you can download the modified json and sh files mentioned above directly from github:

Https://github.com/HaoHoo/Windows-10-IoT

If you need an ISO file, you can leave a message and I'll put it on the network disk.

Finally, a summary of the whole process:

1. Use SDformatter to format the SD/ TF card. If you have done NOOBS before, you can use diskpart's clean to clear all partitions on the card. When formatting, be sure to turn on logical resizing

2. To download the NOOBS compression package, you can choose 1 GB to extract it to the SD/ TF card.

3. Under the os directory, create a new Windows_10_IoT_Core directory and copy all the files mentioned above. Remember, Linux is case sensitive!

4. Modify the recovery.cmdline file and add runinstaller. (the first unzipped file contains, optional. If you change the card again in the future, remember to modify it)

5. Start the raspberry pie with the card and start the installation process.

Windows 10 IoT Core has higher requirements for SD/ TF cards than Raspbian, and if possible, it is better to choose a card above 16GB Class 10.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report