yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy Note I717] GPFerror:
Attempted Ubuntu Touch port

I saw this thread a couple days ago and decided to try and port it. It boots up to the Ubuntu Phablet Login: prompt and then just sits there. I can't access it over adb to figure out why it is failing to load the GUI. It does display text on the screen when I tap the screen or unplug the usb cable so it isn't frozen.

I added a kernel cmdline parameter to stop it at the bottom of the initrd sequence and was able to pull the attached kmesg over adb.

Maybe someone can look at it and see why it is failing.

Thanks,

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
I'll play with it this weekend, at least they have a kernel with working framebuffer, maybe a USB keyboard with OTG cable could switch into a VT and do something. If it's Ubuntu I wouldn't expect adb to do anything since that's an Android component, but it's also not impossible to use on a non-Android distro.
[AT&T Samsung Galaxy Note I717] arberthebarber:
If someone can do this that would be so awesome
[AT&T Samsung Galaxy Note I717] cpgeek:
Quincyatt used to be on the dev list. It seems that it was removed at some point.
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Do you have a link to your build and the instructions you're basing your port off of? I see you have at least got a kernel that prints out to the fbconsole which is great. I'm really interested in running this, or at least the kernel to boot a desktop rootfs from. Don't really care if it's not totally useful since my i717 is no longer my primary device, just looking to hack it into an Ubuntu machine.

EDIT: Going to attempt my own port, the instructions on the Ubuntu Touch porting wiki page are pretty straightforward, looks like they build off of CM10.1.

EDIT 2: I got my work tree all checked out, trying to build fails with:

make: *** No rule to make target `/media/RAID5/AndroidCode/ubuntu_quincyatt/out/target/product/quincyatt/obj/lib/libaudioalsa.so', needed by `/media/RAID5/AndroidCode/ubuntu_quincyatt/out/target/product/quincyatt/obj/SHARED_LIBRARIES/audio.primary.msm8660_intermediates/LINKED/audio.primary.msm8660.so'. Stop.

I have tried switching from cm10.1 branch to cm10.2 branch for the quincyatt stuff but that still failed on libaudioalsa.so. I also removed the Device Settings folder from msm8660-common since it was failing inside of that folder bulding the Advanced Settings/GalaxyS2Settings app.

EDIT 3: You need the proprietary vendor files. Either follow the extract procedure or just simply pull in the proprietary_vendor_samsung github repository to your local manifests file. I had a personal copy from when I ported AOKP but you can use the CM one:

<project name="CalcProgrammer1/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-10.2" />

I put that in roomservice.xml.
[AT&T Samsung Galaxy Note I717] GPFerror:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_quincyatt" path="device/samsung/quincyatt" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_device_samsung_quincy-common" path="device/samsung/quincy-common" remote="github" revision="cm-10.1" />
<project name="CyanogenMod/android_kernel_samsung_msm8660-common" path="kernel/samsung/msm8660-common" remote="github" revision="cm-10.1" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-10.1" />
</manifest>

Is what I used, and had to remove the building of the same settings apk.

I'll try to post a diff later tonight when I'm home. Hard to copy and paste via terminal emulator on phone :)
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Thanks, I left my version of the proprietary stuff in but went back to 10.1 for the others and it built successfully. I haven't edited fstab or kernel config yet though, going to make those edits and build again.
[AT&T Samsung Galaxy Note I717] GPFerror:
Ok I have attached my repo.diff, I have a couple other changes that I found on the ubuntu maillist and on other ports.

Thanks,

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Ok, I'm getting to the same point as your dmesg log shows, it doesn't boot up just hangs after it mounts the filesystem. I tried a USB keyboard with OTG and it worked fine so if you can get it back to where it shows a login prompt you might be able to plug in a keyboard and login with that.

http://imgur.com/XUtb5aH

http://imgur.com/a/u0EM4
[AT&T Samsung Galaxy Note I717] GPFerror:
I don't have a usb keyboard so can't try that, here is my build if you want to try.

ubuntutouch_cm-10.1-20131026-UNOFFICIAL-quincyatt.zip - 31.90 MB

I recorded the screen so I could see what was on the screen before it launched the terminal login screen from my first attachment.

Not sure if it gives us any information to fix something or not.

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
I tried your build but it never gets to the prompt. Not sure why not, I didn't have anything plugged into USB at the time. I'm going to try just building the kernel by itself and booting a standard Ubuntu or Debian ARM rootfs off the external SD card using this kernel+initramfs as a base.
[AT&T Samsung Galaxy Note I717] GPFerror:
did you flash http://cdimage.ubuntu.com/ubuntu-touch-preview/daily-preinstalled/current/saucy-preinstalled-phablet-armhf.zip before flashing my zip?

I am using the install instruction from the n7000 port - http://xdaforums.com/showthread.php?t=2160773

Thanks,

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Ok, with that I was able to get the login prompt and log in successfully. There's no networking devices under ifconfig, no Bluetooth under hciconfig, and the GUI didn't start so I'm not sure what there is to do. User/pass is phablet/phablet. It seems to be working otherwise, first thing should probably be to get wireless working so we can sudo apt-get stuff and update. All the rmnet_sdio stuff (cell radio?) is listed but no wlan0/eth0. Wonder how that is initialized? Also the display updates really slowly sometimes.

EDIT: dmesg output, but it crashes after a certain amount of time so I had to be quick, mount my flash drive, and save before it reset.

http://pastebin.com/D68kp3dL
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Made a quick video: http://www.youtube.com/watch?v=FOSRLC8LVuQ

I'm wondering about the random reboot issue, seems really out of place. It might be the MSM watchdog timer as I noticed that was being initialized in the dmesg. I'll time it and see how long it takes before crash happens. On the video it looks like the phone was active for a total of 1:25, or 85 seconds. If the watchdog initialized at 5 seconds into boot I'm guessing there is a timeout set at 80 seconds. I'll do more tests to confirm this, and if it is the watchdog I'll try compiling it out of the kernel or something.

EDIT: Timed again, this time no keyboard plugged in and no interaction, rebooted at exactly 1:25 in. It's definitely some sort of timer issue.
[AT&T Samsung Galaxy Note I717] GPFerror:
cool video, I'll get you something soon that will at least look more interesting on youtube :)

I got the UI to boot up, still doesn't have any network and I can't access it via adb to pull logs.

Here are some screenshots from my webcam.

Troy
[AT&T Samsung Galaxy Note I717] Reenee:
Thankyou guys on working on this.
[AT&T Samsung Galaxy Note I717] GPFerror:
I created a modified ubuntu image based off of w-flo's work here

backup, wipe, and install in the following order(I used TWRP 2.6.1.0)

Ubuntu_Touch_cm-10.1-20131027-UNOFFICIAL-quincyatt.zip - 31.90 MB

modifiedgpf-trusty-preinstalled-touch-armhf.zip - 394.55 MB

I did discover that after I rebooted into recovery I was able to via adb shell, mount the ubuntu image */dev/block/mmcblk0p25" and i could access the logs via ubuntu/var/logs

Let me know what you find.

Thanks,

Troy
[AT&T Samsung Galaxy Note I717] cpgeek:
WOW I never expected my little query to prompt a bunch of awesome devs jumping up to play with the project. Thank you so much for your time and efforts! I thought it was a lost cause when i saw that quincyatt was removed from the project pages!

Whether or not you guys succeed at building a viable rom, thank you very much for your efforts!
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
I'll definitely test that out. Have you had any issues with thr spontaneous resets?
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Not working for me, looks like the partition never mounts right. I don't get a login prompt at all. I wiped everything and flashed in that order too, but using TWRP 2.6.0.0. I don't know why that would make a difference. How did you pull kernel logs through recovery?

EDIT: I found kern.log in the /data/ubuntu/var/log folder which contains dmesg from two bootups. It seems to have been able to mount /data to write these but the system just seems to hang.

http://pastebin.com/psdS3B3W

EDIT: 2.6.1.0 does the same thing, it looks like it fails mounting mmcblk0p25 because of "unsupported optional features"
[AT&T Samsung Galaxy Note I717] GPFerror:
Sorry it was really late when I wrote up the post, I put the install order backwards, I updated the original post. but install the ubunutu-cm-10 zip first and then the ubuntu-touch trusty image.

Thanks,

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Thanks, will try it. I did manage to log in via adb to the kernel and it looks like the FS did mount, with /dev/mmcblk0p25 (data) mounting twice, here's my output from mount:

# mount
mount
/dev/mmcblk0p25 on / type ext4 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
/dev/mmcblk0p24 on /system type ext4 (ro,noatime,nodiratime,errors=remount-ro)
/dev/mmcblk0p25 on /data type ext4 (rw,noatime,nodiratime,errors=remount-ro)
/system/vendor on /vendor type none (ro,bind)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
/sys/fs/cgroup/cpu on /dev/cpuctl type none (rw,bind)
[AT&T Samsung Galaxy Note I717] GPFerror:
need to comment that out of the the installed /etc/fstab, i guess. I now remember seeing some port where they did that :)

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Ok, somehow it started working. It booted, blank screened for a long time, and then the GUI started up. Surprisingly fluid and no graphical glitches! The camera worked! Sadly it appears sound and networking do not work, but it's a good start!

EDIT: Pics! http://imgur.com/a/qHF83 (edit: Note 3 camera has impressive resolution, you can see the pixels!)
[AT&T Samsung Galaxy Note I717] GPFerror:
i got wifi working, posting this via the web browser in ubuntu touch :cool:
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
How did you manage that? Ubuntu side or kernel?
[AT&T Samsung Galaxy Note I717] ZacksBuilds:
Hm interesting this is coming along nicely! Once a somewhat stable nightly gets up I'll flash that on a.... FLASH. AWWW YEAAHHH
[AT&T Samsung Galaxy Note I717] GPFerror:
I added loading of the wifi module to the init.target.rc

Here is the updated binary

Ubuntu_Touch_cm-10.1-20131031-UNOFFICIAL-quincyatt.zip - 31.90 MB

I still haven't figure out how to get adb working, which would make debugging a lot easier :)

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
It's really weird, it looks like either if you install them in the wrong order ADB sometimes works when it hangs. Actually, it might be starting and then dying off before the UI boots as I was able to log in briefly after the kernel started but before the screen goes blank to load the UI. Really strange. I think for adb to work you have to set the USB kernel device into adb mode as well as open the adbd daemon.

edit: adbd is in /usr/bin on the Ubuntu root (/data/ubuntu). I'm looking to see if it's started by a script anywhere.

Can you install openssh now that wireless is working? If so there's another way you can get a shell on the device with.

edit: Found adbd:

/data/ubuntu/etc/init # ←[6ncat android-tools-adbd.conf
cat android-tools-adbd.conf
# adbd - run adb debugging shell
#
# This task enables the adb shell

description "start adbd"

start on filesystem or runlevel [2345]
stop on runlevel [!2345]

respawn

pre-start script
[ ! -d /sys/class/android_usb ] && { stop; exit 0; }
# retrieve the product info from Android
manufacturer=$(getprop ro.product.manufacturer Android)
model=$(getprop ro.product.model Android)
serial=$(getprop ro.serialno 0123456789ABCDEF)

echo 0 >/sys/class/android_usb/android0/enable
echo 18d1 >/sys/class/android_usb/android0/idVendor
echo D002 >/sys/class/android_usb/android0/idProduct
echo adb >/sys/class/android_usb/android0/functions

echo -n $manufacturer >/sys/class/android_usb/android0/iManufacturer
echo -n $model >/sys/class/android_usb/android0/iProduct
echo -n $serial >/sys/class/android_usb/android0/iSerial

echo 1 >/sys/class/android_usb/android0/enable
end script

exec /usr/bin/adbd

EDIT:

So I reinstalled everything after a complete wipe and it booted up once, logged into WiFi, played around on the Internet a bit, tried to download some apps and it locked up. Now it won't boot at all. Also terminal and file manager are still hopelessly stuck at a white screen and no ADB. I tried pinging it to no avail as well, was going to test ssh but I'm on a windows laptop at the moment.
[AT&T Samsung Galaxy Note I717] GPFerror:
Yeah I had the same issue, I thing I ended up wiping and reinstalling to get it to boot again. It is probably some file that is getting created that we need to delete on the next boot or something. Also need to figure out which ubuntu touch image we should be using, originally I was trying the saucy-phablet image and the last I tried was the trusty-touch image to get the ui to boot, I haven't done any research into what the difference between the images other then trusty is the latest.

Troy
[AT&T Samsung Galaxy Note I717] arberthebarber:
Wow its looking good guys good job. I can't wait for a daily version :)
[AT&T Samsung Galaxy Note I717] GPFerror:
just noticed this in my latest test

gpf@gpf-Satellite-A305D:~/UbuntuTouch/rootfs-modifier$ lsusb
Bus 001 Device 102: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II]

I wonder which config files are identifying it as a galaxy s2 ? Also I think that id is different than when I connect to adb shell in recovery etc.

Troy
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
More stuff to play with! This time on the desktop Ubuntu front, but hopefully we can make use of it for everything. I've been following and participating in desktop Ubuntu stuff for the HP TouchPad (APQ8060 CPU, Kernel 2.6.35/3.0) and since it's so similar CPU-wise to the i717 I figured I would be able to base i717 port off of that work. First thing to get working is a bootloader, preferably one that can boot Android as well as Ubuntu and I think I've found it.

I'm continuing upon the work done by castrwilliam (who built on many others work as well) in this thread: http://xdaforums.com/showthread.php?t=2225462

There, he used a custom kernel with kexecboot built into the initramfs to load Ubuntu's kernel off its partition's /boot directory. On the TouchPad we already have a custom bootloader to triple-boot WebOS, Android, and Ubuntu with but by using kexec we are now no longer confined to the limited size of the boot partition where kernels had to reside previously. Well, on the i717 front we don't have the luxury of a bootloader at all, and can only flash one kernel at a time. I pulled the TouchPad kexec boot image apart and extracted its ramdisk, containing the kexecboot stuff, and dumped it into my i717 kernel build system just to see if it was feasible. Sure enough,

http://i.imgur.com/xI192Tq.jpg

Flashed that kernel, rebooted from TWRP, and there's kexecboot's main menu. Controls work fine (up/down are vol+/- and select is power) which was nice. The debug log:

http://i.imgur.com/RBVT7Qb.jpg

shows that it is indeed scanning all the filesystems correctly. Awesome!

My idea now is to finish updating the TouchPad Ubuntu 13.04 rootfs to 13.10, configure it to a clean slate, and split off the TP-specific stuff which should yield a clean, Qualcomm/Adreno-ready rootfs that can be booted with kexecboot. Dump it on a microSD card and should be able to boot it on the i717 with some device-specific scripts and such.

Image is upgrading right now on my TouchPad: http://i.imgur.com/PzvjB9A.jpg
[AT&T Samsung Galaxy Note I717] danstr15:
I am looking forward to trying this if you get it to work. How awesome would it be to have a full on computer system working on our phone? Iknow, I know, Android is a full operating system... but if I could run all the same software on my phone that also runs on an Ubuntu laptop... :)
[AT&T Samsung Galaxy Note I717] delacrow:
Any updates?
[AT&T Samsung Galaxy Note I717] danstr15:
Hey Calcprogrammer1, were you able to get any further with this? Just curious, haven't seen any posts in a while...
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Haven't had time to mess with it. The update failed on the TouchPad and the freedreno GPU driver got deleted. I rebuilt it but it fails to initialize the GPU on the TouchPad's 2.6.35 kernel. I think I'd be best off starting over from the 13.04 base I used but I need to figure out kexec first - at least to reboot into kexecboot kernel would be nice and dual booting Android. I read that there is a patch for kexec on ARM I may need but haven't had the chance to look into it.
[AT&T Samsung Galaxy Note I717] danstr15:
I appreciate the update, and I fully understand being busy. Thanks,

Dan
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Ok, I had some time last night and looked into everything a bit more. Time for some code!

The TouchPad kernel source is here:

https://github.com/CalcProgrammer1/ubuntu-kernel-tenderloin

I forked it from https://github.com/willcast/ubuntu-kernel-tenderloin. It has several branches - one for Ubuntu and one for kexecboot in particular. The kexec branch contains some patches related to adding kexec-hardboot support which I think we need so I'm going to try applying this patch to the i717 kernel and following what was done for the TouchPad. I'm going to try and keep the same format:

https://github.com/CalcProgrammer1/ubuntu-kernel-quincyatt

I need to fix some warnings for it to compile on the latest Ubuntu-included ARM toolchain though but once I get it to build I'll start adding the kexec patches and see if I can successfully kexec boot (for now I'll just boot into the kexec kernel, then focus on booting Android and Ubuntu from kexec). I don't have much time free so it will be slow and anyone who wants to help is free to do so. I'm also going to reload my TouchPad with the working 13.04 base and clean it up with GNOME, then dump that rootfs and upload it, try to boot it on my i717.
[AT&T Samsung Galaxy Note I717] cpgeek:
In so amazed that a simple question about who is working on this would generate so much interest as to get several volunteer devs into finagling this into working. Thank you all. <3 xda!
[AT&T Samsung Galaxy Note I717] cpgeek:
It's been a few months, I was just curious if anybody was still working on this and if anybody has any news to report?
[AT&T Samsung Galaxy Note I717] developweb:
You may find this thread interesting. It is not directly related but will enable native Linux support if the dev can get it working on our device.

http://xdaforums.com/showthread.php?t=1787856
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
Got this working this week! See that thread for more information. I haven't posted a complete flashable zip yet but I will after I complete a build environment git repository so you can build your own as well. I have posted my kexec kernel source (based on CM's kernel) and my modified kexecboot sources.

Next plan of action is Fedora, because the Freedreno developer (Rob Clark) has posted some good info on getting Freedreno+Fedora working. Fedora's unstable "rawhide" branch also has prebuilt Freedreno drivers unlike Ubuntu or Debian at the moment.

Edit: Fedora is annoying, systemd sucks. I couldn't even log in because I couldn't set a password even though it seemed to let me set one in chroot. Switched to Debian and I can log in just fine, got WiFi working, dist-upgraded, now to get graphics and audio to work.
[AT&T Samsung Galaxy Note I717] bmunday:
keep it up buddy. Good stuff.

As an aside does the ubuntu touch kernel support f2fs?
[AT&T Samsung Galaxy Note I717] CalcProgrammer1:
No idea. Never used it.
[AT&T, Rogers HTC One X, Telstra One XL] ken1337:
i have tryed alot different things now, and nothing does work :( i cant get superCID so therefore i cant go s-off or downgrade touch panel, becuse im on hboot 2.14.

I think i do it for wrong version of the htc one xl.

Some info:

Android version 4.1.1

Software number 3.17.708.5

Htc sdk api level 4.63

and im on hboot 2.14

Radio-0.23a.32.09.29

Have followed every guide :

[ROOT] HTC One X AT&T 2.20 Firmware - X-Factor root exploit

[S-Off] Facepalm S-Off for HTC One XL

[How-To] Downgrade your Touch Panel's firmware (and upgrade back)

Sorry if there is other threads about this but i cant figure it out :(
[AT&T, Rogers HTC One X, Telstra One XL] a box of kittens:
You unlocked your bootloadee right than flashed Rom or root
[AT&T, Rogers HTC One X, Telstra One XL] E.Cadro:
Op in the future please don't create multiple threads about the same problem. I closed the other one since you created this one.

XDA Moderator
[AT&T, Rogers HTC One X, Telstra One XL] ken1337:
I unlocked bootloader, dont know for sure what other i did, Just followed som guides :P dont have superuser .

Okei admin will try have more patience next time, hehe
[AT&T, Rogers HTC One X, Telstra One XL] area51avenger:
Install twrp 2.4 install supersu or a rooted Rom

Sent from my VENOMized HoxL
[AT&T, Rogers HTC One X, Telstra One XL] ken1337:
I have twrp, and when i tryed to install cm10 the touch dont work, so need s-off to downgrade touch software, but to do all that i need superCID :) not easy xD
[AT&T, Rogers HTC One X, Telstra One XL] a box of kittens:
Ughhh come on install a sense 4+ rom
[AT&T, Rogers HTC One X, Telstra One XL] ken1337:
Do you know any inn norwegian? The one XL issent out for sale here, so its only english, and i dont wanna mess up the lte its the 2600mhz band that is supported here :)
[AT&T, Rogers HTC One X, Telstra One XL] redpoint73:
X-factor is made specifically for the AT&T version (since before the S-off method, there was no reason for any other version to SuperCID). So that may be why SuperCID is failing for you.

The "manual" method of changing the CID should work for any version: http://xdaforums.com/showthread.php?t=1671396

You need to be rooted to change CID. So (as mentioned previously) install TWRP and flash SuperSU in recovery. Or install a rooted ROM. Any Sense based Jellybean ROM will have a working touchscreen.
[AT&T, Rogers HTC One X, Telstra One XL] ken1337:
thank you for info :)

But i dont wanna ruin my phone, what rom does have sense 4 and norwegian? :) dont wanna install rom for the quadcore cpu
[AT&T, Rogers HTC One X, Telstra One XL] iElvis:
I think UrDroid has all the global language packs.
[RAZR i Q&A, Help & Troubleshooting] fBx:
Hello. Is it somehow possible to root the device on ota jelly bean? Without unlocking the bootloader. Thanks.