x88 pro x3 encrypted, firmware for USB_Burning_tool - Android TV General

This firmware is for encrypted(bootloader) X88 Pro X3 (s905x3).
Firmware for AML USB Burning Tool(2.2) tested on Windows 10.
Manufacturer for this box is not made firmware version for USB burning tool.
This image firmware is tested on Win/Ubuntu USB Burning Tool.
STOCK Firmware image is without any modification i made just version for AML USB_Burning_Tool.
VORTEX firmware image is without any modification.
SLIMBOX firmware image (Original for uncrypted/unlocked x88_pro_x3 ), added app FD655 form Vortex image to fix problem with VFD.
This firmware image without any guarantee from me use at your own risk.
To fix problem with usb version firmware for encrypted x88 pro x3 (s905x3) i need uart/ttl/rs232 log from u-boot.
If somebody can dump bootloader from x88 pro x3 with "ulValue = 0x20444142".
I got one question for all who try flash and got error : do you ever flash any firmware on your box if answer is yes i need more info of that firmware image and maybe i can fix problem.
Important thing of this firmware and box.
I got x88 pro x3 and my version is with encrypted bootloader(u-boot),boot.img(kernel) and dtb.
On my box u-boot log is:
###################################################################################
SM1:BL:511f6b:81ca2f;FEAT:B2F831B0:202B2060;POC:F;RCY:0;EMMC:0;READ:0;0.0;0.0;CHK:0;
bl2_stage_init 0x01 |-----------------> MY board cpu id B2F831B0
bl2_stage_init 0x81
hw id: 0x0001 - pwm id 0x00
bl2_stage_init 0xc0
bl2_stage_init 0x02
L0:0000007f
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:202b2060
B1:b2f831b0
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:57:33, May 22 2019 ###############
NOTICE: BL31: G12A secure boot! <-----------------------------------> Encrypted board
NOTICE: BL31: BL33 decompress pass ###############
ERROR: Error initializing runtime service opteed_fast
########################################################
and usb_burning_tool log
Not working board log
[20:21:29 259][HUB4-5][Inf]--Upload encrypt at 0xff800228 #############
[20:21:29 259][HUB4-5][Inf]--ulValue = 0x20444142 <-----------------> CPU ID NOT work
#############
Working board
[17:29:02 013][HUB2-10][Inf]--Upload encrypt at 0xff800228 #######
[17:29:02 013][HUB2-10][Inf]--ulValue = 0xb2f831b0 <-----------------> CPU ID WORK
[17:29:02 013][HUB2-10][Inf]--File change to DDR_ENC.USB ########
[17:29:02 013][HUB2-10][Inf]--Read encrypt value succeed
[17:29:02 013][HUB2-10][Inf]--Download DDR_ENC.USB,size: 65536!
[17:29:02 013][HUB2-10][Inf]--Transfer complete 65536
[17:29:02 013][HUB2-10][Inf]--Run at address 0xfffa0000
[17:29:02 013][HUB2-10][Inf]--RunInRam success
[17:29:02 231][HUB2-10][Inf]--0-0-1-8-0-1-0-0
[17:29:02 231][HUB2-10][Inf]--CheckFileRunState return 1-8
[17:29:02 231][HUB2-10][Inf]--0-0-1-8-0-1-0-0
[17:29:02 231][HUB2-10][Inf]--G12 init
[17:29:02 231][HUB2-10][Inf]--Get Encrpt ulValue = 0xb2f831b0
[17:29:02 231][HUB2-10][Inf]--Have Semaphore
[17:29:02 231][HUB2-10][Inf]--Download BL2
[17:29:02 231][HUB2-10]Aml_Libusb_bl2_boot2 start!
[17:29:02 231][HUB2-10]sequence= 0, datasize= 16384, fipOffset= 65536
[17:29:02 294][HUB2-10]sequence= 1, datasize= 49152, fipOffset= 393216
[17:29:02 310][HUB2-10]sequence= 2, datasize= 16384, fipOffset= 229376
[17:29:02 310][HUB2-10]sequence= 3, datasize= 49152, fipOffset= 81920
[17:29:02 341][HUB2-10]sequence= 4, datasize= 16384, fipOffset= 65536
[17:29:02 403][HUB2-10]sequence= 5, datasize= 49152, fipOffset= 393216
[17:29:02 419][HUB2-10]sequence= 6, datasize= 16384, fipOffset= 229376
[17:29:02 419][HUB2-10]sequence= 7, datasize= 49152, fipOffset= 180224
[17:29:02 497][HUB2-10]sequence= 8, datasize= 16384, fipOffset= 65536
[17:29:02 653][HUB2-10]sequence= 9, datasize= 1206272, fipOffset= 81920
[17:29:02 700]BL2 END, waiting TPL plug-in...
STOCK:
USB_BURNING_TOOL_2.2
27_06_2020
25.04_2020
VORTEX:
ATV_2.3.0
AOSP_2.3.0
ATV_2.3.0_Kodi_18.9_YTube_TV_2021
Removed old youtube app and added Kodi 18.9
P.S Turn off Google play auto update to prevent update to Kodi 19
SLIMBOX
15.3 02.07.2022
Download
Test on Win10
Test on Ubuntu

hi i have a x88 pro x3 4ram / 32rom with stock firm, but even though aida64 shows 4gram i suspect only real 2gram for the free space it shows and it only supports sm1_s905x3_2g_1gbit.dtb for coreelec / emuelec.
I was looking for a firmware change in slimbox and it seems unsupported, so I read your post with several adapted versions. I am not an expert in the field, I would like to change the stock rom that works really bad for me for a lighter one as a multimedia center. could you recommend me some in particular. thanks for all the work. greetings

AlienatedDiego said:
hi i have a x88 pro x3 4ram / 32rom with stock firm, but even though aida64 shows 4gram i suspect only real 2gram for the free space it shows and it only supports sm1_s905x3_2g_1gbit.dtb for coreelec / emuelec.
I was looking for a firmware change in slimbox and it seems unsupported, so I read your post with several adapted versions. I am not an expert in the field, I would like to change the stock rom that works really bad for me for a lighter one as a multimedia center. could you recommend me some in particular. thanks for all the work. greetings
Click to expand...
Click to collapse
Slimbox original version for x88 pro x3 is for unlocked box(bootloader) i made version for locked bootloader version and all my version is for locked box.
Here you can download USB_BURNING_TOOL_2.2 software for burning image on box and image and try.
Coreelec is light but big problem is youtube on all kodi based firmware.
Slimbox and Vortex firmware is lighter then stock firmware.
Have you tried flash any image to box?
Is it yours x88 box locked or unlocked?

Raxone said:
Slimbox original version for x88 pro x3 is for unlocked box(bootloader) i made version for locked bootloader version and all my version is for locked box.
Here you can download USB_BURNING_TOOL_2.2 software for burning image on box and image and try.
Coreelec is light but big problem is youtube on all kodi based firmware.
Slimbox and Vortex firmware is lighter then stock firmware.
Have you tried flash any image to box?
Is it yours x88 box locked or unlocked?
Click to expand...
Click to collapse
Thanks for answering, I guess it is unlocked because I have access to bootloader keeping reset at startup. Maybe that explains why I couldn't install any of your images with usb burning tool ([0x10103003] romcode / initialize ddr / download buffer / usb transfer error)
How do I check if it is encrypted or not? In any case, thanks for the info and for your time.

AlienatedDiego said:
Thanks for answering, I guess it is unlocked because I have access to bootloader keeping reset at startup. Maybe that explains why I couldn't install any of your images with usb burning tool ([0x10103003] romcode / initialize ddr / download buffer / usb transfer error)
How do I check if it is encrypted or not? In any case, thanks for the info and for your time.
Click to expand...
Click to collapse
Here is link for firmware from slimbox for unlocked x88.
Try this if work that firmware on your box is unlocked if not i need to see log from usb burning tool.
Log file is in Program Files (x86)/Amlogic/USB_Burning_Tool/log
Download

AlienatedDiego said:
Thanks for answering, I guess it is unlocked because I have access to bootloader keeping reset at startup. Maybe that explains why I couldn't install any of your images with usb burning tool ([0x10103003] romcode / initialize ddr / download buffer / usb transfer error)
How do I check if it is encrypted or not? In any case, thanks for the info and for your time.
Click to expand...
Click to collapse
Here is link for firmware from slimbox for unlocked x88.
Try this if work that firmware on your box is unlocked if not i need to see log from usb burning tool.
Log file is in Program Files (x86)/Amlogic/USB_Burning_Tool/log
Download

Thank you very much, unfortunately the unlocked version has not worked for me either, so I may be doing something wrong. I'll leave you the log in case you want to see it, but I really don't want you to waste any more time

AlienatedDiego said:
Thank you very much, unfortunately the unlocked version has not worked for me either, so I may be doing something wrong. I'll leave you the log in case you want to see it, but I really don't want you to waste any more time
Click to expand...
Click to collapse
Your box is unlocked version.I think problem is in usb cable or power from usb.
Try change usb cable or plug power adapter when you starting flash.
You use Usb Burning tool 2.1.9.0 try with version 2.2.0.0.

Raxone said:
Your box is unlocked version.I think problem is in usb cable or power from usb.
Try change usb cable or plug power adapter when you starting flash.
You use Usb Burning tool 2.1.9.0 try with version 2.2.0.0.
Click to expand...
Click to collapse
[20.05.21]
Fixed problem with ddr in usb burning tool.

Hello Raxone, I have a x88 pro x3 with 20200627 stock firmware. I'm interested for an ATV image. I've already tried to flash unencrypted slimbox 10.7 using burn card maker. When I tried to flash using the reset button in AV plug, the flashing did not proceed instead I got the x88 pro x3 logo and android logo alternatively. Since it did not go well, I assumed I've an encrypted box.
Also my x88 pro x3 is not detected in USB burning tool v2.2. I've used the same reset switch in AV plug method to connect the USB A cable into the x88 box from my PC. Do you have any suggestions?
Also is your encrypted vortex atv v2.3.0 flashable using burn card maker?

basiv said:
Hello Raxone, I have a x88 pro x3 with 20200627 stock firmware. I'm interested for an ATV image. I've already tried to flash unencrypted slimbox 10.7 using burn card maker. When I tried to flash using the reset button in AV plug, the flashing did not proceed instead I got the x88 pro x3 logo and android logo alternatively. Since it did not go well, I assumed I've an encrypted box.
Also my x88 pro x3 is not detected in USB burning tool v2.2. I've used the same reset switch in AV plug method to connect the USB A cable into the x88 box from my PC. Do you have any suggestions?
Also is your encrypted vortex atv v2.3.0 flashable using burn card maker?
Click to expand...
Click to collapse
Hello.
Usb burning tool must see box no matter is unencrypted or encrypted.
Check driver or usb cable sometime usb3 port doing problem try usb2 port if you got.
You must install driver for amlogic usb otg, what happens when install usb burning tool.
I don,t try burn from sd card any of this firmware i try sdcard burn these days.

To fix problem with usb version firmware for encrypted x88 pro x3 (s905x3) i need uart/ttl/rs232 log from u-boot.
If somebody can dump bootloader from x88 pro x3 with "ulValue = 0x20444142".
I got one question for all who try flash and got error : do you ever flash any firmware on your box if answer is yes i need more info of that firmware image and maybe i can fix problem.
Important thing of this firmware and box.
I got x88 pro x3 and my version is with encrypted bootloader(u-boot),boot.img(kernel) and dtb.
On my box u-boot log is:
###################################################################################
SM1:BL:511f6b:81ca2f;FEAT:B2F831B0:202B2060;POC:F;RCY:0;EMMC:0;READ:0;0.0;0.0;CHK:0;
bl2_stage_init 0x01 |-----------------> MY board cpu id B2F831B0
bl2_stage_init 0x81
hw id: 0x0001 - pwm id 0x00
bl2_stage_init 0xc0
bl2_stage_init 0x02
L0:0000007f
L1:00000703
L2:00008067
L3:15000020
S1:00000000
B2:202b2060
B1:b2f831b0
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:57:33, May 22 2019 ###############
NOTICE: BL31: G12A secure boot! <-----------------------------------> Encrypted board
NOTICE: BL31: BL33 decompress pass ###############
ERROR: Error initializing runtime service opteed_fast
########################################################
and usb_burning_tool log
Not working board log
[20:21:29 259][HUB4-5][Inf]--Upload encrypt at 0xff800228 #############
[20:21:29 259][HUB4-5][Inf]--ulValue = 0x20444142 <-----------------> CPU ID NOT work
#############
Working board
[17:29:02 013][HUB2-10][Inf]--Upload encrypt at 0xff800228 #######
[17:29:02 013][HUB2-10][Inf]--ulValue = 0xb2f831b0 <-----------------> CPU ID WORK
[17:29:02 013][HUB2-10][Inf]--File change to DDR_ENC.USB ########
[17:29:02 013][HUB2-10][Inf]--Read encrypt value succeed
[17:29:02 013][HUB2-10][Inf]--Download DDR_ENC.USB,size: 65536!
[17:29:02 013][HUB2-10][Inf]--Transfer complete 65536
[17:29:02 013][HUB2-10][Inf]--Run at address 0xfffa0000
[17:29:02 013][HUB2-10][Inf]--RunInRam success
[17:29:02 231][HUB2-10][Inf]--0-0-1-8-0-1-0-0
[17:29:02 231][HUB2-10][Inf]--CheckFileRunState return 1-8
[17:29:02 231][HUB2-10][Inf]--0-0-1-8-0-1-0-0
[17:29:02 231][HUB2-10][Inf]--G12 init
[17:29:02 231][HUB2-10][Inf]--Get Encrpt ulValue = 0xb2f831b0
[17:29:02 231][HUB2-10][Inf]--Have Semaphore
[17:29:02 231][HUB2-10][Inf]--Download BL2
[17:29:02 231][HUB2-10]Aml_Libusb_bl2_boot2 start!
[17:29:02 231][HUB2-10]sequence= 0, datasize= 16384, fipOffset= 65536
[17:29:02 294][HUB2-10]sequence= 1, datasize= 49152, fipOffset= 393216
[17:29:02 310][HUB2-10]sequence= 2, datasize= 16384, fipOffset= 229376
[17:29:02 310][HUB2-10]sequence= 3, datasize= 49152, fipOffset= 81920
[17:29:02 341][HUB2-10]sequence= 4, datasize= 16384, fipOffset= 65536
[17:29:02 403][HUB2-10]sequence= 5, datasize= 49152, fipOffset= 393216
[17:29:02 419][HUB2-10]sequence= 6, datasize= 16384, fipOffset= 229376
[17:29:02 419][HUB2-10]sequence= 7, datasize= 49152, fipOffset= 180224
[17:29:02 497][HUB2-10]sequence= 8, datasize= 16384, fipOffset= 65536
[17:29:02 653][HUB2-10]sequence= 9, datasize= 1206272, fipOffset= 81920
[17:29:02 700]BL2 END, waiting TPL plug-in...

