Linux для bay trail

Installing Ubuntu on BayTrail tablets (version 2)

This article is based on my previous version. I no longer use Ubuntu 15.04, but 14.10, because 15.04 switched to the 3.18 kernel which is incompatible with the eMMC flash in my tablet.

Requirements

  • A BayTrail tablet, probably running Windows 8.1. I got a Lenovo ThinkPad Tablet 8 for the special price of 180 € from a local retailer.
  • An USB-On-the-Go-Adapter. USB 2.0 will work, but you really want USB 3.0.
  • A powered (!) USB hub. USB 2.0 will work, but you really want USB 3.0. If the hub is not powered, be prepared for USB resets or even a complete disconnect every time you connect a new device, because the tablet may not be able to supply enough power.
  • An USB storage medium to boot from.
  • An USB keyboard and USB Mouse.
  • An USB network adapter, either Ethernet or WiFi, supported by Ubuntu 14.10, if the built-in WiFi of your device doesn’t work.
  • Optional: A storage medium (USB, SD-Card etc.) big enough to back up the Windows installation. I used a 64 GB SD-Card.

Current status on the Thinkpad Tablet 8

  • CPU initialisation and SMP (all four cores are working)
  • GPU initialisation, accelerated 2D, 3D and video
  • Touchscreen
  • Backlight
  • USB 3.0 On-the-go

What doesn’t work:

  • ACPI battery detection: The battery is not detected.
  • WiFi: The brcmfmac driver needs you to create a configuration file named /lib/firmware/brcm/brcmfmac43241b4-sdio.txt . The content of this file can be extracted from the UEFI vars, at least on my tablet the variable is called /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113 . Everything is present, the brcmfmac driver is loaded and doesn’t complain, but at the end the kernel does not report any wireless devices.
  • Bluetooth: Is bundled with the WiFi.
  • Sound: Was not working and I didn’t try to fix it.
  • The two cameras: Connected via some obscure bus (MIPI-CSI) which isn’t supported.

A word about kernels

I couldn’t get any of the stable kernels from kernel.org working because they have problems with the internal eMMC flash in my ThinkPad Tablet 8 (see this emailing list discussion). After at most 20 minutes the kernel freezes and the last message is «mmc0: Timeout waiting for hardware interrupt» .

Ubuntu 14.04 and 14.10 kernels work, obviously because they have been patched. At the moment I don’t know exactly what has to be patched. The Ubuntu 15.04 kernel does not work.

Installation

Disabling Secure Boot using Windows

  1. Boot into Windows.
  2. Go into “PC settings”.
  3. Select “General” (Windows 8) or “Update and recovery” (Windows 8.1).
  4. Under “Advanced startup”, click on “Restart now”.
  5. At this point I’m not completely sure how the story went, and I can no loner check, since the Windows installation on my tablet is already gone. You are looking for some way to get into the UEFI firmware settings, probably hidden behind Items like “Troubleshoot”, “Advanced options” etc.
  6. Once you are in the UEFI menu, disable Secure Boot.
  7. Set the Boot Order so that external USB drives are at the top and listed before the internal storage. Different manufacturers seem to use different UEFI firmwares with different menus, so you have to find the options yourself.
  8. Power off.
Читайте также:  Астра линукс не работает сеть

The tablet is now prepared.

Disabling Secure Boot by directly booting into the UEFI menu

At least the ThinkPad Tablet 8 can be directly booted into UEFI by powering off the device and then pressing the Volume-Up- and Power-button until the display turns on. If you press the buttons for too long, the tablet will turn off again!

Once you are in the UEFI menu, disable Secure Boot. Set the Boot Order so that external USB drives are at the top and listed before the internal storage. Different manufacturers seem to use different UEFI firmwares with different menus, so you have to find the options yourself.

The tablet is now prepared.

Preparing the Ubuntu 14.10 installation medium

*** NOTE: In my earlier version I suggested to download the latest version of

  1. Download the most recent 64-bit Ubuntu 14.10 (Utopic Unicorn) Desktop ISO.
  2. Create a bootable USB storage medium as usual, e.g. using usb-creator-gtk.

Modifying the installation medium to boot on 32-bit UEFI

Yes, some genius came up with the idea to put a 32-bit UEFI on a 64-bit device. The Linux kernel shipped with Ubuntu 14.10 supports mixed-mode, so kernel-wise it is no longer a problem. But the Ubuntu 14.10 (Vivid Vervid) ISO does not contain a 32-bit bootloader. Luckily this can be easily fixed.

  1. Get a bootia32.efi file, I used this one from John Wells.
  2. Copy the file into the EFI/BOOT/ folder on the boot medium.

Booting from the modified boot medium

  1. Power off the tablet, if necessary.
  2. Attach the USB-On-the-Go-Adapter to the tablet.
  3. Connect the USB hub to the adapter.
  4. Connect the boot medium to the USB hub.
  5. Connect the keyboard and mouse to the hub.
  6. Start the tablet.
  7. The device should boot from the boot medium.

If you can’t get the tablet to boot from the USB storage medium, try booting into the UEFI menu again and check if it is possible to enable a Boot Device selection screen. The Thinkpad Tablet 8 has an option to boot into such a screen if the F12 key is pressed after device power-on.

Backing up the Windows installation

I just started a terminal in the Live Session and used dd to backup all internal flash partitions to individual files on an SD-Card.

Installing Ubuntu 14.10 on the device

  1. Start a terminal session and switch do root (using sudo -i or something similar)
  2. Run parted
  3. Preserve the first two partitions (EFI and Windows Recovery) and delete all other partitions
  4. Create a large ext4 partition in the remaining space
  5. Create a small swap partition in the remaining space (e.g. 4 GB)
  6. Write to disk and exit

I don’t trust the flash storage, so I created the filesystem manually and told mkfs.ext4 to check for bad blocks:

mkfs.ext4 -v -c /dev/mmcblk0p3

After this I just used the Ubuntu Installer, chose “Partition manually” and configured as follows:

  1. The EFI partition (should be the first one) shall be used as EFI partition
  2. The just-created ext4 partition (should be the third one) shall be used as the root filesystem. Deactivate the “Format” checkbox if it is set.
  3. The swap partition shall be used as a swap partition.

Installing 32-bit GRUB

Ubuntu 15.04 comes with a 32-Bit GRUB package, but 14.10 does not, so we have to do it the hard way.

The following steps are common to both methods:

  1. Reboot the device, with the USB storage medium plugged in.
  2. Wait until the device has booted into GRUB from the USB storage medium.
  3. Hit “c” on the keyboard to drop to the GRUB shell.
  4. Input the following two lines, adapting all device and partition identifiers and kernel versions to your setup (GRUB has autocompletion!):
  1. Boot with the command “boot”.
  2. If the system doesn’t boot, go back to step 1.
  3. Log into the Ubuntu installation.
  4. Connect to the internet using the internal WiFi or your USB network adapter.
Читайте также:  Математические библиотеки для linux

Doing it the hard way

Reboot and manually boot into your new installation:

  1. Open a terminal and install the dependencies:
  1. Open a terminal and check out the GRUB git repository:
  1. Build a 32-bit GRUB:
  1. Install 32-bit grub:
  1. Replace the Ubuntu bootloader with our GRUB one, making sure that there are only the listed files in the directory:
  1. Update the grub config:

You can set the UEFI boot order using the efibootmgr command, but I am not completely sure as to what the correct settings are. The following settings were generated by update-grub and seem to works on my tablet:

The probably much better way (only available on Ubuntu 15.04)

  1. Open a terminal and install the grub-efi-ia32-bin package:
  1. Update the grub config:

The end

Now your device should boot into the Ubuntu installation on every boot. If it doesn’t, try to fiddle with the boot order list. You can always boot into your installation by booting from the external USB storage medium and going through the GRUB console, as shown before.

As always you can find me on the FreeNode IRC.

Источник

Linux для bay trail

Сообщение отредактировал Rammsteiner — 04.06.21, 12:11

Из всех дистрибутивов которые я побывал у меня более или менее нормально запустилось только ubuntu mate 14.10
Скачиваем данный образ и переносим его содержимое на флешку, рекомендую для этого использовать программу Rufus

1. Запускаем Rufus
2. Выбираем образ(Снизу видим пункт «создать загрузочный диск» и и справа от него кнопка с изображением cd-rom. Нажимаем на кнопку и выбираем наш .iso с linux.)
3. Нажимаем «Старт» и ждём.
В других дистрибутивах как правило требуется еще добавить 32 битный загрузчик(bootia32.efi) в папку EFI/BOOT

Подключаем к планшету флешку клавиатуру и опционально мышку и перезапускаем планшет
На моем при включение надо жать кнопку Esc что бы появился доступ к выбору загрузочного устройства

В появившемся меню выбираем «Boot live in safe graphics mode» так как на первом варианте у меня виснет(возможно вам повезет больше)
ждем пока загрузиться система, если графика сама не стартовала то вводим логин пароль в текстовом режиме(baytrail/baytrail)
и набираем

Если все прошло успешно то запуститься рабочий стол

Сообщение отредактировал leonidy-85 — 16.03.15, 17:11

вроде и федора существует на 32битном уефи, вчера сайт ссылка работал, а сегодня когда захотел скачать сайт не работает.

Сообщение отредактировал machetekills — 16.03.15, 16:59

Ubuntu 15.04 Daily Build vivid-desktop-amd64.iso от 13-Mar-2015 с ядром 3.19.0.9, вчера ставить пытался эту сборку, в grub.cfg убирал строки загрузки quiet и splash, в EFI/BOOT вставил bootia32 , но графика не стартует, нужен hdmi телек, подсоединяя планшет в телевизор на телеке должно стартовать графа а затем отсоединив графика стартует в планшете, но эту проблему не решить если нет hdmi на планшете.
Сегодня попробую ставить федору и Убунту 14.10

Сообщение отредактировал machetekills — 14.07.15, 18:39

что дальше делать один разраб знает.
убунту без проблем пошла, только не работает тач, wifi работает, блютуз не проверил, видео в ютубе страшно зависает.
устройство Chuwi vi8 single

Сообщение отредактировал machetekills — 18.03.15, 12:36

Сообщение отредактировал machetekills — 18.03.15, 18:11

В появившемся меню выбираем «Boot live in safe graphics mode» так как на первом варианте у меня виснет(возможно вам повезет больше)
ждем пока загрузиться система, если графика сама не стартовала то вводим логин пароль в текстовом режиме(baytrail/baytrail)
и набираем
sudo su
cd /usr/lib/xorg/modules/drivers/
sudo rm vesa_drv.so
startx

Если все прошло успешно то запуститься рабочий стол

Всем доброго времени суток, уважаемые форумчане.
Ребятки, а вот как быть с убунтой 13.04? 14 версия не запускается вообще. Я читал инфу, что 13.04 максимум. Я о чудо. Она у меня завелась. Да вот беда — диски встроенные не видит. Я как-то писал свои исследования по этому поводу в теме моего планшета. Он их как бы видит, но и не видит. Через консоль под рутом он видит с ошибкой доступа. Различные варианты разметки не помогают. GPT и MBR пробовал. Знакомый считает, что трабл в драйверах.

Сообщение отредактировал intro94 — 25.03.15, 14:34

Привет, друзья. Хочу поделиться с вами тем, как можно еще интересно использовать наши маленькие игрушки. А точнее про установку Kali Linux Live USB для возможности пин-теста вай-фай сетей.

Почему Live USB? Потому что:

Во-первых, в Live версии мы имеем все возможности Kali linux в сфере пин-теста.
Во вторых, при установке полноценной версии, в любом случае у нас не будут работать многие устройства планшета, и мы столкнемся с проблемами.
В третьих, для пользования инструментами kali linux встроенная wi-fi антенна не пригодна, поэтому нам нужна usb антенна.
И самое главное, мы сохраняем win 8.1 и продолжаем наслаждаться ей. Поэтому для планшета эта установка абсолютно безопасна, т.к. не затрагивает его жесткий диск.
Ну и конечно же еще и потому, что мы можем это сделать.
По окончанию инструкций ниже мы получим USB LIVE версию Kali linux с возможностью сохранения изменений, а так же с возможностью установки программ.Но все же это Live версия, поэтому не стоит ждать от нее полного контакта.
Замечено, что не работает ни один сенсор и ни один девайс планшета т.к. отсутсвуют драйвера. Фактически при помощи хаба, клавиатуры, мыши и usb wifi антенны, он превращен в обычный маленький ПК.

Для полноценной работы в kali linux нам понадобятся:
— Сам планшет (у меня Pipo W4)
-USB хаб+OTG Кабель
-мышь
-клавиатура
-совместимая usb wifi антенна
-USB флешка 8gb и выше

Подготовительные работы:
1. Скачиваем образ kali linux с офф сайта (первые два), неважно, 32 или 64 битный.
2. Скачиваем программу Win32 Disk Imager и записываем образ на флешку.
В данном случае Rufus не подойдет, т.к. он создает раздел на все свободное место флешки, а Win32 Disk Imager разбивает флешку ровно так, как нужно, и оставшееся свободное место на ней мы будем использовать под специальный раздел.
3. Скачиваем bootia32.efi
Теперь, непосредственно, сам процесс:
1. С компьютера загружаемся с флешки в Kali Linux Live USB
2. Запускаем терминал и пишем gparted .В запустившейся программе выбираем в девайсах нашу флешку и создаем новый основной раздел в пустой области ext4 с меткой persistence
Посмотрите как обозначаются разделы флешки в gparted и раздел с Windows на основном жестком диске. Они нам пригодятся для команд ниже.
3. Открываем терминал и пишем команды (у меня флешка sdc с разделами sdc1 sdc2 sdc3):

4. У вас на рабочем столе или в «компьютере» должен быть диск (раздел) «Kali Linux». На него необходимо скопировать скаченный ранее bootia32.efi по пути /EFI/Boot/ предварительно создав эти папки.
Далее открываем терминал и вводим leafpad и вставляем туда содержимое кода ниже:

# Config file for GRUB2 — The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg

set menu_color_normal=green/black
set menu_color_highlight=black/yellow

function load_video <
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
insmod all_video
>

# Timeout for menu
set timeout=5

# Set default boot entry as Entry 0
set default=0
set color_normal=green/black

menuentry ‘Kali Linux Live’ <
linux /live/vmlinuz boot=live noconfig=sudo username=root hostname=kali persistence
initrd /live/initrd.img
>

menuentry ‘Windows 8.1’ <
set root=(hd1,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
>

Сохраняем этот файл как grub.cfg на диск (раздел) «Kali Linux» по пути /boot/grub/
5. poweroff в терминале

Теперь самое время подключить все девайсы к нашему планшету. В БИОС’е выбираем загрузиться с флешки и в меню grub выбираем или загрузку Kali Linux Live или Windows 8.1 и наслаждаемся.

Источник

Читайте также:  Figure in the windows
Оцените статью