Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot timeout #1

Open
Reaper-Oni opened this issue Dec 13, 2021 · 7 comments
Open

Boot timeout #1

Reaper-Oni opened this issue Dec 13, 2021 · 7 comments

Comments

@Reaper-Oni
Copy link

Okay so here's the problem. Recently I upgraded my IcopyX and ever since I had a Boot timeout and no way of fixing it. Because it was provided by work, I got a new IcopyX. However I could not help wanting to fix it. So what I did is I opened it up and found a micro-SD inside. Because I can't read it and my system keeps wanting to format it, I was hoping you could help out and help me fix it!?

@doegox
Copy link
Contributor

doegox commented Dec 13, 2021

you got a new one so you can just copy the SDcard from one to the other one

@Reaper-Oni
Copy link
Author

What format of the SD-card do I need to use? Fat, ExFat, NTFS and after the format just copy the files from the new IcopyX to the old SD (boot the new IcopyX connect to PC and copy paste?)?

@doegox
Copy link
Contributor

doegox commented Dec 14, 2021

I'd try to copy the old SD to the new one with dd, everything including the boot sector and partition table, just in case.
Partition system is not trivial. On my card I got:

Disk sdc.img: 14.84 GiB, 15938355200 bytes, 31129600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcabe25b6

Device     Boot   Start      End  Sectors  Size Id Type
sdc.img1          49152   131071    81920   40M  b W95 FAT32
sdc.img2         131072  3612672  3481601  1.7G 83 Linux
sdc.img3        4589568  7802879  3213312  1.5G 83 Linux
sdc.img4        7802880 30949375 23146496   11G 83 Linux

Then put SDcard back in icopy-x, see if it boots. I'm not sure a fw with the wrong serial can boot or not.

If yes, drop the latest fw for the correct serial on the SDcard as following the update procedure, and reflash the device.

If it doesn't boot, try to deploy the latest fw for the correct serial on the SDcard filesystem by yourself by replacing userdata/root/home/pi/ipk_app_main content with the one from the ipk (which is just a zip). Beware of setting the same files ownership and rights. userdata is the volume name of the third partition (4589568 7802879 3213312 1.5G 83 Linux)

@Reaper-Oni
Copy link
Author

I've been checking the SD-card and it's like it got wiped completely. No filesystem type no files, nothing basically.
Every time I insert the disk in a system it asks to initialise or erase. So in order to restore I need all the files, except the FW. That I do have. I might be able to copy all the files from the new IcopyX when connected to the PC, but I have no clue if that'll work. I'll get back to you on that.

dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: *127.1 MB disk2

@Reaper-Oni
Copy link
Author

I'd try to copy the old SD to the new one with dd, everything including the boot sector and partition table, just in case. Partition system is not trivial. On my card I got:

Disk sdc.img: 14.84 GiB, 15938355200 bytes, 31129600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcabe25b6

Device     Boot   Start      End  Sectors  Size Id Type
sdc.img1          49152   131071    81920   40M  b W95 FAT32
sdc.img2         131072  3612672  3481601  1.7G 83 Linux
sdc.img3        4589568  7802879  3213312  1.5G 83 Linux
sdc.img4        7802880 30949375 23146496   11G 83 Linux

Then put SDcard back in icopy-x, see if it boots. I'm not sure a fw with the wrong serial can boot or not.

If yes, drop the latest fw for the correct serial on the SDcard as following the update procedure, and reflash the device.

If it doesn't boot, try to deploy the latest fw for the correct serial on the SDcard filesystem by yourself by replacing userdata/root/home/pi/ipk_app_main content with the one from the ipk (which is just a zip). Beware of setting the same files ownership and rights. userdata is the volume name of the third partition (4589568 7802879 3213312 1.5G 83 Linux)

How'd you copy the entire disk including bootsectors??

@doegox
Copy link
Contributor

doegox commented Feb 15, 2022

As I wrote, with dd

@TechBran
Copy link

hi what do you do if you dont have another icopy to copy ? i have the boot timeout issue and have done the "fixes" hard reset , and reseat the sd card . when i plug into my pc it wants me to format the sd card .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants