Jump to content


Photo

Amlogic Low level flashing tool


  • Please log in to reply
48 replies to this topic

#1 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 25 September 2012 - 03:26 AM

WARNING<>
I Haven't tested this on the ELF_II

Its here for the benefit of development, and those who really know what they're doing/don't care how much damage they do
This has come from the Fire 0921 beta firmware, it's designed for flashing multiple devices in one go.
It will also flash blindly (ie with no firmware on the device at all) !

http://dropcanvas.com/2o0zo


it doesn't have 64 bit drivers so I created some libusb ones (GPL ftw :D)


http://www.slatedroi...post__p__429899
on the Fire the update procedure fails...


but

but

it gives the option to lowlevel wipe the nand!
haven't tried this on the elf II yet to see if it gets rid of the badly recorded bad blocks.


EDIT

Instructions doc is in Chinese,
here's a vaguely translated version.

Attached Files


Edited by fards, 25 September 2012 - 03:34 AM.

GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#2 Zaza88

Zaza88

    Newbie

  • Jr. Member
  • Pip
  • 5 posts

Posted 25 September 2012 - 06:40 AM

WARNING<>
I Haven't tested this on the ELF_II

Its here for the benefit of development, and those who really know what they're doing/don't care how much damage they do
This has come from the Fire 0921 beta firmware, it's designed for flashing multiple devices in one go.
It will also flash blindly (ie with no firmware on the device at all) !

http://dropcanvas.com/2o0zo


it doesn't have 64 bit drivers so I created some libusb ones (GPL ftw :D)


http://www.slatedroi...post__p__429899
on the Fire the update procedure fails...


but

but

it gives the option to lowlevel wipe the nand!
haven't tried this on the elf II yet to see if it gets rid of the badly recorded bad blocks.


EDIT

Instructions doc is in Chinese,
here's a vaguely translated version.


What is exactly ????

Could be used to unlock the other two pixel shader on the GPU to obtain a Mali400-MP4 like Rockchip rk3066 or Exynos ????

#3 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 25 September 2012 - 07:38 AM

no

it is to flash firnware

like fastboot or nvflash
GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#4 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 26 September 2012 - 11:58 PM

WARNING<>
I Haven't tested this on the ELF_II

Its here for the benefit of development, and those who really know what they're doing/don't care how much damage they do
This has come from the Fire 0921 beta firmware, it's designed for flashing multiple devices in one go.
It will also flash blindly (ie with no firmware on the device at all) !

http://dropcanvas.com/2o0zo


it doesn't have 64 bit drivers so I created some libusb ones (GPL ftw :D)


http://www.slatedroi...post__p__429899
on the Fire the update procedure fails...


but

but

it gives the option to lowlevel wipe the nand!
haven't tried this on the elf II yet to see if it gets rid of the badly recorded bad blocks.


EDIT

Instructions doc is in Chinese,
here's a vaguely translated version.


Very Interesting.....but where do the files come from mentioned in the instructions? i.e. usb_spl.bin and config_progress.xml? If these are a part of the Fire's update package and will they be safe to use with the Elf II?

Also, how do you get out of 'M3-Chip' mode?....I can't seem to get back to normal mode.....
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#5 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 27 September 2012 - 07:58 AM

Right, as my Elf II has bad NAND, I decided to experiment with this. Very interesting! Hope some of this info helps...

It took some time to get into the USB flashing mode but in the end I got there by pressing Power, Vol- and Home (while tab was on and plugged into USB). You will see the tab power down, ut you won't hear the device unloading in windows - when that happens, press those keys again and screen will stay dark but windows will identify a new device =- M3-Chip' which you can install the drivers for. I have had my pad identifying as 'M6-Chip' before so not sure what difference is - I guess M3 is the chip that boots the system?

You have to download the Fire ROM to get the usb burning files like config_progress.xml, usb_spl.bin etc and create a zip file for updating - all fine - I just removed the Fire Rom and Patch.zip files and replaces them with Ainol 0717 Firmware files, which you have to change the name on to update_qimei.zip. Patch.zip is fine (or you can edit the xml file)

I first tried to erase the NAND as thats what I need with all my bad blocks - Success! It got to 100%! I clicked stop and tried to reboot, but the tab is stuck in the M3-Chip mode - anyone got any ideas?

As I could not get out of M3-Chip mode, I decided to try burning the ROM. I got to step 20 where it says 'update_qimei.zip:bad' here the output from the cmd window:

"busy"
20 / 24
"failed(update:update_qimei.zip):bad"
disk path: "H:"
"failed ,current step is 20 "
---------call System Rescan------------
---------call System Rescan finished----
disk path: "H:"
disk path: "H:"
disk path: "H:"
2 exit

Again I am with a tab that I can't get out of M3-Chip' mode. I suspect there are some fire specific things in the AML firmware that might be making it fail - but the NAND wipe should have worked? How do we get back to 'normal' mode???
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#6 nALLITeT

nALLITeT

    Member

  • Jr. Member
  • PipPip
  • 26 posts

Posted 27 September 2012 - 08:19 AM

Looks like that tool can pass commands to u-boot, thats great!
We can create a new key binding for launching kernel from sdcard with custom kernel commandline, wipe nand, format nand etc.
Also, it is possible to remove spl writing from config_progress.xml\write custom file.

Edited by nALLITeT, 27 September 2012 - 08:28 AM.


#7 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 27 September 2012 - 08:33 AM

you should be able to remove the usb cable and hold the power button down


but I'm a bit confused as to exactly what you've used from the fire?
there's nothing from the fire in there from what I can see unless you add them yourself..
the usb_spl may well be a very generic thing, the uboot-orig.bin should be one of the ones that come with a stock fW
but I can't see a lot of binary difference between the elf and fire versions of that one.


the usb_uImage isn't flashed till after the nand wipe using the normal xml and not at all using delete.

the config xml is in the main folder of the tool, as are some examples, including the config_progess_erase.xml

I Don't think you need to flash the uImage at all

EDIT

looking at it, I'd suggest if you really are stuck in M3 to:

change the config erase to

run :false for the usb_spl
and
run :true for the spl_orig

that makes sense to flash the original to me, but that erase should flash the correct old Spl anyway.

Edited by fards, 27 September 2012 - 08:43 AM.

GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#8 nALLITeT

nALLITeT

    Member

  • Jr. Member
  • PipPip
  • 26 posts

Posted 27 September 2012 - 08:46 AM

>update identify
[Port3]DeviceConnected: ╩º░▄
[Port3]DeviceConnected: ╩º░▄
AmlUsbIdentifyHost
IOCTL_IDENTIFY_HOST_Handler ret=-116
reset worldcup device
Reset WorldCup Device
ERROR: get info from device failed
aml_close_logfile
Also lots of errors while using, looks like elf2 can't work with it.
Tablet can't be bricked, if you use update.exe

#9 HerX

HerX

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 148 posts
  • LocationCPG, Croatia

Posted 27 September 2012 - 04:38 PM

Try http://www.slatedroi...post__p__391280 now that you wiped the nand :)

Edited by HerX, 27 September 2012 - 04:39 PM.


#10 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 28 September 2012 - 07:15 PM

Try http://www.slatedroi...post__p__391280 now that you wiped the nand :)


Unfortunately not - I still can't get the tab out of usb mode so can't boot from SD. I've had this problem before....anyone know for sure how to get out of this mode?
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#11 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 28 September 2012 - 08:22 PM

you should be able to remove the usb cable and hold the power button down


but I'm a bit confused as to exactly what you've used from the fire?
there's nothing from the fire in there from what I can see unless you add them yourself..
the usb_spl may well be a very generic thing, the uboot-orig.bin should be one of the ones that come with a stock fW
but I can't see a lot of binary difference between the elf and fire versions of that one.


the usb_uImage isn't flashed till after the nand wipe using the normal xml and not at all using delete.

the config xml is in the main folder of the tool, as are some examples, including the config_progess_erase.xml

I Don't think you need to flash the uImage at all

EDIT

looking at it, I'd suggest if you really are stuck in M3 to:

change the config erase to

run :false for the usb_spl
and
run :true for the spl_orig

that makes sense to flash the original to me, but that erase should flash the correct old Spl anyway.

You mean in the config_progess_erase.xml? I see the line with 'usb-spl' in it but not the 'spl_orig'?

Still stuck in usb mode....
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#12 HerX

HerX

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 148 posts
  • LocationCPG, Croatia

Posted 30 September 2012 - 04:55 AM

I could install it via sdcard when my tab was identifies as m6 chip, seems m3 is something completely different then.


Sent from my Desire HD using Tapatalk 2

#13 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 30 September 2012 - 05:39 AM

I could install it via sdcard when my tab was identifies as m6 chip, seems m3 is something completely different then.


Sent from my Desire HD using Tapatalk 2


Thanks - I will have a look at that and give it a try...would be nice to know the difference between M3 and M6 - in both modes the driver works and I can clear the nand...
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#14 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 30 September 2012 - 06:25 PM

Thanks HerX - It does work, but takes ages to get started...

My tab now works and I only have 1 bad block! NAND wipe did do some good!

Only problem now is that touch is a bit strange - when typing your sometimes get loads of (wrong) chars....sometimes you just get the wrong char. Icons are sometimes not working either - you have to play around a bit to hit the icons slightly off from their real position - anyone know why this might be happening in PA and CM10 (tho to a lesser extent.

Will update all when i've don't this again to see if I can do it better.
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#15 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 01 October 2012 - 01:47 AM

it may be the spl changed something in the touchscreen firm ware. And its now trying to recognize the fire screen dimensions (that's just a guess btw).
GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#16 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 01 October 2012 - 06:29 AM

it may be the spl changed something in the touchscreen firm ware. And its now trying to recognize the fire screen dimensions (that's just a guess btw).


Seems like that might be true, but I fail to see where the program is actually updating the AML firmware? In usb_spl.bin? Could I replace this file with an Elf II file and where might I find it? ....or is there nothing I can do about this?
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#17 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 01 October 2012 - 07:16 AM

Seems like that might be true, but I fail to see where the program is actually updating the AML firmware? In usb_spl.bin? Could I replace this file with an Elf II file and where might I find it? ....or is there nothing I can do about this?


at the moment I don't know, I presume you could use an elf_ii spl, but if it doesn't work it could mess it all up even more.

need to look at what the usb_spl has inside it
GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#18 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 01 October 2012 - 10:49 AM

at the moment I don't know, I presume you could use an elf_ii spl, but if it doesn't work it could mess it all up even more.

need to look at what the usb_spl has inside it


You may have spoken too soon! I tried to repeat the process - went into M3 mode and tried to clear the NAND - it failed at 88%. I ran the reset script which succeeded and went to use the recovery image as i'd done before.

No joy. My pc does not see any device at all and when I power on the tab, nothing hapens for about 30 seconds then I see the back light come on, and then dimm after a few secs. I have experienced this before as well, but as of yet I have still not managed to get the device in any state that I can do anything. I think I might have to run the battery down before I can get it working again.

On further research I decided to look at what's in the recovery image, and to my surprise - it does actually wipe the NAND! So anyone who wants to try reformatting the NAND should just follow the instructions in the UNBRICK thread in this forum (http://www.slatedroi...ing-the-elf-ii/)

LAstly, does anyone have Elf II version of spl?

EDIT: I would advise against using this on the Elf II for now. I think I really have bricked mine - it's still in the same state as above and not loading anything!

Edited by John Brighton, 01 October 2012 - 05:04 PM.

Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4

#19 fards

fards

    Advanced Member

  • FW Developer
  • PipPipPip
  • 1,014 posts

Posted 02 October 2012 - 09:31 AM

which unbrick are you using the one andrew posted or the multipart one ?
GIthub for source codes.

My github collection

If you feel like donating, then Thank You! but don't stress either way.

#20 John Brighton

John Brighton

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 58 posts
  • LocationBrighton, UK

Posted 02 October 2012 - 09:50 AM

which unbrick are you using the one andrew posted or the multipart one ?


The one Andrew posted - not seen anything about the multipart one.....
Ainol Novo 7 Elf II

HTC Sensation Insert Coin ICS + Sense 4