Pages:
Author

Topic: Baikal X10 ⚡OVERCLOCK⚡ Claim reward 0.2 BTC for TUTORIAL HOW TO :)⚡⚡⚡⚡ - page 8. (Read 22768 times)

jr. member
Activity: 42
Merit: 25
I found quit a bit of the source for sgminer after writing the bin image(PiZero_GX10_171229_V1.1.img) to an SD card and looking at deleted files.  ...

Thanks for the info. Care to share what method you used to find the deleted files once the image was written to the SD card? Do the filenames seem to correlate with their contents?
newbie
Activity: 50
Merit: 0
Looks like they decided to leave out the part that allows us to adjust the clock frequency...
Code:
...
#define BAIKAL_ENABLE_SETCLK    (0)
...
Code:
...
#if BAIKAL_ENABLE_SETCLK
    if (opt_baikal_options != NULL) {
        sscanf(opt_baikal_options, "%d:%d:%d", &clock, &recovertemp, &cutofftemp);
        if (clock < BAIKAL_CLK_MIN) {
            clock = BAIKAL_CLK_MIN;
        }
        if (clock > BAIKAL_CLK_MAX) {
            clock = BAIKAL_CLK_MAX;
        }
    }
#else
    if (opt_baikal_options != NULL) {
        sscanf(opt_baikal_options, "%d:%d", &recovertemp, &cutofftemp);
    }
#endif

    if (opt_baikal_fan != NULL) {
        sscanf(opt_baikal_fan, "%d", &fanspeed);
        if (fanspeed > BAIKAL_FANSPEED_MAX) {
            fanspeed = BAIKAL_FANSPEED_DEF;
        }
    }

    baikal = usb_alloc_cgpu(&baikalu_drv, 1);
    baikal->mutex = calloc(1, sizeof(*(baikal->mutex)));
    mutex_init(baikal->mutex);

    info = (struct baikal_info *)calloc(1, sizeof(struct baikal_info));
    info->clock         = clock;
    info->cutofftemp    = (uint8_t)cutofftemp;
    info->fanspeed      = (uint8_t)fanspeed;
    info->recovertemp   = (uint8_t)recovertemp;

    baikal->device_data = info;
    baikal->name        = strdup("BKLU");
    baikal->miner_id    = 0;
    baikal->algorithm   = default_profile.algorithm;

    miner = &info->miners[baikal->miner_id];
    cgtimer_time(&miner->start_time);
...
newbie
Activity: 50
Merit: 0
I found quit a bit of the source for sgminer after writing the bin image(PiZero_GX10_171229_V1.1.img) to an SD card and looking at deleted files. 
Not sure if this has already been discovered.  Not sure if there's enough to actually compile a working version.

Here's some of what I found:

Code:
#ifndef __DEVICE_BAIKAL_H__
#define __DEVICE_BAIKAL_H__

#include "miner.h"

#define BAIKAL_MAXMINERS     (16)
#define BAIKAL_MAXASICS         (200)
#define BAIKAL_WORK_FIFO        (255)

#define BAIKAL_CLK_MIN  (150)
#define BAIKAL_CLK_DEF  (300)
#define BAIKAL_CLK_MAX     (300)
#define BAIKAL_CUTOFF_TEMP      (85)
#define BAIKAL_FANSPEED_DEF     (100)
#define BAIKAL_FANSPEED_MAX     (100)
#define BAIKAL_RECOVER_TEMP     (60)

#define BAIKAL_RESET     (0x01)
#define BAIKAL_GET_INFO         (0x02)
#define BAIKAL_SET_OPTION     (0x03)
#define BAIKAL_SEND_WORK     (0x04)
#define BAIKAL_GET_RESULT     (0x05)
#define BAIKAL_SET_ID     (0x06)
#define BAIKAL_SET_IDLE     (0x07)

#define BAIKAL_MINER_TYPE_NONE  (0x00)
#define BAIKAL_MINER_TYPE_MINI  (0x01)
#define BAIKAL_MINER_TYPE_CUBE  (0x02)

#define BAIKAL_ENABLE_SETCLK    (0)

struct asic_info {
    uint32_t nonce;
    uint32_t error;
};

struct miner_info {
    int     thr_id;
    int     asic_count; 
    int     unit_count;
int temp; 
    int     clock;
    bool    working;
    bool    overheated;
    uint8_t fw_ver;
    uint8_t hw_ver;
    uint8_t asic_ver;   
    uint32_t nonce;
    uint32_t error;   
    double working_diff;   
    struct asic_info asics[BAIKAL_MAXASICS];
    cgtimer_t start_time;
};


struct baikal_info {
    struct pool pool;
    int miner_count;
    int clock;
    uint8_t cutofftemp;
    uint8_t fanspeed; // percent
    uint8_t recovertemp;
pthread_t *process_thr;
    uint8_t work_idx;
    struct work *works[BAIKAL_WORK_FIFO];
    struct miner_info miners[BAIKAL_MAXMINERS];

    uint8_t miner_type;
};

typedef struct {
    uint8_t     miner_id;
    uint8_t     cmd;
    uint8_t     param;
    uint8_t     dest;
    uint8_t     data[512];
    uint32_t    len;
} baikal_msg;


#endif /* __DEVICE_BAIKAL_H__ */
newbie
Activity: 43
Merit: 0
I have a question. adra12
If you checked the firmware source code, did you check all three X10 firmware?
I know that there are three firmware versions in October, November, and December.
I have only the firmware in November, December. There is no firmware in October.
All three firmware did not have sgminer source code?

I only have the following image file:
PiZero_GX10_171229_V1.1.img

And the microcontroller firmware I have is exactly the same like this one:
http://leteckaposta.cz/473537086

It would be nice to have the previous image, sgminer, firmware files for comparison.
newbie
Activity: 2
Merit: 0

From the link above, some of the bash history from @adra12:

Code:
// Open the following file with VIM text editor for editing
vi driver-baikalu.c
 
// View sgminer CLI
sudo screen -r
 
// List content
ls
 
// List content
ls
 
// Delete this folder
rm -rf sgminer/

That means that sgminer was compiled on the machine, and they deleted the folder with the source code. Still there are no traces of the source code of the firmware. And both of them are needed.

I have a question. adra12
If you checked the firmware source code, did you check all three X10 firmware?
I know that there are three firmware versions in October, November, and December.
I have only the firmware in November, December. There is no firmware in October.
All three firmware did not have sgminer source code?
newbie
Activity: 50
Merit: 0

From the link above, some of the bash history from @adra12:

Code:
// Open the following file with VIM text editor for editing
vi driver-baikalu.c
 
// View sgminer CLI
sudo screen -r
 
// List content
ls
 
// List content
ls
 
// Delete this folder
rm -rf sgminer/

That means that sgminer was compiled on the machine, and they deleted the folder with the source code. Still there are no traces of the source code of the firmware. And both of them are needed.

For the meantime, I'd be happy with just some of the source!
newbie
Activity: 43
Merit: 0

From the link above, some of the bash history from @adra12:

Code:
// Open the following file with VIM text editor for editing
vi driver-baikalu.c
 
// View sgminer CLI
sudo screen -r
 
// List content
ls
 
// List content
ls
 
// Delete this folder
rm -rf sgminer/

That means that sgminer was compiled on the machine, and they deleted the folder with the source code. Still there are no traces of the source code of the firmware. And both of them are needed.
newbie
Activity: 50
Merit: 0
@CNoteFan:
It's hardly ever possible. Most likely developers are sitting on PC doing cross-development for OrangePi.
After that they release image for flashing there only binaries residues. No even traces of source code.



From the link above, some of the bash history from @adra12:

Code:
// Open the following file with VIM text editor for editing
vi driver-baikalu.c
 
// View sgminer CLI
sudo screen -r
 
// List content
ls
 
// List content
ls
 
// Delete this folder
rm -rf sgminer/
newbie
Activity: 5
Merit: 0
@CNoteFan:
It's hardly ever possible. Most likely developers are sitting on PC doing cross-development for OrangePi.
After that they release image for flashing there only binaries residues. No even traces of source code.
newbie
Activity: 43
Merit: 0
Isn't the firmware in the flashcard that is used?  The sgminer code may also be in that since it would be impractical to embed permanently into a rom, don't you think?  Anyone have any experience with this?

By the time you get your miner the firmware is flashed to the microcontroller. You can still obtain it, but it is as useful as the compiled sgminer. You can only edit it with a Hex editor, but development is not possible without the source code.
newbie
Activity: 50
Merit: 0
Has anyone tried to "undelete" from the SD after writing the image to it?  Perhaps the source is still there, just "deleted?"
jr. member
Activity: 75
Merit: 1
...
These commands are just for reference if you intend to reverse-engineer their work step by step.

Unless you have the source code of sgminer and the firmware, it is pointless to issue the same commands as you don't have the same files.

Isn't the firmware in the flashcard that is used?  The sgminer code may also be in that since it would be impractical to embed permanently into a rom, don't you think?  Anyone have any experience with this?
newbie
Activity: 43
Merit: 0

Good morning.
Can I apply it in the same way as in url?
Does it work properly on x10?
Is there a command to add SGMINER Options in x10 miner setting?
I would appreciate your reply.
Thank you.

These commands are just for reference if you intend to reverse-engineer their work step by step.

Unless you have the source code of sgminer and the firmware, it is pointless to issue the same commands as you don't have the same files.
newbie
Activity: 2
Merit: 0
I would like to share the bash history of an X10 machine. I have commented the commands, so you should be able to understand it even if you are not familiar with Linux commands.

If you notice a mistake or you have a suggestion, then please let me know. I can still edit the file.

https://pastebin.com/qit9sA9M



Good morning.
Can I apply it in the same way as in url?
Does it work properly on x10?
Is there a command to add SGMINER Options in x10 miner setting?
I would appreciate your reply.
Thank you.
newbie
Activity: 43
Merit: 0
I would like to share the bash history of an X10 machine. I have commented the commands, so you should be able to understand it even if you are not familiar with Linux commands.

If you notice a mistake or you have a suggestion, then please let me know. I can still edit the file.

https://pastebin.com/qit9sA9M

newbie
Activity: 43
Merit: 0
I wish Baikal would release the sgminer source code. 

Anyone know if it falls under the same licensing as cgminer?
https://bitcointalksearch.org/topic/m.28367617

In that case the initiation was started at bitcointalk, so they could end it very quickly if the source was not released.

You can check the original sgminer homepage:
https://github.com/sgminer-dev/sgminer
License: GPLv3. See COPYING for details.

Baikal just doesn't give a shit about it. Unfortunately no one can force them to release the source code, but they would need to do so.
jr. member
Activity: 75
Merit: 1
Did anybody manage to restore the driver-baikalu.c source file? It would help a lot to understand how it is working with sgminer.

I wish Baikal would release the sgminer source code. 

Anyone know if it falls under the same licensing as cgminer?
https://bitcointalksearch.org/topic/m.28367617

Don't count on them doing that.. they're using a version sgminer/5.6.3-l which must be a proprietary fork

Is it not possible to get it from the sd card?  That should be where it resides? 
newbie
Activity: 50
Merit: 0
Did anybody manage to restore the driver-baikalu.c source file? It would help a lot to understand how it is working with sgminer.

I wish Baikal would release the sgminer source code. 

Anyone know if it falls under the same licensing as cgminer?
https://bitcointalksearch.org/topic/m.28367617
newbie
Activity: 25
Merit: 0
jr. member
Activity: 75
Merit: 1
I will PAY someone have for detailed X10 hash board photos on both sides without the heat sinks. I will also pay for a list of components that are recognizable on a hash board such as "3 - chips with code xyz, 10 chips with code "blah blah" .. etc. "   If you're willing to help on this contact me please. 

Here's one of the components on the hash boards (64 per board):

...the model number on the asic is this:

[Baikal Logo]
BK177280
ND33U

...



we all knew that. he wants to know EVERYTHING on the hashboards in an attempt to know what components are used to invest into cloning it

Can we agree that without ASICs any attempt to clone the rest of the miner (in an effort to build a functioning miner) is pointless? Similar to cloning a pen but never having a source of ink or having access to 1000 crypto miners but without access to electricity. If they have a source of the X10 ASICs then the story changes. I'm just trying to save them time & effort from what would be a fruitless pursuit (as far as I can tell, anyway).

Yes of course that's correct.  Without the asics it's pointless which is one reason I'm willing to pay someone for the info I've asked for.  It could save me time and alot of money to do what I hope to accomplish.  I won't comment publicly anymore on this topic anyone is free to contact me privately if interested
Pages:
Jump to: