<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pine64.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nuess0r</id>
	<title>PINE64 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pine64.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nuess0r"/>
	<link rel="alternate" type="text/html" href="https://wiki.pine64.org/wiki/Special:Contributions/Nuess0r"/>
	<updated>2026-05-09T17:37:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:Nuess0r/SandBox/Install_Debian&amp;diff=21666</id>
		<title>User:Nuess0r/SandBox/Install Debian</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:Nuess0r/SandBox/Install_Debian&amp;diff=21666"/>
		<updated>2024-11-17T21:31:05Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Update installer download link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Install Debian on Star64=&lt;br /&gt;
{{Under construction}}&lt;br /&gt;
{{Warning | Attempting these instructions may permanently brick (make nonfunctional) your device. Do not attempt unless you know what you are doing.}}&lt;br /&gt;
{{Warning | These instructions have not been tested or verified. Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
This how-to guides you through the process to install Debian SID (unstable) on your Star64.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
Required:&lt;br /&gt;
*Star64 SBC&lt;br /&gt;
*Micro SDcard or Pine64 eMMC module&lt;br /&gt;
*USB serial converter with TTL output (No RS232 converter)&lt;br /&gt;
*Ability to network the Star64 to a computer over ethernet (Switch, Ethernet cables,...)&lt;br /&gt;
*Ability to write Micro SDcards or if you have only the eMMC module you also need the Pine64 eMMC USB programmer&lt;br /&gt;
*Computer running Linux&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update U-Boot and SPL==&lt;br /&gt;
The Star64 ships with an integrated 128 megabit (16 megabyte) SPI NOR flash. Loaded on this flash from the factory is firmware called U-Boot and SPL but an old version designed for the StarFive VisionFive 2 SBC which is incompatible with the Star64 mainline Linux kernel (&amp;gt;= 6.11). The SPL (Secondary Program Loader) is the software that loads U-Boot, which in turn loads the Linux kernel. It performs similar functions to the BIOS on x86 platforms.&lt;br /&gt;
&lt;br /&gt;
There are two main ways to update the SPI flash. The first uses the &amp;lt;code&amp;gt;flashcp&amp;lt;/code&amp;gt; command which requires the Star64 to first boot into an OS. This method requires an OS able to boot from the old u-boot like Pinix from fishwaldo but unfortunately it doesn't ship with flashcp. The other method requires only the ability to load U-Boot and uses TFTP and the U-Boot &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
===Preparing The TFTP Server and UART Connection===&lt;br /&gt;
====Linux====&lt;br /&gt;
First, on your computer (not the Star64) install a TFTP server and &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; if you do not already have it.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install tftpd-hpa wget&lt;br /&gt;
Next, check that the TFPT server is running using &amp;lt;code&amp;gt;systemctl&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo systemctl status tftpd-hpa&lt;br /&gt;
This should output somethng like &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;●&amp;lt;/span&amp;gt; tftpd-hpa.service - LSB: HPA's tftp server&lt;br /&gt;
      Loaded: loaded (/etc/init.d/tftpd-hpa; generated)&lt;br /&gt;
      Active: &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;active (running)&amp;lt;/span&amp;gt; since Sat 2023-06-10 20:51:28 CDT; 17min ago&lt;br /&gt;
        Docs: man:systemd-sysv-generator(8)&lt;br /&gt;
     Process: 1016 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=0/SUCCESS)&lt;br /&gt;
       Tasks: 1 (limit: 2306)&lt;br /&gt;
      Memory: 588.0K&lt;br /&gt;
         CPU: 23ms&lt;br /&gt;
      CGroup: /system.slice/tftpd-hpa.service&lt;br /&gt;
             └─1023 /usr/sbin/in.tftpd --listen --user tftp --address :69 --secure /srv/tftp&lt;br /&gt;
 &lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Starting tftpd-hpa.service - LSB: HPA's tftp server...&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm tftpd-hpa[1016]: Starting HPA's tftpd: in.tftpd.&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Started tftpd-hpa.service - LSB: HPA's tftp server.           &lt;br /&gt;
&lt;br /&gt;
If the service is not running, try&lt;br /&gt;
 $ sudo systemctl start tftpd-hpa&lt;br /&gt;
and check the status again. If it is still not running please join the #star64 channel in the Pine64 IRC, Discord, or Matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next in your home directory (&amp;lt;code&amp;gt;/home/user&amp;lt;/code&amp;gt;) create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
 $ mkdir /home/user/tftp_share&lt;br /&gt;
In this folder, download  the &amp;lt;code&amp;gt;u-boot-spl.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;u-boot.itb&amp;lt;/code&amp;gt; U-Boot image using &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt;. &lt;br /&gt;
 $ cd /srv/tftp&lt;br /&gt;
 $ sudo wget &amp;lt;nowiki&amp;gt;https://freeshell.de/e/riscv64/u-boot-20241028-428921_429908_429906_ocloaderase.zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ sudo unzip &amp;lt;nowiki&amp;gt;u-boot-20241028-428921_429908_429906_ocloaderase.zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before connecting to the Star64 and updating the firmware install screen, virtual console software, so it will be possible to communicate with the Star64.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install screen &lt;br /&gt;
Next connect your USB to TTL UART adapter to the computer and list the connected serial devices. &lt;br /&gt;
&lt;br /&gt;
Find the address of the TTL UART to USB adapter in the list (example: &amp;lt;code&amp;gt;ttyUSB0&amp;lt;/code&amp;gt;) and connect to the serial device with a baud rate of 115200. &lt;br /&gt;
 $ screen /dev/&amp;lt;Device Address&amp;gt; 115200&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Device Address&amp;gt;&amp;lt;/code&amp;gt; is the address found in the step above. &amp;lt;span class=&amp;quot;mw-customtoggle-device-address-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-device-address-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ screen /dev/ttyUSB0 115200&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
First, install two pieces of software, [https://pjo2.github.io/tftpd64/ tftpd64], a TFTP server for windows, and [http://ttssh2.osdn.jp/index.html.en Tera Term], a virtual console for interacting with the Star64 in U-Boot.&lt;br /&gt;
Next on your desktop, create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
In this folder, place the the &amp;lt;code&amp;gt;u-boot-spl.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;u-boot.itb&amp;lt;/code&amp;gt; U-Boot image from [u-boot-20241028-428921_429908_429906_ocloaderase.zip this Zip file].&lt;br /&gt;
&lt;br /&gt;
Next, load tftpd64 and configure the settings to have the &amp;quot;Current Directory&amp;quot; as the &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt; folder on the desktop and &amp;quot;Server interfaces&amp;quot; is set to &amp;lt;code&amp;gt;127.0.0.1 Software Loopback Interface 1&amp;lt;/code&amp;gt;. The path should look something like &amp;lt;code&amp;gt;C:\Users\${Username}\Desktop\tftp_share&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;${Username}&amp;lt;/code&amp;gt; is your username on Windows. &lt;br /&gt;
[[File:Star64 tftpd64 settings.png|none|500px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
TODO: Short intro how to use Putty.&lt;br /&gt;
&lt;br /&gt;
===Updating the SPI Flash===&lt;br /&gt;
&lt;br /&gt;
[[File:STAR64-serial-pins.jpg|400px|thumb|right|Serial pins on the STAR64 I/O connector]]&lt;br /&gt;
&lt;br /&gt;
Next, connect a TTL UART to USB cable to to the Star64 with the GND cable on pin 6 of the GPIO header, TXD on pin 8, and RXD on pin 10 as well as Ethernet. Note that depending on your UART adapter you may have to switch TXD and RXD. Now power on the Star64 and enter U-Boot. You will need to press a key to prevent it from autobooting and instead enter the U-Boot command prompt.&lt;br /&gt;
Once you are in the U-Boot shell set some environment variables. &lt;br /&gt;
First, set the IP address of the Star64 and connect it to the network using the &amp;lt;code&amp;gt;dhcp&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # dhcp &lt;br /&gt;
&lt;br /&gt;
Set an environment variable of the TFTP server to make future command easier. If you don't what the IP address of your TFTP server is you can see connected devices in your router's configuration which can usually be accessed by typing in the IP address found on the router itself.&lt;br /&gt;
 # setenv serverip &amp;lt;server IP&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;server IP&amp;lt;/code&amp;gt; is the IP address of the TFTP server. &amp;lt;span class=&amp;quot;mw-customtoggle-set-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-set-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # setenv serverip 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Ping the TFTP server from the Star64 to make sure the connection works where &amp;lt;code&amp;gt;&amp;lt;Server IP&amp;gt;&amp;lt;/code&amp;gt; refers to the IP address of your TFTP server.  Note that if you are hosting the TFTP server on Windows, you may need to configure Windows firewall to allow &amp;lt;code&amp;gt;‘File and Printer Sharing (Echo Request – ICMPv4 – In)’&amp;lt;/code&amp;gt;. This is only needed to test the network connection with &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; and not for the actual &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command so if &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; fails &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; may still succeed. &lt;br /&gt;
 # ping &amp;lt;server IP&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-customtoggle-ping-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-ping-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # ping 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # ping 192.168.1.199&lt;br /&gt;
Using ethernet@16030000 device&lt;br /&gt;
host 192.168.1.199 is alive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If ping fails, please try again or please join the #star64 channel in the Pine64 IRC, Discord, or Matrix for help. &lt;br /&gt;
&lt;br /&gt;
Finally, it is time to update the xSPI flash. &lt;br /&gt;
&lt;br /&gt;
First, initialize the flash with the &amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # sf probe&lt;br /&gt;
&lt;br /&gt;
The output should be something like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # sf probe&lt;br /&gt;
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next copy the SPL &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; file to memory address 0xa0000000 from our TFTP server.&lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out&lt;br /&gt;
&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
Then use &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; to erase and update the SPI flash from memory. In this case we are copying from memory address 0xa0000000 which we wrote to earlier with an offset of 0x0.&lt;br /&gt;
&lt;br /&gt;
 # sf update 0xa0000000 0x0 $filesize&lt;br /&gt;
&lt;br /&gt;
Next, copy the U-Boot &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; binary to memory address 0xa0000000 from the TFTP server. &lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:u-boot.itb&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
&lt;br /&gt;
Finally, write the new U-Boot binary using &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; from memory address 0xa0000000 with an offset of 0x100000. &lt;br /&gt;
 # sf update 0xa0000000 0x100000 $filesize&lt;br /&gt;
&lt;br /&gt;
Reboot the Star64 and the changes should have taken effect.&lt;br /&gt;
&lt;br /&gt;
On your Linux host, disable the TFTP server again, when you don't need it anymore:&lt;br /&gt;
 $ sudo systemctl disable tftpd-hpa&lt;br /&gt;
&lt;br /&gt;
==Install Debian==&lt;br /&gt;
&lt;br /&gt;
===Prepare Debian Installation Media===&lt;br /&gt;
&lt;br /&gt;
Download the latest Debian installer for Risc-V targets:&lt;br /&gt;
&lt;br /&gt;
https://d-i.debian.org/daily-images/riscv64/daily/netboot/mini.iso&lt;br /&gt;
&lt;br /&gt;
====Linux====&lt;br /&gt;
&lt;br /&gt;
Use [https://github.com/balena-io/etcher Balena Etcha] or &amp;lt;code&amp;gt;dd&amp;lt;/code&amp;gt; to write the installer image to your SD card or eMMC drive.&lt;br /&gt;
&lt;br /&gt;
 $ sudo dd if=mini.iso of=/dev/sdX&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;/dev/sdX&amp;lt;/code&amp;gt; is the path of your SD card or eMMC drive. Warning: Double check the device name! Otherwise you could accidentally overwrite your system drive!&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
Use [https://github.com/balena-io/etcher Balena Etcha] to write the installer image to your SD card or eMMC drive.&lt;br /&gt;
&lt;br /&gt;
===Boot into Debian Installer===&lt;br /&gt;
[[File:Debian-Grub 20241117 144136.png|300px|thumb|right|Debian installer GRUB menu]]&lt;br /&gt;
&lt;br /&gt;
Insert your SD card or eMMC drive into the Star64 and switch it on. After u-boot is finished you should see a GRUB menu where you can select ''install'' and other entries for more options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow installation&lt;br /&gt;
&lt;br /&gt;
In the tasks selection, enable SSH server&lt;br /&gt;
&lt;br /&gt;
TODO: Notes on partitioning, how to use eMMC when installer is on eMMC.&lt;br /&gt;
&lt;br /&gt;
===Final Steps===&lt;br /&gt;
&lt;br /&gt;
Finish the installation&amp;quot; step of installer to ^a^n change 'screen' window over to command prompt in debian-installer and&lt;br /&gt;
 $ cp -rT /target/lib/linux-image-*-riscv64 /target/boot/efi/dtb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Debian-Grub_20241117_144136.png&amp;diff=21665</id>
		<title>File:Debian-Grub 20241117 144136.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Debian-Grub_20241117_144136.png&amp;diff=21665"/>
		<updated>2024-11-17T13:47:12Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Debian Testing GRUB menu

Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Debian Testing GRUB menu&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:Nuess0r/SandBox/Install_Debian&amp;diff=21636</id>
		<title>User:Nuess0r/SandBox/Install Debian</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:Nuess0r/SandBox/Install_Debian&amp;diff=21636"/>
		<updated>2024-11-08T07:50:04Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: minor clean up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Install Debian on Star64=&lt;br /&gt;
{{Under construction}}&lt;br /&gt;
{{Warning | Attempting these instructions may permanently brick (make nonfunctional) your device. Do not attempt unless you know what you are doing.}}&lt;br /&gt;
{{Warning | These instructions have not been tested or verified. Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
This how-to guides you through the process to install Debian SID (unstable) on your Star64.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
Required:&lt;br /&gt;
*Star64 SBC&lt;br /&gt;
*Micro SDcard or Pine64 eMMC module&lt;br /&gt;
*USB serial converter with TTL output (No RS232 converter)&lt;br /&gt;
*Ability to network the Star64 to a computer over ethernet (Switch, Ethernet cables,...)&lt;br /&gt;
*Ability to write Micro SDcards or if you have only the eMMC module you also need the Pine64 eMMC USB programmer&lt;br /&gt;
*Computer running Linux&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update U-Boot and SPL==&lt;br /&gt;
The Star64 ships with an integrated 128 megabit (16 megabyte) SPI NOR flash. Loaded on this flash from the factory is firmware called U-Boot and SPL but an old version designed for the StarFive VisionFive 2 SBC which is incompatible with the Star64 mainline Linux kernel (&amp;gt;= 6.11). The SPL (Secondary Program Loader) is the software that loads U-Boot, which in turn loads the Linux kernel. It performs similar functions to the BIOS on x86 platforms.&lt;br /&gt;
&lt;br /&gt;
There are two main ways to update the SPI flash. The first uses the &amp;lt;code&amp;gt;flashcp&amp;lt;/code&amp;gt; command which requires the Star64 to first boot into an OS. This method requires an OS able to boot from the old u-boot like Pinix from fishwaldo but unfortunately it doesn't ship with flashcp. The other method requires only the ability to load U-Boot and uses TFTP and the U-Boot &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
===Preparing The TFTP Server and UART Connection===&lt;br /&gt;
====Linux====&lt;br /&gt;
First, on your computer (not the Star64) install a TFTP server and &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; if you do not already have it.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install tftpd-hpa wget&lt;br /&gt;
Next, check that the TFPT server is running using &amp;lt;code&amp;gt;systemctl&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo systemctl status tftpd-hpa&lt;br /&gt;
This should output somethng like &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;●&amp;lt;/span&amp;gt; tftpd-hpa.service - LSB: HPA's tftp server&lt;br /&gt;
      Loaded: loaded (/etc/init.d/tftpd-hpa; generated)&lt;br /&gt;
      Active: &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;active (running)&amp;lt;/span&amp;gt; since Sat 2023-06-10 20:51:28 CDT; 17min ago&lt;br /&gt;
        Docs: man:systemd-sysv-generator(8)&lt;br /&gt;
     Process: 1016 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=0/SUCCESS)&lt;br /&gt;
       Tasks: 1 (limit: 2306)&lt;br /&gt;
      Memory: 588.0K&lt;br /&gt;
         CPU: 23ms&lt;br /&gt;
      CGroup: /system.slice/tftpd-hpa.service&lt;br /&gt;
             └─1023 /usr/sbin/in.tftpd --listen --user tftp --address :69 --secure /srv/tftp&lt;br /&gt;
 &lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Starting tftpd-hpa.service - LSB: HPA's tftp server...&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm tftpd-hpa[1016]: Starting HPA's tftpd: in.tftpd.&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Started tftpd-hpa.service - LSB: HPA's tftp server.           &lt;br /&gt;
&lt;br /&gt;
If the service is not running, try&lt;br /&gt;
 $ sudo systemctl start tftpd-hpa&lt;br /&gt;
and check the status again. If it is still not running please join the #star64 channel in the Pine64 IRC, Discord, or Matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next in your home directory (&amp;lt;code&amp;gt;/home/user&amp;lt;/code&amp;gt;) create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
 $ mkdir /home/user/tftp_share&lt;br /&gt;
In this folder, download  the &amp;lt;code&amp;gt;u-boot-spl.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;u-boot.itb&amp;lt;/code&amp;gt; U-Boot image using &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt;. &lt;br /&gt;
 $ cd /srv/tftp&lt;br /&gt;
 $ sudo wget &amp;lt;nowiki&amp;gt;https://freeshell.de/e/riscv64/u-boot-20241028-428921_429908_429906_ocloaderase.zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ sudo unzip &amp;lt;nowiki&amp;gt;u-boot-20241028-428921_429908_429906_ocloaderase.zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before connecting to the Star64 and updating the firmware install screen, virtual console software, so it will be possible to communicate with the Star64.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install screen &lt;br /&gt;
Next connect your USB to TTL UART adapter to the computer and list the connected serial devices. &lt;br /&gt;
&lt;br /&gt;
Find the address of the TTL UART to USB adapter in the list (example: &amp;lt;code&amp;gt;ttyUSB0&amp;lt;/code&amp;gt;) and connect to the serial device with a baud rate of 115200. &lt;br /&gt;
 $ screen /dev/&amp;lt;Device Address&amp;gt; 115200&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Device Address&amp;gt;&amp;lt;/code&amp;gt; is the address found in the step above. &amp;lt;span class=&amp;quot;mw-customtoggle-device-address-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-device-address-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ screen /dev/ttyUSB0 115200&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
First, install two pieces of software, [https://pjo2.github.io/tftpd64/ tftpd64], a TFTP server for windows, and [http://ttssh2.osdn.jp/index.html.en Tera Term], a virtual console for interacting with the Star64 in U-Boot.&lt;br /&gt;
Next on your desktop, create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
In this folder, place the the &amp;lt;code&amp;gt;u-boot-spl.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;u-boot.itb&amp;lt;/code&amp;gt; U-Boot image from [u-boot-20241028-428921_429908_429906_ocloaderase.zip this Zip file].&lt;br /&gt;
&lt;br /&gt;
Next, load tftpd64 and configure the settings to have the &amp;quot;Current Directory&amp;quot; as the &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt; folder on the desktop and &amp;quot;Server interfaces&amp;quot; is set to &amp;lt;code&amp;gt;127.0.0.1 Software Loopback Interface 1&amp;lt;/code&amp;gt;. The path should look something like &amp;lt;code&amp;gt;C:\Users\${Username}\Desktop\tftp_share&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;${Username}&amp;lt;/code&amp;gt; is your username on Windows. &lt;br /&gt;
[[File:Star64 tftpd64 settings.png|none|500px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
TODO: Short intro how to use Putty.&lt;br /&gt;
&lt;br /&gt;
===Updating the SPI Flash===&lt;br /&gt;
&lt;br /&gt;
[[File:STAR64-serial-pins.jpg|400px|thumb|right|Serial pins on the STAR64 I/O connector]]&lt;br /&gt;
&lt;br /&gt;
Next, connect a TTL UART to USB cable to to the Star64 with the GND cable on pin 6 of the GPIO header, TXD on pin 8, and RXD on pin 10 as well as Ethernet. Note that depending on your UART adapter you may have to switch TXD and RXD. Now power on the Star64 and enter U-Boot. You will need to press a key to prevent it from autobooting and instead enter the U-Boot command prompt.&lt;br /&gt;
Once you are in the U-Boot shell set some environment variables. &lt;br /&gt;
First, set the IP address of the Star64 and connect it to the network using the &amp;lt;code&amp;gt;dhcp&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # dhcp &lt;br /&gt;
&lt;br /&gt;
Set an environment variable of the TFTP server to make future command easier. If you don't what the IP address of your TFTP server is you can see connected devices in your router's configuration which can usually be accessed by typing in the IP address found on the router itself.&lt;br /&gt;
 # setenv serverip &amp;lt;server IP&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;server IP&amp;lt;/code&amp;gt; is the IP address of the TFTP server. &amp;lt;span class=&amp;quot;mw-customtoggle-set-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-set-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # setenv serverip 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Ping the TFTP server from the Star64 to make sure the connection works where &amp;lt;code&amp;gt;&amp;lt;Server IP&amp;gt;&amp;lt;/code&amp;gt; refers to the IP address of your TFTP server.  Note that if you are hosting the TFTP server on Windows, you may need to configure Windows firewall to allow &amp;lt;code&amp;gt;‘File and Printer Sharing (Echo Request – ICMPv4 – In)’&amp;lt;/code&amp;gt;. This is only needed to test the network connection with &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; and not for the actual &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command so if &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; fails &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; may still succeed. &lt;br /&gt;
 # ping &amp;lt;server IP&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-customtoggle-ping-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-ping-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # ping 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # ping 192.168.1.199&lt;br /&gt;
Using ethernet@16030000 device&lt;br /&gt;
host 192.168.1.199 is alive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If ping fails, please try again or please join the #star64 channel in the Pine64 IRC, Discord, or Matrix for help. &lt;br /&gt;
&lt;br /&gt;
Finally, it is time to update the xSPI flash. &lt;br /&gt;
&lt;br /&gt;
First, initialize the flash with the &amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # sf probe&lt;br /&gt;
&lt;br /&gt;
The output should be something like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # sf probe&lt;br /&gt;
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next copy the SPL &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; file to memory address 0xa0000000 from our TFTP server.&lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:u-boot-spl.bin.normal.out&lt;br /&gt;
&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
Then use &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; to erase and update the SPI flash from memory. In this case we are copying from memory address 0xa0000000 which we wrote to earlier with an offset of 0x0.&lt;br /&gt;
&lt;br /&gt;
 # sf update 0xa0000000 0x0 $filesize&lt;br /&gt;
&lt;br /&gt;
Next, copy the U-Boot &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; binary to memory address 0xa0000000 from the TFTP server. &lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:u-boot.itb&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
&lt;br /&gt;
Finally, write the new U-Boot binary using &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; from memory address 0xa0000000 with an offset of 0x100000. &lt;br /&gt;
 # sf update 0xa0000000 0x100000 $filesize&lt;br /&gt;
&lt;br /&gt;
Reboot the Star64 and the changes should have taken effect.&lt;br /&gt;
&lt;br /&gt;
On your Linux host, disable the TFTP server again, when you don't need it anymore:&lt;br /&gt;
 $ sudo systemctl disable tftpd-hpa&lt;br /&gt;
&lt;br /&gt;
==Install Debian==&lt;br /&gt;
&lt;br /&gt;
===Prepare Debian Installation Media===&lt;br /&gt;
&lt;br /&gt;
Download the latest Debian installer for Risc-V targets:&lt;br /&gt;
&lt;br /&gt;
https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/riscv64/iso-cd/&lt;br /&gt;
&lt;br /&gt;
====Linux====&lt;br /&gt;
&lt;br /&gt;
Use [https://github.com/balena-io/etcher Balena Etcha] or dd to write the installer image to your SD card or eMMC drive.&lt;br /&gt;
&lt;br /&gt;
 $ sudo dd if=debian-testing-riscv64-netinst.iso of=/dev/sdX&lt;br /&gt;
&lt;br /&gt;
Where /dev/sdX is the path of your SD card or eMMC drive. Warning: Double check the device name! Otherwise you could accidentally overwrite your system drive!&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
Use [https://github.com/balena-io/etcher Balena Etcha] to write the installer image to your SD card or eMMC drive.&lt;br /&gt;
&lt;br /&gt;
===Boot into Debian Installer===&lt;br /&gt;
&lt;br /&gt;
Insert your SD card or eMMC drive into the Star64 and switch it on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow installation&lt;br /&gt;
&lt;br /&gt;
In the tasks selection, enable SSH server&lt;br /&gt;
&lt;br /&gt;
TODO: Notes on partitioning, how to use eMMC when installer is on eMMC.&lt;br /&gt;
&lt;br /&gt;
===Final Steps===&lt;br /&gt;
&lt;br /&gt;
Finish the installation&amp;quot; step of installer to ^a^n change 'screen' window over to command prompt in debian-installer and&lt;br /&gt;
 $ cp -rT /target/lib/linux-image-*-riscv64 /target/boot/efi/dtb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:Nuess0r/SandBox/Install_Debian&amp;diff=21634</id>
		<title>User:Nuess0r/SandBox/Install Debian</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:Nuess0r/SandBox/Install_Debian&amp;diff=21634"/>
		<updated>2024-11-03T15:24:03Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Initial stub&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Install Debian on Star64=&lt;br /&gt;
{{Under construction}}&lt;br /&gt;
{{Warning | Attempting these instructions may permanently brick (make nonfunctional) your device. Do not attempt unless you know what you are doing.}}&lt;br /&gt;
{{Warning | These instructions have not been tested or verified. Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
This how-to guides you through the process to install Debian SID (unstable) on your Star64.&lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
Required:&lt;br /&gt;
*Star64 SBC&lt;br /&gt;
*Micro SDcard or Pine64 eMMC module&lt;br /&gt;
*USB serial converter with TTL output (No RS232 converter)&lt;br /&gt;
*Ability to network the Star64 to a computer over ethernet (Switch, Ethernet cables,...)&lt;br /&gt;
*Ability to write Micro SDcards or if you have only the eMMC module you also need the Pine64 eMMC USB programmer&lt;br /&gt;
*Computer running Linux&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Update U-Boot and SPL==&lt;br /&gt;
The Star64 ships with an integrated 128 megabit (16 megabyte) SPI NOR flash. Loaded on this flash from the factory is firmware called U-Boot and SPL but an old version designed for the StarFive VisionFive 2 SBC which is incompatible with the Star64 mainline Linux kernel (&amp;gt;= 6.11). The SPL (Secondary Program Loader) is the software that loads U-Boot, which in turn loads the Linux kernel. It performs similar functions to the BIOS on x86 platforms.&lt;br /&gt;
&lt;br /&gt;
There are two main ways to update the SPI flash. The first uses the &amp;lt;code&amp;gt;flashcp&amp;lt;/code&amp;gt; command which requires the Star64 to first boot into an OS. This method requires an OS able to boot from the old u-boot like Pinix from fishwaldo but unfortunately it doesn't ship with flashcp. The other method requires only the ability to load U-Boot and uses TFTP and the U-Boot &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
===Preparing The TFTP Server and UART Connection===&lt;br /&gt;
====Linux====&lt;br /&gt;
First, on your computer (not the Star64) install a TFTP server and &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; if you do not already have it.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install tftpd-hpa wget&lt;br /&gt;
Next, check that the TFPT server is running using &amp;lt;code&amp;gt;systemctl&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo systemctl status tftpd-hpa&lt;br /&gt;
This should output somethng like &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;●&amp;lt;/span&amp;gt; tftpd-hpa.service - LSB: HPA's tftp server&lt;br /&gt;
      Loaded: loaded (/etc/init.d/tftpd-hpa; generated)&lt;br /&gt;
      Active: &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;active (running)&amp;lt;/span&amp;gt; since Sat 2023-06-10 20:51:28 CDT; 17min ago&lt;br /&gt;
        Docs: man:systemd-sysv-generator(8)&lt;br /&gt;
     Process: 1016 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=0/SUCCESS)&lt;br /&gt;
       Tasks: 1 (limit: 2306)&lt;br /&gt;
      Memory: 588.0K&lt;br /&gt;
         CPU: 23ms&lt;br /&gt;
      CGroup: /system.slice/tftpd-hpa.service&lt;br /&gt;
             └─1023 /usr/sbin/in.tftpd --listen --user tftp --address :69 --secure /srv/tftp&lt;br /&gt;
 &lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Starting tftpd-hpa.service - LSB: HPA's tftp server...&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm tftpd-hpa[1016]: Starting HPA's tftpd: in.tftpd.&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Started tftpd-hpa.service - LSB: HPA's tftp server.           &lt;br /&gt;
&lt;br /&gt;
If the service is not running, try&lt;br /&gt;
 $ sudo systemctl start tftpd-hpa&lt;br /&gt;
and check the status again. If it is still not running please join the #star64 channel in the Pine64 IRC, Discord, or Matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next in your home directory (&amp;lt;code&amp;gt;/home/user&amp;lt;/code&amp;gt;) create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
 $ mkdir /home/user/tftp_share&lt;br /&gt;
In this folder, download  the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image using &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt;. &lt;br /&gt;
 $ cd /srv/tftp&lt;br /&gt;
 $ sudo wget &amp;lt;nowiki&amp;gt;https://freeshell.de/e/riscv64/u-boot-20241028-428921_429908_429906_ocloaderase.zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ sudo unzip &amp;lt;nowiki&amp;gt;u-boot-20241028-428921_429908_429906_ocloaderase.zip&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before connecting to the Star64 and updating the firmware install minicom, virtual console software, so it will be possible to communicate with the Star64.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install minicom &lt;br /&gt;
Next connect your USB to TTL UART adapter to the computer and list the connected serial devices. &lt;br /&gt;
&lt;br /&gt;
Find the address of the TTL UART to USB adapter in the list (example: &amp;lt;code&amp;gt;ttyUSB0&amp;lt;/code&amp;gt;) and connect to the serial device with a baud rate of 115200. &lt;br /&gt;
 $ sudo minicom -D /dev/&amp;lt;Device Address&amp;gt; -b 115200&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Device Address&amp;gt;&amp;lt;/code&amp;gt; is the address found in the step above. &amp;lt;span class=&amp;quot;mw-customtoggle-device-address-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-device-address-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ sudo minicom -D /dev/ttyUSB0 -b 115200&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
First, install two pieces of software, [https://pjo2.github.io/tftpd64/ tftpd64], a TFTP server for windows, and [http://ttssh2.osdn.jp/index.html.en Tera Term], a virtual console for interacting with the Star64 in U-Boot.&lt;br /&gt;
Next on your desktop, create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
In this folder, place the the &amp;lt;code&amp;gt;u-boot-spl.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;u-boot.itb&amp;lt;/code&amp;gt; U-Boot image from [u-boot-20241028-428921_429908_429906_ocloaderase.zip this Zip file].&lt;br /&gt;
&lt;br /&gt;
Next, load tftpd64 and configure the settings to have the &amp;quot;Current Directory&amp;quot; as the &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt; folder on the desktop and &amp;quot;Server interfaces&amp;quot; is set to &amp;lt;code&amp;gt;127.0.0.1 Software Loopback Interface 1&amp;lt;/code&amp;gt;. The path should look something like &amp;lt;code&amp;gt;C:\Users\${Username}\Desktop\tftp_share&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;${Username}&amp;lt;/code&amp;gt; is your username on Windows. &lt;br /&gt;
[[File:Star64 tftpd64 settings.png|none|500px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
TODO: Short intro how to use Putty.&lt;br /&gt;
&lt;br /&gt;
===Updating the SPI Flash===&lt;br /&gt;
&lt;br /&gt;
[[File:STAR64-serial-pins.jpg|400px|thumb|right|Serial pins on the STAR64 I/O connector]]&lt;br /&gt;
&lt;br /&gt;
Next, connect a TTL UART to USB cable to to the Star64 with the GND cable on pin 6 of the GPIO header, TXD on pin 8, and RXD on pin 10 as well as Ethernet. Note that depending on your UART adapter you may have to switch TXD and RXD. Now power on the Star64 and enter U-Boot. You will need to press a key to prevent it from autobooting and instead enter the U-Boot command prompt.&lt;br /&gt;
Once you are in the U-Boot shell set some environment variables. &lt;br /&gt;
First, set the IP address of the Star64 and connect it to the network using the &amp;lt;code&amp;gt;dhcp&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # dhcp &lt;br /&gt;
&lt;br /&gt;
Set an environment variable of the TFTP server to make future command easier. If you don't what the IP address of your TFTP server is you can see connected devices in your router's configuration which can usually be accessed by typing in the IP address found on the router itself.&lt;br /&gt;
 # setenv serverip &amp;lt;server IP&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;server IP&amp;lt;/code&amp;gt; is the IP address of the TFTP server. &amp;lt;span class=&amp;quot;mw-customtoggle-set-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-set-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # setenv serverip 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Ping the TFTP server from the Star64 to make sure the connection works where &amp;lt;code&amp;gt;&amp;lt;Server IP&amp;gt;&amp;lt;/code&amp;gt; refers to the IP address of your TFTP server.  Note that if you are hosting the TFTP server on Windows, you may need to configure Windows firewall to allow &amp;lt;code&amp;gt;‘File and Printer Sharing (Echo Request – ICMPv4 – In)’&amp;lt;/code&amp;gt;. This is only needed to test the network connection with &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; and not for the actual &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command so if &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; fails &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; may still succeed. &lt;br /&gt;
 # ping &amp;lt;server IP&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-customtoggle-ping-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-ping-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # ping 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # ping 192.168.1.199&lt;br /&gt;
Using ethernet@16030000 device&lt;br /&gt;
host 192.168.1.199 is alive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If ping fails, please try again or please join the #star64 channel in the Pine64 IRC, Discord, or Matrix for help. &lt;br /&gt;
&lt;br /&gt;
Finally, it is time to update the xSPI flash. &lt;br /&gt;
&lt;br /&gt;
First, initialize the flash with the &amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # sf probe&lt;br /&gt;
The output should be something like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # sf probe&lt;br /&gt;
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Next copy the SPL &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; file to memory address 0xa0000000 from our TFTP server.&lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:[name of fishwaldo spl file]&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
Then use &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; to erase and update the SPI flash from memory. In this case we are copying from memory address 0xa0000000 which we wrote to earlier with an offset of 0x0.&lt;br /&gt;
&lt;br /&gt;
 # sf update 0xa0000000 0x0 $filesize&lt;br /&gt;
&lt;br /&gt;
Next, copy the U-Boot &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; binary to memory address 0xa0000000 from the TFTP server. &lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:[name of fishwaldo uboot image]&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
&lt;br /&gt;
Finally, write the new U-Boot binary using &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; from memory address 0xa0000000 with an offset of 0x100000. &lt;br /&gt;
 # sf update 0xa0000000 0x100000 $filesize&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reboot the Star64 and the changes should have taken effect.&lt;br /&gt;
&lt;br /&gt;
On your Linux host, disable the TFTP server again, when you don't need it anymore:&lt;br /&gt;
 $ sudo systemctl disable tftpd-hpa&lt;br /&gt;
&lt;br /&gt;
==Install Debian==&lt;br /&gt;
&lt;br /&gt;
===Prepare Debian Installation Media===&lt;br /&gt;
&lt;br /&gt;
https://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/riscv64/iso-cd/&lt;br /&gt;
&lt;br /&gt;
====Linux====&lt;br /&gt;
dd if=debian-testing-riscv64-netinst.iso of=/dev/sdX&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
Use etcher&lt;br /&gt;
&lt;br /&gt;
===Boot into Debian Installer===&lt;br /&gt;
&lt;br /&gt;
Follow installation&lt;br /&gt;
&lt;br /&gt;
In the tasks selection, enable SSH server&lt;br /&gt;
&lt;br /&gt;
TODO: Notes on partitioning, how to use eMMC when installer is on eMMC.&lt;br /&gt;
&lt;br /&gt;
===Final Steps===&lt;br /&gt;
&lt;br /&gt;
Finish the installation&amp;quot; step of installer to ^a^n change 'screen' window over to command prompt in debian-installer and&lt;br /&gt;
 $ cp -rT /target/lib/linux-image-*-riscv64 /target/boot/efi/dtb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/Update_XSPI_Flash_SPL_and_U-Boot&amp;diff=21633</id>
		<title>User:RemDogKap/SandBox/Update XSPI Flash SPL and U-Boot</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/Update_XSPI_Flash_SPL_and_U-Boot&amp;diff=21633"/>
		<updated>2024-11-03T00:24:06Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Fix u-boot setenv command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
{{Warning | Attempting these instructions may permanently brick (make nonfunctional) your device. Do not attempt unless you know what you are doing.}}&lt;br /&gt;
{{Warning | These instructions have not been tested or verified. Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
The Star64 ships with an integrated 128 megabit (16 megabyte) xSPI NOR flash. Loaded on this flash from the factory is firmware called U-Boot and SPL but an old version designed for the StarFive VisionFive 2 SBC which may have incompatibilities with the Star64. The SPL or Secondary Program Loader is the software that loads U-Boot, which in turn loads the Linux kernel. The firmware on this flash is known as Das U-Boot, commonly just U-Boot which is an open-source primary boot loader. It performs similar functions to the BIOS on x86 platforms.&lt;br /&gt;
&lt;br /&gt;
There are two main ways to update the xSPI flash. The first uses the &amp;lt;code&amp;gt;flashcp&amp;lt;/code&amp;gt; command which requires the Star64 to first boot into an OS. This method may not work on older versions of [firmware, OS, something else????]. The other method requires only the ability to load U-Boot and uses TFTP and the U-Boot &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
Required:&lt;br /&gt;
*Star64 SBC&lt;br /&gt;
*Computer running Linux, MacOS, or Windows&lt;br /&gt;
Possibly required:&lt;br /&gt;
*Ability to communicate over TTL (transistor to transistor logic) UART&lt;br /&gt;
*Ability to network the Star64 to a computer over ethernet&lt;br /&gt;
&lt;br /&gt;
==flashcp==&lt;br /&gt;
First, connect to your Star64 over UART or with a mouse, keyboard, and monitor. &lt;br /&gt;
Next, install the &amp;lt;code&amp;gt;mtd-utils&amp;lt;/code&amp;gt; package onto the Star64 if not already installed. This package is a set of tools that allow access to raw flash storage devices such as the xSPI flash. Also install &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; if not already installed. These instructions assume that you are using the &amp;lt;code&amp;gt;deb&amp;lt;/code&amp;gt; package manager. &lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install mtb-utils wget&lt;br /&gt;
&lt;br /&gt;
Next, using &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; download the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image onto the.&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo SPL file goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo U-Boot image goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, print out the list of MTD (Memory Technology Device) raw flash devices using &amp;lt;code&amp;gt;cat&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ cat /proc/mtd&lt;br /&gt;
&lt;br /&gt;
The output should look something like this: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dev:    size   erasesize  name&lt;br /&gt;
mtd0: 00020000 00001000 &amp;quot;spl&amp;quot;&lt;br /&gt;
mtd1: 00300000 00001000 &amp;quot;uboot&amp;quot;&lt;br /&gt;
mtd2: 00100000 00001000 &amp;quot;data&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, write the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image. to the respective partitions using &amp;lt;code&amp;gt;flashcp&amp;lt;/code&amp;gt;, a command which writes to raw flash devices with more protections than &amp;lt;code&amp;gt;dd&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ flashcp -v [fishwaldo spl file name here].bin.normal.out /dev/&amp;lt;SPL Partition&amp;gt;&lt;br /&gt;
 $ flashcp -v [fishwaldo uboot img file name here].img /dev/&amp;lt;U-Boot Partition&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;SPL Partition&amp;gt;&amp;lt;/code&amp;gt; is the partition name found under the &amp;quot;dev&amp;quot; column for the row &amp;quot;spl&amp;quot; from the cat printout, in this case &amp;lt;code&amp;gt;mtd0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;U-Boot Partition&amp;gt;&amp;lt;/code&amp;gt; is the partition name found under the &amp;quot;dev&amp;quot; column for the row &amp;quot;uboot&amp;quot; in the cat printout, in this case &amp;lt;code&amp;gt;mtd1&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point your xSPI flash has been rewritten and only a system restart is needed for the changes to take effect. &lt;br /&gt;
&lt;br /&gt;
==tftpboot==&lt;br /&gt;
The &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; method uses a TFTP (Trivial File Transfer Protocol, a protocol which allows for basic file transfer functionality without authentication) server to transfer the SPL file and U-Boot image from a host computer to the Star64 running U-Boot and using the &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command and then written to flash using the &amp;lt;code&amp;gt;sf&amp;lt;/code&amp;gt; command which is a U-Boot command used to access SPI flash. &lt;br /&gt;
&lt;br /&gt;
===Preparing The TFTP Server===&lt;br /&gt;
====Linux====&lt;br /&gt;
First, on your computer (not the Star64) install a TFTP server and &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; if you do not already have it.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install tftpd-hpa wget&lt;br /&gt;
Next, check that the TFPT server is running using &amp;lt;code&amp;gt;systemctl&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo systemctl status tftpd-hpa&lt;br /&gt;
This should output somethng like &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;●&amp;lt;/span&amp;gt; tftpd-hpa.service - LSB: HPA's tftp server&lt;br /&gt;
      Loaded: loaded (/etc/init.d/tftpd-hpa; generated)&lt;br /&gt;
      Active: &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;active (running)&amp;lt;/span&amp;gt; since Sat 2023-06-10 20:51:28 CDT; 17min ago&lt;br /&gt;
        Docs: man:systemd-sysv-generator(8)&lt;br /&gt;
     Process: 1016 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=0/SUCCESS)&lt;br /&gt;
       Tasks: 1 (limit: 2306)&lt;br /&gt;
      Memory: 588.0K&lt;br /&gt;
         CPU: 23ms&lt;br /&gt;
      CGroup: /system.slice/tftpd-hpa.service&lt;br /&gt;
             └─1023 /usr/sbin/in.tftpd --listen --user tftp --address :69 --secure /srv/tftp&lt;br /&gt;
 &lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Starting tftpd-hpa.service - LSB: HPA's tftp server...&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm tftpd-hpa[1016]: Starting HPA's tftpd: in.tftpd.&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Started tftpd-hpa.service - LSB: HPA's tftp server.           &lt;br /&gt;
&lt;br /&gt;
If the service is not running, try&lt;br /&gt;
 $ sudo systemctl start tftpd-hpa&lt;br /&gt;
and check the status again. If it is still not running please join the #star64 channel in the Pine64 IRC, Discord, or Matrix.&lt;br /&gt;
&lt;br /&gt;
Next, edit the configuration file for &amp;lt;code&amp;gt;tftpd-hpa&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo nano /etc/default/tftpd-hpa&lt;br /&gt;
by default it should look like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TFTP_USERNAME=&amp;quot;tftp&amp;quot;&lt;br /&gt;
TFTP_DIRECTORY=&amp;quot;/srv/tftp&amp;quot;&lt;br /&gt;
TFTP_ADDRESS=&amp;quot;:69&amp;quot;&lt;br /&gt;
TFTP_OPTIONS=&amp;quot;--secure&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change &amp;lt;code&amp;gt;TFTP_DIRECTORY=&amp;quot;/srv/tftp&amp;quot;&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;TFTP_DIRECTORY=&amp;quot;/home/user/tftp_share&amp;quot;&amp;lt;/code&amp;gt;. The final file should look like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TFTP_USERNAME=&amp;quot;tftp&amp;quot;&lt;br /&gt;
TFTP_DIRECTORY=&amp;quot;/home/&amp;lt;user&amp;gt;/tftp_share&amp;quot;&lt;br /&gt;
TFTP_ADDRESS=&amp;quot;:69&amp;quot;&lt;br /&gt;
TFTP_OPTIONS=&amp;quot;--secure&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; is your username. &lt;br /&gt;
After that, save and close the file then restart the TFTP server.&lt;br /&gt;
 $ sudo systemctl restart tftpd-hpa&lt;br /&gt;
&lt;br /&gt;
Next in your home directory (&amp;lt;code&amp;gt;/home/user&amp;lt;/code&amp;gt;) create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
 $ mkdir /home/user/tftp_share&lt;br /&gt;
In this folder, download  the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image using &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt;. &lt;br /&gt;
 $ cd /home/user/tftp_share&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo SPL file goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo U-Boot image goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before connecting to the Star64 and updating the firmware install minicom, virtual console software, so it will be possible to communicate with the Star64.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install minicom &lt;br /&gt;
Next connect the your USB to TTL UART adapter to the computer and list the connected serial devices. &lt;br /&gt;
 $ dmesg | grep tty&lt;br /&gt;
Example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
to be&lt;br /&gt;
filled in&lt;br /&gt;
later &lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Find the address of the TTL UART to USB adapter in the list (example: &amp;lt;code&amp;gt;ttyUSB0&amp;lt;/code&amp;gt;) and connect to the serial device with a baud rate of 115200. &lt;br /&gt;
 $ sudo minicom -D /dev/&amp;lt;Device Address&amp;gt; -b 115200&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Device Address&amp;gt;&amp;lt;/code&amp;gt; is the address found in the step above. &amp;lt;span class=&amp;quot;mw-customtoggle-device-address-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-device-address-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ sudo minicom -D /dev/ttyUSB0 -b 115200&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
First, install two pieces of software, [https://pjo2.github.io/tftpd64/ tftpd64], a TFTP server for windows, and [http://ttssh2.osdn.jp/index.html.en Tera Term], a virtual console for interacting with the Star64 in U-Boot.&lt;br /&gt;
Next on your desktop, create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
In this folder, download  the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image from [https://pine64.my-ho.st:8443/ here].&lt;br /&gt;
&lt;br /&gt;
Next, load tftpd64 and configure the settings to have the &amp;quot;Current Directory&amp;quot; as the &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt; folder on the desktop and &amp;quot;Server interfaces&amp;quot; is set to &amp;lt;code&amp;gt;127.0.0.1 Software Loopback Interface 1&amp;lt;/code&amp;gt;. The path should look something like &amp;lt;code&amp;gt;C:\Users\${Username}\Desktop\tftp_share&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;${Username}&amp;lt;/code&amp;gt; is your username on Windows. &lt;br /&gt;
[[File:Star64 tftpd64 settings.png|none|500px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
===Updating the SPI Flash===&lt;br /&gt;
&lt;br /&gt;
Next, connect a TTL UART to USB cable to to the Star64 with the GND cable on pin 6 of the GPIO header, TXD on pin 8, and RXD on pin 10 as well as ethernet. Note that depending on your UART adapter you may have to switch TXD and RXD. Now power on the Star64 and enter U-Boot. You will need to press a key to prevent it from autobooting and instead enter the U-Boot command prompt.&lt;br /&gt;
Once you are in the U-Boot shell set some environment variables. &lt;br /&gt;
First, set the IP address of the Star64 and connect it to the network using the &amp;lt;code&amp;gt;dhcp&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # dhcp &lt;br /&gt;
&lt;br /&gt;
Set an environment variable of the TFTP server to make future command easier. If you don't what the IP address of your TFTP server is you can see connected devices in your router's configuration which can usually be accessed by typing in the IP address found on the router itself.&lt;br /&gt;
 # setenv serverip &amp;lt;server IP&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;server IP&amp;lt;/code&amp;gt; is the IP address of the TFTP server. &amp;lt;span class=&amp;quot;mw-customtoggle-set-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-set-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # setenv serverip 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Ping the TFTP server from the Star64 to make sure the connection works where &amp;lt;code&amp;gt;&amp;lt;Server IP&amp;gt;&amp;lt;/code&amp;gt; refers to the IP address of your TFTP server.  Note that if you are hosting the TFTP server on Windows, you may need to configure Windows firewall to allow &amp;lt;code&amp;gt;‘File and Printer Sharing (Echo Request – ICMPv4 – In)’&amp;lt;/code&amp;gt;. This is only needed to test the network connection with &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; and not for the actual &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command so if &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; fails &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; may still succeed. &lt;br /&gt;
 # ping &amp;lt;server IP&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-customtoggle-ping-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-ping-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # ping 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # ping 192.168.1.199&lt;br /&gt;
Using ethernet@16030000 device&lt;br /&gt;
host 192.168.1.199 is alive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If ping fails, please try again or please join the #star64 channel in the Pine64 IRC, Discord, or Matrix for help. &lt;br /&gt;
&lt;br /&gt;
Finally, it is time to update the xSPI flash. &lt;br /&gt;
&lt;br /&gt;
First, initialize the flash with the &amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # sf probe&lt;br /&gt;
The output should be something like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # sf probe&lt;br /&gt;
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Next copy the SPL &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; file to memory address 0xa0000000 from our TFTP server.&lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:[name of fishwaldo spl file]&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
Then use &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; to erase and update the SPI flash from memory. In this case we are copying from memory address 0xa0000000 which we wrote to earlier with an offset of 0x0.&lt;br /&gt;
&lt;br /&gt;
 # sf update 0xa0000000 0x0 $filesize&lt;br /&gt;
&lt;br /&gt;
This should produce an output like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
To be &lt;br /&gt;
filled&lt;br /&gt;
in later&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, copy the U-Boot &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; binary to memory address 0xa0000000 from the TFTP server. &lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:[name of fishwaldo uboot image]&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
&lt;br /&gt;
Finally, write the new U-Boot binary using &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; from memory address 0xa0000000 with an offset of 0x100000. &lt;br /&gt;
 # sf update 0xa0000000 0x100000 $filesize&lt;br /&gt;
&lt;br /&gt;
This should produce an output like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
To be &lt;br /&gt;
filled&lt;br /&gt;
in later&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the Star64 and the changes should have taken effect.&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=21632</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=21632"/>
		<updated>2024-11-02T21:23:43Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Adding PC fan adapter cable as alternative for fan connector modification&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*Medium heatsink (N.B. Any of the three available heatsinks will fit in the NAS Case but the medium one suites best for the NAS Case airflow)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch or a [https://www.tindie.com/products/brain4free/star64-fan-adapter-cable/ PC fan adapter cable] (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Follow [[User:RemDogKap/SandBox/First_Setup|First Setup]] to install an operating system and test if it boots.&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
[[File:STAR64-HDD-power-cable-remove-pins.jpg|200px|thumb|right|Modifying the HDD power cable for STAR64]]&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components.&lt;br /&gt;
&lt;br /&gt;
As the HDD power connector (U26) on the STAR64 revision 1.0 and 1.1 is reversed compared to the ROCKPro64 you have to modify the SATA power cable. Use a flat headed screw driver to push down the retention lever of the crimp contact and pull it out of the connector housing at the same time. Take your time, it's a bit fiddly and if you use too much force you will damage the crimp contact and you will need to order replacements.&lt;br /&gt;
&lt;br /&gt;
First remove the two outer black and yellow pin, insert them again in the other position. Repeat with the two inner pins. Black and yellow cables are now swapped and ready for the STAR64.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
Test that your STAR64 boots from eMMC before installing it in the case as the DIP switch to select the boot mode is below the HDD cage and is not reachable without partial disassembly.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-1.jpg|300px|thumb|left|Install the STAR64 by placing it with the USB connectors and power button first with a slight angle into the case.]]&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-2.jpg|300px|thumb|right|Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.]]&lt;br /&gt;
&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and micro SD card. &lt;br /&gt;
&lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. Install it by placing it with the USB connectors and power button first with a slight angle into the case. Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 4. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:STAR64-fan-parts.jpg|200px|thumb|left|The 80&amp;amp;nbsp;mm fan and JST connector parts]]&lt;br /&gt;
[[File:STAR64-fan-wiring.jpg|200px|thumb|right|Correct wiring of the fan cable to socket U25]]&lt;br /&gt;
[[File:Star64-fan-adapter-cable.jpg|200px|thumb|right|Alternatively use an adapter cable for 3 or 4 pin PC fans]]&lt;br /&gt;
The eMMC is fitted into its respective placement on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
When you don't bought the PC fan adapter cable or using another 12 V fan then you have to mount the 3 pin, 2 mm pitch JST connector before mounting the fan into the NAS case.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for positive pressure, blowing air into the case rather than taking air out. A positive pressure configuration both allows a filter to be placed over the intake to prevent dust ingress and the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades. For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case.&lt;br /&gt;
Plug in the fan at this stage of the installation (Socket U25) and route the cable at the bottom of the front of the case.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 5. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:Star64-map-connectors.svg|200px|thumb|left|U26 is the DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:STAR64-NAS-internal-wiring.jpg|300px|thumb|right|PCIe to SATA installed and cables routed through the case]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 6. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:STAR64-NAS-with-hdd.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
[[File:STAR64-NAS-front-io.jpg|300px|thumb|left|Front IO with power button]]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64-fan-adapter-cable.jpg&amp;diff=21631</id>
		<title>File:Star64-fan-adapter-cable.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64-fan-adapter-cable.jpg&amp;diff=21631"/>
		<updated>2024-11-02T21:08:41Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Add source link and category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Adapter cable to connect normal computer fans (3 or 4 pin connector) to a Star64&lt;br /&gt;
&lt;br /&gt;
Available from [https://www.tindie.com/products/brain4free/star64-fan-adapter-cable/ tindie.com]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64-fan-adapter-cable.jpg&amp;diff=21630</id>
		<title>File:Star64-fan-adapter-cable.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64-fan-adapter-cable.jpg&amp;diff=21630"/>
		<updated>2024-11-02T21:06:26Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Adapter cable to connect normal computer fans (3 or 4 pin connector) to a Star64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Adapter cable to connect normal computer fans (3 or 4 pin connector) to a Star64&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64_tftpd64_settings.png&amp;diff=21554</id>
		<title>File:Star64 tftpd64 settings.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64_tftpd64_settings.png&amp;diff=21554"/>
		<updated>2024-09-23T20:50:14Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Added to STAR64 category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
screenshot of settings for tftpd64 server on windows to flash U-Boot to Star64&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD|PD}}&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64-map-connectors.svg&amp;diff=21553</id>
		<title>File:Star64-map-connectors.svg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64-map-connectors.svg&amp;diff=21553"/>
		<updated>2024-09-23T20:48:14Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Added to STAR64 category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A map of the STAR64 connectors&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=STAR64&amp;diff=20618</id>
		<title>STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=STAR64&amp;diff=20618"/>
		<updated>2023-09-06T18:19:27Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Add NAS case compatibility&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Star64.jpg|400px|thumb|right|The STAR64]]&lt;br /&gt;
&lt;br /&gt;
The '''Star64''' is a RISC-V based Single Board Computer powered by StarFive JH7110 Quad-Core SiFive U74 64-Bit CPU, Imagination Technology BX-4-32 GPU and supports up to 8GB 1866MHz LPDDR4 memory. It provides an eMMC module socket, MicroSD Card slot, PCI-e, Pi-2 Bus, USB 3.0, and many other peripheral interfaces for makers to integrate with sensors and other devices.&lt;br /&gt;
&lt;br /&gt;
[[File:RISC-V.png|600px|]]&lt;br /&gt;
&lt;br /&gt;
== Software releases ==&lt;br /&gt;
&lt;br /&gt;
The releases are still in '''alpha''' state and are only fit for testing purposes. &lt;br /&gt;
&lt;br /&gt;
* [https://github.com/Fishwaldo/meta-pine64 A Set of Images built with Yocto for commandline, weston and plasma - Where possible, GPU/VPU acceleration is enabled.]&lt;br /&gt;
* [https://forum.pine64.org/showthread.php?tid=18276 Armbian]&lt;br /&gt;
* [https://sr.ht/~fgaz/nixos-star64/ NixOS], based on the [https://github.com/NixOS/nixos-hardware/tree/master/pine64/star64 the nixos-hardware configuration]&lt;br /&gt;
* [https://www.hackster.io/lupyuen/rtos-on-a-risc-v-sbc-star64-jh7110-apache-nuttx-2a7429 Apache NuttX RTOS]&lt;br /&gt;
&lt;br /&gt;
== SoC and Memory Specification ==&lt;br /&gt;
* Based on [https://www.starfivetech.com/en/site/soc StarFive JH7110]&lt;br /&gt;
&lt;br /&gt;
[[File:StarFive.jpg|right]]&lt;br /&gt;
[[File:JH7110_Block_Diagram.png|800px]]&lt;br /&gt;
&lt;br /&gt;
=== CPU Architecture ===&lt;br /&gt;
* [https://www.sifive.com/cores/u74 Quad-core U74 up to 1.5GHz CPU]&lt;br /&gt;
[[File:SiFive.jpg|right|200px]]&lt;br /&gt;
* Fully compliant with the RISC-V ISA specification&lt;br /&gt;
* 64-bit RISC-V Application Core&lt;br /&gt;
* 32KB L1 I-cache with ECC&lt;br /&gt;
* 32KB L1 D-cache with ECC&lt;br /&gt;
* 8 Region Physical Memory Protection&lt;br /&gt;
* Virtual Memory support with up to 47 Physical Address bits&lt;br /&gt;
* Integrated up to 2MB L2 Cache with ECC&lt;br /&gt;
* includes RV64IMAC S7 monitor core, 16 KB L1 I-Cache with ECC, 8 KB DTIM with ECC&lt;br /&gt;
* 32-bit RISC-V CPU core (E24) for real time control, support RV32IMFC RISC-V ISA&lt;br /&gt;
&lt;br /&gt;
=== GPU Architecture ===&lt;br /&gt;
* [https://www.imaginationtech.com/product/img-bxe-4-32-mc4/ Imagination Technology BXE-4-32 up to 600Mhz GPU]&lt;br /&gt;
[[File:imgtech.png|right|200px]]&lt;br /&gt;
* Support OpenCL 3.0&lt;br /&gt;
* Support OpenGL ES 3.2&lt;br /&gt;
* Support Vulkan 1.2&lt;br /&gt;
* Tile-based deferred rendering architecture for 3D graphics workloads, with concurrent processing of multiple tiles&lt;br /&gt;
* Support for GPU visualization, up to 8 virtual GPUs&lt;br /&gt;
* On fly frame buffer compression and decompression (TFBC) algorithm&lt;br /&gt;
* Performance: 128 FP32 FLOPs/Clock, 256 FP16 FLOPs/Clock&lt;br /&gt;
&lt;br /&gt;
=== System Memory ===&lt;br /&gt;
* LPDDR4 RAM Memory Variants: 2GB, 4GB and 8GB.&lt;br /&gt;
&lt;br /&gt;
== Board Features ==&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
* Digital Video output up to 4K@30Hz&lt;br /&gt;
* 4K HDR @ 60fps&lt;br /&gt;
* H.264/AVC Base/Main/High/High10 profile @ level 5.1; up to 4K&amp;amp;times;2K @ 60fps&lt;br /&gt;
* H.265/HEVC Main/Main10 profile @ level 5.1 High-tier; up to 4K&amp;amp;times;2K @ 60fps&lt;br /&gt;
&lt;br /&gt;
=== Audio ===&lt;br /&gt;
* 3.5mm audio Jack&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
* Single or Dual 10/100/1000Mbps Ethernet &lt;br /&gt;
* 2.4GHz/5Ghz MIMO WiFi 802.11 b/g/n/ac with Bluetooth 5.2&lt;br /&gt;
&lt;br /&gt;
=== Storage ===&lt;br /&gt;
* on-board 128Mbit (16MByte) XSPI NOR flash memory - bootable&lt;br /&gt;
* microSD - bootable, supports SDHC and SDXC and storage up to 256GB&lt;br /&gt;
* eMMC - bootable (optional eMMC Module)&lt;br /&gt;
* 1&amp;amp;times; USB3.0 Dedicated Host port&lt;br /&gt;
* 3&amp;amp;times; USB2.0 Host port&lt;br /&gt;
&lt;br /&gt;
=== Expansion Ports ===&lt;br /&gt;
* PCIe 2.0 &amp;amp;times;1 lane&lt;br /&gt;
* 2&amp;amp;times;20 pins &amp;quot;Pi2&amp;quot; GPIO Header&lt;br /&gt;
** The JH7110 SoC supports full multiplexing of its GPIO pins. This means any non-power/ground pin can be configured to any function outlined in Table 4-2 of the SoC datasheet.&lt;br /&gt;
* 4 lane MiPi DSI port for LCD panel&lt;br /&gt;
* 4 lane MiPi CSI port for camera module&lt;br /&gt;
&lt;br /&gt;
== Board Information, Schematics and Certifications ==&lt;br /&gt;
Model &amp;quot;A&amp;quot; Baseboard Dimensions: 133mm&amp;amp;times;80mm&amp;amp;times;19mm&lt;br /&gt;
&lt;br /&gt;
Input Power: DC 12V @ 3A 5.5mmOD/2.1mmID center-positive Barrel DC Jack connector&lt;br /&gt;
&lt;br /&gt;
Schematic:&lt;br /&gt;
* [https://files.pine64.org/doc/star64/Star64_Schematic_V1.1_20230504.pdf STAR64 Schematic 20230504 v1.1 (Production Released version)]&lt;br /&gt;
* [https://files.pine64.org/doc/star64/Star64_Schematic_V1.0_20220721.pdf STAR64 Schematic 20220721 v1.0 (Prototype Board)]&lt;br /&gt;
&lt;br /&gt;
Certifications:&lt;br /&gt;
* Disclaimer: Please note that PINE64 SBC is not a &amp;quot;final&amp;quot; product and in general certification is not necessary. However, PINE64 still submits the SBC for FCC, CE, and ROHS certifications and obtain the certificates to prove that the SBC board can pass the testing. Please note, a final commercial product needs to perform its own testing and obtain its own certificate.&lt;br /&gt;
* Not yet available&lt;br /&gt;
&lt;br /&gt;
== Datasheets for Components and Peripherals ==&lt;br /&gt;
&lt;br /&gt;
Star64 JH7110 SoC information:&lt;br /&gt;
* [https://doc-en.rvspace.org/JH7110/PDF/JH7110_Product_Brief.pdf StarFive JH7110 SoC Product Brief]&lt;br /&gt;
* [https://doc-en.rvspace.org/JH7110/PDF/JH7110_Datasheet.pdf StarFive JH7110 SoC Datasheet]&lt;br /&gt;
* [https://doc-en.rvspace.org/JH7110/TRM/ StarFive JH7110 SoC Technical Reference Manual]&lt;br /&gt;
&lt;br /&gt;
X-Power PMU information:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/star64/AXP15060%20datasheet%20V0.1.pdf X-Power AXP15060 Datasheet V0.1]&lt;br /&gt;
&lt;br /&gt;
LPDDR4 (200 Balls) SDRAM:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/rockpro64/SM512M32Z01MD2BNP(200BALL).pdf Micron LPDDR4 Mobile LPDDR4 Datasheet]&lt;br /&gt;
&lt;br /&gt;
eMMC information:&lt;br /&gt;
* [https://files.pine64.org/doc/rock64/PINE64_eMMC_Module_20170719.pdf PINE64 eMMC module schematic]&lt;br /&gt;
* [https://files.pine64.org/doc/rock64/usb%20emmc%20module%20adapter%20v2.pdf PINE64 USB adapter for eMMC module V2 schematic]&lt;br /&gt;
* [https://files.pine64.org/doc/rock64/USB%20adapter%20for%20eMMC%20module%20PCB.tar PINE64 USB adapter for eMMC module PCB in JPEG]&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/pine64/E-00517%20FORESEE_eMMC_NCEMAM8B-16G%20SPEC.pdf 16GB Foresee eMMC Datasheet]&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/pine64/SDINADF4-16-128GB-H%20data%20sheet%20v1.13.pdf 32GB/64GB/128GB SanDisk eMMC Datasheet]&lt;br /&gt;
&lt;br /&gt;
SPI NOR Flash information:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/star64/gd25lq128e_rev1.0_20210513.pdf GigaDevice 128Mb XSPI-Flash Datasheet]&lt;br /&gt;
&lt;br /&gt;
Ethernet related info:&lt;br /&gt;
* TBA&lt;br /&gt;
&lt;br /&gt;
WiFi/BT module info:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/star64/Fn-Link_6252B-UUB_datasheet_V1.1_20220329.pdf Fn-Link 6252B 11AC Dual Band 2T2R WiFi + Bluetooth5.2 Datasheet]&lt;br /&gt;
&lt;br /&gt;
== Bringup Notes ==&lt;br /&gt;
&lt;br /&gt;
# The USB over-current protection is not wired up correctly to the USB ports on Star64. The default Starfive Kernel will disable USB on boot as it belives the ports are overcurrent. This ugly hack works around it: https://github.com/Fishwaldo/Star64_linux/commit/2634a13ecfa1fa5c232ec2b9f6a6b6b0d9d66898&lt;br /&gt;
# The Wifi Chip (RTL8852BU) is not supported in the kernel. There is a Vendor Driver that is imported in the kernel at https://github.com/Fishwaldo/Star64_linux/tree/Star64_devel/drivers/staging/rtl8852bu but it really needs a cleanup. It does BUG_ON at boot, but wifi is confirmed working. &lt;br /&gt;
# HDMI can be finicky. 4K Monitors are known to have a issue. This is also relevant for VisionFive2&lt;br /&gt;
# Some kernels/distributions do not detect the total memory correctly. This is due to the way u-boot is configured. Currently, u-boot reads the memory from the eeprom on the Star64, and updates the dtb file before booting the kernel. Distributions that boot differently may not get the updated dtb file with the correct memory entry. You can work around this by recompiling the DTB with the correct memory for your board&lt;br /&gt;
# VisionFive2 Kernels will only offer limited functionality on the Star64 - Mainly USB, Wifi and PCI will not work.&lt;br /&gt;
# The 4-pin 12 volt JST-XH-4A connector found on the Star64 is incompatible with the dual SATA power adapter intended for the ROCKPro64. The connector on the Star64 is rotated 180 degrees to the one on the ROCKPro64, resulting in the cable receiving +12V where GND is expected and vice versa. The cable's internal circuitry ends up shorting in this configuration.&lt;br /&gt;
# Booting from uSD: Component S1804 is adjacent to the 40pin GPIO Bus; ignore the printed text on S1804 that says &amp;quot;ON&amp;quot; or &amp;quot;ONKE&amp;quot;. Do pay attention to the '1' and '2' printed on S1804. Also pay attention to the 'L' and 'H' text on the board next to S1804. The 'L' stand for '0' and the 'H' stands for '1'. You will need to flip switch '1' (GPIO_1) on S1804 to the 'L' position and switch '2' (GPIO_0) on S1804 to the 'H' position. S1804 maps to the table next to S1804 that has text [ [GPIO_1 | GPIO_0], [0|0] Flash, [0|1] SD, [1|0] EMMC, [1|1] UART ]; Helpful links: https://mrrcode979.github.io/blog/post/star64-guide/, https://www.bortzmeyer.org/star64-first-boot.html&lt;br /&gt;
# TTL use notes: Ground is on pin 6, RXD is on pin 8, and TXD is on pin 10.&lt;br /&gt;
&lt;br /&gt;
== LEDs ==&lt;br /&gt;
&lt;br /&gt;
The LEDs can be configured to stop blinking. Under Linux this can be done using the following command (as root):&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;default-on&amp;quot; &amp;gt; /sys/devices/platform/leds/leds/blue-led/trigger&lt;br /&gt;
&lt;br /&gt;
To list possible other triggers for the blue LED:&lt;br /&gt;
&lt;br /&gt;
 cat /sys/devices/platform/leds/leds/blue-led/trigger &lt;br /&gt;
&lt;br /&gt;
An example for a trigger is ''activity'', where the the blue LED reflects the CPU activity.&lt;br /&gt;
&lt;br /&gt;
== Potential Issues ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;&lt;br /&gt;
If you get the following error in u-boot (or your 8Gb board is only detected as 4Gb) the possible problem is a empty, or corrupt eeprom:&lt;br /&gt;
&lt;br /&gt;
 Not a StarFive EEPROM data format - magic error&lt;br /&gt;
 EEPROM dump: (0x100 bytes)&lt;br /&gt;
 00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
&lt;br /&gt;
Then from within u-boot execute the following commands:&lt;br /&gt;
&lt;br /&gt;
 mac initilize&lt;br /&gt;
 mac product_id &amp;lt;PRODUCTID&amp;gt;&lt;br /&gt;
 mac write_eeprom&lt;br /&gt;
&lt;br /&gt;
Set ProductID to either:&lt;br /&gt;
* For 8Gb Models: STAR64V1-2310-D008E000-01234567&lt;br /&gt;
* for 4Gb Models: STAR64V1-2310-D004E000-01234567&lt;br /&gt;
&lt;br /&gt;
You can replace the last 8 digits with a random number if you wish.&lt;br /&gt;
If these commands fail, please join the #star64 channel in the Pine64 community for more assistance.&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Casing/Enclosure Compatibility ==&lt;br /&gt;
&lt;br /&gt;
The table below collect known information about casing and enclosure compatibility for the Star64 sbc.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+ Casing and enclosure compatibility for Star64&lt;br /&gt;
|-&lt;br /&gt;
! Casing/Enclosure !! Compatible !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| [[ROCK64_Premium_Aluminum_Casing|ROCKPro64 PREMIUM ALUMINUM CASING]] || No || Star64 has two stacked ethernet ports, making it too tall. Also, audio jack is too large and there is a USB type A instead of a USB type C port.&lt;br /&gt;
|-&lt;br /&gt;
| [[NASCase-STAR64|NAS Case]] || Yes || Micro SD slot and Second Gigabit Ethernet port are not accessible without modification&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Prototype Bringup Notes ==&lt;br /&gt;
&lt;br /&gt;
Note: This section is relevant to the original prototype (v1.0) that a few developers received. &lt;br /&gt;
&lt;br /&gt;
# The [https://files.pine64.org/doc/star64/Star64_Schematic_V1.0_20220721.pdf schematic] has several discrepancies with actual board labels.&lt;br /&gt;
# The serial console can be found with TXD on pin 8 and RXD on pin 10; a convention common to Pi-style boards. Use the 40pin header pinouts in color on page one and not the schematic prose.&lt;br /&gt;
# If you have only a single core running and no PCI card present, it appears to power up via the +5V/GND lines from the USB serial adapter pins.&lt;br /&gt;
# It will not boot from a VisionFive R1 uSD card.&lt;br /&gt;
# The boot device switch labels and the silk screen are inverted. &amp;quot;0&amp;quot; means &amp;quot;On&amp;quot;.&lt;br /&gt;
# 2021.10-00001-gdbdaad919b will attempt to boot from SPI, but it appears blank. If you let it for many minutes, the device will eventually time out and boot OpenSBI v1.0  from (SPI?). This will fail, but only after self-identifying as a VisionFive R2, complete with five cores and 4 GB of RAM, before failing. A &amp;quot;press any key&amp;quot; timeout is offered, but I've been unable to make it stop. It will eventually crash with:&lt;br /&gt;
&lt;br /&gt;
 Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
 *** Warning - bad CRC, using default environment&lt;br /&gt;
 &lt;br /&gt;
 Not a StarFive EEPROM data format - magic error&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:StarFive JH7110]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20169</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20169"/>
		<updated>2023-08-01T19:57:01Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*Medium heatsink (N.B. Any of the three available heatsinks will fit in the NAS Case but the medium one suites best for the NAS Case airflow)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Follow [[User:RemDogKap/SandBox/First_Setup|First Setup]] to install an operating system and test if it boots.&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
[[File:STAR64-HDD-power-cable-remove-pins.jpg|200px|thumb|right|Modifying the HDD power cable for STAR64]]&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components.&lt;br /&gt;
&lt;br /&gt;
As the HDD power connector on the STAR64 revision 1.0 and 1.1 is reversed compared to the ROCKPro64 you have to modify the SATA power cable. Use a flat headed screw driver to push down the retention lever of the crimp contact and pull it out of the connector housing at the same time. Take your time, it's a bit fiddly and it you use too much force you will damage the crimp contact and you will need to order replacements.&lt;br /&gt;
&lt;br /&gt;
First remove the two outer black and yellow pin, insert them again in the other position. Repeat with the two inner pins. Black and yellow cables are now swapped and ready for the STAR64.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
Test that your STAR64 boots from eMMC before installing it in the case as the DIP switch to select the boot mode is below the HDD cage and is not reachable without partial disassembly.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-1.jpg|300px|thumb|left|Install the STAR64 by placing it with the USB connectors and power button first with a slight angle into the case.]]&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-2.jpg|300px|thumb|right|Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.]]&lt;br /&gt;
&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and micro SD card. &lt;br /&gt;
&lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. Install it by placing it with the USB connectors and power button first with a slight angle into the case. Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 4. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:STAR64-fan-parts.jpg|200px|thumb|left|The 80&amp;amp;nbsp;mm fan and JST connector parts]]&lt;br /&gt;
[[File:STAR64-fan-wiring.jpg|200px|thumb|right|Correct wiring of the fan cable]]&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 5. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:STAR64-NAS-internal-wiring.jpg|300px|thumb|right|PCIe to SATA installed and cables routed through the case]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 6. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:STAR64-NAS-with-hdd.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
[[File:STAR64-NAS-front-io.jpg|300px|thumb|left|Front IO with power button]]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20124</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20124"/>
		<updated>2023-07-22T20:19:41Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Follow [[User:RemDogKap/SandBox/First_Setup|First Setup]] to install an operating system and test if it boots.&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
[[File:STAR64-HDD-power-cable-remove-pins.jpg|200px|thumb|right|Modifying the HDD power cable for STAR64]]&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components.&lt;br /&gt;
&lt;br /&gt;
As the HDD power connector on the STAR64 revision 1.0 and 1.1 is reversed compared to the ROCKPro64 you have to modify the SATA power cable. Use a flat headed screw driver to push down the retention lever of the crimp contact and pull it out of the connector housing at the same time. Take your time, it's a bit fiddly and it you use too much force you will damage the crimp contact and you will need to order replacements.&lt;br /&gt;
&lt;br /&gt;
First remove the two outer black and yellow pin, insert them again in the other position. Repeat with the two inner pins. Black and yellow cables are now swapped and ready for the STAR64.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
Test that your STAR64 boots from eMMC before installing it in the case as the DIP switch to select the boot mode is below the HDD cage and is not reachable without partial disassembly.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-1.jpg|300px|thumb|left|Install the STAR64 by placing it with the USB connectors and power button first with a slight angle into the case.]]&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-2.jpg|300px|thumb|right|Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.]]&lt;br /&gt;
&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and micro SD card. &lt;br /&gt;
&lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. Install it by placing it with the USB connectors and power button first with a slight angle into the case. Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 4. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:STAR64-fan-parts.jpg|200px|thumb|left|The 80&amp;amp;nbsp;mm fan and JST connector parts]]&lt;br /&gt;
[[File:STAR64-fan-wiring.jpg|200px|thumb|right|Correct wiring of the fan cable]]&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 5. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:STAR64-NAS-internal-wiring.jpg|300px|thumb|right|PCIe to SATA installed and cables routed through the case]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 6. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:STAR64-NAS-with-hdd.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
[[File:STAR64-NAS-front-io.jpg|300px|thumb|left|Front IO with power button]]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20123</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20123"/>
		<updated>2023-07-22T20:17:37Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Follow [[User:RemDogKap/SandBox/First_Setup|First Setup]] to install an operating system and test if it boots.&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
[[File:STAR64-HDD-power-cable-remove-pins.jpg|200px|thumb|right|Modifying the HDD power cable for STAR64]]&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components.&lt;br /&gt;
&lt;br /&gt;
As the HDD power connector on the STAR64 revision 1.0 and 1.1 is reversed compared to the ROCKPro64 you have to modify the SATA power cable. Use a flat headed screw driver to push down the retention lever of the crimp contact and pull it out of the connector housing at the same time. Take your time, it's a bit fiddly and it you use too much force you will damage the crimp contact and you will need to order replacements.&lt;br /&gt;
&lt;br /&gt;
First remove the two outer black and yellow pin, insert them again the the other position. Repeat with the two inner pins. Black and yellow cables are now swapped and ready for the STAR64.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
Test that your STAR64 boots from eMMC before installing it in the case as the DIP switch to select the boot mode is below the HDD cage and is not reachable without partial disassembly.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-1.jpg|300px|thumb|left|Install the STAR64 by placing it with the USB connectors and power button first with a slight angle into the case.]]&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-2.jpg|300px|thumb|right|Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.]]&lt;br /&gt;
&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and micro SD card. &lt;br /&gt;
&lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. Install it by placing it with the USB connectors and power button first with a slight angle into the case. Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 4. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:STAR64-fan-parts.jpg|200px|thumb|left|The 80&amp;amp;nbsp;mm fan and JST connector parts]]&lt;br /&gt;
[[File:STAR64-fan-wiring.jpg|200px|thumb|right|Correct wiring of the fan cable]]&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 5. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:STAR64-NAS-internal-wiring.jpg|300px|thumb|right|PCIe to SATA installed and cables routed through the case]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 6. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:STAR64-NAS-with-hdd.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
[[File:STAR64-NAS-front-io.jpg|300px|thumb|left|Front IO with power button]]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20122</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20122"/>
		<updated>2023-07-22T20:15:13Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: small clean-up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Follow [[User:RemDogKap/SandBox/First_Setup|First Setup]] to install an operating system and test if it boots.&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
[[File:STAR64-HDD-power-cable-remove-pins.jpg|200px|thumb|right|Modifying the HDD power cable for STAR64]]&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components.&lt;br /&gt;
&lt;br /&gt;
As the HDD power connector on the STAR64 revision 1.0 and 1.1 is reversed compared to the ROCKPro64 you have to modify the SATA power cable. Use a flat headed screw driver to push down the retention lever of the crimp contact and pull it out of the connector housing at the same time. Take your time, it's a bit fiddly and it you use too much force you will damage the crimp contact and you will need to order replacements.&lt;br /&gt;
&lt;br /&gt;
First remove the two outer black and yellow pin, insert them again the the other position. Repeat with the two inner pins. Black and yellow cables are now swapped and ready for the STAR64.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
Test that your STAR64 boots from eMMC before installing it in the case as the DIP switch to select the boot mode is below the HDD cage and is not reachable without partial disassembly.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-1.jpg|300px|thumb|left|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-2.jpg|300px|thumb|right|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and a micro SD card. &lt;br /&gt;
&lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. Install it by placing it with the USB connectors and power button first with a slight angle into the case. Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 4. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:STAR64-fan-parts.jpg|200px|thumb|left|The 80&amp;amp;nbsp;mm fan and JST connector parts]]&lt;br /&gt;
[[File:STAR64-fan-wiring.jpg|200px|thumb|right|Correct wiring of the fan cable]]&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 5. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:STAR64-NAS-internal-wiring.jpg|300px|thumb|right|PCIe to SATA installed and cables routed through the case]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 6. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:STAR64-NAS-with-hdd.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
[[File:STAR64-NAS-front-io.jpg|300px|thumb|left|Front IO with power button]]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/Update_XSPI_Flash_SPL_and_U-Boot&amp;diff=20091</id>
		<title>User:RemDogKap/SandBox/Update XSPI Flash SPL and U-Boot</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/Update_XSPI_Flash_SPL_and_U-Boot&amp;diff=20091"/>
		<updated>2023-07-17T19:53:14Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Change order of SPL and U-Boot description to follow their execution order.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
{{Warning | Attempting these instructions may permanently brick (make nonfunctional) your device. Do not attempt unless you know what you are doing.}}&lt;br /&gt;
{{Warning | These instructions have not been tested or verified. Use at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
The Star64 ships with an integrated 128 megabit (16 megabyte) xSPI NOR flash. Loaded on this flash from the factory is firmware called U-Boot and SPL but an old version designed for the StarFive VisionFive 2 SBC which may have incompatibilities with the Star64. The SPL or Secondary Program Loader is the software that loads U-Boot, which in turn loads the Linux kernel. The firmware on this flash is known as Das U-Boot, commonly just U-Boot which is an open-source primary boot loader. It performs similar functions to the BIOS on x86 platforms.&lt;br /&gt;
&lt;br /&gt;
There are two main ways to update the xSPI flash. The first uses the &amp;lt;code&amp;gt;flashcp&amp;lt;/code&amp;gt; command which requires the Star64 to first boot into an OS. This method may not work on older versions of [firmware, OS, something else????]. The other method requires only the ability to load U-Boot and uses TFTP and the U-Boot &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command. &lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
Required:&lt;br /&gt;
*Star64 SBC&lt;br /&gt;
*Computer running Linux, MacOS, or Windows&lt;br /&gt;
Possibly required:&lt;br /&gt;
*Ability to communicate over TTL (transistor to transistor logic) UART&lt;br /&gt;
*Ability to network the Star64 to a computer over ethernet&lt;br /&gt;
&lt;br /&gt;
==flashcp==&lt;br /&gt;
First, connect to your Star64 over UART or with a mouse, keyboard, and monitor. &lt;br /&gt;
Next, install the &amp;lt;code&amp;gt;mtd-utils&amp;lt;/code&amp;gt; package onto the Star64 if not already installed. This package is a set of tools that allow access to raw flash storage devices such as the xSPI flash. Also install &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; if not already installed. These instructions assume that you are using the &amp;lt;code&amp;gt;deb&amp;lt;/code&amp;gt; package manager. &lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install mtb-utils wget&lt;br /&gt;
&lt;br /&gt;
Next, using &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; download the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image onto the.&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo SPL file goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo U-Boot image goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, print out the list of MTD (Memory Technology Device) raw flash devices using &amp;lt;code&amp;gt;cat&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ cat /proc/mtd&lt;br /&gt;
&lt;br /&gt;
The output should look something like this: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dev:    size   erasesize  name&lt;br /&gt;
mtd0: 00020000 00001000 &amp;quot;spl&amp;quot;&lt;br /&gt;
mtd1: 00300000 00001000 &amp;quot;uboot&amp;quot;&lt;br /&gt;
mtd2: 00100000 00001000 &amp;quot;data&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, write the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image. to the respective partitions using &amp;lt;code&amp;gt;flashcp&amp;lt;/code&amp;gt;, a command which writes to raw flash devices with more protections than &amp;lt;code&amp;gt;dd&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ flashcp -v [fishwaldo spl file name here].bin.normal.out /dev/&amp;lt;SPL Partition&amp;gt;&lt;br /&gt;
 $ flashcp -v [fishwaldo uboot img file name here].img /dev/&amp;lt;U-Boot Partition&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;SPL Partition&amp;gt;&amp;lt;/code&amp;gt; is the partition name found under the &amp;quot;dev&amp;quot; column for the row &amp;quot;spl&amp;quot; from the cat printout, in this case &amp;lt;code&amp;gt;mtd0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;U-Boot Partition&amp;gt;&amp;lt;/code&amp;gt; is the partition name found under the &amp;quot;dev&amp;quot; column for the row &amp;quot;uboot&amp;quot; in the cat printout, in this case &amp;lt;code&amp;gt;mtd1&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point your xSPI flash has been rewritten and only a system restart is needed for the changes to take effect. &lt;br /&gt;
&lt;br /&gt;
==tftpboot==&lt;br /&gt;
The &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; method uses a TFTP (Trivial File Transfer Protocol, a protocol which allows for basic file transfer functionality without authentication) server to transfer the SPL file and U-Boot image from a host computer to the Star64 running U-Boot and using the &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command and then written to flash using the &amp;lt;code&amp;gt;sf&amp;lt;/code&amp;gt; command which is a U-Boot command used to access SPI flash. &lt;br /&gt;
&lt;br /&gt;
===Preparing The TFTP Server===&lt;br /&gt;
====Linux====&lt;br /&gt;
First, on your computer (not the Star64) install a TFTP server and &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt; if you do not already have it.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install tftpd-hpa wget&lt;br /&gt;
Next, check that the TFPT server is running using &amp;lt;code&amp;gt;systemctl&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo systemctl status tftpd-hpa&lt;br /&gt;
This should output somethng like &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;●&amp;lt;/span&amp;gt; tftpd-hpa.service - LSB: HPA's tftp server&lt;br /&gt;
      Loaded: loaded (/etc/init.d/tftpd-hpa; generated)&lt;br /&gt;
      Active: &amp;lt;span style=&amp;quot;color:#16c60c&amp;quot;&amp;gt;active (running)&amp;lt;/span&amp;gt; since Sat 2023-06-10 20:51:28 CDT; 17min ago&lt;br /&gt;
        Docs: man:systemd-sysv-generator(8)&lt;br /&gt;
     Process: 1016 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=0/SUCCESS)&lt;br /&gt;
       Tasks: 1 (limit: 2306)&lt;br /&gt;
      Memory: 588.0K&lt;br /&gt;
         CPU: 23ms&lt;br /&gt;
      CGroup: /system.slice/tftpd-hpa.service&lt;br /&gt;
             └─1023 /usr/sbin/in.tftpd --listen --user tftp --address :69 --secure /srv/tftp&lt;br /&gt;
 &lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Starting tftpd-hpa.service - LSB: HPA's tftp server...&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm tftpd-hpa[1016]: Starting HPA's tftpd: in.tftpd.&lt;br /&gt;
 Jun 10 20:51:28 debian-bookworm systemd[1]: Started tftpd-hpa.service - LSB: HPA's tftp server.           &lt;br /&gt;
&lt;br /&gt;
If the service is not running, try&lt;br /&gt;
 $ sudo systemctl start tftpd-hpa&lt;br /&gt;
and check the status again. If it is still not running please join the #star64 channel in the Pine64 IRC, Discord, or Matrix.&lt;br /&gt;
&lt;br /&gt;
Next, edit the configuration file for &amp;lt;code&amp;gt;tftpd-hpa&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo nano /etc/default/tftpd-hpa&lt;br /&gt;
by default it should look like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TFTP_USERNAME=&amp;quot;tftp&amp;quot;&lt;br /&gt;
TFTP_DIRECTORY=&amp;quot;/srv/tftp&amp;quot;&lt;br /&gt;
TFTP_ADDRESS=&amp;quot;:69&amp;quot;&lt;br /&gt;
TFTP_OPTIONS=&amp;quot;--secure&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change &amp;lt;code&amp;gt;TFTP_DIRECTORY=&amp;quot;/srv/tftp&amp;quot;&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;TFTP_DIRECTORY=&amp;quot;/home/user/tftp_share&amp;quot;&amp;lt;/code&amp;gt;. The final file should look like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TFTP_USERNAME=&amp;quot;tftp&amp;quot;&lt;br /&gt;
TFTP_DIRECTORY=&amp;quot;/home/&amp;lt;user&amp;gt;/tftp_share&amp;quot;&lt;br /&gt;
TFTP_ADDRESS=&amp;quot;:69&amp;quot;&lt;br /&gt;
TFTP_OPTIONS=&amp;quot;--secure&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;user&amp;lt;/code&amp;gt; is your username. &lt;br /&gt;
After that, save and close the file then restart the TFTP server.&lt;br /&gt;
 $ sudo systemctl restart tftpd-hpa&lt;br /&gt;
&lt;br /&gt;
Next in your home directory (&amp;lt;code&amp;gt;/home/user&amp;lt;/code&amp;gt;) create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
 $ mkdir /home/user/tftp_share&lt;br /&gt;
In this folder, download  the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image using &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt;. &lt;br /&gt;
 $ cd /home/user/tftp_share&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo SPL file goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/[fishwaldo U-Boot image goes here]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before connecting to the Star64 and updating the firmware install minicom, virtual console software, so it will be possible to communicate with the Star64.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install minicom &lt;br /&gt;
Next connect the your USB to TTL UART adapter to the computer and list the connected serial devices. &lt;br /&gt;
 $ dmesg | grep tty&lt;br /&gt;
Example output:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
to be&lt;br /&gt;
filled in&lt;br /&gt;
later &lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
Find the address of the TTL UART to USB adapter in the list (example: &amp;lt;code&amp;gt;ttyUSB0&amp;lt;/code&amp;gt;) and connect to the serial device with a baud rate of 115200. &lt;br /&gt;
 $ sudo minicom -D /dev/&amp;lt;Device Address&amp;gt; -b 115200&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Device Address&amp;gt;&amp;lt;/code&amp;gt; is the address found in the step above. &amp;lt;span class=&amp;quot;mw-customtoggle-device-address-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-device-address-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ sudo minicom -D /dev/ttyUSB0 -b 115200&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
First, install two pieces of software, [https://pjo2.github.io/tftpd64/ tftpd64], a TFTP server for windows, and [http://ttssh2.osdn.jp/index.html.en Tera Term], a virtual console for interacting with the Star64 in U-Boot.&lt;br /&gt;
Next on your desktop, create a folder called &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt;&lt;br /&gt;
In this folder, download  the &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; SPL file and the &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; U-Boot image from [https://pine64.my-ho.st:8443/ here].&lt;br /&gt;
&lt;br /&gt;
Next, load tftpd64 and configure the settings to have the &amp;quot;Current Directory&amp;quot; as the &amp;lt;code&amp;gt;tftp_share&amp;lt;/code&amp;gt; folder on the desktop and &amp;quot;Server interfaces&amp;quot; is set to &amp;lt;code&amp;gt;127.0.0.1 Software Loopback Interface 1&amp;lt;/code&amp;gt;. The path should look something like &amp;lt;code&amp;gt;C:\Users\${Username}\Desktop\tftp_share&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;${Username}&amp;lt;/code&amp;gt; is your username on Windows. &lt;br /&gt;
[[File:Star64 tftpd64 settings.png|none|500px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
===Updating the SPI Flash===&lt;br /&gt;
&lt;br /&gt;
Next, connect a TTL UART to USB cable to to the Star64 with the GND cable on pin 6 of the GPIO header, TXD on pin 8, and RXD on pin 10 as well as ethernet. Note that depending on your UART adapter you may have to switch TXD and RXD. Now power on the Star64 and enter U-Boot. You will need to press a key to prevent it from autobooting and instead enter the U-Boot command prompt.&lt;br /&gt;
Once you are in the U-Boot shell set some environment variables. &lt;br /&gt;
First, set the IP address of the Star64 and connect it to the network using the &amp;lt;code&amp;gt;dhcp&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # dhcp &lt;br /&gt;
&lt;br /&gt;
Set an environment variable of the TFTP server to make future command easier. If you don't what the IP address of your TFTP server is you can see connected devices in your router's configuration which can usually be accessed by typing in the IP address found on the router itself.&lt;br /&gt;
 # setenv &amp;lt;server IP&amp;gt;&lt;br /&gt;
Where &amp;lt;code&amp;gt;server IP&amp;lt;/code&amp;gt; is the IP address of the TFTP server. &amp;lt;span class=&amp;quot;mw-customtoggle-set-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-set-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # setenv 192.168.1.199&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
Ping the TFTP server from the Star64 to make sure the connection works where &amp;lt;code&amp;gt;&amp;lt;Server IP&amp;gt;&amp;lt;/code&amp;gt; refers to the IP address of your TFTP server.  Note that if you are hosting the TFTP server on Windows, you may need to configure Windows firewall to allow &amp;lt;code&amp;gt;‘File and Printer Sharing (Echo Request – ICMPv4 – In)’&amp;lt;/code&amp;gt;. This is only needed to test the network connection with &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; and not for the actual &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; command so if &amp;lt;code&amp;gt;ping&amp;lt;/code&amp;gt; fails &amp;lt;code&amp;gt;tftpboot&amp;lt;/code&amp;gt; may still succeed. &lt;br /&gt;
 # ping &amp;lt;Server IP&amp;gt;&lt;br /&gt;
&amp;lt;span class=&amp;quot;mw-customtoggle-ping-ip-addr-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt; &lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-ping-ip-addr-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 # ping 192.168.1.228&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
The result should look something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # ping 192.168.1.199&lt;br /&gt;
Using ethernet@16030000 device&lt;br /&gt;
host 192.168.1.199 is alive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
If ping fails, please try again or please join the #star64 channel in the Pine64 IRC, Discord, or Matrix for help. &lt;br /&gt;
&lt;br /&gt;
Finally, it is time to update the xSPI flash. &lt;br /&gt;
&lt;br /&gt;
First, initialize the flash with the &amp;lt;code&amp;gt;sf probe&amp;lt;/code&amp;gt; command.&lt;br /&gt;
 # sf probe&lt;br /&gt;
The output should be something like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Star64 # sf probe&lt;br /&gt;
SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Next copy the SPL &amp;lt;code&amp;gt;.bin.normal.out&amp;lt;/code&amp;gt; file to memory address 0xa0000000 from our TFTP server.&lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:[name of fishwaldo spl file]&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
Then use &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; to erase and update the SPI flash from memory. In this case we are copying from memory address 0xa0000000 which we wrote to earlier with an offset of 0x0.&lt;br /&gt;
&lt;br /&gt;
 # sf update 0xa0000000 0x0 $filesize&lt;br /&gt;
&lt;br /&gt;
This should produce an output like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
To be &lt;br /&gt;
filled&lt;br /&gt;
in later&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, copy the U-Boot &amp;lt;code&amp;gt;.img&amp;lt;/code&amp;gt; binary to memory address 0xa0000000 from the TFTP server. &lt;br /&gt;
 # tftpboot 0xa0000000 ${serverip}:[name of fishwaldo uboot image]&lt;br /&gt;
Where ${serverip} is the environment variable we set earlier, no need to change it. &lt;br /&gt;
&lt;br /&gt;
Finally, write the new U-Boot binary using &amp;lt;code&amp;gt;sf update&amp;lt;/code&amp;gt; from memory address 0xa0000000 with an offset of 0x100000. &lt;br /&gt;
 # sf update 0xa0000000 0x100000 $filesize&lt;br /&gt;
&lt;br /&gt;
This should produce an output like: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
To be &lt;br /&gt;
filled&lt;br /&gt;
in later&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the Star64 and the changes should have taken effect.&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=Recovering_the_Bootloader_for_STAR64_JH7710_over_serial_using_screen&amp;diff=20064</id>
		<title>Recovering the Bootloader for STAR64 JH7710 over serial using screen</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=Recovering_the_Bootloader_for_STAR64_JH7710_over_serial_using_screen&amp;diff=20064"/>
		<updated>2023-07-12T06:33:52Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Added picture for serial wiring&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
== STAR64 serial wiring ==&lt;br /&gt;
Connect a USB to serial converter cable with 3.3&amp;amp;nbsp;V TTL levels to your STAR64 to the pins 4 (GND), 6 (TXD) and 8 (RXD).&lt;br /&gt;
&lt;br /&gt;
Avoid the pins below pin 6; those are 5&amp;amp;nbsp;V which is enough to mess up most serial cables.&lt;br /&gt;
&lt;br /&gt;
[[File:STAR64-serial-pins.jpg|400px|thumb|left|Serial pins on the STAR64 I/O connector]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
== Recovering the Bootloader for STAR64 JH7710 over serial using screen ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sh&amp;quot;&amp;gt;&lt;br /&gt;
cd &amp;lt;path-to-directory-with-Tools&amp;gt;&lt;br /&gt;
screen -m -S star64 /dev/ttyUSB0 115200&lt;br /&gt;
# open a second shell&lt;br /&gt;
screen -S star64 -X exec \!\! sx Tools/recovery/jh7110-recovery-20230322.bin&lt;br /&gt;
# type 0 in the first shell&lt;br /&gt;
screen -S star64 -X exec \!\! sx u-boot/spl/u-boot-spl.bin.normal.out # file created with: ../Tools/spl_tool/spl_tool -c -f spl/u-boot-spl.bin&lt;br /&gt;
# type 2 in the first shell&lt;br /&gt;
screen -S star64 -X exec \!\! sx u-boot/u-boot.itb # file created with: tools/mkimage -f ../Tools/uboot_its/visionfive2-uboot-fit-image.its -A riscv -O u-boot -T firmware u-boot.itb&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Backup current SPI ==&lt;br /&gt;
=== Using Linux ===&lt;br /&gt;
Execute the commands on the star64 (takes some time):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sh&amp;quot;&amp;gt;&lt;br /&gt;
dd if=/dev/mtd0 of=/tmp/star64-factory-spl.bin&lt;br /&gt;
dd if=/dev/mtd1 of=/tmp/star64-factory-uboot.bin&lt;br /&gt;
dd if=/dev/mtd2 of=/tmp/star64-factory-data.bin&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Execute on you host:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sh&amp;quot;&amp;gt;&lt;br /&gt;
rsync ${MNAME}:'/tmp/star64-factory-*' .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* [https://github.com/starfive-tech/Tools/blob/master/README.md#recovery Tools README.md about recovery]&lt;br /&gt;
* [https://doc-en.rvspace.org/VisionFive2/PDF/VisionFive2_QSG.pdf#page=40 VisionFive 2 Single Board Computer Quick Start Guide: 4.4. Recovering the Bootloader p. 40]&lt;br /&gt;
* [https://doc-en.rvspace.org/VisionFive2/PDF/VisionFive2_SDK_QSG.pdf#page=19 VisionFive 2 SDK Quick Start Guide: 7.4. Recovering the Bootloader p. 19]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-serial-pins.jpg&amp;diff=20063</id>
		<title>File:STAR64-serial-pins.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-serial-pins.jpg&amp;diff=20063"/>
		<updated>2023-07-12T06:25:38Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{cc-by-sa-4.0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20051</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20051"/>
		<updated>2023-07-08T15:42:19Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Added description to modify the HDD power cable for STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
'''Modification of HDD power cable missing'''&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Follow [[User:RemDogKap/SandBox/First_Setup|First Setup]] to install an operating system and test if it boots.&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
[[File:STAR64-HDD-power-cable-remove-pins.jpg|200px|thumb|right|Modifying the HDD power cable for STAR64]]&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components.&lt;br /&gt;
&lt;br /&gt;
As the HDD power connector on the STAR64 revision 1.0 and 1.1 is reversed compared to the ROCKPro64 you have to modify the SATA power cable. Use a flat headed screw driver to push down the retention lever of the crimp contact and pull it out of the connector housing at the same time. Take your time, it's a bit fiddly and it you use too much force you will damage the crimp contact and you will need to order replacements.&lt;br /&gt;
&lt;br /&gt;
First remove the two outer black and yellow pin, insert them again the the other position. Repeat with the two inner pins. Black and yellow cables are now swapped and ready for the STAR64.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
[[File:Star64 EMMC switch map.png |200px|thumb|right|Correct DIP switch settings to boot from eMMC for the Star64 SBC.]]&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
Test that your STAR64 boots from eMMC before installing it in the case as the DIP switch to select the boot mode is below the HDD cage and not reachable without partial disasembly.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-1.jpg|300px|thumb|left|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-2.jpg|300px|thumb|right|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and a micro SD card. &lt;br /&gt;
&lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. Install it by placing it with the USB connectors and power button first with a slight angle into the case. Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 4. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:STAR64-fan-parts.jpg|200px|thumb|left|The 80&amp;amp;nbsp;mm fan and JST connector parts]]&lt;br /&gt;
[[File:STAR64-fan-wiring.jpg|200px|thumb|right|Correct wiring of the fan cable]]&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 5. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:STAR64-NAS-internal-wiring.jpg|300px|thumb|right|PCIe to SATA installed and cables routed through the case]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 6. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:STAR64-NAS-with-hdd.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
[[File:STAR64-NAS-front-io.jpg|300px|thumb|left|Front IO with power button]]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-HDD-power-cable-remove-pins.jpg&amp;diff=20050</id>
		<title>File:STAR64-HDD-power-cable-remove-pins.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-HDD-power-cable-remove-pins.jpg&amp;diff=20050"/>
		<updated>2023-07-08T15:37:45Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Modifying the HDD power cable for STAR64&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/First_Setup&amp;diff=20029</id>
		<title>User:RemDogKap/SandBox/First Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/First_Setup&amp;diff=20029"/>
		<updated>2023-07-06T21:44:09Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Replaced /dev/sdb with sdh in example to avoid inexperienced users to overwrite accidentally their hard-drives.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Star64 is a 64 bit, 4 core Single Board Computer. &lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
*[https://pine64.com/product-category/star64/ Star64 SBC]&lt;br /&gt;
*[https://pine64.com/product-category/star64-accessories/ 12V 3A to 5A Power Supply] (Any 12V 3A or 5A type M 5.5mm OD/2.1mm ID barrel type DC Jack Power Supply will work)&lt;br /&gt;
*One or more types of removeable flash memory&lt;br /&gt;
**[https://pine64.com/product/64gb-class10-microsd-card/ SD card] of at least ??GB, no greater than 256GB&lt;br /&gt;
**[https://pine64.com/product-category/star64-accessories/ eMMC Module] with [https://pine64.com/product/usb-adapter-for-emmc-module/ USB adapter]&lt;br /&gt;
*Ability to flash a storage device with a disk image. [https://etcher.balena.io/ Balena Etcher] is recommended, but advanced users can also use dd in a Unix-like OS&lt;br /&gt;
&lt;br /&gt;
==Choosing Your Distribution==&lt;br /&gt;
There are currently two working distributions of Linux compatible with the Star64, pinix and Armbian. Both distributions use the same kernel[???].The pinix distribution is a custom distribution built by Fishwaldo using Yocto which is an open source project used to create Linux distributions for embedded devices. The pinix distribution is currently focusing on support for GPU and VGPU acceleration for desktop environments. Both distributions use the deb package manager. The Armbian distribution is based on Debian/Ubuntu with changes to make it lightweight and compatible with ARM/RISC-V development boards. &lt;br /&gt;
&lt;br /&gt;
While there are other RISC-V compatible distributions, none of these have the required device tree entries for the Star64 meaning that none will work fully on the Star64. This includes images for the StarFive2, a sister board which uses the same processor, due to other hardware differences. It may be possible to get other distributions to run on the Star64 by cross compiling the working kernel into another distribution. &lt;br /&gt;
&lt;br /&gt;
More information about support for features can be accessed [[User:RemDogKap/SandBox/Status of Features | here]].&lt;br /&gt;
&lt;br /&gt;
==pinix==&lt;br /&gt;
There are currently three prebuilt versions of pinix. one command line only and two desktop environments. Choose one to use for this setup. &lt;br /&gt;
*star64-image-minimal - A command line only image.&lt;br /&gt;
*star64-image-weston - A Weston/Wayland &amp;quot;Demo&amp;quot; image.&lt;br /&gt;
*star64-image-plasma- A Plasma Based Image.&lt;br /&gt;
&lt;br /&gt;
===Flashing the Image===&lt;br /&gt;
&lt;br /&gt;
====Linux====&lt;br /&gt;
&lt;br /&gt;
First, if not already installed, install &amp;lt;code&amp;gt;bzip2&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install bzip2 wget&lt;br /&gt;
&lt;br /&gt;
Second, download a compressed disk image (&amp;lt;code&amp;gt;.wic.bz2&amp;lt;/code&amp;gt;) of your chosen version (minimal, weston, or plasma) from [https://pine64.my-ho.st:8443/ here] (source code available [https://github.com/Fishwaldo/meta-pine64 here]) using wget. &lt;br /&gt;
&lt;br /&gt;
 $ wget  &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/&amp;lt;Name of Image File&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Name of Image File&amp;gt;&amp;lt;/code&amp;gt; is the name of your chosen image file. &amp;lt;span class=&amp;quot;mw-customtoggle-if-dl-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-if-dl-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/star64-image-minimal-star64-1.3.rootfs.wic.bz2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, flash the image to the SD card or eMMC module.&lt;br /&gt;
&lt;br /&gt;
 $ bzip2 -cd  &amp;lt;Path to Image File&amp;gt; | sudo dd of=/dev/&amp;lt;Flash device&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Path to Image File&amp;gt;&amp;lt;/code&amp;gt; is the path to your image file and &amp;lt;code&amp;gt;&amp;lt;Flash device&amp;gt;&amp;lt;/code&amp;gt; is the device name of your card or module. &amp;lt;span class=&amp;quot;mw-customtoggle-if-unzip-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-if-unzip-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ bzip2 -cd star64-image-minimal-star64-1.3.rootfs.wic.bz2 | sudo dd of=/dev/sdh&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
First, make sure that you have [https://7-zip.org/ 7zip] installed and if not, install it. &lt;br /&gt;
&lt;br /&gt;
Second, download a compressed disk image (&amp;lt;code&amp;gt;.wic.bz2&amp;lt;/code&amp;gt;) from [https://pine64.my-ho.st:8443/ here] (source code available [https://github.com/Fishwaldo/meta-pine64 here]) by clicking on the files. &lt;br /&gt;
&lt;br /&gt;
Third, right click on the downloaded file and select 7-zip. Next click extract. &lt;br /&gt;
&lt;br /&gt;
Finally, use Balena Etcher to write your disk image to the SD Card or eMMC module . &lt;br /&gt;
&lt;br /&gt;
===Booting the Image===&lt;br /&gt;
&lt;br /&gt;
First, make sure that the Star64 is powered off, then set the boot dip switches to SD Card or eMMC, whichever applies to you.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:Star64_SD_switch_map.png|thumb|left|Dip switch settings to boot from SD Card.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:Star64_EMMC_switch_map.png|thumb|Dip switch settings to boot from eMMC module.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, insert your flash media of choice and connect your peripherals. These can be a keyboard mouse and monitor or a TTL UART cable connected to the GPIO header. Finally, power on the system.&lt;br /&gt;
&lt;br /&gt;
After boot, you should be met with a login screen. The default credentials here for a root user are root as a username and Star64 as a password. The default credentials for a regular user are Star64 as a username and Star64 as a password. If you do not see the troublshooting section below&lt;br /&gt;
&lt;br /&gt;
==Troubeshooting==&lt;br /&gt;
{{:STAR64}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/First_Setup&amp;diff=20028</id>
		<title>User:RemDogKap/SandBox/First Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/First_Setup&amp;diff=20028"/>
		<updated>2023-07-06T21:42:04Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Replaced Linux unzip and flash instructions with a combined step. The manual anyhow assumes using a terminal so I assume it's not increasing needed user knowledge.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Star64 is a 64 bit, 4 core Single Board Computer. &lt;br /&gt;
&lt;br /&gt;
==Prerequisites==&lt;br /&gt;
&lt;br /&gt;
*[https://pine64.com/product-category/star64/ Star64 SBC]&lt;br /&gt;
*[https://pine64.com/product-category/star64-accessories/ 12V 3A to 5A Power Supply] (Any 12V 3A or 5A type M 5.5mm OD/2.1mm ID barrel type DC Jack Power Supply will work)&lt;br /&gt;
*One or more types of removeable flash memory&lt;br /&gt;
**[https://pine64.com/product/64gb-class10-microsd-card/ SD card] of at least ??GB, no greater than 256GB&lt;br /&gt;
**[https://pine64.com/product-category/star64-accessories/ eMMC Module] with [https://pine64.com/product/usb-adapter-for-emmc-module/ USB adapter]&lt;br /&gt;
*Ability to flash a storage device with a disk image. [https://etcher.balena.io/ Balena Etcher] is recommended, but advanced users can also use dd in a Unix-like OS&lt;br /&gt;
&lt;br /&gt;
==Choosing Your Distribution==&lt;br /&gt;
There are currently two working distributions of Linux compatible with the Star64, pinix and Armbian. Both distributions use the same kernel[???].The pinix distribution is a custom distribution built by Fishwaldo using Yocto which is an open source project used to create Linux distributions for embedded devices. The pinix distribution is currently focusing on support for GPU and VGPU acceleration for desktop environments. Both distributions use the deb package manager. The Armbian distribution is based on Debian/Ubuntu with changes to make it lightweight and compatible with ARM/RISC-V development boards. &lt;br /&gt;
&lt;br /&gt;
While there are other RISC-V compatible distributions, none of these have the required device tree entries for the Star64 meaning that none will work fully on the Star64. This includes images for the StarFive2, a sister board which uses the same processor, due to other hardware differences. It may be possible to get other distributions to run on the Star64 by cross compiling the working kernel into another distribution. &lt;br /&gt;
&lt;br /&gt;
More information about support for features can be accessed [[User:RemDogKap/SandBox/Status of Features | here]].&lt;br /&gt;
&lt;br /&gt;
==pinix==&lt;br /&gt;
There are currently three prebuilt versions of pinix. one command line only and two desktop environments. Choose one to use for this setup. &lt;br /&gt;
*star64-image-minimal - A command line only image.&lt;br /&gt;
*star64-image-weston - A Weston/Wayland &amp;quot;Demo&amp;quot; image.&lt;br /&gt;
*star64-image-plasma- A Plasma Based Image.&lt;br /&gt;
&lt;br /&gt;
===Flashing the Image===&lt;br /&gt;
&lt;br /&gt;
====Linux====&lt;br /&gt;
&lt;br /&gt;
First, if not already installed, install &amp;lt;code&amp;gt;bzip2&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;wget&amp;lt;/code&amp;gt;.&lt;br /&gt;
 $ sudo apt update &amp;amp;&amp;amp; sudo apt install bzip2 wget&lt;br /&gt;
&lt;br /&gt;
Second, download a compressed disk image (&amp;lt;code&amp;gt;.wic.bz2&amp;lt;/code&amp;gt;) of your chosen version (minimal, weston, or plasma) from [https://pine64.my-ho.st:8443/ here] (source code available [https://github.com/Fishwaldo/meta-pine64 here]) using wget. &lt;br /&gt;
&lt;br /&gt;
 $ wget  &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/&amp;lt;Name of Image File&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Name of Image File&amp;gt;&amp;lt;/code&amp;gt; is the name of your chosen image file. &amp;lt;span class=&amp;quot;mw-customtoggle-if-dl-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-if-dl-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ wget &amp;lt;nowiki&amp;gt;https://pine64.my-ho.st:8443/star64-image-minimal-star64-1.3.rootfs.wic.bz2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, flash the image to the SD card or eMMC module.&lt;br /&gt;
&lt;br /&gt;
 $ bzip2 -cd  &amp;lt;Path to Image File&amp;gt; | sudo dd of=/dev/&amp;lt;Flash device&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;Path to Image File&amp;gt;&amp;lt;/code&amp;gt; is the path to your image file and &amp;lt;code&amp;gt;&amp;lt;Flash device&amp;gt;&amp;lt;/code&amp;gt; is the device name of your card or module. &amp;lt;span class=&amp;quot;mw-customtoggle-if-unzip-toggle&amp;quot; style=&amp;quot;text-decoration:underline;color:#0645ad&amp;quot;&amp;gt;Example&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible mw-collapsed&amp;quot; id=&amp;quot;mw-customcollapsible-if-unzip-toggle&amp;quot;&amp;gt;&lt;br /&gt;
 $ bzip2 -cd star64-image-minimal-star64-1.3.rootfs.wic.bz2 | sudo dd of=/dev/sdb&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Windows====&lt;br /&gt;
&lt;br /&gt;
First, make sure that you have [https://7-zip.org/ 7zip] installed and if not, install it. &lt;br /&gt;
&lt;br /&gt;
Second, download a compressed disk image (&amp;lt;code&amp;gt;.wic.bz2&amp;lt;/code&amp;gt;) from [https://pine64.my-ho.st:8443/ here] (source code available [https://github.com/Fishwaldo/meta-pine64 here]) by clicking on the files. &lt;br /&gt;
&lt;br /&gt;
Third, right click on the downloaded file and select 7-zip. Next click extract. &lt;br /&gt;
&lt;br /&gt;
Finally, use Balena Etcher to write your disk image to the SD Card or eMMC module . &lt;br /&gt;
&lt;br /&gt;
===Booting the Image===&lt;br /&gt;
&lt;br /&gt;
First, make sure that the Star64 is powered off, then set the boot dip switches to SD Card or eMMC, whichever applies to you.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:Star64_SD_switch_map.png|thumb|left|Dip switch settings to boot from SD Card.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li style=&amp;quot;display: inline-block;&amp;quot;&amp;gt; [[File:Star64_EMMC_switch_map.png|thumb|Dip switch settings to boot from eMMC module.]] &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that, insert your flash media of choice and connect your peripherals. These can be a keyboard mouse and monitor or a TTL UART cable connected to the GPIO header. Finally, power on the system.&lt;br /&gt;
&lt;br /&gt;
After boot, you should be met with a login screen. The default credentials here for a root user are root as a username and Star64 as a password. The default credentials for a regular user are Star64 as a username and Star64 as a password. If you do not see the troublshooting section below&lt;br /&gt;
&lt;br /&gt;
==Troubeshooting==&lt;br /&gt;
{{:STAR64}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/Status_of_Features&amp;diff=20027</id>
		<title>User:RemDogKap/SandBox/Status of Features</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=User:RemDogKap/SandBox/Status_of_Features&amp;diff=20027"/>
		<updated>2023-07-06T06:07:10Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Adding BT and MIPI interfaces&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;margin:auto&amp;quot;&lt;br /&gt;
|+pinix&lt;br /&gt;
! style=width:100px | Feature !! style=width:100px | Status !! style=width:300px | Notes !! style=width:200px | More info&lt;br /&gt;
|-&lt;br /&gt;
| SD Card Boot || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || There is a design flaw such that the SD card can only receive 3.3V and not the 1.8V required for speeds over 20 MB/s. || #Star64 &lt;br /&gt;
|-&lt;br /&gt;
| eMMC Boot || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || || #Star64&lt;br /&gt;
|-&lt;br /&gt;
| UART Boot || style=&amp;quot;background-color:#9eff9e&amp;quot; | Not Tested, assumed working|| The only current known use for UART boot is the [https://github.com/starfive-tech/Tools recovery tool from StarFive] ||&lt;br /&gt;
|-&lt;br /&gt;
| PCIE/NVME Boot || style=&amp;quot;background-color:#ebc934&amp;quot; | Partially Implemented || || #Star64 @Tenkawa &lt;br /&gt;
|-&lt;br /&gt;
| USB 2.0 || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || A design flaw means that USB overcurrent protection is disabled so be careful ||&lt;br /&gt;
|-&lt;br /&gt;
| USB 3.0 || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || ||&lt;br /&gt;
|-&lt;br /&gt;
| 4K Output || style=&amp;quot;background-color:#ebc934&amp;quot; | Partially Implemented || || #Star64 @Fishwaldo&lt;br /&gt;
|-&lt;br /&gt;
| 4K HDR || style=&amp;quot;background-color:#ffc7c7&amp;quot; | Not Implemented || ||&lt;br /&gt;
|-&lt;br /&gt;
| H.264 || style=&amp;quot;background-color:#ffc7c7&amp;quot; | Not Implemented || ||&lt;br /&gt;
|-&lt;br /&gt;
| H.265 || style=&amp;quot;background-color:#ffc7c7&amp;quot; | Not Implemented || ||&lt;br /&gt;
|-&lt;br /&gt;
| 3.5mm audio Jack || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || ||&lt;br /&gt;
|-&lt;br /&gt;
| Ethernet || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || ||&lt;br /&gt;
|-&lt;br /&gt;
| Wifi || style=&amp;quot;background-color:#9eff9e&amp;quot; | working || ||&lt;br /&gt;
|-&lt;br /&gt;
| BT || style=&amp;quot;background-color:#9eff9e&amp;quot; | working || || #Star64 @Fishwaldo, needs binary blob&lt;br /&gt;
|-&lt;br /&gt;
| PCIe 2.0 ×1 lane || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || ||&lt;br /&gt;
|-&lt;br /&gt;
| &amp;quot;Pi2&amp;quot; GPIO || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || ||&lt;br /&gt;
|-&lt;br /&gt;
| TTL UART || style=&amp;quot;background-color:#9eff9e&amp;quot; | Working || ||&lt;br /&gt;
|-&lt;br /&gt;
| MIPI-DSI || style=&amp;quot;background-color:#ffc7c7&amp;quot; | Unknown || || Display interface&lt;br /&gt;
|-&lt;br /&gt;
| MIPI-CSI || style=&amp;quot;background-color:#ffc7c7&amp;quot; | Unknown || || Camera interface&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20026</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20026"/>
		<updated>2023-07-05T20:10:01Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Add photos of STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
'''Modification of HDD power cable missing'''&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components. &lt;br /&gt;
&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
[[File:Star64 EMMC switch map.png |200px|thumb|right|Correct DIP switch settings to boot from eMMC for the Star64 SBC.]]&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
Test that your STAR64 boots from eMMC before installing it in the case as the DIP switch to select the bootmode is below the HDD cage and not reachable without partial disasembly.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-1.jpg|300px|thumb|left|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
[[File:STAR64-NAS-mount-star64-2.jpg|300px|thumb|right|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and a micro SD card. &lt;br /&gt;
&lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. Install it by placing it with the USB connectors and power button first with a slight angle into the case. Then push gently the side walls of the NAS case outwards until the STAR64 falls into place.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 4. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:STAR64-fan-parts.jpg|200px|thumb|left|The 80&amp;amp;nbsp;mm fan and JST connector parts]]&lt;br /&gt;
[[File:STAR64-fan-wiring.jpg|200px|thumb|right|Correct wiring of the fan cable]]&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 5. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:STAR64-NAS-internal-wiring.jpg|300px|thumb|right|PCIe to SATA installed and cables routed through the case]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 6. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:STAR64-NAS-with-hdd.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
[[File:STAR64-NAS-front-io.jpg|300px|thumb|left|Front IO with power button]]&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-NAS-with-hdd.jpg&amp;diff=20025</id>
		<title>File:STAR64-NAS-with-hdd.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-NAS-with-hdd.jpg&amp;diff=20025"/>
		<updated>2023-07-05T19:29:53Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-NAS-mount-star64-2.jpg&amp;diff=20024</id>
		<title>File:STAR64-NAS-mount-star64-2.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-NAS-mount-star64-2.jpg&amp;diff=20024"/>
		<updated>2023-07-05T19:29:28Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-NAS-mount-star64-1.jpg&amp;diff=20023</id>
		<title>File:STAR64-NAS-mount-star64-1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-NAS-mount-star64-1.jpg&amp;diff=20023"/>
		<updated>2023-07-05T19:29:06Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-NAS-internal-wiring.jpg&amp;diff=20022</id>
		<title>File:STAR64-NAS-internal-wiring.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-NAS-internal-wiring.jpg&amp;diff=20022"/>
		<updated>2023-07-05T19:28:40Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-NAS-front-io.jpg&amp;diff=20021</id>
		<title>File:STAR64-NAS-front-io.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-NAS-front-io.jpg&amp;diff=20021"/>
		<updated>2023-07-05T19:28:19Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-HDD-power-cable-remove-pins.jpg&amp;diff=20020</id>
		<title>File:STAR64-HDD-power-cable-remove-pins.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-HDD-power-cable-remove-pins.jpg&amp;diff=20020"/>
		<updated>2023-07-05T19:27:50Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-fan-wiring.jpg&amp;diff=20019</id>
		<title>File:STAR64-fan-wiring.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-fan-wiring.jpg&amp;diff=20019"/>
		<updated>2023-07-05T19:26:16Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:STAR64-fan-parts.jpg&amp;diff=20018</id>
		<title>File:STAR64-fan-parts.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:STAR64-fan-parts.jpg&amp;diff=20018"/>
		<updated>2023-07-05T19:24:25Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Category:STAR64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
[[Category:STAR64]]&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{CC0}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64-pcie-fit-check.jpg&amp;diff=20009</id>
		<title>File:Star64-pcie-fit-check.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64-pcie-fit-check.jpg&amp;diff=20009"/>
		<updated>2023-07-02T22:04:44Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Add category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Try if the Pine64 SATA PCIe card fits into the Pine64 NAS case.&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD|PD}}&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64_EMMC_switch_map.png&amp;diff=20008</id>
		<title>File:Star64 EMMC switch map.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64_EMMC_switch_map.png&amp;diff=20008"/>
		<updated>2023-07-02T22:04:12Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Add category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Image of the correct dip switch settings to boot from eMMC for the STAR64 SBC.&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD|PD}}&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64_SD_switch_map.png&amp;diff=20007</id>
		<title>File:Star64 SD switch map.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64_SD_switch_map.png&amp;diff=20007"/>
		<updated>2023-07-02T22:03:05Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Add category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Image of the correct dip switch settings to boot from SD Card for the Star64 SBC.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD|PD}}&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20006</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20006"/>
		<updated>2023-07-02T21:54:30Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Adding proper &amp;quot;under construction&amp;quot; box&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Under construction}}&lt;br /&gt;
&lt;br /&gt;
'''Pictures are still showing ROCKPro64, modification of HDD power cable missing, description of fan connection missing'''&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[File:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case with the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components. &lt;br /&gt;
&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:ROCKPro64inNASCase.jpg|300px|thumb|right|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
[[File:FrontIO.png|300px|thumb|left|Front IO with IR and LED relay installed]]&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and a micro SD card. &lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. It should fit snugly and align with the port cut-outs in the case. Do not attempt at installing the board at an angle; insert it while holding it level and lowering it into the case.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&lt;br /&gt;
===Step 4. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:PCIeFittedSATAsockets.png|200px|thumb|right|PCIe to SATA installed. Note the SATA connection orientation]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&lt;br /&gt;
===Step 5. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&lt;br /&gt;
===Step 6. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:80mmfan.png|200px|thumb|right|The 80&amp;amp;nbsp;fan is a worthwhile addition to the NAS Case build]]&lt;br /&gt;
&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:NASCAsewithdrives.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
[[File:TopViewAssembly.png|300px|thumb|right|Top view of a complete NAS Case Assembly]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20005</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20005"/>
		<updated>2023-07-02T21:44:51Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Add summary of missing things.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Warning: This page is currently work in progress!'''&lt;br /&gt;
&lt;br /&gt;
'''Pictures are still showing ROCKPro64, modification of HDD power cable missing, description of fan connection missing'''&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[file:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case for the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components. &lt;br /&gt;
&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:ROCKPro64inNASCase.jpg|300px|thumb|right|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
[[File:FrontIO.png|300px|thumb|left|Front IO with IR and LED relay installed]]&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and a micro SD card. &lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. It should fit snugly and align with the port cut-outs in the case. Do not attempt at installing the board at an angle; insert it while holding it level and lowering it into the case.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&lt;br /&gt;
===Step 4. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:PCIeFittedSATAsockets.png|200px|thumb|right|PCIe to SATA installed. Note the SATA connection orientation]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&lt;br /&gt;
===Step 5. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&lt;br /&gt;
===Step 6. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:80mmfan.png|200px|thumb|right|The 80&amp;amp;nbsp;fan is a worthwhile addition to the NAS Case build]]&lt;br /&gt;
&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:NASCAsewithdrives.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
[[File:TopViewAssembly.png|300px|thumb|right|Top view of a complete NAS Case Assembly]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20003</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20003"/>
		<updated>2023-07-02T16:57:27Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: work in progress&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Warning: This page is currently work in progress!'''&lt;br /&gt;
'''Pictures are still showing ROCKPro64'''&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4&amp;amp;nbsp;mm (Width) x 105.0&amp;amp;nbsp;mm (Height) x 145.2&amp;amp;nbsp;mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[file:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case for the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
Be aware that these STAR64 IO ports are '''not accessible''' without modifying the case:&lt;br /&gt;
* Micro SD slot&lt;br /&gt;
* Second Gigabit Ethernet port&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:RPRO-SATA852-1.jpg|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4&amp;amp;nbsp;GiB or 8&amp;amp;nbsp;GiB board&lt;br /&gt;
*A 12&amp;amp;nbsp;V 5&amp;amp;nbsp;A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*eMMC module (The micro SD card slot is '''not''' accessible without modifying the case)&lt;br /&gt;
*optionally an eMMC to USB 2.0 adapter&lt;br /&gt;
*80&amp;amp;nbsp;mm fan with 12&amp;amp;nbsp;V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2&amp;amp;nbsp;mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If you want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components. &lt;br /&gt;
&lt;br /&gt;
===Step 2. Install operating system===&lt;br /&gt;
&lt;br /&gt;
The micro SD card slot is not accessible from outside. Therefore you have to install the chosen operating system before mounting the STAR64 into the NAS case when using an micro SD card for the installation process.&lt;br /&gt;
&lt;br /&gt;
Alternative is that you have the optional eMMC to USB 2.0 adapter to install the operating system then you can do it just before step 6 (or now and test if everything is working).&lt;br /&gt;
&lt;br /&gt;
===Step 3. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:ROCKPro64inNASCase.jpg|300px|thumb|right|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
[[File:FrontIO.png|300px|thumb|left|Front IO with IR and LED relay installed]]&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including antennas and a micro SD card. &lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. It should fit snugly and align with the port cut-outs in the case. Do not attempt at installing the board at an angle; insert it while holding it level and lowering it into the case.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&lt;br /&gt;
===Step 4. PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:PCIeFittedSATAsockets.png|200px|thumb|right|PCIe to SATA installed. Note the SATA connection orientation]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&lt;br /&gt;
===Step 5. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&lt;br /&gt;
===Step 6. Installing 80 mm Fan and eMMC===&lt;br /&gt;
[[File:80mmfan.png|200px|thumb|right|The 80&amp;amp;nbsp;fan is a worthwhile addition to the NAS Case build]]&lt;br /&gt;
&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&lt;br /&gt;
===Step 7. Installing Extras (SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an SMA Antennas, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 8''' of this guide. &lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&lt;br /&gt;
===Step 8. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:NASCAsewithdrives.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
[[File:TopViewAssembly.png|300px|thumb|right|Top view of a complete NAS Case Assembly]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 9. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:RPRO-SATA852-1.jpg&amp;diff=20001</id>
		<title>File:RPRO-SATA852-1.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:RPRO-SATA852-1.jpg&amp;diff=20001"/>
		<updated>2023-07-02T10:12:59Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: PCIe to Dual SATA-III Interface Card with JMicron JMB582 Chipset&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
PCIe to Dual SATA-III Interface Card with JMicron JMB582 Chipset&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{subst:Unknown_copyright}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20000</id>
		<title>NASCase-STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=NASCase-STAR64&amp;diff=20000"/>
		<updated>2023-07-02T10:11:12Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Initial version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Warning: This page is currently work in progress!'''&lt;br /&gt;
'''Pictures are still showing ROCKPro64'''&lt;br /&gt;
&lt;br /&gt;
The PINE64 NAS Case is intended for either a Network Attached Storage (NAS) or Desktop application, but it can also be used in a number of other server capacities. It is built from precision-cut and powder-coated aluminum. The physical dimensions are 232.4 mm (Width) x 105.0 mm (Height) x 145.2 mm (Depth).&lt;br /&gt;
&lt;br /&gt;
An exploded view of the NAS Case, illustrating how all the components come together, can be found [http://files.pine64.org/doc/rockpro64/ROCKPro64%20NAS%20Case%20Exploded%20View%20Diagram.pdf here]. Please refer back to this PDF document during assembly to verify correct orientation of individual components. &lt;br /&gt;
[[file:NASCaseMain.png|400px|thumb|right|Front View of the PINE64 NAS Case for the STAR64]]&lt;br /&gt;
&lt;br /&gt;
==What does the NAS Case house?== &lt;br /&gt;
[[File:NAS_Case_internals.jpg|200px|thumb|left|Internal Layout of the NAS Case]]&lt;br /&gt;
&lt;br /&gt;
The NAS Case can house the following components: &lt;br /&gt;
*A STAR64 Single Board Computer (SBC) with a tall, mid-size or slim heatsink&lt;br /&gt;
*A PCIe to dual SATA adapter or a different low-profile PCIe card, e.g. an NVMe adapter&lt;br /&gt;
*Either two 3.5” OR two 2.5” HDDs / SSDs; combination of any two sized drives is accepted &lt;br /&gt;
*A 80 mm fan with 12 V supply voltage&lt;br /&gt;
*Up to three SMA antennas, two of which can be attached to the WiFi/ BT module&lt;br /&gt;
&lt;br /&gt;
==What comes in the box?==&lt;br /&gt;
When you purchase the NAS Case from the PINE store the following items are shipped to you: &lt;br /&gt;
*The NAS Case itself, which consists of a top and a bottom half as well as an internal HDD SSD mount. &lt;br /&gt;
*Two SATA cables &lt;br /&gt;
*A custom power cable capable of powering two  2.5” or 3.5” HDDs /SSDs&lt;br /&gt;
*The required screws, fittings and a LED relay&lt;br /&gt;
&lt;br /&gt;
==What other bare-minimum things do I need for a NAS build?==&lt;br /&gt;
[[File:PCIetoSATA.png|200px|thumb|right|You will need the PCIe to SATA adapter from the PINE64 store to connect your disks to your STAR64 board.]] &lt;br /&gt;
To assemble a functional NAS in the NAS Case you will require a number of additional parts. &lt;br /&gt;
With the exception of HDDs/SSDs, most of it can be purchased from the [https://www.pine64.org/?post_type=product PINE64 store]:&lt;br /&gt;
*A STAR64 4 GiB or 8 GiB board&lt;br /&gt;
*A 12 V 5 A power supply &lt;br /&gt;
*A PCIe to dual SATA adapter [https://forum.pine64.org/showthread.php?tid=6932 '''WARNING''': Old adapters with AS Media chips don't] [https://forum.pine64.org/showthread.php?tid=6511 work well with two HDD!]&lt;br /&gt;
*One or two 2.5”/ 3.5” HDDs (not sold in the PINE store)&lt;br /&gt;
*A class 10 micro SD card and/or eMMC module (optionally an eMMC to USB 2.0 adapter)&lt;br /&gt;
*80 mm fan with 12 V supply&lt;br /&gt;
*3 pin JST PH connector and crimp contacts with 2 mm pitch (not sold in the PINE store)&lt;br /&gt;
&lt;br /&gt;
==Which software should I use?==&lt;br /&gt;
&lt;br /&gt;
'''Help needed!'''&lt;br /&gt;
&lt;br /&gt;
Please help to contribute with your experience:&lt;br /&gt;
*OMV for Risc-V?&lt;br /&gt;
*Nextcloud?&lt;br /&gt;
*Others?&lt;br /&gt;
&lt;br /&gt;
==Step-by-Step Assembly Instructions==&lt;br /&gt;
&lt;br /&gt;
If want an overview of the process before you start in video format [http://www.youtube.com/watch?v=_UeeklKo0Og check out this instructional video] for the ROCKPro64.&lt;br /&gt;
Come back afterwards and read the instructions carefully here, as there are few important differences when using a STAR64!&lt;br /&gt;
&lt;br /&gt;
===Step 1. Preparation of the NAS Case for Installation===&lt;br /&gt;
Remove the top of the NAS Case. It is held together by two screws on either side with the exception of the bottom (left, right, top and back). Once done, the top of the case should lift right off without any resistance. &lt;br /&gt;
&lt;br /&gt;
The next step is to remove the HDD/SSD holding bracket, which is screwed into the bottom of the case. Flip the bottom over and undo the screws which hold the bracket in place.&lt;br /&gt;
&lt;br /&gt;
You should now be left with a bare case ready for installation of the necessary components. &lt;br /&gt;
&lt;br /&gt;
===Step 2. Installing the STAR64 into the NAS Case===&lt;br /&gt;
[[File:STAR64inNASCase.jpg|300px|thumb|right|Correct Placement of the STAR64 in the empty case, with Ethernet; Power; and HDMI at the back of the NAS Case]]&lt;br /&gt;
[[File:FrontIO.png|300px|thumb|left|Front IO with IR and LED relay installed]]&lt;br /&gt;
Make sure nothing is plugged into your STAR64 - including a micro SD card. &lt;br /&gt;
If you intend to use a heatsink with your board then please install it now before proceeding. If you bought the heatsink from the Pine64 store it comes with thermal paste and/or a thermal pad. You can use one or the other (not both!). The thermal pad is easier to apply but the thermal paste should be better at cooling if properly applied.&lt;br /&gt;
&lt;br /&gt;
Place your STAR64 into the case with USB 2.0 and 3.0 ports facing the front of the case. It should fit snugly and align with the port cut-outs in the case. Do not attempt at installing the board at an angle; insert it while holding it level and lowering it into the case.&lt;br /&gt;
&lt;br /&gt;
Secure the board with 4x screws included in the see-through bag. Make sure that the board is held firmly in the case but do not overtighten the screws. &lt;br /&gt;
&lt;br /&gt;
On the STAR64 the LEDs are at the back so just ignore the small semi-opaque plastic cylinder you can find in the see-through bag.&lt;br /&gt;
&lt;br /&gt;
If you wish to install an IRx receiver into your case then you should also place it into the IR socket at this stage. It should align with the cutout right above the power (PWR) switch.&lt;br /&gt;
&lt;br /&gt;
===Step 3 PCIe to SATA adapter and Cabling===&lt;br /&gt;
[[File:DC_Location.jpg|200px|thumb|left|DC header on the STAR64 for the power cable]]&lt;br /&gt;
[[File:PCIeFittedSATAsockets.png|200px|thumb|right|PCIe to SATA installed. Note the SATA connection orientation]]&lt;br /&gt;
With the board in place it's time to set up the PCIe to SATA adapter and do the cabling necessary to attach HDDs / SSDs. &lt;br /&gt;
&lt;br /&gt;
Place the SATA Adapter into the PCIe slot on the STAR64 board so that the holding bracket of the adapter faces the back of the case. In the back of the case there is a cutout for the PCIe adapter. &lt;br /&gt;
&lt;br /&gt;
Secure the PCIe dual SATA Adapter with a single screw at the top of the bracket, in the back of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
This is the right time to plug in the SATA and custom power cable. The SATA cables plug into the ports on the top or front of the adapter while the power cable plugs into DC header located on the board  - just below the power jack, to the left of the Ethernet port (when viewed from front). &lt;br /&gt;
&lt;br /&gt;
Have the cables hang outside the case or to the side for now so that they do not get in the way until they are needed.&lt;br /&gt;
&lt;br /&gt;
===Step 4. Installing HDDs / SSDs into the Holding Bracket===&lt;br /&gt;
[[File:Bracket_Orientation.png|300px|thumb|left|Bracket Orientation in the NAS Case]]&lt;br /&gt;
The next step is to install HDDs/ SSDs into their holding bracket; 2.5” drives need to be installed at the very bottom of the bracket while 3.5” drives are at the top of the the bracket.&lt;br /&gt;
&lt;br /&gt;
For 2.5” drives make sure that the drives are oriented up and their SATA and power ports face the front of the NAS Case.&lt;br /&gt;
&lt;br /&gt;
For 3.5” HDDs, make sure they are oriented up and their SATA and power ports face the right side of the NAS Case (towards the fan mounting location). &lt;br /&gt;
&lt;br /&gt;
Each drive you mount in the holding bracket requires 4x screws which come supplied in the see-through bag. Make sure the drives are held in place firmly but do not over-tighten the screws. &lt;br /&gt;
&lt;br /&gt;
Once the holding bracket is assembled and you have your drives mounted, please set it aside and proceed to the next step.&lt;br /&gt;
&lt;br /&gt;
===Step 5. Installing 80mm Fan===&lt;br /&gt;
[[File:80mmfan.png|200px|thumb|right|The 80mm fan is a worthwhile addition to the NAS Case build]]&lt;br /&gt;
&lt;br /&gt;
The fan should be mounted on the right-hand side of the case. We suggest that the fan is oriented for negative pressure, blowing air out of the case rather than taking air in. ([[User:AlephNull]] disagrees and recommends a positive pressure configuration both to allow a filter to be placed over the intake to prevent dust ingress and because the cage on the outlet side of the fan helps keep the wiring for 3.5&amp;quot; disks away from the fan blades). For best cable management results, have the fan power lead face the front of the case so that it can easily be routed to its header located next to GPIO pins on the STAR64. &lt;br /&gt;
The fan should be secured using 4x long screws (that fasten into bolts) which can be found in the see-through bag supplied with the NAS Case. &lt;br /&gt;
Plug in the fan at this stage of the installation and route the cable at the bottom of the front of the case.&lt;br /&gt;
&lt;br /&gt;
===Step 6. Installing Extras (eMMC; SMA Antennas)===&lt;br /&gt;
If you have additional peripherals, such as an eMMC or SMA Antennas as well as the 80mm fan, then now is the right time to install them. If you have '''none of the above''', please '''proceed to step 6''' of this guide. &lt;br /&gt;
&lt;br /&gt;
The eMMC is fitted into it respective placements on the STAR64 board - please consult the diagram for their correct installation.&lt;br /&gt;
&lt;br /&gt;
If you intend to use external u.FL to SMA antennas in the NAS Case then this is also the time to install them into the case. In the back section of the case at the very top you will find three cut-outs where the SMA antennas can be fitted. Don’t plug the u.FL leads antenna leads into the WiFi/BT module just yet - instead wait until after the disk holding bracket is installed into the case (step 6).&lt;br /&gt;
&lt;br /&gt;
===Step 7. Installing the HDD / SSD Bracket and Routing Cables===&lt;br /&gt;
[[File:NASCAsewithdrives.jpg|300px|thumb|right|Complete assembly of the NAS Case]]&lt;br /&gt;
[[File:TopViewAssembly.png|300px|thumb|right|Top view of a complete NAS Case Assembly]]&lt;br /&gt;
Installing the HDD/SSD bracket into the case and wiring it up is the last step before closing up the case. &lt;br /&gt;
&lt;br /&gt;
Place the bracket with the disks installed (from step 4) into the case. The bracket should line up with the guiding bolts and screw holes at the bottom of the case. The section of the bracket that holds 3.5” HDDs needs to face the left side of the case (when viewed from front) and should overhang the STAR64 board slightly. The 3.5” SATA and power ports should face the right side of the case - where the fan mounts, while 2.5” SATA and power ports should face the front of the case. &lt;br /&gt;
&lt;br /&gt;
With the bracket aligned, flip the bottom of the case over while holding the bracket in place. Screw it into place using 4x Phillips head screws that came included with the NAS Case. &lt;br /&gt;
&lt;br /&gt;
The last thing remaining before the NAS Case can be screwed shut is routing SATA and power cables: &lt;br /&gt;
For 3.5” HDDs we suggest routing power and SATA cables underneath the drives, where 2.5” HDDs/SSDs would otherwise reside.&lt;br /&gt;
&lt;br /&gt;
For 2.5” disks you have plenty of routing options as there is much space available. The most obvious route is straight over the disks, where the 3.5” HDDs would reside.&lt;br /&gt;
&lt;br /&gt;
===Step 8. Closing the NAS Case and Powering On your NAS===&lt;br /&gt;
&lt;br /&gt;
Almost there. All that's left to do is to screw together the NAS Case. Screw in the top front screws first followed by screws on either side of the case. Do the back screws last. There, you are done.&lt;br /&gt;
 &lt;br /&gt;
To power on your new NAS Case and HDDs all you need to do is to plug in power and Ethernet (This is obviously assuming that you are intending to use it as a NAS or a headless server).&lt;br /&gt;
&lt;br /&gt;
==IO accessibility when the NAS Case is assembled==&lt;br /&gt;
&lt;br /&gt;
When the NAS Case is assembled and screwed shut these STAR64 IO ports remain accessible:&lt;br /&gt;
* Micro SD slot &lt;br /&gt;
* 3 x USB 2.0&lt;br /&gt;
* USB 3.0&lt;br /&gt;
* Power switch&lt;br /&gt;
* The headphone jack &lt;br /&gt;
* One of two Gigabit Ethernet port&lt;br /&gt;
* HDMI&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:SBC Cases]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=STAR64&amp;diff=19980</id>
		<title>STAR64</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=STAR64&amp;diff=19980"/>
		<updated>2023-06-26T21:05:40Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Adding section to change the blue LED behavior&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Star64.jpg|400px|thumb|right|The STAR64]]&lt;br /&gt;
&lt;br /&gt;
The '''Star64''' is a RISC-V based Single Board Computer powered by StarFive JH7110 Quad-Core SiFive U74 64-Bit CPU, Imagination Technology BX-4-32 GPU and supports up to 8GB 1866MHz LPDDR4 memory. It provides an eMMC module socket, MicroSD Card slot, PCI-e, Pi-2 Bus, USB 3.0, and many other peripheral interfaces for makers to integrate with sensors and other devices.&lt;br /&gt;
&lt;br /&gt;
[[File:RISC-V.png|600px|]]&lt;br /&gt;
&lt;br /&gt;
== Software releases ==&lt;br /&gt;
&lt;br /&gt;
The releases are still in '''alpha''' state and are only fit for testing purposes. &lt;br /&gt;
&lt;br /&gt;
* [https://github.com/Fishwaldo/meta-pine64 A Set of Images built with Yocto for commandline, weston and plasma - Where possible, GPU/VPU acceleration is enabled.]&lt;br /&gt;
* [https://forum.pine64.org/showthread.php?tid=18276 Armbian]&lt;br /&gt;
&lt;br /&gt;
== SoC and Memory Specification ==&lt;br /&gt;
* Based on [https://www.starfivetech.com/en/site/soc StarFive JH7110]&lt;br /&gt;
&lt;br /&gt;
[[File:StarFive.jpg|right]]&lt;br /&gt;
[[File:JH7110_Block_Diagram.png|800px]]&lt;br /&gt;
&lt;br /&gt;
=== CPU Architecture ===&lt;br /&gt;
* [https://www.sifive.com/cores/u74 Quad-core U74 up to 1.5GHz CPU]&lt;br /&gt;
[[File:SiFive.jpg|right|200px]]&lt;br /&gt;
* Fully compliant with the RISC-V ISA specification&lt;br /&gt;
* 64-bit RISC-V Application Core&lt;br /&gt;
* 32KB L1 I-cache with ECC&lt;br /&gt;
* 32KB L1 D-cache with ECC&lt;br /&gt;
* 8 Region Physical Memory Protection&lt;br /&gt;
* Virtual Memory support with up to 47 Physical Address bits&lt;br /&gt;
* Integrated up to 2MB L2 Cache with ECC&lt;br /&gt;
* includes RV64IMAC S7 monitor core, 16 KB L1 I-Cache with ECC, 8 KB DTIM with ECC&lt;br /&gt;
* 32-bit RISC-V CPU core (E24) for real time control, support RV32IMFC RISC-V ISA&lt;br /&gt;
&lt;br /&gt;
=== GPU Architecture ===&lt;br /&gt;
* [https://www.imaginationtech.com/product/img-bxe-4-32-mc4/ Imagination Technology BXE-4-32 up to 600Mhz GPU]&lt;br /&gt;
[[File:imgtech.png|right|200px]]&lt;br /&gt;
* Support OpenCL 3.0&lt;br /&gt;
* Support OpenGL ES 3.2&lt;br /&gt;
* Support Vulkan 1.2&lt;br /&gt;
* Tile-based deferred rendering architecture for 3D graphics workloads, with concurrent processing of multiple tiles&lt;br /&gt;
* Support for GPU visualization, up to 8 virtual GPUs&lt;br /&gt;
* On fly frame buffer compression and decompression (TFBC) algorithm&lt;br /&gt;
* Performance: 128 FP32 FLOPs/Clock, 256 FP16 FLOPs/Clock&lt;br /&gt;
&lt;br /&gt;
=== System Memory ===&lt;br /&gt;
* LPDDR4 RAM Memory Variants: 2GB, 4GB and 8GB.&lt;br /&gt;
&lt;br /&gt;
== Board Features ==&lt;br /&gt;
&lt;br /&gt;
=== Video ===&lt;br /&gt;
* Digital Video output up to 4K@30Hz&lt;br /&gt;
* 4K HDR @ 60fps&lt;br /&gt;
* H.264/AVC Base/Main/High/High10 profile @ level 5.1; up to 4K&amp;amp;times;2K @ 60fps&lt;br /&gt;
* H.265/HEVC Main/Main10 profile @ level 5.1 High-tier; up to 4K&amp;amp;times;2K @ 60fps&lt;br /&gt;
&lt;br /&gt;
=== Audio ===&lt;br /&gt;
* 3.5mm audio Jack&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
* Single or Dual 10/100/1000Mbps Ethernet &lt;br /&gt;
* 2.4GHz/5Ghz MIMO WiFi 802.11 b/g/n/ac with Bluetooth 5.2&lt;br /&gt;
&lt;br /&gt;
=== Storage ===&lt;br /&gt;
* on-board 128Mbit (16MByte) XSPI NOR flash memory - bootable&lt;br /&gt;
* microSD - bootable, supports SDHC and SDXC and storage up to 256GB&lt;br /&gt;
* eMMC - bootable (optional eMMC Module)&lt;br /&gt;
* 1&amp;amp;times; USB3.0 Dedicated Host port&lt;br /&gt;
* 3&amp;amp;times; USB2.0 Host port&lt;br /&gt;
&lt;br /&gt;
=== Expansion Ports ===&lt;br /&gt;
* PCIe 2.0 &amp;amp;times;1 lane&lt;br /&gt;
* 2&amp;amp;times;20 pins &amp;quot;Pi2&amp;quot; GPIO Header&lt;br /&gt;
** The JH7110 SoC supports full multiplexing of its GPIO pins. This means any non-power/ground pin can be configured to any function outlined in Table 4-2 of the SoC datasheet.&lt;br /&gt;
* 4 lane MiPi DSI port for LCD panel&lt;br /&gt;
* 4 lane MiPi CSI port for camera module&lt;br /&gt;
&lt;br /&gt;
== Board Information, Schematics and Certifications ==&lt;br /&gt;
Model &amp;quot;A&amp;quot; Baseboard Dimensions: 133mm&amp;amp;times;80mm&amp;amp;times;19mm&lt;br /&gt;
&lt;br /&gt;
Input Power: DC 12V @ 3A 5.5mmOD/2.1mmID center-positive Barrel DC Jack connector&lt;br /&gt;
&lt;br /&gt;
Schematic:&lt;br /&gt;
* [https://files.pine64.org/doc/star64/Star64_Schematic_V1.1_20230504.pdf STAR64 Schematic 20230504 v1.1 (Production Released version)]&lt;br /&gt;
* [https://files.pine64.org/doc/star64/Star64_Schematic_V1.0_20220721.pdf STAR64 Schematic 20220721 v1.0 (Prototype Board)]&lt;br /&gt;
&lt;br /&gt;
Certifications:&lt;br /&gt;
* Disclaimer: Please note that PINE64 SBC is not a &amp;quot;final&amp;quot; product and in general certification is not necessary. However, PINE64 still submits the SBC for FCC, CE, and ROHS certifications and obtain the certificates to prove that the SBC board can pass the testing. Please note, a final commercial product needs to perform its own testing and obtain its own certificate.&lt;br /&gt;
* Not yet available&lt;br /&gt;
&lt;br /&gt;
== Datasheets for Components and Peripherals ==&lt;br /&gt;
&lt;br /&gt;
Star64 JH7110 SoC information:&lt;br /&gt;
* [https://doc-en.rvspace.org/JH7110/PDF/JH7110_Product_Brief.pdf StarFive JH7110 SoC Product Brief]&lt;br /&gt;
* [https://doc-en.rvspace.org/JH7110/PDF/JH7110_Datasheet.pdf StarFive JH7110 SoC Datasheet]&lt;br /&gt;
* [https://doc-en.rvspace.org/JH7110/TRM/ StarFive JH7110 SoC Technical Reference Manual]&lt;br /&gt;
&lt;br /&gt;
X-Power PMU information:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/star64/AXP15060%20datasheet%20V0.1.pdf X-Power AXP15060 Datasheet V0.1]&lt;br /&gt;
&lt;br /&gt;
LPDDR4 (200 Balls) SDRAM:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/rockpro64/SM512M32Z01MD2BNP(200BALL).pdf Micron LPDDR4 Mobile LPDDR4 Datasheet]&lt;br /&gt;
&lt;br /&gt;
eMMC information:&lt;br /&gt;
* [https://files.pine64.org/doc/rock64/PINE64_eMMC_Module_20170719.pdf PINE64 eMMC module schematic]&lt;br /&gt;
* [https://files.pine64.org/doc/rock64/usb%20emmc%20module%20adapter%20v2.pdf PINE64 USB adapter for eMMC module V2 schematic]&lt;br /&gt;
* [https://files.pine64.org/doc/rock64/USB%20adapter%20for%20eMMC%20module%20PCB.tar PINE64 USB adapter for eMMC module PCB in JPEG]&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/pine64/E-00517%20FORESEE_eMMC_NCEMAM8B-16G%20SPEC.pdf 16GB Foresee eMMC Datasheet]&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/pine64/SDINADF4-16-128GB-H%20data%20sheet%20v1.13.pdf 32GB/64GB/128GB SanDisk eMMC Datasheet]&lt;br /&gt;
&lt;br /&gt;
SPI NOR Flash information:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/star64/gd25lq128e_rev1.0_20210513.pdf GigaDevice 128Mb XSPI-Flash Datasheet]&lt;br /&gt;
&lt;br /&gt;
Ethernet related info:&lt;br /&gt;
* TBA&lt;br /&gt;
&lt;br /&gt;
WiFi/BT module info:&lt;br /&gt;
* [https://files.pine64.org/doc/datasheet/star64/Fn-Link_6252B-UUB_datasheet_V1.1_20220329.pdf Fn-Link 6252B 11AC Dual Band 2T2R WiFi + Bluetooth5.2 Datasheet]&lt;br /&gt;
&lt;br /&gt;
== Bringup Notes ==&lt;br /&gt;
&lt;br /&gt;
# The USB over-current protection is not wired up correctly to the USB ports on Star64. The default Starfive Kernel will disable USB on boot as it belives the ports are overcurrent. This ugly hack works around it: https://github.com/Fishwaldo/Star64_linux/commit/2634a13ecfa1fa5c232ec2b9f6a6b6b0d9d66898&lt;br /&gt;
# The Wifi Chip (RTL8852BU) is not supported in the kernel. There is a Vendor Driver that is imported in the kernel at https://github.com/Fishwaldo/Star64_linux/tree/Star64_devel/drivers/staging/rtl8852bu but it really needs a cleanup. It does BUG_ON at boot, but wifi is confirmed working. &lt;br /&gt;
# HDMI can be finicky. 4K Monitors are known to have a issue. This is also relevant for VisionFive2&lt;br /&gt;
# Some kernels/distributions do not detect the total memory correctly. This is due to the way u-boot is configured. Currently, u-boot reads the memory from the eeprom on the Star64, and updates the dtb file before booting the kernel. Distributions that boot differently may not get the updated dtb file with the correct memory entry. You can work around this by recompiling the DTB with the correct memory for your board&lt;br /&gt;
# VisionFive2 Kernels will only offer limited functionality on the Star64 - Mainly USB, Wifi and PCI will not work.&lt;br /&gt;
# The 4-pin 12 volt JST-XH-4A connector found on the Star64 is incompatible with the dual SATA power adapter intended for the ROCKPro64. The connector on the Star64 is rotated 180 degrees to the one on the ROCKPro64, resulting in the cable receiving +12V where GND is expected and vice versa. The cable's internal circuitry ends up shorting in this configuration.&lt;br /&gt;
&lt;br /&gt;
=== LEDs ===&lt;br /&gt;
&lt;br /&gt;
How can one make the blue led stop blinking?&lt;br /&gt;
&lt;br /&gt;
 sudo echo &amp;quot;default-on&amp;quot; &amp;gt;&amp;gt; /sys/devices/platform/leds/leds/blue-led/trigger&lt;br /&gt;
&lt;br /&gt;
To see the various things you can set the trigger to if you ever &amp;quot;do&amp;quot; want to use that blue led:&lt;br /&gt;
&lt;br /&gt;
 cat  /sys/devices/platform/leds/leds/blue-led/trigger &lt;br /&gt;
&lt;br /&gt;
For example the trigger ''activity'' is all cpu activity.&lt;br /&gt;
&lt;br /&gt;
== Potential Issues ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;&lt;br /&gt;
If you get the following error in u-boot (or your 8Gb board is only detected as 4Gb) the possible problem is a empty, or corrupt eeprom:&lt;br /&gt;
&lt;br /&gt;
 Not a StarFive EEPROM data format - magic error&lt;br /&gt;
 EEPROM dump: (0x100 bytes)&lt;br /&gt;
 00: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 10: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 20: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 80: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 90: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
 F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF &lt;br /&gt;
&lt;br /&gt;
Then from within u-boot execute the following commands:&lt;br /&gt;
&lt;br /&gt;
 mac initilize&lt;br /&gt;
 mac product_id &amp;lt;PRODUCTID&amp;gt;&lt;br /&gt;
 mac write_eeprom&lt;br /&gt;
&lt;br /&gt;
Set ProductID to either:&lt;br /&gt;
* For 8Gb Models: STAR64V1-2310-D008E000-01234567&lt;br /&gt;
* for 4Gb Models: STAR64V1-2310-D004E000-01234567&lt;br /&gt;
&lt;br /&gt;
You can replace the last 8 digits with a random number if you wish.&lt;br /&gt;
If these commands fail, please join the #star64 channel in the Pine64 community for more assistance.&lt;br /&gt;
&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Prototype Bringup Notes ==&lt;br /&gt;
&lt;br /&gt;
Note: This section is relevant to the original prototype (v1.0) that a few developers received. &lt;br /&gt;
&lt;br /&gt;
# The [https://files.pine64.org/doc/star64/Star64_Schematic_V1.0_20220721.pdf schematic] has several discrepancies with actual board labels.&lt;br /&gt;
# The serial console can be found with TXD on pin 8 and RXD on pin 10; a convention common to Pi-style boards. Use the 40pin header pinouts in color on page one and not the schematic prose.&lt;br /&gt;
# If you have only a single core running and no PCI card present, it appears to power up via the +5V/GND lines from the USB serial adapter pins.&lt;br /&gt;
# It will not boot from a VisionFive R1 uSD card.&lt;br /&gt;
# The boot device switch labels and the silk screen are inverted. &amp;quot;0&amp;quot; means &amp;quot;On&amp;quot;.&lt;br /&gt;
# 2021.10-00001-gdbdaad919b will attempt to boot from SPI, but it appears blank. If you let it for many minutes, the device will eventually time out and boot OpenSBI v1.0  from (SPI?). This will fail, but only after self-identifying as a VisionFive R2, complete with five cores and 4 GB of RAM, before failing. A &amp;quot;press any key&amp;quot; timeout is offered, but I've been unable to make it stop. It will eventually crash with:&lt;br /&gt;
&lt;br /&gt;
 Loading Environment from SPIFlash... SF: Detected gd25lq128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB&lt;br /&gt;
 *** Warning - bad CRC, using default environment&lt;br /&gt;
 &lt;br /&gt;
 Not a StarFive EEPROM data format - magic error&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:STAR64]] [[Category:StarFive JH7110]]&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
	<entry>
		<id>https://wiki.pine64.org/index.php?title=File:Star64-pcie-fit-check.jpg&amp;diff=19722</id>
		<title>File:Star64-pcie-fit-check.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.pine64.org/index.php?title=File:Star64-pcie-fit-check.jpg&amp;diff=19722"/>
		<updated>2023-06-04T20:18:07Z</updated>

		<summary type="html">&lt;p&gt;Nuess0r: Try if the Pine64 SATA PCIe card fits into the Pine64 NAS case.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Try if the Pine64 SATA PCIe card fits into the Pine64 NAS case.&lt;br /&gt;
== Licensing ==&lt;br /&gt;
{{PD|PD}}&lt;/div&gt;</summary>
		<author><name>Nuess0r</name></author>
	</entry>
</feed>