FORUMS
Remove All Ads from XDA

[DEV][WIP][Linux] Easy GNU/Linux on our tablet

77 posts
Thanks Meter: 90
 
By thermatk, Member on 27th March 2013, 12:23 PM
Post Reply Email Thread
Hi all!
Many of us are dreaming of having a real native desktop operating system on Galaxy Note 10.1 as a second system. Of course, the software there is not touch-optimized, but you can attach keyboard and mouse via USB-OTG and Bluetooth and imagine it's a netbook
exception13 showed us that it's possible and shared his work on in a forum and repo. X-Stranger could use it and shared compiled images of ArchLinux. But what if you want to do something more specific for your own needs and you are not such a great developer as both of them are?
My project is for all of you who want to have native GNU/Linux, who want to participate but don't know how yet. It's a guide how to build it from scratch. The problem is - I am not a superdev too and I couldn't do many things. Frankly speaking, all the remaining things seem to be small but I don't know how to overcome them. Maybe it's because I'm studying economics but not programming
Link to the guide.
I need help from anyone who knows how to overcome any of the problems on every step! Everything I managed to do by myself is already written there and currently I have a compiled kernel which is booting a partition on external SD but it freezes there.
If you have any ideas - you can just make a pull request out of Github's webinterface, if you don't know how to edit this html but know something about building Linux - you are welcome to open an issue or write it here and I will include it in the guide.
Let's make our Galaxy Note 10.1 better together!
The Following 2 Users Say Thank You to thermatk For This Useful Post: [ View ] Gift thermatk Ad-Free
 
 
28th March 2013, 11:11 PM |#2  
Soul_Est's Avatar
Senior Member
Flag Mississauga
Thanks Meter: 13
 
More
,I just got my Note 101.1 earlier today. I'll look into the missing information and add to the webpage. Is there anything that you think I should look into first?
29th March 2013, 12:09 AM |#3  
darksabre_x's Avatar
Senior Member
Thanks Meter: 41
 
More
I actually had a question.

Looks like you have the section "Harder Way - how to prepare binaries" split into Ubuntu and Arch. Instructions for compiling the kernel are the same.

I guess my question is why the choice to show the arch kernel being compiled under arch?


Might be easier to read the guide with all the kernel compiling done in Ubuntu.

**Edit**

What I didn't originally mention is that i really like it. Hoping to help contribute as well.
29th March 2013, 12:27 AM |#4  
Soul_Est's Avatar
Senior Member
Flag Mississauga
Thanks Meter: 13
 
More
Quote:
Originally Posted by darksabre_x

I actually had a question.

Looks like you have the section "Harder Way - how to prepare binaries" split into Ubuntu and Arch. Instructions for compiling the kernel are the same.

I guess my question is why the choice to show the arch kernel being compiled under arch?


Might be easier to read the guide with all the kernel compiling done in Ubuntu.

**Edit**

What I didn't originally mention is that i really like it. Hoping to help contribute as well.

Good question. The reason for that are that despite how close Arch Linux and Ubuntu are, the environments are different. Ubuntu usually has some sort of bash completion enabled by default whereas Arch Linux doesn't and of course each of them requires diferent packages installed to perform the same functions. I believe thermatk did each distro separately as to make things simpler for the end user. Pick a distro and go as each distro's guide can be tuned independent of the others.
29th March 2013, 02:42 AM |#5  
darksabre_x's Avatar
Senior Member
Thanks Meter: 41
 
More
Quote:
Originally Posted by Soul_Est

Good question. The reason for that are that despite how close Arch Linux and Ubuntu are, the environments are different. Ubuntu usually has some sort of bash completion enabled by default whereas Arch Linux doesn't and of course each of them requires diferent packages installed to perform the same functions. I believe thermatk did each distro separately as to make things simpler for the end user. Pick a distro and go as each distro's guide can be tuned independent of the others.

Doesn't really answer my question considering the end kernel will be the same regardless of the distro being used. I think you took my question as "Why are there 2 options for kernel compilation?", which wasn't what I was asking.


Looks like thermatk actually addressed the question with a page update.

It now gives separate options depending on which distro you want to end up with on your Note 10.1, in addition to separate kernel compilation options.

What I was referring to was when it was Ubuntu only instructions from kernel compilation all the way to deployment on the tablet and Arch only instructions. The kernel and linux image instructions weren't independent of each other, as they currently are.
29th March 2013, 06:05 AM |#6  
OP Member
Flag Munich, Germany
Thanks Meter: 90
 
More
Update
I'm really happy to hear that someone else wants to use it and contribute!
darksabre_x, you are right I separated the guide into parts yesterday because the system where you compile kernel doesn't really affect anything on the tablet.
Soul_Est, thank you for helping with questions in the thread
Now I understand that tabs are not the best way to do it, will start this day from trying to rewrite this to a navbar constantly on top which lets you choose options from a dropdown.
Also yesterday got the guide to the point when one path through can get ypu to a bootable distro! You can compile kernel wherever you want, you should be on stock based rom and choose to install Arch on separate partition which probably will be a partition on SD. What you have to add at the end is
Code:
pacman -S lxde
and copy xorg.conf from X-Stranger's post. Once rebooted, you will be able to enter android:changeme and
Code:
sudo lxdm
and the gui will start if you don't have USB-OTG and keyboard you won't be able to enter password but you can poweroff from the interface's right corner Attention: if gui says that it has no permissions to write logs do
Code:
sudo mount -n -o remount, rw /
and retry but do not forget to write here about it!
What are the current problems:
  • Why exception13 and X-Stranger both hardcoded the whole cmdline for kernel and forced it not to be changeable from bootloaders. It's easy to fix in the config but there should have been some idea or i'm paranoic?
  • What's wrong with LinuxDeploy, separate partitions and CyanogenMod? hiruna filed a bug but meefik seems to be away for a week. If anyone else with CM has an idea on how to overcome this maybe with some special unmount commands CM is thinking that ext4 partition is th extSdCard and mounts it so that LinuxDeploy can't install anything there (seems that it's the problem) while stock can't mount ext4 as extsdcard and is not touching the partition.
  • How do we make Debian/Ubuntu to boot? Both ways - for separate partition and img are stuck one the problem that not any mkinitramfs or abootimg or their combinations could get to a better state than initramfs shell. Separate partition should be easier so focus should be on it for the start.
  • Adapt X-Stranger's guide about booting Arch from *.img. It's there and should be tested, rewritten and easied and some whitespaces should be filled. I know there are some as i have spent many hours in Arch with little dirty hacks like
    Code:
    ln -s /proc/self/fd /dev/fd
    that are needed but no one ever wrote that they are.
  • What's wrong with basic video? While we get bootable Arch if you add lxdm and xorg.conf it should work with lightdm and boot there without console commands. If you try to install lightdm you will get nothing but a black screen if you start it with
    Code:
    sudo lightdm
    ... and it should boot automatically without touching console.

Oh and why is kernel from exception13 not building at all? XD
The Following 3 Users Say Thank You to thermatk For This Useful Post: [ View ] Gift thermatk Ad-Free
29th March 2013, 02:32 PM |#7  
OP Member
Flag Munich, Germany
Thanks Meter: 90
 
More
Redesign #2
Anyone dislikes the new design idea with navbar selectors instead of tabs?
I hope it's better.
Will soon update the guide with last steps to have Arch with LXDE bootable from separate partition.
That's fun as I started this project to get Ubuntu working...
If anyone can understand what should be done with mkinitramfs to make debian/ubuntu rootfs bootable - please do it.
The Following User Says Thank You to thermatk For This Useful Post: [ View ] Gift thermatk Ad-Free
29th March 2013, 05:46 PM |#8  
OP Member
Flag Munich, Germany
Thanks Meter: 90
 
More
First success!
If you choose any pc distro, arch on sgn with lxde on a seaprate partition you will now get a fully working guide that will give you a native bootable GNU/Linux =)
That's first success for me but still i hope to get help as i don't know things I asked two posts ago and it's difficult to move forward.
The Following User Says Thank You to thermatk For This Useful Post: [ View ] Gift thermatk Ad-Free
29th March 2013, 07:56 PM |#9  
OP Member
Flag Munich, Germany
Thanks Meter: 90
 
More
XFCE problems
XFCE is booting (not in the guide yet) but for working with fingers in XFCE one should probably disable multitouch S-pen works fine.
http://lists.x.org/pipermail/xorg/2012-July/054626.html
http://xfce.10915.n7.nabble.com/Xfwm...n-td17348.html
Will find a way to enable onscreen keyboard on LightDM and update the guide with XFCE. Still I was hoping to make it my primary DE and they are not supporting fingers moving windows upstream
The Following User Says Thank You to thermatk For This Useful Post: [ View ] Gift thermatk Ad-Free
30th March 2013, 12:09 AM |#10  
Soul_Est's Avatar
Senior Member
Flag Mississauga
Thanks Meter: 13
 
More
Re: [DEV][WIP][Linux] Easy GNU/Linux on our tablet
I was hoping to contribute this weekend but unfortunately my only machine is down after mucking up the /lib folder when heimdall. To add insult to injury, I have no backups. Installing Arch Linux or Debian and configuring everything to my liking again will take a few hours.

Sent from my GT-N8010 using Tapatalk 2
30th March 2013, 04:47 AM |#11  
Senior Member
Flag Craigieburn
Thanks Meter: 54
 
More
Post How to setup WiFi using wpa_supplicant.conf
How to setup WiFi using wpa_supplicant.conf

1. Copy the "wifi" folder to "/opt"

- You will need gedit to edit the nameservers.
- You also need two dependencies before installing gedit.
- The two dependencies are : gtksourceview3-3.6.1-1-armv7h.pkg.tar.xz and libpeas-1.6.1-1-armv7h.pkg.tar.xz

2. Download them and copy over to ArchLinux

3. Install the dependencies first then gedit:

Code:
sudo pacman -U gtksourceview3-3.6.1-1-armv7h.pkg.tar.xz
sudo pacman -U libpeas-1.6.1-1-armv7h.pkg.tar.xz
sudo pacman -U gedit-3.6.2-2-armv7h.pkg.tar.xz


4.
insmod the drivers:
***NOTE*** " 3.0.31-gedcc915 " is my kernel name. Change it to your
kernel name if it is different.

Code:
sudo insmod /lib/modules/3.0.31-gedcc915/kernel/net/wireless/cfg80211.ko

sudo insmod /lib/modules/3.0.31-gedcc915/kernel/drivers/net/wireless/bcmdhd/dhd.ko op_mode=0 firmware_path=/opt/wifi/bcmdhd_sta.bin nvram_path=/opt/wifi/nvram_net.txt_murata
5. Enable the wlan0:

Code:
sudo ip link set wlan0 up
6. Setup wpa_supplicant and ip address:

Code:
sudo wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf

sudo ip addr add 192.168.1.33/24 dev wlan0

sudo ip route add default via 192.168.1.1
7a. Add nameservers:

Code:
sudo gedit /etc/resolv.conf
7b. Go to the next available line and type:

Code:
nameserver 8.8.8.8
7c. Next line :

Code:
nameserver 8.8.4.4
7d. Save it

8. Go back to the terminal and edit the wpa_supplicant file:

Code:
sudo gedit /etc/wpa_supplicant/wpa_supplicant.conf
- wpa_supplicant.conf file should be like this:

Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1

network={
	ssid="NETWORKNAME"
	scan_ssid=1
	proto=RSN
	key_mgmt=WPA-PSK
	pairwise=CCMP TKIP
	psk="NETWORKPASSWORD"
}
9. And finally, to connect to your network, run

Code:
sudo dhcpcd
Open up a web browser and enjoy!

The Following 2 Users Say Thank You to hiruna For This Useful Post: [ View ] Gift hiruna Ad-Free
Post Reply Subscribe to Thread

Tags
galaxy note 10.1, linux, ubuntu

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes