Welcome, Guest. Please login or register.
Pages: [1] 2
  Print  
Author Topic: zImage with power-off function enabled  (Read 6139 times)
vimrc
*

Karma: 8
Offline Offline

Posts: 66



« on: October 30, 2009, 11:41:22 PM »

Hi, guys,

Now I post the modified zImage files again...  All the following zImage files have been patched to enable the power off function. Additionally, If you want to use Mplayer to player videos, please download the zImage with IPU enabled. Don't forget to change the filename to zImage. It should be noted the modified zImage is unofficial, you use it at your own risk!

The maximum attachment size is limited, so I put them in my google page:

For 9331:

http://bossninja.googlepages.com/zImage_9331.rar          (IPU disabled)
http://bossninja.googlepages.com/zImage_9331_ipu.rar    (IPU enabled)

For 9325:

http://bossninja.googlepages.com/zImage_9325.rar          (IPU disabled)
http://bossninja.googlepages.com/zImage_9325_ipu.rar    (IPU enabled)

======================================================================================
I also release the modified zImage in which the MMC interface mode is set to 4-bit.
(Faster R/W speed, but more probabilities to corrupt your SD card. In fact, it works well in my dingoo so I'm using this one. Freaks only!! )

For 9331:

http://bossninja.googlepages.com/zImage4bit_noipu_9331.rar  (IPU disabled)
http://bossninja.googlepages.com/zImage4bit_ipu_9331.rar      (IPU enabled)

For 9325:

http://bossninja.googlepages.com/zImage4bit_noipu_9325.rar  (IPU disabled)
http://bossninja.googlepages.com/zImage4bit_ipu_9325.rar      (IPU enabled)
=====================================================================================
(Optional)
I also wrote two very simple scripts to enable or disable the IPU for dmenu so you can switch the two modes without a computer. (Well, I concede this way is a little stupid, but it's safe and effective before the kexec is activated.)
 
1. Rename the two zImage files corresponding to your type of LCD to "zImage_ipu" and "zImage_noipu" respectively.
2. Put the "zImage_ipu" and "zImage_noipu" to /local/. (Please do not remove the old zImage file in your SD card!!)
3. Extract the compressed file and copy disableipu.sh and enableipu.sh to /local/dmenu/scripts.
http://bossninja.googlepages.com/zImage_switch_scripts.rar
4. Add the following entries in dmenu. (For example: menu_system.cfg)

Code:
MenuItem EnableIPU                          
{                                            
Icon = "res/system/terminal.png"          
Name = " EnableIPU"                      
Executable = "sh ./enableipu.sh"            
WorkDir = "/boot/local/dmenu/scripts"      
}                                          
                                              
MenuItem DisableIPU                        
{                                            
Icon = "res/system/terminal.png"          
Name = " DisableIPU"                        
Executable = "sh ./disableipu.sh"            
WorkDir = "/boot/local/dmenu/scripts"        
}

If you want to disable the IPU, just select the DisableIPU in dmenu and Dingux will reboot automatically. To enable IPU is the same story.

Enjoy it!
« Last Edit: October 31, 2009, 03:49:59 PM by codiak » Logged
eule
**

Karma: 24
Offline Offline

Posts: 684


Die Eule macht w00t


« Reply #1 on: November 01, 2009, 04:37:26 PM »

Might be a noobish question, but what do i have to do to switch off the Dingoo, after i installed this image (the 4bit one btw ^^ )?  Cheesy
edit: Nevermind, found it myself, had to add this to dmenu:

Quote
MenuItem Poweroff
{
Icon = "res/system/reboot.png"
Name = " Poweroff"
Executable = "poweroff"
WorkDir = "/"
}
note to myself: first seek, then ask Grin
« Last Edit: November 01, 2009, 04:42:29 PM by eule » Logged
Kalisiin
* *

Karma: 0
Offline Offline

Posts: 0


« Reply #2 on: November 01, 2009, 05:18:00 PM »

Might be a noobish question, but what do i have to do to switch off the Dingoo, after i installed this image (the 4bit one btw ^^ )?  Cheesy
edit: Nevermind, found it myself, had to add this to dmenu:

Quote
MenuItem Poweroff
{
Icon = "res/system/reboot.png"
Name = " Poweroff"
Executable = "poweroff"
WorkDir = "/"
}

Note to myself: first seek, then ask Grin
Humm, I didn't add anything to my dmanu, and now the power-off switch works, You just have to hold it a while, and it re-boots to native, from which you can turn off then.

I guess adding THIS would give you a place to where you wouldn't even need the switch, you'd just have a menu option??

Do I have that right?
« Last Edit: November 03, 2009, 10:32:18 PM by Kalisiin » Logged

If all dogs do not go to Heaven, then, when I die, I want to go where THEY went.

They say you can't take it with you, but, if I can't bring my Dingoo, I don't wanna go.
eule
**

Karma: 24
Offline Offline

Posts: 684


Die Eule macht w00t


« Reply #3 on: November 01, 2009, 05:47:22 PM »

Actually, after downloading the right zImage and adding that piece of code to dmenu, you have a Power Off button in Dmenu that actually works! I.e.: It switches off the Dingoo, just like a Linux PC, very nice!  Cheesy
The Reboot button should be in Dmenu already, under System, if you use toddlers local pack.
« Last Edit: November 01, 2009, 05:49:11 PM by eule » Logged
Kalisiin
* *

Karma: 0
Offline Offline

Posts: 0


« Reply #4 on: November 02, 2009, 02:17:16 AM »

I dunno which one I do use...mine is local 0.1.0 whichever one that is.

I'll look for it.

Anyway, I got an idea how to go about this, now...one way or another.

EDIT: Yeah, I got it right.
Nice. Now power-off is an actual menu item.

<-----wonders if the old "re-boot" command, which she replaced...would have re-booted into native, or Dingux.  If a re-boot into native, from Dingux...may re-add the re-boot command, so I have a choice to power-off or re-boot into native.

Be nice if there's a re-boot in native, as well...so that one could then choose to power-off...or boot into Dingux...from native.
« Last Edit: November 02, 2009, 05:54:12 AM by Kalisiin » Logged

If all dogs do not go to Heaven, then, when I die, I want to go where THEY went.

They say you can't take it with you, but, if I can't bring my Dingoo, I don't wanna go.
codiak
Aufpasser
Moderator
*

Karma: 23
Offline Offline

Posts: 152


falling from the sky


« Reply #5 on: November 02, 2009, 09:49:13 AM »

Reboot is reboot. You reboot the hole dingoo and you can press select during boot again to boot dingux or leave it and boot the native firmware.
I have both menu items. One with a red button for shutdown and a yellow one for reboot.
« Last Edit: November 02, 2009, 10:39:29 AM by codiak » Logged

Kalisiin
* *

Karma: 0
Offline Offline

Posts: 0


« Reply #6 on: November 02, 2009, 11:02:23 AM »

Reboot is reboot. You reboot the hole dingoo and you can press select during boot again to boot dingux or leave it and boot the native firmware.
I have both menu items. One with a red button for shutdown and a yellow one for reboot.

Nice.
Could you post your .png file for the Yellow button?
I'd like to set mine up the same way.
Logged

If all dogs do not go to Heaven, then, when I die, I want to go where THEY went.

They say you can't take it with you, but, if I can't bring my Dingoo, I don't wanna go.
codiak
Aufpasser
Moderator
*

Karma: 23
Offline Offline

Posts: 152


falling from the sky


« Reply #7 on: November 02, 2009, 07:10:03 PM »

Reboot:


Shutdown:


My config looks like this:
Code:
MenuItem Reboot
{
Icon = "res/system/reboot.png"
Name = " Reboot"
Executable = "reboot"
WorkDir = "/"
}

MenuItem Poweroff
{
Icon = "res/system/shutdown.png"
Name = " Shutdown"
Executable = "poweroff"
WorkDir = "/"
}
Logged

Kalisiin
* *

Karma: 0
Offline Offline

Posts: 0


« Reply #8 on: November 02, 2009, 10:18:41 PM »

You have definitely helped, and I most certainly gave you karma.  Thanks!
Logged

If all dogs do not go to Heaven, then, when I die, I want to go where THEY went.

They say you can't take it with you, but, if I can't bring my Dingoo, I don't wanna go.
demon cleaner
*

Karma: 5
Offline Offline

Posts: 123



WWW
« Reply #9 on: November 03, 2009, 06:36:10 PM »

Nice feature, works like a charm Cheesy
Logged
QBert
*

Karma: 36
Offline Offline

Posts: 250



« Reply #10 on: November 03, 2009, 09:41:52 PM »

I also release the modified zImage in which the MMC interface mode is set to 4-bit.
(Faster R/W speed, but more probabilities to corrupt your SD card. In fact, it works well in my dingoo so I'm using this one. Freaks only!! )

Is there an application or method to test for SD corruption when using this kernel?
Logged
codiak
Aufpasser
Moderator
*

Karma: 23
Offline Offline

Posts: 152


falling from the sky


« Reply #11 on: November 04, 2009, 09:04:13 AM »

If your dingux wont boot, then the fs is corrupt Smiley
Logged

schanall
*

Karma: 5
Offline Offline

Posts: 98


« Reply #12 on: November 04, 2009, 12:16:36 PM »

Thanks vimrc! Great job, I will try the "freaks only" zImage Cheesy
Logged
Kalisiin
* *

Karma: 0
Offline Offline

Posts: 0


« Reply #13 on: November 04, 2009, 05:21:31 PM »

If your dingux wont boot, then the fs is corrupt Smiley

FS = File System??
Seriously...sorry to ask such a noobish question, but I honestly do not know what you mean by "fs"
Logged

If all dogs do not go to Heaven, then, when I die, I want to go where THEY went.

They say you can't take it with you, but, if I can't bring my Dingoo, I don't wanna go.
schanall
*

Karma: 5
Offline Offline

Posts: 98


« Reply #14 on: November 04, 2009, 05:52:21 PM »

Yes, I think so.

@QBert:If you are using Linux like me, you can always do a fsck for eleminate inconsistencies on the sd. (man fsck should do)
Logged
Pages: [1] 2
  Print  
 
Jump to: