Quick jump:  What's new

 
Go to:
 
Weblog: Recent Changes   
in Dobrica Pavlinušić's random unstructured stuff
fomu

https://twitter.com/tnt/status/1335354626791665671

tnt @tnt

Turned my #fomu into a usb sound card with midi output and also stereo headphones out. (USB audio spec compliant so all works out of the box)

Code is now upstream :

Ping if you want help port to other boards

Pepijn de Vos @pepijndevos

Wait how do you connect anything to the fomu? Solder wires to these capacitive tabs?

tnt @tnt

Yeah, I soldered to the 4 IOs.

  • #1 is wired as a button for DFU recovery (wired to a N/C pin of DIN plug)
  • #2&3 are wired as PDM audio out with RC filter & DC block cap to the 3.5mm jack
  • #4 is wired as the MIDI TX pin
permalink
DSM501A

datasheet: dsm501.pdf

DMS501A - 2mm pin pitch, DMS501B - 2.54 mm

5V, 90mA

1 minute stabilization after power up

sum time of low (0.7v) for measurement interval, divide by time

PINOUT I/O DESCRIPTION

Pin number Pin name Description
#1 Control Vout 1 control
#2 Vout 2 Vout 2 output factory calibrated PWM output for density of particles over 1 �m.
#3 Vcc Positive power supply DC 5V
#4 Vout 1 Vout 1 output (PWM)
#5 GND Ground

dms501-5pins.png

control pin 1

resistor between pin 1 and ground (square pin on board) to control vout 1 output (pin 4)

Resistor value Description
open Preset sensitivity (over 2.5 �m)
47K Half sensitivity (over 1.75 �m)
18.2K Equal sensitivity of Vout 2 (over 1 �m)

arduino

I tried both of them and on my module they don't report sane results when compared with other sensors.

platformio

https://primalcortex.wordpress.com/2020/05/23/an-esp8266-air-quality-monitor-based-on-the-dsm501a-dust-sensor/
https://github.com/fcgdam/ESP8266_AirQuality

dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ git remote -v
origin  https://github.com/fcgdam/ESP8266_AirQuality (fetch)
origin  https://github.com/fcgdam/ESP8266_AirQuality (push)

# edit config
dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ vi src/secrets.h

dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ pio run

dpavlin@nuc:/nuc/esp8266/ESP8266_AirQuality$ pio run -t upload --device-port /dev/ttyUSB2

Pins:

Wemos D1 +5V DSM501a +5V
Wemos D1 D6 DSM501a PM 1.0 pin
Wemos D1 D5 DSM501a PM 2.5 pin<
Wemos D1 GND DSM501a GND pin

description of similar sensor

https://github.com/opendata-stuttgart/meta/blob/master/files/ShinyeiPPD42NS_Deconstruction_TracyAllen.pdf

power supply

It really needs quiet power supply to get any readings which are not just noise.

dsm501-schema.png
permalink
fail2ban

fail2ban seems to accumulate records in sqlite database forever.

https://github.com/ffzg/fail2ban-helpers

check bans in database

dpavlin@mjesec:/var/lib/fail2ban$ ls -alh
total 165M
drwxr-xr-x  2 root root 4.0K May 12  2020 .
drwxr-xr-x 82 root root 4.0K May 12  2020 ..
-rw-------  1 root root 165M Nov 30 09:30 fail2ban.sqlite3
dpavlin@mjesec:/var/lib/fail2ban$ sqlite3 fail2ban.sqlite3
Error: unable to open database "fail2ban.sqlite3": unable to open database file
dpavlin@mjesec:/var/lib/fail2ban$ sudo sqlite3 fail2ban.sqlite3

sqlite> select datetime(min(timeofban),'unixepoch'),datetime(max(timeofban),'unixepoch') from bans ;
2020-05-12 18:25:57|2020-11-30 08:34:41


cleanup old entries

dpavlin@syslog:~$ cat /etc/cron.daily/fail2ban-sqlite
#!/bin/sh

sqlite3 /var/lib/fail2ban/fail2ban.sqlite3 "delete from bans where timeofban <= strftime('%s', date('now', '-30 days'));"
sqlite3 /var/lib/fail2ban/fail2ban.sqlite3 "vacuum;"

permalink
CH9326
ch9326-test.py

CH9326DS1.PDF

UART to USB 1.1 HID

I first learned about this chip from video https://youtu.be/jJoD2ioJPP0

chip on sop16 breakout

Connecting only VCC, GND USB- and USB+ to target and UART RX, TG and GND to USB serial works without any additional components.

IMG_20191019_175736-800px.jpg

[2022258.670458] usb 1-5.2.3: new full-speed USB device number 41 using ehci-pci
[2022258.780644] usb 1-5.2.3: New USB device found, idVendor=1a86, idProduct=e010, bcdDevice=34.00
[2022258.780657] usb 1-5.2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2022258.780663] usb 1-5.2.3: Product: HID To Serial
[2022258.780669] usb 1-5.2.3: Manufacturer: WCH.CN 4
[2022258.780674] usb 1-5.2.3: SerialNumber: 12345678
[2022258.791635] hid-generic 0003:1A86:E010.000D: hiddev3,hidraw3: USB HID v1.00 Device [WCH.CN 4 HID To Serial] on usb-0000:00:1a.7-5.2.3/input0

I does not create normal /dev/input device under Linux, but sending chars over serial at 9600 8n1 does produce output at /dev/hidraw3 device

dpavlin@x200:~$ microcom -s 9600 -p /dev/ttyUSB0

lsusb

dpavlin@x200:~$ sudo lsusb -d 1A86:E010 -v

Bus 001 Device 041: ID 1a86:e010 QinHeng Electronics
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1a86 QinHeng Electronics
  idProduct          0xe010
  bcdDevice           34.00
  iManufacturer           1 WCH.CN 4
  iProduct                2 HID To Serial
  iSerial                 3 12345678
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 (error)
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      37
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)
permalink
raspios

headless setup

dpavlin@nuc:~/Downloads$ unzip 2020-08-20-raspios-buster-armhf-lite.zip

dpavlin@nuc:~/Downloads$ dd iflag=fullblock oflag=direct conv=fsync status=progress bs=1M if=2020-08-20-raspios-buster-armhf-lite.img of=/dev/sdb

dpavlin@nuc:~/Downloads$ sudo mount /dev/sdb1 /mnt/sdb1/

# enable ssh
dpavlin@nuc:~/Downloads$ sudo touch /mnt/sdb1/ssh

# configure wifi
dpavlin@nuc:~/Downloads$ sudo cp /tmp/rpi4-backup/wpa_supplicant.conf /mnt/sdb1/

dpavlin@nuc:~/Downloads$ cat /mnt/sdb1/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=HR

network={
	ssid="wifi_ssid"
	psk="wifi_password"
	key_mgmt=WPA-PSK
}

dpavlin@nuc:~/Downloads$ sudo umount /mnt/sdb1
dpavlin@nuc:~/Downloads$ sudo eject /dev/sdb



permalink
EBAZ4205

https://www.aliexpress.com/item/1005001308030569.html

from readme

Power-on:
        Voltage: 5V-12V can be used, (no Y3 crystal oscillator version must be 12V. Without Y3 crystal oscillator, it uses the 25M clock output by fpga)
        All three 20pin ports can be powered, pins 1 and 2 are power, 3 and 4 are GND, and the power position of the 3 ports is the same.
        The J4 position (the same as the 12V interface of the computer motherboard) can also be powered, but the D24 on the back of the board should be short-circuited. This is a diode. The default is not soldered.

start up:
        The default is nand startup, there is a linux system in nand, but there is no root password, so it can't be played, so it can only be changed to SD startup or JTAG emulation.
        Start the SD card, solder the sd card socket, remove the R2584 resistor on the back of the board, and solder to the R2577 position,
       Put the boot.bin of the image folder in the root directory of the SD card, and the SD card should be formatted as fat32 (maximum support for 32G cards).

Routine:
        Network, sd, buttons, leds are all in one project, and the routine is vivado2017.4 version
        The network is an echo server, the ip is automatically obtained, and when it is obtained, it will be printed on the serial port. The port is 7, what to send back to.
        Press the button once, the red light status is reversed. The green light flashes once for 1s.
        SD card, only one read and write test. Write 1M data to the card when power on.

If you have any questions, you can add q416159303.

Mir development board information,
https://pan.baidu.com/s/1PxlRdjQRTDXS30GbeJ9q3Q Extraction code: 2c01

vivado2017.4 software download
https://pan.baidu.com/s/1Q5ctriRVHzfFuHqHUw7P2g Extraction code: bd42

links

https://github.com/Elrori/EBAZ4205

https://gitee.com/actionchen/ebaz4205_hw/blob/master/Doc/ebaz4205_introduce.md

https://github.com/blkf2016/ebaz4205

boot mode

https://hhuysqt.github.io/zynq1/

The R2577 and R2584 resistors of this board are used to configure the starting device. Solder R2584 to R2577 and change the original nand boot to SD card boot.

JTAG start

https://github.com/Leungfung/ebaz4205_hw/blob/master/Doc/ebaz4205_introduce.md

Connect the end of resistor R2578 close to NAND to ground

English version: https://github.com/xjtuecho/EBAZ4205

buildroot: https://github.com/blkf2016/ebaz4205

permalink
Colorlight 5A-75B


Board version: v7.0

  • Lattice ECP5 LFE5U-25F-6BG256C (product page)
  • Winbond 25Q32JVSIQ, 32 Mbits SPI flash (datasheet)
  • 2x Broadcom B50612D Gigabit Ethernet PHYs (datasheet)
  • 2x ESMT M12L16161A-5T 1M x 16bit 200MHz SDRAMs (organized as 1M x 32bit) (datasheet)
  • 12x 74HC245T Octal Bidirectional Transceiver (used for level translation to 5V)
cl-5a-75b-v70-front-800.jpg

links

chubby75

original protocol

replace level shifters to get input

https://twitter.com/Claude1079/status/1231194849350647808

 SN74CBT3245APW 8bit bidirectional FET switches
QS3245QG

colorLight5A-75b.jpg

chiselwatt

https://github.com/antonblanchard/chiselwatt/commit/5a7fcbc8142ed2b390e1f8bfaaa801fe09a60351

UART RX is on J19, labelled key+ on the silk screen on the back
UART TX is on J1, pin 1.

LOCATE COMP "clock" SITE "P6";

LOCATE COMP "io_tx" SITE "F3";
LOCATE COMP "io_rx" SITE "M13";

litex

basic example of litex on colorLight 5A-75B based on fpga_101/lab004

fpga pin mapping

https://twitter.com/adamgreig/status/1297255957320421383

I don't want to load a new image onto this totally blind, so I used the prjtrellis tools (https://github.com/YosysHQ/prjtrellis/) to write a script (https://github.com/adamgreig/cl/blob/master/pins.py) which works out input/output/bidi for all pins used in any ECP5 bitstream. It found only one unused pin...

https://github.com/adamgreig/cl/blob/master/pins.py

fpga images

permalink
Type-C Station 10 in 1

Markings on packaging:

poa5788067

skud49610

Features:

Support USB Type-C DisplayPort Alt Mode.
The standard USB-C interface supports forward and backward insertion.
Support PD charging function power up to 60W (5~20V/3A Only charging) Max.
Port use black rubber core + nickel plated shell.
Adopt standard USB-A interface.
Comply with USB3.0 standard 5Gbps transmission.
Support reading and writing data, U disk, card reader, keyboard, mouse, mobile hard disk, solid state hard disk, digital camera, etc.
USB3.0 single port output power 4.5W (5V/0.9A) supports charging devices such as mobile phones.
Supports Micro SD (T-Flash) with standard TF card slot.
Transfer data using USB3.0 standard theory: 5Gbps.
Adopt standard SD card slot
Adopt standard HDMI-mother interface
Support audio and video transmission, video support up to 4Kx2K/30Hz and backward compatible
HDMI1.4
Support analog signal video transmission, video support 1920x1080/60Hz, 1920x1080K/30Hz and backward compatible
RJ45 port adopts imported RTL8153 chip and supports 10M/100M/1000M networks transmission.
Adopt four microphone headphone jacks.
Compliance with the standard (CTIA).
Mic audio recording and playback support 48K and 44.1K sampling rate.

Specification:

Material:Aluminum alloy
Color: Silver/Gray
Applicable models:
For MacBook Pro 2017 (13"& 15")
For MacBook Pro 2016 (13"& 15")
For MacBook 2015/2016
For ChromeBook Pixel
Laptop Computers Complying with USB-C Interface
Output: Type-C
Input interface:
1*HDMI interface
1*VGA interface
3*USB 3.0 Interface
1*RJ45 interface
1*3.5mm Audio Interface
1*Memory Card Interface
1*TF Card Interface
1*Mini DP interface
Network Interface: Gigabit
Video resolution:
HDMI: 4K (3840*2160), 30Hz downward compatible
VGA: 1920*1080, 60Hz downward compatibility
Working Voltage: 5V~20V
Working temperature: 0~45°

Package included:

1 x Adapter Hub

x1 dmesg

Connected to usb-c on Thinkpad x1

[330796.938562] usb 4-1.2: Failed to set U1 timeout to 0x0,error code -19
[330796.945207] usb 4-1.2: Set SEL for device-initiated U1 failed.
[330796.953401] usb 4-1.2: Set SEL for device-initiated U2 failed.
[330796.953405] usb 4-1.2: usb_reset_and_verify_device Failed to disable LPM
[330800.072541] usb usb4-port1: Cannot enable. Maybe the USB cable is bad?
[330800.072572] usb 4-1: USB disconnect, device number 2
[330800.072578] usb 4-1.2: USB disconnect, device number 3
[330800.074002] usb 4-1.3: USB disconnect, device number 4
[330800.074185] cdc_ether 4-1.3:2.0 enx0050b6b7e85b: unregister 'cdc_ether' usb-0000:3b:00.0-1.3, CDC Ethernet Device
[330800.109311] usb 4-1.4: USB disconnect, device number 5
[330820.716417] usb 1-3: new full-speed USB device number 10 using xhci_hcd
[330820.879114] usb 1-3: New USB device found, idVendor=177a, idProduct=963d, bcdDevice= 1.00
[330820.879125] usb 1-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[330820.879130] usb 1-3: Product: Billboard Device
[330820.879135] usb 1-3: Manufacturer: EXPSM USB
[330820.879138] usb 1-3: SerialNumber: 0001
[330820.889606] hid-generic 0003:177A:963D.0003: hiddev0,hidraw0: USB HID v1.10 Device [EXPSM USB Billboard Device] on usb-0000:00:14.0-3/input0
[330822.128370] usb 1-3: USB disconnect, device number 10
[330824.552424] xhci_hcd 0000:3b:00.0: Timeout while waiting for setup device command
[330824.760580] usb 4-1: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[330824.800393] usb 1-3: new high-speed USB device number 11 using xhci_hcd
[330824.888497] usb 4-1: new SuperSpeed Gen 1 USB device number 6 using xhci_hcd
[330824.972239] usb 1-3: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice= 6.54
[330824.972246] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[330824.972249] usb 1-3: Product: USB2.1 Hub
[330824.972251] usb 1-3: Manufacturer: GenesysLogic
[330824.975342] hub 1-3:1.0: USB hub found
[330824.979079] hub 1-3:1.0: 4 ports detected
[330825.233338] usb 4-1: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
[330825.255826] usb 4-1: New USB device found, idVendor=05e3, idProduct=0626, bcdDevice= 6.54
[330825.255837] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[330825.255842] usb 4-1: Product: USB3.1 Hub
[330825.255846] usb 4-1: Manufacturer: GenesysLogic
[330825.257766] hub 4-1:1.0: USB hub found
[330825.258065] hub 4-1:1.0: 4 ports detected
[330825.312494] usb 1-3.3: new high-speed USB device number 12 using xhci_hcd
[330825.437770] usb 1-3.3: New USB device found, idVendor=05e3, idProduct=0618, bcdDevice=87.53
[330825.437780] usb 1-3.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[330825.437785] usb 1-3.3: Product: USB2.0 Hub
[330825.439067] hub 1-3.3:1.0: USB hub found
[330825.439379] hub 1-3.3:1.0: 4 ports detected
[330825.544465] usb 4-1.4: new SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[330825.565383] usb 4-1.4: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[330825.565394] usb 4-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[330825.565399] usb 4-1.4: Product: USB 10/100/1000 LAN
[330825.565403] usb 4-1.4: Manufacturer: Realtek
[330825.565406] usb 4-1.4: SerialNumber: 000001
[330825.608359] usbcore: registered new interface driver r8152
[330825.688848] usb 4-1.4: reset SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[330825.728420] usb 1-3.3.1: new high-speed USB device number 13 using xhci_hcd
[330825.740964] r8152 4-1.4:1.0 eth0: v1.09.9
[330825.791038] r8152 4-1.4:1.0 enx00e04c6800e9: renamed from eth0
[330825.841409] usb 1-3.3.1: New USB device found, idVendor=05e3, idProduct=0752, bcdDevice= 2.33
[330825.841412] usb 1-3.3.1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[330825.841414] usb 1-3.3.1: Product: USB Storage
[330825.841415] usb 1-3.3.1: Manufacturer: Generic
[330825.843667] usb-storage 1-3.3.1:1.0: USB Mass Storage device detected
[330825.843985] scsi host1: usb-storage 1-3.3.1:1.0
[330826.857820] scsi 1:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0233 PQ: 0 ANSI: 0
[330826.858611] sd 1:0:0:0: Attached scsi generic sg1 type 0
[330826.860029] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[330839.531138] usb 1-3: USB disconnect, device number 11
[330839.531149] usb 1-3.3: USB disconnect, device number 12
[330839.531154] usb 1-3.3.1: USB disconnect, device number 13
[330840.284381] usb 4-1: USB disconnect, device number 7
[330840.284392] usb 4-1.4: USB disconnect, device number 8

x230 dmesg

Connected using usb-c to usb 3 adapter (no video adapter if not connected using usb-c?)

[Sat Aug 29 13:14:26 2020] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[Sat Aug 29 13:14:32 2020] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[Sat Aug 29 13:14:32 2020] usb 3-2.4: device not accepting address 6, error -62
[Sat Aug 29 13:14:32 2020] usb 2-2.4: new high-speed USB device number 10 using xhci_hcd
[Sat Aug 29 13:14:32 2020] usb 2-2.4: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice= 6.54
[Sat Aug 29 13:14:32 2020] usb 2-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Sat Aug 29 13:14:32 2020] usb 2-2.4: Product: USB2.1 Hub
[Sat Aug 29 13:14:32 2020] usb 2-2.4: Manufacturer: GenesysLogic
[Sat Aug 29 13:14:32 2020] hub 2-2.4:1.0: USB hub found
[Sat Aug 29 13:14:32 2020] hub 2-2.4:1.0: 4 ports detected
[Sat Aug 29 13:14:32 2020] usb 3-2.4: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
[Sat Aug 29 13:14:33 2020] usb 3-2.4: New USB device found, idVendor=05e3, idProduct=0626, bcdDevice= 6.54
[Sat Aug 29 13:14:33 2020] usb 3-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Sat Aug 29 13:14:33 2020] usb 3-2.4: Product: USB3.1 Hub
[Sat Aug 29 13:14:33 2020] usb 3-2.4: Manufacturer: GenesysLogic
[Sat Aug 29 13:14:33 2020] hub 3-2.4:1.0: USB hub found
[Sat Aug 29 13:14:33 2020] hub 3-2.4:1.0: 4 ports detected
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3: new high-speed USB device number 11 using xhci_hcd
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3: New USB device found, idVendor=05e3, idProduct=0618, bcdDevice=87.53
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3: Product: USB2.0 Hub
[Sat Aug 29 13:14:33 2020] hub 2-2.4.3:1.0: USB hub found
[Sat Aug 29 13:14:33 2020] hub 2-2.4.3:1.0: 4 ports detected
[Sat Aug 29 13:14:33 2020] usb 3-2.4.4: new SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[Sat Aug 29 13:14:33 2020] usb 3-2.4.4: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[Sat Aug 29 13:14:33 2020] usb 3-2.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[Sat Aug 29 13:14:33 2020] usb 3-2.4.4: Product: USB 10/100/1000 LAN
[Sat Aug 29 13:14:33 2020] usb 3-2.4.4: Manufacturer: Realtek
[Sat Aug 29 13:14:33 2020] usb 3-2.4.4: SerialNumber: 000001
[Sat Aug 29 13:14:33 2020] usb 3-2.4.4: reset SuperSpeed Gen 1 USB device number 8 using xhci_hcd
[Sat Aug 29 13:14:33 2020] r8152 3-2.4.4:1.0: firmware: failed to load rtl_nic/rtl8153a-4.fw (-2)
[Sat Aug 29 13:14:33 2020] r8152 3-2.4.4:1.0: Direct firmware load for rtl_nic/rtl8153a-4.fw failed with error -2
[Sat Aug 29 13:14:33 2020] r8152 3-2.4.4:1.0: unable to load firmware patch rtl_nic/rtl8153a-4.fw (-2)
[Sat Aug 29 13:14:33 2020] r8152 3-2.4.4:1.0 eth0: v1.11.11
[Sat Aug 29 13:14:33 2020] r8152 3-2.4.4:1.0 enx00e04c6800e9: renamed from eth0
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3.1: new high-speed USB device number 12 using xhci_hcd
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3.1: New USB device found, idVendor=05e3, idProduct=0752, bcdDevice= 2.33
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3.1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3.1: Product: USB Storage
[Sat Aug 29 13:14:33 2020] usb 2-2.4.3.1: Manufacturer: Generic
[Sat Aug 29 13:14:33 2020] usb-storage 2-2.4.3.1:1.0: USB Mass Storage device detected
[Sat Aug 29 13:14:33 2020] scsi host6: usb-storage 2-2.4.3.1:1.0
[Sat Aug 29 13:14:34 2020] scsi 6:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0233 PQ: 0 ANSI: 0
[Sat Aug 29 13:14:34 2020] sd 6:0:0:0: Attached scsi generic sg2 type 0
[Sat Aug 29 13:14:34 2020] sd 6:0:0:0: [sdc] Attached SCSI removable disk

