Author Topic: Dingoo A-380 Custom Firmware V2.11.09 "RetroDD"  (Read 245508 times)

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #520 on: April 27, 2013, 09:39:10 am »
i think wireless receiver is completely separate frm the kernel and FW... so it cant be fixed.. right?

I think they can be fixed and should be fixed before we make new CFW. I don't see the point in making a new CFW to fix the buttons on the console and move it to the wreless controllers.

I need to know how to compile the kernel and make the uImage. I also need to know where to change the buttons. With that information it should be possible for me to fix it and make new CFW very soon.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

dmitry_smagin

  • Posts: 423
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #521 on: April 27, 2013, 12:27:44 pm »
Try this one: http://www.sendspace.com/file/1pm3pf

How to compile (assume you're on linux machine and git and mkimage are installed)
git https://github.com/carlos-wong/a380_kernel.git
cd a380_kernel
export ARCH=mips
export CROSS_COMPILE=/opt/a380/usr/bin/mipsel-linux-uclibc- (or whatever path to your mips toolchain)
make a380_defconfig
make uImage

That's it

The file you need to fix is located:
drivers/input/keyboard/jz_gpio_keys.c
« Last Edit: April 27, 2013, 03:40:50 pm by d_smagin »
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #522 on: April 27, 2013, 03:54:01 pm »
Try this one: http://www.sendspace.com/file/1pm3pf

How to compile (assume you're on linux machine and git and mkimage are installed)
git https://github.com/carlos-wong/a380_kernel.git
cd a380_kernel
export ARCH=mips
export CROSS_COMPILE=/opt/a380/usr/bin/mipsel-linux-uclibc- (or whatever path to your mips toolchain)
make a380_defconfig
make uImage

That's it

The file you need to fix is located:
drivers/input/keyboard/jz_gpio_keys.c

Thanks. I'm going to give it a try.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #523 on: April 27, 2013, 05:32:32 pm »
Try this one: http://www.sendspace.com/file/1pm3pf

Not good. The X button and maybe also the Y button didn't work.
The buttons on the wireless controller didn't work.
 
Quote
How to compile (assume you're on linux machine and git and mkimage are installed)
git https://github.com/carlos-wong/a380_kernel.git
cd a380_kernel
export ARCH=mips
export CROSS_COMPILE=/opt/a380/usr/bin/mipsel-linux-uclibc- (or whatever path to your mips toolchain)
make a380_defconfig
make uImage

That's it

The file you need to fix is located:
drivers/input/keyboard/jz_gpio_keys.c

Compiling the uImage works fine on my Linux computer.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

dmitry_smagin

  • Posts: 423
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #524 on: April 27, 2013, 06:23:46 pm »
Damn, I messed up, sorry.
This variant should be fine: http://www.sendspace.com/file/ekbpfu

drivers/input/keyboard/jz_gpio_keys.c, line 75
Code: [Select]
#ifdef CONFIG_JZ4750D_L009
{ .gpio = (32*4+0)/*GPE0*/, .actlow = 1, .ncode = KEY_UP, .scode = KEY_VOLUMEUP, .sysrq = 's' }, /* D-pad up */
{ .gpio = (32*4+1)/*GPE1*/, .actlow = 1, .ncode = KEY_DOWN, .scode = KEY_VOLUMEDOWN, .sysrq = 'u' }, /* D-pad down */
{ .gpio = (32*4+2)/*GPE2*/, .actlow = 1, .ncode = KEY_LEFT, .scode = KEY_BRIGHTNESSDOWN, .sysrq = 'e' }, /* D-pad left */
{ .gpio = (32*4+3)/*GPE3*/, .actlow = 1, .ncode = KEY_RIGHT, .scode = KEY_BRIGHTNESSUP, .sysrq = 'i' }, /* D-pad right */
{ .gpio = (32*2+31)/*GPC31*/, .actlow = 1, .ncode = KEY_LEFTCTRL, }, /* A button */
{ .gpio = (32*3+16)/*GPE11*/, .actlow = 1, .ncode = KEY_LEFTALT, }, /* B button */
{ .gpio = (32*3+17)/*GPD16*/, .actlow = 1, .ncode = KEY_SPACE, }, /* X button */
{ .gpio = (32*4+11)/*GPD17*/, .actlow = 1, .ncode = KEY_LEFTSHIFT, }, /* Y button */
{ .gpio = (32*4+10) /*GPE7*/, .actlow = 1, .ncode = KEY_TAB, .scode = KEY_EXIT }, /* Left shoulder button */
{ .gpio = (32*4+7)/*GPE10*/, .actlow = 1, .ncode = KEY_BACKSPACE , }, /* Right shoulder button */
{ .gpio = (32*3+21)/*GPD21*/, .actlow = 1, .ncode = KEY_ENTER, }, /* START button(SYSRQ) */
{ .gpio = (32*4+8)/*GPE8*/, .actlow = 1, .ncode = KEY_ESC, .scode = KEY_MENU, .sysrq = 'b' }, /* SELECT button */
// { .gpio = (32*3+18)/*GPD18*/, .actlow = 1, .ncode = KEY_PAUSE, }, /* HOLD */
I changed those weird (32*x + y) constants, they refer to gpio pin, which the key is attached to.

drivers/input/keyboard/l009_gamepad.c, line 53:
Code: [Select]
unsigned int jz_button[] =
{
(32 * 4 + 0), // UP        0
(32 * 4 + 1),   // DOWN      1
(32 * 4 + 2),   // LEFT      2
(32 * 4 + 3),   // RIGHT     3
(32 * 2 + 31),  // A         4
(32 * 3 + 16),  // B         5
(32 * 3 + 17),  // X         6
(32 * 4 + 11),  // Y         7
(32 * 4 + 10),   // L         8
(32 * 4 + 7),  // R         9
(32 * 3 + 21),  // START     10
(32 * 4 + 8),   // SELECT    11
//(32 * 3 + 18),  // HOLD      12
(125)           // POWER     13
};
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #525 on: April 27, 2013, 06:40:24 pm »
I'm going to change the code and compile the uImage.

It's going to take some time to test it. I'm rebuilding the CFW on my 32GB MicroSD card and load the data back on it. It takes a very looooooooong time.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

dmitry_smagin

  • Posts: 423
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #526 on: April 27, 2013, 07:37:40 pm »
Note that I posted already changed code here that supposedly will work, the original code you could see in git.
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #527 on: April 27, 2013, 09:05:45 pm »
Well...

I can say that the button problem is fixed for both the console and the wireless controllers.  ;D

I've changed the code and compiled the uImage. The one that I've compiled is smaller in file size but that's the one I've used to replace the uImage and test the buttons.  ???


There's only one problem. The Dingoo doesn't connect to the computer anymore. I think this is because of the new module files. This happened also when I've tried the rootfs from the Dingoo A-320e on the Dingoo A-380. The module files were different and using the files from the Dingoo A-380 fixed it.

I'm going to replace them again with the original files to try it out.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

dmitry_smagin

  • Posts: 423
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #528 on: April 27, 2013, 09:23:52 pm »
Alien,
after 'make a380_defconfig' do 'make', this will compile kernel as vmlinux and will compile .ko modules as well. Then do 'make uImage' to obtain uImage.
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #529 on: April 27, 2013, 09:29:00 pm »
I'm going to try that because going back to the original files didn't fix it.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #530 on: April 27, 2013, 10:01:29 pm »
Fixed.

I think that after some more testing we're going to be ready to make new CFW.  :)
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

dmitry_smagin

  • Posts: 423
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #531 on: April 27, 2013, 10:18:29 pm »
Ok, good.

Add me to the 'special thanks' list, man. ;D
GCW-Zero prototype, Dingoo a320, Ritmix rzx-50, Dingoo a380, Xperia Play

Santo

  • Posts: 302
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #532 on: April 28, 2013, 09:05:00 am »
great :o

this is what happens when two legends work together.. ;D

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.07.06
« Reply #533 on: April 28, 2013, 08:17:47 pm »
The new CFW is ready.  :)

I only need confirmation form one of the CFW team guys that it's good to make available for download.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.08.03
« Reply #534 on: April 28, 2013, 09:40:17 pm »
Dingoo A-380 render by Santo



The new Dingoo A-380 CFW V2.08.03 is available for download.


With the release of the source code we could finally fix the wrong L-R and X-Y buttons. The kernel in the firmware is replaced to make that possible. The module files are replaced and the cfgfs partition is formatted from EXT2 to EXT3.


Note: The L and R button function is now reversed in DMenu. A link to a new tool to write the CFW image on a MicroSD card is added in the Tools section in the OP.


Thanks to d_smagin for his help. You now made it in the Special Thanks section in the OP.  ;D
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Santo

  • Posts: 302
Re: Dingoo A-380 Custom Firmware V2.08.03
« Reply #535 on: April 29, 2013, 07:35:07 am »
added to my dingoo a380 CFW collection 8)

he he :)

Alien, any changes in the emulator pack?
« Last Edit: April 29, 2013, 07:40:32 am by Santo »

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.08.03
« Reply #536 on: April 29, 2013, 01:40:27 pm »
No changes for the emulator pack except renaming to match with the new CFW version.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

AtariHERO

  • Posts: 351
Re: Dingoo A-380 Custom Firmware V2.08.03
« Reply #537 on: April 30, 2013, 02:15:52 pm »
Auto update fix would be sweet ...

Mori76

  • Posts: 2
Re: Dingoo A-380 Custom Firmware V2.08.03
« Reply #538 on: May 02, 2013, 10:52:52 am »
I can't download the emulator pack.. Sometimes it says that the file isn't available and other times I just get a 44 Mb file that makes absolutely no sense to me.. Sorry for being a noob about this. Have never dealt with Putlocker before.

Alien Grey (OP)

  • Posts: 1414
Re: Dingoo A-380 Custom Firmware V2.08.03
« Reply #539 on: May 02, 2013, 11:50:13 am »
I can't download the emulator pack.. Sometimes it says that the file isn't available and other times I just get a 44 Mb file that makes absolutely no sense to me.. Sorry for being a noob about this. Have never dealt with Putlocker before.

You've got to choose Continue as Free User than Click to Download in the next page that opens.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

 

Post a new topic