It’s a blog. Just a blog!
Установка Ubuntu 16.04 на Odroid XU4 в корпусе CloudShell2
После того, как корпус CloudShell2 был собран, а Odroid XU4 установлен и подключен, настало время установки операционной системы.
Сначала необходимо скачать образ операционной системы, который мы и будем устанавливать. Так как Odroid XU4 является системой на базе ARM процессора, то для установки подойдет не каждая система. Дистрибутивы для x86/64 систем не подойдут, только ARM сборки.Список ARM дистрибутивов с каждым годом растет, но производитель официально поддерживает только операционную систему Ubuntu и всем знакомый Android. В нашем случае мы будем ставить Ubuntu.
Скачать образ операционной системы можно на официальном сайте производителя. На данный момент доступны версии Ubuntu на базе ядра 4.9, что является более предпочтительным вариантом, так как данная версия операционной системы обеспечит запуск всех модулей Odroid XU4 без танцев с бубнами.
Ссылка для скачивания ОС Ubuntu 16.04 (Kernel 4.9)
Дистрибутивы операционной систему Ubuntu более ранних версий доступны также на сайте производителя (ссылка)
Скорость скачивания с зеркал производителя происходит на достаточно низкой скорости, поэтому лучше воспользоваться российскими зеркалами, чтобы не ждать загрузку мучительно долго. Ссылки можно найти в ветке обсуждения Odroid устройств на сайте 4pda.ru
Ссылка на официальные дистрибутивы операционной системы Android.
Возможно использовать и другие ARM дистрибутивы, такие как Fedora Linux, Kali Linux, Arch Linux, но использование данных дистрибутивов не гарантирует работоспособность всех пакетов, необходимых для стабильной работы Odroid XU4.
И так. Вы уже скачали дистрибутив и готовы к установке.
Для установки нам потребуется microSD карта размером не менее 4 гигабайт, лучше если это будет 8, либо 16, 32 или даже 64 гигабайта. Все зависит от ваших финансовых возможностей, а также тех функций, которые будет осуществлять Odroid XU4.
Разархивируем образ, который был ранее скачан с зеркала.
Название оригинального файла-архива
Название распакованного файла
Пользователи, которые используют операционную систему Microsoft Windows, могут воспользоваться программой Win32 Disk Imager для записи образа на microSD накопитель. Те пользователи, которые используют MacOS или Linux, могут воспользоваться утилитой dd, которая есть во всех дистрибутивах MacOS/Linux.
Я пользуюсь Mac 🙂
Вставляем microSD накопитель, переходим в консоль, и запускам дисковую утилиту.
В списке необходимо найти microSD карту. В моем случае это /dev/disk2
Переходим в папку с архивированным дистрибутивом. Надо узнать размер файла, использую утилиты ls или ll. В моем случае файл весит 1.6G. Ниже я поясню зачем нам необходим размер файла.
Запускаем команду копирования образа на microSD накопитель.
Так как утилита dd не имеет статус-бара, нам потребуется дополнительная утилита pv. Для утилиты dd мы указываем откуда брать файл и куда записывать. Для утилиты pv мы указываем размер файла, чтобы у нас отображался статус-бар выполнения копирования.
В Linux утилита pv есть по-умолчанию, в MacOS утилиту pv можно поставить через brew.
Процесс копирования образа на microSD накопитель завершится выводом примерно следующей информации
После выполнения копирования отключаем microSD накопитель и устанавливаем непосредственно в Odroid XU4.
На этом этапе установка операционной системы закончена!
Перед первым включением Odroid XU4 и загрузкой лучше отключить SATA накопители. После первой перезагрузки SATA накопители можно подключить обратно.
После загрузки системы вы увидите привычное приветствие Linux.
Данные для входа login: root / password: odroid
Далее уже можно настроить сеть, Wifi сеть, LCD монитор, вентиляторы, установить пакета, и провести другие настройки операционной системы и Odroid XU4.
В следующей статье я опишу процесс сборки корпуса CloudShell2, настройки LCD экрана, IR порта, вентиляторов, а также процесс установки и запуска Storjshare-daemon , собственно для чего вся система и собирается 🙂
Источник
Odroid xu4 установка android
If you are not familiar with Android platform development, refer this document first.
http://com.odroid.com/sigong/nf_file_board. tag=&bid=98
What’s new agaist 3.0!
— EDID feature is removed and there are 2 ways of HDMI resolution setting for better monitor compatibility.
1) 1080p/720p selection with Jumper setting.
2) If you press down «USER» button(SW3) when you plug HDMI connector after booting, resolution will be 1080p regardless of Jumper setting.
— Wrong SD/eMMC mounting issue is fixed.
1) If you boot from SD card, you can’t access eMMC.
2) If you boot from eMMC, you can access SD card via /mnt/ext_sd
— Bluetooth stereo headset issue is fixed
— USB storage is mounted on /mnt/ext_usb automatically.
1400Mhz)
— GPU Mali-400 clock is fixed at 440Mhz
— eMMC clock is changed from 33Mhz to 50Mhz (U-boot & Kernel must be updated)
— SD clock is changed from 44Mhz to 50Mhz (U-boot & Kernel must be updated)
— HDMI overlay is implemented (Movie playback doesn’t hide Android UI anymore)
— HDMI EDID feature returns with better compatibility (Software driven accurate I2C, 720p/1080p jumper setting is useless perhaps)
— HDMI flickering is almost gone even VDFS/CPU-Hotplug are enabled.
— USB mass storage is mountable on /mnt/ext_usb. (Supports FAT32/NTFS, But NTFS is read only)
— If your board boot from eMMC, SD Card can be mounted on /mnt/ext_sd. (Supports FAT32/NTFS, But NTFS is read only)
— Screen rotation lock is configurable in Settings. It makes better compatibility in HDMI display.
— Improved PMIC device driver
— Bluetooth stereo headset support (A2DP is implemented)
— Experimental MS Kinect driver (You can develop OpenCV/OpenGL/OpenNI stuff)
— uinput driver is built in kernel image for various input methods i.e. DroidMote.
— Rooting is default. (But, Preloaded GMS is not allowed legally by Google)
To boot the ODROID-X, you need an SD card installed with a bootloader and a suitable Operating System.
Some ODROID-X kits will come with a ready-to-go card, but if you didn’t purchase one you will need to prepare your own:
Official images are available from this link.
Warning! When you write the ODROID image to your SD card you will lose all data that was on the card.
Copying the image to an SD Card on Windows
Download a zipped image from this link or other mirrors
http://com.odroid.com/sigong/nf_file_board/nfile_board.php
Extract the image file *.odt from the zip file.
Insert the SD card into your SD card reader and check what drive letter it was assigned. You can easily see the drive letter (for example G:) by looking in the left column of Windows Explorer. If the card is not new, you should format it; otherwise Win32DiskImager may hang.
Download the Win32DiskImager utility. The download links are on the right hand side of the page, you want the binary zip.
Extract the zip file and run the Win32DiskImager utility. You may need to run the utility as Administrator.
Select the *.odt image file you extracted earlier
Select the drive letter of the SD card in the device box. Be careful to select the correct drive; if you get the wrong one you can destroy your computer’s hard disk!
Click Write and wait for the write to complete.
Exit the imager and eject the SD card.
Insert the card in the ODROID, power it on, and it should boot up. Have fun!
Copying an image to the SD Card in Linux (command line)
Please note that the use of the «dd» tool can overwrite any partition of your machine. If you specify the wrong device in the instructions below you could delete your primary Linux partition. Please be careful.
Download a zipped image from this link or other mirrors
http://com.odroid.com/sigong/nf_file_board/nfile_board.php
Extract the image, with (just an example)
unzip
/OdroidX_image_31-Jul-2012.zip
Run df -h to see what devices are currently mounted
If your computer has a slot for SD cards, insert the card. If not, insert the card into an SD card reader, then connect the reader to your computer.
Run df -h again. The device that wasn’t there last time is your SD card. The left column gives the device name of your SD card. It will be listed as something like «/dev/mmcblk0p1» or «/dev/sdd1». The last part («p1» or «1» respectively) is the partition number, but you want to write to the whole SD card, not just one partition, so you need to remove that part from the name (getting for example «/dev/mmcblk0» or «/dev/sdd») as the device for the whole SD card. Note that the SD card can show up more than once in the output of df: in fact it will if you have previously written a ODROID image to this SD card, because the ODROID SD images have more than one partition.
Now that you’ve noted what the device name is, you need to unmount it so that files can’t be read or written to the SD card while you are copying over the SD image. So run the command below, replacing «/dev/sdd1» with whatever your SD card’s device name is (including the partition number)
umount /dev/sdd1
Note that if you are not logged in as root you will need to prefix this with sudo
If your SD card shows up more than once in the output of df due to having multiple partitions on the SD card, you should unmount all of these partitions.
In the terminal write the image to the card with this command, making sure you replace the input file if= argument with the path to your .img file, and the «/dev/sdd» in the output file of= argument with the right device name (this is very important: you will lose all data on the hard drive on your computer if you get the wrong device name). Make sure the device name is the name of the whole SD card as described above, not just a partition of it (for example, sdd, not sdds1 or sddp1, or mmcblk0 not mmcblk0p1)
dd bs=1M if=ODROID-X_31_07_2012.odt of=/dev/sdd
Note that if you are not logged in as root you will need to prefix this with sudo
The dd command does not give any information of its progress and so may appear to have frozen. It could take more than five minutes to finish writing to the card. If your card reader has an LED it may blink during the write process, or you can run pkill -USR1 -n -x dd in another terminal (prefixed with sudo if you are not logged in as root).
As root run the command sync or if a normal user run sudo sync (this will ensure the write cache is flushed and that it is safe to unmount your SD card)
Remove SD card from card reader, insert it in the ODROID, and have fun
Copying an image to the SD Card in Linux (graphical interface)
If you are using Ubuntu and hesitate to use the terminal, you can use the ImageWriter tool (nice graphical user interface) to write the .img file to the SD card.
Download a zipped image from this link or other mirrors
http://com.odroid.com/sigong/nf_file_board/nfile_board.php
Right click the zip file and select «Extract here»
ATTENTION: As of this writing (15 June 2012), there is a bug in the ImageWriter program that causes it to fail if the filename of the image file or its path (i.e. all the names of any parent folders that you extract the image file into) contain any space characters. Before going any further, ensure that neither the file name of the image you’re using or the path contain any spaces (or other odd characters, for that matter). A bug has been opened for this issue: https://bugs.launchpad.net/usb-imagewriter/+bug/1013834 Once the issue is fixed, edit this page to advise people to use an updated/patched version of ImageWriter.
Insert the SD card into your computer or connect the SD card reader with the SD card inside
Install the ImageWriter tool from the Ubuntu Software Center
Launch the ImageWriter tool (it needs your administrative password)
Select the image file (example ODROID-X_31_07_2012.odt) to be written to the SD card (note: because you started ImageWriter as administrator the starting point when selecting the image file is the administrator’s home folder so you need to change to your own home folder to select the image file)
Select the target device to write the image to (your device will be something like «/dev/mmcblk0» or «/dev/sdc»)
Click the «Write to device» button
Wait for the process to finish and then insert the SD card in the ODROID
Manually resizing the SD card partitions (Optional)
The SD card image is sized for a 8GB card. The Fedora Remix will automatically resize the partitions on the card during the first boot. The Debian version won’t, so you’ll have to do it manually. It’s much easier if you do this on another machine, as the SD card can’t be mounted when you do this.
If you want to install this Alpha-3 into the eMMC module, follow this instruction.
1. Get prebuilt images from this link.
2. Enter into fastboot mode.
Remove your SD-card and check the jumper JP2 is unconnected.
If you have the USB-UART kit, press any key within 3 seconds in your terminal software after power on.
And enter ‘fastboot’ in u-boot prompt.
If you don’t have the USB-UART kit, press & hold «user» button(SW3) of ODROID-X board and power on.
After 6
7 seconds, release the «user» button.
And connect your ODROID-X to host PC with Micro-USB cable.
3. Install fastboot tools and fastboot device driver on your host PC if you don’t have it.
Refer #7 in this link How to do install it.
4. Transfer prebuilt bootloader images to your eMMC from your host PC.
# cd uboot
# fastboot flash fwbl1 ./p4412_s_fwbl1.bin
# fastboot flash bl2 ./bl2.bin
# fastboot flash bootloader ./u-boot.bin
# fastboot flash tzsw ./p4412_s_tzsw.bin
5. Transfer prebuilt Kernel, ramdisk and system images.
# cd OS
# fastboot flash kernel ./zImage
# fastboot flash ramdisk ./ramdisk-uboot.img
# fastboot flash system ./system.img
6. Reboot and enjoy
# fastboot reboot
Источник