[Q] Anyone get Ubuntu working...? - Optimus One, P500, V General

hi guys, i have an optimus v just lying around, and today i decided to try and get ubuntu on it through chroot.
using this guide, i was able to get to the point where it would boot on the command line,
Code:
[email protected]:/#
instead of the normal "#"
but after that, i tried to get it to work in a GUI, but it doesn't work?
i tried
Code:
apt-get update
and it runs, but gives me a bunch of fails and errors...
so of course, without that installed, i can't get any of the servers or other stuff installed, meaning that i can't get the GUI working...
so did anyone get this to work?
(i'm starting to think that it's their problem...)
thanks guys
i'll try to get a photo to show...

OK... First picture shows it booting into Ubuntu
Second picture shows the fail when I try the apt-get update command
Sent from my HTC Glacier Sense 3.5 using xda premium

the error messages says all: you have a network problem, may be no wifi connection or working dns?

andy572 said:
the error messages says all: you have a network problem, may be no wifi connection or working dns?
Click to expand...
Click to collapse
hm that's weird... i have a wifi connection... i tried it on two devices and both could boot up linux, just not get the downloads?
hmmmmm...

what version of ubuntu? nvm, I see your screenshot says karmic, which should work.
more recent versions don't support armv6, so apt-get fails to download any unsupported package.
there's a thread in the optimus v dev section on installing debian.
squeeze and even sid run great on the OV for a 600MHz device with a tiny screen and no keyboard
try checking your /etc/apt/sources.list and make sure it's correct. It looks wrong to me, but I only use ubuntu for my DTV usb stick on my pc. I'm more a debian user myself.
edit again:
you can manually download .deb files and install them from the chroot command line with
dpkg -i filename.deb
just make sure they're for armel architecture; however, with ubuntu being too picky about the processor type, not all armel ubuntu packages will work. If you search google for ubuntu karmic armel whateverthehey.deb you should get stuff that will work. The main problem with manual installs is getting all the dependency .deb's, apt-get is really handy for that step.
---------- Post added at 01:59 PM ---------- Previous post was at 01:29 PM ----------
ok, that sources.list entry in the screenshot looks REALLY wrong.
there is a stock version of the sources.list contents posted here
try putting that in there and maybe apt-get will work.

bigsupersquid said:
what version of ubuntu? nvm, I see your screenshot says karmic, which should work.
more recent versions don't support armv6, so apt-get fails to download any unsupported package.
there's a thread in the optimus v dev section on installing debian.
squeeze and even sid run great on the OV for a 600MHz device with a tiny screen and no keyboard
try checking your /etc/apt/sources.list and make sure it's correct. It looks wrong to me, but I only use ubuntu for my DTV usb stick on my pc. I'm more a debian user myself.
edit again:
you can manually download .deb files and install them from the chroot command line with
dpkg -i filename.deb
just make sure they're for armel architecture; however, with ubuntu being too picky about the processor type, not all armel ubuntu packages will work. If you search google for ubuntu karmic armel whateverthehey.deb you should get stuff that will work. The main problem with manual installs is getting all the dependency .deb's, apt-get is really handy for that step.
---------- Post added at 01:59 PM ---------- Previous post was at 01:29 PM ----------
ok, that sources.list entry in the screenshot looks REALLY wrong.
there is a stock version of the sources.list contents posted here
try putting that in there and maybe apt-get will work.
Click to expand...
Click to collapse
alright thanks... not sure if i get you completely...
i tried it on my actual phone (Mytouch 4G) and on a dell streak 7, both ARM7 CPUs and no luck on neither. i even turned off wifi on my MT4G and tried to download the packages through my mobile data, still no work...
so how would i go about getting the sources list on there..?
and where can i find the .deb files to install then manually?
thankss

go to the link I posted that says "here" and copy/paste the contents of that post into a plain text file named "sources.list"
put it in your ubuntu image (or partition, whatever it is) in /etc/apt/
as far as where to get .debs, google for what program you want to install, make sure to include "ubuntu karmic armel" in the search.
since you're using armv7, you can upgrade the ubuntu release without problems for those devices, the OV will have to stay with karmic I think.
your issue right now is that apt is trying to download from somewhere other than the default repositories, and it can't find where it's looking for.

bigsupersquid said:
go to the link I posted that says "here" and copy/paste the contents of that post into a plain text file named "sources.list"
put it in your ubuntu image (or partition, whatever it is) in /etc/apt/
as far as where to get .debs, google for what program you want to install, make sure to include "ubuntu karmic armel" in the search.
since you're using armv7, you can upgrade the ubuntu release without problems for those devices, the OV will have to stay with karmic I think.
your issue right now is that apt is trying to download from somewhere other than the default repositories, and it can't find where it's looking for.
Click to expand...
Click to collapse
hm... ok... so here's the contents of the .zip i downloaded to get ubuntu running from here
where do i put it..?

you'll have to mount ubuntu.img as a loop device and put it in that directory's etc/apt/ folder.
probably can copy it in once running on-device, you'll have to figure out where in your filesysyem the img is mounted.
i'm not familiar with the method you're using so I can't be more specific, sorry.

alright guys FINALLY GOT IT!!
you have to replace the original server in
Code:
data/local/ubuntu/etc/apt/sources.list
with this:
Code:
http://old-releases.ubuntu.com/ubuntu/
and then it should work!

saranhai said:
alright guys FINALLY GOT IT!!
you have to replace the original server in
Code:
data/local/ubuntu/etc/apt/sources.list
with this:
Code:
http://old-releases.ubuntu.com/ubuntu/
and then it should work!
Click to expand...
Click to collapse
Here's proof
Sent from my HTC Glacier Sense 3.5 using xda premium

Related

[GSM/CDMA]Backtrack5 -- ARM Backtrack5 on Webtop & Screen --

What do we have here?
Backtrack 5. Arm + Gnome.
What do you need?
1. A brain
2. A RAZR (Or any rooted android phone really.)
3. Terminal Emulator
4. VNC
Downloads:
BT5.rar: HERE
Thanks to spryte for reuploading!
Instructions:
1. Unrar the archive
2. Copy the IMG file & mounts.sh to the root of your external sdcard
3. Follow scripts below.
4. Enjoy!
Code:
********* First time use - Not sure if this is needed.. *********
su
chmod 755 /sdcard-ext/mounts.sh
********* Startup script for BT5 on screen. *********
su
/usr/bin/sudo sh /sdcard-ext/mounts.sh
/usr/bin/sudo chroot /tmp/bt5 /bin/bash
Should get a backtrack bash shell that looks like:
[COLOR="Red"][email protected][/COLOR]:[COLOR="Blue"]/[/COLOR]#
startvnc
You should then be able to open your vnc app and connect to bt5.
Server: localhost
Port: 5901
password toortoor
Settings:
I'll update post 2 with any questions & answers.
Will update this post with instructions for replacing Webtop tonight.
---
Big thanks to kholk(WebTopMod & post formatting ), shady_lanem(Arctic) & the rest of EternityProject..
Without the hard work from these guys, this would never have been possible.
How do I install a package?
Load up BT and start vnc.
Open a terminal.
Code:
gedit /etc/apt/sources.list
uncomment lines 17 & 18
deb http://ports.ubuntu.com/ubuntu-ports lucid universe
deb-src http://archive.ubuntu.com/ubuntu lucid universe
uncomment lines 19, 20, 21 & 22 if required.
Save and close.
---
apt-get update
apt-get install *package name*
How do I update Backtrack?
Code:
apt-get update
apt-get upgrade
apt-get dist-upgrade
You may also want to do a msfupdate if you want to use metasploit.
Does this support monitor mode?
Yes, but only for USB wifi cards. You need a Motorola dock or a USB OTG cable with a powered hub & some slight hackery to make this work.
Is there internet from inside backtrack?
Yes
Wifi & 3G works.. I don't have the LTE version of the phone so cannot tell you if it works.
Here are the Screenshots in the zip file ...
the best place to upload the rom is at:
rapidshare.com
multiupload.com
megaupload.com.
Cheers from greece!!!waiting for tha rom...
I'm waiting upload
thanks
megaupload would be good to upload it. can still download it for free, as long as its below 1 gb.
btw, can this run directly on the phone, without the use of a webtop?
sreeman said:
megaupload would be good to upload it. can still download it for free, as long as its below 1 gb.
btw, can this run directly on the phone, without the use of a webtop?
Click to expand...
Click to collapse
Yep, runs on phone without webtop or can replace webtop.
Sent from my XT910 using xda premium
TunaFlyBattery said:
Hi Guys,
I still have a little more work to go before the .img file and scripts are ready for upload..
Here is some screenshots of bt5 running on the phone.. Will post some Webtop shots later and have an upload this weekend. Couldn't work out how to post them on here, so attached in a zip.
If someone can upload them and post links I'll include them here.
Question: Where's the best place to upload ~900mb zip?
---
Big thanks to kholk(WebTopMod), shady_lanem(Arctic) & the rest of EternityProject..
Without the hard work from these guys, this would never have been possible.
Click to expand...
Click to collapse
So... Why don't you spread it via bittorrent? It's fast (well, after some time passes), it's free. Creating a magnet link is simple. Publishing on TPB just a little more complex.
utorrent.com
Direct downloads are actually more faster! Dont need the existence of many seeders, and bandwidth is always there to be used.
How are things going TS?
benchmark
Have you tried a benchmark on aircrack or had any luck getting pyrit to work?
xpiramental said:
Have you tried a benchmark on aircrack or had any luck getting pyrit to work?
Click to expand...
Click to collapse
Aircrack isn't built into the armel BT5 image.. I've tried to leave it as stock as possible so that end users can customise as required.
I will be releasing a different version with the customisations that I'm using.
Upload will be happening tonight. I'll post scripts required and a guide on booting the image up.
When using BT5 on the handset(not webtop), VNC is required to connect to display. I don't have a way to have a full onscreen keyboard as yet. Screen works fine for mouse control but for any imput is a little annoying for screen alone.
I'm using a bluetooth keyboard and that works well. Webtop with dock or nebtop/hdmi hack works great. Quick and responsive OS.
EDIT: Screenshot of wireless apps/settings attached
Sweet. I would rather use a bt keyboard then on screen anyway. I am very interested to see this in action.
http://www.megaupload.com/?d=XITLDQ7K
Can someone confirm this upload worked properly?
will post instructions when I get to work.
Sent from my XT910 using xda premium
First post updated with download and instructions.
downloading now will advise
Can anyone upload it into other server such Fileserve?, megaupload is the first victim of SOPA.....
Re up
PLease re up to another site mega is no more
Will have to wait till Saturday.. wont be able to access my PC that has the rar on it till then. Unless someone else can upload their copy?
Sent from my XT910 using xda premium
any way to get Ubuntu on it instead.... wouldn't it be similar?
edit: is there working internet?..like the browser?

Are Tablet S ICS DVB-T Modules (.ko files) available ?

I'm trying to get together all the files I need to have a go at getting a DVB-T tuner working with the Tablet S - I have all the DVB-T modules, but for a lower kernel revision, and from what I've read they probably wont work with this kernel.
I'm really not looking forward to compiling these myself as I use Windows 7 and am aware that there are issues with compiling Linux on a Windows system and being new to Android/Linux cross compiling I could cause myself more problems than I solve.
So the question is, has anyone got info on a repository for these modules compiled for ICS at our kernel revision?
Have you seen this?
http://forum.xda-developers.com/showthread.php?t=1870077
TUN, NTFS, CIFS, usbserial, fuse kernel modules for 2.6.39.4, attached
You could post your request there. And if you manage to get it working could youshare a solution please?
Sent from my Sony Tablet S using xda app-developers app
could you please explain what is needed to make this work?
post some links perhaps.
Hi there,
I've uploaded a bunch of dvb files to forum.xda-developers.com/showthread.php?t=1870077 for you.
I'm not sure if those are the ones you need, but if you post there what you are trying to do and what specific modules you need, then perhaps I can help further.
A
praed0r said:
I'm trying to get together all the files I need to have a go at getting a DVB-T tuner working with the Tablet S - I have all the DVB-T modules, but for a lower kernel revision, and from what I've read they probably wont work with this kernel.
I'm really not looking forward to compiling these myself as I use Windows 7 and am aware that there are issues with compiling Linux on a Windows system and being new to Android/Linux cross compiling I could cause myself more problems than I solve.
So the question is, has anyone got info on a repository for these modules compiled for ICS at our kernel revision?
Click to expand...
Click to collapse
@abactor_xda: your link directs to general section of tablet s forum. I guess you should put a link to your modules post.
could you, please provide more information about those files you uploaded.
where did you get them from? what software is used with? do I insmod them the same way as other kernel modules?
this is what I find promising, but development seems to be stopped: https://github.com/chrulri/droidtv
when I install this app it says something about needing kernel modules and drivers or something like that. are this those modules and drivers. how do I chose which of them I need?
I have this usb tuner: http://www.avermedia.com/avertv/Support/Download.aspx?Type=Software&id=31&tab=APDriver
Can somebody please help me or point me in right direction
thank you
Hi Kulen,
Thanks, I'll fix that link. The files i uploaded are just more compiled kernel modules, you'll need to use the tar -xvzf flag to unzip them as it was a bigger tar file than xda would allow. They're compiled from the kernel sources available from Sony...I don't have the link to the sources at the moment, but if you search the forums you'll be able to find it. The modules are loaded with insmod, the same way as before, yes. I have no idea how one would go about putting these to use but it seems like in addition to the kernel module you'll need a driver and perhaps more kernel modules for an ARM architecture that will work with the 2.6.39.4 kernel version. Looking at the avermedia's website, the support they give is for an x86 architecture so you may be out of luck unless somebody can help you out over here:
linuxtv.org/wiki/index.php/AVerMedia_A828
Have you ever gotten this usb tuner to work with a real linux box?
Good luck,
a
kulen said:
@abactor_xda: your link directs to general section of tablet s forum. I guess you should put a link to your modules post.
could you, please provide more information about those files you uploaded.
where did you get them from? what software is used with? do I insmod them the same way as other kernel modules?
this is what I find promising, but development seems to be stopped: https://github.com/chrulri/droidtv
when I install this app it says something about needing kernel modules and drivers or something like that. are this those modules and drivers. how do I chose which of them I need?
I have this usb tuner: http://www.avermedia.com/avertv/Support/Download.aspx?Type=Software&id=31&tab=APDriver
Can somebody please help me or point me in right direction
thank you
Click to expand...
Click to collapse
Sent from my Sony Tablet S using xda app-developers app
Well, thank you.
You are really fast and willing to help.
I did make this tuner work with linux mint on x86. Actually my friend Google did it mostly, so I'm not sure what I did any more. It was a long time before and I'm not very familiar with linux.
This is what Avermedia site says for both x86 and x64 driver:
"The following distributions, with their stock kernel, are officially tested and supported:
1. Open SuSE Linux 10.3
2. Mandriva Linux 2008
3. Fedora Core Release 6
4. Fedora Core Release 7
5. Ubuntu 7.10
6. Ubuntu 8.10
7. Ubuntu 9.04
8. Ubuntu 9.10
9. Mandriva Linux 2009
Sent from my Sony Tablet S using xda app-developers app"
I guess I should find some generic ARM driver that works with my tuner?
Is there a way to batch insmod (all at once) all this modules? something like insmod *.ko?
Do I need all those modules? How do I find that out?
Hi there,
You're welcome, I'm happy to help.
In order to load all modules within a directory (and its respective sub-directories), try:
Code:
su
cd /data/local/kmods
find . -name "*.ko" -exec insmod {} \;
[\CODE]
Or just
[CODE]
su
find /data/local/kmods/ -name "*.ko" -exec insmod {} \;
[\CODE]
I'm not sure what kernel modules you'll need, but I would look at the #include files in the driver and/or ask the people over in the forum that you listed who work on these tuners specifically. Perhaps some people from the arm-based rasperry pi community might be working on this type of thing too.
Good luck,
A
Sent from my Sony Tablet S using xda app-developers app
Thanks for answer, again!
I already solved problem "insmoding" them all at once by making a script for them all as you showed me in your kernel modules thread.
At first it seems not all of them are insmoded. "no such file or directory" error. But at second script run it seems they are insmoded. I guess they are dependent on each other and need to be insmoded at right order? I also guess "file exists" means it's already insmoded?
Some of them return "exec format error" which, Google suggests, mean they are not for ARM?
anyhow nothing happens when I plug in my tuner.
I'll have to do a research starting where you sugessted but I'm setting my expectations low.
Terminal transcript of running script 3 times is in attachment. (I'll upload it later, can't do it from xda app - DONE)
Sent from my Sony Tablet S using xda app-developers app
Hey there,
maybe we can get DVB-T-Sticks working on Tablet S. Some devs got the "WinTV Nova-T"-stick working on Odys Loox. Kernel modules they used were:
dib0070.ko
dib3000.ko
dib7000m.ko
dib7000p.ko
dib8000.ko
dibx000_common.ko
dvb-core.ko
dvb-usb.ko
dvb-usb-dib0700.ko
If abactor can provide us these files we're maybe able to get it working. But I don't know if other sticks are working, too.
kulen said:
Thanks for answer, again!
I already solved problem "insmoding" them all at once by making a script for them all as you showed me in your kernel modules thread.
At first it seems not all of them are insmoded. "no such file or directory" error. But at second script run it seems they are insmoded. I guess they are dependent on each other and need to be insmoded at right order? I also guess "file exists" means it's already insmoded?
Some of them return "exec format error" which, Google suggests, mean they are not for ARM?
anyhow nothing happens when I plug in my tuner.
I'll have to do a research starting where you sugessted but I'm setting my expectations low.
Terminal transcript of running script 3 times is in attachment. (I'll upload it later, can't do it from xda app - DONE)
Sent from my Sony Tablet S using xda app-developers app
Click to expand...
Click to collapse
some of them have dependencies and others may not be compatible with our hardware even if we can build them. all of the modules are built in the same way but there may be issues due to some modules being built-in to the kernel - I don't know how those sorts of conflicts are resolved. another way to go would be to build the whole kernel again.
I would keep loading the modules until the output from insmod stops changing as you've done...or look up the dependency tree and load them in order. your way is easier.
---------- Post added at 12:56 PM ---------- Previous post was at 12:25 PM ----------
djlars said:
Hey there,
maybe we can get DVB-T-Sticks working on Tablet S. Some devs got the "WinTV Nova-T"-stick working on Odys Loox. Kernel modules they used were:
dib0070.ko
dib3000.ko
dib7000m.ko
dib7000p.ko
dib8000.ko
dibx000_common.ko
dvb-core.ko
dvb-usb.ko
dvb-usb-dib0700.ko
If abactor can provide us these files we're maybe able to get it working. But I don't know if other sticks are working, too.
Click to expand...
Click to collapse
I finally managed to get the dvb-usb.ko built with some manual editing. I'm going to post them to the other thread with all the other kernel modules. The link is posted above. let me know if this does or does not work for you guys.
If you guys are having trouble loading the dvb-usb.ko module, it may be contained within the dvb-core.ko module it seems...
kulen said:
could you please explain what is needed to make this work?
post some links perhaps.
Click to expand...
Click to collapse
Hi Kulen,
I managed to get my dongle working in Ubuntu with the correct kernel revision after a lot of hair pulling - when i tried to cross compile the modules for ARM, the compiler crashed and trashed my Linux installation, after trying for days to restore my system, i had to resort to a re-install and have not attempted anything since.
I got all my info here :-
http://linuxtv.org/wiki/index.php/Main_Page
Sorry I can not be more helpful, but I see a lot of guys on here chipping in with very useful information - hopefully you'll succeed where I failed.
PS - I might just get back into this again.
I can't say thanks enough for all help I got here.
@abactor_xda
I tried all modules you posted. since some of them are in both archives I tried first those from one archive, then from another. I extracted all and then I copied ones and other over them, and then the other way. I wanted to be sure they all are there. And then I used commands you taught me. I insmoded them 5-6 times to be sure, but some modules were not insmoded. some with that exec error and some with no file error.
and nothing happened in any case.
but here we come to another problem. I'm not sure how to check it. I use Droid TV app and it says:
" Sorry, no device found or device acces denied. This application NEEDS a working DVB device, plugged into your Android device and set up with drivers, firmware and correct permissions. Make sure that these prerequirements are met and try again."
I also get some massage from android system that connected USB device is unsupported or unreckognized or something like that.
any idea how could I see which modules are/are not activated when I plug DVB tuner?
and thanks for your help again.
@praed0r
which DVB tuner do you have?
compiling and all the other programming stuff is, unfortunately, way too much for me, so I have to rely to help from good people.
Hey Kulen,
I'm sorry to hear that didn't work. Though I had a feeling that would be the case as I also had issues trying to load those modules.
I have a feeling the modules need to be adapted somewhat before being compiled or a special driver written.
Otherwise run "dmesg" from the terminal after you plug in the device. Maybe this info would be useful to someone who knows about this stuff (unfortunately that's not me
If you do find out how to adapt these modules, I can try to compile them.
A
Sent from my Sony Tablet S using xda app-developers app
well thanks again.
I can make dmesg by help of google. but that's about maximum of my developing competence.
I guess I have to give up on this, unless some "good soul" shows up here and give us a solution.
I will post dmesg in cca. 10 days, cause I don't have tablet with me now and wait...
it'll be a pity if all abactor_xda's unselfish work was for nothing

[DEV][GUIDE] Build a Kernel for the Amaze 4g

Intro:
Ok, im sure you all want to get your hands dirty in development! Well we need more of that. So i decided to write a little guide on how to build your very own kernel from source using ubuntu.
NOTE- You need a computer running ubuntu! i use ubuntu 10.04 but any version should work fine.
Click to expand...
Click to collapse
Setting Up Your Build Environment:
Get required packages by using the following commands in a terminal window.
32bit and 64bit systems:
Code:
sudo apt-get install git-core gnupg sun-java6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
64bit only:
Code:
sudo apt-get install ia32-libs lib32z1-dev lib32ncurses5-dev gcc-multilib g++-multilib
Click to expand...
Click to collapse
Making Working Directories:
Open new terminal window
Type:
Code:
mkdir android
Type:
Code:
cd android
Type:
Code:
mkdir kernel
Now you have the directories where we can put the source code into and build from.
Click to expand...
Click to collapse
Getting the Build Toolchain:
In already open terminal window type the following commands...
Type:
Code:
cd
Type:
Code:
cd android/kernel
Type:
Code:
mkdir toolchains
Now download the toolchain from HERE and extract into the "toolchains" folder that we just created.
Click to expand...
Click to collapse
Gathering The Source:
For this we are going to just grab a copy of sportsstar89's kernel source since he has it up on github. (yes, its the newly released ics kernel)
Open a new terminal window
Type:
Code:
cd android/kernel
Type:
Code:
git clone git://github.com/Sportsstar89/Amaze-ics-sense.git
Once the source has been cloned to your "android/kernel" directory, you should see a folder with the name "Amaze-ics-sense". Leave it named that or you will have to edit some of the commands to work.
Click to expand...
Click to collapse
Building The Kernel:
Now is the fun part, we are about to build your first kernel!!!
Open a new terminal window
Type:
Code:
cd android/kernel/Amaze-*
(the "*" saves us from typing so much)
Type:
Code:
export ARCH=arm
Type:
Code:
export CROSS_COMPILE=~/android/kernel/toolchains/arm-eabi-4.4.3/bin/arm-eabi-
Type:
Code:
make sports_ruby_defconfig
Type:
Code:
make menuconfig
(make any changes you want... if you dont need to make changes, use arrow keys and enter key to select exit until you are back to the terminal.)
Type:
Code:
make -j4
Build will take a few minutes depending on the speed of your computer...
Click to expand...
Click to collapse
After Build Completes:
The build should complete without errors. If it did, you will need to find the "zimage" that the build generated.
It will be in- "/android/kernel/Amaze-ics-sense/arch/arm/boot"
Grab it and put it on your desktop for now...
Click to expand...
Click to collapse
Finishing Up the Kernel:
Now is the slightly tricky part for some... We will be using windows for this part of the tutorial.
Follow this to get Cygwin and Dsixda's Kitchen setup (thanks Dark Nightmare)
Once you have that setup, you will want to use cygwin to unpack and repack the boot.img.
First navigate to the cygwin install directory. then put any ics rom into the "original_update" folder. (it doesnt matter what rom, cause we dont need to keep the rom)
Next, open up the Cygwin bash shell and type the following commands.
Type:
Code:
1
Type:
Code:
y
(then change the name of the working folder to "WORKING_kernel")
Type:
Code:
2
(this will leave the updater-script in the rom alone so the process is quicker)
Now in the "WORKING_kernel" folder you will see a boot.img. That means everything is going good so far.
Now we want to unpack that boot.img so we can replace the zimage with the one we made earlier.
Type:
Code:
0
(for advanced options)
Type:
Code:
20
(for boot.img tools)
Type:
Code:
w
The boot.img is now unpacked into the "BOOT-EXTRACTED" folder. Take the zImage that we made earlier and put it in that folder, Replacing the old one. Then go back to the cygwin terminal.
Type:
Code:
b
(this will repack the boot.img with the new zImage inside)
CONGRATULATIONS!!! you have just build your first kernel! Now if you go back to the "WORKING_kernel" folder, you can take that boot.img out and flash it the same way you would any other boot.img.
Click to expand...
Click to collapse
Rebuilding:
If you decide to make changes to your kernel, make sure you start fresh with these commands.
Type:
Code:
cd
Type:
Code:
cd android/kernel/Amaze-ics-sense
Type:
Code:
make clean
If your build fails or you just want to make another build, but not from scratch just type this command.
Type:
Code:
make -j4
Click to expand...
Click to collapse
Flashing Methods:
Fastboot-
If you have fastboot setup, you can use the following command from a command prompt to flash the boot.img to your phone when in bootloader mode.
Code:
adb reboot bootloader
Code:
fastboot flash boot boot.img
Hasoon's Toolkit-
This is for the people who dont know how to use fastboot.
download the toolkit From Here
place it in the kernel folder.
Select "with this command" and press Flash kernel.
Click to expand...
Click to collapse
Credits:
Sportsstar89- for taking the time to give me pointers on how to build from source
Dark Nightmare- for making a how-to video on setting up the android kitchen
Hasoon- for having an epic toolkit
Everyone else who has to put up with me
Click to expand...
Click to collapse
has anyone try to build there own kernel yet?
It's fantastic, thanks man.
I'm youtube! Great guide by the way ziggy, +1.
This is awesome. I really appreciate this, but I feel like I'm just following instructions and not really learning anything. Even with the compile cm9 from source I felt the same way. I guess I just need to play around
Sent from my HTC_Amaze_4G using Tapatalk 2
EDIT: Is there a way to do the second part without Windows, still in ubuntu? I'd have to swap hard drives to get back on Windows.....long story.
Nshih422 said:
This is awesome. I really appreciate this, but I feel like I'm just following instructions and not really learning anything. Even with the compile cm9 from source I felt the same way. I guess I just need to play around
Sent from my HTC_Amaze_4G using Tapatalk 2
EDIT: Is there a way to do the second part without Windows, still in ubuntu? I'd have to swap hard drives to get back on Windows.....long story.
Click to expand...
Click to collapse
yea, just look up how to use the kitchen in linux.
Nshih422 said:
This is awesome. I really appreciate this, but I feel like I'm just following instructions and not really learning anything. Even with the compile cm9 from source I felt the same way. I guess I just need to play around
Sent from my HTC_Amaze_4G using Tapatalk 2
EDIT: Is there a way to do the second part without Windows, still in ubuntu? I'd have to swap hard drives to get back on Windows.....long story.
Click to expand...
Click to collapse
I was wondering why he switched to windows for that part.. for me cygwin install didn't work properly, but i MADE IT WORK.. just look up dsixda kitchen and follow the instructions for the ubuntu setup.
And note to anyone: installing ubuntu itself can be a *****, building a kernel is not nearly as intensive as compiling a whole rom from source - you can install ubuntu in a virtual machine and build in that, it will take a little longer, but it works just fine..
And to anyone who wants to learn, actually building the kernel isn't going to teach you as much as looking at the git commits and doing some Googling.. if you look in any of the threads where kernel discussion has been had, you can see a lot of useful info.
I suggest that the OP add a couple of notes about changes that can be made before the make command.. how to make those changes will be more educational that the process itself(tho it is helpful as hell, very well written!)
Sent from my HTC_Amaze_4G using xda app-developers app
Silentbtdeadly said:
I was wondering why he switched to windows for that part.. for me cygwin install didn't work properly, but i MADE IT WORK.. just look up dsixda kitchen and follow the instructions for the ubuntu setup.
And note to anyone: installing ubuntu itself can be a *****, building a kernel is not nearly as intensive as compiling a whole rom from source - you can install ubuntu in a virtual machine and build in that, it will take a little longer, but it works just fine..
And to anyone who wants to learn, actually building the kernel isn't going to teach you as much as looking at the git commits and doing some Googling.. if you look in any of the threads where kernel discussion has been had, you can see a lot of useful info.
I suggest that the OP add a couple of notes about changes that can be made before the make command.. how to make those changes will be more educational that the process itself(tho it is helpful as hell, very well written!)
Sent from my HTC_Amaze_4G using xda app-developers app
Click to expand...
Click to collapse
yea i planned on expanding the guide to have the different mods you can do in it.
Ziggy nice write up...
Nshih422 said:
I'd have to swap hard drives to get back on Windows.
Click to expand...
Click to collapse
If you're swapping hard drives (have only one machine), perhaps you should look into using VMware Player or VirtualBox.
For the free VMware Player, you can use http://www.easyvmx.com/ to build empty VMXs to get you started.
brainbone said:
If you're swapping hard drives (have only one machine), perhaps you should look into using VMware Player or VirtualBox.
For the free VMware Player, you can use http://www.easyvmx.com/ to build empty VMXs to get you started.
Click to expand...
Click to collapse
I know about vm, I'm a certified computer tech. It's something about my old drive not playing nice with ubuntu. I swapped this hard drive only installed ubuntu and have been using it as my main machine. It's just my laziness that's preventing me from having Windows and Linux.
Sent from my HTC_Amaze_4G using Tapatalk 2
Nshih422 said:
I know about vm, I'm a certified computer tech. It's something about my old drive not playing nice with ubuntu. I swapped this hard drive only installed ubuntu and have been using it as my main machine. It's just my laziness that's preventing me from having Windows and Linux.
Sent from my HTC_Amaze_4G using Tapatalk 2
Click to expand...
Click to collapse
yea, the main reason i made the guide go from linux to windows is because the kitchen it so much easier to get setup in windows. (so it makes this easier for the new folk) but yea, the kitchen works perfectly in linux as well. you could also make a vm box of windows within your linux machine.
ziggy46 said:
yea, the main reason i made the guide go from linux to windows is because the kitchen it so much easier to get setup in windows. (so it makes this easier for the new folk) but yea, the kitchen works perfectly in linux as well. you could also make a vm box of windows within your linux machine.
Click to expand...
Click to collapse
Somethings don't play nicely in Windows. When I try to build up ROMs from the kitchen, it tells me Cygwin may have an issue doing some parts. When I see that, I finish it off my other laptop that has Ubuntu on it.
Guess I'll be doing a video on how to set it up on linux this weekend.
Thanks Ziggy, as always. You were a great developer for the Triumph and glad to see you're active for the Amaze.
Sent from HTC Amaze
Dark Nightmare said:
Guess I'll be doing a video on how to set it up on linux this weekend.
Click to expand...
Click to collapse
Nightmare, you are awesome.. you guys taking the time to try to get the community involved more is awesome, so all of you keep up the great work. I have a feeling these threads will help members in other forums as well as they get found in random searches..
And to all the peeps reading this stuff, don't forget to hit their thanks button, it is the least you can do to show you want stuff like this!
Sent from my HTC_Amaze_4G using xda app-developers app
Silentbtdeadly said:
Nightmare, you are awesome.. you guys taking the time to try to get the community involved more is awesome, so all of you keep up the great work. I have a feeling these threads will help members in other forums as well as they get found in random searches..
And to all the peeps reading this stuff, don't forget to hit their thanks button, it is the least you can do to show you want stuff like this!
Sent from my HTC_Amaze_4G using xda app-developers app
Click to expand...
Click to collapse
Thanks, I wanna get involved in your little advanced wiki as well, . I'm finally back on linux, wanna make it my permanent OS, but I need windows for some of my progs, plus it's been a while, lol.
What's a good screen capture with audio client on ubuntu? I've recorded the set up video like 5 times already but the video keeps moving faster than the audio, any clues?

[Q] ubuntu rootfs build

Can someone help me with a rootfs build? It was built via the instructions in the gen8 debian wiki. I've copied the kernel from the Angstrom system but it doesn't seem to boot it correctly. The image runs okay in qemu on a debian 6 VM on my laptop. I've attached a pastebin of the startup but I'm not sure why the kernel is failing. I think it's wifi driver related but not 100%. I've loaded the wifi drivers via the wiki as well.
pastebin. com/7Xf7Rhvq
allenelson said:
Can someone help me with a rootfs build? It was built via the instructions in the gen8 debian wiki. I've copied the kernel from the Angstrom system but it doesn't seem to boot it correctly. The image runs okay in qemu on a debian 6 VM on my laptop. I've attached a pastebin of the startup but I'm not sure why the kernel is failing. I think it's wifi driver related but not 100%. I've loaded the wifi drivers via the wiki as well.
pastebin. com/7Xf7Rhvq
Click to expand...
Click to collapse
I don't think it is the wifi, I never tried ubuntu with the 2.6.29 kernel, so wouldn't what the problem is. Kernel panics are not an easy thing to debug. For ubuntu you can also use bootstrap to build your rootfs, alot easier. See http://dev.openaos.org/wiki/LubuntuGen8#a3Buildrootfstarballwithrootstock
You can also follow the complete guide and use the 2.6.37 kernel which is better for ubuntu.
divx118
divx118 said:
I don't think it is the wifi, I never tried ubuntu with the 2.6.29 kernel, so wouldn't what the problem is. Kernel panics are not an easy thing to debug. For ubuntu you can also use bootstrap to build your rootfs, alot easier. See *edited because I cant post urls*
You can also follow the complete guide and use the 2.6.37 kernel which is better for ubuntu.
divx118
Click to expand...
Click to collapse
sorry divx i kind of lied. i didn't follow the guide to a T because the netboot installer fails. it doesn't find the disk if you set the root as /dev/ram, it needs to be /dev/sda with the valid image file.. so essentially i have been debootstrapping the installs but have also used the netboot install images with no success. TBH your name looks familiar, I'm pretty certain I was reading your documentation or maybe posts on here regarding gen8's you've written. but anyway..
my goal is ubuntu-desktop on the tablet. i've been using ubuntu natty as the base because it has desktop and also the armel-installer support (but installing both ways, netboot and bootstrap). i've even failed using older versions of debian. for the latest test i built a tiny 200MB test image with minimal packages installed. they run fine in qemu but die with a kernel panic and the same limited details. :/
as a test i compared the debianlxde floating around to the images i'm making but can't find an issue or difference between them that would cause them to fail. that's why i was hoping something would stick out in that greek error message but i think it's just the developer-os going through the reboot process. just the wifi statements stuck out, i was curious why the driver would even be referenced so early in the boot process of the tablet.
allenelson said:
sorry divx i kind of lied. i didn't follow the guide to a T because the netboot installer fails. it doesn't find the disk if you set the root as /dev/ram, it needs to be /dev/sda with the valid image file.. so essentially i have been debootstrapping the installs but have also used the netboot install images with no success. TBH your name looks familiar, I'm pretty certain I was reading your documentation or maybe posts on here regarding gen8's you've written. but anyway..
my goal is ubuntu-desktop on the tablet. i've been using ubuntu natty as the base because it has desktop and also the armel-installer support (but installing both ways, netboot and bootstrap). i've even failed using older versions of debian. for the latest test i built a tiny 200MB test image with minimal packages installed. they run fine in qemu but die with a kernel panic and the same limited details. :/
as a test i compared the debianlxde floating around to the images i'm making but can't find an issue or difference between them that would cause them to fail. that's why i was hoping something would stick out in that greek error message but i think it's just the developer-os going through the reboot process. just the wifi statements stuck out, i was curious why the driver would even be referenced so early in the boot process of the tablet.
Click to expand...
Click to collapse
I indeed wrote the debian lxde guide and also the one I posted above for lubuntu. For testing if wifi is really your problem or not, just commend out the code to load it. BTW in the pastebin you posted there is nothing to see related to wifi. Did you perhaps mean the "twl4030" messages. IIRC it is has something todo with power supply for usb. To be sure I need to check the code in the kernel, but I know for sure it has nothing todo with wifi.
I still think you would be better of using the 2.6.37 kernel for ubuntu, so follow the guide I posted. Also be aware you have an hd device, this will slow down ubuntu/or any other linux distro. The rootfs is on your hd and there will be a constant need of read/write access, when using a gen8 flash version this will be faster.
Sadly my old gen8 101IT has blown batteries, so I don't use it anymore. However if you have some questions, you can also join #openaos on irc.freenode.net . My irc client is 24/7 online, there also be some other people that maybe can help. Just post your question there with details, then be patient. It can take some hours before you get an answer.
divx118
divx118 said:
I indeed wrote the debian lxde guide and also the one I posted above for lubuntu. For testing if wifi is really your problem or not, just commend out the code to load it. BTW in the pastebin you posted there is nothing to see related to wifi. Did you perhaps mean the "twl4030" messages. IIRC it is has something todo with power supply for usb. To be sure I need to check the code in the kernel, but I know for sure it has nothing todo with wifi.
I still think you would be better of using the 2.6.37 kernel for ubuntu, so follow the guide I posted. Also be aware you have an hd device, this will slow down ubuntu/or any other linux distro. The rootfs is on your hd and there will be a constant need of read/write access, when using a gen8 flash version this will be faster.
Sadly my old gen8 101IT has blown batteries, so I don't use it anymore. However if you have some questions, you can also join #openaos on irc.freenode.net . My irc client is 24/7 online, there also be some other people that maybe can help. Just post your question there with details, then be patient. It can take some hours before you get an answer.
divx118
Click to expand...
Click to collapse
appreciate the feedback sir. i'll give a different kernel a go. yes indeed, the twl4030 message was confusing me, but then again i was seeing it in the shutdown portion after the kernel panic. again thanks, i'll post again if i'm successful.
i'm still tinkering with the thing, trying to find some better ways to debug this. it seems minicom and securecrt dont print everything out. i think it loses the console connection after the image fails to load because if i pull the USB cable in minicom i do see some additional output but it's hard to tell whether or not it's actually in order.
i'm comparing these two pastebins, one from angstrom and one from a wheezy debian image i just created. i put a whitespace where the images succeed/fail. if you have a minute let me know what you think. i'll put the commands below i used to create the wheezy image and copy some angstrom files. it loops the image but isn't loading so i must be missing something fairly simple like the actual boot parameters or root to mount.
angstrom (good) - http://pastebin. com/X3qKDHtG
debian (bad) - http://pastebin. com/pGDDEHGx
root# dd if=/dev/zero of=rootfs.img bs=1M count=1024
mkfs.ext3 rootfs.img
losetup -f rootfs.img
mount /dev/loop0 /mnt/root
debootstrap --arch armel wheezy /mnt/root ftp.us.debian. org/debian
--- debootstrap complete, copy files from saved angstrom image ---
losetup -f angstrom.img
mount /dev/loop1 /mnt/ang
cp -a /mnt/ang/boot/. /mnt/root/boot
cp -a /mnt/ang/media/. /mnt/root/media
cp -a /mnt/ang/dev/. /mnt/root/dev
cp -a /mnt/ang/lib/firmware /mnt/root/lib
cp -a /mnt/ang/lib/modules /mnt/root/lib
cp /mnt/ang/etc/fstab /mnt/root/etc
umount /mnt/ang
umount /mnt/root
losetup -d /dev/loop*
--- plugin archos and enter USB from recovery ---
mount /dev/sda1 /mnt/root
cp rootfs.img /mnt/root
umount /mnt/root
--- reboot archos with serial debugging ---

[Q] Problems installing / removing and updating apps

Hi! I have been using touch for some weeks on my nexus 4 now and it is working all-right for me. Unfortunately i cannot update install / remove apps any more. When i try to update the apps via the system settings nothing happens. When i try to download an apps via app store it says cannot download. Removing "seems" to work but when done - the app is still there - even after reboot. Can anyone help me? Would be great!
Ah another thing - adb shell was working fine but stopped working as well - i get "device not found" now...
I think the File-System might be read only?
You need to re-add your Ubuntu One account and installing apps will work again.
To use adb you need to enable the developer mode in System Settings > About phone > Developer Mode.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
I too am having problems updating my apps. From system settings, I have 18 updates that will not work when I tell it to. I have them on auto-update as well.
sudo apt-get update
does not work either
@Xinthose Have you tried readding your Ubuntu One account as well? That was needed due to some code changes introduced a while ago.
Sent from my awesome Ubuntu Touch device using the Forum Browser app (with a custom signature )
nikwen said:
@Xinthose Have you tried readding your Ubuntu One account as well? That was needed due to some code changes introduced a while ago.
Sent from my awesome Ubuntu Touch device using the Forum Browser app (with a custom signature )
Click to expand...
Click to collapse
That worked, thank you. Why doesn't sudo apt-get update work?
@Xinthose Due to the way system updates are done, "apt-get" doesn't work for now. Since they, however, plan to use the same update method for the desktop in the future, they will at some point have to add apt-get support. They already talked about how that would be done on the ubuntu-phone mailing list some time ago.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
---------- Post added at 05:37 PM ---------- Previous post was at 05:32 PM ----------
Just forgot something: You can actually make apt-get work (and everyone working on the core system components actually has to do that to test their changes) but that breaks system updates.
To do so you need to make the image writable (look for the how-to on the Ubuntu for phones installation page). You can flash back to a non-writable image later but that always comes with the risk of data loss. So it's definitely not recommended for anyone who is not a developer!
Sent from my awesome Ubuntu Touch device using the Forum Browser app
OK, thank you. To make the phone work exactly like Ubuntu would be nice. What is the password for sudo / su ?
@Xinthose Just enter your device passcode/passwort.
Sent from my awesome Ubuntu Touch device using the Forum Browser app (with a custom signature )

Categories

Resources