Hi Raxone,
I have one encrypted x88 pro x3 (s905x3) box with ulValue = 0x20444142 and want to help you with a dump from bootloader but do not know how/what method to use to extract it from the box ...
It is OK to dump it with "cat" like this ?
cat /dev/block/bootloader > encrypted_x88proX3_0x20444142.bin
I do not have yet u-boot log because my UART/TTL is not yet connected to the box .... but thinking of opening it and hook it up just for this ...
Here is part of my usb_burning_tool log showing the ulValue:
[16:44:29 529][HUB3-1][Inf]-------------Download DDR.USB-----------
[16:44:29 529][HUB3-1][Inf]--3-2-0-0
[16:44:29 529][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:44:30 042][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:44:30 558][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:44:31 074][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:44:31 589][HUB3-1][Inf]--Write initial succeed
[16:44:31 589][HUB3-1][Inf]--Upload encrypt at 0xff800228
[16:44:31 589][HUB3-1][Inf]--ulValue = 0x20444142
[16:44:31 589][HUB3-1][Inf]--Read encrypt value succeed
[16:44:31 589][HUB3-1][Inf]--Download DDR.USB,size: 65536!
[16:44:31 589][HUB3-1][Err]--Download file failed, sequence 0

jaketri said:
Hi Raxone,
I have one encrypted x88 pro x3 (s905x3) box with ulValue = 0x20444142 and want to help you with a dump from bootloader but do not know how/what method to use to extract it from the box ...
It is OK to dump it with "cat" like this ?
cat /dev/block/bootloader > encrypted_x88proX3_0x20444142.bin
I do not have yet u-boot log because my UART/TTL is not yet connected to the box .... but thinking of opening it and hook it up just for this ...
Here is part of my usb_burning_tool log showing the ulValue:
[16:44:29 529][HUB3-1][Inf]-------------Download DDR.USB-----------
[16:44:29 529][HUB3-1][Inf]--3-2-0-0
[16:44:29 529][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:44:30 042][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:44:30 558][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:44:31 074][HUB3-1][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:44:31 589][HUB3-1][Inf]--Write initial succeed
[16:44:31 589][HUB3-1][Inf]--Upload encrypt at 0xff800228
[16:44:31 589][HUB3-1][Inf]--ulValue = 0x20444142
[16:44:31 589][HUB3-1][Inf]--Read encrypt value succeed
[16:44:31 589][HUB3-1][Inf]--Download DDR.USB,size: 65536!
[16:44:31 589][HUB3-1][Err]--Download file failed, sequence 0
Click to expand...
Click to collapse
Hi.
Try with this.
You need to edit StartDump.bat and put ip adress of your x88pro.
adb connect 192.168.1.108:5555 to adb connect your_ip_adress_of_x88pro:5555
If you start StartDump.bat you can dump all things like boot,bootloader,system,cache,dtb and .etc.
I recommand to you to dump all of your x88pro.
I need bootloader to try fix problem with usb_burnnig_tool but if you want you can send me boot.img and dtb.img.

I'm sorry if I'm noobing up the place, but I simply cannot figure out how to get this X88 Pro X3 box of mine flashed. I find different versions of ROMs out there, but so far attempting to flash by SD card has yielded no positive results. I'm guessing because it's encrypted, but I don't know. I don't understand where you're getting those logs from, and how you use them to detect if your device is encrypted. I also don't understand how you're connecting these boxes via OTG, since — at least on mine — there are only TYPE-A USB ports, and I've never seen a TYPE-A-to-TYPE-A OTG cable? I have an external drive with a TYPE-A-to-TYPE-A USB 3.0 cable, but using that cable doesn't work (as in Windows detects absolutely nothing upon insertion, and there's no reaction I can see from the box itself.
Perhaps my Googling skills are as limited as my understanding skills, but I also cannot find anything about such cables. If that's really the kind of cable I need, can I solder one of my own? Any links to guides?
Thanks

Daniel Smedegaard Buus said:
I'm sorry if I'm noobing up the place, but I simply cannot figure out how to get this X88 Pro X3 box of mine flashed. I find different versions of ROMs out there, but so far attempting to flash by SD card has yielded no positive results. I'm guessing because it's encrypted, but I don't know. I don't understand where you're getting those logs from, and how you use them to detect if your device is encrypted. I also don't understand how you're connecting these boxes via OTG, since — at least on mine — there are only TYPE-A USB ports, and I've never seen a TYPE-A-to-TYPE-A OTG cable? I have an external drive with a TYPE-A-to-TYPE-A USB 3.0 cable, but using that cable doesn't work (as in Windows detects absolutely nothing upon insertion, and there's no reaction I can see from the box itself.
Perhaps my Googling skills are as limited as my understanding skills, but I also cannot find anything about such cables. If that's really the kind of cable I need, can I solder one of my own? Any links to guides?
Thanks
Click to expand...
Click to collapse
Hello.
I use cable A to A usb 2.0 used for external usb/hdd .
Must use black usb(2.0) on x88pro what is OTG.
Problem is probably usb 3.0 what you use wire is connect diffrent.
Usb A-A 2.0 is connect wire to wire +5v to +5v,GND to GND D+ to D+ and D- to D-.
If you got old usb 2.0 cable you can just cat cable and connect wire to wire no need solder.
Almost all usb 2.0 cable use Red for +5v,Black GND,D+,D-(green,white) only thing what you must be careful about +5v and GND wire.
If not work tray exchange D+/D- wire connection.
+5v ------ +5V (Red)
GND -----GND(Black)
D+ ------ D+ (green or white)
D- -------D- (green or white).
Post above is script for dump all partition from x88prox3 .
I recommand to you to dump all parition of your x88pro.
If you dump successfully partition you can send me bootloader.img and i can tell you what version of x88pro you got,encrypted or not.

Thank you, Raxone, for replying
So, if I understand you correctly, if I simply take two identical USB 2.0 cables, cut the TYPE-B connectors off, and then connect every wire inside to the same color (e.g. red to red, black to black, white to white, and green to green), then I can use that cable as OTG cable?
I'm pretty sure I have a bunch of USB 2.0 cables lying around in the basement, I'll go have a look

He he Brilliant.
I found a couple (about 20) spare USB 2.0 cables, made a TYPE-A-to-TYPE-A one from two identical ones, red-to-red, black-to-black, white-to-white, and green-to-green.
The cable works as a connector for the HDD I mentioned before, so it seems it basically does the same as my USB 3.0 cable, only with four connectors instead of eight. And, more importantly, at least the connectors and plugs are working, that is if this is the correct cable connections for an OTG cable?
However, this didn't do anything for the Android box. When I connect it, absolutely nothing happens. No Windows ding, and nothing in AML Burn Tool. I've tried V2.1.7.3, V2.2.0, and V2.2.3.3, all installed with the drivers, but no donut. I tried both the USB 3 and USB 2 port on the box. I noticed that with the USB 2 cable, the device doesn't boot when plugged in via the USB 3 port, which it did with the USB 3 cable I tried to use to begin with. I assume because the computer notices that it's USB 2.0, so it stays within those specs and don't deliver enough juice for the box to boot.
I then noticed the mentioning of a hub in the AML Burn Tool instructions on the right of its screen, and I just tried using a powered USB 2.0 hub, but with the same lack of results, except that the box now boots when plugged into the hub (via either the USB 2.0 or 3.0 port on the box).
Am I missing something here? I feel like there's something I should do, just don't know what...
EDIT: I just noticed it actually does get enough juice to boot without the hub attached, still not appearing though. Also, I tried holding down the reset switch in the A/V hole while plugging it in, also without success.

I dumped again everything today and I got exactly same binaries!
Box is using stock rom as I was not able to burn vtx or sbx ....
This started with my attempt to burn vtx image and fail with following errors:
[16:49:24 125][HUB1-3][Inf]-------------Download DDR.USB-----------
[16:49:24 125][HUB1-3][Inf]--3-2-0-0
[16:49:24 125][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:49:24 640][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:49:25 145][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:49:25 665][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:49:26 172][HUB1-3][Inf]--Write initial succeed
[16:49:26 172][HUB1-3][Inf]--Upload encrypt at 0xff800228
[16:49:26 172][HUB1-3][Inf]--ulValue = 0x20444142
[16:49:26 172][HUB1-3][Inf]--Read encrypt value succeed
[16:49:26 172][HUB1-3][Inf]--Download DDR.USB,size: 65536!
[16:49:26 172][HUB1-3][Err]--Download file failed, sequence 0
[16:49:26 172][HUB1-3][Err]--usbWriteFile len=4096, ret=-5 error_msg=libusb0-dll:err [_usb_reap_async] reaping request failed, win error: A device attached to the system is not functioning.
[16:49:26 176][HUB1-3][Inf]--Failure : 1, FailureMax : 3
[16:49:36 702][HUB1-3][Err]--Download file failed, sequence 0
[16:49:36 702][HUB1-3][Err]--usbWriteFile len=4096, ret=-116 error_msg=libusb0-dll:err [_usb_reap_async] timeout error
[16:49:36 702][HUB1-3][Inf]--Failure : 2, FailureMax : 3
[16:49:47 210][HUB1-3][Err]--Download file failed, sequence 0
[16:49:47 210][HUB1-3][Err]--usbWriteFile len=4096, ret=-116 error_msg=libusb0-dll:err [_usb_reap_async] timeout error
[16:49:47 210][HUB1-3][Inf]--Failure : 3, FailureMax : 3
[16:49:47 222][HUB1-3][Err]--[0x10103003]Romcode/Initialize DDR/Download buffer/USB transfer error
[16:49:47 222][HUB1-3][Inf]--Close device handle 0x000004d8
This log above was from USB burning tool 2.1.8
Today I also tried to use different USB burning tool 2.2.3.3 were I get totaly different error:
[17:06:18 937][HUB1-3][Inf]-------------Download DDR.USB-----------
[17:06:18 937][HUB1-3][Inf]--3-2-0-0-1-0-0-15
[17:06:18 939][HUB1-3][Err]--[0x10102004]Romcode/Need PWD
[17:06:18 940][HUB1-3][Inf]--Close device handle 0x000004c8
I do not have the password.bin file so I guess no success for me with this box and have to stay with stock
Overall the X88 box behave strange with any USB burning tool version as it is detected after about 5 seconds of plugging the USB cable the the USB 2.0 port and only if I hold the reset switch pressed for the 5 seconds until box is detected.
BTW .... Both version of USB burning tool (2.1.8 and 2.2.3.3) are burning fine older box (A95X) from same system and using same usb cable (from an old USB external HDD). The old A95X box is detected immediately after I plug the USB cable not after ~5 seconds like the X88 box.

