yashsingh1/xdaforums huggingface dataset:
[Nook HD, HD+ Android Development] juasjuas:
It boots!! Am crying!! (Tears of joy) The image is rotated 180 degrees but it detects the touch ok

Edit: rotation is fixed here http://xdaforums.com/showpost.php?p=46404476&postcount=45 thanks to Wesnoth, so the issue is if the touch is still registered one inch to the upper right of the actual touch, as 2390 said once
[Nook HD, HD+ Android Development] :
Everyone, page 19 for working ovation and hummingbird ubuntu touch vivid downloads.

Ovation: http://xdaforums.com/showpost.php?p=60310865&postcount=185

Hummingbird: http://xdaforums.com/showpost.php?p=60329819&postcount=187

The rotation patch originally came from elsewhere. Anyway, I didn't notice hummingbird had separate code for that just below the ovation code and it should hopefully be working via the same change I made with ovation. And that should bring it on par to ovation.

You can either re-download the entire thing above where you can find the new link or try the small boot.img here if you still have the 2nd flashable zip which should work -> https://www.dropbox.com/s/hcko4ai0cpp1fna/boot-2nd.zip?dl=0

- Extract boot-2nd.zip, open up the flashable zip, and drag and drop boot.img into it replacing boot.img with the new one.

- OR do it your own way.

EDIT: New boot.img and link. Hummingbird needed its own version of the ovation patch. Please try this one and sorry 'bout that. Full flashable zip also updated with the new boot.img which should hopefully fix the touch problem.
[Nook HD, HD+ Android Development] juasjuas:
Still 180 degrees rotated and doesnt change when I rotate the Nook. The localization of the touch has changed, I think it will be nearly perfect when the screen totally rotates. Is someone else trying it? Thanks so much man!
[Nook HD, HD+ Android Development] :
Guess I could make a whole bunch of builds using differences hoping one gets it right and then throw them all up for testing. Need time on that though.

Oh, btw Ubuntu touch as-is (from what I know) rotates different from android. The inside rotates and the 'frame' doesn't and not everything rotates. Because I build using landscape the frame is always landscape. If that makes sense. I haven't tried portrait, but that would require a separate build. One can't be both. It might not be exactly correct, but its how I can explain it.
[Nook HD, HD+ Android Development] famewolf:
Is multirom or something similar around that would allow dual booting this and an android rom?
[Nook HD, HD+ Android Development] KyJelly69:
First, Thanks to sandsofmyst for all your hard work.

I've been watching here for resolution to the rotation issue on the hummingbird builds. I've even tried a few things of my own. I, and I'm sure many others would appreciate another attempt if possible. I might be able to test builds for you.

Thanks again.
[Nook HD, HD+ Android Development] :
EDIT: January 19 2016

Still not working. Didn't look at the logs, but it not longer shows the lockscreen at all and needs a force power off. Likely, won't give it another go, do to the last known error being from out of memory.

2015/11/02 21:47:50.459075 ERROR Info failed: org.freedesktop.DBus.Error.NoMemory: Launcher could not run (out of memory)

Nov 2 21:54:00 ubuntu-phablet dbus[365]: [system] Activated service 'com.canonical.SystemImage' failed: Launcher could not run (out of memory)
[Nook HD, HD+ Android Development] ShapeShifter499:
I've marked this thread as project abandoned, please start a new thread if you want to take over.
[Nook HD, HD+ Android Development] soulnatsu:
hummingbird ubuntu touch

