Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,742 Members 37,566 Now Online
XDA Developers Android and Mobile Development Forum

[FIX] Fix Status 7 error on assert raw write

Tip us?
 
geoffcorey
Old
#1  
geoffcorey's Avatar
Senior Member - OP
Thanks Meter 477
Posts: 2,157
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, 1871 views)
"If we amplify everything, nothing is heard."
The Following 18 Users Say Thank You to geoffcorey For This Useful Post: [ Click to Expand ]
 
EddyOS
Old
#2  
EddyOS's Avatar
Recognized Contributor
Thanks Meter 2957
Posts: 13,194
Join Date: Jan 2010
Location: Liverpool, Merseyside
I'm sure this will come in handy for a lot of people. Good job!
OnePlus One (Sandstone Black) 64GB
ROM: CyanogenMod 11S (XNPH25R)

HTC One M8 (Gunmetal Grey) 16GB
ROM: 2.22.401.4 (KTU84L) | HBOOT: 3.18.0.0000 S-OFF | Recovery: Stock | Baseband: 1.19.2133147.09G_20.57.4196.01L_F | Kernel: Stock | CID: HTC__001

If you have a question, great - but DO NOT PM ME WITH IT!!! | [GUIDE] Return your EU M8 to 100% Stock (S-OFF Required) | [GUIDE] Return your OPO to 100% Stock
 
Bluewall
Old
#3  
Bluewall's Avatar
Senior Member
Thanks Meter 867
Posts: 2,108
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 5 16Go
ROM : ParanoidAndroid
Kernel : Bricked, Faux123 and Franco
 
pedroflovera
Old
#4  
Senior Member
Thanks Meter 17
Posts: 142
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
Forum Moderator
Thanks Meter 1883
Posts: 3,707
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 1974
Posts: 6,646
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 Rom ICS Sence 3.6 Revelation 1.0.3 JB Sense 4+ ViperS 3.1.4 JB Sense 4+
CURRENT ROM:ViperS 5.2.1 JB Sense 5 | Sense 6 Blinkfeed
FIRMWARE:3.32.401.5
PREVIOUS KERNEL:Overclocked kernel v1.5.2 by SebastianFM
CURRENT KERNEL:kernel 3.4.10 by SebastianFM
BOOTLOADER:unlocked
HBOOT VERSION:1.27.0000
RECOVERY:4EXT recovery touch v.1.0.0.6 RC3 testing build: 8
S-OFF
 
geoffcorey
Old
#8  
geoffcorey's Avatar
Senior Member - OP
Thanks Meter 477
Posts: 2,157
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: 151
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
CURRENT DEVICE
HTC One stock JB 4.1.2

BACKUP DEVICE:
HTC Sensation
Android Revolution HD 7.2|Faux123 kernel @ 1512 Mhz|Root|EXT4 Recovery
Mods installed: HQ camera for ICS by NODO-GT | Battery percentage mod by malybru
 
mohammadx
Old
#10  
Junior Member
Thanks Meter 0
Posts: 23
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)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Slide Dial Replacement Dialer Lets You Make Calls from Anywhere

If you frequently make phone calls, your dialer (aka phone app)is one of the … more

Navigate with Your Samsung Gear 2 Using DMA Navi Watch

Whether you’re travelling to a new destination or exploring some previously … more

Xperia Z1 Stereo Speaker Mod, Cell Phone Unlocking Legal Again! – XDA Developer TV

Cell Phone Unlocking is legal again!! That and much … more