Announcement

Collapse
No announcement yet.

SquashFS tools in Cygwin terminal (for 2-system.img)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SquashFS tools in Cygwin terminal (for 2-system.img)

    *EDIT. See other messages under this one...

    After reading through messages on page 14 and page 15 of Dashcamtalk, Q3H Allwinner thread, and reading through some messages here on goprawn, I think I've automated the unpacking of 2-system.img within Cygwin terminal (mintty), using @kizwan 's unsquashfs.exe 32bit from page15 of the Dashcamtalk thread . There is a windows cmd script to call cygwin mintty and in turn call a bash script to run unsquashfs.exe . I'm still working on the mksquashfs script.

    You will need Cygwin installed http://cygwin.com in C:\Cygwin or C:\Cygwin64
    download - https://www.dropbox.com/s/9ry56x23o1...prawn.zip?dl=0

    and setup your folder like the photo, and run unsquash-cygwin.cmd script.
    Could you please test it on your firmware?
    Feedback?
    Attached Files
    Last edited by petesimon; 04-02-2017, 03:37 AM.

  • #2
    Have you already finished the refex script for cygwin?

    Comment


    • petesimon
      petesimon commented
      Editing a comment
      not yet. i'm busy at my job. if you have time, please take that unfex cygwin script above, include a @kizwan copy of mksquashfs.exe and modify the script to the 'refex' operation.

  • #3
    here are unsquash and mksquash scripts for unpacking and packing 2-system.img file within a Cygwin terminal. You will need Cygwin https://cygwin.com installed in C:\Cygwin or C:\Cygwin64 . Run unsquash-cygwin.cmd script, modify system files in 'squashfs-root' folder, and later run mksquash-cygwin.cmd script to pack a new '2-system.img' partition file. (Note: the scripts are not 'refex' or 'unfex'.).

    download - https://www.dropbox.com/s/9ry56x23o1...prawn.zip?dl=0
    Attached Files
    Last edited by petesimon; 08-01-2017, 04:02 PM.

    Comment


    • #4
      howdy. I modified the cmd and sh scripts shown above to use a shell provided by busybox.exe , so Cygwin is not needed. Run unsquash.cmd and later run mksquash.cmd. I don't have time to fully test whether or not a boot-loop would happen. Please test this and let me know how it goes.

      download - https://www.dropbox.com/s/jwrifes3nb...prawn.zip?dl=0

      Comment

      Working...
      X