utorok, 15. augusta 2017

Elysium station runnint 32bit os?






https://stuff.mit.edu/afs/sipb/contrib/doc/specs/ic/cpu/x86/pentium-iii/ia32-3.pdf

page: 295:


164 MOV DWORD PTR [EBX],0 ; where we can address
165 MOV DWORD PTR [EBX]+4,0
166 MOV DWORD PTR [EBX]+8, LINEAR_PROTO_LO
167 MOV DWORD PTR [EBX]+12, LINEAR_PROTO_HI
168 MOV TEMP_GDT_scratch.table_linear,EBX
169 MOV TEMP_GDT_scratch.table_lim,15
170
171 DB 66H ; execute a 32 bit LGDT
172 LGDT TEMP_GDT_scratch
173
174 ; enter protected mode
175 MOV EBX,CR0
176 OR EBX,PE_BIT
177 MOV CR0,EBX
178
179 ; clear prefetch queue
180 JMP CLEAR_LABEL
181 CLEAR_LABEL:
182
183 ; make DS and ES address 4G of linear memory
184 MOV CX,LINEAR_SEL
185 MOV DS,CX
186 MOV ES,CX
187
188 ; do board specific initialization
189 ;
190 ;
191 ; ......
192 ;
193
194
195 ; See Figure 8-5
196 ; copy EPROM GDT to ram at:
197 ; RAM_START + size (STARTUP_DATA)
198 MOV EAX,RAM_START
199 ADD EAX,OFFSET (end_data)
200 MOV EBX,RAM_START
201 MOV ECX, CS_BASE
202 ADD ECX, OFFSET (GDT_EPROM)
203 MOV ESI, [ECX].table_linear
204 MOV EDI,EAX
 205 MOVZX ECX, [ECX].table_lim
206 MOV APP_GDT_ram[EBX].table_lim,CX 
207 INC ECX
208 MOV EDX,EAX
209 MOV APP_GDT_ram[EBX].table_linear,EAX
210 ADD EAX,ECX
211 REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[ESI]

streda, 16. novembra 2016

how-to unpin miniiso connector

 You neet paper click with diamer around 0,8mm , cut two around 2cm long peaces





Insert them and push with pliers as far as they go







then wire should came out easily.


On balck 20pin connector do not forget to unlock it first:

this is how its looks locked:

 unlocking:
 other side unlocked:

HOW-TO connect VWCDPIC adapter

Black 20pin miniiso connector 

this connector has pin lock which need to be unlocked befor inserting pins, this is how it's look from booth sides:


Use screwdriver os something flat to push lock on side which is on previous picture, lock will slide inside few milimeters:


On the other side it will popout:


This is how its looks inside of connector:


and after unlock:


CD changer ground pin in mini iso connector


If your radio has ground pin(CD-GND) as this one has (in this case audi concert2) connect emulator like is on next pictures (but insert pins all way down). Take attention to power pin, red one, it must go to switched output pit, in case you put it on constant +12V emulator will probable not works, maybe for first time.



audio cable goes here:



CD changer ground in 10pin tel/nav connector


if your radio is for example audi chorus/concert1, ground pin for CD changer is on 10pin connector on this picture, upper right, but body for this connector is to expensive for low budget project like this emu, so ground connection is made by cable fastened to metal chassis of radio. Screw has torx T-9 head.


Audio pre-ampifier


In case you have  pre-ampifier, this one is powered from constant +12V pin, righr audio channel is also red, but goes from shielded cable pare, I marked it with pinkish color:


grounding goes to chassis:


Units with 12pin connectors

If your radio has this type of connector, you are lucky you need just insert connector like on next picture and connect ground like on previous picture.



streda, 30. marca 2016

unbrick gopro hero2

just note to everyone who is trying to debrick old gpro hero2

I really do not make notes, so it's just from memory, but it can help:

I try to folow this instructions, but as cammera is not responding to anything it didn't work: https://gopro.com/support/articles/fix-for-hd-hero2-stuck-in-v198-update-mode

after hours on google here is solution:

place HD2-firmware.bin and autoexec.ash on your sdcard, put "cd d:\" on first line of autoexec.ash

donwload this 2 github repos:


git clone https://github.com/evilwombat/gopro-fw-tools.git
cd  gopro-fw-tools
make
cp ~/Downloads/HD2-firmware.bin .
./fwparser HD2-firmware.bin > unpack.sh
chmod +x unpack.sh
./unpack.sh HD2-firmware.bin
it is bunch of "dd" commands, output is 14 files names section_1,section_2,section_3, etc

then we need usb tool:
cd ..
git clone https://github.com/evilwombat/gopro-usb-tools.git
cd gopro-usb-tools/
sudo apt-get install libusb-1.0.0-dev
make
 then, place gopro in usb command mode:

- remove battery, disconnect usb cable
- press and hold shutter button
- put battery in camera
- connect usb cable
- front red led should start blinking
- press power button
- release power button, led should stop blinking
- release shutter button,

lsus shout give as device gopro:
Bus 001 Device 090: ID 4255:0001 GoPro

we are goot to go:
sudo ./gpboot --rtos ../gopro-fw-tools/section_3

camera will boot to rtos:
Initializing libusb
Initializing DDR................................... done
Testing DDR....................... passed
Okay, loading and booting RTOS image ../gopro-fw-tools/section_9 on a Hero2 camera
Loading v312-bld.bin to address c0000000
 ... done                   
Loading relocate.bin to address c7000000
 ... done                   
Loading v312-hal-reloc.bin to address c8000000
 ... done                   
Loading ../gopro-fw-tools/section_9 to address c9000000
 ... done                   
Patching in a jump to our relocator..
Okay, here goes nothing...
Exec c0000000: 12 (ok)

on display will be icon with arrow pointing to camera icon, and information about firmware version (v312 in my case)

this time it will not flash any led, so give it few minutes, take a coffe or go for lunch. after while, I came back to camera, disconnected it removed baterry, and try lot of strange thing like make it again and again put autoexec.ash on sdcard without luck.

after same time, i just for hack of it, I removed version.txt from MISC folder and put camera to usb command mode, and boot rtos:
sudo ./gpboot --rtos ../gopro-fw-tools/section_3

it show exact same icon about falshing firmware but, this time, flashing led! \o/

I wait antil flashing stoped, then removed battery and usb cable, press power button and it continue to upgrade !

gopro saved!

again, it's just from memory, so if you try it and make it works, give me comment down below






štvrtok, 10. marca 2016

inside Car Door Logo Light

have same crazy plane to change logo from audi to AUDI B5 Familia

jut for fun, so I ordered one set: from ebay

here is what is inside :




 

utorok, 26. januára 2016

OVC3860 how to change name

recently MBT28 contanct me on github about OVC3860 based BT modules [1], we have some chat about configuration of this modules, and mbt pointed to microcontroller.net where someone put link to pdf with instruction how to configure OVC3860 based modules (I put it on my github [2] including executable you need).

I personaly tested it, and it works. Change baudrate, name, reconfigure modules class, sound settings ....

tested on winXP,win7 and wine on ubuntu

I try to sniff comunication, to make it configurable from arduino, to be able set BT name by user on final product ....

[1] https://github.com/tomaskovacik/hw/issues/1
[2] https://github.com/tomaskovacik/hw/blob/master/kicad/library/datasheet/

utorok, 25. augusta 2015

vwcdpic v2 firmware for v3 boards

I do not know why it take me so long o realize that i can change pins in v2 firmware to make it works on v3 boards. But better later then never, here it is.