yashsingh1/xdaforums huggingface dataset:
[Barnes & Noble Nook Tablet] fattire:
Some info...

That's right. For emmc, you have an .img file that contains the "recovery" partition. It has three parts:

1. Cyanoboot -- This is the "2nd bootloader" (u-boot) that will run when you hold down the recovery shortcut keys on boot. If you have cyanoboot in say, cm9, THAT version will be run if you don't hold down the shortcut keys. Cyanboot does have the changes required for the newer NTs. See the cyanoboot thread for a discussion about how cyanboot is placed at the head of the .img and how the next two sections, which would normally be 'recovery.img' in any other android device are set at a 512 block offset.

2. The kernel-- We're using the 3.0 kernel which doesn't (yet) have the changes for the newer NTs. I'm gonna try to patch it in soon, but I guess I'll need someone to test as I don't have a device to test with. I'll also need to make sure that the new additions don't break the other NT either.

3. TWRP-- The twrp recovery is in the form of a "ramdisk" -- it's entirely self-contained and once loaded shouldn't have to load any more parts from emmc or whatever.

Parts 2 & 3, along with a header, constitute the "normal" recovery.img. Loglud has written up a howto that discusses the process for combining the kernel+ramdisk to make a boot image (or in this case a recovery image), if you are at all interested in how it works.
[Barnes & Noble Nook Tablet] fattire:
New stuff.

Okay everyone, I have a new version to try. It's linked up top (or shortcut here).

I spent the evening making the 3.x kernel work on the new nook, so that's the biggest change, although I also updated some of the cm9 sources as well as refreshed recent changes to the twrp2 code itself.

Thanks to chrmhoffmann (old NT) and Lost101 (new NT) for testing it out for me. Lost101 reported some graphical issue, and backup is crashing for him.

So consider this still unstable. But at least it boots/runs/touchscreen works on the new nooks as of now.

I'm going to push the kernel source now to the 3.0 repo as well. And it's nearly 4:30 am so I'm going to sleep. Again, try just for fun-- this is not stable, reliable or safe.
[Barnes & Noble Nook Tablet] Keithn:
Booted it on my 8GB with the new recovery. I also have graphical issues and a reboot while trying to backup.

Sent from my AOKP NookTablet
[Barnes & Noble Nook Tablet] SilentStormer:
Did/can you post an updated flash able .zip? I'm ready to try this but I wanna be up to date.

Sent from my Team A CM9 Alpha 0.03 Nook Tablet
[Barnes & Noble Nook Tablet] SilentStormer:
Well I flashed the .zip on the last page. Worked like a charm (16gb Internal CWM) and now I'm on TWRP. I downloaded the Goo.I'm ap from the market and I'm not sure if the gapps it tells me I 'need' to update to are actually something I should update to. Either way, I can't wait until you post the updated.zip off the updated tarball. Thanks for the awesome TWRP!

Sent from my Team A CM9 Alpha 0.03 Nook Tablet
[Barnes & Noble Nook Tablet] fattire:
thanks

Yeah I think you might be right about this. Not to get too kernel debuggy here, but from the stock 1.4.2 kernel's defconfig:

CONFIG_CMDLINE="root=/dev/ram0 rw mem=128M console=ttyS2,115200n8 initrd=0x81600000,20M ramdisk_size=20480"

# CONFIG_CMDLINE_FORCE is not set

And from the current 3.0 kernel:

CONFIG_CMDLINE="mem=1G androidboot.console=ttyO0 console=ttyO0,115200n8 vram=16M,82000000 omapfb.vram=0:8M@82000000 def_disp=lcd2"

# CONFIG_CMDLINE_FROM_BOOTLOADER is not set

So already there is a difference, and if your dmesg is correct about ignoring the bootloader's header, it thinks it has 1G of memory when it doesn't. This can account for a lot of issues. So...

I'm going to change CONFIG_CMDLINE_FROM_BOOTLOADER to "y" and see if that makes a difference. It's possible that the bootloader will send it a kernel config so radically off for 3.0 that it chokes, but may as well try it. If that's the case, the 3.0 kernels may need a new cyanoboot or we'll have to have the kernel intelligently parse the command line it gets and build a new one.

What path has changed that would require recovery.fstab to change?

That's okay. For twrp /sdcard is its own mountpoint and /sdc is the name it should have, according to dees_troy. /sdc and /emmc can both be mounted to /sdcard when you choose them from the mounts menu.

From passing the above info to dees_troy:

<Dees_Troy> fattire, it appears that it can mount the external sdcard just fine

<Dees_Troy> I think that people are getting very confused on how it's supposed to work in TWRP

My question-- are you able to select the external sdcard from the mounts menu? That may be all you need to do (?)

Hmm. I'm not seeing that in the source.. that's odd.

Very helpful thanks. Let's see if this new commandline setting does anything. I think I also fixed the issue with "B" coming up as the device (and requiring subsequent driver reloads)-- it was just that "B & N NookTablet" was truncating after the first space. Dees_troy helped me with that one. It should just be set to "NookTablet" which is should be starting with the next build which I am starting now... so stay tuned.

(I'm not going to deal with that Ooops yet. But do you know what you were doing when it happened?)
[Barnes & Noble Nook Tablet] fattire:
A new one to try.

twrp-2.1-nt-2012-05-17C-fullofbugs.tar.gz

This version has updated repos + the kernel has the command-line coming from cyanoboot instead of the built-in version.

Lost101 reports it boots and backup now works.

14:56 <Lost101> fattire: more than that, everything is working

14:56 <Lost101> fattire: include terminal option

14:57 <fattire> Lost101 same graphics distortion?

14:57 <Lost101> fattire: none

this seems good.
[Barnes & Noble Nook Tablet] SilentStormer:
Be Warned: extreme stupididty following

SOooooooooooo, this morning i flashed TWRP and it worked fine,i made sure I backed up my ROM in CWM before flashing TWRP. Now normally everything wouldve been ok. But because of the recent news from Google about their limiting device deactivations i was going to deactivate the 6 or 7 Nook duplicates from all my ROM-ing. So ive been using one of the modified build props from earlier last month that didnt really do anything. So I didnt know which of the duplicates on Google Music my CM9 was. Now i knew that i had a backup of my default build.prop and i went ahead and deleted it *WITHOUT CHECKING THE DEFAULT ONE FIRST* (yes i am kicking myself down multiple flights of stairs over this.)

So then i went and pasted the default build.prop into /system and renamed it 'build.prop' as usual. opened it up and: what do you know there were only 3 lines of text. So being the idiot that I am I instantly though: "Oh, ill just boot into recovery and restore my backup from earlier today." Not realizing that TWRP didnt use the same backups folder. (in hindsight: WHY WOULD IT OF) So being stupid I booted into TWRP, destroying any hope of putting the backups in the right folder because i cant boot again due to no build.prop. Once in TWRP i found out that my external sd card absolutely REFUSES to mount. Not with the checkbox, not with the little circle button, not by popping it out and back in again. NOTHING. furthering my stupididty I went ahead and wiped all of the options, including system which I found out later WIPES THE ROM. so now I went into the IRC for #nook-tablet and asked how i would go about this, after fully exhausting the options for trying to mount my sd card i moved onto ADB. So HacDan in IRC (thank you for trying) tried walking me through how to try and push the backup (which is on computer now safely) to the right TWRP folder. We cannot get my tablet to mount in "adb devices". So I am literally out of options here, i dont have a ROM, i cant get SD to mount and I cant get ADB to work. So if anyone, ANYONE could help me with this I would be very VERY appreciative.

Moral of the story: Dont be an effing DUMBASS like me and go around doing stuff while digging yourself into a deeper hole. Please people, help me and my tablet. Dont let me suffer the fate of a brick forever..........
[Barnes & Noble Nook Tablet] Keithn:
Same here, no more graphical issues and I just completed a back up!
[Barnes & Noble Nook Tablet] C64assembly:
You can ALWAYS use Adam Outlers or various other SD restore images to boot from SD and restore your tablet. I have wrecked mine a couple of times and rescued it with Adams rescue SD.
[Barnes & Noble Nook Tablet] Solar.Plexus:
Wait, so you can't boot from SD?
[Barnes & Noble Nook Tablet] Cubanluke88:
I would try making a CWM sd card and try to boot. If that works, you could then expand the card, throw a rom on it and flash that way.
[Barnes & Noble Nook Tablet] SilentStormer:
No, SD wont mount in TWRP

If I could get SD card to mount like demtris_l said earlier in the thread i would be fine but I cant. Im debating wether or not to use the Ubuntu recovery. I'd rather not but its one of my only options right now......
[Barnes & Noble Nook Tablet] meghd00t:
@fattire - Great work! - do you ever sleep?

What path has changed that would require recovery.fstab to change?

in cm7.2 sources at

https://github.com/succulent/android_device_bn_acclaim/blob/CM7/recovery.fstab

the partitions are at

/dev/block/platform/mmci-omap-hs.1/by-name/

but as you can see in my dmesg and ls this has moved to

/dev/block/platform/omap/omap_hsmmc.1/by-name/
[Barnes & Noble Nook Tablet] fattire:
Version D: Defaults to external SDcard?

Okay, I modified twrp2 a little bit.

Try this version, but if you've used twrp before, first boot into android and then ...

rm /emmc/TWRP/.twrps

That clears out any old twrps setting. Then reboot into twrp.

Then go to "Mount" and if it isn't selected choose "Using external SD"

At that point I think the external SD should now be mounted and remembered as your preference for the SD card rather than the internal (/emmc) and you can hopefully use goo manager for example to flash.

I was able to do it on Nook Color and it seems to work right. The next step is to figure out why the setting doesn't stick the first time but requires a manual change.

dees_troy is making some changes to how devices with both internal /emmc "sd" and a true hardware sd card slot will work. So I'm going ot wait until he does that before investigating further.

All that, assuming this does something not terrible on NT.

twrp-2.1-nt-2012-05-17E-fullofbugs.tar.gz

Let me know. Good luck. See disclaimers.

Isn't this fun?!
[Barnes & Noble Nook Tablet] fattire:
I'm not using cm7 as a base. I'm using cm9, which has a different recovery.fstab.
[Barnes & Noble Nook Tablet] Demetris:
Confirm working on NT 16Gb+8GB, only problem is the reboot, always shutsdown the NT on 16GB, dont know on 8GB.

I flashed cm9 and gapps, all o.k.

Mounting works as expected, is different with twrp, so if anything comes up please report it.

Thanks in advance.
[Barnes & Noble Nook Tablet] lost101:
The mounting preference is not being remembered on 8gb NT. I have deleted the twrp settings file.

Reboot > System will reboot. Power Off will obviously turn device off.
[Barnes & Noble Nook Tablet] fattire:
Hmm. It does remember it on Nook Color... wonder what's up with that. Well, I guess we should wait for dees_troy to finish what he's doing, which is redoing the way this all works..
[Barnes & Noble Nook Tablet] fattire:
New, betterer (?)

Okay, dees_troy redid the way internal/external SDcards are selected, which simplifies things a lot and should make external the default (clear your /emmc/TWRP/twrps settings file or it will use whatever was default previously)

Can someone try it out and report back?

twrp-2.1-nt-2012-05-18-fullofbugs.tar.gz

MD5: fd8682e4fa34df4e6b4a196c1c19c95a
[Barnes & Noble Nook Tablet] Keithn:
It's not defaulting to the sdcard for me, and it didn't want to save it as default either. Even after deleting the settings file.
[Barnes & Noble Nook Tablet] fattire:
an appeal for someone with a device to look for errors...

I heard the same thing from Lost101. At this point I don't know what the issue is. It works perfectly on Nook Color in my testing. I don't have an NT, so I can't view logs and stuff to see if it's trying and failing, or never trying, or what.

For anyone interested in debugging what's going on that has a NT available--

Here is the change that makes the default external SD work.

TW_DEFAULT_EXTERNAL_STORAGE should be set to true. It's set to true exactly in the same way it is for NC-- in fact, I copy/pasted it directly from what I successfully used in the encore build.

Perhaps look at the logs for any issues... it doesn't seem to be a problem with the ability to mount /sdcard vs /emmc... although you can check to make sure that both work via manual selection, but all reports seem to be that they do. It's almost like the setting isn't "taking" when it first boots for some reason.

If you have access to logs, please check to see if you can figure out what's goin' on...
[Barnes & Noble Nook Tablet] Keithn:
Yeah I have no issue manually mounting and selecting it just wont save or start mounted.
[Barnes & Noble Nook Tablet] meghd00t:
did you try ejecting and reinserting the card? That worked for me, after that I could mount and see files on the sdcard.
[Barnes & Noble Nook Tablet] Keithn:
I think you misunderstood. I can mount it, it just won't start mounted and set as the default storage point in TWRP.

Sent from my AOKP NookTablet
[Barnes & Noble Nook Tablet] Dees_Troy:
Pull a log for us to look at so that we can get a better idea of what's going on please.

http://rootzwiki.com/topic/24120-how-to-get-a-log-from-twrp/

Logs or it didn't happen ;)
[Barnes & Noble Nook Tablet] lost101:
NT8gb_initial_bootup - http://tinyw.in/2QWx

NT8gb_mounting_SD - http://tinyw.in/KFaL

NT8gb_enabling_use_SD - http://tinyw.in/TJAu

NT8gb_second_bootup_failure_to_remember_use_SD - http://tinyw.in/1zfR
[Barnes & Noble Nook Tablet] fattire:
A new one to try...

Okay, I just did a fresh build w/the kernel fix from arcon.

Can someone (after reading all the caveats above) try it? You may want to first clear out your TWRP settings from android:

rm /emmc/TWRP/.twrps

Hopefully, all will work and the world will be wonderful. The kernel build should look like this:

Linux localhost 3.0.21+ #1 SMP PREEMPT Wed May 23 15:44:52 PDT 2012 armv7l GNU/Linux

thanks to frustro for a quick test. Please verify that:

1. On first boot external SD comes up (it didn't for frustro but I want verification)

2. After selecting Eternal SD from the Mounts option, the setting should stick. (this DID work for frustro, which suggests good things for goo manager)

twrp-2.1-nt-2012-05-23-fullofbugs.tar.gz

and a flashable update.zip:

update-twrp-2.1-nt-2012-05-14-fullofbugs-emmc.zip
[Barnes & Noble Nook Tablet] Keithn:
Should this be enough or would you guys like to see some logs from others on this too?

Edit--- Just saw the new version...
[Barnes & Noble Nook Tablet] fattire:
protip: install via goo manager.

Another way to install this experimental build of twrp, courtesy of TeamWin:

1. Get Goo Manager from the market and run it.

2. In the menu, select "install openscript recovery". At some point you may be asked to give Goo Manager superuser permissions.

3. When it's done, reboot into recovery.

Thanks, eyeballer for implementing and frustro for testing.

This may make automatic installations of cm9 builds easier...
[Barnes & Noble Nook Tablet] SilentStormer:
Ok, so this flashable .zip will NOT have the previous unmountable SD card bugs that screwed me over. Right?

Sent from my Team A CM9 Alpha 0.03 Nook Tablet
[Barnes & Noble Nook Tablet] fattire:
Let us know ;)
[Barnes & Noble Nook Tablet] hungmung:
Just installed on my 16GB nt and it mounted right away and did a full backup with no reboots or issues. Thanks a lot for all of the time and effort on Al of the devs part

Sent through the might of Eris
[Barnes & Noble Nook Tablet] lost101:
8gb NT. Cleared TWRP settings and updated TWRP via fastboot. SD card was mounted on first boot.

Just tested Goo Manager. It downloaded, rebooted and installed latest gapps successfully. Thanks guys! :)
[Barnes & Noble Nook Tablet] Keithn:
Same here, good work :D
[Barnes & Noble Nook Tablet] rjmohit:
Just tried to install TWRP via the Goo manager way, it downloaded and flashed fine, when I rebooted to recovery, it got stuck at the 'n' splash screen. I forced shut down, rebooted, now its forever stuck at the splash screen, doesnt even boot the normal ROM. 16GB NT here.

Please help.

EDIT:

Solved it myself, reflashed MLO and X-Loader. Wonder why it damaged these partitions!

Check the attachment for a fix I created.
[Barnes & Noble Nook Tablet] johninsf:
Using above approach, I installed TWRP 2.1.4 on NT 16gb running CM7 Alpha.

1. With Power + n I go to Cyanoboot splash then transition to TeamWin splash then main menu. (looks great.)

2. The icon in the top right corner. (I think it is for terminal..) displayed a grey screen which does not go away. I did P + n + V up which shut down NT then I went back in to TWRP just fine.

3. I performed a backup of system, data and boot which also completed successfully and saved to SDcard. I also could browse to previous CWM backup.

4. Re-boot does not work and completely shuts down NT.

Q: I saw this in the OP:

TWRP (Team Win Recovery Project) 2.1 by TeamWin is an alternative recovery (instead of ClockworkMod) that is a good companion for Goo Manager. See this video for more info.​

and this post from demetris_I:

It will replace cwm.

Rom doesnt matter , they reside in different partitions.

Cyanoboot is all you want if anything goes wrong or/and CWM/TWRP from sd card so you can dd the recovery.

Last edited by demetris_I; 14th May 2012 at 08:45 PM.​

EDIT: I got my answer from the [ROM][Acclaim] Unofficial CM9 Nightly Builds thread:

