[Q] How to overclock the Raspberry Pi with Kali Linux? - Raspberry Pi Q&A, Help & Troubleshooting

I've just installed Kali Linux on my SD card that I use with Raspberry. This new OS I think is very good, but at the installation I don't have the opportunity to overclock as it is possible with Raspbian so I'd like to try to check differences. How could I do?

AlessioMTX said:
I've just installed Kali Linux on my SD card that I use with Raspberry. This new OS I think is very good, but at the installation I don't have the opportunity to overclock as it is possible with Raspbian so I'd like to try to check differences. How could I do?
Click to expand...
Click to collapse
You should be able to edit the RPi's clock frequencies manually (Along with other tweaks) in the config.txt located in /boot/config.txt or similar location. I would recommend taking a look at this guide to editing the RPi's config.txt.

shimp208 said:
You should be able to edit the RPi's clock frequencies manually (Along with other tweaks) in the config.txt located in /boot/config.txt or similar location. I would recommend taking a look at this guide to editing the RPi's config.txt.
Click to expand...
Click to collapse
Yes, I saw that, but in Kali Linux at the first boot there isn't the raspi configuration as in raspbian wheezy, more in the /boot/ directory there isn't config.txt

Yea. I just copied the template from another build I had with the settings I was using manually. It works the same, you just don't have the gui doing it for you.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

Related

ubuntu installed on rom sgs

Is there somebody that could post a rom with ubuntu already installed on it?
I tried verry hard but i keep getting a grey screen?
I have the latest darky rom and speedmod kernel.
http://www.youtube.com/watch?v=cWLOqVdtbkw&feature=related
It's not Ubuntu on Android neither a Rom, it's a VNC remote connection to an Ubuntu PC.
flexoduss said:
Is there somebody that could post a rom with ubuntu already installed on it?
I tried verry hard but i keep getting a grey screen?
I have the latest darky rom and speedmod kernel.
http://www.youtube.com/watch?v=cWLOqVdtbkw&feature=related
Click to expand...
Click to collapse
ttf said:
It's not Ubuntu on Android neither a Rom, it's a VNC remote connection to an Ubuntu PC.
Click to expand...
Click to collapse
I'm sorry but I guess ubuntu is indeed running on the SGS.
See that it connects to localhost, and not some other IP address. Unless he has somehow modified android's hosts file, if there is any, and in which case I guess would break android itself.
tfvaldo said:
I'm sorry but I guess ubuntu is indeed running on the SGS.
See that it connects to localhost, and not some other IP address. Unless he has somehow modified android's hosts file, if there is any, and in which case I guess would break android itself.
Click to expand...
Click to collapse
Humm my bad, you right, interesting, have not spotted the localhost part.
Look like he used a Chrooted environment to perfom that, will investigate more =).
So, appologize to the OP.
EDIT:
Ok after searching a little here what you need to perform it (not tested yet, but ASAP)
Here the Unbuntu arm image : http://www.megaupload.com/?d=YKUX4Q89 326.48Mb file
And
Here the howto: http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
EDIT 2:
Ok sweet got it working, following that howto:
http://nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-nexus-oneandroid/
Pretty nice btw!.
I will try soon with backtrack =D
Another how to..
http://forum.xda-developers.com/showthread.php?t=962023
Thanx a lot dudes

[Guide] Building your own ICS ROM on 64-bit Windows 7

Please note that this is a guide to how to setup an environment to create your own ROM, and to build a test AOSP ICS Rom that will work on an emulator. While it is possible to do all this in 32-bit Win 7, you will find it much (!) easier in 64-bit Win 7. The intention is to allow all the folks who have said they'd like to work on a ROM to get their feet wet. If you complete all the steps in this guide you will have a Vanilla ICS Rom that works in the Android Emulator. You would still need to modify the kernel for the Tegra and add the special radio and other drivers before porting to the Streak.
Of course you can skip step 4 if you are willing to either dual-boot Ubuntu, or go into Ubuntu full time. However I figure a lot of folks on here are still on Windows for one reason or another.
1) Make sure that the ROM for your Windows 7 computer is set to allow Virtualization. If you have a Core i7 this will be the default. Otherwise you will need to make sure to set it manually through the Setup that should come up before BOOT.
2) Download VirtualBox 4.1.8
DL Link here for VB:
http://download.virtualbox.org/virtualbox/4.1.8/VirtualBox-4.1.8-75467-Win.exe
DL Link here for VB Extensions (necessary for USB, shared folders, etc):
http://download.virtualbox.org/virt...alBox_Extension_Pack-4.1.8-75467.vbox-extpack
3) Download Ubuntu 11.04 64-bit
DL Link here:
http://www.ubuntu.com/download/ubuntu/download
Make sure (!) to select the 64-bit version before clicking download
4) Install VirtualBox and Ubuntu:
Install and Setup Guide:
http://www.sevenforums.com/tutorial...ndows-7-virtual-machine-using-virtualbox.html
(Note that some of the images from this guide are from an earlier version of Ubuntu)
I personally recommend that as long as you have at least a Quad Core that you give your VB machine Two Cores and Two Gigs of RAM. For the HD size of your Virtual HD remember that the Android Source Code is almost 16 Gigs. For speed and other purposes I suggest creating a fixed size 80 Gig (or larger) Virtual HD. While this can be on an external drive, if you have room on an internal drive that will also improve performance.
5) Install the Toolchain (Android Build Environment):
http://mjanja.co.ke/2011/11/building-android-4-0-on-ubuntu-11-10/
The first three steps will take between 1-2 hours. Step 4 will take an hour or so as well. Step 5 takes multiple hours due to the size of the Android repo source library. Plan accordingly
Hope this helps!
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Mind everyone he said this was for AN EMULATOR
giveen said:
Mind everyone he said this was for AN EMULATOR
Click to expand...
Click to collapse
And that it still requires tuning for the Tegra chip and the custom radios. This is not a new ROM, rather it is what you would need to do to setup an environment to create a ROM.Just saw so many folks saying they would like to help, that it seemed to make sense to show them how to get started. If anyone has gone through this and is ready to take that next step, this would be a good place to let folks know.
exebreez said:
Looks good, but its way easier to use a direct Ubuntu installation, dude.
So far as i can see, you can use the sdk on 32-bit, too.
Click to expand...
Click to collapse
Support on 32-bit is "experimental" according to Google. As for a direct install, that'sonly true if you are ready to convert to Linux or dual boot. On a fast machine having the VM is actually pretty quick, and allows you to mess up without impacting everything else.
It's a tuto to creat a ROM for a smartphone or a computer?
Samoht59 said:
It's a tuto to creat a ROM for a smartphone or a computer?
Click to expand...
Click to collapse
This is more of a guide on how to build an environment were you can begin to build android.
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
rahulsby said:
How to Compile Skia Rendering Engine to a rom. (for Indic Support)
Click to expand...
Click to collapse
Missing a link?

What is needed to be an android developer?

What is needed to be an android developer? What things I have to learn to develop apps and make custom roms or kernels?
It isnt that easy. Just an app that is slightly complex can take 3-4 months if you have 0 knowledge before you start
Sent from my LG-P880 using xda app-developers app
alekthefirst said:
It isnt that easy. Just an app that is slightly complex can take 3-4 months if you have 0 knowledge before you start
Sent from my LG-P880 using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply. I am going to learn C, C++, VB.NET, Linux and Java. After an year and three months my course will complete. I want to know, what is needed more to learn. Please tell.
C language is the base for kernel development.. ROM is not difficult to make/develop/mod.. but Kernel is.. good luck friend
Sent from my LG-P990 using xda premium
Subhajitdas298 said:
Thanks for the reply. I am going to learn VB.NET, Linux and Java. After an year my course will complete. I want to know, what is needed more to learn. Please tell.
Click to expand...
Click to collapse
Visual Basic .NET is not required for android developing. VB (.NET) was created by Microsoft and is supposed to run and supported only on Windows. (can be emulated on linux though..)
Linux: you need to specify what you want to learn about linux. How to access the terminal, know the different shells (sh, bash, zsh, ..) and how to use them (executing commands, creating scripts, using system variables, pipes, ...). It's also good to know the boot process and how it's working to boot into linux (kernel -> initial ramdisk --> init --> usermode).
Another thing is how to compile applications using gcc and understanding the automatic building process using Makefiles and how to configure it (using defines, ./configure) to make a build that fits your need.
Other things to learn and understand: debugfs, tmpfs, ramfs, procfs, devfs, sysfs, ramdisk structure, and much more.
Also important are the differences between linux distributions. They all have it's own way to process different operations, for example, installing and updating the distribution or apps. (debian/ubuntu -> apt-get, fedora -> yum, suse -> yast, ...)
Java: only needed if you want to develop android apps running in userspace executed by the dalvik virtual machine (=> normal apps that run on android os). Java's coding syntax is based on C's. When coding apps for android os be sure you get used with the android sdk.
C: not bad to know. You can do kernel stuff and develop apps that can be executed by the linux/android kernel directly without involving the dalvik-vm which allows you to access internal things. Custom recoverys, for example, were developed using C and the android ndk with a modified ramdisk to execute the recovery binary instead of the dalvik-vm which initializes android.
C++: not really needed, but it supports object oriented programming which makes everything better structured and understandable. The android ndk has some support for c++ header files to work with.
So.. one year isn't enough. There is so much to learn and it's really not easy.. more frustrating
Then finally you can start to work build roms for a specific device, because every device has other hardware components and different ways to do this and that. You need to know and understand them to successfully develop software that runs fine on the specific device.
gordon0001 said:
Visual Basic .NET is not required for android developing. VB (.NET) was created by Microsoft and is supposed to run and supported only on Windows. (can be emulated on linux though..)
Linux: you need to specify what you want to learn about linux. How to access the terminal, know the different shells (sh, bash, zsh, ..) and how to use them (executing commands, creating scripts, using system variables, pipes, ...). It's also good to know the boot process and how it's working to boot into linux (kernel -> initial ramdisk --> init --> usermode).
Another thing is how to compile applications using gcc and understanding the automatic building process using Makefiles and how to configure it (using defines, ./configure) to make a build that fits your need.
Other things to learn and understand: debugfs, tmpfs, ramfs, procfs, devfs, sysfs, ramdisk structure, and much more.
Also important are the differences between linux distributions. They all have it's own way to process different operations, for example, installing and updating the distribution or apps. (debian/ubuntu -> apt-get, fedora -> yum, suse -> yast, ...)
Java: only needed if you want to develop android apps running in userspace executed by the dalvik virtual machine (=> normal apps that run on android os). Java's coding syntax is based on C's. When coding apps for android os be sure you get used with the android sdk.
C: not bad to know. You can do kernel stuff and develop apps that can be executed by the linux/android kernel directly without involving the dalvik-vm which allows you to access internal things. Custom recoverys, for example, were developed using C and the android ndk with a modified ramdisk to execute the recovery binary instead of the dalvik-vm which initializes android.
C++: not really needed, but it supports object oriented programming which makes everything better structured and understandable. The android ndk has some support for c++ header files to work with.
So.. one year isn't enough. There is so much to learn and it's really not easy.. more frustrating
Then finally you can start to work build roms for a specific device, because every device has other hardware components and different ways to do this and that. You need to know and understand them to successfully develop software that runs fine on the specific device.
Click to expand...
Click to collapse
Isn't VB.NET not required to make PC apps to manage phone, like some kind of phone manager or hacker or something like that?
In short I have to learn linux in core level- is that right? They told me, they are going to teach ubuntu. Don't know if they are going to teach in core level. Is there any ebook to learn Linux deeply?
Sure you can use it for developing apps for windows but it doesn't allow you to build native/winapi dynamic link libraries (dll) which can be quite useful. VB. NET also doesn't allow you to build userspace(ring3)/kernelspace(ring0) drivers which is essencial for supporting new hardware.
VB is, in my opinion, only good for building simple apps with a nice user interface. Sure it's quite easy to learn, but you do have not the possibilities like you have with C, C++ or Delphi.
And yea, the internals of linux would be a good start. But also getting used with KDE and GNOME (desktop managers) which both are useable on ubuntu. Ubuntu is also good cause google officially supports building android stuff on it.
Gesendet von meinem LG-P880 mit Tapatalk 2
gordon0001 said:
Sure you can use it for developing apps for windows but it doesn't allow you to build native/winapi dynamic link libraries (dll) which can be quite useful. VB. NET also doesn't allow you to build userspace(ring3)/kernelspace(ring0) drivers which is essencial for supporting new hardware.
VB is, in my opinion, only good for building simple apps with a nice user interface. Sure it's quite easy to learn, but you do have not the possibilities like you have with C, C++ or Delphi.
And yea, the internals of linux would be a good start. But also getting used with KDE and GNOME (desktop managers) which both are useable on ubuntu. Ubuntu is also good cause google officially supports building android stuff on it.
Gesendet von meinem LG-P880 mit Tapatalk 2
Click to expand...
Click to collapse
Thanks for reply but I didn't get the first paragraph. Anyways, what is delphi?
like gordon0001 already said, when you're new to android, start with a ROM, never with a kernel it can make you go crazy
and trust me, i know what i'm talking about
so for the start, i'd suggest you to learn java, maybe experiment with some apps, and then make your own rom.
if you're used to it a bit, you might want to start messing around with kernels. therefor you need C.
but be warned, i cannot be held responsible if you go crazy
simple application, less requirement.
start with examples within the sdk
Sent from my LG-P880 using Tapatalk 2
laufersteppenwolf said:
like gordon0001 already said, when you're new to android, start with a ROM, never with a kernel it can make you go crazy
and trust me, i know what i'm talking about
so for the start, i'd suggest you to learn java, maybe experiment with some apps, and then make your own rom.
if you're used to it a bit, you might want to start messing around with kernels. therefor you need C.
but be warned, i cannot be held responsible if you go crazy
Click to expand...
Click to collapse
I am not saying, I am going to start right away. It will take me one or more years to learn everything. I am just asking, what is required other than java, c and c++?
Also, is there an Ebook, where I can learn (understand) linux? Specifically Ubuntu.
K9998 said:
simple application, less requirement.
start with examples within the sdk
Sent from my LG-P880 using Tapatalk 2
Click to expand...
Click to collapse
I will keep that in mind.
Subhajitdas298 said:
I am not saying, I am going to start right away. It will take me one or more years to learn everything. I am just asking, what is required other than java, c and c++?
Also, is there an Ebook, where I can learn (understand) linux? Specifically Ubuntu.
Click to expand...
Click to collapse
for the building/compiling process, batch wouldn't be that bad
and about ubuntu, i'd suggest learning by doing
it's not really hard. with a few commands you can live with linux quite well
laufersteppenwolf said:
for the building/compiling process, batch wouldn't be that bad
and about ubuntu, i'd suggest learning by doing
it's not really hard. with a few commands you can live with linux quite well
Click to expand...
Click to collapse
I am totally Linux noob. So, someone has to teach me.
Can you tell me how to install ubuntu alongside Windows 7? I want to install it on a blank partition. I have 64 bit downloaded and burnt on a dvd.
just boot the dvd, the GUI will guide you through
still some Qs, tho:
and for partitioning, have you already partitioned your hdd? and what is it's size?
how much RAM do you have?
and which linux have you downloaded/do you want to use?
laufersteppenwolf said:
just boot the dvd, the GUI will guide you through
still some Qs, tho:
and for partitioning, have you already partitioned your hdd? and what is it's size?
how much RAM do you have?
and which linux have you downloaded/do you want to use?
Click to expand...
Click to collapse
Already partitioned. Using for 2 years.
HDD Size - 1 TB.
Partitions (GB) - 97 (Win 7 service pack 1, 32 bit, ram lock removed), 97 (blank, want to use for Linux, ubuntu 13.04 64 bit), 147 (songs, movies etc.), 480 (games and software collection), all that is left (tv recordings and other stuff).
RAM - 6 GB DDR3.
Processor - Intel Core 2 Duo @ 2.93 GHz (overclock to 3.2 GHz).
GPU - ASUS NVIDIA GeForce 210 Silent 1 GB DDR3.
Total graphics ram - 37** MB.
Subhajitdas298 said:
Already partitioned. Using for 2 years.
HDD Size - 1 TB.
Partitions (GB) - 97 (Win 7 service pack 1, 32 bit, ram lock removed), 97 (blank, want to use for Linux, ubuntu 13.04 64 bit), 147 (songs, movies etc.), 480 (games and software collection), all that is left (tv recordings and other stuff).
RAM - 6 GB DDR3.
Processor - Intel Core 2 Duo @ 2.93 GHz (overclock to 3.2 GHz).
GPU - ASUS NVIDIA GeForce 210 Silent 1 GB DDR3.
Total graphics ram - 37** MB.
Click to expand...
Click to collapse
i, for one, would recommend xubuntu. no bloatware, nice UI, pure performance but it is your call for sure
and with 6GB RAM, swap should not be needed (i'm running xubuntu with 4GB RAM, and no need at all for swap )

Install WIFI Hacking Tools from Kali Linux on Android Platform

Hello,
I just rooted my Galaxy Ace and installed Linux Deploy with vnc viewer and installed Kali Linux on the SD Card. I did not see the penetration tools that comes with Kali Linux or Back Track 5.
I wonder if someone came across such settings.
Thanks
SecurityLover said:
Hello,
I just rooted my Galaxy Ace and installed Linux Deploy with vnc viewer and installed Kali Linux on the SD Card. I did not see the penetration tools that comes with Kali Linux or Back Track 5.
I wonder if someone came across such settings.
Thanks
Click to expand...
Click to collapse
DID YOUR READ RULES?
Wrong section! PLEASE READ RULES AND THE NEXT TIME POST IN THE CORRECT SECTION Q&A THREAD
Thank you for understanding it
forum.xda-developers.com/galaxy-ace/s5830-help
Our device has an Amrv6 processor, I'm pretty sure Backtrack is NOT compatible with our device...
Sorry, I will next time
Viper The Ripper said:
DID YOUR READ RULES?
Wrong section! PLEASE READ RULES AND THE NEXT TIME POST IN THE CORRECT SECTION Q&A THREAD
Thank you for understanding it
forum.xda-developers.com/galaxy-ace/s5830-help
Our device has an Amrv6 processor, I'm pretty sure Backtrack is NOT compatible with our device...
Click to expand...
Click to collapse
Sorry, I will next time.
Now, How can I move it there?
Thanks:good:
SecurityLover said:
Sorry, I will next time.
Now, How can I move it there?
Thanks:good:
Click to expand...
Click to collapse
Wait until Mods move this thread to the correct section
I've already reported that
SecurityLover said:
Hello,
I just rooted my Galaxy Ace and installed Linux Deploy with vnc viewer and installed Kali Linux on the SD Card. I did not see the penetration tools that comes with Kali Linux or Back Track 5.
I wonder if someone came across such settings.
Thanks
Click to expand...
Click to collapse
Backtrack is Suitable for our ACE and tested and reported working
Here is compatible devices Click Here
And use 480 Width - 320 Height Or 560 Width - 400 Height (If you need a wide view to the destktop)
Use Swap partition Min 64 mo and set swappiness to 60 (This swap partition used by Linux)
And the most important thing is that you need Min 2 GO Free on ur SD Card (Creat an IMG With 2G0)
NOTE USE GNOME OR KDE TO GET A COOL GUI AND MORE LINUX APPS !!!!
oussAC said:
Backtrack is Suitable for our ACE and tested and reported working
Here is compatible devices Click Here
And use 480 Width - 320 Height Or 560 Width - 400 Height (If you need a wide view to the destktop)
Use Swap partition Min 64 mo and set swappiness to 60 (This swap partition used by Linux)
And the most important thing is that you need Min 2 GO Free on ur SD Card (Creat an IMG With 2G0)
NOTE USE GNOME OR KDE TO GET A COOL GUI AND MORE LINUX APPS !!!!
Click to expand...
Click to collapse
CE
Viper The Ripper said:
Click to expand...
Click to collapse
Haha just try it man it is working and smooth I have Class 4 SD card and it runs faster ... Use Debian and GNOME as Gui and see by yourself I think the sound works too but if u use LXDE gui u will get no apps no hardware drivers LXDE can boot at 500 Mb .IMG file (it is just o try and it takes about 20 min with 912 kb/s to completely get installed...
Note: If you want better Graphics , scroll down in Linux Deploy app and Enter gui settings set 24 colors , DPI to 160 and Screen width always a little larger than screen height to get a real desktop on your ACE galaxy which can't run 'google chrome' yes it runs linux os like a charme !!!
For me I have no lag with those settings and select ARMV6L or lower in other linux distributions or just ARM if no V6L or J or 5 available.
I'm also facing the same problem on my Optimus G and still searching for solution

[MultiROM] Debian for the Moto G

After a lot of work, I've been able to create a functioning MultiROM installer for a GNU/Linux distribution. Currently most things, such as WiFi, bluetooth, the display or the GSM modem, don't work. The only way to interface with the ROM while it's running is by connecting the phone to a computer, and then using ssh. My goal is getting all the phone-specific things working (WiFi first), and making GNU/Linux a viable primary OS for the Moto G.
Why GNU/Linux, when Android is already Linux-based?​
While it is true that what is possible with GNU/Linux is also possible with Android with a little bit of work, I don't like that Android is, at heart, an embedded system. This has some negative implications for hackers (not crackers) that would like to use it as a normal UNIX. For example, the whole system is treated as one big blob and many things can't be changed without recompiling., which is why there are so many ROMs available, and why they are not compatible between devices.
Guide​
Install the debian.mrom file as a normal MultiROM ROM via TWRP and select the ROM at bootup. Connect a USB cable from your computer to the phone. After around a minute, a new interface should appear on your computer (usb0 for most Linux distros, enp* for those using udev's "persistent" naming). Set its IP address to 10.0.10.1/24. Optionally, you can also set up internet access on that interface. The phone's IP address is 10.0.10.2. You can also use my script to setup the network (setup_net.sh) after changing wlp2s0 to your computer's internet-facing interface. You can then connect to the phone via SSH or a netcat shell on port 2323. The root password is root.
What I've learned about WiFi​
The WiFi setup procedure is complicated. First, the wcnss compound driver needs to be activated. Android does this by running wcnss_service, whose modified version (I basically just altered the paths and replaced Android logging with printf) I've included in the ROM (/sbin/wcnss_service). Wcnss_service does many things, but the only important one (AFAIK) is open()ing /dev/wcnss_wlan. After activating wcnss, the WiFi driver needs to be activated. Recent versions of Cyanogenmod have the driver built-in and activate it via WifiHAL (I have no idea how...), I've decided to instead build the driver as a kernel module (/wlan.ko). Insmoding the LKM does something, but the initialization fails, and I don't know why.
Dowloads​debian.mrom
setup_net.sh
The kernel is Optimus kernel by Flashhhh with a custom config
.
XDA:DevDB Information
Debian for the Moto G, ROM for the Moto G
Contributors
dvdkon
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
Based On: Debian
Version Information
Status: Testing
Created 2015-08-21
Last Updated 2015-08-29
Can you consider mirroring it to androidfilehost??
Is that Ubuntu touch ???
Please give us more explanations and screenshots... Consider a video too
navaneethkom said:
Can you consider mirroring it to androidfilehost??
Is that Ubuntu touch ???
Please give us more explanations and screenshots... Consider a video too
Click to expand...
Click to collapse
If I understand is a complete pc system , not a touch optimize system.Very useful for numerical computation, testing or something of similar.
The Ubuntu touch forum is this http://forum.xda-developers.com/moto-g/development/ubuntu-touch-utopic-ubuntu-touch-falcon-t2820359
I don't now if it is working on MultiRom.
(Sorry for my bad english)
good job D:
i've tried debian into android with the normal installer but this is awesome!
Thanks you!!
Enviado desde mi XT1032 mediante Tapatalk
What is this for? It is a PC for mobile Debian ?
Fedello7 said:
What is this for? It is a PC for mobile Debian ?
Click to expand...
Click to collapse
It is for Multirom, which is a program for dual booting an OS on an Android phone. Try searching.
Is it using a LXC Container ?
Where could I find kernel sources ?
h2o64 said:
Is it using a LXC Container ?
Click to expand...
Click to collapse
No, I'm just starting Debian instead of Android with my custom init script.
h2o64 said:
Where could I find kernel sources ?
Click to expand...
Click to collapse
I'm using the Optimus kernel with a few options changed (the config).
dvdkon said:
No, I'm just starting Debian instead of Android with my custom init script.
I'm using the Optimus kernel with a few options changed (the config).
Click to expand...
Click to collapse
Kernel changes are just about internet stuff isn't it ?
h2o64 said:
Kernel changes are just about internet stuff isn't it ?
Click to expand...
Click to collapse
I've only enabled sockets for all users and devtmpfs (for initramfs).
dvdkon said:
I've only enabled sockets for all users and devtmpfs (for initramfs).
Click to expand...
Click to collapse
Alright, thank you.
PS : Btw, do not forget to mention @Flashhhh for the kernel in the OP
The display work? The touch? A is for computer in a smartphone? Wow
Can anyone catch up to see how it looks ?
SLATE21&MOTOG said:
The display work? The touch? A is for computer in a smartphone? Wow
Click to expand...
Click to collapse
Nothing but USB works as of now, but I'm currently working on the display.
dvdkon said:
After a lot of work, I've been able to create a functioning MultiROM installer for a GNU/Linux distribution. Currently most things, such as WiFi, bluetooth, the display or the GSM modem, don't work. The only way to interface with the ROM while it's running is by connecting the phone to a computer, and then using ssh. My goal is getting all the phone-specific things working (WiFi first), and making GNU/Linux a viable primary OS for the Moto G.
Why GNU/Linux, when Android is already Linux-based?​
While it is true that what is possible with GNU/Linux is also possible with Android with a little bit of work, I don't like that Android is, at heart, an embedded system. This has some negative implications for hackers (not crackers) that would like to use it as a normal UNIX. For example, the whole system is treated as one big blob and many things can't be changed without recompiling., which is why there are so many ROMs available, and why they are not compatible between devices.
Guide​
Install the debian.mrom file as a normal MultiROM ROM via TWRP and select the ROM at bootup. Connect a USB cable from your computer to the phone. After around a minute, a new interface should appear on your computer (usb0 for most Linux distros, enp* for those using udev's "persistent" naming). Set its IP address to 10.0.10.1/24. Optionally, you can also set up internet access on that interface. The phone's IP address is 10.0.10.2. You can also use my script to setup the network (setup_net.sh) after changing wlp2s0 to your computer's internet-facing interface. You can then connect to the phone via SSH or a netcat shell on port 2323. The root password is root.
What I've learned about WiFi​
The WiFi setup procedure is complicated. First, the wcnss compound driver needs to be activated. Android does this by running wcnss_service, whose modified version (I basically just altered the paths and replaced Android logging with printf) I've included in the ROM (/sbin/wcnss_service). Wcnss_service does many things, but the only important one (AFAIK) is open()ing /dev/wcnss_wlan. After activating wcnss, the WiFi driver needs to be activated. Recent versions of Cyanogenmod have the driver built-in and activate it via WifiHAL (I have no idea how...), I've decided to instead build the driver as a kernel module (/wlan.ko). Insmoding the LKM does something, but the initialization fails, and I don't know why.
Click to expand...
Click to collapse
hi. from time to time iam working on the same, a native linux booted with multirom.
it could fail because of missing firmware and dont getting the mac.
please pm me for support.
sub77 said:
hi. from time to time iam working on the same, a native linux booted with multirom.
it could fail because of missing firmware and dont getting the mac.
please pm me for support.
Click to expand...
Click to collapse
Sorry for the late reply.
I have made sure that the firmware gets loaded properly, though that was a problem at first. I'm not so sure about the MAC address, though. If you get any further information, please post it in this thread. Development is currently its only purpose.
Something new??
Enviado desde mi Moto G mediante Tapatalk
luteriace said:
Something new??
Enviado desde mi Moto G mediante Tapatalk
Click to expand...
Click to collapse
i have wifi running. next step is framebuffer.
Is there a way of help you with this?
I'd love to see this running on falcon.

Categories

Resources