[GUIDE] Ubuntu on Galaxy S - Galaxy S I9000 Android Development

Seems to have gone unnoticed here!
To run Ubuntu on Android/Samsung you need to create an img file using my post, you can also use two of my start and stop scripts from here start stop.
Step 1:
Lets begin by preparing our device by create an folder on android, connect your phone to your computer and do:
Code:
1
sudo adb shell
2
cd /sdcard
3
mkdir ubuntu
4
exit
Step 2:
Now you can upload the img file and if you like you can also upload my start and stop scripts.
Code:
1
sudo adb push ubuntu.img /sdcard/ubuntu
2
sudo adb push startA_ubuntu.sh /sdcard/ubuntu
3
sudo adb push stopA_ubuntu.sh /sdcard/ubuntu
Step 3:
Now that you have done all the prep work you can use your ubuntu by doing:
Code:
1
su
2
cd /sdcard/ubuntu
3
sh startA_ubuntu.sh ubuntu.img
Step 4:
To exit just run:
Code:
1
exit
2
sh stopA_ubuntu.sh
That’s it, no more no less
All credit goes to Coralic
EDIT:Here is the Ubuntu image.
A Fix for some issues can be found here!

Could you please post your ubuntu img file to a file sharing site.
I am never able to create the image. It always fails when i try to build the image.
If you want, I can host it on my server for no cost if you dont have space on your server.

I found http://www.megaupload.com/?d=FALJFT3L
http://www.filefactory.com/file/b26fg8g/n/ubuntu.zip
From http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
Designed for the nexus one but the image should be the same.

this sounds very fun and interesting.
but, what will we gain by running a full fledge linux in the phone?

khsbenny said:
I found http://www.megaupload.com/?d=FALJFT3L
http://www.filefactory.com/file/b26fg8g/n/ubuntu.zip
From http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
Designed for the nexus one but the image should be the same.
Click to expand...
Click to collapse
I don't believe that those img's are the same.
SGS ubuntu img should be 1G
The Nexus One ubuntu img is 600mb

really nice !

I have added one of my img files to the blog, Because i am new I can not post urls, please visit my blog you can find a download link there to my img file.

Oh my god! Is that true?!? You can run ubuntu on the galaxy s?!?
And...how does it perform? Lol...does someone have a screenshot or better a video of this one?

carlocb said:
Oh my god! Is that true?!? You can run ubuntu on the galaxy s?!?
And...how does it perform? Lol...does someone have a screenshot or better a video of this one?
Click to expand...
Click to collapse
Uhm performance isn't that of your android haha, You can do stuff but it's not that fast.

ArminC said:
Uhm performance isn't that of your android haha, You can do stuff but it's not that fast.
Click to expand...
Click to collapse
LOL, I thought so! But maybe with a lightweight wm like xfce or openbox...
Maybe just opening X with no wm but FireFox open... for *true* flash support (like full Facebook and games and everything)!If it boots fast enough...
But does it reboot and is there a boot manager or what?
Sent from my GT-I9000 using XDA App

In case anyone skips it, the link at the bottom of the OP shows a youtube clip of it running. I like how it runs on top of android (vnc to localhost).
Anyways, if anyone does this, I would appreciate feedback on flash in web browser (thinks of Mozilla firefox ) My concern are hardware functions like wifi.

I will try to install firefox on it and see if it can run flash. You are using androids network so you have internet using your mobile connection, so wifi should also work.

ArminC said:
I will try to install firefox on it and see if it can run flash. You are using androids network so you have internet using your mobile connection, so wifi should also work.
Click to expand...
Click to collapse
Thanks!
I wish samsung would just release froyo already. Atm, i hate doing anything major on my phone, knowing that it will all have to be redone.

It won't be able to run flash. Why? Flash is closed source! Adobe has to release a binary for linux ARM, and adobe has not released a binary, and adobe will not release a binary.
That is why flash is bad, and the sooner it dies, the better.

RyanZA said:
It won't be able to run flash. Why? Flash is closed source! Adobe has to release a binary for linux ARM, and adobe has not released a binary, and adobe will not release a binary.
That is why flash is bad, and the sooner it dies, the better.
Click to expand...
Click to collapse
that's what I was afraid of, oh well.
So the only reason to install this is to use programs made for arm versions of linux.... where are they? I tried googling for some arm linux applications and didn't find any website with a consolidated list.

RyanZA said:
It won't be able to run flash. Why? Flash is closed source! Adobe has to release a binary for linux ARM, and adobe has not released a binary, and adobe will not release a binary.
That is why flash is bad, and the sooner it dies, the better.
Click to expand...
Click to collapse
never used an ARM Ubuntu, but in the x86 branch there's 2 options to adobe flash, is there none here?

Does the 3g connection work? I cant ping or apt-get update ~
Someone got a working gui?

Telephony isn't supported, mainly an OS issue. What you're running is a desktop OS it simply isn't designed for phone things such as sms or calling.

it'll be cool if they added phone support and 3g support

AllGamer said:
it'll be cool if they added phone support and 3g support
Click to expand...
Click to collapse
Lol it would be... I don't think Google would like spending many years of work to develop a mobile version of Linux (so to say...) and people start using ubuntu on their phones!
Just kidding, I also think that maybe power-management and things like that are not implemented, right? Maybe just "simple" 3G connectivity could be enough...
Sent from my GT-I9000 using XDA App
Sent from my GT-I9000 using XDA App

Related

*OUTDATED* ROM porting for kaiser/vogue [Linux] NOOB friendly!

THIS IS NOW OUTDATED!!
It uses the old sqsh method WITH a rootfs. So if you're using the NoMoRootfs method, this won't work. Please use the already complete builds in the Kaiser/Vogue threads as they are working the best at this moment.
DISCLAIMER:
I take no responsibility for anything that may happen to your phone/computer. Use at your own risk.
PURPOSE:
This is for informational/testing purposes. And for people to stop asking, "can somebody port X rom!!! PLZ!!!"
PREFACE:
I made this as a quick tool to port ROMs from the Dream/Sapphire forums to work with our phones. It's a very quick and dirty script I threw together using bash, so there's probably some problems with it. This tool is simply designed to make a copy of the Dream/Sapphire ROM. Once you get the setup, it's really easy and you'll be porting like crazy.
I did this all on Ubuntu 9.10 so things might not work properly if you're using another distro.
THANKS:
All credit goes to the people that made this possible, in no particular order...
dzo, vilord, mssmison, zen, enatefox, pmos, jamezelle, craig0r, cyanogen, and so many more. If I forgot you, I'm sorry, but you know if you helped in some way.
THE SETUP:
1) Download this file
2) Extract the folder to your desktop. Then copy and paste the following code into the terminal:
Code:
sudo mv -f $HOME/Desktop/Android/genext2fs /bin/genext2fs; sudo chmod 755 /bin/genext2fs; sudo dpkg -P squashfs-tools; sudo dpkg -i $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo rm -r $HOME/Desktop/Android/squashfs-tools_3.3-7_i386.deb; sudo chmod 777 $HOME/Desktop/Android/*.build.script
3) Now go into synaptic package manager, search for squashfs-tools, select it and under Package, check Lock Version so that way it won't try to update.
4) Now cruise over to the Dream android development forum or the Sapphire android development forum and download the ROM you would like to port. Place the zip file in the Android folder. (no need to rename)
5) Place any .apk's you would like built into the system in the Apps folder.
ADVANCED SETUP:
If you would like to tweak the system before building, open the script in a text editor and you'll find a line to uncomment that will halt the script until you are ready.
HOW TO RUN:
Either run the script from a terminal
Code:
./$HOME/Desktop/Android/HERO.build.script
or
./$HOME/Desktop/Android/Donut.Build.script
Or double click and Run in Terminal
You will get a prompt for your password to use the sudo command. THIS IS NOT SAVED ANYWHERE OR MAGICALLY SENT TO ME. It is just to get the system.sqsh setup for you to use.
You will now see a Donut/Hero folder inside the Android folder. Inside that will be a nice little system.sqsh with the date ready to boot!
*Rename to system.sqsh when you put on your SD card*
Grab the latest basefiles from vogue-android and you're good to go.
~~~~~~ To get an output of what's happening run in a terminal as described above but add " > build.txt" and you'll see a txt file in the Android folder. ~~~~~~~
CHANGING SYSTEMS:
If you want to port a new rom, replace the .zip.
UPDATES:
1) Download the updates from HERE
2) Extract to the Android folder overwriting if necessary.
3) Copy and paste the following code into a terminal:
Code:
sudo chmod 777 $HOME/Desktop/Android/*.script
CLEANUP:
If you follow the advanced setup and/or accidentally closed the terminal before the build finishes, run the cleanup script. This will unmount everything that might be mounted and delete all folders that are made during the process.
DOWNLOADS:
If you're too lazy or just want a quick link:
Main "Android porting" folder
Updates
Input, testers, bugs, and tweaks to the scripts are appreciated!
FAQ:
Why does my system.sqsh not work?
Most likely cause is that you're not using the correct version of squashfs-tools. You'll have to find version 3.X for the distro you're using. Version 4.X will NOT work!!!
When I try to boot a system.sqsh I just made I keep getting something about android power wake locks. WTF?
You're probably trying to port an eclair or cyan ROM. These don't work at the current state. Hopefully soon I'll get these working.
Will update more when they arise.
CHANGELOG:
11-27-09:
-Created a cleanup script in case the terminal is closed during the build process.
-Bug fixes in Donut and Hero scripts
11-24-09:
-Added an Apps folder for apk's you want built into the system.
-Bug fixes in scripts
11-22-09:
-Combined everything needed into a zip file
-WAY easier to setup
11-20-09:
-Added feedback to make more user friendly
-Append time to system.sqsh
loserskater said:
Input, testers, bugs, and tweaks to the scripts are appreciated!
Click to expand...
Click to collapse
Will try today... Downloading
Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
garynsa said:
Will try today... Downloading
Tried and working. Had to change the script for it work with ubuntu version that i use. Thanks this is really great
Click to expand...
Click to collapse
What did you change?
Glad to see it's working.
loserskater said:
What did you change?
Glad to see it's working.
Click to expand...
Click to collapse
hI
For some reason I cannot use -a in the genext2fs command. Had to remove that..
One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.
Will try again in the next couple of days and post results.
Thanks
garynsa said:
hI
For some reason I cannot use -a in the genext2fs command. Had to remove that..
One of the Donut is working. Couldnt get the Cyanogen build working . Struggling with hero build also.
Will try again in the next couple of days and post results.
Thanks
Click to expand...
Click to collapse
Make sure you use the genext2fs that I referenced.
That one works with -a and might take care of some issues. try that and see if it works.
Updated script to now move system to a Hero or Donut folder.
Working on the cyanogen build now...
EDIT: Here's a cyanogen script that gets it to boot, but sits at a black screen. I haven't had much time to test it so it might boot further than that if you leave it. If somebody wants to test this out or tweak it in some way go for it.
It uses the donut.sqsh in the Android folder so you shouldn't have to do anything with it except make it executable.
EDIT 2: Still working on cyan builds... that script didn't work.
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
jamezelle said:
great job i like to see stuff like this to motivate people!!! also note this will work with any donut or hero build from the sapphire forum
Click to expand...
Click to collapse
Good point, forgot to mention that. Updated first post.
I'm hoping it will help people start to learn to tweak system's. But I have a slight feeling wer're going to start seeing a lot of "MLIGN/DWANG/etc's Android Rom" threads from random people.
Hi
Was able to port the DWANGs build using your script. Thanks a lot for making life this simple. Howev3er, hero build is still not working. Tried your genesxt2fs. Is it possible to get the links to correct base hero version to use? I tried magic and normal version. It keeps giving me black screen and doesnt completely boot. I think the base hero version is not the right one i am using
Thanks
OK, I think I figured out the problem. The apps folders weren't copying over from the data folder to the system folder correctly. Testing now, and will update first post with new scripts.
EDIT: Finally got the Hero builds working correctly. You should still be able to use any hero.sqsh.
loserskater said:
OK, I think I figured out the problem. The apps folders weren't copying over from the data folder to the system folder correctly. Testing now, and will update first post with new scripts.
EDIT: Finally got the Hero builds working correctly. You should still be able to use any hero.sqsh.
Click to expand...
Click to collapse
Hi
The new script is great.. I was able to get the hero to boot I still have 2 check a few thing willl post later in the night with more
Thanks a lot
garynsa said:
Hi
The new script is great.. I was able to get the hero to boot I still have 2 check a few thing willl post later in the night with more
Thanks a lot
Click to expand...
Click to collapse
Glad to see its working. Thanks for the feedback!
Most things working
Hi
was able to get the hero ported and a few things worked
1. Calls
2. SMS
3. Wifi (getting ips)
4. Working with partition rootfs (speed quite great with this)
Not working
1. Camera
2. GPS
I am using he ION build to build the hero roms (based on the inputs of Zen). May be I need to use another hero rom for the camera to work? I recommend that the links to the recommended build to be used as template (donut, hero...) be updated on the first thread to make it easy for others to have a single starting platform
garynsa said:
Hi
was able to get the hero ported and a few things worked
1. Calls
2. SMS
3. Wifi (getting ips)
4. Working with partition rootfs (speed quite great with this)
using u
Not working
1. Camera
2. GPS
I am using he ION build to build the hero roms (based on the inputs of Zen). May be I need to use another hero rom for the camera to work? I recommend that the links to the recommended build to be used as template (donut, hero...) be updated on the first thread to make it easy for others to have a single starting platform
Click to expand...
Click to collapse
If using a hero.sqsh doesnt fix the problem it sounds like it might be the rootfs (probably not copying over correctly). Ill take a look at it when I get home and update the first post with hero/donut.sqsh's.
Im also thinking about combing the 2 into just one script and youll be able to just type which build you want when you run it. What do you think? Or is the 2 seperate scripts more convenient?
loserskater said:
If using a hero.sqsh doesnt fix the problem it sounds like it might be the rootfs (probably not copying over correctly). Ill take a look at it when I get home and update the first post with hero/donut.sqsh's.
Im also thinking about combing the 2 into just one script and youll be able to just type which build you want when you run it. What do you think? Or is the 2 seperate scripts more convenient?
Click to expand...
Click to collapse
Personally i prefer the separate scripts mainly because each requires a different base templates. However if you prefer to combine them may be have sub-folders within the main so that the work happen for each port within the sub-folder.
Few suggestions if you like (please ignore if not correct.. being a non-programmer of linux I can be a bit off )
1. Let the folder names be requested at start and use them
2. If possible to put in a log of the run to check if there were issue or not (because i use double-click to run the script sometimes there is a problem that i face if i dont watch the window. for now i have put some waits to check the errors. Had this issue while testing to port one)
If I can help (except on coding as I dont know it.. generally change the script just enough to work... )
Queries/questions
1. Is there a way to test the build on the comp itslef rather than to keep booting on the phone (takes a lot of time and the phone is not usable all that time...)
Thanks for all the work
garynsa said:
Personally i prefer the separate scripts mainly because each requires a different base templates. However if you prefer to combine them may be have sub-folders within the main so that the work happen for each port within the sub-folder.
Few suggestions if you like (please ignore if not correct.. being a non-programmer of linux I can be a bit off )
1. Let the folder names be requested at start and use them
2. If possible to put in a log of the run to check if there were issue or not (because i use double-click to run the script sometimes there is a problem that i face if i dont watch the window. for now i have put some waits to check the errors. Had this issue while testing to port one)
If I can help (except on coding as I dont know it.. generally change the script just enough to work... )
Queries/questions
1. Is there a way to test the build on the comp itslef rather than to keep booting on the phone (takes a lot of time and the phone is not usable all that time...)
Thanks for all the work
Click to expand...
Click to collapse
I'll try to make the script more user friendly with prompts if something doesn't happen correctly. And also work on naming folders.
But first I want to figure out the camera/gps issues...
There isn't a way to boot it on the comp that I know of. I'll upload blank data.img's for each build so that they'll boot faster but other than that I think moving to SD Card and booting is the only way. But once all these bugs get sorted out, you won't have to do it as often!
EDIT: Which folders would you like to name? Just where the system.sqsh gets stored?
loserskater said:
I'll try to make the script more user friendly with prompts if something doesn't happen correctly. And also work on naming folders.
But first I want to figure out the camera/gps issues...
There isn't a way to boot it on the comp that I know of. I'll upload blank data.img's for each build so that they'll boot faster but other than that I think moving to SD Card and booting is the only way. But once all these bugs get sorted out, you won't have to do it as often!
EDIT: Which folders would you like to name? Just where the system.sqsh gets stored?
Click to expand...
Click to collapse
Hi
Thanks for the answers. For me it should be both (but the starting folder is main. Other can be a sub-folder like u have now to be renamed as choice)
garynsa said:
Hi
Thanks for the answers. For me it should be both (but the starting folder is main. Other can be a sub-folder like u have now to be renamed as choice)
Click to expand...
Click to collapse
Are you referring to the Android folder? Or just a folder where everything is kept when it runs?
loserskater said:
Are you referring to the Android folder? Or just a folder where everything is kept when it runs?
Click to expand...
Click to collapse
Android folder... but its not a big deal as one can easily change it while startign the script

{Script}One click return to stock {New}

Hey everyone, I saw that the current method of script for one click return to stock is 1) only in batch and 2) doesn't have any safety features like device check (to ensure it's a NS4G) so, I decided to take it upon myself to update it and add a few things and I'm working on making a new script in BASH as well but the BATCH one is finished. I'll be uploading the files shortly so, I'll post the instructions:
Download the One click Unroot zip onto your computer (that fits your OS)
(Mac users, you will need fastboot and adb in your path)
(Linux users, same to you)
Windows users you're good no matter what.
Extract the archive to your desktop into a new folder and then run oneclickunroot.bat (or .sh for mac/linux users)
uploading now.
Code:
Credits
michaelpeerman for the original script
Myself for making it unable to be messed up (Md5 checks, device checks, optimized the script, etc.
Code:
Changelog:
1.0: Initial release (1.0)
Download Links
Windows
Broken link
Xhaotic said:
Broken link
Click to expand...
Click to collapse
I had to break the link until it finished uploading. Link is up now.
You finally give up that crappy Evo?
Sent from my sexily curvy Crespo4G running the latest CM9 kang. Jealous?
jesusice said:
You finally give up that crappy Evo?
Sent from my sexily curvy Crespo4G running the latest CM9 kang. Jealous?
Click to expand...
Click to collapse
Yep, retiring it and giving it to a friend who needs it. Tired of that grandmother phone.
Click "Y" and then CMD closes
Am I missing something? I'm trying to go back to stock, but the warnings come up and I click on Y to continue and then something quickly flashes up on the screen (too fast to read) and then the CMD screen closes.
***Edit***
I ran it again and it looks like the CMD prompt screen says something like "Your device is not a Nexus S 4G". I'm on Sprint... so I know for a fact it is a Nexus S 4G. Help?

[TUT] How to get Aircrack working with Alpha awus036h Wifi Card Tf300t!

Video: http://www.youtube.com/watch?v=gvUE7lP5WME&sns=em
Okay everyone! Here is a tutorial on how to get Aircrack tools working with your Android TF300T! This gets your Alpha Card working with all the drivers in android so you can use it in Backtrack!
CREDITS: I do not take credit for the drivers I simply put all the information together.
Requirements :
Rooted Device
4 GB Free Space
USB Port or for a Phone an Adapter that can provide power like a HUB
An Alpha awus036h wifi adapter
Android 4.0 or higher that supports USB Host Mode
A brain!! :yeye:
Required Downloads:
Backtrack 5 installer APP - IN Files.zip
RootFileExplorer - IN Files.zip
Required Drivers
Terminal App - IN Files.zip
Android VNC - IN Fiiles.zip
Modules App - IN Files.zip
Required Files.zip - https://www.asuswebstorage.com/navigate/share/GY4I6766V4
First install all apps.
Follow the guide in Backtrack 5 installer APP to set up your BT5 install.
Next boot up backtrack and compile and install Aircrack!
In a backtrack terminal issue the following commands to install Aircrack:
http://pastebin.com/tPM8Qshp
Once complete stay in the terminal and get wicd manager
apt-get install wicd
Now that is done download the Alpha drivers and extract them to your system
/lib/modules folder.
Drivers: https://www.asuswebstorage.com/navigate/share/GY4JP966V4
Next TURN OFF YOUR WIFI
The drivers conflict with the internal wifi. You need to reboot to gain your normal wifi again!
Open the Modules app and open the system tab and select the 3 drives your extracted and save them!
eeprom_93cx6.ko, mac80211.ko, rtl8187.ko
Make sure to go to the settings in the Modules App and un-check load at boot!
Now connect your Alpha Wifi card and open up your backtrack terminal and type:
/etc/init.d/dbus start; /etc/init.d/wicd start
Then Type
ifconfig wlan0 up
Put your card in monitor mode: airmon-ng start wlan0
Thats it! :thumbsup:
Just start using aircrack or download reaver and your set!
If you want to use reaver just download it in your bt5: http://code.google.com/p/reaver-wps/downloads/list
Here is a good reaver tut: http://www.hackforums.net/showthread.php?tid=2079678
I know this is a fairly basic tutorial but I am a very busy guy these days!! I hope you get this working!
This is absolutely fantastic, will try this later on during the day. Thank You!
Great share!Thanks for your work!
jsantiago.antonio said:
This is absolutely fantastic, will try this later on during the day. Thank You!
Click to expand...
Click to collapse
Thanks! Enjoy, this is a great reason to own a tabet.
Hey i got an error while entering sh backtrack.sh command. It says,
backtrack.sh[6]: cut: not found
this script requires root! Type:su.
I followed the instructions perfectly. any help?
xplained said:
Hey i got an error while entering sh backtrack.sh command. It says,
backtrack.sh[6]: cut: not found
this script requires root! Type:su.
I followed the instructions perfectly. any help?
Click to expand...
Click to collapse
Its really straight forward. Just follow the onscreen instructions as best as possible. Make sure you downloaded the script during the instructions. Also make sure the files are all extracted to a folder on your sdcard named backtrack
xplained said:
Hey i got an error while entering sh backtrack.sh command. It says,
backtrack.sh[6]: cut: not found
this script requires root! Type:su.
I followed the instructions perfectly. any help?
Click to expand...
Click to collapse
I apologize if this is obvious and you have already done this, but, Try Typing: su (Enter) at the start of your terminal session to enter superuser mode.
Okay, gonna try asap.
Thanks. I'm wait more positive results for insert it on the index
Good work.
Guys ive got a question. What does aircrack do anyway?
BryanSo said:
Guys ive got a question. What does aircrack do anyway?
Click to expand...
Click to collapse
It is a command line tool which lets you *cough* *cough* test the security of your own or other people's networks. Basically if aircrack is able to discover the password on your network in a relatively short amount of time (a couple of hours) you or whoever's network it is needs to boost their security.
xplained said:
Hey i got an error while entering sh backtrack.sh command. It says,
backtrack.sh[6]: cut: not found
this script requires root! Type:su.
I followed the instructions perfectly. any help?
Click to expand...
Click to collapse
first make sure you have supersu not the normal su.apk. also usb debugging must be on.
afzalarsalan said:
It is a command line tool which lets you *cough* *cough* test the security of your own or other people's networks. Basically if aircrack is able to discover the password on your network in a relatively short amount of time (a couple of hours) you or whoever's network it is needs to boost their security.
Click to expand...
Click to collapse
Cool Imma try this
Spark1223 said:
first make sure you have supersu not the normal su.apk. also usb debugging must be on.
Click to expand...
Click to collapse
sorry. supersu? what's that? anyway to the others, yes my first terminal command is su.
You need busy box and it won't work without an external wireless card.
Spark1223 said:
You need busy box and it won't work without an external wireless card.
Click to expand...
Click to collapse
That is correct. I will add busybox to the list of requirements. I forgot to add that one.
can you do this with a different wireless card?
Spark1223 said:
can you do this with a different wireless card?
Click to expand...
Click to collapse
2nd this post specifically Verizon us 4g aircard
Sent from my Transformer Prime TF300T using xda premium
im running AKOP ROM and this dont work.
I followed all instructions and I get I/O errors in terminal when its mounting before it using the backtrack install apk.
dfoote626 said:
2nd this post specifically Verizon us 4g aircard
Sent from my Transformer Prime TF300T using xda premium
Click to expand...
Click to collapse
You should be able to use this method to install drivers from other wireless cards... HOWEVER, you need to go to backtrack's website (google it), and check the wiki to make sure your wireless card is capable of "injection"
http://www.backtrack-linux.org/wiki/index.php/Wireless_Drivers
shrumhead said:
You should be able to use this method to install drivers from other wireless cards... HOWEVER, you need to go to backtrack's website (google it), and check the wiki to make sure your wireless card is capable of "injection"
http://www.backtrack-linux.org/wiki/index.php/Wireless_Drivers
Click to expand...
Click to collapse
I'm pretty sure mine is. Has the following chipset, discovered when I use a pc with backtrack: ASUSTek Computer, Inc. RT2573 - using the mac80211 rt2500usb/rt73usb drivers
Its one of the ones listed. Don't I need to compile the .ko modules for ARM? If so, how do I do this and where do I find them?

Cyanogen 12.1 test builds for Raspi2

Download:
https://www.androidfilehost.com/?w=files&flid=39635
Let me know if these work out for you. You can smack the ramdisk to the original kernel zimage to make the boot.img partition.
Source will be released if this works...
Cheers!
hey!
i would really love to test this.
im just now sure how to get the different .img-files to my SD card (win or osx)
do i partition manually first and then write each IMG seperately? what file system?
i'm really interested in this since im planning to construct my very own RPi2-Android-Car-Headunit...
I really wold like to test this out, I would really appreciate when someone gives install instructions
@Childofthehorn
don't take this the wrong way but can you highlight the zImage your referring too?
are you talking about the android generic device kernel?
are you talking about pulling it from another distro?
just a tad more explanation and I can give this a try. I have scoped out your git for some other clues but come up empty
feherneoh said:
As there is no kernel provided, try raspbian kernel first
I will check it later as I have a "working" lollipop kernel for rPi2 somewhere, but I have to find it
Click to expand...
Click to collapse
Thanks, if we can get some source of stuffs working i would give building a crack as well
feherneoh said:
Building CM12.1 using the same device tree that I used for AOSP 5.1, will see if it works
Click to expand...
Click to collapse
Hi, news about it?
feherneoh said:
I'm buildind inside screen, so I cannot scroll (I have no idea, how to do that) and the error message is outside of the 80x50 terminal I'm using
Click to expand...
Click to collapse
Many thanks for your effort.
If you could build it and boot it, please create your own topic so you are able to upgrade changelog and so on..
feherneoh said:
I'm buildind inside screen, so I cannot scroll (I have no idea, how to do that) and the error message is outside of the 80x50 terminal I'm using
Click to expand...
Click to collapse
Well, You could redirect the output to a file and read that file using vim. To redirect to file run
Code:
command > file.txt
Is it possible to write install instructions?
yes,I want to obtain the install instruction.
Sent from my MI 2S using Tapatalk
I'm interested too!
partition boot as fat,system as ext4, cache as ext4, and data as ext4, then restore file.
Sent from my MI 2S using Tapatalk
feherneoh said:
I know how to do this, and I would need to use command &> file.txt, as I need stderr, too
Click to expand...
Click to collapse
To put also stderr to the same file use:
Code:
command > file.txt 2>&1
To use different files:
Code:
command > file.txt 2> err_file
Another possibility to see output and stderr on screen and also put it in a file:
Code:
command 2>&1 | tee file.txt
i have a working rom for raspberry pi 1, 2 and 3. the only issue im having is getting the wifi and bluetooth to work. any suggestions?
How to install it ?
Badfiler said:
How to install it ?
Click to expand...
Click to collapse
Why install something that isn't working?

Arch Linux for Shield TV

I present to you instructions on how to get Arch Linux working natively on your shield TV dual booted with your Android rom. This is all thanks to the amazing people in this thread for getting Ubuntu on the shield and would not be possible without them.
http://forum.xda-developers.com/shield-tv/general/ubuntu-utopic-nvidia-shield-tv-t3150352
This install will put arch Linux on a micro SD card, and does not modify your shield at all if you so choose. First download these 2 files.
Archlinux Stage 3 install
http://archlinuxarm.org/os/ArchLinuxARM-aarch64-generic-latest.tar.gz
Kernel (Credits to jagger11 from his thread) You only need nvidia_boot.img
https://drive.google.com/folderview...ZSS1VxUVBJZmFqSXNFYUhpN2lHcklhVzZtX0Z5OENxdU0
To intstall
1. Unlock your shield TV
2. Format your SD card to EXT4
3. Mount the SD card
4. As the root user on your linux distro (not sudo) run this command (From the same directory that you downloaded that file to, and replacing mountpoint to where you mounted the SD to)
bsdtar -xpf ArchLinuxARM-aarch64-generic-latest.tar.gz -C mountpoint
5. Unmount the drive, then run the command "sync". When that finishes, pull the SD card from the computer.
6. Put the SD in the shield
7. Reboot to bootloader (adb reboot fastboot) with your preferred method
8. Boot Linux
To boot it once run this
a) fastboot boot nvidia_boot.img
To save to recovery run this (Reboot android to recovery to boot arch after)
b) fastboot flash recovery nvidia_boot.img
Default users and passwords are
root:root
alarm:alarm
For more information, check this page.
http://archlinuxarm.org/platforms/armv8/generic
Tested Working
*Ethernet
*USB
*TTY Terminals
*Framebuffer (Install X11 as usual and xf86-video-fbdev)
Untested
*WIFI (Should work)
*Bluetooth (Probably doesn't work)
Broken
*3D acceleration (Will work on this in the future)
*You tell me
*Sometimes does not boot after a few working boots (I think it's a problem with my SD, or my android install messing with it. Working that out now, but please report if you have this issue only after it boots fine at least once)
My request to you. I am not a kernel dev any more. I once was, but things have unfortunately changed, and I don't have the time or resources to learn it all again. If anyone wants to develop a kernel for this, please do and I'll add it in the OP. Unless something changes, and Ubuntu kernel from the Utopic thread will work fine here)
I'll format this a bit better later, but hopefully this is a good start. I have some good tips and tricks to add if people are interested in this, and was able to watch quite a lot of my videos in vlc even on framebuffer. Please give me some feedback on what you want to see, and ask any questions. I'll be glad to help!
kdb424 said:
I present to you instructions on how to get Arch Linux working natively on your shield TV dual booted with your Android rom. This is all thanks to the amazing people in this thread for getting Ubuntu on the shield and would not be possible without them.
http://forum.xda-developers.com/shield-tv/general/ubuntu-utopic-nvidia-shield-tv-t3150352
This install will put arch Linux on a micro SD card, and does not modify your shield at all if you so choose. First download these 2 files.
Archlinux Stage 3 install
http://archlinuxarm.org/os/ArchLinuxARM-aarch64-generic-latest.tar.gz
Kernel (Credits to jagger11 from his thread) You only need nvidia_boot.img
https://drive.google.com/folderview...ZSS1VxUVBJZmFqSXNFYUhpN2lHcklhVzZtX0Z5OENxdU0
To intstall
1. Unlock your shield TV
2. Format your SD card to EXT4
3. Mount the SD card
4. As the root user on your linux distro (not sudo) run this command (From the same directory that you downloaded that file to, and replacing mountpoint to where you mounted the SD to)
bsdtar -xpf ArchLinuxARM-aarch64-generic-latest.tar.gz -C mountpoint
5. Unmount the drive, then run the command "sync". When that finishes, pull the SD card from the computer.
6. Put the SD in the shield
7. Reboot to bootloader (adb reboot fastboot) with your preferred method
8. Boot Linux
To boot it once run this
a) fastboot boot nvidia_boot.img
To save to recovery run this (Reboot android to recovery to boot arch after)
b) fastboot flash recovery nvidia_boot.img
Default users and passwords are
root:root
alarm:alarm
For more information, check this page.
http://archlinuxarm.org/platforms/armv8/generic
Tested Working
*Ethernet
*USB
*TTY Terminals
*Framebuffer (Install X11 as usual and xf86-video-fbdev)
Untested
*WIFI (Should work)
*Bluetooth (Probably doesn't work)
Broken
*3D acceleration (Will work on this in the future)
*You tell me
*Sometimes does not boot after a few working boots (I think it's a problem with my SD, or my android install messing with it. Working that out now, but please report if you have this issue only after it boots fine at least once)
My request to you. I am not a kernel dev any more. I once was, but things have unfortunately changed, and I don't have the time or resources to learn it all again. If anyone wants to develop a kernel for this, please do and I'll add it in the OP. Unless something changes, and Ubuntu kernel from the Utopic thread will work fine here)
I'll format this a bit better later, but hopefully this is a good start. I have some good tips and tricks to add if people are interested in this, and was able to watch quite a lot of my videos in vlc even on framebuffer. Please give me some feedback on what you want to see, and ask any questions. I'll be glad to help!
Click to expand...
Click to collapse
Thanks for the new thread. You are correct that the "nvidia_boot.img" from jagger11 can boot to archLinux but the kernel I built can't.
I have always been using Ubuntu with desktop enabled by default. How did you install X11 under archLinux?
yahoo2016 said:
Thanks for the new thread. You are correct that the "nvidia_boot.img" from jagger11 can boot to archLinux but the kernel I built can't.
I have always been using Ubuntu with desktop enabled by default. How did you install X11 under archLinux?
Click to expand...
Click to collapse
Following the standard guide on their wiki.
I installed
xorg-server
xorg-server-utils
xorg-init
xf86-video-fb
And then just the standard startx after setting my xinitrc to the usual. In my case I used awesome WM, though you can use any, and exec that in your .xinitrc file
kdb424 said:
Following the standard guide on their wiki.
I installed
xorg-server
xorg-server-utils
xorg-init
xf86-video-fb
And then just the standard startx after setting my xinitrc to the usual. In my case I used awesome WM, though you can use any, and exec that in your .xinitrc file
Click to expand...
Click to collapse
I have to admit I was spoiled by Ubuntu which installs everything by default. I have to read archLinux wiki and try them tomorrow morning.
yahoo2016 said:
I have to admit I was spoiled by Ubuntu which installs everything by default. I have to read archLinux wiki and try them tomorrow morning.
Click to expand...
Click to collapse
Those packages will do you other than desktop manager, but I have to say, I'm pretty minimalist, and arch is by default, so don' feel too bad. I've just been using arch for the last few years, and was using Gentoo before that, which is all even more manual and source built.
https://wiki.archlinux.org/index.php/Xorg
That page will go through it all. Once you know what desktop manager you want (I recommend XFCE if you don't know what, or LXDE which is even lighter), check the pages out on there for them. It covers haw to do absolutely everything. I honestly use arch linux for the wiki. It's by far the best source of linux information on the net I'd be willing to bet.
kdb424 said:
Those packages will do you other than desktop manager, but I have to say, I'm pretty minimalist, and arch is by default, so don' feel too bad. I've just been using arch for the last few years, and was using Gentoo before that, which is all even more manual and source built.
https://wiki.archlinux.org/index.php/Xorg
That page will go through it all. Once you know what desktop manager you want (I recommend XFCE if you don't know what, or LXDE which is even lighter), check the pages out on there for them. It covers haw to do absolutely everything. I honestly use arch linux for the wiki. It's by far the best source of linux information on the net I'd be willing to bet.
Click to expand...
Click to collapse
What display driver should I install?
The wiki starts with
lspci | grep -e VGA -e 3D
But lspci does not work for shield TV.
yahoo2016 said:
What display driver should I install?
The wiki starts with
lspci | grep -e VGA -e 3D
But lspci does not work for shield TV.
Click to expand...
Click to collapse
xf86-video-fbdev works for me. Since we don't have access to the GPU directly, we are using the framebuffer at the moment.
kdb424 said:
xf86-video-fbdev works for me. Since we don't have access to the GPU directly, we are using the framebuffer at the moment.
Click to expand...
Click to collapse
That confused me since I thought xf86 meant x86 but Shield has Arm CPUs.
yahoo2016 said:
That confused me since I thought xf86 meant x86 but Shield has Arm CPUs.
Click to expand...
Click to collapse
Yeah, it's actually got nothing to do with architecture. Not quite sure why they are named as such. Also, xf86-video-fbdev isn't listed there as it's a last resort kinda thing, but it works well on the shield for the moment. Once I figure out why my system stops booting linux from time to time, I'll work on GPU drivers. Hard to know what broke it if I don't fix that first.
kdb424 said:
Yeah, it's actually got nothing to do with architecture. Not quite sure why they are named as such. Also, xf86-video-fbdev isn't listed there as it's a last resort kinda thing, but it works well on the shield for the moment. Once I figure out why my system stops booting linux from time to time, I'll work on GPU drivers. Hard to know what broke it if I don't fix that first.
Click to expand...
Click to collapse
You may want to have a look at this: https://github.com/NVIDIA/tegra-nouveau-rootfs
Arch Linux is the target rootfs and the Jetson TX1 is supported. Now the questions is how to get a mainline kernel running on shield tv. I guess one issue is the device tree which will not be provided by uboot like on normal arm systems. In the kernel configuration you can define that the device tree is appended to the kernel image (e.g. by "cat Image foster.dtb > newImage"). Maybe this is a solution.
Thanks_Meter said:
You may want to have a look at this: https://github.com/NVIDIA/tegra-nouveau-rootfs
Arch Linux is the target rootfs and the Jetson TX1 is supported. Now the questions is how to get a mainline kernel running on shield tv. I guess one issue is the device tree which will not be provided by uboot like on normal arm systems. In the kernel configuration you can define that the device tree is appended to the kernel image (e.g. by "cat Image foster.dtb > newImage"). Maybe this is a solution.
Click to expand...
Click to collapse
Thanks for the info. I'm going to have the next 2 days off work, so I'll definately get to work. I'm going to need assistance in getting a working kernel as I don't have an x86 machine around currently. Crazy, I know, but I don't. I'll see if I can get the drivers installed if someone works on a kernel. If not, I'll contact some of my linux friends and see what they come up with.
kdb424 said:
Thanks for the info. I'm going to have the next 2 days off work, so I'll definately get to work. I'm going to need assistance in getting a working kernel as I don't have an x86 machine around currently. Crazy, I know, but I don't. I'll see if I can get the drivers installed if someone works on a kernel. If not, I'll contact some of my linux friends and see what they come up with.
Click to expand...
Click to collapse
That link mentioned:
"The first prerequisite is that you must use an up-to-date U-Boot as bootloader"
Jetson TK1 and TX1 uses U-boot, Shield TV however uses fastboot not U-boot and the kernel is not Linux but Android.
I'd really like someone can have u-boot ported to Shield TV as 2nd or 3rd stage boot loader.
Damn! I just found out that this CONFIG_ARM_APPENDED_DTB trick only works with zImage but not with Image as needed for abootimg. Currently I don't have an idea how to get a mainline kernel running on the shield tv. I guess uboot makes no sense since we don't have an uart.
Thanks_Meter said:
Damn! I just found out that this CONFIG_ARM_APPENDED_DTB trick only works with zImage but not with Image as needed for abootimg. Currently I don't have an idea how to get a mainline kernel running on the shield tv. I guess uboot makes no sense since we don't have an uart.
Click to expand...
Click to collapse
u-boot could use netconsole:
http://forum.doozan.com/read.php?3,14,14
---------- Post added at 10:33 PM ---------- Previous post was at 10:28 PM ----------
My kernel can boot to command line archLinux now, I updated the procedure:
http://forum.xda-developers.com/showpost.php?p=64330336&postcount=147
I'll try that kernel when get home with the gui running on framebuffer. Should work.
kdb424 said:
I'll try that kernel when get home with the gui running on framebuffer. Should work.
Click to expand...
Click to collapse
I uploaded my latest kernel tested with command line archLinux:
https://drive.google.com/file/d/0Bz5kaPQJx_AgUklNekxGeWFuNW8/view
yahoo2016 said:
I uploaded my latest kernel tested with command line archLinux:
https://drive.google.com/file/d/0Bz5kaPQJx_AgUklNekxGeWFuNW8/view
Click to expand...
Click to collapse
Any chance you can maybe try to patch in the Nouveau kernel driver from here?
With a kernel running that I can get 3D acceleration work started. Till I get that sorted out I can only guess if my changes are working or not.
I'll also be trying to get the closed source binaries running on this. I have decided to pay a decent sum of money for a VPS to get a compile machine. Hopefully we can get this project rolling.
kdb424 said:
Any chance you can maybe try to patch in the Nouveau kernel driver from here?
With a kernel running that I can get 3D acceleration work started. Till I get that sorted out I can only guess if my changes are working or not.
I'll also be trying to get the closed source binaries running on this. I have decided to pay a decent sum of money for a VPS to get a compile machine. Hopefully we can get this project rolling.
Click to expand...
Click to collapse
I did not expect it'd take me so long just to have gui running for archLinux. As I mentioned before this thread started, I'd like to try Cuda 7.0 on ArchLinux. I main goal is to have Cuda working so I can use Gpgpu of Tegra for image processing and other applications.
A script or procedure for post installation to quickly install gui is what I was interested. To install archlinux rootfs without gui was very simple and I did it the first day when I received my Shield TV to troubleshoot Utopic rootfs. I could read the wiki to have gui working for archLinux, but I have to spend my time on other things, e.g., without hope to have u-boot or multirom working for Shield TV, I have to learn Android kernel (I'm in the process of clone Android kernel source tree).
I'll write a script for you once I get home. Thanks for the input. Any requests for a desktop environment or window manager? If not I'll just pick a light one like lxde.
kdb424 said:
I'll write a script for you once I get home. Thanks for the input. Any requests for a desktop environment or window manager? If not I'll just pick a light one like lxde.
Click to expand...
Click to collapse
Any desktop is fine. I'd like to push Cuda 7.0 from my build PC to archLinux like I did for L4T. Network connection and any desktop are what I need. If it works, we can see performance differences between 32 bits and 64 bits
Thanks.

Categories

Resources