Products > Test Equipment

FNIRSI-1013D AS MUCH USE AS A CHOCOLATE FIREGUARD.

<< < (7/18) > >>

Gannet:
Hi Peter, here are a couple of higher res snapshots.
The 8Gb usb is formatted FAT32 with a disc label Scope
Goodness knows how I got the FR** file on there, maybe you'll have to go gently through the process.
Screen1 is just showing I can be in Linux and access www.eevblog. and hopefully the state of my USB card
Lest see where we go from here.
Thanks
George

pcprogrammer:
Hi George,

I can see that you used Windows to format the card :) The tell tale sign is the "System Volume Information" folder.

The fnirsi_1013d_scope.html file is indeed the mystery of what you have done. It is a web page. Not needed for this quest.

Best is to first see if the card works in the scope. Just stick it in the SD card slot and power up the scope. If all is well it starts up normally. Do a picture or waveform save on the scope. When it works as normal, turn it off again and go back to the linux machine with the SD card. There should be a couple of new files on the card, made by the scope.

Then it is time to do the needed steps.

Check with "lsblk" if the SD card is still attached to /dev/sdb. (You probably used "sudo fdisk -l" to list the partitions in your screen shot?)

Then open the github repository that contains the binary needed for the backup (https://github.com/pecostm32/FNIRSI-1013D-1014D-Hack/blob/main/Test%20code/fnirsi_1013d_firmware_backup/Binaries/fnirsi_1013d_fwb.bin)

Download it and open the download folder to see if it is there. Then change your path in the terminal window to where the file is. (cd Downloads)

Now comes the part to load the code onto the SD card. But first it has to be unmounted.


--- Code: ---sudo umount /dev/sdb1
--- End code ---

Be aware that this is with the 1 at the end indicating the partition. And this is assuming it is at /dev/sdb. It can also be /dev/sdc, /dev/sdd, etc.

Then the file has to be copied onto the SD card, but to a dedicated sector.


--- Code: ---sudo dd if=fnirsi_1013d_fwb.bin of=/dev/sdb bs=1024 seek=8
--- End code ---

This is done to the device not the partition, so no 1!

And that is all there is to it. Insert the card into the scope and turn it on. You should get what I show in the video I posted before. At the end the needed files are on the SD card. You can use either the scope with the USB connection or your SD card /reader/writer to get them onto your computer. This part can also be done under Windows if you prefer.

Let me know how it goes.

Peter

Gannet:
Hi Peter, I'm nowrunning Linux lite in terminal mode. a few more files were written to the card, I can see them now. (good init)
we have 1.bmp, 1.wav,piclist.sys.pic_system.sys,wavelist.sys and wave_system.sys

besides others we have one partition
sdb/sdb1 8:16, 1 , 7.4G 0 part/ media/linux/scope

Its the next part I'm strugling with, opening the github repository and how to download the file and save it to my 8Gb card whilst in linux terminal??

Or have I missed a step?

**************

OK it looks like I saved the file finirs_bin to home/linux/downloads/


The CD command will not work for me ? thats odd




pcprogrammer:
With linux running from the USB stick it will not write the things you download onto the USB stick. It will just hold it in a ram disk. And that is not a problem, but means it has to be done in one go.

Ok the scope works with the SD card, since it wrote the files to it.

The partition you mention is on the SD card, and that can't be used to hold the file that needs to be written to sector 16. This because it has to be unmounted to use "dd". I write file, but it is not like a normal file within a file system. The binary data from the file is written with the dd command outside the file system.

You write it is downloaded to home/linux/downloads, and that sounds right. Within the terminal window you are most likely already in the home/linux folder and as linux is case sensitive the command to switch to the downloads folder is then just "cd downloads" To use the full path it would be "cd /home/linux/downloads"

So the step is to download it into the downloads folder, which firefox does automatically, as you already found out.

Then enter that folder in the terminal window. When that is done perform the two actions mentioned in the code sections in my previous post. The unmount first, and then the "dd" (disk duplicate) command.

But make sure that the SD card is still attached as /dev/sdb.

I can't stress that enough, because "dd" does not check, it just writes where you tell it to write, and using the wrong device can f-up your system.

Gannet:

I did manage to change directories as you can see.
But I can't seem to unmount.
But it's wine time, I'll pick up tomorrow

Cheers George

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod