yashsingh1/xdaforums huggingface dataset:
[Barnes & Noble Nook Tablet] arcon2600:
New patch, there shouldn't be a gpio_wp pin assigned to begin with...

Also, this is tested on my 8GB, I don't have a 16GB to test with.

diff --git a/arch/arm/mach-omap2/board-nooktablet.c b/arch/arm/mach-omap2/board-nooktablet.c

index de38b5c..a10dd93 100644

--- a/arch/arm/mach-omap2/board-nooktablet.c

+++ b/arch/arm/mach-omap2/board-nooktablet.c

@@ -684,7 +684,7 @@ static struct omap2_hsmmc_info mmc[] = {

.mmc = 1,

.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA | MMC_CAP_1_8V_DDR,

// .gpio_cd = -EINVAL,

- .gpio_wp = 4,

+ .gpio_wp = -EINVAL,

.nonremovable = false,

// .no_off_init = true,

#ifdef CONFIG_PM_RUNTIME
[Barnes & Noble Nook Tablet] C64assembly:
Build environment ready but cannot use repo command

HI! i would love to build a zip with the new kernel but i cannot use the repo command in the terminal in Linux Mint latest build. I have downloaded Android SDK and all the required build libraries and set up all the directories. i have the NTsparkkernel folder in the android directory. Could anyone offer some advice on how to apt-get (the REPO module) so I can build the zip. Thank you for your time. Bruce
[Barnes & Noble Nook Tablet] fattire:
about repo

The repo command is actually something you get from Google. It's not in the apt-get repositories.

To install the repo script:

mkdir -p ~/bin

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

chmod a+x ~/bin/repo

The repo binary will be in ~/bin and you can add this to your path if you like.
[Barnes & Noble Nook Tablet] fattire:
Confirmed by chrmhoffmann and committed. Thank you!
[Barnes & Noble Nook Tablet] Danrarbc:
Thank you for this guide. I've compiled stuff before, but built my first Android from source last night. Although the build from that time has random reboots (the nature of the beast).

I'll be building quite a bit I think :)
[Barnes & Noble Nook Tablet] Anon9mouz:
Damn see I'm just porting right now I wanna build from source but my PC isn't Linux friendly yet I'm waiting on a tb internal so I can set up and learn this but it just looks so complicated and idk why. I feel once I learn it probably be easy as hell. Thanks Fattire

__________________________________________________
[Barnes & Noble Nook Tablet] fattire:
Hey congrats and welcome to the club!
[Barnes & Noble Nook Tablet] C64assembly:
Cannot Make the bacon...

Hey Fattire! Thank you for your guide. I was able to finally download the source for cm9 and add the 3.0 kernel repository. I have everything in one folder. I am new to Linux and had to add a Path command to get Repo Sync to work correctly. Once I got the Repos I ran into another problem trying to issue command cd ~/android/system/vendor/cm , then enter “./get-prebuilts”. The Make Bacon and or Croot <enter> brunch acclaim does nothing either. It seems I am missing somthing here. Maybe a different distro of Linux besides Mint would work better for me... getting close to building (i hope). Thanks!

I have to issue PATH=~/bin:$PATH every time I repo sync.
[Barnes & Noble Nook Tablet] Keithn:
I use Ubuntu here I started with 10.04 LTS since it was the the build used and supported by Googles build instructions. Yous should still be able to do it though.

Did you initialize the build environment using ". build/envsetup.sh" at android/system (it looks like is the base of your source from your post)
[Barnes & Noble Nook Tablet] C64assembly:
Yes. Thank you for your advice KeithN. I am going to start from scratch. I might just put Ubuntu 10.04 on my comp tonight if I cannot get it to build properly.
[Barnes & Noble Nook Tablet] TheForceUnleashed:
I'm going for Ubuntu 12.04 command-line. If that doesn't go well, I'll go for 10.04 as well.
[Barnes & Noble Nook Tablet] Danrarbc:
I built mine on 12.04 (Xubuntu, but that doesn't matter so much).

I added a debian sqeeze apt repository to get sun-java6-jdk, then used -f install when it complained because one of it's dependencies exists in Ubuntu but not that same version #. Commented out the repository after it installed so I don't get more debian packages on accident. For everything else I think it was just following the guide as-is.
[Barnes & Noble Nook Tablet] fattire:
Yes, I had recommended doing that. The PATH=$PATH:~/bin command will ensure that no matter what directory you type "repo", it'll know where to find the file.

Instead of entering it every time, you can add that PATH statement so that it's automatically invoked when you open a new Terminal window.

Just add the line to an "invisible" file (it's invisible because it starts with a period (.) and won't show up in a normal listing) called .bashrc in ~/.bashrc (the ~ is a shortcut for your home directory, or /home/youraccountname/). The hidden .bashrc file will probably exist already. Just add the statement to the end.

This is right. Try this:

$ cd ~/android/system

$ . build/envsetup.sh

(the $ represents the prompt and should not be typed. For the second command, it's literally a period followed by a space followed by build/envsetup.sh)

I am using the latest 12.04 ubuntu, fwiw.
[Barnes & Noble Nook Tablet] Keithn:
I know this is for CM9, but any help would be appreciated (trying aokp). I had issues with the packaging of the .zip it looks like. I was able to build for my fascinate so I know the source will build. Any suggestions?

Output
[Barnes & Noble Nook Tablet] fattire:
One of the hardest/custom parts of setting up the device for acclaim was getting the funky format of the boot.img to build on-the-fly. The unusual format is due to the 512 block offset that is required by the 2nd bootloader, due to the locked bootloader bug introduced by BN. I'm guessing the makefiles for generating the build may need to be adjusted as it looks like it's choking on an extra flag "--no_assert" being passed to releasetools/acclaim_ota_from_target_files. It doesn't know what that is, and I don't either... you could probably just adjust that file to be able to handle it. (If nothing else you could easily make the file ignore it and see what happens.)

GL
[Barnes & Noble Nook Tablet] C64assembly:
Building now

I am finally building the rom. I get a few complaints here and there but the acclaim mainifest for 3.0 kernel was found. Hopefully i will see a good .zip at the end.
[Barnes & Noble Nook Tablet] succulent:
Here are a few screenshots (from bootable sdcard :eek:)
[Barnes & Noble Nook Tablet] Demetris:
It seems the memory is being eaten by the kernel, is there something to be done?

Is this normal?

Only 583mb is very weird.
[Barnes & Noble Nook Tablet] Kuzma30:
http://e2e.ti.com/support/omap/f/849/t/179554.aspx

It is normal.
[Barnes & Noble Nook Tablet] C64assembly:
cant find update.zip in $out directory

Fattire, Eyeballer, KeithN. I completed building the rom but I cannot find the update.zip in the $out directory. I must have missed something. IF you can help, here is my pastebin. http://pastebin.com/0vs593u9 Thanks for all the fish! :)
[Barnes & Noble Nook Tablet] chrmhoffmann:
Your build failed, so you don't have a zip file. You have to get a working build first. Maybe check java version that you're using? Or try to repo sync again.

Chris
[Barnes & Noble Nook Tablet] C64assembly:
i think this is the culprit

Ok. I believe i have found my error but i'm not sure how to fix it. Here is a paste of my terminal.

cp /home/bruce/android/system/.repo/repo/repo /home/bruce/bin/repo

error: '/home/bruce/android/system/.repo/repo/.git/clone.bundle' does not look like a v2 bundle file

fatal: Could not read bundle '/home/bruce/android/system/.repo/repo/.git/clone.bundle'.

Is this an easy fix? Thanks Chris for your help!
[Barnes & Noble Nook Tablet] fattire:
I googled for the issue and came up with this at stackoverflow. They say maybe things got corrupted and to repo init/repo sync again.
[Barnes & Noble Nook Tablet] C64assembly:
Thank you.

I repo the ics repository and bn kernel build files and i am not getting any complaints during the build now. Eyebsller mentioned somthing about a corrupted git repo when he wss trying to build his nightly yesterday. I hope all is well now. Looking forward to my first rom build. Thanks for all your help!
[Barnes & Noble Nook Tablet] eyeballer:
Yep, everything is fixed now, it was only broken for a short time but that happened to be when the acclaim sync occurred.
[Barnes & Noble Nook Tablet] raywaldo:
Java 6 or Java 7?

Ubuntu 12.04, 32bit laptop

I finally got about 20gb of files downloaded with the repo sync -j16 command. No errors.

I followed the other steps to prepare everything but when I try to run the brunch acclaim, I get two errors:

At the beginning, I get

ray@ray-e1505:~/android/system$ brunch acclaim
including vendor/cm/vendorsetup.sh
Looking for dependencies
Dependencies file not found, bailing out.

Then, before it stops, iit says that I have the wrong version of java:

============================================
Checking build tools versions...
************************************************************
You are attempting to build with an unsupported version
of java.

Your version is: java version "1.7.0_04".
The correct version is: Java SE 1.6.

Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
************************************************************
You are attempting to build with the incorrect version
of javac.

Your version is: javac 1.7.0_04.
The correct version is: 1.6.

Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
build/core/main.mk:147: *** stop. Stop.

So, I followed the instructions and added the repository, then tried to install Java6 but it is not available:

ray@ray-e1505:~/android/system$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
oracle-java7-installer

E: Package 'sun-java6-jdk' has no installation candidate

I read online that the OpenJDK is incompatible and may be causing the problem. I uninstalled it and reran everything. Same results.:confused:

Sign me "Stumped"
[Barnes & Noble Nook Tablet] Danrarbc:
Java 7 doesn't work for whatever reason. That's why I added a Debian Squeeze repo temporarily to get sun-java6-jdk.
[Barnes & Noble Nook Tablet] succulent:
Follow this guide to set up environment,

http://source.android.com/source/initializing.html

I use this command for building,

$ . build/envsetup.sh && brunch acclaim

For 3.0.x device source, you need the 3.0.x kernel folder to be /kernel/bn/acclaim
[Barnes & Noble Nook Tablet] raywaldo:
Dependencies file not found

Followed the guide, folder structure is correct, & I used your command.

This is the result. Any advice?

ray@ray-e1505:~/android/system$ . build/envsetup.sh && brunch acclaim
including device/bn/acclaim/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
Looking for dependencies
Dependencies file not found, bailing out.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_acclaim
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76I
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_acclaim
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76I
============================================
build/core/main.mk:324: implicitly installing apns-conf_sdk.xml
build/core/java.mk:20: *** dalvik/dexgen: Invalid LOCAL_SDK_VERSION '4' Choices are: current . Stop.

Closer (I think) but still no "seegar"!

---------- Post added at 08:00 PM ---------- Previous post was at 07:34 PM ----------

I read somewhere in that document that you need to have a 64bit machine. Is that absolute? My old laptop is 32bit. Could that be my problem?:confused:
[Barnes & Noble Nook Tablet] succulent:
I googled and this thread came up. It have similar problem as you in the Q&A. http://xdaforums.com/showthread.php?t=1604076

I am on a 32bit Win7, but I ran Ubuntu 10.04 64Bit in VM. It's recommended that you compile CM9 in 64bit. I am not sure if you can't in 32bit.

One thing I forgot to mention, CM9 required a lot of ram, I would suggest giving the VM at least 2.5GB of ram.
[Barnes & Noble Nook Tablet] raywaldo:
build/core/java.mk:20: - solution!

I found this in a FAQ from Benjaminwynn: http://xdaforums.com/showpost.php?p=24957848&postcount=1

I issued the command, "rm -rf prebuilt; repo sync -l prebuilt". It took a while but afterward, I was able to start the compile. It has been running for over an hour and it is still running so I cannot tell if it will be fully successful but I suspect that it will. :)

---------- Post added at 10:44 PM ---------- Previous post was at 10:35 PM ----------

I am running native Ubuntu 12.04 on an old Dell Laptop with a 32bit, Intel® CPU T2400 @ 1.83GHz × 2 & only 2gb of memory. So, the compile is very slow (about 2 hours so far) but it is still running. :cool:

Oh, and thanks for the link. However, it is the same one that I found a couple hours ago and got the compile going.

BTW, I have commented about these things on the original "walk-thru" document. I hope it will help some other noob.
[Barnes & Noble Nook Tablet] raywaldo:
CM9 compile will not run on NT8

I finally got the "walkthru" script to complete last night. It took about 4 hours but did produce an update.zip. I have an NT (8GB). I used the 3.0 kernel. The update will not run on my NT (surprise!) :D

The device boots through Cyanoboot and then just goes black. I am sure it is "on" because when I hold the power button, it does not light up BUT... If I continue to hold it for 30 seconds, then release and then press it again, it will power on within a few seconds. It then goes to Cyanoboot and I can run recovery.

Lots of questions. But here are the most pressing:

I was unable to find the logs. can someone point me to them?

How do I change to the older kernel?

When (if?) I get it to run on an NT8, how do I make changes to the setup?

Thanks for this intriguing :rolleyes: project!
[Barnes & Noble Nook Tablet] fattire:
First off-- a huge congratulations is in order. You've built a kernel, an operating system, all in one go... nice!

The hold for 30seconds-to-reboot is a feature of the nook... you can always hold the power down and get a restart..

Right now the 3.0 kernel isn't compatible with the 8G NT due to issues described in the kernel thread. You are certainly welcome to fix them though, and they should be fixable, since the Fire runs with 512MB... The kernel actually DOES run at 512MB-- if you install the recovery.img or recovery.img.sdcard that resulted from your build-- this is clockworkmod-- it will be using the 3.0 kernel, even on 8GB nooks...
[Barnes & Noble Nook Tablet] ShinnAsuka:
Lots of errors when trying to build

Hey all I get a lot of errors when trying to build. Here is a pastebin link for those who would like to offer assistance. Thanks!

pastebin.com/8N88TnC4
[Barnes & Noble Nook Tablet] raywaldo:
Error 1

Did you install this?

sudo apt-get install tofrodos

The walk-thru offers that advice at the bottom.:)
[Barnes & Noble Nook Tablet] ShinnAsuka:
yea i did. i just tried installing libc6-dev-i386 and it seems to be compiling... not sure if it will be successful though.

thanks for your input.
[Barnes & Noble Nook Tablet] raywaldo:
Run the 3.0 kernel

I am confused! :confused:

Are you saying that the recovery.img that I built last night INCLUDES the 3.0 kernel? That cannot be. I just used fastboot to flash that image to my running CM9a.04 and it still reports 2.6.35.7+ for the kernel.

I am willing to try to run the 3.0 kernel. Where can I download it?
[Barnes & Noble Nook Tablet] fattire:
LMGTFY.
[Barnes & Noble Nook Tablet] fattire:
Yes, the recovery you built, assuming you used the steps in the walkthrough, should build the 3.0 kernel (aka $OUT/kernel) and should use it in the recovery. Is it possible you flashed the wrong recovery.img or you didn't include the kernel source in kernel/bn/acclaim? If the source isn't there it will fallback to the prebuilt 2.6.35 kernel.
[Barnes & Noble Nook Tablet] raywaldo:
3.0 kernel

I used the command from the doc...

IF BUILDING FOR ORIGINAL MODEL AND/OR WANT TO BUILD EXPERIMENTAL 3.x KERNEL...
curl http://pastebin.com/raw.php?i=5JEx9Uf4 > ~/android/system/.repo/local_manifest.xml

I assumed that meant that I would be compiling the 3.0 kernel.

Evidently, it included. Here is a portion of the readme from the kernel/bn/acclaim folder:

Linux kernel release 3.x <http://kernel.org/>

These are the release notes for Linux version 3. Read them carefully,

Is there a way to flash the kernel that I built?
[Barnes & Noble Nook Tablet] C64assembly:
Well this is my third time trying to set up the build environment properly to build a rom. Every tutorial varies slightly and that is all it takes to mess up and not build the rom. I would like to know the straightforward approach, sudo apt-get install comaand by command, that will create a sucessful .zip at the end. I have had problems associating the android framework with the programming environment thingy ;) using the Https://... I was able to get repo working and make bacon... And it seems like the rom will build but norhing in the end.
[Barnes & Noble Nook Tablet] raywaldo:
I don't use the bacon command. Here is what I use (thanks Succelent) :

Follow this guide to set up environment,

http://source.android.com/source/initializing.html

I use this command for building,

$ . build/envsetup.sh && brunch acclaim

For 3.0.x device source, you need the 3.0.x kernel folder to be /kernel/bn/acclaim
[Barnes & Noble Nook Tablet] raywaldo:
Is it building the 3.0 kernel from kuzma's thread?
[Barnes & Noble Nook Tablet] fattire:
It should build the kernel that you built into the recovery.img as well as boot.img and the update.zip.... it should all be there.

It sounds like perhaps you haven't installed all the packages... if you do sudo apt-get install [the package you want to install] it should install it, assuming you're using ubuntu or debian, which it sounds like you are.

Yes. It should.
[Barnes & Noble Nook Tablet] old_fart:
About the Android SDK ( and i apologize if this post is in the wrong place )

q: do i need the 'Android SDK Tools, revision 19" because it will not play nice ( for me ). i "keep" getting :

[post_tools_install.bat] Error: The process cannot access the file because it is being used by another process.
[Barnes & Noble Nook Tablet] rigbyrobot:
If I built with Oracles java 7 jdk, is there a possibility of a successful build or is it more likely to fail to build or build and produce a zip that will brick my nt? Also, I believe it is possible to run 2 versions of java on the same machine (ie. open 6/ Oracle 7) then open a jar with a specified version with pretext cmd. Will it build ok if say I built with jdk 6 but also had 7 installed, for say a minecraft server.
[Barnes & Noble Nook Tablet] fisherwei:
sorry, ignore this post.
[Barnes & Noble Nook Tablet] ShinnAsuka:
i don't even think its possible to build with java 7 because if you follow the instructions when you start to build it will say something like you having the incorrect java version.

therefore its best to install sun java 6 latest update and build with that.
[Barnes & Noble Nook Tablet] lenardo:
i am slowly working on this, it has taken about 8hrs so far for me just to get to the point where i am starting to download repositories... but i'm remembering all the old unix/linux commands from my college days (took pascal & assembly, and a few other languages way back when (1985 & 86)
[Barnes & Noble Nook Tablet] fattire:
Hey congrats.. let us know how it goes and if ya have any questions if ya get stuck... someone here can help ya no doubt :)
[Barnes & Noble Nook Tablet] raywaldo:
Still in dumb noob mode

I just ran another compile and here is a portion of the terminal output:

recovery_api_version = (int) 2
recovery_size = (int) 15728640
system_size = (int) 641728512
tool_extensions = (str) device/bn/acclaim/../common
userdata_size = (long) 12949893120
using device-specific extensions in device/bn/common
unable to load device-specific module; assuming none
For acclaim we keep the boot.img as done by boot.mk

I have four questions:

Is the fact that the userdata_size 12gb a problem for the 8GB Nook?

What is the "device-specific module" & is there a problem because it is missing?

What is the "config" file that I would edit to make changes in the compile?

Where are the logs that save the entire output of the process?

Thanks. I know these are dumb questions but I just cannot find the answers. :o

Ray
[Barnes & Noble Nook Tablet] raywaldo:
Recovery

My build does not seem to compile the recovery.img.sdcard file correctly. I burned it to an sdcard with dd & it reports version 5.0.2.8. I thought the latest version was 5.5.0.4? How do I get that? Isn't that the only version that will load the 3.0 kernel onto an NT8?

I uploaded a screenshot of the file list that the build creates.
[Barnes & Noble Nook Tablet] lenardo:
I'm having a problem getting the repository. i've got java 6 got the android , get to the part where you do the repo init blah blah then the get the manifest fine, but then when i go and do repo sync -j16 i think the command is, it fails to finish -every time- i have run it 5 times with repo sync, with and without the -j16 it fails on getting to the android builds, it runs the sync for 3hrs then fails.

is it my machine (it's an OLD laptop- dell inspiron 9100) like i suspect or something else
[Barnes & Noble Nook Tablet] succulent:
Edit your manifest.xml to remove the -jx part,

<default revision="refs/heads/ics"

remote="github" />

Do 'repo sync', don't bother with -jx. You can do 'repo -trace sync' to see details.
[Barnes & Noble Nook Tablet] lenardo:
will try tomorrow, i took my notebook to work to plug it into the router there for a direct connection-instead of using my wireless (which -on the notebook- sucks-on my nook tablet it works great- and i cannot find my 200Mps powerline adaptor to route it thru my electric lines to downstairs) and left it there when i left for home- of course i have to clean the computers up in my office, i have 3 nonworking computers atm just sitting there- one working but for some reason it does not recognize that i have a usb mouse and keyboard using windows 7- i might wipe that one's hard drive and install ubuntu on that if the notebook ends up being too slow-provided i can get it to recognize that i have a mouse/keyboard plugged in..

thanks
[Barnes & Noble Nook Tablet] raywaldo:
Ubuntu on Thumb Drive

Sounds like you need to revise some settings in the BIOS for the computer.

Ubuntu will find the mouse & keyboard UNLESS there is a hardware or BIOS issue. You will be using them BEFORE you actually do the install. :cool:

BTW, I have an instruction on my site for building a bootable USB thumb drive with Ubuntu. You can run it on a Windows machine without changing Windows or installing Ubuntu. http://raywaldo.com/2012/06/how-to-create-a-live-thumbdrive-of-ubuntu/