firmware for network card

root@x230:/home/dpavlin# apt install firmware-realtek

dpavlin@x230:/lib/firmware$ ls -al rtl_nic/rtl8153a-4.fw
ls: cannot access 'rtl_nic/rtl8153a-4.fw': No such file or directory

sigh, if package is too old here is work-around: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962972

permalink
Exynos

Spin-off from Chromebook papge to document running mainline u-boot and Linux on Exynos



u-boot

SPI eeprom image

dpavlin@klin:/klin/u-boot$ cat build-spi.sh 
#!/bin/sh -xe

make
#cp /klin/books/Chromebook/spi/snow-bricked.rom .
cp snow-bricked.rom snow-mix.rom
dd conv=notrunc if=spl/smdk5250-spl.bin of=snow-mix.rom seek=$((0x00002000)) bs=1
dd conv=notrunc if=u-boot.bin of=snow-mix.rom seek=$((0x00006000)) bs=1
scp snow-mix.rom rpi2:chromebook/


Upstream u-boot works, but can't find mmc devices, so internal flash is not accessable, so I had to boot from USB network using u-boot pxe

chromiumos build

dpavlin@klin:/klin/chromebook$ . env.sh 
dpavlin@klin:/klin/chromebook/chromiumos$ cros_sdk

  • apply some patches (or not) as described at
(cr) (altAddr) dpavlin@klin ~/trunk/src/third_party/u-boot/files $ emerge-${BOARD} chromeos-u-boot



pxelinux config

dpavlin@x230:/var/tftp/pxelinux.cfg$ cat default-arm-exynos 
TIMEOUT 10

MENU TITLE TFTP boot

LABEL snow
        MENU LABEL sdcard?
        LINUX ../zImage
        FDTDIR ../
        APPEND console=tty1 console=ttyS0,115200n8 loglevel=8 rootwait rw earlyprintk root=/dev/sdcard0


kernel

doesn't boot ATM

dpavlin@klin:/klin/imx6/linux-imx$ cat build-chromebook.sh 
# 

cd /klin/chromebook/chromiumos/src/third_party/kernel/v4.4

export CROSS_COMPILE="arm-linux-gnueabihf-" ARCH=arm

test ! -f .config && make exynos_defconfig
make -j4 zImage exynos5250-snow.dtb
cp -v arch/arm/boot/zImage arch/arm/boot/dts/exynos5250-snow.dtb /media/boot/


chromiumos kernel

https://github.com/dnschneid/crouton/wiki/Build-chrome-os-kernel-and-kernel-modules

security

(might not be related, but useful to keep track of)

permalink
DSO150
permalink
Weblog Navigation
Loading...
Weblog Archives
  • Loading...