yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 10.1 General] aytech:
neeeed help for n8020

hello all

plz i need ur help

is there someone who could make a recovery.img for my n8020 plz the normal recovery couldnt be flashed in my mmcblk0p6 partition because of the size of the partition (4 mb only)

plz can some one help me
[Galaxy Note 10.1 General] dwegiel:
Tried resizing the partitions? It's impossible for the most part to fit a linux kernel and initrd in 4MB.
[Galaxy Note 10.1 General] aytech:
can you tell me plz how to resize that partition??? i dont know how to resize it
[Galaxy Note 10.1 General] dwegiel:
All right all, I've forfeited Fedora due to how foreign the OS feels to me and my inability to really use it. I've moved to Ubuntu and I'll be attempting to make the commands work. Tutorial will be shared once I succeed.
[Galaxy Note 10.1 General] aytech:
do you think this will work with my n8020??? i hope so otherwise i will destroy my tablet :p
[Galaxy Note 10.1 General] zaptac:
Better donate it to me!

-- Send by me.
[Galaxy Note 10.1 General] Sendora:
It should be a .rpm file.

Install it with:

rpm -ivh kernel-n8000-3.0.31-1.fc18.armv7hnl.rpm
[Galaxy Note 10.1 General] dwegiel:
It didn't save like that. Can you reupload to dropbox or a different online host?

--------------------

Making absolutely no progress on ubuntu, after the disk is checked for consistency the system's framebuffer/screen stops working. Any advice?
[Galaxy Note 10.1 General] mario182005:
Has anyone tired Gentoo? I've been a Gentoo user for almost 15 years now, and am so ready to replace android on my 10.1. I'm about to sit down and give it a shot. Any tips b4 I start?
[Galaxy Note 10.1 General] dwegiel:
Just make sure you're not going with the wrong architecture. Past that, IDK, I have failed at getting ubuntu to run.
[Galaxy Note 10.1 General] Nanoxo:
pressure sensitivity in Gimp

Does Gimp, support the pressure sensitivity with the stylus?, like getting a darker or lighter stroke depending on the pressure applied?
[Galaxy Note 10.1 General] dwegiel:
I don't think so, but there is probably a setting somewhere for it to do so, since the wacom driver is fully functional.
[Galaxy Note 10.1 General] diga1001:
Thank you all for the great work again! But because many things changed, is some one willing to uploade a new img which includes all the great changes since op?
[Galaxy Note 10.1 General] dwegiel:
Great suggestion. I could try to push something out but my dev skills are really lacking.
[Galaxy Note 10.1 General] dwegiel:
SOURCE KERNEL UPDATED:

http://forum.odroid.com/viewtopic.php?f=31&t=1516

If only we had more devs :(
[Galaxy Note 10.1 General] diga1001:
That would be realy great if u could do that
[Galaxy Note 10.1 General] dwegiel:
Tried without success. Look for someone in a kernel community (especially ODROID). They may be able to dedicate some time to help us out.
[Galaxy Note 10.1 General] Haabba:
please Help Me NOW !!!!!!!!!! please

when i was install ArchLinux natively on Galaxy Note 10.1 N8000

when i open the terminal emulator , i typed " su " then i typed this

" dd if=/storage/sdcard0/recovery.img of=/dev/block/mmcblk0 "

Instead of

" dd if=/storage/sdcard0/recovery.img of=/dev/block/mmcblk0p6 "

when when i reboot my device . it can't open android system and when i used odin it can't flash any recovery

any one help me please

my device was be rotted and i was using Cyanogenmod 10.1

odin give me this massage :

<ID:0/019> Added!!

<ID:0/019> Odin v.3 engine (ID:19)..

<ID:0/019> File analysis..

<ID:0/019> SetupConnection..

<ID:0/019> Can't open the serial(COM) port.

<ID:0/019> Added!!

<OSM> All threads completed. (succeed 0 / failed 1)

my device is open now as odin mode but it can't shut down
[Galaxy Note 10.1 General] Haabba:
official framwear

can i flash an official framwear by odin with pit file ???? my recovery was broken :(
[Galaxy Note 10.1 General] dwegiel:
Use the following utility: http://xdaforums.com/showthread.php?t=2341488

Put your phone into download mode and run it. Guaranteed unbrick. Please take care when messing with partitions next time.

Give me a thanks if it works!
[Galaxy Note 10.1 General] dwegiel:
Mali 400 acceleration is here: http://www.cnx-software.com/2013/02...u-acceleration-on-odroid-x-development-board/

Also Wolfson 1811 drivers are here: http://opensource.wolfsonmicro.com/content/asoc-audio-embedded-linux-systems

Anyone brave enough to take a stab at fixing up the kernel/distros? Would be great. Latest I'll have the time to do so is on Sunday.
[Galaxy Note 10.1 General] younix258:
im still waiting on someone trying this and reporting results. thanks for posting and bump
[Galaxy Note 10.1 General] eldanielo84:
Fedora/Archlinux - Eclipse

I already tried to install Eclipse and Netbeans on archlinux. Unfortunately it didn't work. Does anybody know if it is possible and how?

@ Sendora

Is it possible on your Fedora? Are you still working on your "image" or is it all running smooth for you?

gReEtZ
[Galaxy Note 10.1 General] tuningnoob:
I have been watching this as well! I wish I had the time and dev skills.
[Galaxy Note 10.1 General] dwegiel:
The short amount of time I had his distro running, Java was operational up to the point HW acceleration was necessary. Eclipse and Netbeans should work.
[Galaxy Note 10.1 General] mario182005:
is it possible to use gentoo instead? ive been trying for about a month now to no avail. should i follow your guide but use gentoo instead? any help would be greatly appreciated
[Galaxy Note 10.1 General] dwegiel:
Gentoo tends to have a lot of basic functionality allotted to be the responsibility of the end user to implement. Sure, it would be functional, provided you have experience in building it, can acquire a source that is buildable on ARM, and can use the kernel from ODROID devices.
[Galaxy Note 10.1 General] younix258:
Linux on note 10.1 abandoned?? :(
[Galaxy Note 10.1 General] jan rinze:
Not abandoned, the kernel works..
[Galaxy Note 10.1 General] dvijetrecine:
does anybody know how to set looproot device for debian distro?
[Galaxy Note 10.1 General] t2107:
I don't entirely know but that's what I am currently working on right now too. If you can take a peek at this thread here, you can see my progress for converting the project to Debian (and to Galaxy Note 8).

So far I think this is what to do.

Install initramfs-tools.

The put a .sh file in /etc/initramfs-tools/hooks/. This will be the hooks file.

Then execute:

mkinitramfs 3.0.31 -o /boot/initrd.img

I seem to run into errors with the last step because the hook file makes refernce to the linux.img, but the linux.img is in the native environment, but we are in the Linux Deploy environment.
[Galaxy Note 10.1 General] dvijetrecine:
yup, i did that with mkinitramfs and make initrd and flashed recovery, but i fu*ked before in menuconfig to boot from partition not from image. and now im stuck with some problem in crosscompiling -.-'

edit:

this error is fu*king me for about a week

make: /opt/arm-eabi-4.4.3/bin/arm-eabi-gcc: Command not found

CHK include/linux/version.h

CC scripts/mod/empty.o

HOSTCC scripts/kallsyms

/bin/sh: 1: /opt/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found

make[2]: *** [scripts/mod/empty.o] Error 127

make[2]: *** Waiting for unfinished jobs....

HOSTCC scripts/conmakehash

HOSTCC scripts/mod/mk_elfconfig

HOSTCC scripts/bin2c

make[1]: *** [scripts/mod] Error 2

make[1]: *** Waiting for unfinished jobs....

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

Generating include/generated/mach-types.h

CC kernel/bounds.s

/bin/sh: 1: /opt/arm-eabi-4.4.3/bin/arm-eabi-gcc: not found

make[1]: *** [kernel/bounds.s] Error 127

make: *** [prepare0] Error 2

make: *** Waiting for unfinished jobs....

make: *** [scripts] Error 2

but to things be more fun, one day it succeded to compile, and other day it doesn't and shows me this error
[Galaxy Note 10.1 General] t2107:
Ahh yes someone to share the problems with is so great =]

Your error looks like the cross-compiler is not found. The command to fix is first clone this git: android.googlesource.com/platform/prebuilt

and then in command prompt:

export ARCH=arm
export SUBARCH=armv7h
export CROSS_COMPILE=/opt/platform_prebuilt-master/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
cd /opt/linux
make kona_01_defconfig
make -j2
make modules_install

For me I had to change

export CROSS_COMPILE=opt/platform_prebuilt-master/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-

to

export CROSS_COMPILE=/opt/platform_prebuilt-master/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-
[Galaxy Note 10.1 General] dvijetrecine:
well, i'm following the instructions from open-sgn, and every path is exact as it should be, and again, it gives me that error all the time, but i don't know why, because i checked path and gcc is friciking there, i'm looking at it xD

i've spent near a week to find out what is wrong, installed 3 or 4 different distros, but no, error is still there. there was one time on debian when it worked, but i messed up something with config file and it was already late. next day when i tried again to compile error shows up again! how, i don't know... on fedora and lubuntu it was working, but at some stage of compiling, cpu starts overheating and whole thing shuts down... i don't know why is all this happening to me... maybe because i'm not a good person? hahahahahah
[Galaxy Note 10.1 General] X-Stranger:
Have finally found the way to run Ubuntu on device. This requires small patch to the kernel to make upstart sub-system working correctly and specially prepared initrd.

I did even more: now the Linux files are stored at internal sdcard filesystem, which is actually ext4 filesystem. So my initrd is mounting internal sdcard partition, then is looking for special file /media/rootdev which should contain the path to the folder with Ubuntu files, then switches root to that path and finally runs /sbin/init, e.g. starts Ubuntu itself. This way I can have several distributions in one place and switch between them easily. And, of course, now you don't need to re-partition something or use loop-device, so the installation will be much easier.

Now I'm preparing the Ubuntu 13.10 image for you, will share it soon. Unfortunately Unity does not work correctly, so the image will be Gnome-based.
[Galaxy Note 10.1 General] t2107:
Hi Stranger! You have started a nice little revolution here.. thanks to you I have finally compiled my own kernel.. and may one day have native linux on my Note 8 =]

I have been working to translate your how-to on page 3 to a debian / Note 8 setup (for all us note 8 owners!).

I feel like I am sooo close. My custom recovery.img which I made from your guide is just not quite working yet.

Can you tell me if I am on the right track?

Here is my mkinitramfs code, it is in /etc/initramfs-tools/scripts/local-top

mkdir /host
mount -t ext4 /dev/host/mmcblk0p21 /host
losetup /dev/loop0 /host/storage/emulated/0/linux.img
mount -t ext4 /dev/loop0 /switch_root
exit 0

On the Note 8 mmcblk0p21 is the /data partition where (I think) /storage/emulated/0 is located. I know that is a bit different to your note 10 which has mmcblk0p12 as the /data partition.

So can you help me with the mkinitramfs part of this complex equation? So much respect and appreciation if you can!

Cheers, t2107.

[EDIT]

or... if your would be so gracious.. make a little how-to about your new solution... where we don't need the looproot... pretty please with sugur on top ... I'll be your best friend =] ahh I'm sure you have enough best friends already
[Galaxy Note 10.1 General] dvijetrecine:
NOOoooo! not gnome please x( make it xfce, lxde, anything else, but not gnome. it is so unpractical. i was trying to install kde instead of gnome in your arch img but i failed miserably... please, not gnome
[Galaxy Note 10.1 General] X-Stranger:
No worries :) There is Gnome Fallback mode, which looks to be working... at least sometimes :) But I'm also thinking about installing LXDE in addition, just in case. Gonna to sort all these out as soon as have free time.

---------- Post added at 05:56 PM ---------- Previous post was at 05:48 PM ----------

I'm using initrd from my ArchLinux, because it works and I was able to implement the new approach, which is almost the same as usual:

- fsck.ext4 data partition

- mount data partition (mmcblk0p12) to the /new_root

- remount folder with Linux files over /new_root using "mount --bind /path/to/ubuntu /new_root"

- invoke switch_root to use /new_root and run /sbin/init

I was trying to build Ubuntu native initrd image, but once I tried to boot it, it has broken my device so badly, so I had to reflash firmware and restore IMEI :) Until current solution works and able to boot any of distributions - I'm going to use it and improve.
[Galaxy Note 10.1 General] dvijetrecine:
well, i tried fallback mode on your arch but virtual keyboard is wery annoying and smallish... ah, nevermind, an instruction to install other desktop manager and remove gnome without messing whole thing up will be much appreciated
[Galaxy Note 10.1 General] t2107:
You're a legend, thank you! Should I put all that in /etc/initramfs-tools/scripts/local-top/my_boot_script ?

And thats for the warning about your softbrick. Time for a full backup!
[Galaxy Note 10.1 General] t2107:
muscular Othri

Dear X-Stranger,

Thanks again for the above info. I shall have to start filpping you some bitcoin tips =]

My initrd is still not loading so I'm going back to square one. Building from source (for the third time lol).

Since I'm working a a different system to you [ Note 8 + Debian ] Should I be worried about all the patches that I used of yours?

How did you make or acquire those patches? I opened the patches in a text editor, and it baffles me how you or anyone could know all those settings.. I mean, they are not freely available on google as far as I can tell, so do you need a special clearence or education to be able to put patches like that together?

anyways.. will your note 10.1 patches work on my 8.0 or should I make my own patches?

My simple goal at the moment is just to get the initial ramdisk loaded with a debug cmd shell.

I think that is a the first goal I need to acheive, and then loading a new rootfs could come a bit later.

I'll be awaiting your reply, and checking at least 4 times a day. happy to flip you some beer or coffe donations anytime!

I'll be leaving a step by step guide right here so if you want to offer me any specific advice then at least you can see exactly what I've done so far. Seeing the step by step guide should make it easier to see any error that has been made.
[Galaxy Note 10.1 General] X-Stranger:
There is no need to repace desktop manager, GDM works and has keyboard to enter your password. However you might like to deploy autologin, then LXDM might be useful replacement. Installing Desktop Environment is also easy via package manager. Removing all of Gnome is not really necessary, because some applications uses stuff from it.

---------- Post added at 04:40 PM ---------- Previous post was at 04:38 PM ----------

You should put that sequence instead of standard script that is looking for the root partition in your initrd. I had to remove part of init script in Arch-initrd to make it running only my commands and nothing else. From my point of view you could try using my initrd as soon as I post it, because it does not contain anything special.
[Galaxy Note 10.1 General] dvijetrecine:
yeah i know that some apps uses stuff from gnome but... if i want to leave gnome and install kde i need a bigger img file, and i don't have so much free memory, that's a dealbreaker... but thanks anyway, i'll wait for your ubuntu distro
[Galaxy Note 10.1 General] X-Stranger:
Feel free to do that anytime: 1KizquS68MSGyjL8yWzy914dmtqC8DQjug :)

Well, generally you need to understand what is the hardware is used in your device. Usually that is possible to find on the Internet. Secondarily, you need to get the kernel sources for your device from Samsung OpenSource site (http://opensource.samsung.com/ - just search by your device ID) and build those sources getting zImage and modules. To get Linux distro you can try using Linux Deploy application from Google Play, then run this Linux from Android, connect to it via SSH from desktop and build initrd, then update Recovery to use your kernel and initrd and try booting it. As soon as you get it booting (or not) you might see that something does not work correctly. From that point you should be looking for the appropriate kernel patches on the Internet, but often you have to compose patches by yourself. A lot of things for my device were fixed by Exception13, others I did by myself. I'm not an expert in Linux Kernel, but have some programming knowledges and can Google for anything :)

---------- Post added at 05:13 PM ---------- Previous post was at 05:10 PM ----------

KDE will not work as far as I know (I tried before), or at least you should it run without 3D acceleration somehow.

Img size is not a big deal with new approach, the free space will only depend of free space at data partition (internal sdcard).
[Galaxy Note 10.1 General] dvijetrecine:
KDE have fallback mode same as gnome do... ah, well, i'll resize img to 4 gb and try again. gnome is just... i do not like it... if nothing else lxde works

edit: oops. it's failsafe mode, my bad :/ i'll stick with lxde then
[Galaxy Note 10.1 General] t2107:
The biggest challenge in reproducing tbis project from scratch? For me its making a custom initrd. Why? Because debugging the init script in initrd seems impossible to diagnose errors; because the errors are silent. All the action takes place while the Samsung splash screen is up, so theres no visual feedbck and no log file (because the initrd is not yet accessing partitions it cant write a log).

Anyone who has worked around this problem it would be great to hear from you right about now..
[Galaxy Note 10.1 General] t2107:
Can I use the stock zImage of my device with a custom initrd?

Since abootimg -x puts out 3 files: zImage, bootimg.cfg and initrd I just want to modify initrd so I can load my debian linux.

I have modified my initrd in several different ways and each time, I never get a custom boot, it just boots to the samsung logo.

Also sorry X-Stranger I haven't flipped you a bitcoin beer yet! Since the bitcoin is now $1000 to buy I think paypal is the way to go =]
[Galaxy Note 10.1 General] X-Stranger:
You could try. However nobody knows what happens as soon as kernel by default might have disabled some features required for Linux work, but enough for Android. Virtual terminal for example, e.g. you will see nothing at the screen. Or something else.

This obviously means that something goes wrong.

Okay, you've convinced me, added "donate to me" button :)

---------- Post added at 05:49 PM ---------- Previous post was at 05:42 PM ----------

Have found how to boot native recovery using my new approach. This also allows to have and use as much recoveries, as you like.
[Galaxy Note 10.1 General] t2107:
First beer is on me, tested the donate button and it works great =]

In 'abootimg -u' I tried the zImages from CWM and twrp, using my own initrd and stock bootimg.cfg... Each time the recovery boot just showed nothing and reset to samsung logo. I tried to mount /data (/dev/mmcblk0p21 on my note 8) and "/sbin/busybox touch /mnt/data/TEST.txt" just as a test to see if my initrd is doing anything at all. No dice. I check my init in chroot next to see if all my syntax is legit.

I might compile a custom zImage. I didnt want to do that because so far I have done all the steps on the Note itself. If I could compile the zImage from source on the Note it would be great, but the problem is that the makefile asks for a toolchain which I think is not available in my arm7 debian stable.

I looked at your initrd in your arch-linux recovery.img and its interesting. Lots of binary files in /sbin instead of mine which just has one file --> /sbin/busybox. And your initscript is having a huge number of lines in it. Maybe mine is too simplistic. Mine looks like:

GNU nano 2.2.6 File: /boot/1/ramdisk/init

#!/sbin/busybox sh

#write a file somewhere on /data just to see if this script is doing anything
/sbin/busybox mkdir /data
/sbin/busybox mount /dev/mmcblk0p21 /data
/sbin/busybox touch /data/TEST.txt

# load proc/dev/sys
/sbin/busybox mkdir /proc
/sbin/busybox mount -t proc none /proc
/sbin/busybox mkdir /dev
/sbin/busybox mount -t tmpfs none /dev
/sbin/busybox mkdir /sys
/sbin/busybox mount -t sysfs none /sys

# have a rest
/sbin/busybox sleep 1

#populate /dev
/sbin/busybox mknod dev/console c 5 1
/sbin/busybox mknod dev/null c 1 3
/sbin/busybox mknod dev /tty1 c 4 1
/sbin/busybox mknod dev /tty2 c 4 2

#load the full debian filesystem from extSdCard
/sbin/busybox mkdir /new_root
/sbin/busybox mount -t ext4 -o noatime,nodiratime,errors=panic /dev/mmcblk1p2 /new_root

#tranfer execution to debian
exec /sbin/busybox switch_root /new_root/debian /sbin/init
[Galaxy Note 10.1 General] X-Stranger:
Created new topic with steps of getting my latest experience to your device - installing Ubuntu to N80xx

---------- Post added at 03:50 PM ---------- Previous post was at 03:36 PM ----------

Thanks :)

It is automatically generated. I have some thoughts to simplify it.

This will not work. switch_root cannot switch to subfolder. You need to mount debian folder over /new_root using "mount --bind". That is what I was talking about (I suggest /new_root/debian is folder containing your Linux files? Or have you mentioned that /dev/mmcblk1p2 is your root-device?)

From my point of view you should not even see Samsung logo, only device logo. Also, I had some troubles with booting custom recovery when I was replacing initrd.img only. Try to unpack kernel zImage file too, and update recovery with both zImage and initrd.img. Bootimg.cfg I'm keeping untouched, because it does not really matter for me: previously I was setting up kernel boot parameters directly inside kernel (as Exception13 has recommended), now initrd script overrides root device, so kernel parameters are almost useless.
[Galaxy Note 10.1 General] halcyonabraham:
Hello all ima real newbie so bear with me.

Can anybody give me step by step instructions

To increase the .img file i mannaged to do it but the permissions are messed up.

How do i properly increase the img and preserve all the permission owners etc.

Ive been at this for several.weeks

Im really desperate :/
[Galaxy Note 10.1 General] halcyonabraham:
Whoops i found out the right way to do this finally after weeks man. Answer is on page 23 of this thread :D

resized the image w/out touching the permissions so thats pretty awesome woot nice!
[Galaxy Note 10.1 General] t2107:
Hi X-Stranger,

Using your guide I built zImage from the source (opensource.samsung.com) with no errors. I used your initrd_menu.img from your latest updates. I wrote the zImage and initrd_menu.img to recovery using abootimg

Now all I get is the samsung splash screen (when I try to go recovery with VOL up + power). No black screen, no text, just a normal reboot.

My question is... do I have to modify or patch the kernel source before I build it?

All this is for Galaxy Note 8 LTE (gt-n5120). I know your guide is for Note 10, so I am asking just for the principle theory only.... I hope you still check this old thread! Cheers.
[Galaxy Note 10.1 General] X-Stranger:
When recompiling your kernel you seems to be using default kernel config for your device, right? I assume you need to enable some additional features for Linux. I'm attaching the diff of default kernel config for n8000 and my config, so you might have an idea what is needed to be added.