Rhobuntu 9.10 discontiunued change to Rhobuntu 9.04 - Touch Pro2, Tilt 2 Android Development

The 9.10 build will not continued. Please chang to the 9.04 Build
http://forum.xda-developers.com/showthread.php?t=640785
The 9.10 build have a lot of problems with the repository.
The 9.04 build is a clean build.
If you like the 9.10 build you can sent me a PM and i sent you the link for the last stable build.
The Rhobuntu team brings you, Ubuntu 9.10 on your Rhodium:
NEW BUILD 08042010. UPLOAD later!
Users with CDMA Phone send me a PM, please
change log:
change log:
* fix WIFI and UMTS
* new keymap (from old 8.04 build)
* add xvkbd
* add x11vnc
* synaptic (Package Manager)
* fix mouse bug
* REPOSITORY SET to Jaunty (Fix Illegal Operation problem)
* lxterminal autostart
--------------------------------------------------------------------------------------------
OLD BUILD
Rhobuntu 06.04.2010
DOWNLOAD: Rhobuntu 9.10 http://www.megaupload.com/?f=MVSBV469
Broken packages
After running apt-get update followed by apt-get upgrade to get the latest package updates from the repositories you'll find that some packages bail out with an 'illegal instruction' error. This is due to a bug in libstdc++6. For now, hold your horses and wait before upgrading. Problem: via apt-get install packet for armv6 will be installed. Htc Rhodium could only handle armv5.
Could anybody help??? --> same problem on Zubuntu 2.0
changelog:
*wifi works, same like rhobuntu 8.04 (lxterminal: iwlist eth0 scan essid `YOUR AP`--> wicd --> refresh
* link for lxterminal placed to /root
Login: root with no password
Screencalibration: after login: type --> ts_calibrate
For GUI: run startx
FIX for mouse bug!
Thanks @ Bombenbach
run lxterminal
leafpad /lib/udev/rules.d/50-udev-default.rules
change
Code:
KERNEL=="mouse*|mice|event*", MODE="0640"
to
Code:
[COLOR="Red"]#[/COLOR]KERNEL=="mouse*|mice|event*", MODE="0640"
old Build:
Rhobuntu 23/03/10
latest build: Rhobunto 9.10 0630PM 23032010 (@walter79)
Download: http://rhobuntu.4shared.com
Mirror:
Rhobuntu 8.04 http://www.megaupload.com/?f=GNO6R1X3
Rhobuntu 9.10 http://www.megaupload.com/?f=MVSBV469
To install via .zip
* Download latest .zip/.tar/.gz/.7z
* Extract to sd card
* Naviagte to sd/Ubuntu
* Load haret.exe
* Enjoy!
changelog: 22032010
* changed to armel !
* based on Zubuntu (http://www.omegamoon.com/blog/index.php?entry=entry090829-014821)
* keyboard mapping now works (Ctrl is FN, FN is E-Mail)
* login: root (no password)
* disabled GDM -> default boot into console
* start Xorg by issuing startx
* for screen calibration run: ts_calibration (in console)
* added nano, libpcap, ppp (UMTS should work)
* sdcard automount to /mnt
Need fix
- wifi (driver have to implemented)
- wicd (same probleme like rhobuntu 8.04, could find network, somebody have to make the same hack like in 8.04)
- double mouse
- remove some apps (like Fennec)
Project News
We decided to organize our project a bit better, which means that we now have a project page on Google Code
https://code.google.com/p/rhobuntu/
and a Wiki
http://wiki.xda-developers.com/index...=RhodiumUbuntu
Get involved. We need your help!

One more Topic of Interest . .
This is getting interesting Rhobuntu will Rock.
I wish I knew how to create linux distro, so I could help.
So my only option is wait and watch for the Progress in these thread.

Compatibility for topaz, blackstone, and others
you can please remove the login screen? make this automatic, because i, with my topaz, have to enable the onscreen keyboard(and not is working, can be the touch screen not working) of haret only for this, the ubuntu arm have any virtual keyboard? the ubuntu have the orca and the Gnome On-screen Keyboard (GOK).
you can try this?

Maikeu Locatelli said:
you can please remove the login screen? make this automatic, because i, with my topaz, have to enable the onscreen keyboard(and not is working, can be the touch screen not working) of haret only for this, the ubuntu arm have any virtual keyboard? the ubuntu have the orca and the Gnome On-screen Keyboard (GOK).
you can try this?
Click to expand...
Click to collapse
Ok, next build comes with autologin and calibration.

new build: 23032010

Hey can u Upload it to any other File sharing host .. I don have a 4shared account .. i have RS .. and when i try to download the file from 4shared.com , d file downloads ..(Obviously slowly) .. and they disconnect very much due to limitation.. RS or hotfile or ne other would be good

Just interested to know - what graphics driver does this build use? Is it possible in theory to the graphics driver from the android builds to allow hw3d and xv acceleration - maybe even compiz?

I dont know if I missed something but I should be able to open the primary applications menu, shouldn't I? I've clicked on it time and time again, I see it change color on me as though I have clicked it but nothing actually opens? Is my screen not calibrated correctly or did I miss something entirely?

walter79 said:
changelog: 23032010
- kernel 2.6.28 armel
Click to expand...
Click to collapse
????
You ported rhodium's code to 2.6.28 ??
Based on which tree ?
And where is the source code ?
- wifi (driver have to implemented)
Click to expand...
Click to collapse
Lol The driver has been included in "my" tree for more than a month now.
And it has been existing for several years now I guess.

phhusson said:
????
You ported rhodium's code to 2.6.28 ??
Based on which tree ?
And where is the source code ?
Lol The driver has been included in "my" tree for more than a month now.
And it has been existing for several years now I guess.
Click to expand...
Click to collapse
Have a look to /etc/modules/kernel..

walter79 said:
Have a look to /etc/modules/kernel..
Click to expand...
Click to collapse
1.That's no sources.
2.I was talking about kernel, not modules. You can make modules for whatever without even having the kernel working.

Hah I wonder if there would be any way you could be able to use aircrack-ng on this??
Either way I love it. All there needs to be is a fixed wifi and a real sleep mode.

buru898 said:
Hah I wonder if there would be any way you could be able to use aircrack-ng on this??
Either way I love it. All there needs to be is a fixed wifi and a real sleep mode.
Click to expand...
Click to collapse
Real ?
Doesn't echo mem > /sys/power/state work ?

I'm not savvy with Linux... ... I know the basic basics. Lol I'll play around with it more but does it really go to sleep?

buru898 said:
I'm not savvy with Linux... ... I know the basic basics. Lol I'll play around with it more but does it really go to sleep?
Click to expand...
Click to collapse
With this command it should.
Maybe backlight isn't turned off though

walter79 said:
Have a look to /etc/modules/kernel..
Click to expand...
Click to collapse
hi walter, your kernel is build 2.6.27 like the other kernel around us (thanks to: phhusson and team).
your modules isn't same version with your kernel. so you need to build modules base on your own kernel version.
could be something like this :
make modules ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
on your root kernel source. and then do something like :
make modules_install ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
and then check your modules linux directory for the result.
for getting wifi working, you may need android modules (you can check from phhusson modules build). and then run insmod on your rc.local.
i already reply your message for details.
cheers,
fatsal

fatsal said:
hi walter, your kernel is build 2.6.27 like the other kernel around us (thanks to: phhusson and team).
your modules isn't same version with your kernel. so you need to build modules base on your own kernel version.
could be something like this :
make modules ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
on your root kernel source. and then do something like :
make modules_install ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
and then check your modules linux directory for the result.
for getting wifi working, you may need android modules (you can check from phhusson modules build). and then run insmod on your rc.local.
i already reply your message for details.
cheers,
fatsal
Click to expand...
Click to collapse
Wifi works!!
I copied modules from old 8.04 build and wifi-nvram.txt, rtecdc1.bin to /etc
and use the zimage 22032010 build.
And now it works.
Scan works. But same problem with wicd like in 8.04. Can`t find wireless network
In order to make it work I brutally hacked the poor wicd. What I did was to edit /usr/share/wicd/wicd/wnettools.py and replace "cmd = 'iwlist ' + self.iface + ' scan'" with "cmd = 'iwlist ' + self.iface + ' scan last'" After that I deleted wnettools.pyc and wnettools.pyo to make sure that python will generate these files from the hacked wnettools.py. It is indeed a very ugly and nasty hack but at the moment there is probably no better way to make WiFi working. We REALLY should better find out what is the problem with that broadcom module and try to fix it.

Its asking for username & password. I type root for username. i cant get into ubuntu what do i type?

Viper Matrix Wireless said:
Its asking for username & password. I type root for username. i cant get into ubuntu what do i type?
Click to expand...
Click to collapse
user: root
password: no
new build will release in a few day. with working wifi auto login and screencalibration

OK I am running 9.10 & it wants me to type a username & I type root n its ok theres no password to enter now im stuck on [email protected]:~# i am stuck in command what do I enter to start ubuntu?

Related

openvpn anyone?

hi,
did anyone find a way to use openvpn on htc hero?
Catscrash said:
hi,
did anyone find a way to use openvpn on htc hero?
Click to expand...
Click to collapse
Not yet, but I am using the CyanogenMod 4.0.1 on my Dream and I have seen Donut on the HTC Click -- in both cases, Settings --> Wireless Controls is showing an option for VPN Settings, so I'm guessing that it would be a matter of time before this is available on the Hero and Magic firmware
Be patient, or wait for someone to cook a ROM with this feature
VPN wil be in Donut.
For now, it seems possible to implement it.
For the program GUI, it should good to extand that program to support openvpn and pptp vpn.
First of all tun driver is needed, you'll find it here.
Install and, as root, type:
# insmod /system/lib/modules/tun.ko
lsmod command should give you:
tun 11300 0 - Live 0xbf000000
That should load the tun kernel module.
I think we should then have to compile openvpn using android ndk.
A guy did it for the dream. Worth trying it. Maybe someone else could tell if binaries compiled for Dream can work on Hero
OpenVPN ist working on hero. I used the binaries for the G1. But the CIPHER is different: AES-256-CBC. I'm now testing it and if it's stable, perhaps I'm gonna compile openvpn with complete static openssl, so all functions should work.
If someone is interested, I can post my scripts and settings.
gogh57 said:
OpenVPN ist working on hero. I used the binaries for the G1. But the CIPHER is different: AES-256-CBC. I'm now testing it and if it's stable, perhaps I'm gonna compile openvpn with complete static openssl, so all functions should work.
If someone is interested, I can post my scripts and settings.
Click to expand...
Click to collapse
I am REALLY interested to now how you compiled it.
Hi!
I haven't compiled openvpn until now. I used this one:
https://www.digital-bit.ch/wiki/OpenVPN_auf_dem_G1
Just tried, may work. But i can't connect to my astaro because the key needs auth wit user and pw.
This Version hasnt been compiled with --auth-ask-pass. And reading from commandline doesn't work either..
I did compile it on my G1 with CyanogenMod ROM.
As far as I can see, it is working perfectly: I'm using it with certificates for 3 different VPNs.
Only issue: I wasn't able to complile a shared version of liblzo, so the binary is statically linked against liblzo.a (751 KB... )
Ah, yes, of course no GUI interface, shell only...
Hi!
Cool, could you post the binary? Could you give me a hint how you did it? I had several problems.
Would be perfect if someone could compile openvpn with " --enable-password-save"
Please post it, when a OpenVPN GUI for the HTC Hero / Magic is available.
Thans alot
wolfiedk said:
Please post it, when a OpenVPN GUI for the HTC Hero / Magic is available.
Thans alot
Click to expand...
Click to collapse
The great spam protection measures in this forum deny posting links for new users, so you have to manually follow them.
See: github.com/fries/android-external-openvpn
There is also an app and a statically linked openvpn binary at github.com/fries/android-external-openvpn/downloads
The openvpn binary has the following features:
* --enable-password-save
* statically linked against a blowfish enabled openssl
* statically linked against liblzo
Build:
* openvpn-static.bz2 was build on a donut-tree (1.6) for htc-magic
* openvpn-android-2.1.tar.bz2 was build on a cupcake (1.5) tree for htc-magic
* should run on a verity of (rooted) phones, please try it an give feedback.
A dynamically linked version is also available. The above git repo integrates seamless into the android build system. Some instructions may be found here: wiki.github.com/fries/android-external-openvpn/
Any feedback is welcome. Enjoy.
read this first -> http://sourceforge.net/projects/tunneldroid/files/README/download
First make sure kernel is compile with tun module
install tunneldroid from market
binary download -> http://sourceforge.net/projects/tunneldroid/files/openvpn-binary.zip/download
The newest version of my 'OpenVPN Settings' app is available at github.com/fries/android-external-openvpn/downloads

Android 2.1 with HTC SENSE ON WVGA/VGA DEVICES !!(vga needs some fixs)

As noone tried to fix android 2.1 codename Espresso, I tried and it works !!
working: (sorry Babijoe, I'm too lazy to write the whole list so I copy/paste it )
* Touchscreen:
* Vibration:
* Capacitive Buttons and Navigation wheel
* Radio
* GPRS
* Microphone works
* Charging
* Market
* Sound
* Gsensor:
* ramzswap
* Android system wide Mic support. Eg: Voice dialer works. Note: You must make a phone call first or play sound before it works for programs. (phhusson)
* Wifi
* did I forget something ? Flashplayer 10.1 of course !! it works but not smooth enough to watch movies !
* Bluetooth : turn ON/OFF pairs and A2DP works! but blac touchpad is desactivated and sound have echo of helicopter ! ALL CREDITS TO PHHUSSON
Not Working:
* Camera/videorecord
* GPS
DOWNLOAD LINKS :
Glemsom zImage kernel autobuild:
http://glemsom.anapnea.net/android/htc-msm-android/
or
zImage modules dirty (a.k.a. without debugging) it seems much faster:
http://balsat.hopto.org/
Base package:
contains startup without overclock cmdline, conf, additionnal apps, initrd, rootfs_3g_pb
http://xda.duttonbiz.com/Base_package/base_package0704.tar.gz
startup config :
contains startups with overclock cmdline
chech 1st post attachment
UPDATE rootfs autobuilds has wifi fix for rhod thx to [ACL] and phhusson
http://xdandroid.southcape.org/rootfs/
Rippped package 14/03/2010
http://www.sendspace.com/file/40t0rr
Rosie package UPDATE 23/04/2010
http://xda.duttonbiz.com/package_hero_rosie_23042010/system2304.sqsh
EDIT: cab install for rhod users thx to Reefermattness
http://forum.xda-developers.com/showthread.php?t=627997
If you like my work please donate
GUIDE
iceman198 did a great step by step with screenshots on howto install this build u can check it here
http://forum.xda-developers.com/showpost.php?p=6132485&postcount=1537
First boot takes about 10 min to boot so be patient
the OS will be smooth after that
CREDITS
thx to all developers that did the whole work and give us the chance to use android as a main OS on non supported HTC devices especialy phhusson, enatefox, nprussell, dzo, zenulator, Paul, [ACL], Chamonix, Stinebd, Makkonen, MrPippy, cr2, Markinus, Babijoe and anyone else who contribute to get this so far
thx to chkms, davidebeatrice, elroy944, kstephens98, Reefermattness, DracoLX for helping me correcting bugs.
thx to iceman198 for hosting my releases
This is from XDA and for XDA so fell free to mod it, or ask for help.
As I'm not a developer I did what I could to have a daily usable OS, so be indulgent
DONATORS
psycho_terror
g3rm0
OLDER RELEASES :
Rosie package UPDATE 19/04/2010
http://xda.duttonbiz.com/package_hero_rosie_19042010/system1904.sqsh
UPDATE 13/04/2010
http://xda.duttonbiz.com/package_hero_rosie_13042010/system1304.sqsh
UPDATE 07/04/2010 fix of market and boot issues
http://xda.duttonbiz.com/package_hero_rosie_07042010/system0704.sqsh
UPDATE 05/04/2010 fix of 3G connexion
http://xda.duttonbiz.com/package_hero_rosie_05042010/system.sqsh
UPDATE 04/04/2010 fix of settings force close
http://xda.duttonbiz.com/package_hero_rosie_04042010/system.sqsh
UPDATE 30/03/2010 REV B fix of htc apps
http://xda.duttonbiz.com/package_hero_rosie_30032010/system300320101revb.sqsh
UPDATE 30/03/2010
http://www.sendspace.com/file/kid8cp
rosie package 29/03/2010 HTC SENSE SIZED
http://www.sendspace.com/file/qmkfbq
rosie package 28/03/2010
http://www.sendspace.com/file/c89tnf
older releases
http://www.4shared.com/dir/32335779/5c5ec6f1/sharing.html
cheers
Klinux
screenshots and youtube video running htc sense
I know you guys you prefer see with your own eyes !
here we go :
thx to whitefalcon for the screenshots
video of this ROM running on WVGA device:
http://www.youtube.com/watch?v=IXd5WC2y6lQ
thx to tomanlam for the video
video of this ROM running on VGA device:
http://www.youtube.com/watch?v=C3kBzSMkX5Y
thx to fastrat350 for the video
changelog
05.03.10 changelog:
- as many of you was confused to what file to use under which folder,
I packed all the neccessary files on one archive see link above
- WIFI supported now
- boot sound removed (I reboot so much so it get me realy ignoyed )
- some mod on system files to support BT in the future
- disable HW3D as the new zImages causes problem booting the system on blackstone
08.03.10 changelog:
-added package with rosie (HTC Sense)
-moded the boot animation
-updated rootfs this should correct other devices keymaps
-added files to support bluetooth on future releases
09.03.10 changelog:
-moded the boot animation it's centered now
-added files to enable bluetooth
-rosie package will be updated later
15.03.10 changelog:
- phhusson corrected the bug with rhod it was a conflict with wifi I added two rootfs one is latest git (rootfs.img) and the second is rootfs with calibration.
- system is more ripped.
- rosie package from htc eris thx to ACL for the link it seems faster than mine, I test it apart some rosie reboots and market everything is fine I will decide which one I will use by default after your feedback
- I added a new file named custom.tar.gz; this file contains the first boot optimization of time so if u can compare how many time it take with and without it will be cool (if u use it with existant data.img it will erase your customizations so be aware )
- don't use custom.tar.gz with rosie package the system will not boot !
-added some apps from xandroid package thx to babijoee
16.03.10 changelog:
- added sms fix from rootfs git all credits to phhusson
- added some mods to fix wifi problem on rootfs git (diam/raph/blac/topaz) rhod owners should wait
I uploded two rootfs: rootfs3Denabled and rootfs3Ddiasbled
- use 3Denabled on diam/raph
- use 3Ddisabled on blackstone
- on tapaz/rhod u can try both and give feedback, cause I don't know if 3D is supported or no
19.03.10 changelog:
- merged rootfs with all fixes
- add auto 3D enable/disable by device
- 3G should be fine for all providers
20.03.10 changelog:
- rootfs for all devices rootfs.img 3D desactivated roll back to the newer ril=phone driver
- rootfs_3G_pbs for those who have problem with their provider (VODAPHONE) with old ril
21.03.10 changelog:
- 1st try to fix britghness
28.03.10 changelog:
- fix for britghness
- new system.sqsh from HERO thread it's more stable and as responsive as on my HERO, I test it during 7h no force close at all !! thx to nprussell for this jewel !!
- market fixed
- google sync fixed
- 2G / 3G switch works thx to phh it force close the phone but works after
- teeter works partialy give it a try it's slugish but as responsive as winmo's one
- 3D gallery works partially but slow
- hexagon home tabs works by tape power button on the main home tab but undersized
29.03.10 changelog:
- 1st htc sense package with sized htc apps thx to [ACL] for the hint to use htc desire apk and thx to paul for the htc desire rom
- it's an alpha version so your feedback will help to fix it
30.03.10 changelog:
- fix for setting
30.03.10 changelog:
- fix of all htc apps FC
- settings could not accessed now
04.04.10 changelog:
- fix of settings Force close
05.04.10 changelog:
- fix of 3G connexion
07.04.10 changelog:
- fix of 3G connexion
- fix of market issue
- fix of loop on boot screen
-wifi still don't work for me test please and post feedback
13.04.10 changelog:
- use eris drivers to make the system smoother and more responsive
- my blac heat way less than before please confirm from youe side
19.04.10 changelog:
1\ ROOTFS
- update rootfs to enable wifi on rhodium thx to [ACL] for his work please test and post feedback
2\SYSTEM
- use eclair drivers to make the system smoother and more responsive
- update bootanimation thx to La3bna and enable boot sound
- add WifiTether to test please my blac's wifi is screwed
23.04.10 changelog:
- use nearly all desire framework this correct a little graphic bug on unlock pattern
- use aderno200 drivers (desire 3d drivers) the only improvement untill now is visible on teeter 1st load
hey k_linux this is unholy from htc-linux, just wanted to let everyone know that this image is fast, i dont know if it will be as fast for you, i have my android at 700mhz, anyways if you want expreso 2.1 look no further.
btw: as you can see iv got a raph so it might work for other devices tooo
any ideas this goes well on diamond
Looks great!
Any idea if you can get wifi working?
Thanks!
sraaj said:
any ideas this goes well on diamond
Click to expand...
Click to collapse
it's so slow on diamond, but you can always try
brodos123 said:
Looks great!
Any idea if you can get wifi working?
Thanks!
Click to expand...
Click to collapse
it worked well when I first try it,
so I think it will be possible in near future
klinux said:
I know you guys you prefer see with your own eyes !
here we go :
Click to expand...
Click to collapse
Hi! thank you!
could you make a systemsqsh from the hero file system please?
Hi
I downloaded the 3 files.
-eclairhero.user.conf
-rootfs.img
-system.sqsh
As I understand I use a haret.exe and startup.txt file from another build?
But what modules/zimage do I use?
the conf file, is it suppose to be directly in root of sd card or in a conf folder?
Also do I use only one fat32 partition?
can I use swap and ext2?
Thanks!!
brodos123 said:
Hi
I downloaded the 3 files.
-eclairhero.user.conf
-rootfs.img
-system.sqsh
As I understand I use a haret.exe and startup.txt file from another build?
Click to expand...
Click to collapse
as haret and startup doesn't change I didn't add it so yes use those from eclair
brodos123 said:
But what modules/zimage do I use?
Click to expand...
Click to collapse
download the latest zImage from glemsom's website
brodos123 said:
the conf file, is it suppose to be directly in root of sd card or in a conf folder?
Click to expand...
Click to collapse
conf file should be on conf directory
brodos123 said:
Also do I use only one fat32 partition?
can I use swap and ext2?
Thanks!!
Click to expand...
Click to collapse
u can use fat32 or ext2 systemfile as the rootfs support both of them
hope this will help
cheers
klinux said:
as haret and startup doesn't change I didn't add it so yes use those from eclair
download the latest zImage from glemsom's website
conf file should be on conf directory
u can use fat32 or ext2 systemfile as the rootfs support both of them
hope this will help
cheers
Click to expand...
Click to collapse
Thanks klinux!!
So is this with proper scaling, like, native 840x400 reso?
I was thinking of trying to port the Desire's sense UI btw..
Powerbik said:
So is this with proper scaling, like, native 840x400 reso?
I was thinking of trying to port the Desire's sense UI btw..
Click to expand...
Click to collapse
I ripped all unscalled htc's apk so we have OS with correct resolution, by the way if you can port the Desire sense apk it's always welcome !
klinux said:
I ripped all unscalled htc's apk so we have OS with correct resolution, by the way if you can port the Desire sense apk it's always welcome !
Click to expand...
Click to collapse
Hah, I'm no expert, faaaar from. I want to give it a shot any of these days though.
maybe you should include to add a initrd.gz in the 1st post, wouldnt boot otherwise ("reboot in 7 seconds" and then freeze)
im looking at the boot animation as i write X=)
N!ghty said:
maybe you should include to add a initrd.gz in the 1st post, wouldnt boot otherwise ("reboot in 7 seconds" and then freeze)
im looking at the boot animation as i write X=)
Click to expand...
Click to collapse
ok, guys I will make complete package with all files, as I write now I'm fiwing wifi issues and BT!
stay tuned
cheers
klinux said:
ok, guys I will make complete package with all files, as I write now I'm fiwing wifi issues and BT!
stay tuned
cheers
Click to expand...
Click to collapse
I'm just downloading the components myself (as you described, and putting them all together.... should take me an hour or so).... I'll play with it, and if it's working, I'll make an installer cab and release it... with credits to you of course.
What's not entirely clear is, is this Blackstone only? Of late, my releases have been device agnostic (and the installer supplies the correct startup.txt file for any given device).
My Android skills are limited, so any help on which devices are supported would be great.
Also, nobody's ever gotten around to giving a GOOD description of the function of each component...
e.g.
zImage - linux kernel (the absolute 'hub' of the linux OS)
modules.xxx.xx - additional files required by kernel.
initrd.gz <--- unclear what this is
system.sqsh <--- what IS this actually storing.... is it Android or is it customisation or is it both??
rootfs.img <--- what's this?
conf\xxx.conf <---- this is also unclear
Now don't get me wrong, conf is clear that it's helping the OS know where certain partitions are, and how to behave in terms of pagefiles etc etc, but the naming convention isn't clear or why it changes name (why's it not android.conf?)
Any info on this would be superb since I'd like to add it to my FAQ.
Could only get as far as the Hero logo (displayed towards top left of screen)... heard the Hero startup sound and the anim, then the screen stays in a loop of the animation and startup sound.... left for 3 mins the same....
Have to do a new build of something else before I return to this (so will be half a day now)... but will definitely come back to this
it looks great, worthy of giving a try, thanks...

[KITCHEN] Minimal kernel building VM with scripts

I added some convenience scripts to the config. Read the new tutorial here
The old one still works:
I put together a small virtualbox vm with a very minimal debian config with which I was able to compile a working kernel. This is for all the people who are running Windows, and want to try modifying kernels/initramfs's. As this is a minimal config there are some drawbacks (like it doesn't have a graphical interface), but you can always install additional packages, if you want to.
The VM includes: debian, build essentials, git, vb guest additions, mc, vim and codesourcery 2010q1 gnu-eabi. (it's larger than the simple eabi version, but can be used to compile non-kernel applications too)
First of all I hate both SunOracle VirtualBox and debian, but VB is free, and debian is lean, so they'll do the job.
To get the image running do the following:
First download and install VirtualBox
Next download the VM image: http://android.sztupy.hu/dl/KernelCompilerVM-1.1.7z and extract it. (it's a large download. If you can please put it up a mirror)
Mirrors: (thanks to the people mirroring it)
- http://www.multiupload.com/THJV19BJ9X
- http://bote.ro/sztupy/KernelCompilerVM-1.1.7z
After this run virtualbox, and import this VM.
Run the VM. The username/passwords are: root/root and kernel/kernel. Login with kernel. (you can always switch to root using sudo)
Next choose what kernel/initramfs you want to compile.
Here are some links to kernels:
The original sources can be found at supercurio's git:
Code:
git://github.com/project-voodoo/linux_gt-i9000.git
froyo-samsung branch
The kernel of the voodoo project can be found at the same place:
Code:
git://github.com/project-voodoo/linux_gt-i9000.git
froyo-voodoo branch
The ULTK kernel can be found at my account:
Code:
git://github.com/sztupy/universal_lagfix_kernel.git
Here are some links to initramfs files:
The original froyo initramfs can be found at supercurio's git page:
Code:
http://github.com/project-voodoo/samsung_ramdisks.git
afaik the voodoo initramfs is build using scripts from these images, so you have to apply them.
The ULTK initramfs can be found here:
Code:
git://github.com/sztupy/universal_lagfix_kernel_initramfs.git
For the rest of the tutorial I'll be showing how to compile ULTK:
First get the kernel sources using git:
Code:
git clone git://github.com/sztupy/universal_lagfix_kernel.git kernel
Unfortunately no copy-paste function is available, so you have to write this manually...
Next get the initramfs using git:
Code:
git clone git://github.com/sztupy/universal_lagfix_kernel_initramfs.git initramfs
If everything goes well you'll have two directoryes, called kernel and initramfs. Next we have to modify some values in the kernel configs.
Nano, mcedit and vim are installed, use the one that suits you best. (mcedit is the most user friendly)
Switch to the kernel directory and edit the Makefile there:
Code:
cd kernel
nano Makefile
Find the row that says
Code:
CROSS_COMPILE ?= some value
Replace it to
Code:
CROSS_COMPILE ?= /home/kernel/arm-2010q1/bin/arm-none-linux-gnueabi-
(if using nano make sure it won't add a line break into the row)
Next load the default config:
Code:
make aries_eur_defconfig
And edit it:
Code:
nano .config
We have to supply the directory of the initramfs. Search for the line:
Code:
CONFIG_INITRAMFS_SOURCE=some value
and replace it to
Code:
CONFIG_INITRAMFS_SOURCE=/home/kernel/initramfs/out
(this is for the ULTK. For voodoo the initramfs locations are "froyo-xxjp6" and "froyo-xxjpm" instead of "out")
if you've managed to do that too, let's compile the kernel:
Code:
make
If everything goes fine after a while you will have your shiny new kernel. Now let's get it to your computer, so it can be flashed:
First, you have to create a shared folder in VirtualBox. Simply create a directory somewhere on your computer, and add it as a shared folder in virtualbox. The name of the shared folder should be simple, for example "shr".
Next, you have to mount that directory inside the VM. To do this enter:
Code:
sudo mount -t vboxsf shr ~/share
After it has been mounted you can copy the fresh kernel to your host OS:
Code:
cp arch/arm/boot/zImage ~/share
If everything goes well you have a zImage ready at the folder you've just shared. TAR it, fire up odin, and flash.
---------------------------------
Now that you've succesfully compiled a working kernel try to modify it. You can use "make menuconfig" in the kernel directory to switch some kernel functions (like filesystem supports) on and off. You can edit .config by hand to add or remove some configuration values. And you can edit the files in the initramfs directory. After modifications you only have to enter "make" in the kernel directory to get your kernel inside the "arch/arm/boot/zImage" dir ready.
You can also copy files from your host OS, to the guest OS, by putting the file inside the shared folder and copying it:
Code:
cp ~/share/thefile ~/initramfs/copyithere
Hope this guide was useful.
Impressive, thanks. Even a noob like me can try this.
Oh god, not only a talented developer, but a community helper!
STICKY!!
Gonna try it laters <3
oh yea, nice!
DocRambone said:
Impressive, thanks. Even a noob like me can try this.
Click to expand...
Click to collapse
If you're a noob, then I'm a baby
Darkyy said:
If you're a noob, then I'm a baby
Click to expand...
Click to collapse
high time you start compiling kernels
tnx
its very usefull
Magnificent!
I just came to take a quick look, but the thread deserves a closer one.
Thank you for sharing knowledge.
Worthy of a sticky.
Hopefully this will solve all those "I want this in a kernel but not that" scenarios.
This is VERY nice for the devs.. but.. i think this will make this forum spammed with 69 diff kernels with just minor changes.. as with the roms
Its better to let other people brick their phone than you brick your own
Just kidding! I for one will try and compile different versions with different lag-schemes to find the fastest combination. Including /system with fastest reading. I think I will add a benchmark to the recovery menu directly. Benchmarking each mount for read and for write speeds. Maybe I can use backup/restore code and just time it without writing (cp to null). Lets get to work
Thanks sztupy!
Sent from my GT-I9000 using XDA App
_JKay_ said:
Its better to let other people brick their phone than you brick your own
Just kidding! I for one will try and compile different versions with different lag-schemes to find the fastest combination. Including /system with fastest reading. I think I will add a benchmark to the recovery menu directly. Benchmarking each mount for read and for write speeds. Maybe I can use backup/restore code and just time it without writing (cp to null). Lets get to work
Thanks sztupy!
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
You cannot brick your phone with a bad kernel
@sztupy
I am impressed how productive master mind and kind person you are sharing all your knowledge and developments with us.
Congratulation, with you contributions you push Android Development forward.
Thank you
this is really cool, if i need minimal GUI, what would you suggest? xfce ? or there is something smaller and lighter? thx again.
avary said:
this is really cool, if i need minimal GUI, what would you suggest? xfce ? or there is something smaller and lighter? thx again.
Click to expand...
Click to collapse
Fluxbox/Openbox. However I don't see the need for one, if you're running the machine just for compiling.
Also, shouldn't gpm+guest additions solve the copy-paste problem?
E: Apparently not. Meh, stupid virtualbox.. sshd+putty then!
Awesome! Thanks for this sztupy! The more people we can get involved in this stuff, the better the end result will be. Always!
aziztcf said:
Fluxbox/Openbox. However I don't see the need for one, if you're running the machine just for compiling.
Also, shouldn't gpm+guest additions solve the copy-paste problem?
E: Apparently not. Meh, stupid virtualbox.. sshd+putty then!
Click to expand...
Click to collapse
actullay i was looking for something light and minimal (with GUI, or at least something like PCman FM and gedit or kedit, im not good with emac, vi ) to play and compile AOSP, for now i do this with Kubuntu dual boot on my laptop. if i put a litghweight desktop on top of szytup's image and use it with VB, that would be great.
thank you !
avary said:
actullay i was looking for something light and minimal (with GUI, or at least something like PCman FM and gedit or kedit, im not good with emac, vi ) to play and compile AOSP, for now i do this with Kubuntu dual boot on my laptop. if i put a litghweight desktop on top of szytup's image and use it with VB, that would be great.
thank you !
Click to expand...
Click to collapse
I'd use a shared folder+IDE/editor/whatever on windows. But that's just because I have so awful experiences about X in VMs, things might be better nowadays
Thanks a lot sztupy, will try it now. Sunday is enough time for testing
Each morning i have a look at XDA and you have brought out a new very helpfully posting, kernel, rom or else!
So let me ask you one question: when do YOU sleep?
avary said:
actullay i was looking for something light and minimal (with GUI, or at least something like PCman FM and gedit or kedit, im not good with emac, vi ) to play and compile AOSP, for now i do this with Kubuntu dual boot on my laptop. if i put a litghweight desktop on top of szytup's image and use it with VB, that would be great.
thank you !
Click to expand...
Click to collapse
The advantage of using X is that afaik guest additions has copy-paste support, that would make modifying easier.
I also plan on making some simple scripts inside the default home directory one can run to communicate with the shared folder. After that we could provide simple scripts that you only have to put inside the shared folder, which will download, modify and run the compilation.

[SOLVED] concerning zlib and aromafm

@Hazou @ketut.kumajaya
okay so,
my first question is, after building philz and going through static_libraries folder i find libz.a .
is this zlib built static, and if so can i relocate it to aromafm source in place of building zlib?
there seems to be too many dependancies that i'm not sure how to locate/point to that largely
seem to be in my kernel source, [cpuset.c,cpuset.h,adler32.c[x86] ?
if so please explain completely as i am still fairly noobish
getting better though :victory:
aromafm is a must have !
thank you for reading
m
moonbutt74 said:
@Hazou @ketut.kumajaya
okay so,
my first question is, after building philz and going through static_libraries folder i find libz.a .
is this zlib built static, and if so can i relocate it to aromafm source in place of building zlib?
there seems to be too many dependancies that i'm not sure how to locate/point to that largely
seem to be in my kernel source, [cpuset.c,cpuset.h,adler32.c[x86] ?
if so please explain completely as i am still fairly noobish
getting better though :victory:
aromafm is a must have !
thank you for reading
m
Click to expand...
Click to collapse
Aromafm is new for me, i have used it, but never build it in any way.
The zlib u build when buildibng your recovery is static, so it is a static library.
I don't know if u can replace it for the source in aromafm. Aromafm (quick look) uses his own source. But u can alway try. Out comment every line about zlib:
Code:
## ZLIB SOURCE FILES
LOCAL_SRC_FILES := \
libs/zlib/adler32.c \
libs/zlib/crc32.c \
libs/zlib/infback.c \
libs/zlib/inffast.c \
libs/zlib/inflate.c \
libs/zlib/inftrees.c \
libs/zlib/zutil.c
## ZLIB NEON SOURCE
ifeq ($(AROMA_ARM_NEON),true)
LOCAL_SRC_FILES += libs/zlib/inflate_fast_copy_neon.s
endif
and add "libz" after "libc".
Code:
## INCLUDED LIBRARIES
LOCAL_STATIC_LIBRARIES := libm libc libz
I can't find your "dependencies" so quick. Where did u find them? Most off them will probably just work.
Hazou
okay, go !
hazou,
thanks for the speedy reply,
okay so, first, cpuset.c i located in my kernel source, in aroma it's refered to in libs/zlib at
320 # if defined(__i386__) || defined(__x86_64__)
321 # include "x86/cpuset.c" <==== typo in souce said cpudet.c
322 #endif
neither the directory or the file exist in the source as it is.
i mkdir x86 in libs/zlib for libs/zlib/x86 , then searched cm11 from top and located what i can only
assume was the correct file [cpuset.c] in my kernel source and cp > aromafm/libs/zlib/x86 and naturally
now i have to either cp everything jn that chain or, drag my kernel source into aromafm directory.
can i point to an 'off-world' source outside of build directory? if so what does that look like?
as to zlib libz.a, the down side of a static lib is it doesn't necessarily fit to a specific purpose/function right?
thanks for your help as always.
m
moonbutt74 said:
hazou,
thanks for the speedy reply,
okay so, first, cpuset.c i located in my kernel source, in aroma it's refered to in libs/zlib at
320 # if defined(__i386__) || defined(__x86_64__)
321 # include "x86/cpuset.c" <==== typo in souce said cpudet.c
322 #endif
neither the directory or the file exist in the source as it is.
i mkdir x86 in libs/zlib for libs/zlib/x86 , then searched cm11 from top and located what i can only
assume was the correct file [cpuset.c] in my kernel source and cp > aromafm/libs/zlib/x86 and naturally
now i have to either cp everything jn that chain or, drag my kernel source into aromafm directory.
can i point to an 'off-world' source outside of build directory? if so what does that look like?
as to zlib libz.a, the down side of a static lib is it doesn't necessarily fit to a specific purpose/function right?
thanks for your help as always.
m
Click to expand...
Click to collapse
About that zlib. I still don't know if it will work. There may be a call from other files to the zlib files. And if so, i dont think it will work.
As for the cpudet.c, its not a typo. It looks like they were present in the source of zlib. But put outside by the developer because of ARM. U need to find the cpudet.c, put it into the following folder inside the source of aromafm: include/x86/cpudet.c. The same thing goes with: include/x86/adler32.c. But maybe it only works when u have it at aromafm/x86/cpudet.c/aromafm/x86/adler32.c.
I found the zlib variant the developer uses (old one i think, but maybe nessecary) and it includes the missing files, here From Koush
Heee heeee heeee!
hazou,
cool, will check out,
okay so, this is what i did,
forced compile for non neon
replaced uncompiled source for both zlib and libpng and mmm
result aromafm-santos10wifi
flash in recovery and......it works! .......mostly [lag, can i pull libenc trick with this?]
i need to adjust for display and figure out a way to enable/facilitate scrollback in terminal
at terminal #whoami
returns #uid0 :good:
busybox :good:
m
moonbutt74 said:
hazou,
cool, will check out,
okay so, this is what i did,
forced compile for non neon
replaced uncompiled source for both zlib and libpng and mmm
result aromafm-santos10wifi
flash in recovery and......it works! .......mostly [lag, can i pull libenc trick with this?]
i need to adjust for display and figure out a way to enable/facilitate scrollback in terminal
at terminal #whoami
returns #uid0 :good:
busybox :good:
m
Click to expand...
Click to collapse
Nice that it works! The pixelflinger (libenc) trick wont work here. I think that aroma can be enhanced with the libenc trick, but it needs heavy modding on graphical (framebuffer) part. And i don't have the skills to get that sorted.
good deal
Hazou said:
Nice that it works! The pixelflinger (libenc) trick wont work here. I think that aroma can be enhanced with the libenc trick, but it needs heavy modding on graphical (framebuffer) part. And i don't have the skills to get that sorted.
Click to expand...
Click to collapse
hazou,
thanks for the pointer, i wasn't sure of which direction to look. I am starting to get the hang of this stuff. got philz done, getting aromafm done.
thanks so much.
m

[Q] Working & stable SSHD/sftpd for ZE55xML ?

Apologize for possible OT, but I can't find an always working (and stable) SSH daemon app for the Zenfone2's Lollipop
This is what I tried, any of them PAID apps:
QuickSSHd - too old, not even starts
SSHDroid Pro - sometime starts, only first time after reboot, but only without root and higher ports (>1024)
RRooted SSH/SFTP Daemon - always refusing connections
Ssh Server Pro (olive tree) - seems promising, but very poor of binaries
The Dropbear service hanging issue seems the root of this problem
Thanks for any hint
I can't even find a proper ssh binary. I just tried sshd from an x86 cyanogen port (RAZRi, I think). Got this after loading appropriate library in lib (same as client)
1|[email protected]:/ # sshd
CANNOT LINK EXECUTABLE: could not load library "libssh.so" needed by "sshd"; caused by cannot locate symbol "EVP_ripemd160" referenced by "libssh.so"...
Good luck sir
Blades said:
I can't even find a proper ssh binary. I just tried sshd from an x86 cyanogen port (RAZRi, I think). Got this after loading appropriate library in lib (same as client)
1|[email protected]:/ # sshd
CANNOT LINK EXECUTABLE: could not load library "libssh.so" needed by "sshd"; caused by cannot locate symbol "EVP_ripemd160" referenced by "libssh.so"...
Good luck sir
Click to expand...
Click to collapse
Hi,
I followed the following guide which you can get from googling "Compiling-Dropbear-for-a-Nexus-7-tablet". Sorry, I can't post any links yet as my post counts are still below 10
The difference with the info from the website above is that we don't need to cross compile if you're compiling in a Linux x86-64 system. Just need to make a static binary.
Let me know if you have any questions and I'll try to help out.
Cheers.
wolfdude said:
The difference with the info from the website above is that we don't need to cross compile if you're compiling in a Linux x86-64 system. Just need to make a static binary.
Let me know if you have any questions and I'll try to help out.
Click to expand...
Click to collapse
Thanks for your answer.
Sorry but I can't get the exact entry-point, bypassing all the NDK / X-compiling stuff, as we're on a x86_64 architecture
Referring to the "simplified" version of your link (here: https://nerdoftheherd.com/articles/cross-compiling-dropbear-rsync-android/ ),
how should I compile the Dropbear source ?
Something like this ?
Code:
./configure \
--disable-zlib --disable-largefile --disable-loginfunc --disable-shadow --disable-utmp --disable-utmpx --disable-wtmp \
--disable-wtmpx --disable-pututline --disable-pututxline --disable-lastlog \
CFLAGS='-Os -W -Wall -fPIE' LDFLAGS='[COLOR="Red"]-static[/COLOR] -fPIE -pie'
... right before make-ing ?
Thanks for any further hint in the right direction
Hi,
I didn't refer to that site you have posted BUT that site does have a link at the bottom to the site where I followed.
From that site, what I did was :-
1) Download dropbear v58 (dropbear-2013.58.tar.bz2). I know this is older but the patch available is based on this version.
2) Download patch (dropbear-patch2) from that site.
3) Apply patch to the original dropbear (v58) source.
4) Run configure :-
./configure --disable-zlib --disable-largefile --disable-loginfunc \
--disable-shadow --disable-utmp --disable-utmpx --disable-wtmp \
--disable-wtmpx --disable-pututline --disable-pututxline --disable-lastlog
5) Run make :-
STATIC=1 MULTI=1 SCPPROGRESS=0 PROGRAMS="dropbear dropbearkey scp dbclient" make strip
6) You should end up with "dropbearmulti" which is a static binary that you can then copy over the the phone & go on from there.
There are some issues with that version of the code (v58+patch). Namely the "scp" doesn't work (but I have found the offending code in scp.c and found a workaround).
Let me know if you need more details. If I have some time, I might look at getting the latest dropbear version & working out a patch for it to get it to work on android x86.
Cheers.
wolfdude said:
Hi,
I didn't refer to that site you have posted BUT that site does have a link at the bottom to the site where I followed.
[...]
There are some issues with that version of the code (v58+patch). Namely the "scp" doesn't work (but I have found the offending code in scp.c and found a workaround).
Let me know if you need more details. If I have some time, I might look at getting the latest dropbear version & working out a patch for it to get it to work on android x86.
Cheers.
Click to expand...
Click to collapse
Yes of course. The main link you weren't able to post is:
http://blog.xulforum.org/index.php?post/2013/12/19/Compiling-Dropbear-for-a-Nexus-7-tablet
Actually that procedure seemed too complex as mostly dealing with the cross-compiling issue, which didn't apply to x86 case.
So I named the derivative one
Thanks for pointing out the static compiling is done within MAKE and not CONFIGURE phase... I'm quite newbie in those flags so I do appreciate any of your words
About issues, what about using the latest v67 for Dropbear sources ? (see here)
If the patch doesn't work for such different version, I guessed commenting out the interactive password line would be enough
I'm trying to compile it this way and - for instance - replace the binaries in one of the SSHD packages I named in the OP...
Thank you again for your time
Val3r10 said:
About issues, what about using the latest v67 for Dropbear sources ? (see here)
If the patch doesn't work for such different version, I guessed commenting out the interactive password line would be enough
I'm trying to compile it this way and - for instance - replace the binaries in one of the SSHD packages I named in the OP...
Thank you again for your time
Click to expand...
Click to collapse
Hi,
Yes, the patch for v58 does not work for v67. I think one just have to go through the patch and "adjust" it slightly for the newer v67. Hopefully there isn't much changes from v58 to v67. There may be more than just commenting out the password prompt as there are certain functions that don't work in Android as in *NIX. When I have some time, I will attempt to patch v67 meanwhile, I'm running v58 fine on my ZE550ML so no complains there.
Cheers.
Hi,
I've created a guide on compiling the latest dropbear (2015.67) :-
http://forum.xda-developers.com/zenfone2/general/compiling-dropbear-2015-67-zenfone-2-t3142222
Hope it helps.
Cheers.
wolfdude said:
I've created a guide on compiling the latest dropbear (2015.67)
Click to expand...
Click to collapse
Thanks a lot.
Do you think the same process (STATIC build, of course, not patching) could be likely used for other small binaries too ?
Val3r10 said:
Thanks a lot.
Do you think the same process (STATIC build, of course, not patching) could be likely used for other small binaries too ?
Click to expand...
Click to collapse
Of course. I've managed to compile tcpdump, iperf, gdbserver, etc... successfully and working fine on the Zenfone 2.
Cheers.
I found that "Servers Ultimate" SSH/SFTP modules work on the Zenfone2 once properly configured. Its not working 100% but its already more then most solutions out there.

Categories

Resources