Restore Factory Settings - qtec/build-qt5022-core GitHub Wiki
Restore factory Settings
The camera can be restored with the original image following this steps. You are going to need:
- Computer running Debian 8.6
- CFAST reader like the DeLOCK Card Reader USB 3.0
- CFAST of at least 4GiB
- Image builder script
- Root File System
- Bootloader
Please not that the camera makes use of CFAST, not Compact Flash. Despite the similar name they are two completely different and incompatible products
and follow this steps:
- Connect the CFAST into the CFAST reader and plug it into a free USB socket of your computer
- Find out the device name of the CFAST by running dmesg
$ sudo dmesg
[61899.467503] usb 2-2: new SuperSpeed USB device number 5 using xhci_hcd
[61899.493852] usb 2-2: New USB device found, idVendor=174c, idProduct=5136
[61899.493857] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[61899.493859] usb 2-2: Product: 91686
[61899.493861] usb 2-2: Manufacturer: Delock
[61899.493863] usb 2-2: SerialNumber: 3000000038C4
[61899.498028] scsi host6: uas
[61899.498782] scsi 6:0:0:0: Direct-Access ASMT 2105 0 PQ: 0 ANSI: 6
[61899.551638] sd 6:0:0:0: Attached scsi generic sg2 type 0
[61899.551837] sd 6:0:0:0: [sdb] Spinning up disk...
(In this case the device is sdb)
- Make sure that no partition is mounted, otherwise umount them. Eg;
$ mount | grep sdb
/dev/sdb2 on /media/ricardo/rootfs type ext4 (rw,nosuid,nodev,relatime,stripe=8191,data=ordered,uhelper=udisks2)
$ umount /dev/sdb2
- Download the Image builder script, the root file system and the bootloader on the same folder.
- Launch the script
$ sudo bash buildqt5022image -d /dev/sdb -i qtec-core-dev-image-qt5022-fglrx.tar.gz -g bootx64.efi
Running with options: DEVICE=/dev/sdb IMAGE=qtec-core-dev-image-qt5022-fglrx.tar.gz GRUB=bootx64.efi RWMODE=rw TARGETIMAGE=
=== Partitioning device ===
2+0 records in
2+0 records out
1024 bytes (1.0 kB, 1.0 KiB) copied, 0.000652879 s, 1.6 MB/s
Warning: The resulting partition is not properly aligned for best performance.
Warning: The resulting partition is not properly aligned for best performance.
Warning: The resulting partition is not properly aligned for best performance.
=== Formating partitions ===
mkfs.fat 4.0 (2016-05-06)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
mke2fs 1.43.3 (04-Sep-2016)
/dev/sdb2 contains a ext4 file system labelled 'rootfs'
last mounted on /media/ricardo/rootfs on Wed Nov 30 10:31:32 2016
Proceed anyway? (y,n) y
Creating filesystem with 1820928 4k blocks and 456064 inodes
Filesystem UUID: ba45a4ae-f724-4aa3-9777-73c5fe182ae7
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
mkswap: /dev/sdb3: warning: wiping old swap signature.
Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
LABEL=swap, UUID=bb4540c3-a836-4323-82a0-05c9793c8531
=== Installing grub ===
=== Installing Main rootfs (This can take a while...) ===
=== Umounting automounted partition ===
=== Syncing ===
=== Done! (All Right!) ===