Requirements

1GB NT (the 512MB NTs are not yet supported by the 3.0 kernel.)

Software: Rooted stock, CM7, or CM9

A full battery

a formatted SD card in the slot

wifi connection

(something else?)​

Pardon my ignorance. I am good at testing, breaking and going back to something that works but get lost in the finer details that you understand so well.
[Barnes & Noble Nook Tablet] slgooding:
Console Cuts Off

I found a small issue. I was in the process of installing the CM9 nightly using the Goo Manager method. The backup completed and then the install of the rom failed. I wanted to check to see what the error was so I clicked the console button at the main menu of TWRP. I can scroll down, but the bottom is cut off. I can't read the full log.

Hopefully this is an easy fix!
[Barnes & Noble Nook Tablet] jdebay:
I have used this the last three days and is working fine for me even doing backups. Keep up the great work. Edit did a restore too.
[Barnes & Noble Nook Tablet] raywaldo:
Goo Manager on NT8

I installed the Goo Manager app from the Play Store. (v2.1.0)

The option is under "Flash ROMs" / "Try to find one for me" / "yes" / "Yes"

Be sure to have an SDCard in the slot

After the file is downloaded, it takes a minute or two (no feedback) for the recovery.img to install.

When the install is completed, there *IS* a small dialog stating that the image was installed.

At that point, you can return to the menu and select "Reboot Recovery"

My NT8 loaded TWRP v2.1.4 and seems to be working fine. I am now using it to do a backup. :cool:

Only issue I have seen is when I use the "Menu"? button at the top, it will not scroll all the way to the bottom of the log. Looks like it might only be one more line? After I did the backup, the last line that I see is "[BOOT DONE (1 SECONDS)}" and the tops of some characters below that.

Thanks fattire & teamwin!

---------- Post added at 03:22 PM ---------- Previous post was at 02:57 PM ----------

Works great on my NT8gb (512meg). Thanks!:cool:
[Barnes & Noble Nook Tablet] hungmung:
I ran into a weird issue. I had this installed and was working ok then suddenly it stopped recognizing my ad card so I related clockwork recovery did a backup and then reflashed twrp via goo manager. Now it will start doing a backup finish with system and just hang there. Like I said I've tried the goo manager download and one of the flashable zips from a few pages back.

Sent through the might of Eris
[Barnes & Noble Nook Tablet] Dees_Troy:
Updated to 2.2!
[Barnes & Noble Nook Tablet] Demetris:
Thank you for the good news Dees_Troy.

Testing now.
[Barnes & Noble Nook Tablet] raywaldo:
That is what happens when you get parts of both recovery programs. I am trying to figure out what the issue is. It seems to be related to a different kernel in the different recovery programs.
[Barnes & Noble Nook Tablet] fattire:
Updated the first post. Can someone who has a sec make a build of this? I can do it but I'm balls-deep in NC at hte moment so it will have to wait a bit otherwise. But since some of you are testing, if it's good please let us know and I'll update the first post so people can find it.
[Barnes & Noble Nook Tablet] raywaldo:
TWRP 2.2 on NT8