jaketri said:
I dumped again everything today and I got exactly same binaries!
Box is using stock rom as I was not able to burn vtx or sbx ....
This started with my attempt to burn vtx image and fail with following errors:
[16:49:24 125][HUB1-3][Inf]-------------Download DDR.USB-----------
[16:49:24 125][HUB1-3][Inf]--3-2-0-0
[16:49:24 125][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:49:24 640][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:49:25 145][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[16:49:25 665][HUB1-3][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[16:49:26 172][HUB1-3][Inf]--Write initial succeed
[16:49:26 172][HUB1-3][Inf]--Upload encrypt at 0xff800228
[16:49:26 172][HUB1-3][Inf]--ulValue = 0x20444142
[16:49:26 172][HUB1-3][Inf]--Read encrypt value succeed
[16:49:26 172][HUB1-3][Inf]--Download DDR.USB,size: 65536!
[16:49:26 172][HUB1-3][Err]--Download file failed, sequence 0
[16:49:26 172][HUB1-3][Err]--usbWriteFile len=4096, ret=-5 error_msg=libusb0-dll:err [_usb_reap_async] reaping request failed, win error: A device attached to the system is not functioning.
[16:49:26 176][HUB1-3][Inf]--Failure : 1, FailureMax : 3
[16:49:36 702][HUB1-3][Err]--Download file failed, sequence 0
[16:49:36 702][HUB1-3][Err]--usbWriteFile len=4096, ret=-116 error_msg=libusb0-dll:err [_usb_reap_async] timeout error
[16:49:36 702][HUB1-3][Inf]--Failure : 2, FailureMax : 3
[16:49:47 210][HUB1-3][Err]--Download file failed, sequence 0
[16:49:47 210][HUB1-3][Err]--usbWriteFile len=4096, ret=-116 error_msg=libusb0-dll:err [_usb_reap_async] timeout error
[16:49:47 210][HUB1-3][Inf]--Failure : 3, FailureMax : 3
[16:49:47 222][HUB1-3][Err]--[0x10103003]Romcode/Initialize DDR/Download buffer/USB transfer error
[16:49:47 222][HUB1-3][Inf]--Close device handle 0x000004d8
This log above was from USB burning tool 2.1.8
Today I also tried to use different USB burning tool 2.2.3.3 were I get totaly different error:
[17:06:18 937][HUB1-3][Inf]-------------Download DDR.USB-----------
[17:06:18 937][HUB1-3][Inf]--3-2-0-0-1-0-0-15
[17:06:18 939][HUB1-3][Err]--[0x10102004]Romcode/Need PWD
[17:06:18 940][HUB1-3][Inf]--Close device handle 0x000004c8
I do not have the password.bin file so I guess no success for me with this box and have to stay with stock
Overall the X88 box behave strange with any USB burning tool version as it is detected after about 5 seconds of plugging the USB cable the the USB 2.0 port and only if I hold the reset switch pressed for the 5 seconds until box is detected.
BTW .... Both version of USB burning tool (2.1.8 and 2.2.3.3) are burning fine older box (A95X) from same system and using same usb cable (from an old USB external HDD). The old A95X box is detected immediately after I plug the USB cable not after ~5 seconds like the X88 box.
Click to expand...
Click to collapse
Here is differences of your bootloader and any bootloader what i have and i see.
That bootloader is from firmware image 04.25.20 and after that is firmware 06.27.20.
Do you ever try to update your x88pro from android ota update becouse if i install 04.25.20 version on x88pro android try to update to version 06.27.20.
And differences from your bootloder is strange in first section just copy 0x202 and in bootloader.img and boot.img just added 0x0D to all file.
Everything is same just added 0x0D what's like transaction error when you dump bootloader.
I can make usb burn firmware with your bootloader.img,boot.img.

Related

JTAG + PXA025 + flashing

Hello,
I have bricked Typhoon MyGuide 5500 XL pocket. Even it is based on ASUS 620, according to the site:http://www.handhelds.org/moin/moin.cgi/MyPal620JTAG I wasn't able to flash it.
Here is snapshot from jtag:
jtag> detect
IR length: 5
Chain length: 1
Device Id: 01101001001001100100000000010011
Manufacturer: Intel
Part: PXA250
Stepping: PXA255A0
Filename: /usr/local/share/jtag/intel/pxa250/pxa250c0
jtag> print
No. Manufacturer Part Stepping Instruction
Register
---------------------------------------------------------------------------------------------
0 Intel PXA250 PXA255A0 BYPASS BR
Active bus:
*0: Intel PXA2x0 compatible bus driver via BSR (JTAG part No. 0)
start: 0x00000000, length: 0x04000000, data width: 32 bit, (Static ChipSelect 0)
start: 0x48000000, length: 0x04000000, data width: 32 bit, (Memory Mapped registers (Memory Ctl))
jtag> detectflash
jedec_detect: mid 4, did ea00
Flash not found!
In internet I found another guy who faced the same problem (mid 4, did ea00), so it might be that it is something Typhoon specific, because I checked/fixed five times my cable, trying to make it as short as possible, then changed all the possible LPT modes (SPP, EPP, etc), then tested it with XP/SP2+Cygwin and Linux (Fedora Core release 2 (Tettnang), kernel 2.6.5) separately. The same problems. The flash is not recognized.
Can I pass some commands using jtag to the processor and in such way to manipulate with flash? What kind of commands? Where I could read about them?
Can I change BOOT_SEL[0] value to 0, which is now 1? Will it help?
Or do you know some more hints to make jtag to recognize my flash (M-SYS DiskOnChip G3)?
Thank you

[Q] touch screen not responding only when sd card is present

Hi all,
I have a problem with my defy, whitout fall or update the touch screen stop responding.
After some resets & sbf flashing I've noticed that the touch screen is ok only when there is no sdcard.
I've tried over sdcards with no more success.
The sdcard is readable, I can access with adb.
Clockworkmod access the sdcard too.
With sdcard dmesg :
qtouch_force_reset: Forcing HW reset
Unable to get gpio pin num for touch_pwr_enq
touch_write: Error while trying to write 2 bytes
qtouch_set_addr: Can't send obp addr 0x 0
qtouch_process_info_block: Cannot read info object block
qtouch_ts_probe:Cannot read info block -121, checking for bootloader mode.
Without sdcard :
qtouch_force_reset: Forcing HW reset
Unable to get gpio pin num for touch_pwr_en
qtouch_process_info_block: Build version is 0x10
qtouch_process_info_block: Object 5 @ 0x00f2 (9) insts 1 rep_ids 0
qtouch_process_info_block: Object 6 @ 0x00fb (6) insts 1 rep_ids 1
qtouch_process_info_block: Object 38 @ 0x0101 (8) insts 1 rep_ids 0
(...)
Can it be a HW problem ?
What do you think I can do ?
Questions go in the Q&A section
CharlyBrok said:
Hi all,
I have a problem with my defy, whitout fall or update the touch screen stop responding.
After some resets & sbf flashing I've noticed that the touch screen is ok only when there is no sdcard.
I've tried over sdcards with no more success.
The sdcard is readable, I can access with adb.
Clockworkmod access the sdcard too.
With sdcard dmesg :
qtouch_force_reset: Forcing HW reset
Unable to get gpio pin num for touch_pwr_enq
touch_write: Error while trying to write 2 bytes
qtouch_set_addr: Can't send obp addr 0x 0
qtouch_process_info_block: Cannot read info object block
qtouch_ts_probe:Cannot read info block -121, checking for bootloader mode.
Without sdcard :
qtouch_force_reset: Forcing HW reset
Unable to get gpio pin num for touch_pwr_en
qtouch_process_info_block: Build version is 0x10
qtouch_process_info_block: Object 5 @ 0x00f2 (9) insts 1 rep_ids 0
qtouch_process_info_block: Object 6 @ 0x00fb (6) insts 1 rep_ids 1
qtouch_process_info_block: Object 38 @ 0x0101 (8) insts 1 rep_ids 0
(...)
Can it be a HW problem ?
What do you think I can do ?
Click to expand...
Click to collapse
AFAIK, it is HW related..
Best choice, get it to the SC..
Maybe I'll try to change the digitizer (20€ on ebay).
Warranty period is finish.
I want more log,
The goal is to enable logging debug in qtouch_obp_ts
I put in /system/etc/init.d/77debug
Echo 0xFF > /sys/module/qtouch_obp_ts/parameters/tsdebug
But no change at all...
What I am doing wrong ?
Envoyé depuis mon A500 avec Tapatalk

[GUIDE] USB Uart on Galaxy S devices [2012/09/25]

== General Info ==
Hello, and welcome to my usb uart guide - aka, how to totally f' your phone up, if you don't think first!
Really though, read everything before attempting anything!
USB Uart is not new news. There are many great people whom have come before me to make what I am documenting here possible. But I am putting this here because I keep getting PM'd about getting help with USB Uart, and figured it would be good to start a thread that documents what you need and how to get going.
So up front, I need to list some credits.
I gained a lot of knowledge from these people:
TheBeano - Fun with resistors (home/car dock mode + more)
UberPenguin - Galaxy S UART JIG & Debugging Connector
AdamOutler - UART Output / Bootloader Hacking / Kernel Debuging
E:V:A - The Samsung Anyway Jig
I'm sure there is more... let me know if you think you need to be in this list. I'll be happy to update it!
== WARNING ==
I am not responsible for anything you do to your device! If you follow my guide and it results from anything like your phone not working or ending the world, I cannot be held accountable for what you do!
This guide will show you how to use the usb uart on most galaxy s phones (with the FSA9480 USB port accessory detector and switch)
It helps to have Unbrickable Mod. There are some commands you can run from the SBL that will wipe your bootloaders!
You must be VERY CAREFUL!
== Requirements ==
First off, you will need some hardware to connect to your computer. It helps. Below is a list of things I use and they are common and cheap. The links to the items below are what I have. Its what works for me.
mini-usb cable - http://www.sparkfun.com/products/598
bus pirate or arduino (I only cover bus pirate here... for now.) - http://www.seeedstudio.com/depot/bus-pirate-v3-assembled-p-609.html?cPath=174
In my guide i use the bus pirate probe kit - http://www.seeedstudio.com/depot/bus-pirate-probe-kit-p-526.html?cPath=178_180
I used a tape printer to label the test clips.
breadboard (optional, if you rather just solder the resistor to the micro-usb break-out board. more later...) - http://www.sparkfun.com/products/112
USB MicroB Plug Breakout Board - http://www.sparkfun.com/products/10031
some jumper wire - http://www.sparkfun.com/products/124
150k, 523k, 619k resistor (ymmv. AdamOutler and others told me to try 523k or 619k, but I was able to get all the output I need with 150k)
guts - priceless
Also, I use minicom on Linux and Mac OS X (use homebrew to install minicom), but you should be able to use any serial console program you like (i.e. kermit, cu, etc...)
I highly suggest getting to know your bus pirate, but this guide assumes you have read manuals and updated firmware. Any of the other uart modes should also work this way, but I currently don't cover that here... yet.
== Getting Started ==
When we connect to the usb port on the bus pirate(bp), you can find the version info by typing i at the high impedance mode (HiZ>) prompt. Change to this mode when your modifying connections or cable argments.
Code:
HiZ>i
Bus Pirate v3b
Firmware v6.0 r1625 Bootloader v4.4
DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
http://dangerousprototypes.com
Disconnect the bp and lets connect everything from the micro usb port connecting to your phone backwards to the bp. I use a breadboard for things that I might work on later or things I'll re-arrange a lot. You may also decide to solder the resistor directly to the GND/ID pins, but you will need a little lead on the GND. Connect MOSI to D+ and MISO to D-.
Another warning!
You can also fry the ftdi on the bus pirate, if you mess with the connections while the bus pirate is in any mode besides HiZ (Hi Impedance) or unplugged. Usually, I'm in uart bridge mode, so you can't go back to HiZ. You just have to unplug the usb cable.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Solder some jumper wire to the micro usb breakout board. I use about an inch.
I usually start at a1 on the breadboard with vcc and a4 and a5 for ID and GND (respectively). In these images, I'm at the opposite end of the board to make it easier to have the phone next to and above my mouse so it is easy for me to work with the phone.
Put the resistor on b4 and b5 - which is where I connect GND on the bp.
Now that you have the bp connected to the circut, lets move forward and plug in the micro usb cable into the bp and then into your computer.
To change into UART mode on the buspirate, type 'm' at the HiZ> prompt:
Code:
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)
(1)>3
Set serial port speed: (bps)
1. 300
2. 1200
3. 2400
4. 4800
5. 9600
6. 19200
7. 38400
8. 57600
9. 115200
10. BRG raw value
(1)>9
Data bits and parity:
1. 8, NONE *default
2. 8, EVEN
3. 8, ODD
4. 9, NONE
(1)>1
Stop bits:
1. 1 *default
2. 2
(1)>1
Receive polarity:
1. Idle 1 *default
2. Idle 0
(1)>1
Select output type:
1. Open drain (H=Hi-Z, L=GND)
2. Normal (H=3.3V, L=GND)
(1)>2
Ready
UART>(3)
UART bridge
Reset to exit
Are you sure? y
After you get into UART Bridge mode, you will have to unplug the usb port from your computer to reset the bus pirate.
This is where experimenting with different resistors on the GND/ID pins make a difference. Using 619k resistance, I just plug the phone in and it boots up. During boot up, I can see the PBL output like the output you will see in the rest of this document. Using 150k resistance, the phone doesn't automatically turn on.
Also, you may have different usability of the console depending on if you set the output type to Open drain or Normal drain.
With Open drain, I am able to see the uart output, but I am not able to break into the SBL prompt like I am with Normal drain.
Interestingly, with 619k on my SGH-T959V, I don't see all of the kernel console output. I still haven't figured out exactly why yet. With 150k resistance, I don't see the PBL output, but I can still break into the SBL prompt (with normal drain) and get full kernel console output.
When you get to this point, the mode light should now be green. When you plug your phone into the micro usb adapter (again 619k in these examples), you should see everything from the pbl in to the kernel starting:
Code:
1
-----------------------------------------------------------
Samsung Primitive Bootloader (PBL) v3.0
Copyright (C) Samsung Electronics Co., Ltd. 2006-2010
-----------------------------------------------------------
+n1stVPN 2688
+nPgsPerBlk 64
+n1stVPN 3008
+nPgsPerBlk 64
PBL found bootable SBL: Partition(4).
Set cpu clk. from 400MHz to 800MHz.
OM=0x29, device=OnenandMux(Audi)
IROM e-fused - Non Secure Boot Version.
-----------------------------------------------------------
Samsung Secondary Bootloader (SBL) v3.0
Copyright (C) Samsung Electronics Co., Ltd. 2006-2010
Board Name: ARIES REV 03
Build On: Oct 28 2011 15:45:50
-----------------------------------------------------------
Re_partition: magic code(0x0)
[PAM: ] ++FSR_PAM_Init
[PAM: ] OneNAND physical base address : 0xb0000000
[PAM: ] OneNAND virtual base address : 0xb0000000
[PAM: ] OneNAND nMID=0xec : nDID=0x60
[PAM: ] --FSR_PAM_Init
fsr_bml_load_partition: pi->nNumOfPartEntry = 12
partitions loading success
board partition information update.. source: 0x0
.Done.
read 1 units.
==== PARTITION INFORMATION ====
ID : IBL+PBL (0x0)
ATTR : RO SLC (0x1002)
FIRST_UNIT : 0
NO_UNITS : 1
===============================
ID : PIT (0x1)
ATTR : RO SLC (0x1002)
FIRST_UNIT : 1
NO_UNITS : 1
===============================
ID : EFS (0x14)
ATTR : RW STL SLC (0x1101)
FIRST_UNIT : 2
NO_UNITS : 40
===============================
ID : SBL (0x3)
ATTR : RO SLC (0x1002)
FIRST_UNIT : 42
NO_UNITS : 5
===============================
ID : SBL2 (0x4)
ATTR : RO SLC (0x1002)
FIRST_UNIT : 47
NO_UNITS : 5
===============================
ID : PARAM (0x15)
ATTR : RW STL SLC (0x1101)
FIRST_UNIT : 52
NO_UNITS : 20
===============================
ID : KERNEL (0x6)
ATTR : RO SLC (0x1002)
FIRST_UNIT : 72
NO_UNITS : 30
===============================
ID : RECOVERY (0x7)
ATTR : RO SLC (0x1002)
FIRST_UNIT : 102
NO_UNITS : 30
===============================
ID : FACTORYFS (0x16)
ATTR : RW STL SLC (0x1101)
FIRST_UNIT : 132
NO_UNITS : 1540
===============================
ID : DATAFS (0x17)
ATTR : RW STL SLC (0x1101)
FIRST_UNIT : 1672
NO_UNITS : 2120
===============================
ID : CACHE (0x18)
ATTR : RW STL SLC (0x1101)
FIRST_UNIT : 3792
NO_UNITS : 160
===============================
ID : MODEM (0xb)
ATTR : RO SLC (0x1002)
FIRST_UNIT : 3952
NO_UNITS : 60
===============================
loke_init: j4fs_open success..
load_lfs_parameters valid magic code and version.
reading nps status file is successfully!.
nps status=0x504d4f43
load_debug_level reading debug level from file successfully(0x574f4c44).
init_fuel_gauge: vcell = 4013mV, soc = 86
check_quick_start_condition- Voltage: 4013.75000, Linearized[74/89/100], Capacity: 89
init_fuel_gauge: vcell = 4013mV, soc = 86, rcomp = d000
reading nps status file is successfully!.
nps status=0x504d4f43
PMIC_IRQ1 = 0x20
PMIC_IRQ2 = 0x0
PMIC_IRQ3 = 0x0
PMIC_IRQ4 = 0x0
PMIC_STATUS1 = 0x40
PMIC_STATUS2 = 0x0
get_debug_level current debug level is 0x574f4c44.
aries_process_platform: Debug Level Low
keypad_scan: key value ----------------->= 0x0
CONFIG_ARIES_REV:48 , CONFIG_ARIES_REV03:48
check_download: micorusb_status1 = 400, key_value = 0
aries_process_platform: final s1 booting mode = 0
DISPLAY_PATH_SEL[MDNIE 0x1]is on
MDNIE setting Init start!!
vsync interrupt is off
video interrupt is off
[fb0] turn on
MDNIE setting Init end!!
Autoboot (0 seconds) in progress, press any key to stop
get_debug_level current debug level is 0x574f4c44.
get_debug_level current debug level is 0x574f4c44.
boot_kernel: Debug Level Low
FOTA Check Bit
Read BML page=, NumPgs=
FOTA Check Bit (0xffffffff)
Load Partion idx = (6)
..............................done
Kernel read success from kernel partition no.6, idx.6.
setting param.serialnr=0x3733b898 0x1ffc00ec
setting param.board_rev=0x30
setting param.cmdline=console=ttySAC2,115200 loglevel=4
Starting kernel at 0x32000000...
== The SBL (Secondary BootLoader) ==
The most interesting line out of all of that was:
Code:
Autoboot (0 seconds) in progress, press any key to stop
If you happen to hold down the Enter/Return key while booting the phone you will get into the "SBL>" prompt.
The Secondary BootLoader is essentially like u-boot.
Code:
...
DISPLAY_PATH_SEL[MDNIE 0x1]is on
MDNIE setting Init start!!
vsync interrupt is off
video interrupt is off
[fb0] turn on
MDNIE setting Init end!!
Autoboot (0 seconds) in progress, press any key to stop Autoboot aborted..
SBL>
If we type help, we will get some commands you can run. Some of these commands are affected by what is set in the environment.
Code:
SBL> help
Following commands are supported:
* setenv
* saveenv
* printenv
* help
* reset
* boot
* kernel
* format
* open
* close
* erasepart
* eraseall
* loadkernel
* showpart
* addpart
* delpart
* savepart
* nkernel
* nramdisk
* nandread
* nandwrite
* usb
* mmctest
* keyread
* readadc
* usb_read
* usb_write
* fuelgauge
* pmic_read
* pmic_write
To get commands help, Type "help <command>"
SBL>
You can get some minimal help for each command:
Code:
SBL> help loadkernel
* Help : loadkernel
* Usage : loadkernel
load kernel image
- loadkernel 0x80A00000 from kernel partition
Another set of intersting commands here are the ones that manipulate the environment:
setenv
saveenv
printenv
Code:
SBL> help setenv
* Help : setenv
* Usage : setenv [name] [value] . .
Modify current environment info on ram
SBL> help saveenv
* Help : saveenv
* Usage : saveenv
Save cuurent environment info to flash
SBL> help printenv
* Help : printenv
* Usage : printenv
Print current environment info on ram
printenv is probably the safest of them to run, so lets try this first.
Code:
SBL> printenv
PARAM Rev 1.3
SERIAL_SPEED : 7
LOAD_RAMDISK : 0
BOOT_DELAY : 0
LCD_LEVEL : 97
SWITCH_SEL : 1
PHONE_DEBUG_ON : 0
LCD_DIM_LEVEL : 0
LCD_DIM_TIME : 6
MELODY_MODE : 1
REBOOT_MODE : 0
NATION_SEL : 0
LANGUAGE_SEL : 0
SET_DEFAULT_PARAM : 0
CUST_KERNEL_DL_COUNT : 0
KERNEL_BINARY_TYPE : 0
VERSION : I9000XXIL
CMDLINE : console=ttySAC2,115200 loglevel=4
DELTA_LOCATION : /mnt/rsv
PARAM_STR_3 :
PARAM_STR_4 :
I'm not fully sure what all of these options are, but the ones I know about are SWITCH_SEL and PHONE_DEBUG_ON.
I usually turn SWITCH_SEL to 765431. If I turn 2 on, I don't get anything. It would be worthy to test each number in SWITCH_SEL to figure out what number changes what. That maybe specific to the device I have.
Setting at least 6543 in SWITCH_SEL will give you kernel log output:
Code:
setenv SWITCH_SEL 6543
saveenv
I also set PHONE_DEBUG_ON to 1:
Code:
setenv PHONE_DEBUG_ON 1
saveenv
When I set this, I get some extended battery statistics like:
Code:
[BAT] CHR(0) CAS(0) CHS(3) DCR(0) ACP(2) BAT(81,0,0) TE(31) HE(1) VO(3926) ED(1000) RC(0) CC(0) VF(591) LO(0)
You must remember that after running setenv, you must then run saveenv at least once at the end to save the environment. I believe this environment info is saved to either an offset on the sbl partition or on the param.lfs. It would be useful to find this out, because u-boot has a userspace utility (that you can use from within linux userspace) to modify the u-boot environment. It may be handy to use a tool like that to modify the CMDLINE option during rom flashing time.
Also, instead of powering your phone off then on again to put the new settings in place, just run reset from the sbl prompt to reboot the phone with the new settings.
Anyways, This is what I have so far. I will be adding more to this as time goes on.
Enjoy!
-Bryan
Very nice and clear guide!
Also check out my Anyway thread on more details about JIG resistances etc. Soon I hope there will be more added to that about building your own Samsung Test Jig...
Setenv switch sel 1234567
Phone debug on 1
This gives you some kernel debugging.
bhundven said:
I usually turn SWITCH_SEL to 765431. If I turn 2 on, I don't get anything. It would be worthy to test each number in SWITCH_SEL to figure out what number changes what.
Click to expand...
Click to collapse
AdamOutler said:
Setenv switch sel 1234567
Phone debug on 1
This gives you some kernel debugging.
Click to expand...
Click to collapse
Yup. I've got that in there.
It's interesting to note that not all bootloaders are created equal. My results are on SGH-T959V.
Any chance that it will work witch Galaxy Ace too?
dragonnn said:
Any chance that it will work witch Galaxy Ace too?
Click to expand...
Click to collapse
I'm not sure. The GT-i9001 and the SGH-i717 (at&t galaxy note) also both have the FSA9480 chip, but use Qualcomm chips. I can only get some bootloader output from the SGH-i717:
Code:
Android Bootloader - UART_DM Initialized!!!
[VIBETONZ] ENABLE
[VIBETONZ] DISABLE
HW_REV = 12
mipi_init : status = 1
HW_REV = 12
start init_charger
smb328a_init_charger : is_reboot_mode = 0, vcell = 3975
check valid dcin (0x33) = 0x0
no dcin, skip init_charger
fuelguage : soc = 80%, vcell = 3975mV
fuelguage : rcomp(0xd01f) ==?? 0xd0d0
HW_REV = 12
VReset : 0x8c
Hibernation mode : 0x0
8340 = ( 397500 - 334350 ) * 13207 / 100000
HW_REV = 12
reboot_mode = 0xb6cef249
do key check
enter normal booting mode
AST_POWERON
usable ddi data.
HW_REV = 12
HW_REV = 12
E.V.A. said that it might be some debugging setting in the kernel that might have disabled the kernel log output.
It would be helpful to get some MSM developers here to help us out with that!
bhundven said:
I'm not sure. The GT-i9001 and the SGH-i717 (at&t galaxy note) also both have the FSA9480 chip, but use Qualcomm chips. I can only get some bootloader output from the SGH-i717:
Click to expand...
Click to collapse
I looked in the kernel source and it have ./drivers/i2c/chips/fsa9280.c and the driver is included in the build kernel:good:. As far I understand we can using this method recovery the phone from hard brick? That will be really nice, my friend bricked his Ace, maybe he can use this method.
dragonnn said:
I looked in the kernel source and it have ./drivers/i2c/chips/fsa9280.c and the driver is included in the build kernel:good:. As far I understand we can using this method recovery the phone from hard brick? That will be really nice, my friend bricked his Ace, maybe he can use this method.
Click to expand...
Click to collapse
Currently, I only know this method to work on SGS( not sgs2 or sgs3 ) phones with the FSA9480.
bhundven said:
Yup. I've got that in there.
It's interesting to note that not all bootloaders are created equal. My results are on SGH-T959V.
Click to expand...
Click to collapse
The switches are messages from levels 1-7. Turn on more to get more messages.
AdamOutler said:
The switches are messages from levels 1-7. Turn on more to get more messages.
Click to expand...
Click to collapse
That makes sense, but what doesn't is if I set SWITCH_SEL to 1234567 or any combination with 2, I get no output. As long as I don't have 2 in there, it works fine. Must just be this device.
Memory Architecture
Of course each device will have a different Memory Map. Each carrier designs their varient based on what they want and need to function. The MM is sectioned off in the ROM. Any user or modifiable area is stored in RAM so remember we are working in an area that is not supposed to touched (ROM).
Bootloaders are tricky beasts, have never developed a flashing algorithm so I don't know. Usually BLs are not updated after release ( atleast in my field) only sw/fw is.
Either way, excellent ideas, but there is always a way in!
Fly-n-High said:
Of course each device will have a different Memory Map. Each carrier designs their varient based on what they want and need to function. The MM is sectioned off in the ROM. Any user or modifiable area is stored in RAM so remember we are working in an area that is not supposed to touched (ROM).
Bootloaders are tricky beasts, have never developed a flashing algorithm so I don't know. Usually BLs are not updated after release ( atleast in my field) only sw/fw is.
Either way, excellent ideas, but there is always a way in!
Click to expand...
Click to collapse
huh?
Good post
Nice...!!
Thanks you~
can't get SBL or PBL logs on uart in galaxy-y (GT-S5360)
Hello sir,
Thanks for your great tutorial .
I Tried to get uart on galaxy-y (GT-S5360) . I got a working uart but can't see any PBL or SBL logs during the boot. The only log I see during the booting is
Code:
AST_POWERON..
BOOTING COMPLETED
After booting, uart works fine and i can use a shell via serial using command
(on phone)
Code:
busybox sh</dev/ttyS0 >/dev/ttyS0
and on PC
Code:
microcom -s 115200 -p /dev/ttyS0
ttyS0 settings of the phone is
Code:
speed 115200 baud; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke
And that of PC is
Code:
speed 115200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig -icanon iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
-echoctl echoke
cat /proc/cmdline of phone is
Code:
console=ttyS0,115200n8 mem=362M kmemleak=off root=/dev/ram0 rw androidboot.console=ttyS0 mtdparts=bcm_umi-nand:[email protected](bcm_boot)ro,[email protected](loke)ro,[email protected](loke_bk)ro,[email protected](systemdata)ro,[email protected](modem)ro,[email protected](param_lfs)rw,[email protected](boot)ro,[email protected](boot_backup)ro,[email protected](system)rw,[email protected](cache)rw,[email protected](userdata)rw,[email protected](efs)rw,[email protected](sysparm_dep)ro,[email protected](umts_cal)ro,[email protected](cal)r BOOT_MODE=0 loglevel=0 BOOT_FOTA=0 DEBUG_LEVEL=LOW
Circuit diagram is attached below
any one please help
harish2704 said:
I Tried to get uart on galaxy-y (GT-S5360) . I got a working uart but can't see any PBL or SBL logs during the boot. The only log I see during the booting is
Code:
AST_POWERON..
BOOTING COMPLETED
Click to expand...
Click to collapse
I get something similar on a Samsung Rugby Smart (SGH-I847). I think they have tweaked the UART stuff on the newer devices that post date the Galaxy S devices. They might share the UART chip, but it seems as if they changed the loader implementation which is causing the newer devices to not see the PBL and SBL information during boot.
harish2704 said:
Circuit diagram is attached below
Click to expand...
Click to collapse
Have you tried a 150k or 619k resistor instead of the 523k? I was able to get output with both a 150k and 619k, but the output was very similar to what you have posted. Likely a long shot, but worth a try.
harish2704 said:
cat /proc/cmdline of phone is
Code:
console=ttyS0,115200n8 mem=362M kmemleak=off root=/dev/ram0 rw androidboot.console=ttyS0 mtdparts=bcm_umi-nand:[email protected](bcm_boot)ro,[email protected](loke)ro,[email protected](loke_bk)ro,[email protected](systemdata)ro,[email protected](modem)ro,[email protected](param_lfs)rw,[email protected](boot)ro,[email protected](boot_backup)ro,[email protected](system)rw,[email protected](cache)rw,[email protected](userdata)rw,[email protected](efs)rw,[email protected](sysparm_dep)ro,[email protected](umts_cal)ro,[email protected](cal)r BOOT_MODE=0 loglevel=0 BOOT_FOTA=0 DEBUG_LEVEL=LOW
Click to expand...
Click to collapse
Do you have any control over this? It might be the case that ttyS0 isn't setup during early-boot and you need to use a different tty to get it to output over the FSA chip.
Have you tried a 150k or 619k resistor instead of the 523k?
Click to expand...
Click to collapse
yes I tried I didn't feel any difference b/w 619k & 523k when tried. And with 150k, I couldn't get uart active ()
Do you have any control over this? It might be the case that ttyS0 isn't setup during early-boot and you need to use a different tty to get it to output over the FSA chip
Click to expand...
Click to collapse
.
What you mean by control? You mean, can i change this parameters? yes its possible by reflashing (update.zip methode)
Or
you mean do i have control on ttyS0 device? yes I could change that by
Code:
busybox stty -F /dev/ttyS0 ..........
command
Sorry for my language
harish2704 said:
What you mean by control? You mean, can i change this parameters? yes its possible by reflashing (update.zip methode)
Click to expand...
Click to collapse
This is the method I was referring to. If you tweak the parameters you might be able to get the kernel log over serial.
Sent from my SAMSUNG-SGH-I547 using Tapatalk 2
Can you please describe about the tweaks i have to do...
in my knowledge, kernel param
Code:
console=ttyS0,115200n8
is enough for that....
So please specify the tweaks...
harish2704 said:
Can you please describe about the tweaks i have to do...
in my knowledge, kernel param
Code:
console=ttyS0,115200n8
is enough for that....
So please specify the tweaks...
Click to expand...
Click to collapse
If you can interact with ttyS0 post-boot I'd expect it to work. Is there maybe anther serial device such as ttyHS0 or similar that you can interact with? If so, that might be something to try.
You need to change that ttyS0 to ttySAC2 in the boot parameters. Use the abootimg tool on Ubuntu. Apt-get install abootimg.

[Q] ppp widget not working

Dear friends,
I have rooted nexus 7 2012, and installed PPP widget. I have configured the APN. It says "connected", but the internet is not working. Here is the PPP widget log, please help me:
PPP Widget version 1.3.3
USB_ModeSwitch log from Mon Dec 23 15:00:41 IST 2013
Raw args from udev: 2-1/2-1:1.0
Using top device dir /sys/bus/usb/devices/2-1
----------------
USB values from sysfs:
manufacturer USB Modem
product USB Modem
serial 1234567890ABCDEF
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /data/data/de.draisberghof.pppwidget/app_tmp/1c9e.f000
! matched. Reading config data
devList 1:
config: TargetVendor set to 1c9e
config: TargetProductList set to 9000,9603,9605,9607
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1
Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 2 -g 2 -v 1c9e -p f000 -f $cB
Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------
Reading long config from command line
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.7 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x1c9e
DefaultProduct= 0xf000
TargetVendor= 0x1c9e
TargetProduct= not set
TargetClass= not set
TargetProductList="9000,9603,9605,9607"
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
QuantaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
BlackberryMode=0
PantechMode=0
MessageEndpoint= not set
MessageContent="55534243123456788000000080000606f50402527000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled
Use given bus/device number: 002/002 ...
Looking for default devices ...
bus/device number matched
searching devices, found USB ID 1c9e:f000
found matching vendor ID
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using interface number 0
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: USB Modem
Product: USB Modem
Serial No.: 1234567890ABCDEF
-------------------------
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x01
Bus/dev search active, referring success check to wrapper. Bye.
ok:busdev
--------------------------------
(end of usb_modeswitch output)
Checking success of mode switch for max. 20 seconds ...
Reading attributes ...
Reading attributes ...
Mode switch has completed
Mode switching was successful, found 1c9e:9605 (USB Modem: USB Modem)
Device class of first interface is ff
Now checking for bound driver ...
Driver has bound, device is known
All done, exiting

Droid RAZR M: Qflash Utility Help

QFLASH Problem
What the hell .. squint emoticon
"No data read from USB. This may not be an error. Trying again..."
if anyone knw about it so Guide me .i am very close :|
D:\Downloads\Compressed\Moto.X.Unbrick\Python27>python 8960_blankflash.py
Emergency download enumeration detected on port - com3
Starting qflash!
Executing command qflash.exe -com3 -ramload MPRG8960.hex -mbn 33 MSM8960_bootloa
der_singleimage.bin -v -o
Motorola qflash Utility version 1.3
COMPORT :COM3
RAMLOADER :MPRG8960.hex
type is 0x21
7 mbn file name MSM8960_bootloader_singleimage.bin type 33
verbose mode on
Motorola qflash dll version 1.6
RAMLOADER VERSION: PBL_DloadVER2.0
------------------------------------------------------
DEVICE INFORMATION:
------------------------------------------------------
Version : 0x8
Min Version : 0x1
Max Write Size: 0x600
Model : 0x90
Device Size : 0
Description : Intel 28F400BX-TL or Intel 28F400BV-TL
------------------------------------------------------
Using passed in packet size, changing from 0x600 -> 0x600
EXTENDED_LINEAR_ADDRESS_REC @ 0x2a000000
Write 65536 bytes @ 0x2a000000
100EXTENDED_LINEAR_ADDRESS_REC @ 0x2a010000
Write 11840 bytes @ 0x2a010000
100START_LINEAR_ADDRESS_REC @ 0x2a000000
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
No data read from USB. This may not be an error. Trying again...
Still no data, giving up!
dmss_go : failed to receive ACK
Error loading MPRG8960.hex into device
Blank flashing successful
Device will now enumerate in fastboot mode
D:\Downloads\Compressed\Moto.X.Unbrick\Python27>pause
Press any key to continue . .

Categories

Resources