Tutorial [Tutorial] How to flash the HWFLY Clone chips

leerz

Well-Known Member
Member
Joined
Jan 11, 2015
Messages
648
Trophies
0
Age
34
Location
Makati
Website
leerz25.sitesled.com
XP
1,466
Country
please help
I followed the instructions and flashed successfully. but when re-installing the oled, only the white light is on at startup, then off, then the oled boots into ofw. does anyone have the full .bin file of v0.1.0 for hwfly lite? I will try to flash again
whitelite shows when no nand is detected (at least on original sx firmware), could be similar, usually red if dat0 can't be detected,. please do correct me but that's from experience.
 
  • Like
Reactions: mocthulang

Mena

Well-Known Member
OP
Member
Joined
Oct 5, 2020
Messages
128
Trophies
0
Age
27
XP
562
Country
United States
please help
I followed the instructions and flashed successfully. but when re-installing the oled, only the white light is on at startup, then off, then the oled boots into ofw. does anyone have the full .bin file of v0.1.0 for hwfly lite? I will try to flash again
DM me. I know what issue you’re having
 

mattyv

Member
Newcomer
Joined
May 28, 2009
Messages
20
Trophies
0
XP
1,230
Country
United States
I have this new OLED specific chip installed and can confirm it has Spacecraft 2.0 on it. No USB debug port on this chip for 'easily' flashing firmware.
My OLED chip was just delivered today and is the same revision (without USB). Do you have install instructions for this revision? I can only find instructions for the OLED chip with the USB port
 

mocthulang

Member
Newcomer
Joined
Jan 21, 2022
Messages
13
Trophies
0
Age
40
XP
77
Country
Vietnam
DM me. I know what issue you’re having
IMG_1945.JPG
 

JaRocker

Well-Known Member
Member
Joined
May 3, 2018
Messages
303
Trophies
0
XP
1,132
Country
Jamaica

4.7kΩ ±1% 0.05W 0201​

47kΩ ±1% 0.05W 0201​

iPhone to chip but I don't know which one of these I should get.
RC Series 0201 0.05 W 4.7 kOhm ±1% ±200 ppm/°C SMT Thick Film Chip Resistor

AC Series 0201 4.7 kΩ ±1% 0.05 W ±200 ppm/°C Thick Film Chip Resistor
 

sean222

Well-Known Member
Newcomer
Joined
Sep 7, 2007
Messages
81
Trophies
0
XP
498
Country
Canada
My OLED chip was just delivered today and is the same revision (without USB). Do you have install instructions for this revision? I can only find instructions for the OLED chip with the USB port

Sorry, no instructions. I just went by pictures from the community.
 

Mena

Well-Known Member
OP
Member
Joined
Oct 5, 2020
Messages
128
Trophies
0
Age
27
XP
562
Country
United States
There is a lot of variances. This is becoming messier and messier by the day in terms of differences between chips, FPGAs, code in firmware, etc.
 
  • Like
Reactions: leerz

mattyv

Member
Newcomer
Joined
May 28, 2009
Messages
20
Trophies
0
XP
1,230
Country
United States
Sorry, no instructions. I just went by pictures from the community.
NP. Found your pics here that helped. Thanks
I plan on trying to tackle it this weekend. Question....did you cut the one qsb toward the top for a reason? It looks like gnd and 3.3v can be pulled from that same ribbon. Was wondering if you pulled those 2 points from elsewhere for a reason. Did you just have those wires already connected from a prior install?
 

kylum

Well-Known Member
Member
Joined
Dec 8, 2008
Messages
351
Trophies
0
XP
1,199
Country
United States
There is a lot of variances. This is becoming messier and messier by the day in terms of differences between chips, FPGAs, code in firmware, etc.
Sounds like a nightmare. At this point we are probably seeing clones of clones. Thanks for your hard work!

I do have a few questions for you if you don't mind indulging in my curiosity!

