Author Topic: Safe zImage/rootfs replacement (solves freezing at Dingux logo)  (Read 14882 times)

borus (OP)

As many of you already know, and as Dingux troubleshooting guide says, it's important to put zImage and then rootfs files as the very first files on the card.

But what to do if you want to replace the kernel or rootfs image ?
You may just override these files with the new ones, but if you do so - there are chances you won't be able to boot Dingux again,
and you will have to backup files, reformat the card, and only then do the things in a clean way - copy zImage, rootfs and only then copy back all your files you backed up.

What a mess and what a waste of time !
Copying all these gigabytes from and back to card may take a whole hour !
Not to mention a frustration if you have to do that again and again.

Here comes the solution. Instead of all this "I like to move it move it", we will just move zImage and rootfs to the beginning of the disk:

1) download http://www.kessels.com/JkDefrag/JkDefrag-3.36.zip and extract jkdefrag.exe from it
2) find out the drive letter your Dingux card uses - let's say, H:
3) from the directory where you extracted jkdefrag.exe run the following command line (using the appropriate disk drive letter):

JkDefrag.exe -a 5 H:\zImage H:\rootfs

Now put your card back into Dingoo and/or reset it - it should pass the Dingux logo screen and boot successfully.
 
Some technical  info:

- There are people that don't experience this "stuck at Dingux logo" behavior, and I believe it's connected with the size of the card they are using.
With my 8G card I cannot boot every time I replace zImage.

- I used WinHex to see what happens when you replace or add new files.
I erase a number of files sitting at the beginning of the disk, then copy new file into it and - voila - it doesn't reuse the just freed clusters - but puts the new file somewhere else.
« Last Edit: December 21, 2010, 08:05:52 am by borus »

eule

  • * Former Staff
  • e
  • Posts: 889
Re: Safe zImage/rootf replacement (solves freeze at Dingux logo)
« Reply #1 on: August 28, 2010, 11:17:23 pm »
Awesome tip, will come in handy for sure when the next kernel arrives.  ;D
Happens on my 8GB too, didnīt on my 2GB... Now imagine you only had USB 1.1 (like the ancient laptop i use often) :'(
« Last Edit: August 28, 2010, 11:19:29 pm by eule »

SiENcE

  • **
  • Posts: 653
    • Crank Gaming (Dingux Apps)
Re: Safe zImage/rootf replacement (solves freeze at Dingux logo)
« Reply #2 on: August 30, 2010, 09:37:58 pm »
JkDefrag.exe -a 5 H:\zImage H:\rootfs

This works perfect! Thanks very much. You saved me a lot of time.

@omgmog: please make this thread sticky.
« Last Edit: August 30, 2010, 09:39:41 pm by SiENcE »

omgmog

  • * Administrator
  • Doesn't sleep.
  • Posts: 710
    • omgmog.net
Re: Safe zImage/rootf replacement (solves freeze at Dingux logo)
« Reply #3 on: August 31, 2010, 09:42:45 am »
Great tip!

@omgmog: please make this thread sticky.

zear beat me to it :p

mth

  • *
  • Posts: 297
Re: Safe zImage/rootf replacement (solves freeze at Dingux logo)
« Reply #4 on: August 31, 2010, 06:08:18 pm »
It's good to have a reliable workaround for this, but the question remains why booting fails with large SD cards in some situations. It might be a bug in u-boot. Is there anyone who would like to investigate this?

mehp

  • Guest
Re: Safe zImage/rootfs replacement (solves freeze at Dingux logo)
« Reply #5 on: September 17, 2010, 10:39:44 pm »
I did it exactly that and it still freezes (4GB card). And it even came randomly while I did nothing but play games.

borus (OP)

Re: Safe zImage/rootfs replacement (solves freeze at Dingux logo)
« Reply #6 on: December 21, 2010, 08:23:42 am »
I did it exactly that and it still freezes (4GB card). And it even came randomly while I did nothing but play games.

This tip is not intended for solving all freezing problems, but only for problem related to physical placement of zImage/rootfs files.
You may physically misplace (unintentionally) zImage/rootfs during intentional copying these files onto the card, or unintentional (e.g. when you unzip a "local pack" that contains these files).

criminalbyte

  • Guest
Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #7 on: December 28, 2010, 02:50:37 pm »
Brilliant, but how do you run a command line??, when i run the defrag it defrags c:, please help thanks

criminalbyte

  • Guest
Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #8 on: December 28, 2010, 02:55:35 pm »
How do you run a command line please?

qbertaddict

  • * Former Staff
  • The Doctor
  • Posts: 1184
    • about.me
Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #9 on: December 28, 2010, 03:58:21 pm »
what version of windows are you using?

yoshi41

  • *
  • Posts: 461
Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #10 on: January 01, 2011, 08:11:30 pm »
1) download http://www.kessels.com/JkDefrag/JkDefrag-3.36.zip and extract jkdefrag.exe from it
2) find out the drive letter your Dingux card uses - let's say, H:
3) from the directory where you extracted jkdefrag.exe run the following command line (using the appropriate disk drive letter):

JkDefrag.exe -a 5 H:\zImage H:\rootfs
I upgraded my 2 cards to the latest SiENcE kernel. The tool works great, thanks for the post :)

@criminalbyte: Open the command window (cmd.exe), change to the directory where jkdefrag is saved and run the command with the arguments above. Without command line arguments, the tool will defrag all your harddisks.
Emulator packs and fact sheets for Wiz, Caanoo, Dingoo and Pandora.

ZeroX

Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #11 on: April 26, 2011, 07:35:53 pm »
Thank you. I was about to reformat my card. This tool is wonderful.

iamkenIT

  • *
  • Posts: 41
Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #12 on: September 28, 2011, 03:10:12 am »
I didn't have to do that.
Dingoo a320 + my modded VX747

AMD Athlon II X3 445 Rana 3.1GHz   
Kingston 4GB 240-Pin DDR3 1066MHz
Zotac GT440

artur7

Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #13 on: December 27, 2011, 09:10:07 pm »
I bought 4gb MicroSD card with MiniSD adapter. Proviously I own 512MB card, on which I installed Dingux.
I have transferred all files from 512mb card to the new one, but now when I boot Dingux, it freezes and gives last message : "FATAL:cannot mount /dev/..... ; Kernel panic - not syncing:  attempted to kill init!"
After that, Dingoo is frozen and only reset button wakes it up. I tried to run this application a few times, but still the same effect. Freeze.
What to do?

zear

  • * Moderator
  • Posts: 2378
Re: Safe zImage/rootfs replacement (solves freezing at Dingux logo)
« Reply #14 on: December 27, 2011, 09:58:02 pm »
Try OpenDingux: http://www.treewalker.org/opendingux/
The problem you have looks like a bug in legacy Dingux that was fixed in OpenDingux.

 

Post a new topic