FORUMS
Remove All Ads from XDA

[unofficial port][linux3.4][native][tarchive]ArchLinuxARM release for D2LTE devices

211 posts
Thanks Meter: 340
 
Post Reply Email Thread
This is not an Android project so I don't feel that posting it in the Android Development forum would be appropriate.

ArchLinuxARM for the d2lte (Samsung Galaxy S III LTE) - Native Boot
This is only tested on the T-Mobile S3. With a kernel swap, it should work on any Qualcomm S3.

Working:
2D Acceleration (EXA)
3D Acceleration (OpenGL ES 2.0, Mesa)
Wi-Fi (with NetworkManager)

Not Working:
Bluetooth
Audio

Installation (to a subfolder of the /data partition)
You will need a Terminal Emulator or ADB Shell to install.

This assumes that arch_d2_20141210_root.tar.gz is in the root of your internal storage (/data/media/0).
Code:
su
mkdir /data/local/arch
tar -C /data/local/arch -xpzvf /data/media/0/arch_d2_20141210_root.tar.gz
Booting
Since there is no workable multiboot solution for the S III yet, you can take one of two routes to boot this thing:
Option 1: Flash the arch_boot.img to either the recovery or the boot partition of the internal flash chip. Due to risk of BRICKING if you flash to the wrong partition, I will not provide instructions here. I might make a flashable zip later on. Note that this removes access to Android.
Option 2: Use the Android Terminal Emulator, the provided kexec_hb binary, a Cyanogen kernel or compatible (they have kexec-hardboot patched in) and my kexec.d2.sh script to hard reboot into Arch Linux from Android.

To install the files needed for Option 2: (assuming that kexec_hb.d2.tar.gz is in the root of your internal storage)
Code:
mkdir /data/local/bin
tar -C /data/local/bin -xzf /data/media/0/
To boot with Option 2 (you might have to restart the Android Terminal Emulator after installation for /data/local/bin to end up in $PATH)
Code:
kexec_hb.d2.sh
The phone will try to kexec /data/media/0/zImage and /data/media/0/initrd.img, which will obviously HAVE to exist. Download them below and put them there if you did not already. If Android restarts, or the phone gets stuck at a black screen, the kexec failed!

Logging in
  • The username is "arch" and the password is "archlinux". Change the password ASAP.
  • For root, the username is "root" and the password is also "root". CHANGE THE PASSWORD ASAP!
  • You'll probably want to enable the On-Screen Keyboard (onboard) and set your Session to "MATE" up in the top right corner.

Read Me
If you WIPE DATA, it will also WIPE OUT THIS PORT, all its applications, and any files you may have stored within it!

Downloads
root filesystem archive: https://drive.google.com/file/d/0B4W...ew?usp=sharing
abootimg style kernel for manual flashing: https://drive.google.com/file/d/0B4W...ew?usp=sharing
initrd.img for kexec_hb: https://drive.google.com/file/d/0B4W...ew?usp=sharing
zImage for kexec_hb: https://drive.google.com/file/d/0B4W...ew?usp=sharing
archive of kexec binary and script: https://drive.google.com/file/d/0B4W...ew?usp=sharing

Kernel Source: https://github.com/willcast/kernel_d2lte

Also available for:
Nexus 7 2013 (flo): http://forum.xda-developers.com/nexu...-2013-t2969301
HP TouchPad: http://forum.xda-developers.com/hp-t...se-hp-t2969310
Nexus 10: http://forum.xda-developers.com/nexu...us-10-t2969450
HTC HD2: http://forum.xda-developers.com/hd2-...c-hd2-t2970483
The Following 5 Users Say Thank You to castrwilliam For This Useful Post: [ View ] Gift castrwilliam Ad-Free
 
 
12th December 2014, 01:22 AM |#2  
Senior Member
Thanks Meter: 497
 
More
Option 2 works like a charm.

Does this use Freedreno for 3D?
12th December 2014, 02:07 AM |#3  
Quote:
Originally Posted by LLStarks

Option 2 works like a charm.

Does this use Freedreno for 3D?

Yes, it does.
12th December 2014, 02:52 AM |#4  
Senior Member
Thanks Meter: 497
 
More
I noticed that kgsl_dri isn't loading

I may need to buy a new USB OTG dongle. Any ideas for remote input?
12th December 2014, 03:15 AM |#5  
Quote:
Originally Posted by LLStarks

I noticed that kgsl_dri isn't loading

I may need to buy a new USB OTG dongle. Any ideas for remote input?

I'm not sure what you mean by remote input but VNC should work for remote desktop. You might even be able to change the framebuffer to /dev/fb1 and try MHL. I haven't tried because I don't have any of those adapters.

Also, I just realized while typing this that pacman overwrote mesa when upgrading, before uploading the archive. I'll recompile latest mesa and upload an overlay archive, then fix the original.
12th December 2014, 03:19 AM |#6  
Senior Member
Thanks Meter: 497
 
More
I'll get VNC setup

On-screen keyboard isn't going to cut it if I want to get logs to robclark (Freedreno dev)

I believe you are the first person to get Freedreno working on an Adreno 225

Edit: Will it be safe to pacman -Syu or will updates screw up X?
12th December 2014, 01:04 PM |#7  
Quote:
Originally Posted by LLStarks

I'll get VNC setup

On-screen keyboard isn't going to cut it if I want to get logs to robclark (Freedreno dev)

I believe you are the first person to get Freedreno working on an Adreno 225

Edit: Will it be safe to pacman -Syu or will updates screw up X?

pacman -Syu will mess up X if there's a new X server ABI. I don't THINK a new libdrm will screw it up but it might because xf86-freedreno depends on libdrm.
13th December 2014, 12:04 AM |#8  
Extract as root in /. Tested. Also has an override for Adreno 200 which I'm going to try soon enough.

https://drive.google.com/file/d/0B4W...ew?usp=sharing
13th December 2014, 09:03 AM |#9  
Senior Member
Thanks Meter: 497
 
More
Code:
[[email protected] ~]# glxinfo | grep OpenGL
MESA-LOADER: malformed or no PCI ID
MESA-LOADER: malformed or no PCI ID
OpenGL vendor string: freedreno
OpenGL renderer string: Gallium 0.4 on FD001
OpenGL version string: 1.4 Mesa 10.5.0-devel (git-69d2380)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 10.5.0-devel (git-69d2380)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
Looks good

Not as fast as Gallium LLVMpipe, but seeing 3D acceleration is incredible

Compiling stuff is surprisingly fast
13th December 2014, 09:54 AM |#10  
I know, it's pretty neat, but I didn't think llvmpipe worked on ARM, only x86.
24th February 2015, 07:41 PM |#11  
Junior Member
Thanks Meter: 0
 
More
Dude port this to the apexq apexqtmo (t699) it has the same specs as qualcomm s3 with hardware keyboard and half ram and 5mp and i heard there is no otg but mhl
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes