Итак:
1) У Пи есть вполне рабочий UART на 3.3 вольта, живет на 8(tx) и 10(rx) пинах, 115200 8n1n.
2) Китайский USB to TTL конвертер содержит забаненный пролификом чип pl2303hx. Для его оживления (в том числе на win10) нужен пролификовский драйвер версии 3.2.0.0 (google for pl2303hx 3.2.0.0). Ну или другой свисток найти, задрали совсем своей борьбой с контрафактом...
3) Цепляемся, рх в тх, тх в рх, gnd, не забыть выставить 8н1, не забыть сбросить дефолтный в Putty XON\XOFF -- видим как минимум "Uncompressing Linux... done, booting the kernel." если вставили рабочую SD с чудотворным образом. Или не видим ащще ничего -- это если SD не вставили.
4) Образы. Я накопал minibian -- типа тот же дебиан\raspbian без иксов. Типа минимальный. Влезает на СД в 1 джигобайт.
5) Чем его накатить -- качаем Rufus, вставляем СД-шку в USB картовод. Руфусу говорим, что у нас DD-Image (и все остальные параметры становятся безразличны). Поехали.
6) Вставляем СД с образом в Пи -- видим в консоли процесс загрузки линукса.
7) user:root pw:raspberry
8) При желании ресайзим корневой раздел на всю ивановскую. Инструкция ниже:
First you need to change the partition table with fdisk. You need to remove the existing partition entries and then create a single new partition than takes the whole free space of the disk. This will only change the partition table, not the partitions data on disk. The start of the new partition needs to be aligned with the old partition!
Start fdisk:
Then delete partitions with d and create a new with n. You can view the existing table with p.
- p to see the current start of the main partition
- d, 2 to delete the main partition
- n p 2 to create a new primary partition, next you need to enter the start of the old main partition and then the size (enter for complete SD card). The main partition on Minibian image from 2015-11-12 starts at 125056, but the start of your partition might be different. Check the p output!
- w write the new partition table
Now you need to reboot.
After the reboot you need to resize the filesystem on the partition. The resize2fs command will resize your filesystem to the new size from the changed partition table.
This will take a few minutes, depending on the size and speed of your SD card.
When it is done, you can check the new size with:
To be continued.
no subject
-> do "sudo raspi-config"
-> Go to "Advanced Options"
-> Go to "A5 SPI" option
-> Click on yes when asked if you wanted to load the SPI kernel by default
-> reboot and you are done
Мне пришлось доставить raspi-config и А5 было в другом подменю, но найти можно без проблем
no subject
http://www.raspberry-projects.com/pi/wp-content/uploads/2012/04/rpi_io_pinouts1.jpg (http://www.raspberry-projects.com/pi/wp-content/uploads/2012/04/rpi_io_pinouts1.jpg)
no subject
Проблема: The build directory under /lib/modules/ is a Debian-ism, where a cut-down version of the source tree is provided with just enough context to build modules against. The kernels from the Raspberry Pi Foundation kernels don't ship with a build directory.
Решение:
1. sudo rpi-update
2. Ставим rpi-source: sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source && sudo chmod +x /usr/bin/rpi-source && /usr/bin/rpi-source -q --tag-update
3. rpi-soucre
После того как все обновится в /lib/modules/$(shell uname -r) появится папка build