gedankensplitter/firmware_sammelbecken.md

98 lines
4.0 KiB
Markdown
Raw Normal View History

2022-07-29 09:36:10 +00:00
Willkommen im Wiki.
Hier wird ein Sammelsurium angelegt, welches Snippets für alles enthält, was mir über den Weg läuft.
#### TS100 soldering iron
2022-12-02 05:38:10 +00:00
https://github.com/Ralim/IronOS
2022-07-29 09:36:10 +00:00
Hold B
v2.11.372F8E3
29-08-20
Hold A
DFU:3.45
New drive available: 7BA978B8
put hex file there, systems reboots, a file with the ending .RDY or .ERR is placed.
#### Moto X4
```
*#*#4636#*#* --> Telefonwartungsmenü
```
```
VoLTE sowie WiFiCall kann erst mit neuem Update kommen, da der APN von 07 auf 03 geändert wurde und die carrier-Datei muss in der Firmware abgeändert werden.
```
[Nachweis VoLTE](https://forums.lenovo.com/t5/Moto-X4/VoLTE-on-ALDI-TALK/m-p/4228082)
#### Odroid HC1 sdcard handling
Mirror second bootstage
dd if=/dev/mmcblk0 of=/dev/sdc bs=512 count=8192
partclone (maybe some resize due different sdcard size is required)
partclone.ext4 -N -b -s /dev/mmcblk0p1 -o /dev/sdc1
##### STM32 F103 clones
https://www.blaatschaap.be/?p=120
#### nrf51822 board
Das Board ist ein übliches nrf51822 board, welches mit der Waveshare BLE400 Platform zum SDK wird. Das Rastermaß scheint kleiner zu sein.
Mit einem ST-Link V2 konnte über die beiden Pins SWCLK und SWIO geflasht werden.
```
openocd -f interface/stlink-v2.cfg -f target/nrf51.cfg
telnet localhost 4444
Trying ::1...
Connection failed: Verbindungsaufbau abgelehnt
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> halt
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0xc1000003 pc: 0xfffffffe msp: 0xffffffd8
> nrf51 mass_erase
> flash banks
#0 : nrf51.flash (nrf51) at 0x00000000, size 0x00040000, buswidth 1, chipwidth 1
#1 : nrf51.uicr (nrf51) at 0x10001000, size 0x00000100, buswidth 1, chipwidth 1
> flash write_image /home/koelner/Downloads/btlejack-firmware-ble400.hex
Padding image section 0 with 2112 bytes
Padding image section 1 with 5864 bytes
Padding image section 2 with 81204 bytes
Padding image section 3 with 908 bytes
using fast async flash loader. This is currently supported
only with ST-Link and CMSIS-DAP. If you have issues, add
"set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
target halted due to breakpoint, current mode: Handler HardFault
xPSR: 0x61000003 pc: 0x2000001e msp: 0xffffffd8
using fast async flash loader. This is currently supported
only with ST-Link and CMSIS-DAP. If you have issues, add
"set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
target halted due to breakpoint, current mode: Handler HardFault
xPSR: 0x61000003 pc: 0x2000001e msp: 0xffffffd8
wrote 261156 bytes from file /home/koelner/Downloads/btlejack-firmware-ble400.hex in 4.912921s (51.911 KiB/s)
> reset
```
Der CP2102 Adapter TTL kann wohl an P0.09 und P0.11 angeschlossen werden.
2022-12-02 05:38:10 +00:00
https://github.com/virtualabs/btlejack-firmware/blob/master/config/ble400.json
### shelly H&T
![38343fdf2b38df296baf380fbda7e292.png](38343fdf2b38df296baf380fbda7e292.png)
```
sudo bt -L 1 /dev/ttyUSB0
esp_main.c:157 ht-sensor 1.0 (20220324-134040/v1.11.8-HT-fix-g60b9bd1)
esp_main.c:159 Mongoose OS 202107262051 (20220324-134039/2.19.1-42-ga0be0b3e) sp 0x3fffff50
esp_main.c:161 CPU: ESP8266EX, 160 MHz, RAM: 51520 total, 48500 free
esp_main.c:165 SDK 3.0.5-dev(81bde69); flash: 2M
esp_exc.c:236 Reset cause: 0 (power on)
mongoose.c:15761 Mongoose 6.18, LwIP 1.4.0
mgos_vfs_dev.c:72 sfl0: sysflash (), size 2097152
mgos_vfs_dev.c:72 root: part ({"dev": "sfl0", "offset": 765952, "size": 262144}), size 262144
mgos_vfs.c:173 /: SPIFFS @ root, opts {"bs":4096,"ps":256,"es":4096}
mgos_vfs.c:344 /: size 233681, used: 79818, free: 153863
mgos_sys_config.c:232 Loading conf3.json
mgos_sys_config.c:232 Loading conf9.json
mgos_sys_config.c:306 Switching debug to UART-1
```
well, that it's all folks. The device can not connect to a wifi AP. The self-owned AP works so far, but it can not connect to a different AP, more precisely, it can not get an IP
`68:C6:3A:F9:38:9C`
https://asperti.com/2022/shelly-firmware/