7i92 BootSector is invalid
- Gile65
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
15 Nov 2021 12:31 #226574
by Gile65
7i92 BootSector is invalid was created by Gile65
Dear,
I connected the 7I92 according to the instructions. In the attached trace you can see that 7I92 responded to the command :
"mesaflash --device 7i92 --verbose"
and
"mesaflash --device 7i92 --readhmid".
At the command :
"sudo mesaflash --device 7i92 --write 7i92_7i77_7i74D.bit"
linux reports an error:
Checking file ... OK
File type: BIT file
Error: BootSector is invalid
Analyzing the error, I came to the place where it was generated:
// if board doesn't support fallback there is no boot block
if (board-> fallback_support == 1) {
if (check_boot (self) == -1) {
if (fix_boot_flag) {
write_boot (self);
if (check_boot (self) == -1) {
printf ("Failed to write valid boot sector \ n");
fclose (fp);
return -1;
}
} else {
printf ("Error: BootSector is invalid \ n");
fclose (fp);
return -1;
}
} else {
printf ("Boot sector OK \ n");
}
}
Part of the code taken from github.com/LinuxCNC/mesaflash/blob/master/eeprom.c
According to the comment from that part of the program, it follows that there is no fallback block on 7I92.
How can I solve this problem?
I connected the 7I92 according to the instructions. In the attached trace you can see that 7I92 responded to the command :
"mesaflash --device 7i92 --verbose"
and
"mesaflash --device 7i92 --readhmid".
At the command :
"sudo mesaflash --device 7i92 --write 7i92_7i77_7i74D.bit"
linux reports an error:
Checking file ... OK
File type: BIT file
Error: BootSector is invalid
Analyzing the error, I came to the place where it was generated:
// if board doesn't support fallback there is no boot block
if (board-> fallback_support == 1) {
if (check_boot (self) == -1) {
if (fix_boot_flag) {
write_boot (self);
if (check_boot (self) == -1) {
printf ("Failed to write valid boot sector \ n");
fclose (fp);
return -1;
}
} else {
printf ("Error: BootSector is invalid \ n");
fclose (fp);
return -1;
}
} else {
printf ("Boot sector OK \ n");
}
}
Part of the code taken from github.com/LinuxCNC/mesaflash/blob/master/eeprom.c
According to the comment from that part of the program, it follows that there is no fallback block on 7I92.
How can I solve this problem?
Please Log in or Create an account to join the conversation.
- D.L.
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 37
15 Nov 2021 13:44 #226578
by D.L.
Replied by D.L. on topic 7i92 BootSector is invalid
For fix it:
mesaflash --device 7I92 --addr 192.168.1.121 --fix-boot-block --fallback --write 7i92_fallback.bit
mesaflash --device 7I92 --addr 192.168.1.121 --write 7i92_7i77_7i74D.bit
mesaflash --device 7I92 --addr 192.168.1.121 --fix-boot-block --fallback --write 7i92_fallback.bit
mesaflash --device 7I92 --addr 192.168.1.121 --write 7i92_7i77_7i74D.bit
The following user(s) said Thank You: jay.perez1, Gile65, DoWerna, piskora
Please Log in or Create an account to join the conversation.
- Gile65
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
15 Nov 2021 19:18 #226598
by Gile65
Replied by Gile65 on topic 7i92 BootSector is invalid
With your advice, I solved the problem. Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds