BertoldVdb / jms578flash

Utility for flashing JMicron JMS578 (and probably others) SATA bridges
MIT License
31 stars 8 forks source link

Custom USB name #14

Open alejandro-alzate opened 1 month ago

alejandro-alzate commented 1 month ago

I want to taint my drive with my name burned on the rom. Is it that possible?

I've dumped the rom and I Cannot find the string that displays on lsusb "Bus 004 Device 004: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s"

There are some but not the exact match usb hard disk.zip

Also how can i compile/run your software? I would like to do some mods.

ghclonenah commented 1 month ago

Compile? Install go, it can be different cuz every distro have different package managers Then go build it will compile and save the executable as jms578flash

ghclonenah commented 1 month ago

I want to taint my drive with my name burned on the rom. Is it that possible?

I've dumped the rom and I Cannot find the string that displays on lsusb "Bus 004 Device 004: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS578 SATA 6Gb/s"

There are some but not the exact match usb hard disk.zip

Also how can i compile/run your software? I would like to do some mods.

Linux are displaying generic device name, to get exact name from firmware, you must see dmesg

alejandro-alzate commented 1 month ago

Linux are displaying generic device name, to get exact name from firmware, you must see dmesg

@ghclonenah Hi. This is what pops up when I plug it in.

[118286.080695] usb 4-2: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 2.15
[118286.080700] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[118286.080702] usb 4-2: Product: USB to ATA/ATAPI Bridge
[118286.080703] usb 4-2: Manufacturer: JMicron
[118286.080704] usb 4-2: SerialNumber: [Is this sensitive?]
[118286.165586] usbcore: registered new interface driver usb-storage
[118286.183484] scsi host4: uas
[118286.183958] scsi 4:0:0:0: Direct-Access     JMicron  Generic          0215 PQ: 0 ANSI: 6
[118286.184289] usbcore: registered new interface driver uas
[118286.185013] sd 4:0:0:0: Attached scsi generic sg2 type 0

So I can modify the manufacturer field? Has any character length limit? Any heads up is welcome.

alejandro-alzate commented 1 month ago

Compile? Install go, it can be different cuz every distro have different package managers Then go build it will compile and save the executable as jms578flash

I just installed golang, it wasn't hard but damn it was somewhat annoying. But I'm ready for further instructions.

go run main.go 
2024/10/11 08:34:47 You can only specify one of '-flash','-extract' or '-dumprom'
exit status 1