Jump to content


Photo

Ofgwrite fails to create a SD card image


  • Please log in to reply
3 replies to this topic

#1 mihaip

  • Senior Member
  • 42 posts

0
Neutral

Posted 15 May 2023 - 11:52

I'm trying to build a SD card image for Dream ONE from OATV 7.3
archive using Ofgwrite ! as follows ...

ofgwrite -kmmcblk1p1 -rmmcblk1p1 /media/usb/dreamone

After SD card initialization ... the procedure is started , went thru
the end , with some warnings , but the SD card was not bootable !
and into EMMC rootfs was created a folder "/newroot" witch was
impossible to remove and forbid further executions !



Re: Ofgwrite fails to create a SD card image #2 mihaip

  • Senior Member
  • 42 posts

0
Neutral

Posted 15 May 2023 - 12:11

Tring the same opperation for Zgemma H9S ... also fails !!!

 

openatv 7.3 zgemmah9s
 
zgemmah9s login: root
Password:
root@zgemmah9s:~# ofgwrite -kmmcblk0p1 -rmmcblk0p1 /media/hdd/h9
 
ofgwrite Utility v4.6.5
Author: Betacentauri
Based upon: mtd-utils-native-1.5.1 and busybox 1.24.1
Use at your own risk! Make always a backup before use!
Don't use it if you use multiple ubi volumes in ubi layer!
 
Flashing kernel with arg mmcblk0p1
Flashing rootfs with arg mmcblk0p1
Searching image files in /media/hdd/h9 resolved to /media/hdd/h9
Found rootfs file: /media/hdd/h9/rootfs.tar.bz2
Found kernel file: /media/hdd/h9/uImage
Found rootfs file: /media/hdd/h9/rootfs.ubi
Found UBIFS rootfs
Found mounted /newroot
Found mountpoint for rootfs file: /media/hdd
 
Found /proc/mtd entries:
Device:   Size:     Erasesize:  Name:                   Image:
mtd0:     00100000  00020000    "boot"
mtd1:     00100000  00020000    "bootargs"
mtd2:     00100000  00020000    "baseparam"
mtd3:     00100000  00020000    "pqparam"
mtd4:     00100000  00020000    "logo"
mtd5:     00100000  00020000    "deviceinfo"
mtd6:     01000000  00020000    "kernel"
mtd7:     0ea00000  00020000    "rootfs"
Using kernel mtd device:
Using rootfs mtd device:
Read /proc/cmdline
Kexec mode is:
Current rootfs is: ubi0:rootfs
Current kernel is:
Current root sub dir is:
 
Execute: fdisk -l
Using /dev/mmcblk0p1 as rootfs device
Using /dev/mmcblk0p1 as kernel device
Flashing currently not running image
 
Syncing filesystem
Mount rootfs
Mount to /oldroot_remount/ successful
Creating directory  recursively
Flash rootfs unpack
Delete rootfs: rm -r -f /oldroot_remount/
rm: can't remove '/oldroot_remount': Device or resource busy
can't remove '/oldroot_remount': Device or resource busy
Untar: tar xf /media/hdd/h9/rootfs.ubi
tar: invalid tar magic
invalid tar magic
Error flashing rootfs! System won't boot. Please flash backup! System will reboot in 60 seconds
root@zgemmah9s:~#


Re: Ofgwrite fails to create a SD card image #3 mihaip

  • Senior Member
  • 42 posts

0
Neutral

Posted 15 May 2023 - 12:24

This is happen on OATV 7.3 and OpenPLi 8.3 but in different ways !!!



Re: Ofgwrite fails to create a SD card image #4 mihaip

  • Senior Member
  • 42 posts

0
Neutral

Posted 16 May 2023 - 06:44

It was my mistake ! I've supposed that "ofgwrite" will create the

partitions ! this is false ! ofgwrite suppose the existence of the

two partitions ! So I've made a SD card like this :

 

- primary FAT partition

- primary EXT4 partition

 

But something was bad with the boot partition ! after ofgwrite

his type is undefined and become unusable ...

 

1-0-19-283-D-3-FB-1-C00000-0-0-0-2023051

 

ofgwrite -kmmcblk1p1 -rmmcblk1p2 /media/hdd/dreamone




Welcome to openATV for dreamone
openatv 7.3 dreamone


dreamone login: root
Password:
Last login: Tue May 16 05:11:59 CEST 2023 on pts/0
root@dreamone:~# ofgwrite -kmmcblk1p1 -rmmcblk1p2 /media/hdd/dreamone
mkdir: can't create directory '/newroot': File exists


ofgwrite Utility v4.6.5
Author: Betacentauri
Based upon: mtd-utils-native-1.5.1 and busybox 1.24.1
Use at your own risk! Make always a backup before use!
Don't use it if you use multiple ubi volumes in ubi layer!


Flashing kernel with arg mmcblk1p1
Flashing rootfs with arg mmcblk1p2
Searching image files in /media/hdd/dreamone resolved to /media/hdd/dreamone
Found kernel file: /media/hdd/dreamone/kernel.bin
Found rootfs file: /media/hdd/dreamone/rootfs.tar.bz2
Found EXT4 rootfs
Found mounted /newroot
Found mounted /newroot
Found mountpoint for rootfs file: /media/hdd


Found /proc/mtd entries:
Device:   Size:     Erasesize:  Name:                   Image:
Using kernel mtd device:
Using rootfs mtd device:
Read /proc/cmdline
Kexec mode is:
Current rootfs is: /dev/mmcblk0p7
Current kernel is:
Current root sub dir is:


Execute: fdisk -l
Found valid GPT with protective MBR; using GPT


No matching partition names are found. Use current kernel and rootfs devices
Using /dev/mmcblk1p2 as rootfs device
Using /dev/mmcblk1p1 as kernel device
Flashing currently not running image


FBIO_SET_MANUAL_BLIT: Operation not permitted
Syncing filesystem
Mount rootfs
Mount to /oldroot_remount/ successful
Creating directory  recursively
Flash rootfs unpack
Delete rootfs: rm -r -f /oldroot_remount/
rm: can't remove '/oldroot_remount': Device or resource busy
can't remove '/oldroot_remount': Device or resource busy
Untar: tar xf /media/hdd/dreamone/rootfs.tar.bz2
Flashing kernel ...
Successfully flashed kernel!
Successfully flashed rootfs! Rebooting in 3 seconds...
FBIO_SET_MANUAL_BLIT: Operation not permitted
root@dreamone:~#

Edited by mihaip, 16 May 2023 - 06:46.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users