January 2025

S M T W T F S
   1234
567891011
12131415161718
1920 2122232425
262728293031 

Style Credit

Expand Cut Tags

No cut tags
Wednesday, May 17th, 2017 07:10 pm
Стал думать, на что годен сабж. Попутно думал как с ним общаться (вариант с дисплеем, мышкой и клавой отметен как чересчур изолентопроводной).
Итак:
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:

fdisk /dev/mmcblk0

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.

resize2fs /dev/mmcblk0p2

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:

df -h



To be continued.
Tags:
[identity profile] yaroslav leschinsky (from livejournal.com)
Friday, May 4th, 2018 10:08 am (UTC)
распиновка
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)