[Dual-Boot SDCard | CM7.2 Source | Guides | Recovery | Stock 1.4.2 ]

Search This thread

lavero.burgos

Senior Member
Mar 5, 2011
2,836
1,391
Ahah thanks a bunch, you're the man @succulent yup :D

~ Veronica

Sent from my Nook Tablet using xda premium
 

Prof. Penguin

Member
Apr 25, 2012
16
10
Thank you for the tutorial! I finished building my first ROM from scratch last night thanks to you.

Just a couple problems I ran into, perhaps I can help some others avoid them:
-You must run vendor/cyanogen/get-rommanager before compiling
-For Arch Linux users: mv /usr/bin/python /usr/bin/python.bak & ln -s /usr/bin/python2 /usr/bin/python
-to compile with gcc 4.7 check this commit.

I am looking forward to making some contributions to the community and improving the environment for this excellent little tablet. Thanks again!
 

succulent

Senior Member
Dec 22, 2010
241
448
Thank you for the tutorial! I finished building my first ROM from scratch last night thanks to you.

Just a couple problems I ran into, perhaps I can help some others avoid them:
-You must run vendor/cyanogen/get-rommanager before compiling
-For Arch Linux users: mv /usr/bin/python /usr/bin/python.bak & ln -s /usr/bin/python2 /usr/bin/python
-to compile with gcc 4.7 check this commit.

I am looking forward to making some contributions to the community and improving the environment for this excellent little tablet. Thanks again!

Good,

I've added codes so that when you build CM7, it will include recovery.img, MLO, and u-boot.bin in the output zip. This way, it'll flash recovery into internal when you flash the rom. :eek:
 

Prof. Penguin

Member
Apr 25, 2012
16
10
Help me understand why you would want that every time you flash? If I am flashing roms in the first place wouldn't I already have a working recovery.img, MLO, and u-boot.bin?
 

succulent

Senior Member
Dec 22, 2010
241
448
Help me understand why you would want that every time you flash? If I am flashing roms in the first place wouldn't I already have a working recovery.img, MLO, and u-boot.bin?

It was suggested to me. Just like BN update, it contains recovery, mlo, and u-boot.bin. MLO load u-boot and u-boot load boot.img. MLO and u-boot are different in each BN update. You want people to have the latest one flash to their device so they run properly. Latest one worked on both 8gb/16gb unlike old one that doesn't work on 8gb.
 

Prof. Penguin

Member
Apr 25, 2012
16
10
I was thinking about installing cyanoboot, wouldn't including these things break the ability to use an alternative bootloader, ie cyanoboot? Perhaps adding a compile time flag would be a better way to go about adding this feature.

As a comparison, does the Team B release include these pieces?
 

swaaye

Senior Member
Mar 16, 2011
454
74
Succulent, you might want to add a warning about how flash-restore-stock.zip will wipe the ROM partition (which as you know has some irreplaceable unique data). I don't think it will be possible to register the NT with B&N after doing this and actually use the stock ROM.
 
Last edited:

succulent

Senior Member
Dec 22, 2010
241
448
Succulent, you might want to add a warning about how flash-restore-stock.zip will wipe the ROM partition (which as you know has some irreplaceable unique data). I don't think it will be possible to register the NT with B&N after doing this and actually use the stock ROM.

Correct. It's is there because some people decided to format their Rom nd Bootdata partitions. You might be able to register your device if you do the factory reset and restore. Your Rom and Bootdata might have backup in your factory partition. Anyway, you can skip the registration screen.
 

swaaye

Senior Member
Mar 16, 2011
454
74
You might be able to register your device if you do the factory reset and restore. Your Rom and Bootdata might have backup in your factory partition.

Can you explain this further? Which factory reset and restore method? Is there an automated way to restore the ROM and BOOTDATA files from the factory partition?
 

succulent

Senior Member
Dec 22, 2010
241
448
Can you explain this further? Which factory reset and restore method? Is there an automated way to restore the ROM and BOOTDATA files from the factory partition?

Factory partition:

>file factory.zip
Restore partition 1,2,3,4,9 (x-loader, bootloader, recovery, boot, system)
re-install system files, same as update.zip

>file qutarun.txt

>file rombackup.zip
Backlight,
BatteryType,
DateManufactured,
DeviceAttribute,
DeviceID,
EAN,
EventTpe,
HashofPrivateKey,
MACAddress,
MainboardSN,
ModelNumber,
OperatingMode,
Platform,
ProductID,
PublicKey,
SerialNumber,
WifiBackupCalibration

>file romrestore.zip
Restore partition 5 (Rom)

>file runin_end_batt_capacity_record
>file runin_raw_log.txt
>file runin_start_batt_capacity_record

Rom partition:

>folder defconf:
Backlight,
BatteryType,
DateManufactured,
DeviceAttribute,
DeviceID,
EAN,
EventTpe,
HashofPrivateKey,
MACAddress,
MainboardSN,
ModelNumber,
OperatingMode,
Platform,
ProductID,
PublicKey,
SerialNumber,
WifiBackupCalibration

>folder log:
aft1_log
bc002log.txt
qutadlog.txt
qutalog.txt

> file rom (0 byte)

Bootdata partition:
>file BCB
>file BootCnt
>file bootdata
>file max17042.bin

To initialize factory restore (Rom/Bootdata restore), you need to search the 9 failed boot attempts. To initialize Factory reset you need to turn off device. Hold both power and n button until device turn on and off. Power on again to go to stock recovery.
 
Last edited:

swaaye

Senior Member
Mar 16, 2011
454
74
It took me a few tries and tweaks but I got it completely back to stock form with the correct serial etc.

Strangely, even after the factory wipe (9 boot failure method), your serial number was still there! So I went into CWM via SD and formatted /data, /system, /cache, /rom and /bootdata. I then did another 2 factory wipes (the first didn't restore everything) and it was fully operational.
 

MotorHeadCG

Member
Feb 26, 2008
41
8
Dallas
It took a bit of tweaking of the instructions but I got it running.

Thanks for the instructions.

Sent from my Nook Tablet using xda premium
 

succulent

Senior Member
Dec 22, 2010
241
448
Last edited:

fattire

Inactive Recognized Developer
Oct 11, 2010
2,281
6,473
www.eff.org
Its very cool, but if I'm not mistaken, jcsullin's moboot for touchpad supports essentially unlimited altboots :) -- albeit from emmc not sdcard. You just add "uImage.bootname" (kernel+ramdisk) files into /boot and the names get picked up and added to the boot menu.

Cyanoboot could probably do the same for *.img files in the sdcard p1 and/or bootdata... if someone wanted to add it :)

Nice job!
 
Last edited:

succulent

Senior Member
Dec 22, 2010
241
448
Its very cool, but if I'm not mistaken, jcsullin's moboot for touchpad supports essentially unlimited altboots :) -- albeit from emmc not sdcard. You just add "uImage.bootname" (kernel+ramdisk) files into /boot and the names get picked up and added to the boot menu.

Cyanoboot could probably do the same for *.img files in the sdcard p1 and/or bootdata... if someone wanted to add it :)

Nice job!

That is indeed very cool. Would be cool if we can get that working with your Cyanoboot.
 

succulent

Senior Member
Dec 22, 2010
241
448
FWIW, when I clicked on the "Downloads" at the above link (and then "Download as zip") the downloaded zip file contains the whole "acclaim_recovery_sdcard" folder and not just content of dual_boot_sdcard_hd.zip.

I've updated my files. Don't use the old zip. Click on the file you want on github and view raw to download.
 

JKShack

Member
Jun 5, 2009
12
0
Curious about CM9 for dual boot

OK forgive if this is has been answered or if I am misunderstanding. I thought the CM9 rom was currently internal only? Would that preclude you from dual booting. If it overwrites the internal files.

Thanks,
Jason
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    Hello,

    WARNING: Perform at your own risk. Do your research.

    I am providing the source to compile CM7 for the Nook Tablet. I am not providing a CM7 build since Team B+ have done so. What I provide is the device and vendor contents, kernel, and kernel configuration file, ramdisk, and boot image. You will need to compile your own CM7. This will give you a more updated CM7 with latest update.

    My source is primary based on Whistlestop source, but I’ve used bits and pieces from other sources like Nook Color and LG P925.

    My goal was to build CM7 for the Nook Tablet as a learning experience. I have always used rom created by other people because I am not a developer. I did my research and learned to build my own CM7. I find that building your own rom is more satisfying and I think everyone should try it at least once. It will require a lot of time and some learning, but it will be special in the end.

    More info are on my blog.

    New Source for CM7, compile your own CM7.2 RC1
    https://github.com/succulent/android_device_bn_acclaim
    https://github.com/succulent/android_vendor_bn_acclaim

    Recovery sdcard, Flashable Recovery, Unbrick files
    https://github.com/succulent/acclaim_recovery_sdcard

    Mediefire Nook Tablet Folder
    http://www.mediafire.com/?eidcug5a7en8r

    Dual boot (CM7/CM9)
    - Instruction here (My blog)
    - Includes files for single/dual-boot sdcard
    - Boot to CM7/CM9 from sdcard with fattire's cyanoboot
    - Roms not included
    - Please don't post iso/img/prebuilt sdcard of this
    - http://www.youtube.com/watch?v=x6syVkhPQaM
    - Mockup pic
    cyanoboot.png


    flash_recovery.zip (use recovery to flash it. no more sdcard recovery)
    - Hold Power & "n button" down until the device turns on and off again.
    - Then press Power to turn the device on normally and access the recovery.
    - You can also boot to recovery by issuing command "reboot recovery" in adb or terminal

    flash_stock_recovery.zip (use recovery to flash it, restore stock recovery)

    flash_u-boot_and_MLO.zip (use it to restore bootloader and xloader)
    - Flash this if all you get is a black screen (no 'n' logo screen) when turning your Nook Tablet on.

    flash_stock_1.4.2.zip (use it to restore to stock 1.4.2)
    - After restart, it will take up to a couple minutes to setup data and system folder.
    - It'll be up to a couple of minutes before the setup screen shows up.
    - This is virgin stock rom, no root, no added apps, etc.
    - This rom will wipe your user data and cache so you don't have to. BACKUP beforehand.

    flash-restore-stock.zip (use it to restore partition 1-6)
    - Only use this as last measure. Meaning only if you formatted rom (p5) and bootdata (p6).
    - You will need to install flash_stock_1.4.2.zip afterward or a CM7 rom.
    - To get your serial number back, you need to perform factory restore (8 failed boot method)
    - The one that prompt,
    Clearing data…
    A reset is being performed.
    This may take a few minutes

    What’s not working:
    -Mic in Talking Cat/Dog apps. I can get the mic working but no audio so I choose audio but no mic.
    -Can't get mic to work same time as speaker.
    -XX and X. You tell me.

    Notes:
    - DO NOT FORMAT ANY PARTITIONS, ONLY USE WIPE DATA/FACTORY RESET
    - Use the forum search.
    - First time booting, you will see a long delay black (old)/2 android guys (new) screen until the android skate by.
    - To remount sdcard, go to settings/storage and mount your sdcard manually or reinsert your sdcard.
    - When restoring with Titanium Backup, restore manually the apps and data. You do not want old stuff getting restore and causing problem.
    - HW Decoding is limited to 3GP, 3G2, MP4, M4V, MKV, WEBM, H.264 (Baseline/Main/High profile) up to 1920x1080, MPEG-4 Simple/Advanced Simple profile up to 1920x1080, & H.263
    - Got Wifi problem, do Wifi calibration to see if it fixes it.
    - If your Nook Tablet go to sleep and never wake up, plug the USB power cable in and hold the power button for 30 seconds, release and repeat.
    - Got an extra Nook Tablet? Donate it to fattire so he can help getting ICS on Nook Tablet faster.
    - Screen goes crazy? Is it low on battery? Plugged in the USB power cable in.
    - What different in this CM7 build and Team B? Nothing much, we shared ideas.
    - There will be random problems.
    - RC stand for release candidate. Latest for NT is RC1
    - If your sdcard doesn't mount after reboot, take your sdcard out and put it back in and wait a few seconds for it to automount

    OLD SOURCE Mirrors:
    http://d01.megashares.com/index.php?d01=oAajznB
    http://www.mediafire.com/?96fa3zx95xiebeg
    https://www.rapidshare.com/files/4067595392/Nook-Tablet.zip
    http://depositfiles.com/files/k655wvhtc
    http://www.wupload.com/file/2675371217

    Extras in Old Source:
    .config – kernel configuration file
    boot.img – prebuilt boot image with modified u-boot from bauwks
    irboot.img – the modified u-boot needed to concatenate to custom boot.img
    zImage – prebuilt kernel with cifs, tun, and nfs modules built in and other stuffs.

    Credits:
    Bauwks for his exploit in 2nd boot.
    Team B+ (Goncezilla, CelticWebs, Indirect) for furthering Nook Tablet development.
    Whistlestop and JackpotClavin from Kindle Fire development for the device and vendor source.
    Fattire, Nemith, and Dalingrin for CWM, and works on Nook Color and Nook Tablet development.
    Koush, Cyanogenmod and XDA for home to many great developers.

    CM7.2 RC1 with Nexus S modified build.prop
    jzk8pk.png


    HD (succulent)
    11
    Need help?
    Post questions here.

    How to pack Nook Tablet (16gb) boot.img on Windows 7.
    http://www.freeyourandroid.com/guide/extract-edit-repack-boot-img-windows

    - Download and install Cygwin,
    http://www.freeyourandroid.com/guide/installing-cygwin-windows
    - Download packboot.zip and extract contents to C:\cygwin\packboot
    - http://mir.cr/1BTTGZ0V
    - Open Cygwin.bat, located in C:\cygwin
    - In the command box, type
    $ cd c:/cygwin/packboot
    $ ./packboot
    - Your new boot.img is newboot.img.

    Notes:
    - If you want to make an 8gb version newboot.img, replace the boot.img with a backup of 8gb version.
    - You can change the ramdisk in the folder “c:/cygwin/out/ramdisk”
    - You can replace the kernel, “zImage”.
    - You can replace the irboot.img with one that you make, the one included support both 8gb/16gb.

    How to compile CM7

    Install VirtualBox and Ubuntu with at least 20GB.

    Install the Build Packages
    Install using the package manager of your choice:


    For 32-bit & 64-bit systems:

    $ apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool

    For 64-bit only systems:

    $ apt-get install g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib

    NOTE: gcc-4.3-multilib g++-4.3-multilib is no longer available for Ubuntu 11.04 64-bit, but should still build without issue.

    NOTE: On Ubuntu 10.10, and variants, you need to enable the parter repository to install sun-java6-jdk:

    $ add-apt-repository "deb http://archive.canonical.com/ maverick partner"

    Create the Directories
    You will need to set up some directories in your build environment.


    To create them:

    $ mkdir -p ~/bin
    $ mkdir -p ~/android/system

    Install the Repository

    Enter the following to download make executable the "repo" binary:

    $ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
    $ chmod a+x ~/bin/repo

    NOTE: You may need to reboot for these changes to take effect.

    Now enter the following to initialize the repository:

    $ cd ~/android/system/
    $ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread

    If you don't want to download unnecessary device projects, open .repo/manifest.xml. Remove devices between device/common and external/alsa-lib.

    <project path="device/common" name="CyanogenMod/android_device_common" />
    - delete devices -
    <project path="external/alsa-lib" name="CyanogenMod/android_external_alsa-lib" />

    $ repo sync

    NOTE: This step takes a long time, depending on your internet speed. It will download several gigabytes of data. I recommend that you have a lot of hard drive space.

    Copy device and vendor folder from Nook-Tablet to ~/android/system/

    $ mkdir device/bn
    $ mkdir device/bn/acclaim
    $ git clone https://github.com/succulent/android_device_bn_acclaim
    $ mv android_device_bn_acclaim device/bn/acclaim
    $ mkdir vendor/bn
    $ mkdir vendor/bn/acclaim
    $ git clone https://github.com/succulent/android_vendor_bn_acclaim
    $ mv android_vendor_bn_acclaim vendor/bn/acclaim
    $ /vendor/cyanogen/./get-rommanager
    $ make clean

    Configure Build & Compile

    $ . build/envsetup.sh && brunch acclaim

    NOTE: This step takes a long time, time vary depend on your computer processing power.

    Copy your .zip file from ~/out/target/product/acclaim/update.cm-XXXXX-signed.zip to the root of the SD card.

    Your rom will contain recovery, MLO and U-boot.bin. (Only with new source)

    Replace the boot.img in the .zip file with one in Nook-Tablet. (Only with old source)

    Replace updater-script in the .zip file with one in Nook-Tablet. updater-scripte is in /META-INF/com/google/android/. (Only with old source)

    Flash .zip files from recovery. Wipe data/factory reset.

    References:

    Fattire's CM9 for NookColor Build Instructions
    https://docs.google.com/document/d/19f7Z1rxJHa5grNlNFSkh7hQ0LmDOuPdKMQUg8HFiyzs/edit?pli=1

    Barnes & Noble Nook Color: Compile CyanogenMod (Linux)
    http://wiki.cyanogenmod.com/wiki/Barnes_&_Noble_Nook_Color:_Compile_CyanogenMod_(Linux)
    3
    Thank you very much succulent for the kernel.

    Can I use it for my MIUI rom?

    Sure. For your information, if you use my kernel, you need to use the wifi contents in the vendor/../wifi folder or else your wifi won't work. Else, you can compile your own wifi modules. Modules depend on kernel version.
    3
    Added
    https://github.com/succulent/acclaim_recovery_sdcard/blob/master/dual_boot_sdcard_hd.zip
    Dual boot (CM7/CM9)
    - Instruction here (My blog)
    - Includes files for single/dual-boot sdcard
    - Boot to CM7/CM9 from sdcard with fattire's cyanoboot
    - Roms not included
    - Please don't post iso/img/prebuilt sdcard of this
    - http://www.youtube.com/watch?v=x6syVkhPQaM
    2
    Thank you for the tutorial! I finished building my first ROM from scratch last night thanks to you.

    Just a couple problems I ran into, perhaps I can help some others avoid them:
    -You must run vendor/cyanogen/get-rommanager before compiling
    -For Arch Linux users: mv /usr/bin/python /usr/bin/python.bak & ln -s /usr/bin/python2 /usr/bin/python
    -to compile with gcc 4.7 check this commit.

    I am looking forward to making some contributions to the community and improving the environment for this excellent little tablet. Thanks again!

    Good,

    I've added codes so that when you build CM7, it will include recovery.img, MLO, and u-boot.bin in the output zip. This way, it'll flash recovery into internal when you flash the rom. :eek: