Archive:Install XBMC on Raspberry Pi with USB drive: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
== Hardware Needed: == | == Hardware Needed: == | ||
* HW: A Raspberry PI ( | * HW: A Raspberry PI 1 or 2 (obviously) and a well-suited power supply. The Raspberry Pi 2 requires a 2 Amps power adapter for proper workings. | ||
* HW: A SD card. | * HW: A (micro) SD card of 2GB or larger in size. Class 10 SDHC cards are preferred. (You will be using this to store your OS onto.) | ||
* HW: A Memory Stick. | * HW: A Memory Stick. | ||
* HW: A working Network Cable. | * HW: A working Network Cable. | ||
* HW: SD card reader. | * HW: SD card reader. | ||
* SW: MiniTool Partition Wizard. ( | * SW: MiniTool Partition Wizard. ( http://partitionwizard.com ) | ||
== Detailed Instructions: == | == Detailed Instructions: == | ||
Line 53: | Line 53: | ||
* "chmod +x /storage/.config/autostart.sh" | * "chmod +x /storage/.config/autostart.sh" | ||
When your PI comes up, it will take 30 seconds and the time will be in sync. | When your PI comes up, it will take 30 seconds and the time will be in sync. | ||
Latest revision as of 20:34, 29 August 2020
The aim here is to use a SD card for the system files and a USB DRIVE as the storage device. This instruction-set work on Windows7. Some knowledge needed using Linux and "vi".
The gain is speed, cheap storage and ability to upgrade without loosing configuration data.
Hardware Needed:
- HW: A Raspberry PI 1 or 2 (obviously) and a well-suited power supply. The Raspberry Pi 2 requires a 2 Amps power adapter for proper workings.
- HW: A (micro) SD card of 2GB or larger in size. Class 10 SDHC cards are preferred. (You will be using this to store your OS onto.)
- HW: A Memory Stick.
- HW: A working Network Cable.
- HW: SD card reader.
- SW: MiniTool Partition Wizard. ( http://partitionwizard.com )
Detailed Instructions:
Using Minitool:
- Create a 150MB, FAT32, PRIMARY, ACTIVE, partition on your SD card. (label: System) - NOTE: You could use the entire SD size.
- Create a partition (I used the full size) , EXT4, PRIMARY partition on your Memory Stick. (label :Storage)
Extracting the Archive:
- Extract the archive using either 7zip or winrar.
- Open a DOS BOX and cd to the directory where you extracted the archive.
- Run the following commands to copy the files to the SD card. (Mine was mounted on G:\ - Change this to your need):
copy target\KERNEL g:\kernel.img copy target\SYSTEM g:\ copy 3rdparty\bootloader\*.* g:\ copy openelec.ico g:\ copy README.md g:\
Create your startup files:
- "edit g:\cmdline.txt" (Remember to change g:\ for your own drive.)
- Add the following content to the file:
boot=/dev/mmcblk0p1 disk=/dev/sda1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 ssh
Explanation: What you have just done:
- You have used MiniTool to create 2 filesystems. One a FAT32 and one a EXT4 filesystem
- You extracted the archive and dumped all the files to your SD card.
- You then created a startup cmdline.txt file
NOTES:
- Changing the OS to a newer OS is easy, just do Points 2.2 and 2.3
- By just doing Points 2.2 and 2.3 you will not loose any data stored or customization on your USB Device.
- You can replace the USB device with a HDD for more storage.
Setting the time correctly:
Raspberry PI does not come with a real clock. What that means is that you will have to set the time every-time you boot by hand. But, there is an easy way to rectify this:
- ssh to OpenElec. (u:root/p:openelec)
- "vi /storage/.config/autostart.sh"
- Add the following content:
#!/bin/sh (sleep 30; \ /usr/sbin/ntpdate pool.ntp.org; \ )&
- "chmod +x /storage/.config/autostart.sh"
When your PI comes up, it will take 30 seconds and the time will be in sync.