andy_shev: (contemplative)
I needed to find a power supply (12V 6A or more) with kinda yet another standard connector to power one specific Intel Atom N450 based motherboard. On the photo below there are connectors from four power supplies.

Power supply connectors

Okay, yellow one is not what I was looking for and IBM power supply with it provides 16v, which is a bit more than needed. So, the rest three have the very same connector, BUT...

(Look at the following pucture very careful till continue with reading)

Power supplies

...three different pin layouts! Good that motherboard has all set of protections (wrong polarity) and (one of) the power supply(ies) has a shortcircuit protection. Otherwise I would got working only one out of two: motherboard and power supply.

P.S. Be careful with this type of connector.
andy_shev: (carstyle)
After experimenting with Intel Edison board I decided to have a look at Dell Venue 7 3740 which is based on the same chip (but has higher frequency and bigger eMMC, including LTE modem, display, and audio). It can be found on the second hand market for something like 60€ + delivery (as of day of writing this blog post).
Dell Venue 7 3740
Before doing anything useful it would be nice to have an access to the only free serial port (the same as for Intel Edison it's called /dev/ttyMFD2 in the stock kernel). For this, let's open a back cover and look at the motherboard:
Dell Venue 7 3740 motherboard
Our interest here is the 40-pin connector which has last 4 pins related to the UART, but it's good that we may find necessary signals in better, from soldering perspective, locations as depicted below:
UART pins
The signals are +1.8v TTL, be aware to find an appropriate adapter. Luckily I have had one which is +1.8v by default and connected directly to it, so +1.8v signal is unconnected in my case, while being soldered just in case:
UART connection
The stock image doesn't issue anything to UART. However, if you rooted the device as pretty well described in the Dell official documentation, you would be able to run something like
adb shell
dmesg > /dev/ttyMFD2


(Note that default UART settings are 9600,8,n,1)

Next step is to build U-Boot for it, stay tuned!
andy_shev: (Default)
In our lab we are using a lot of different DUTs and most of them are connected via PDUs for the remote power cycle. The biggest part of PDUs are APC 7820B or similar (from APC). APC is controllable via SNMP and everything is so far, so good.

Couple of years ago I have got Keil Systems EnviroBot PDU (not produced anymore) from e-waste, which is 12 ports and quite an interesting device in a sense that it's accessible via HTTP only.

After a few hours of experimenting (yeah, I'm not a ninja in HTML/XML + shell) I have nailed it down to make it accessible via our scripts that in their turn are for users logged via SSH.

So, to show the state of the certain port:
curl -s -L --noproxy '*' -o "<FILE>" "http://<ADDRESS>/power.cgi?mdu=0"
xmllint --xpath "//tr[td/input[@name=\"switch<PORT>\"]]/td[3]/text()" --html "<FILE>" 2>/dev/null

Turning OFF...
curl -s -L --noproxy '*' -o /dev/null -d switch<PORT>="1" -d d12="1" -d B1="Submit" http://<ADDRESS>/out_control.cgi

...and turning ON:
curl -s -L --noproxy '*' -o /dev/null -d switch<PORT>="1" -d d12="0" -d B1="Submit" http://<ADDRESS>/out_control.cgi

Couple of weeks ago, due to some changes, we have ordered another PDU from IntelliNet, which appears a new device also accessible via HTTP-only.

For it it looks slightly different.

State:
curl -s -L --noproxy '*' -o "<FILE>" -u "admin:admin" "http://<ADDRESS>/status.xml"
xmllint --xpath "//outletStat<PORT>/text()" "<FILE>" 2>/dev/null

OFF:
curl -s -L --noproxy '*' -o /dev/null -u admin:admin -X POST "http://<ADDRESS>/control_outlet.htm?op=1&outlet<PORT>=1&submit=Anwenden"

ON:
curl -s -L --noproxy '*' -o /dev/null -u admin:admin -X POST "http://<ADDRESS>/control_outlet.htm?op=0&outlet<PORT>=1&submit=Anwenden"

In all cases:
  • <ADDRESS>: IP or FQDN address of the PDU

  • <PORT>: power switch port, usually from 0 to 7

  • <FILE>: temporary file to cache the results, so one can get info for all ports on per port basis
  • andy_shev: (carstyle)
    Intel Minnowboard (v1) was one of the first Intel's attempts to create an open hardware (okay, to some extent, if we take all possible blobs into consideration) platform based on Intel CPU or SoC (in this case it's an Intel Atom E600 series with EG20T PCH).

    Minnowboard (v1)

    Linus Walleij, who was actively maintaining the GPIO subsystem, once sent a patch to convert PCH UDC (USB Device Controller) driver to use GPIO descriptor interface. However, the original code looks strange and seems never worked. It means that VBUS detection mechanism wasn't supported by the kernel. His patch didn't change that, only improved to use modern data structures and APIs. That time I have promised him that I will check the schematics and test it at some point.

    First part of the journey appears to be enabling IRQ on GPIO SCH controller, which is not quite usual in a sense of delivery to the OS. The (semi-)wrong assumption that the IRQ is shared with SCI, which is IRQ #9 for x86 case, brought up the wrong change ec689a8a8155 ("mfd: lpc_sch: Add support for Intel Quark X1000") in the kernel (yeah, sometimes product organizations focused on easier way to get job done, without deeper investigation involved). That change has been partially reverted in 922e8ce883e5 ("mfd: lpc_sch: Partially revert "Add support for Intel Quark X1000""). Thanks to Jan Kiszka from Siemens for pointing out to the issue and developing initial fix that landed in the kernel with 7a81638485c1 ("gpio: sch: Add edge event support").

    So, are we done? Nope! The second part is to fix GPIO in the UDC driver to be in align with the schematics, according to which (see page 4 D5 and page 8 B1-C2) it uses pin 12 (starting from 0, a.k.a. GPIO_SUS7) on that GPIO controller to detect VBUS. Hence the promised change to the driver 049d3db625a6 ("usb: gadget: pch_udc: Provide a GPIO line used on Intel Minnowboard (v1)") and its updated version dfc03e0bae86 ("usb: gadget: pch_udc: Use PCI sub IDs instead of DMI").

    Now we done, right? Not really. What about to test? Yes, the third part is to be sure that it indeed works. The astute reader already asks the question: Why do we need this at all? The board has separate connection for USB host and UDC, it should simply work!. Unfortunately no.

    There are possibilities regarding to how UDC should behave when the host is connected. One is to power the device (in our case the board itself) by VBUS, in other words to be USB self-powered device. This is not implemented in case of Minnowboard (v1). So another possibility is to detect VBUS to see when we actually got the host connection. But this is broken on... PCB level and hence doesn't work.

    Let's look again at the schematics. First of all on the page 8 B2-B3 the ~4:7 resistor divider (39 kOhm : 68 kOhm) is depicted. It's needed for the high voltage, which is +5v, to be converted to the chip level, which is +3.3v.

    VBUS sense

    So far so good. However, if we go to the page 19 C4 we will see... bootstrap pull-up 10 kOhm to +3.3v (with above 68 kOhm it gives us ~1:7 divider).

    GPIO SUS7 bootstrap

    Okay, let's assume we connected USB device to it which may consume up to 100 mA on the +5v line. By Ohm's law its resistance could be equal to 50 Ohm. In such case we will have 10 kOhm to +3.3v on one leg and 39 kOhm + 68 kOhm (like in parallel due to above "short circuit") on the other. It still gives us ~1:2.5 divider against +3.3v power rail. That's still well higher than the logical "1" threshold.

    Which means that VBUS detection is always high! The bootstrap is dedicated to detect the B1 stepping of the Intel Atom E600 SoC (see page 19 D2-D3). What to do in such case? I don't know the good answer because electrically it's not gonna work. Yes, we may use some timer logic or so to let the BIOS detect that, but I decided just to ignore the bootstrap, so I simply unsoldered R229 from the board. I hope somebody may fix the BIOS to just always assume the B1 stepping if it's not done yet.
    andy_shev: (proud)
    Historically and due to lack of knowledge about process the ACPI IDs for some devices are abusing the specification. As of today the v6.4 of it [1] says in the chapter 6.1.5 "_HID (Hardware ID)":

    A valid ACPI ID must be of the form “NNNN####” where N is an uppercase letter or a digit (‘0’-‘9’) and # is a hex digit. This specification reserves the string “ACPI” for use only with devices defined herein. It further reserves all strings representing 4 HEX digits for exclusive use with PCI-assigned Vendor IDs.



    Note that the first part of the ACPI ID is a Vendor ID which has to be in the official registry.

    However, we have a lot of IDs, including some of them issued by Intel, that do not follow that.

    Recently, while I cleaned up kernel from fake IDs [2] that hardware vendors never ever allocated for their devices (many of them simply don't care), it appears that Siemens on behalf of Seiko Epson was trying to establish yet another fake ID for their RTC discrete component in the Coreboot [3] and Linux kernel [4].

    Luckily they have listened to me and actually followed the process, i.e. they have asked Seiko Epson to register themselves in ACPI registry [5], which happens couple of month ago under the 'SECC' vendor (while it’s even better, I dunno why they haven't simply reused their PNP Vendor ID which is in the registry for ages). And they have allocated the proper ID, SECC6110, for their RX6110SA component.

    Now the patches for Coreboot (see [6]) and Linux kernel, as commit 8d69f62fddf6 ("rtc: rx6110: add ACPI bindings to I2C"), are accepted.

    I really wish that all hardware vendors will follow this, including Intel (for the record, we improved a lot the ACPI ID allocation process and there shouldn’t be new cases).

    Funny thing that newly introduced ID for Alibaba abusing the specification due to potential collisions with real PCI IDs ('BABA' can be represented as 0xbaba).
    andy_shev: (carstyle)
    I have spent some time to get the proper pin layout for the 16x2 LCD from Ampire (the model is AC162AY, or 162A-1-D Rev.B). The problem begins with the different polarity of the power rails. I thought if the polarity is wrong, what else can be wrong? That's how I started my search on Internet without any positive results — all of the layouts have a standard power rail polarity, i.e. 1 — GND and 2 — Vcc. At the end it comes I wasted time. Only power rails are messed up, other than that everything seems standard and I got a text on the LCD.

    P.S> Found a PDF with photos of that LCD: https://fccid.io/W8F800920910/Internal-Photos/Internal-Photos-2-1406623.pdf
    andy_shev: (serious)
    Подбираю телефон. Критерии:
    - экран 3.5-4" (в идеале, наверное, 3.5)
    - камера достаточная для программы-видеорегистратора (чтоб там картинку разобрать можно было)
    - дизайн корпуса хотелось бы поровнее (чтоб на столе ровно лежал)
    - операционка, наверное, android (расскажите зачем мне iphone?)
    - стоимость даже не знаю
    - НЕ samsung (разве что для сравнения)

    Кто что посоветует и почему?
    andy_shev: (proud)
    Уже не думал, что опыт 10-летней давности восстановления всяких железок для PC может пригодиться в современном мире. Очень умные ребята сделали маркировку разъёма последовательного порта на материнской плате согласно спецификации разъёма. всё бы ничего, если бы в реальности нумерация контактов совпадала один-в-один с нумерацией на разъёме rs232...

    HW: Fri 13

    Aug. 14th, 2010 05:39 pm
    andy_shev: (proud)
    Позавчера навернулся интернет дома, причём каким-то хитрым образом - точка работала вроде бы как надо, но никакие соединения дальше провайдеровского оборудования не устанавливались. Спасала открытая точка некоего Робина-Бобина.

    Потом вчера зависла точка доступа. Ребуты не помогали, сброс тоже, снесло ей крышу так, что в некоторых случаях она таки запускалась, но через интерфейс можно было залить только прошивку.

    Пришлось подключать n900 в режиме GSM-модема, искать прошивку. Залил, вроде ожило всё.

    fan

    May. 30th, 2010 10:44 am
    andy_shev: (contemplative)
    Похоже я нашёл причину частых зависаний ноутбука при закрытой крышке. Он банально стал перегреваться из-за снова сдохшего вентилятора - сегодня утром вентилятор просто молчал, зато теперь шумит, но датчик показывает 0 оборотов. Ошибку #556156 наверное починили.
    andy_shev: (Default)
    Поборов проблему переноса Rescue and Recovery раздела, принялся думать, а как малой кровью, то есть не выкручивая новый винчестер из ноутбука, перенести с него собственно установленный там линукс.

    Про купленный почти год назад внешний диск вспомнил, но подумал, что поскольку есть гарантия на него, то не стоит раскручивать. И как выяснилось зря я так подумал. Смотрите, как надо клеить гарантийную защиту.


    Посмотреть в полный размер, 42.00 КБ, 1024x393 )

    Таким образом, выход был найден. :)
    andy_shev: (kozak)
    Прикупил на ebay.com новый винчестер для x60s. Захотел увидеть страшное - родную windows xp pro, за которую заплачено. :)
    Забэкапил, значит, я раздел под названием Rescue and Recovery, перенёс на новый винчестер, а оно ж не грузится!

    Дальше страшное в деталях! )

    wd 1Tbyte

    Feb. 24th, 2009 06:32 pm
    andy_shev: (Default)
    А сегодня приобрёл в Gigantti 1Tb usb диск...
    Так что есть куда сливать порнухувсякое.

    P.S. Правда, зачем они его сделали одним разделом и vfat вместо ntfs я понять не могу - проще, видимо, с лицензиями.

    МК-152

    Jan. 6th, 2009 03:32 pm
    andy_shev: (Default)
    Вот он где, рассадник... или рассада...
    http://www.securitylab.ru/news/307798.php
    andy_shev: (Default)
    Вчера один коллега (не будем показывать пальцами кто) попросил помочь ему подпаять пару проводков в каком-то БП китайского прома.
    Конструкция провода состояла из шнурка полутора метров от БП, и огрызка провода с разъёмом около 10см, который был привёрнут к хвосту от БП и обмотан изолентой. Коллега, решивши, что проблема где-то там, не глядя отрезает кусок с изолентой с обеих сторон. На мой скормный вопрос "А ты уверен, что белый с одной стороны - соединялся с белым с другой стороны?" последовала длинная дискуссия, которую я опускаю, но он предложил взять мультиметр и промерять (даже любезно его принёс). В итоге провода оказались перекрещенными :)

    P.S. Опыт не пропьёшь :)
    andy_shev: (Default)
    Отоварился.
    15.08.2008 ожидается доставка.

    I've bought the washing machine. On 15th of August the thing should be delivered.
    andy_shev: (Default)
    Таки поменял вентилятор в ноутбуке. Небольшая фотосессия внутренностей прилагается...
    Thinkpad x60s. CPU fan repair.


    Update: интернет, правда, выключили :)
    andy_shev: (Default)
    Ранее я писал про вентилятор, который сломался.
    Сегодня на почте забрал коробочку с новым, присланным из США.
    Вечером буду курочить ноутбук.
    andy_shev: (Default)
    Сгорел вентилятор на процессоре (в принципе единственный) на ноутбуке несколько дней назад. Новый ожидается на следующей недели с ebay.com.

    My notebook was broken a few days ago due to a cpu fan misfunction. A new one should be arriving next week from ebay.com.
    andy_shev: (Default)
    Дела насущные прервали историю о Кракове, поэтому продолжение ждите на следующей неделе.
    А сейчас, хочу похвастаться одним событием.
    Купил себе чуть более недели назад ThinkPad 1702-94U.
    Характеристики:
    Product: ThinkPad X60s 1702-94U [change]
    Original description: L2400(1.66GHz), 512MB RAM, 40GB 5400rpm HD, 12.1in 1024x768 LCD, Intel 950, 802.11abg wireless, Modem, 1Gb Ethernet, Secure chip, IEEE 1394, 4c Li-Ion batt, WinXP Pro

    Рассказ про установку FC6 на него )
    Ну, вообщем-то я доволен.

    Profile

    andy_shev: (Default)
    Andy Shevchenko

    March 2025

    S M T W T F S
          1
    2345678
    9101112131415
    16171819202122
    23242526272829
    3031     

    Syndicate

    RSS Atom

    Most Popular Tags

    Style Credit

    Expand Cut Tags

    No cut tags
    Page generated Feb. 4th, 2026 12:42 am
    Powered by Dreamwidth Studios