yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 10.1 General] t2107:
Thanks indeed. Actually after I asked you my question I thought I better go and look in the patch file from your n8000 build (the same one in this attachment). What I found was that it modified 8 files:

linux/drivers/cpufreq/cpufreq_pegasusq.c

linux/drivers/input/keyboard/gpio_keys.c

linux/drivers/input/touchscreen/mxt1664s.c

linux/drivers/media/video/samsung/ump/linux/ump_ukk_ref_wrappers.c

linux/drivers/regulator/max77686.c

linux/drivers/video/samsung/s3cfb_ops.c

linux/drivers/video/samsung_duallcd/s3cfb_s6e8aa0.c

linux/include/drm/drm.h,

My initial thought was that none of these would stop my initrd from loading, but I best investigate more closely now I suppose.

[EDIT] Well there were some differences in the 'boot' section of the .config file. So I think they are interesting and am remaking zImage now....

Something else got me curious though. Accoring to the initrd.txt in the linux kernel documentation, it says /sbin/init is the most important file.

In the extracted ramdisk from your latest initrd, there is a script file '/init', and a binary file '/sbin/init'. What is the origin and function of the binary '/sbin/init'? I was always using a script file for /sbin/init, actually I was just duplicating /init to /sbin/init but I guess that's not the right thing to do. Should I re-use your /sbin/init or would it more case specific? [EDIT] /sbin/init is not so interesting at the moment. What I discovered is that it as a file that becomes PID 1, and it has to always be running. I will just re-use X-Stranger's one since it seems to work for both his Arch and Ubuntu, it should work for my Debian.

---------- Post added at 04:06 PM ---------- Previous post was at 04:00 PM ----------

Right you are =]

Before doing 'make', I do 'make kona_01_defconfig', which generates a .config file. That is in the kernel_readme file in the gt-n5120_jb_opensource_update1.zip (from samsung opensource site).

So as far as I know, its a the default config for my N5120. In the mean time I will be tinkering around with all things related to this=]

[EDIT] As mentioned above, the config file is looking like the source of my issues for now. Espcially the boot section, which was set to take cmd line from the bootloader (android). Now I used the hardcoded cmd line from X-Stranger's config.

I spend most time each day messing around with this project so your comments so far have been most valuable.

[Edit 3]

Just had a 'doh' moment and realized X already told me to look in the config. Sorry X!
[Galaxy Note 10.1 General] t2107:
Changing the 'boot' section in the /opt/linux/.config file (after first running make kona_01_defconfig) has solved that part of the problem! yay. The problem was that I could never get any response from my custom recovery initrd files; I couldn't run my own custom images that I made with Debian. I searched far and wide for the solution, and a dozen different approaches, for example, I tied 5-6 different initrd configurations (some copy/pasted from X-Stranger, or examples on the web). I tried 5-6 different zImages, such as my own custom ones, X-Stranger's ones, CWM, TWRP.. and then I tired different combinatrions of initrd and zImage pairs. Nothing from the saga of trial and error actually gave and slight response. The only obesrvation the whole entire time, after every trial, was.... the device reboots into normal android jellybean, with no error message or pauses, or any indication that my changes to initrd's and zImage's were actually doing anything!

The solution: the solution was in the new kernel's .config file, e.g., the config file produced by

make kona_01_defconfig

.

Replace kona_01 with your device name if its not a SNG8. The critical line which needs to be changed is:

CONFIG_CMDLINE=
CONFIG_CMDLINE_FROM_BOOTLOADER=y

Apparently, this is bad! I guess the android bootloader cannot be allowed to direct our kernel if we want to run Debian linux. So update the .config by editing like:

CONFIG_CMDLINE="root=/dev/loop0 ro rootfstype=ext4 rootwait quiet"
#CONFIG_CMDLINE_FROM_BOOTLOADER this option is not set

...then, you do

make

and the kernel will build (as a zImage). And this zImage will be able to load your initrd.
[Galaxy Note 10.1 General] X-Stranger:
Those patches are to make hardware working correctly. Most of them are done by Exception13. He did debug the issues and make code fixes.

---------- Post added at 11:44 AM ---------- Previous post was at 11:43 AM ----------

That is what I was talking about - you needed changes to kernel config :)
[Galaxy Note 10.1 General] halcyonabraham:
guys can we use the external sssd to add more space to the .img? like partition it?

if so can someone plz step by step guide me
[Galaxy Note 10.1 General] X-Stranger:
You can create file using dd, format it using mkfs.ext4 and mount it as loop device to any place of your Linux tree, for example:

cd /mnt/extSdCard
dd if=/dev/zero of=./addon.img bs=1M count=1024
mkfs.ext4 ./addon.img
mount -o loop ./addon.img /srv

Then add the appropriate line to /etc/fstab or /etc/rc.local

Btw, you might take a look at the thread about Ubuntu on N8000 - it does not use img-file anymore, so no issues with disk space like before. Or you do like ArchLinux and want it ?
[Galaxy Note 10.1 General] halcyonabraham:
Hi X-stranger sure i wouldnt mind having ubuntu on my note n8013 thats awesome to be honest the only thing im after is having kali linux tools on it and i know thats possible with the right repos and stuff. But sure man.

How do we flash ubuntu? i actually checked ur project and i was overwhelmed with the instructions haha. Total newb man but yeah i try. So sure man will give it a shot
[Galaxy Note 10.1 General] diga1001:
Well l think it's quiet easy if you have a working ADB because then it's just copy and paste into ADB shell
[Galaxy Note 10.1 General] brettsaylor87:
This would be awesome. hope we can get a how to soon.
[Galaxy Note 10.1 General] AndroHero:
Sorry to be anal but GNU is the OS and linux is the kernel :p lol

Really nice work though. Massive kudos ;)
[Galaxy Note 10.1 General] diga1001:
Sorry for asking but nothing new to that? I had the hope someone would explain us how to do it.
[Galaxy Note 10.1 General] exception13:
sorry for delay, I started doing this on vacation. Now the work of a small deadline. but there was one person successfully running the Linux distribution on N8000. so that together will soon be how-to
[Galaxy Note 10.1 General] X-Stranger:
I have got a few advices and help from exception13, and has successfully compiled kernel, replaced recovery and now have ArchLinux working natively on my N8000. However it is in loop-filesystem placed on emmc, instead of repartitioning. But this might be more useful for most of users. So, I'm going to post a small HowTo and probably something pre-ready for you very soon.

P.S. Attached is the picture of "Home PC" based on N8000 + Apple Wireless Keyboard + bluetooth mouse :)
[Galaxy Note 10.1 General] jamesc760:
I am eagerly looking forward to this coming to our n80xx!
[Galaxy Note 10.1 General] Dsmforlife92:
Re: Debian GNU/Linux@N80XX

Will this work on n8013
[Galaxy Note 10.1 General] X-Stranger:
It should work.
[Galaxy Note 10.1 General] hectorz321:
would love to duel boot but i dont want to get rid of recovery, anyway to have android,recovery and native linux? thanks
[Galaxy Note 10.1 General] KrisPerry:
Re: Debian GNU/Linux@N80XX

So I assume this means recovery is gone
[Galaxy Note 10.1 General] _bambam:
AW: Debian GNU/Linux@N80XX

Thanks for the tutorial. I think the recovery is /dev/block/mmcblk0p6 and not straight /dev/mmcblk0p6

Gesendet von meinem GT-N8010 mit Tapatalk 2
[Galaxy Note 10.1 General] X-Stranger:
Right, when working in chroot it will be /dev/block/mmcblk0p6, but from initrd or native Linux it is /dev/mmcblk0p6. Fixed.

Linux itself is better than original recovery - more functions ever, but if you need it - you can restore anytime from the copy you made following my tutorial.

Another possibility is to run recovery right from Linux, as soon as recovery is just a regular application. Just unpack initrd.img from recovery.img ("abootimg -x recovery.img"), then unpack recovery things from initrd.img ("abootimg-unpack-initrd"), do some magic with "mount -o bind..." for dev/sys/proc, a few more symlinks for fb0/mmcblk*/etc, then run "chroot /path/to/unpacked/ramdisk /sbin/recovery". Or, if you don't want to play with mounts/symlinks and other stuff, you can directly run "chroot /path/to/unpacked/ramdisk /init". Not sure how properly it works if running like this (you can see a few lines that it cannot mount something, however I've seen it is really mounting). At least keys and screen are working the same :) I've also run ClockWork-Touch-Recovery the same way, but did not test any updates installation.
[Galaxy Note 10.1 General] juvenile43:
Re: Debian GNU/Linux@N80XX

Man this is amazing. Basically the reason im not gonna sell my tablet now. But the tutorial is a bit over my head. I can keep up on some of it. All stuff I wanna learn but do you plan on releasing some of this with a little more of the homework done. I realize there willl still he steps involved but just a little less on our end. Thanks I appreciate the time u put in. Also will this work with ubuntu or maybe xbmcbuntu. That would be amazing
[Galaxy Note 10.1 General] mateuszwon94:
Ubuntu

Could someone make a link to compiled kernel and initrd.img for Ubuntu? I had some problems diuring compilation. (I'm not know Linux environment very well so i can't tell U what happend)

Sorry for my bad English. :)
[Galaxy Note 10.1 General] exception13:
also wi-fi work fine with network-manager except small scanning issue.
[Galaxy Note 10.1 General] juvenile43:
Re: Debian GNU/Linux@N80XX

Awesome looking forward to see this progress.
[Galaxy Note 10.1 General] ncc74656:
Would it be possible to post link to all required files?
[Galaxy Note 10.1 General] mateuszwon94:
Could anybody help? :(
[Galaxy Note 10.1 General] halcyonabraham:
Any links maybe? I just stumbled on your project by accident and dont know what to type in to search it again

And btw the method u showed me with the addon.img thing. How do i specify how big the file is? Cuz i dont see anything in the command that specifies how big you want it to be

and if i mount that will that add disk space to the .img file?
[Galaxy Note 10.1 General] X-Stranger:
Do I really need to explain Linux basics? :) I've fixed my commands in previous message to set the size of addon.img to 1Gb. And this will not add space to existing img-file, it just creates another image mounted to some folder in existing img.

Regarding adding space to existing image - search this thread, there was the message about it.
[Galaxy Note 10.1 General] halcyonabraham:
i got it man. hey sorry for being soo nooobish im very new to linux

i enjoy it a lot cuz it's challenging. and hey i checked out your ubuntu for n8*** it was cool

only i dont understand was adb whats that is that the same as having a linux box?

and the problem is i can't mount my note on my kali linux box. how do we go about that?
[Galaxy Note 10.1 General] X-Stranger:
by ADB I mean that you need to connect your device to desktop computer (Windows, Linux - whatever) which has Android tools installed ("adb.exe" or "adb"), and that system can see your device and show you the device shell when you run "adb shell".
[Galaxy Note 10.1 General] ANOKNUSA:
Pointers for booting from block device?

So I've been reading through this thread for about a week now, trying to get an Arch install working on my Galaxy Tab 3. I understand that the GT3 and Note are fundamentally different (the GT3 is x86-based, which led me to believe this would be simpler :p), and I'm relatively new here on XDA, so I'm sorry if I'm breaking forum etiquette or inadvertently hijacking this thread. Tell me to just go elsewhere if that's the case.

I'm trying to get the tablet to boot into a block device (either a partition on a microSD card or internal storage), not an image mounted as a loop, and I'm looking for information on how to make that happen. As the tablet has an Intel Atom chipset, any Linux distribution built for i686 architecture should theoretically work, and so I'm trying to get an Arch install up and running (though I'd also be satisfied with Debian). I've managed to create a boot image and write it to the recovery partition, but the tablet just reboots after the initial splash screen, and as there are no messages for me to peruse there's no way for me to know how the boot process is proceeding.

Are there any modifications that need to be made to bootimg.config to get this to boot? Is there a guide to working with bootimg.config someone can point me to? I've been an Arch user for years and I'm familiar with ADB, abootimg and the like. So I'm not asking for any hand-holding here but rather information on how to get the bootloader to point to the filesystem Arch is installed on, if I should use the initrd native to the tablet rather than the one generated in Arch, etc. It seems that after the first couple pages in the thread exception13 fell silent on how he booted the system, and the only information is a list of steps on his Google Code page; since the image files there are from the Arch ARM port, they won't work on the GT3, and the "cmndline=" line in his bootimg.cfg is empty. Any advice---even just links to external info---is greatly appreciated. Thanks.
[Galaxy Note 10.1 General] X-Stranger:
Nothing to do with boot config, you need to compile proper kernel with your tablet screen support at least to see the error happens and hardcode boot device string in kernel config, e.g. inside kernel - that is what exception13 did.

I would start from kernel sources and config that Samsung is sharing on their OpenSource site (if there are any).
[Galaxy Note 10.1 General] ANOKNUSA:
Thanks, X-Stranger. I grabbed the sources from Samsung for the device. It looks like I'll need to build it in a 32-bit chroot using a special toolchain, so I'll set that up when I get some time (university classes start up again tomorrow, so my schedule is a bit uncertain right now)
[Galaxy Note 10.1 General] TriMoon:
GRUB

I've read a few pages at the beginning of this thread, sry didn't had more time...

But I was wondering if you guys have thought about using GRUB to manage multi boot.

When you would be able to use that boot manager, it would open many options like on pc environment to boot into different operating systems.

Eg. Android, recovery, Linux and even Linux from external sdcards ;)
[Galaxy Note 10.1 General] X-Stranger:
Nice joke :) Please let us know once you get it running on your ARM device.
[Galaxy Note 10.1 General] halcyonabraham:
I think he is serious man... :/
[Galaxy Note 10.1 General] TriMoon:
Actually I was indeed :confused:

I'm still very new to this mobile/android world because I only got my first mobile device a few months ago.

Seeing how people are able to compile programs from source for the ARM architecture/processor, I thought it would be a viable option.

But seemingly it was a nooblet remark, at least it was amusing to some...:)

Send from my SGN10.1 via xda-developers app
[Galaxy Note 10.1 General] halcyonabraham:
Meh thats the thing about reading text because it doesnt have tone. So you're bound to misinterpret some things

x-stranger probably misinterpreted that or you and I misinterpreted what he said but either way he didnt do it to be an a** he is an awesome guy and I believe that I mean hey he made an ubuntu img for the sgn 10.1 so thats something. So don't take it personally he probably didnt mean it that way
[Galaxy Note 10.1 General] TriMoon:
Nahh it's all ok, I wasn't offended in anyway. :)

Because I'm new to this platform I don't know if it's possible or not to use such boot managers at all for these mobile devices.

If it's possible, but not with current GRUB sources, maybe it's an interesting idea for the guru's here to make one ;)

Send from my SGN10.1 via xda-developers app
[Galaxy Note 10.1 General] X-Stranger:
Grub does not work on mobile devices, at least for now. Anyone who knows the details will understand the proposal to have it on Android as a joke, at least because those people already know what Grub can do and why it is not possible to install it.

Sorry if my comment was not clear.
[Galaxy Note 10.1 General] soelvar:
Note 2014 edition

Anyone knows if there is something like this for the note 2014 edition?
[Galaxy Note 10.1 General] marsei:
2014 edition

The 2014 edition has different models with different chip sets, at least 3 different models I think.

So if possible there need to be different ports for each of these.

Is anyone allready working on it? If I have time I will try to get a kernel running - but I think I wont manage it the next 1-2 month.
[Galaxy Note 10.1 General] jusseppe:
printing

Hi X-Stranger, I am testing your Archlinux image on my n8010, it works amazingly well. My only issue is I am not able to print, I get the error message " the system printing service doesn't seem to be available" I have installed cups, but no luck. I've been using ubuntu and linuxmint the past 8 years, but I am a little noob with the shell thing and Archlinux. Wonder how I can fix this. Thank you.

Ah X-Stranger, I have bought you a beer :good: .
[Galaxy Note 10.1 General] X-Stranger:
Appreciate that :cool:

Could you please give me a little more details on how do you connect your printer? Did you enable/start cups service after install?

Btw, there is a separate thread about running Ubuntu on our device (now you owe me more beer, huh? :D)
[Galaxy Note 10.1 General] jamesDF:
Only OS

Can this be installed in place of Android.

I wish to get rid of Android OS altogether.

If it can, what simple (simple being key) instruction to install Linux as only OS can you provide?

Would it be the same as replacing any other ROM?
[Galaxy Note 10.1 General] X-Stranger:
It is possible, but not the same as replacing any other ROM. Generally you need to write boot image not istead of recovery, but instead of normal boot, then erase Android files and keep only Linux. For example, system partition might become root filesystem, and data partition mounted as home folder. I would also keep other Android partitions, but you can re-use them for other needs, like cache partition might be used as boot or something else. But please do not touch EFS, boot and recovery (and a few others I think). Something like this...
[Galaxy Note 10.1 General] theprogram1:
Hey there, could anyone make a simple step by step? I'm learning linux in general so adding linux to the tablet would be a huge help.
[Galaxy Note 10.1 General] seniorivn:
new image

could you give your new image?

I have the problem with update arch from image from opensgn, after update i can't turn on. Error:"c1 systemd[1]: Failed to mount cgroup at /sys/fs/cgroup/systemd: No such file or directory". I don't know what does it mean. So, publish the image, please.
[Galaxy Note 10.1 General] :
hey

hi,

i am coming from a different device gt-p5210 x86 but for what i'm asking the approach if feasible, should be universal.

so the question is, the kernel is linux, and by way of firmware/hardware already golden, so how do we sugically remove the

android userspace and reconstruct the ramdrive desired/accustomed to setup and what would that look like?

i know i can slay zygote from init.rc but after that do i tie in some kind of chroot script or do i change focus to a different mmcblk

with a proper / setup where /system/bin & /system/lib are /bin & /lib etc. and soforth. with filesystem in userspace [fuse]

my userdata is already an ext4 partition.... i could go on for longer but you get the general idea i hope.

i would appreciate hearing your thoughts on this. thankyou.

m
[Galaxy Note 10.1 General] X-Stranger:
Well, Android kernel is Linux, but without some features. You need to disable some Android-features and enable back some Linux-features. Thus I suggest kernel re-compilation. The Android userspace also contains some proprietary libs and drivers to have 3G working for example, so removing Android userspace or stopping some of his services might cause the necessity to enable those things in recompiled kernel - that is the second reason for this.

Of course you can keep Android things working aside, stop their GUI, chroot to your native userspace and do whatever you want. But this won't be really native Linux. I have seen this idea implemented for Nook Color device (which I owned a 2 years ago).
[Galaxy Note 10.1 General] :
thanks

X,

thank you for your response,

my delimma is a lack of hardware and know-how with respect to kernel building/compiling etc.

my thought was to hex the bootloader to change the android cos default flag - couldn't find enough info so no go.

so my next thought was what i asked you about so that seems like a no go as well.

being an x86 device i had hoped for too much apparently. guess i'm stuck with android. [sigh]

you're on the mark about something linux-ish being less than desireable.

i guess i'll use a screenshot of openbox on my desktop as consolation. :D

thanks again

m
[Galaxy Note 10.1 General] nando88:
Wifi does not work

I am connected to wifi through my laptop, and I'm using the same password in arch linux in my tablet, but I can't connect. Please tell me how to fix this.

Thanks in advance!
[Galaxy Note 10.1 General] o1bloody1o:
How did you set the axis? Can you explain how you did that?
[Galaxy Note 10.1 General] Danny Hefer:
Hi!

I know it's kind of an old thread, but I'm a bit desperate when it comes to bluetooth. I've installed Linux Deploy on my Galaxy Note 8, and everything works really well in chrooted + framebuffer modes... except the bluetooth.

When I launch my distro (Wheezy) in frame buffer mode, I have to stop the Android UI. Everything is okay for something like 2 minutes but then Bluetooth drops and I can't use my mouse/keyboard anymore.

I've tried your method for force loading the firmware, but Debian still won't see my adapter. I'm quite the noob... do you have some pointers I could use? Thanks a lot!
[Galaxy Note 10.1 General] ricks1:
Arch on a Motorola moto g2

Is there any way to port this installation to the motorola moto g2?
[Galaxy Note 10.1 General] JJEgan:
You are asking in a thread where the last post was 2015 .
[Galaxy Note 10.1 General] ricks1:
Sorry my fault.
[Galaxy Note 10.1 General] George_Salmanov:
Please, help to find existing download link. All link are dead now.