Does the OLED chip support flashing using the firmware.bin on the SD? Are you going to implement that if not when you release? This could help in the future

How to update firmware w/o taking it apart
  • If you have flashed Spacecraft-NX, you could update the firmware and built-in payload(sdloader) by putting firmware.bin in the root of your SD card.
  • To reflash/downgrade the firmware regardless of firmware version, create a file called .force_update. (Windows users might find it hard to create dot files, just grab one in the repo.)
  • Some might stuck with green LED at boot. Unfortunately, the only resolution is to connect the chip with micro-USB debug port and reset it via serial interface.

I really like the mod @kazushiMe did. Will you be merging that with your release?
Spacecraft-NX-MOD

  • Boot to OFW by holding down VOL + (works with/without SD card)
    • Usage: Hold down VOL +, then press POWER. Release VOL + when modchip LED turns off or the logo shows up.
 
Last edited by kylum,
  • Like
Reactions: lufeig

Mena

Well-Known Member
OP
Member
Joined
Oct 5, 2020
Messages
128
Trophies
0
Age
27
XP
562
Country
United States
Sounds like a nightmare. At this point we are probably seeing clones of clones. Thanks for your hard work!

I do have a few questions for you if you don't mind indulging in my curiosity!

Does the OLED chip support flashing using the firmware.bin on the SD? Are you going to implement that if not when you release? This could help in the future



I really like the mod @kazushiMe did. Will you be merging that with your release?


The Chinese seem to have released an update for the OLED chip with the USB header. I can tell you right now that this update does a couple of things.

1.) It disables debugging completely, if you try and connect to PuTTy you will get an error.
2.) They modified SD Loader so my payload checker will report an unknown payload. I don't know the changes that they've made. It seems like they merged kazushime's update for compatibility into it. Added some text on the bottom right-hand corner. The OLED chip came with 0.2.0 so I wouldn't assume they went back to 0.1.0 for any reason considering all the backlash.

Currently, the state of the RE'ing done on their firmware is:

I have a working build that does a successful glitch, but it crashes sometimes during training. I've gotten it to not crash on my OLED but I had a friend test it and it made their modchip crash. This looks like "infinite glitching" in reality....it's not glitching and the FPGA has hanged/crashed. I need to figure out the differences there before an official open-source release.

TL;DR I need more testers
 

Attachments

  • firmware_r021.zip
    173.1 KB · Views: 24

Mena

Well-Known Member
OP
Member
Joined
Oct 5, 2020
Messages
128
Trophies
0
Age
27
XP
562
Country
United States
Does the OLED chip support flashing using the firmware.bin on the SD? Are you going to implement that if not when you release? This could help in the future
Yes. This feature has been in spacecraft since first release. It was just never documented on github. All you need to do is create a file with the name ".force_update" on the root of your SD card and have the firmware.bin there as well. FAT32 formatted of course.
 
  • Like
Reactions: leerz and mattyv

kylum

Well-Known Member
Member
Joined
Dec 8, 2008
Messages
351
Trophies
0
XP
1,199
Country
United States
Yes. This feature has been in spacecraft since first release. It was just never documented on github. All you need to do is create a file with the name ".force_update" on the root of your SD card and have the firmware.bin there as well. FAT32 formatted of course.
Nice, I can test for you! As long as i do not have to flash via a programmer/ SWD. When i get back to the house i will put your firmware from previous post on the SD along with .force_update. My Raspberrypi has HomeAssistant running my my home automation(need to buy another). However, i do have a ST-Link coming on the slow boat.

FYI, my OLED chip does report to "Do use on a Oled" running payloadchecker.

If the "chip crash" occurs. What to do next?
 

Mena

Well-Known Member
OP
Member
Joined
Oct 5, 2020
Messages
128
Trophies
0
Age
27
XP
562
Country
United States
Nice, I can test for you! As long as i do not have to flash via a programmer/ SWD. When i get back to the house i will put your firmware from previous post on the SD along with .force_update. My Raspberrypi has HomeAssistant running my my home automation(need to buy another). However, i do have a ST-Link coming on the slow boat.

FYI, my OLED chip does report to "Do use on a Oled" running payloadchecker.

If the "chip crash" occurs. What to do next?
If you still have the USB header to program, you can always program it via that. DM me and we'll test from there. There's a few things I'd need you to capture for me
 
  • Like
Reactions: leerz

mocthulang

Member
Newcomer
Joined
Jan 21, 2022
Messages
13
Trophies
0
Age
40
XP
77
Country
Vietnam
The Chinese seem to have released an update for the OLED chip with the USB header. I can tell you right now that this update does a couple of things.

1.) It disables debugging completely, if you try and connect to PuTTy you will get an error.
2.) They modified SD Loader so my payload checker will report an unknown payload. I don't know the changes that they've made. It seems like they merged kazushime's update for compatibility into it. Added some text on the bottom right-hand corner. The OLED chip came with 0.2.0 so I wouldn't assume they went back to 0.1.0 for any reason considering all the backlash.

Currently, the state of the RE'ing done on their firmware is:

I have a working build that does a successful glitch, but it crashes sometimes during training. I've gotten it to not crash on my OLED but I had a friend test it and it made their modchip crash. This looks like "infinite glitching" in reality....it's not glitching and the FPGA has hanged/crashed. I need to figure out the differences there before an official open-source release.

TL;DR I need more testers
can i try with this file?
 

Mena

Well-Known Member
OP
Member
Joined
Oct 5, 2020
Messages
128
Trophies
0
Age
27
XP
562
Country
United States
The Chinese seem to have released an update for the OLED chip with the USB header. I can tell you right now that this update does a couple of things.

1.) It disables debugging completely, if you try and connect to PuTTy you will get an error.
2.) They modified SD Loader so my payload checker will report an unknown payload. I don't know the changes that they've made. It seems like they merged kazushime's update for compatibility into it. Added some text on the bottom right-hand corner. The OLED chip came with 0.2.0 so I wouldn't assume they went back to 0.1.0 for any reason considering all the backlash.

Currently, the state of the RE'ing done on their firmware is:

I have a working build that does a successful glitch, but it crashes sometimes during training. I've gotten it to not crash on my OLED but I had a friend test it and it made their modchip crash. This looks like "infinite glitching" in reality....it's not glitching and the FPGA has hanged/crashed. I need to figure out the differences there before an official open-source release.

TL;DR I need more testers

I've figured out the random crashing thanks to a friend. It's the SD card. You need to train it without an SD card inserted.

can i try with this file?

Sure, but fair warning: If you have issues, you will need to recover.

I suggest you start with firmware only. run the flash.bat inside that folder with the USB plugged in.

Let it train over putty by pressing T. Don't have an SD card inserted while training.

Let me know, thanks.
 

Attachments

  • OLEDUPDATER.zip
    222.8 KB · Views: 26

Dean_

Well-Known Member
Member
Joined
Sep 11, 2014
Messages
690
Trophies
0
XP
634
Country
I've figured out the random crashing thanks to a friend. It's the SD card. You need to train it without an SD card inserted.
Which version is this firmware based on? I guess it's modified from KazushiMe's mod, right?
 

Mena

Well-Known Member
OP
Member
Joined
Oct 5, 2020
Messages
128
Trophies
0
Age
27
XP
562
Country
United States
Which version is this firmware based on? I guess it's modified from KazushiMe's mod, right?
The firmware.bin attached above is vanilla spacecraft + the edits to make it work with their FPGA bitstream. The way they do things is different. They sync up with the FPGA, tie it pin 37? I think. There's not much difference. It's not KazushiMe's mod at all though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Elodain @ Elodain: yay I turned my Ps4 into a paperweight today because everyone insisted the exploit was stable.