Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
geoffcorey
Old
#1  
geoffcorey's Avatar
Senior Member - OP
Thanks Meter 469
Posts: 2,151
Join Date: Apr 2010
Default [FIX] Fix Status 7 error on assert raw write

I see a few people asking the question about status 7 error when trying toflash a custom kernel on their sensation.

Here is a quick breakdown of a boot.img

boot.img = zimage (the kernel) + ramdisk.

ona stock sensation or a boot.img taken from an ruu, the ramdisk has a protection flag set (ro.secure=1 in default.prop needs to be changed to ro.secure=0).

The kernel devs here, package their kernel updates in a way that copies the current ramdisk, and then comines them with their compiled zimage to make a boot.img which is then flashed. This method is actually the preferred way, and causes the least amount of issues/errors.

But this method fails with a protected ramdisk, which results in the status 7 error about write_raw failed. So to get around this, you must first flash an insecure boot.img.

Most (if not all) custom roms provide you with an insecure boot.img to begin with.

but to shroten the process, i'm going to link an insecure boot.img for those who don't want to change/install a custom rom.

MD5: 36d3e33740dc5799a5b53ee42d579e81
Attached Files
File Type: zip insercure-kernel.zip - [Click for QR Code] (3.87 MB, 1045 views)
"If we amplify everything, nothing is heard."
The Following 15 Users Say Thank You to geoffcorey For This Useful Post: [ Click to Expand ]
 
EddyOS
Old
#2  
EddyOS's Avatar
Recognized Contributor
Thanks Meter 2136
Posts: 10,968
Join Date: Jan 2010
Location: Liverpool, Merseyside
I'm sure this will come in handy for a lot of people. Good job!


Google Nexus 4 (LG-E960)
ROM: Android 4.2.2 (JDQ39) | Bootloader: MAKOZ10o | Recovery: Stock | Radio: 2.0.1700.48 | Kernel: Stock

If you have a question, great - but DO NOT PM ME WITH IT!!!
 
Bluewall
Old
#3  
Bluewall's Avatar
Senior Member
Thanks Meter 735
Posts: 1,781
Join Date: Apr 2010
Location: Sion
Excellent man, don't need but thanks for thinking for people with issue

Really well appreciated in a community
AOKP Frenchy Dude

ex-admin of MIUI.ch
One of the three members of BAD Team, creators of BADOSP

You can find it here : BADOSP For HTC Pyramid
Current mobile :
LG Nexus 4 16Go
ROM : AOKP
Kernel : Bricked, Faux123 and Franco
 
pedroflovera
Old
#4  
Senior Member
Thanks Meter 15
Posts: 125
Join Date: Apr 2010
Location: New York

 
DONATE TO ME
Thumbs up Thanks

Quote:
Originally Posted by geoffcorey View Post
I see a few people asking the question about status 7 error when trying toflash a custom kernel on their sensation.

Here is a quick breakdown of a boot.img

boot.img = zimage (the kernel) + ramdisk.

ona stock sensation or a boot.img taken from an ruu, the ramdisk has a protection flag set (ro.secure=1 in default.prop needs to be changed to ro.secure=0).

The kernel devs here, package their kernel updates in a way that copies the current ramdisk, and then comines them with their compiled zimage to make a boot.img which is then flashed. This method is actually the preferred way, and causes the least amount of issues/errors.

But this method fails with a protected ramdisk, which results in the status 7 error about write_raw failed. So to get around this, you must first flash an insecure boot.img.

Most (if not all) custom roms provide you with an insecure boot.img to begin with.

but to shroten the process, i'm going to link an insecure boot.img for those who don't want to change/install a custom rom.

MD5: 36d3e33740dc5799a5b53ee42d579e81
Thank you very very very much, finally i able to flash my favorite kernel!..
 
T-Macgnolia
Old
#5  
T-Macgnolia's Avatar
Recognized Contributor
Thanks Meter 1396
Posts: 3,426
Join Date: Sep 2010
Location: Shannon, Ms.

 
DONATE TO ME
This is a quick and easy way to fix the problem. But for those that don't mind getting their hands dirty can change the ro.secure=1 to ro.secure=0 manually using Dixda's Kitchen from here on XDA. Just thought I would through that out there.

New to XDA? Please have a read here and here, they are here to help you.
XDA Search Video
S-off explained
Guide on HTC HD2
4EXT Themes, Splash screens, and Bootanimation By T-Macgnolia
XDA-BLOG Writer
RegawMOD Bootloader Customizer for Sensation

Current daily device= Samsung Galaxy Note 2
ROM=TMOUS Stock Multi Window update not rooted
Other devices=TMOUS HTC Sensation 4G,TMOUS HTC HD2 , Acer Iconia A500

The Following User Says Thank You to T-Macgnolia For This Useful Post: [ Click to Expand ]
 
sabian01
Old
#6  
Junior Member
Thanks Meter 0
Posts: 20
Join Date: Dec 2010
Location: Bucharest
Doesn't work on SGS plus. Status 7 remain and bootloop in recovery mode.
 
rzr86
Old
#7  
rzr86's Avatar
Senior Member
Thanks Meter 692
Posts: 2,387
Join Date: May 2012
Location: Nafpaktos
Quote:
Originally Posted by sabian01 View Post
Doesn't work on SGS plus. Status 7 remain and bootloop in recovery mode.
i'm not sure for my answer but i think it fails because of different software or some kind of kernel code
different devices
or i'm telling bull****s
DEVICE: HTC Sensation Z710e
PREVIOUS ROM:rooted stock ICS 4.0.3
CURRENT ROM:Samsation V5.0 JB 4.2.2
FIRMWARE:3.32.401.5
PREVIOUS KERNEL:Overclocked kernel v1.5.2 by SebastianFM
CURRENT KERNEL: What came with the current rom
BOOTLOADER:unlocked
HBOOT VERSION:1.27.0000
RECOVERY:4EXT recovery touch v.1.0.0.5 RC9 build:92
S-ON
MICRO SD:Kingston 16GB class10
 
geoffcorey
Old
#8  
geoffcorey's Avatar
Senior Member - OP
Thanks Meter 469
Posts: 2,151
Join Date: Apr 2010
Quote:
Originally Posted by sabian01 View Post
Doesn't work on SGS plus. Status 7 remain and bootloop in recovery mode.
What's an "SGS plus"? This is only for HTC sensation.

Sent from my Galaxy Nexus using Tapatalk 2
"If we amplify everything, nothing is heard."
 
Keupie
Old
#9  
Keupie's Avatar
Senior Member
Thanks Meter 38
Posts: 144
Join Date: May 2010
Location: Apeldoorn
Very usefull!! Thanks a lot!!

Sent from my HTC Sensation XE with Beats Audio using xda app-developers app


Android Revolution HD 6.7.2|SebastianFM 1.5.2 kernel @ 1728 Mhz|Root|EXT4 Recovery
Mods installed: HQ camera for ICS by NODO-GT | Battery percentage mod by malybru | JellyBean animations by Hikarugo | SebastianFM Aroma Mod by Axetilen
 
mohammadx
Old
#10  
Junior Member
Thanks Meter 0
Posts: 22
Join Date: Jan 2012
Quote:
Originally Posted by geoffcorey View Post
I see a few people asking the question about status 7 error when trying toflash a custom kernel on their sensation.

Here is a quick breakdown of a boot.img

boot.img = zimage (the kernel) + ramdisk.

ona stock sensation or a boot.img taken from an ruu, the ramdisk has a protection flag set (ro.secure=1 in default.prop needs to be changed to ro.secure=0).

The kernel devs here, package their kernel updates in a way that copies the current ramdisk, and then comines them with their compiled zimage to make a boot.img which is then flashed. This method is actually the preferred way, and causes the least amount of issues/errors.

But this method fails with a protected ramdisk, which results in the status 7 error about write_raw failed. So to get around this, you must first flash an insecure boot.img.

Most (if not all) custom roms provide you with an insecure boot.img to begin with.

but to shroten the process, i'm going to link an insecure boot.img for those who don't want to change/install a custom rom.

MD5: 36d3e33740dc5799a5b53ee42d579e81
no any chenge (status 7)

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more