Do you have the images for the hummingbird? Please send a download link if you do, all of the ones in the thread are broken
[Nook HD, HD+ Android Development] ShapeShifter499:
I don't have any copies sadly. I never downloaded any because people were reporting a rotation bug in these roms. Hopefully someone else has them, sorry I didn't have a copy.
[Nook HD, HD+ Android Development] 2390:
I've just been following the porting guide here https://wiki.ubuntu.com/Touch/Porting it says that is is updated for the 13.10 images, so when I finish, I'll let you know how it goes. If it works, I'll start a thread
[Nook HD, HD+ Android Development] :
yes. at the top of the guide is wip and has the todo and notes section which you will need to follow describing booting information you will need.
[Nook HD, HD+ Android Development] 2390:
Hmmm. Has anybody made progress on that? Could we use the boot.img from a working cm10.1?
[Nook HD, HD+ Android Development] :
Had tried that. Made it a bit further but still failed hard. Did check adb which did not start yet, but don't remember checking for kmsg - probably wouldn't exist anyway as have not seen one yet.
[Nook HD, HD+ Android Development] 2390:
I can't even figure out how to get the image compiled. I can't find the right files, or anything. I'll probably start from scratch when it is officially released
[Nook HD, HD+ Android Development] :
If you pulled in all the files at the start of the guide (not missed anything), its all setup quite good. Don't need any .repo changes and very few code changes for building:

The problem is that you need the blobs which are obtained from unzipping the cm device build (manually; via script [via adb] appears to be a bit broken - though playing around with it can help you find the vendor directory locations?) and bt proprietary files from the internet in order compile it. These files go in specific directories inside the vendor dir.

I also needed an entire directory from google. Its actually there already but for whatever reason different and breaks compiling at the end.

...oh, some code additions too to add in device directories like the guide says.

If it asks for a file called empty or whatever it was called, just create an empty file or search and copy one of the others which are 0 bytes anyway... and that's all it needed there.

There probably are a few more files to add in along the way.

this patch was needed as well http://paste.ubuntu.com/5883021/

That might be it.
[Nook HD, HD+ Android Development] 2390:
My laptop is acting weird, but I could post the files, it whatever you need from my nook, which is on cm10.1. Just let me know what to do.
[Nook HD, HD+ Android Development] :
So porting the latest builds... well, its a bit complicated. So complicated in fact that this guy for a different device doesn't want say how he did it. http://www.oppoforums.com/threads/q-ubuntu-touch.3908/page-8

I will try a bit more but so far booting remains broken and probably will remain so.
[Nook HD, HD+ Android Development] 2390:
Here is the thread from that guy. http://www.oppoforums.com/threads/wip-dev-ubuntu-touch-13-10.6109/ we may be able to port that, since he got that working. Is that feasible?
[Nook HD, HD+ Android Development] wesnoth:
I have created bootable system image. It start form sdcard. Works only base system, adbd and android into lxc (display, touch, wifi, etc don't work). If anybody can rebuild system in right way (because I used some file from cyanogenmod without rebuild, ex.: libwpa_client.so, libhardware_legacy.so) I can write how to create bootable sdcard.

UPD:

Look here: http://xdaforums.com/showpost.php?p=46312567&postcount=31
[Nook HD, HD+ Android Development] :
Guess there could maybe be a way to drop in certain files but if any of the changes for fixing boot are ones with device specific code... I might not know where to look. I still am not good with github but will check out his code over the next few days. Thanks :good:

edit: Briefly browsed the files. Some interesting bits. Will test this stuff starting tomorrow.
[Nook HD, HD+ Android Development] wesnoth:
OK. I created bootable emmc image. All what we need is:

green loader : http:goo.gl/ki9xez,

mkbootimg: http:goo.gl/Tx4vz5",

kernel and ramdisk.img from your ubuntu-touch build directory.

Next, create boot.img with mkbootimg:

mkbootimg --kernel kernel --ramdisk ramdisk.img --base 0x80000000 --cmdline 'androidboot.console=ttyO0 console=ttyO0,115200n8 def_disp=lcd2' --pagesize 4096 -o new_boot.img

After, concat green loader and new_boot.img:

cat new_boot.img >> head.img

, and replace boot.img in zip update file with just created.

Flash zip file from recovery

Reboot device

adb push android-ramdisk.img /boot/

It work, but looks ugly.
[Nook HD, HD+ Android Development] wesnoth:
Some photos. Image does not fill the entire screen and not fully visible. Touch and wifi works.

UPD: +1 screenshot with ro.sf.hwrotation=0; screen now is fine, but touch is rotated :(
[Nook HD, HD+ Android Development] jpisini:
Looks like you are getting close. Good work.
[Nook HD, HD+ Android Development] gmicalzoma:
This is Exciting!!! For now I have settle for Stock Rom with unknown sources and root enabled (thanks lepinlar & verygreen) using Next Launcher and it runs faster than any other ROM I have tried on SDCARD or EMMC (CM 10.1, CM10.2, Carbon and Xperia Carbon) on my Nook HD+

But Ubuntu is what I'm waiting for! I like using linux on the Desktop (PinguyOS) and on Server (CentOS 6) so can't wait for Ubuntu Touch to be available for the Nook HD+!!!

Thanks in advance to all that are working hard to get this available :good:
[Nook HD, HD+ Android Development] 2390:
Good. I don't know much about coding, but I could test. I also tend to be really obsessive so I will be researching this every day.
[Nook HD, HD+ Android Development] :
Well, learned more but nearly out of ideas again. Nothing I tried from looking at that devices code has done a single thing.

Might try pinpointing the exact problem in the next few days otherwise right now possibly will wait until the next port guide revision and hope it works then.

Edit: Progress ?

The fstab file the port guide talks about wasn't being included in the android-ramdisk.img. Has to be manually added. D'oh! Guess I finally know where the note in the guide was actually talking about. Reading it still confuses me. lol.

It has lengethened the boot time from 7 seconds to nearly 11 (my timing could be off a bit). So still something going on. Still nothing in the logs. But sweet progress.

Edit: I don't know if the fstab.$device file is good or not for booting. Devs of working ports have it included yet touch chat (maining list?) public entries has someone saying to get boot working first and not to worry about that file. All my tests with it failed yet all tests without it fail.
[Nook HD, HD+ Android Development] 2390:
Yay we got a bootable build working! We just need to get the files together and make a thread for this.
[Nook HD, HD+ Android Development] :
I didn't notice that before my post. lol.

Good stuff and good work wesnoth.

But, is that for the flipped build or old non-flipped preview? Don't see anything there for the flipped builds as the boot.img isn't all that's needed.
[Nook HD, HD+ Android Development] wesnoth:
System in photos from other thread is flipped (android into lxc).

There are no fstab required into android-ramdisk.img.

70-ovation.rules was created with command from manual (http: goo.gl / 1XsLAC).

Other files (like bluetooth-touch-ovation.conf, ubuntu-touch-session.d/ovation.conf) was created as as copy of existed defaults.

P.S. While I have less then 10 posts, I cant create posts into developer threads. Thats why I will create them into "general" thread.

P.P.S. I will upload bootable image after fixing reversed touch (accelerometer is done)
[Nook HD, HD+ Android Development] 2390:
He also included some extras, like greenloader
[Nook HD, HD+ Android Development] wesnoth:
Did the dirty hack to fix reversed touch (actually Barnes & Noble did it before me).

Link to ubuntu-20131010-UNOFFICIAL-ovation.zip: http://goo.gl/3udgQV

Link to android-ramdisk.img : http://goo.gl/F4LmE5 (put it into /data/ubuntu/boot)
[Nook HD, HD+ Android Development] knight master:
Great work how can I flash this :)
[Nook HD, HD+ Android Development] wesnoth:
It can be flashed from recovery (cwr, twrp), like cyanogenmod.

Dont forget to flash root file system, ( http://cdimage.ubuntu.com/ubuntu-to.../current/saucy-preinstalled-phablet-armhf.zip)
[Nook HD, HD+ Android Development] wesnoth:
Patch to fix touch and accelerometer in attach.

With this path, set "OVATION_ORIENTATION_LANDSCAPE=y" in kernel config, and use ubuntu mir or use surfaceflinger with ro.sf.hwrotation=0 in build.prop.
[Nook HD, HD+ Android Development] :
Will be trying it any minute now... what you did to get it to boot is what I want to know ;)

boot has been bugging me badly. lol

Tip for the internet or anyone else. mkbootimg --pagesize bad address usage: fails to make image with --pagesize defined:

The mkbootimg included with the ubuntu touch code is the only one that works for me with --pagesize and is also the biggest I've seen at 38.5kb. -As I finally just figured it out and can't find any info on it at all. So there you go.
[Nook HD, HD+ Android Development] 2390:
Now how can we port it to the Nook HD? That's the one I have.

---------- Post added at 11:44 PM ---------- Previous post was at 11:05 PM ----------

And, when we get the hummingbird part, how do we install it? Do I just flash it like a ROM then the image from canonical?

---------- Post added 13th October 2013 at 12:27 AM ---------- Previous post was 12th October 2013 at 11:44 PM ----------

I'll just flash it and hope for the best, of it messes up, I can reflash something from SD. #YOLO
[Nook HD, HD+ Android Development] :
This fails for me. Stuck at cyanoboot logo 10 minutes and nothing. No adb, no log info.

My assumption is that we have different end results with how it was compiled thus my files fail with that head.img.

unmkbootimg on head.img or combined boot.img results in 0bytes for initramfs so I can't see anything. Though I do see your using the board kernel base and cmdline that the official cm's are using and not what's in boardconfigcommon.mk (obviously for green loader).

If I can get a bootable build I would give it a go. Maybe wesnoth will?
[Nook HD, HD+ Android Development] 2390:
He posted a boot able build, but it is for ovation (HD+). We just need to port it to hummingbird (HD). I tried to adjust the assert line in the updater-script, but when I went to flash it, it said installation aborted. That's all I know.

---------- Post added at 02:21 AM ---------- Previous post was at 02:20 AM ----------

Here's the links to his build: Link to ubuntu-20131010-UNOFFICIAL-ovation.zip: http goo.gl /3udgQV

Link to android-ramdisk.img : http goo.gl /F4LmE5 (put it into /data/ubuntu/boot)
[Nook HD, HD+ Android Development] Amirusownsu:
This is wonderful news! I will wait for a 'stable' build since I'd probaly brick my first device with something this experimental.
[Nook HD, HD+ Android Development] hahyun6:
This is reaaally awesome. But I think you should make a new thread and Label it as Nook HD+. So more people could find this.
[Nook HD, HD+ Android Development] :
The logs are filling up and upstart is working, etc... but these are either not fully booting touch or there is no display. Will post some logs later if possible.
[Nook HD, HD+ Android Development] wesnoth:
Check adb. If it's runnig, check lxc with (in adb shell):

lxc-info -n android

If lxc runnig you can execute android-chroot to enter lxc. And after run logcat to see logs.
[Nook HD, HD+ Android Development] 2390:
But how do we port it to hummingbird?
[Nook HD, HD+ Android Development] juasjuas:
Is there a rom for hd+,isnt it? So why do not we all focus on hd??
[Nook HD, HD+ Android Development] 2390:
Because they are basically the same device except for the screen so porting it should be easy. Unfortunately, Ubuntu is my area of expertise, not Android.
[Nook HD, HD+ Android Development] wesnoth:
Build it by yourself?

I can try to do it, but without any warranty, I have not Nook HD for tests.
[Nook HD, HD+ Android Development] 2390:
I really don't know how to build it myself. If you can port it, I will test it. If worst comes to worst, I can flash a ROM via SD.
[Nook HD, HD+ Android Development] :
adb isn't running. /var/logs/* attached.

Tried it a few times now. Always the same.
[Nook HD, HD+ Android Development] wesnoth:
ubuntu-20131013-UNOFFICIAL-hummingbird.zip

I used firmware and greenloader from cm-10.1.3-hummingbird.zip.

NOT TESTED AT ALL. USE AT YOUR OWN RISK.
[Nook HD, HD+ Android Development] 2390:
Thank you. Testing immediately.
[Nook HD, HD+ Android Development] wesnoth:
Link to my version of 70-ovation.rules in some post above.

First time I have got an error while running /etc/init/android-tools-adbd.conf, you can try to set "manufacturer", "model", "serial", "idVendor" (2080) and "idProduct"(0005) manually or try to configure your host system to work with "18d1" and "D002".

UPD: if your host system is linux, post dmesg after connecting tablet.
[Nook HD, HD+ Android Development] :
Just got dmesg. new logs with dmesg attached. This is way more techincal than what I know. lol.

Had tested with my rules file as well but will try with yours sometime later. Thanks.

[ 9.574127] init: powerd main process (608) killed by SEGV signal

[ 9.574188] init: powerd respawning too fast, stopped

[ 10.493286] init: lxc-android-boot main process (330) terminated with status 1

[ 10.538696] systemd-udevd[677]: starting version 204

[ 10.940216] systemd-udevd[691]: could not open moddep file '/lib/modules/3.0.31-green+/modules.dep.bin'

[ 11.935943] init: failsafe main process (794) killed by TERM signal
[Nook HD, HD+ Android Development] juasjuas:
Does it turn on? I am rooting to test it! :good: :highfive:
[Nook HD, HD+ Android Development] 2390:
It goes past the cyanoboot loader to a blank screen, I know it is on because I see the backlight
[Nook HD, HD+ Android Development] wesnoth:
I need dmesg from host system, not tablet.

Did you flash root file system, and after put android-ramdisk into /data/ubuntu/boot? What about adb (if no adb, I also need dmesg)?

To all, use my version of android-ramdisk.img, it has some modifications to.
[Nook HD, HD+ Android Development] 2390:
the ramdisk would be it. Do I push it through adb or what?
[Nook HD, HD+ Android Development] wesnoth:
Yes,

adb push android-ramdisk.img /data/ubuntu/boot/
[Nook HD, HD+ Android Development] 2390:
Thanks. I will test this as soon as I get home.
[Nook HD, HD+ Android Development] Amirusownsu:
How is the release for the HD+ looking?
[Nook HD, HD+ Android Development] 2390:
One more thing. Do I access adb through clockworkmod or the black screen?
[Nook HD, HD+ Android Development] wesnoth:
Does not matter. "/data/ubuntu/boot" is for CWM. For "black screen" path will be "/boot".

OK. I have tried to do everything from beginning. File "70-ovation.rules" must be in "/lib/udev/rules.d/".

UPD:

hummingnird android-ramdisk.img

70-hummingbird.rules
[Nook HD, HD+ Android Development] 2390:
Okay, I'm home and will begin in a minute. I will probably use the CWM aroma file manager.

---------- Post added at 01:38 AM ---------- Previous post was at 01:15 AM ----------

I pushed the files. The backlight turns off, then it reboots. What should I do?

---------- Post added at 02:00 AM ---------- Previous post was at 01:38 AM ----------

I try to fetch a logcat but it just sits there saying waiting for device.

---------- Post added at 02:11 AM ---------- Previous post was at 02:00 AM ----------

Turns out, I have no ADB except for in CWM
[Nook HD, HD+ Android Development] wesnoth:
Try this (tablet in recovery):

adb shell
ls -lR / > /data/list.txt

Then

adb pull /data/list.txt

And post it here.
[Nook HD, HD+ Android Development] 2390:
I will as soon as I get back from school around 3:30 EST
[Nook HD, HD+ Android Development] 2390:
I keep trying but i can't get the command to work, did you misspell something?

---------- Post added at 10:46 PM ---------- Previous post was at 10:15 PM ----------

it says /data/list.txt: No such file or directory
[Nook HD, HD+ Android Development] wesnoth:
My fault. Of course there must be "ls -lR / > /data/list.txt" and "adb pull /data/list.txt".
[Nook HD, HD+ Android Development] 2390:
Okay, here it is. The file was too big as a txt, so I had to compress it into a zip.
[Nook HD, HD+ Android Development] wesnoth:
adb push 70-hummingbird.rules /data/ubuntu/lib/udev/rules.d/
adb push android-ramdisk.img /data/ubuntu/boot/

Files attahced here
[Nook HD, HD+ Android Development] 2390:
Hmmm, I could've sworn I had already done that. Oh well, I'll try again

---------- Post added at 10:29 PM ---------- Previous post was at 10:27 PM ----------

It boots! Yayyyyy!!!!!

---------- Post added at 10:31 PM ---------- Previous post was at 10:29 PM ----------

but the touch screen is rotated

---------- Post added at 10:32 PM ---------- Previous post was at 10:31 PM ----------

and the power button locks the device, but not unlock

---------- Post added at 10:42 PM ---------- Previous post was at 10:32 PM ----------

I figure that since the 70-hummingbird.rules was to fix touch and rotation, omitting it may fix it, right? I will try that and post the results
[Nook HD, HD+ Android Development] wesnoth:
Actually it is unconfigured powersaving (brightness is set to zero when screen locks, but don't restore after). You can exec:

echo 180 > /sys/class/backlight/panel/brightness

in adb shell to set brightness to 180 (it can be from 0 to 255).

No. Touch fix is in kernels module patch, in some posts above. You will need to recompile kernel, create boot.img and flash it.
[Nook HD, HD+ Android Development] 2390:
Okay, omitting it keeps it from booting.

---------- Post added at 10:51 PM ---------- Previous post was at 10:47 PM ----------

How do I do that?

and doing that gets me /sbin/sh: can't create /sys/class/backlight/panel/brightness: nonexistent directory

and still no adb in ubuntu touch
[Nook HD, HD+ Android Development] 2390:
Anything? I don't know what to do.
[Nook HD, HD+ Android Development] 2390:
How do I apply the patch to the boot.img?
[Nook HD, HD+ Android Development] :
I just finally tried again and it worked. Made it a bit easier though by using the two attached .zip files for those interested.

No adb needed. Just install from recovery. Nook hd+ EMMC

Update: I'm installing from emmc cwm recovery and with the .zips downloaded to internal storage. This version is for emmc install NOT for the sdcard.

I don't know how it will react if installed via sdcard based recovery as well.

There may be other scenarios where it may fail as well?

Try at your own risk. Though it works for me nor have I been able to brick my nook from it and the many tests.

For those interested with trying ubuntu touch on EMMC four files need to be installed. The .zip above, preferably the latest ubuntu's touch-armhf.zip, and the two attached .zip's. Then reboot. Should install them in that order as well.

You can't really keep it installed at the moment as screen wake seems to be broken, no sound, and plenty more problems.

oh, time of black boot screen of nothing after the cyanoboot logo with the trusty tahr builds might be around 32 seconds first boot. That's the time on my device. In total boot from nook logo appearance could be one minute? haven't timed that yet.

Thanks wesnoth. Now I still need to figure out how to get my build working and you gave a working path. Edit: I finally just did get my own build working.
[Nook HD, HD+ Android Development] sykozylot:
ooo this is exciting. thanks for working on this. is this somewhat usable, or still in the incomplete testing stage?
[Nook HD, HD+ Android Development] DigitalHeretic:
I would really love to see this on my HD. Thanks to anyone/everyone putting their time and effort into it!
[Nook HD, HD+ Android Development] :
Far from usable. Even web browsing has problems.

But it is quite interesting and all the time can download a newer version that will one day work ok enough.
[Nook HD, HD+ Android Development] 2390:
But could somebody please modify the hummingbird build with this patch? I don't exactly understand how to apply it, or compile the new boot.img. Here is the hummingbird build, and the patch. Wesnoth said to apply the patch, then compile just the boot.img. If somebody can do this, I will be able to fix the screen wake, but I need this applied.

Link to hummingbird build: https://docs.google.com/file/d/0B-fECsavT6NkM2M0Z2dsVXphM1k/edit?usp=sharing&pli=1