Don't know if it relates to my previous problems with conflicts between CWM & TWRP but I did have some issues trying to install the 2.2 version. I sent you a PM about it.
[Barnes & Noble Nook Tablet] billho:
It seem that the new 2.2 does not recognize MicroSD card. I have tried with 3 sdcards with the same problems. Does anyone know how to overcome? Thanks.
[Barnes & Noble Nook Tablet] player911:
+1 to the Above

The Recovery isn't seeing any storage folders (internal or SD card) so technically you can't use this to flash a damn thing. Hope for a speedy update I guess I have to go back to clockwork for now or use an older version.
[Barnes & Noble Nook Tablet] slgooding:
SD Not working

This happened after a reboot from CM9 (not sure about CM7) into recovery. You can't physically check the box for "Mount SDCard", and you also cannot select the radio button for "Using external SD".

The console states E:failed to mount /sdcard (No such file or directory)

HOWEVER, I powered off the device and then boot into the recovery from cyanoboot. Voila, SD card mounts properly.
[Barnes & Noble Nook Tablet] SilentStormer:
I bricked myself earlier this spring by accidentally doing a wipe of everything and then realizing I couldn't flash anything. Ended up using a recovery SD with a CWM image on it. Just in case you need it.
[Barnes & Noble Nook Tablet] eyeballer:
Ok.. clearly something went wrong with our 2.2.0 build for you guys. I'm setting goo manager to default back to 2.1.4 for now. So go ahead and install it from there again.

Will try to get an update sometime this week.
[Barnes & Noble Nook Tablet] Zellgadiss:
nevermind. Still not sure what was going on but I was able to flash CM9 (not the nightlies). Can delete this post.
[Barnes & Noble Nook Tablet] Demetris:
Any news update about this eyeballer?
[Barnes & Noble Nook Tablet] eyeballer:
Ok.. here is an updated TWRP for you guys. This is bumped to mainline 2.2.1 but is 2.2.1 beta1 for you guys as there are some bugs - the main one is that usb mount does NOT work in recovery. You will need to use adb push to send files to the device (or copy them before you get to recovery). Also, if you are unplugged from usb/power then choosing reboot will actually power off.

Other than that, storage works and it will work on both nt8 and nt16.

Fastboot flash this: http://techerrata.com/file/twrp2/openrecovery-twrp-2.2.1b1-acclaim.img This is NOT available in goo manager yet due to the mentioned bugs.

Big thanks to Rebellos, raywaldo, ntemis, frustro, Clark008 and the rest of the #nook-tablet chan.
[Barnes & Noble Nook Tablet] raywaldo:
TWRP 2.2.1 on NT8

Thanks eyeballer!

This version works great. I was able to successfully flash Chris' CM10 "full-of-bugs" zip to my NT8! Yep. Jelly Bean on my 8gb Nook tablet!!:cool:
[Barnes & Noble Nook Tablet] Keithn:
The new recovery is also working for me too, just flashed CM10 (.02) and booted.

I'm also curious about what changed to allow us to flash CM10? It wouldn't boot before.
[Barnes & Noble Nook Tablet] TheForceUnleashed:
The previous kernel was 3.0.21, and CM10 uses 3.0.31, so that might have been the problem. It's a guess.
[Barnes & Noble Nook Tablet] raywaldo:
3.0.31+ Don't forget the plus! :)

Sent from my NT8 with Jelly Bean 4.1.1